Re: Fwd: usb: uas: device reset most the time while enumeration- usb3.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2018-04-19 14:15, Oliver Neukum wrote:
Am Mittwoch, den 18.04.2018, 12:44 +0530 schrieb Tushar Nimkar:
On 2018-04-17 12:03, Tushar Nimkar wrote:

Hi,

I have doubt that sequential scan(scsi_sequential_lun_scan) work well
for uas device(SCSI>3)..
Why? As I have seen in most cases failed to enumerate during REPORT_LUN
command...and there is older way to scan disk is also present,
so I was thinking to try that.. did following things

starget->no_report_luns = 1  ---> for my target while uas_target_alloc
(for try)

In general the spec is one thing and reality is another thing.
You can depend really only on what recent versions of Windows do.

did not get you!


Found it is doing sequential scan but popuating 256 entries in cat
proc/partiction
for one disk
root@OpenWrt:/# cat proc/partitions
major minor  #blocks  name

    8        0  488386584 sda
    8        1  488384032 sda1
    8       48  488386584 sdd
    8       49  488384032 sdd1
    8       64  488386584 sde
    8       65  488384032 sde1
    8       80  488386584 sdf
    8       81  488384032 sdf1
    8       96  488386584 sdg
    8       97  488384032 sdg1
    8      112  488386584 sdh
    8      113  488384032 sdh1
			  ........256 total.

...though it is SCSI>3 device ,it should support both sequential as well
as REPORT_LUN?

In theory.

oh, so no backward old way of scanning(sequential)?

Do not know weather this is the cause for the issue or not ...but if so
need to think on this too :)

Well, does your original issue go away if you use NO_REPORT_LUN


most of the time it works (observerd non working case too!) but 256 similar logs will come on console
.....

[ 217.464158] xhci-hcd xhci-hcd.0.auto: ERROR Transfer event for disabled erect stream ring [ 217.464162] xhci-hcd xhci-hcd.0.auto: @000000007d933690 00000000 0000000000 [ 217.464608] sd 1:0:0:200: [sdgs] 976773168 512-byte logical blocks: (500 [ 217.464987] scsi 1:0:0:201: Direct-Access Samsung Portable SSD T3 06
[  217.465329] sd 1:0:0:200: [sdgs] Write Protect is off
[ 217.465585] sd 1:0:0:200: [sdgs] Write cache: enabled, read cache: enablert DPO or FUA [ 217.465695] xhci-hcd xhci-hcd.0.auto: ERROR Transfer event for disabled erect stream ring [ 217.465699] xhci-hcd xhci-hcd.0.auto: @000000007d933b00 00000000 0000000000
[  217.466264]  sdgr: sdgr1
[ 217.466525] sd 1:0:0:201: [sdgt] 976773168 512-byte logical blocks: (500 [ 217.466656] scsi 1:0:0:202: Direct-Access Samsung Portable SSD T3 06
...


Did one more thing along with starget->no_report_luns = 1 , shost->max_lun = 1 instead if (= 256) [uas.c] It Enumerates and no 256 cat proc/partitions entries. But doesn't not seems good to me to restrict max_lun to 1 :(

and does your device have multiple LUNs?
how to check that? maybe yes ...

	Regards
		Oliver

--
Best Regards,
Tushar R Nimkar

QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux