Re: Regression - Linux 4.9: ums_eneub6250 broken: transfer buffer not dma capable - Trace

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

 



Am 07.05.2017 um 16:06 schrieb Alan Stern:
On Sun, 7 May 2017, Andreas Hartmann wrote:

Am 07.05.2017 um 04:11 schrieb Alan Stern:
On Sat, 6 May 2017, Andreas Hartmann wrote:

Am 06.05.2017 um 19:27 schrieb Andreas Hartmann:
On 05/06/2017 at 06:43 PM Alan Stern wrote:
For future tests, usbmon traces won't be useful.  The patches don't
make any difference to the USB traffic (other than fixing that original
issue involving non-DMA-able memory).  Instead they change the
communication between the driver and the SCSI core.  USB_STORAGE_DEBUG
will be most useful for tracking this.

Tested now w/ patched 4.7.x and 4.8.x - they behave exactly the same as
4.9.x. I don't think other versions will behave differently.
Tried to patch 4.4.x - but the patch doesn't apply.

Most probably you need a USB_STORAGE_DEBUG with the unpatched driver -
true? 4.8.x would be ok?

I attached an original 4.8.x DEBUG output. Hope this helps!

Good.  And just for a clean comparison, DEBUG output for 4.8.x with the
patched driver would be very helpful.

I suspect the change in behavior is related to the fix I made for the
INQUIRY command.  The original version of the driver returned invalid
information, so the kernel did not realize the media was removable.

media = sd card?

Yes.

But it's true, that the media is removable. After unmount (of all
mounted partitions) the device / media should be deactivated as it is
done with echo 1 > /sys/block/sdb/device/delete to stop any activity on
this device (this makes the medium to disappear in the device manager).

It is indeed true that the media is removable.  However, when it is
removed the card reader disconnects itself from the USB bus -- so it's
never possible for the computer to see the device without any media
present.  In addition, the card reader doesn't have any way to prevent
the media from being removed (as compared to a CD drive where the tray
can be locked).  And the driver doesn't understand the SCSI commands
that are connected with media removal.

Therefore there's no disadvantage in saying that the media is not
removable.  That's what the patch below does.

The patch achieved the goal: it's working perfectly now. No more additional entries in device manager. Just as it should!

Tested it w/ 4.9.x - but this should be true for 4.8.x, too.


Thank you very much!

Kind regards,
Andreas

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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux