All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 216696] New: Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse
@ 2022-11-17  4:17 bugzilla-daemon
  2022-11-17 23:13 ` [Bug 216696] " bugzilla-daemon
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-17  4:17 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=216696

            Bug ID: 216696
           Summary: Linux unusable upon plugging encrypted SanDisk Extreme
                    55AE USB 3.0 SSD, causes xHCI controller crash and
                    drops USB keyboard/mouse
           Product: IO/Storage
           Version: 2.5
    Kernel Version: 6.0
          Hardware: AMD
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: blocking
          Priority: P1
         Component: SCSI
          Assignee: linux-scsi@vger.kernel.org
          Reporter: kylek389@gmail.com
        Regression: No

Created attachment 303189
  --> https://bugzilla.kernel.org/attachment.cgi?id=303189&action=edit
dmesg

Plugging in an encrypted 2TB SanDisk Extreme 55AE USB 3.0 Type-C SSD causes
xHCI controller crash and dropping USB keyboard/mouse and any other USB device
connected to the computer. dmesg gets spammed with following errors:

[    3.359704] sd 1:0:0:0: [sda] Sense Key : Data Protect [current] 
[    3.359706] sd 1:0:0:0: [sda] Add. Sense: Logical unit access not authorized
[    3.378662] sd 1:0:0:0: [sda] tag#2 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_OK cmd_age=0s
[    3.378664] sd 1:0:0:0: [sda] tag#2 Sense Key : Data Protect [current] 
[    3.378666] sd 1:0:0:0: [sda] tag#2 Add. Sense: Logical unit access not
authorized
[    3.378667] sd 1:0:0:0: [sda] tag#2 CDB: Read(10) 28 00 00 00 00 00 00 00 08
00
[    3.378667] critical target error, dev sda, sector 0 op 0x0:(READ) flags 0x0
phys_seg 8 prio class 0

and finally:
[    8.371890] xhci_hcd 0000:0b:00.3: AMD-Vi: Event logged [IO_PAGE_FAULT
domain=0x0018 address=0xffcf0000 flags=0x0020]
[   13.669065] xhci_hcd 0000:0b:00.3: xHCI host not responding to stop endpoint
command.
[   13.669070] xhci_hcd 0000:0b:00.3: USBSTS: 0x00000005 HCHalted HSE
[   13.669074] xhci_hcd 0000:0b:00.3: xHCI host controller not responding,
assume dead
[   13.669086] xhci_hcd 0000:0b:00.3: HC died; cleaning up
[   13.669116] usb 4-3: cmd cmplt err -108
[   13.669119] usb 4-3: cmd cmplt err -108
[   13.669124] usb 3-2: USB disconnect, device number 2
[   13.669184] usb 4-3: USB disconnect, device number 2

Having the said drive plugged in when booting the Linux or booting a live usb
distro such as Fedora 37 causes the xHCI controller to crash and drops
important USB devices such as keyboard & mouse strangling the user from being
able to type or login to tty or DE.

SanDisk Extreme features a drive encryption, it works fine out of the box on
Windows or MacOS, it comes with its own read-only UDF partition where
unlock.exe resides that can be launched to unlock (decrypt) the drive revealing
a ~2TB exFAT partition.

Please see attached dmesg log file. If this is not the right subsystem to file
the bug let me know. I really would like to get my system booting Linux again
since I have the SanDisk Extreme plugged in 24/7. Thanks

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 216696] Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse
  2022-11-17  4:17 [Bug 216696] New: Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse bugzilla-daemon
@ 2022-11-17 23:13 ` bugzilla-daemon
  2022-11-18  0:40 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-17 23:13 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=216696

Mario Limonciello (AMD) (mario.limonciello@amd.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mario.limonciello@amd.com

--- Comment #1 from Mario Limonciello (AMD) (mario.limonciello@amd.com) ---
Considering there is a page fault, did you already experiment with iommu=pt?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 216696] Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse
  2022-11-17  4:17 [Bug 216696] New: Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse bugzilla-daemon
  2022-11-17 23:13 ` [Bug 216696] " bugzilla-daemon
@ 2022-11-18  0:40 ` bugzilla-daemon
  2022-11-18  0:42 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-18  0:40 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=216696

--- Comment #2 from Kamil Kaminski (kylek389@gmail.com) ---
Hi Mario, it did not cross my mind it could be AMD IOMMU related, adding
iommu=pt to kernel boot line did in fact make things better! My USB keyboard
and mouse are now surviving.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 216696] Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse
  2022-11-17  4:17 [Bug 216696] New: Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse bugzilla-daemon
  2022-11-17 23:13 ` [Bug 216696] " bugzilla-daemon
  2022-11-18  0:40 ` bugzilla-daemon
@ 2022-11-18  0:42 ` bugzilla-daemon
  2022-11-18  1:01 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-18  0:42 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=216696

--- Comment #3 from Mario Limonciello (AMD) (mario.limonciello@amd.com) ---
I don't think that proves it to be an AMD IOMMU bug.  It could be an ACPI IVRS
table (BIOS) issue or a driver bug.
Can we see the whole dmesg with iommu=pt?  Besides keyboard and mouse, what
happens to the other USB device now?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 216696] Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse
  2022-11-17  4:17 [Bug 216696] New: Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse bugzilla-daemon
                   ` (2 preceding siblings ...)
  2022-11-18  0:42 ` bugzilla-daemon
@ 2022-11-18  1:01 ` bugzilla-daemon
  2022-11-18  1:01 ` bugzilla-daemon
  2022-11-18  2:39 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-18  1:01 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=216696

--- Comment #4 from Kamil Kaminski (kylek389@gmail.com) ---
At the moment I'm on my other system with B550 chipset and Ryzen 5800X and have
2TB SanDisk Extreme 55AE plugged into that, however this system was also
exhibiting same exact problem as original (B450 motherboard with Ryzen 5600X),
so I can give you a dmesg from current B550 system (see attachment), and yes
other USB devices or working fine now (I have an USB SD card reader plugged in
and Oculus CV1 and they're working fine)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 216696] Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse
  2022-11-17  4:17 [Bug 216696] New: Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse bugzilla-daemon
                   ` (3 preceding siblings ...)
  2022-11-18  1:01 ` bugzilla-daemon
@ 2022-11-18  1:01 ` bugzilla-daemon
  2022-11-18  2:39 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-18  1:01 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=216696

--- Comment #5 from Kamil Kaminski (kylek389@gmail.com) ---
Created attachment 303203
  --> https://bugzilla.kernel.org/attachment.cgi?id=303203&action=edit
dmesg B550 mobo

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 216696] Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse
  2022-11-17  4:17 [Bug 216696] New: Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse bugzilla-daemon
                   ` (4 preceding siblings ...)
  2022-11-18  1:01 ` bugzilla-daemon
@ 2022-11-18  2:39 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-18  2:39 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=216696

--- Comment #6 from Mario Limonciello (AMD) (mario.limonciello@amd.com) ---
So you can see in there the IO_PAGE_FAULT and decode it using
https://www.amd.com/system/files/TechDocs/48882_3.07_PUB.pdf p149/p150.

The domain ID 0x18 is selected by the driver, I don't believe it's meaningful
in this case.  It seems to me that the device/driver for the device is causing
the XHCI controller to try to write to address 0xffcf0000.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-18  2:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17  4:17 [Bug 216696] New: Linux unusable upon plugging encrypted SanDisk Extreme 55AE USB 3.0 SSD, causes xHCI controller crash and drops USB keyboard/mouse bugzilla-daemon
2022-11-17 23:13 ` [Bug 216696] " bugzilla-daemon
2022-11-18  0:40 ` bugzilla-daemon
2022-11-18  0:42 ` bugzilla-daemon
2022-11-18  1:01 ` bugzilla-daemon
2022-11-18  1:01 ` bugzilla-daemon
2022-11-18  2:39 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.