Processed: Re: Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2024-01-06 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> found 1059607 6.5.13-1
Bug #1059607 [src:linux] linux-image-6.1.0-16-amd64: Steam Deck does not 
recognize USB keyboard on Bookworm
Marked as found in versions linux/6.5.13-1.
> found 1059607 6.6.9-1
Bug #1059607 [src:linux] linux-image-6.1.0-16-amd64: Steam Deck does not 
recognize USB keyboard on Bookworm
Marked as found in versions linux/6.6.9-1.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
1059607: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059607
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2024-01-06 Thread Cordell Bloor

found 1059607 6.5.13-1
found 1059607 6.6.9-1
thanks

On 2024-01-06 06:24, Salvatore Bonaccorso wrote:

And given this commit was backported to 4.19.298, 5.10.200, 6.1.62,
6.5.11 and 6.6.1. Can you confirm the problem is as well present in
the current available 6.5.13-1 and 6.6.9-1?


I can confirm the problem is present in those versions as well.

Sincerely,
Cory Bloor


Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2024-01-06 Thread Salvatore Bonaccorso
Hi,

On Sat, Jan 06, 2024 at 05:44:39AM -0700, Cordell Bloor wrote:
> I was discussing this bug with Christian Kastner the other day. He
> suggested:
> 
> On 2024-01-02 14:55, Christian Kastner wrote:
> > The hint in the offending comment regarding the dwc3 driver made me
> > curious. It seems that it is not enabled in the Debian kernel, so this
> > is probably something Debian-specific:
> > 
> >$ grep DWC3 /boot/config-6.1.0-17-amd64
> ># CONFIG_USB_DWC3 is not set
> > 
> > The solution would be to request enabling this driver in that bug report
> > (ideally building/testing it first, if it's not too much work).
> 
> I gave that a try last night and I can confirm that enabling USB_DWC3
> resolved the problem when I tested it with
> b25a2f247083389e44a1c7ffb9375c7cf20fabb5. I then tested 6.1.71 with USB_DWC3
> disabled and with it enabled. My testing confirmed that USB devices work as
> expected when USB_DWC3 was enabled.

Thanks!

And given this commit was backported to 4.19.298, 5.10.200, 6.1.62,
6.5.11 and 6.6.1. Can you confirm the problem is as well present in
the current available 6.5.13-1 and 6.6.9-1?

Regards,
Salvatore



Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2024-01-06 Thread Cordell Bloor
I was discussing this bug with Christian Kastner the other day. He 
suggested:


On 2024-01-02 14:55, Christian Kastner wrote:

The hint in the offending comment regarding the dwc3 driver made me
curious. It seems that it is not enabled in the Debian kernel, so this
is probably something Debian-specific:

   $ grep DWC3 /boot/config-6.1.0-17-amd64
   # CONFIG_USB_DWC3 is not set

The solution would be to request enabling this driver in that bug report
(ideally building/testing it first, if it's not too much work).


I gave that a try last night and I can confirm that enabling USB_DWC3 
resolved the problem when I tested it with 
b25a2f247083389e44a1c7ffb9375c7cf20fabb5. I then tested 6.1.71 with 
USB_DWC3 disabled and with it enabled. My testing confirmed that USB 
devices work as expected when USB_DWC3 was enabled.


Sincerely,
Cory Bloor

Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2024-01-06 Thread Salvatore Bonaccorso
Hi Cordell,

On Sun, Dec 31, 2023 at 03:25:53AM -0700, Cordell Bloor wrote:
> b25a2f247083389e44a1c7ffb9375c7cf20fabb5 is the first bad commit
> commit b25a2f247083389e44a1c7ffb9375c7cf20fabb5
> Author: Vicki Pfau 
> Date:   Wed Sep 27 13:22:12 2023 -0700
> 
>     PCI: Prevent xHCI driver from claiming AMD VanGogh USB3 DRD device
> 
>     commit 7e6f3b6d2c352b5fde37ce3fed83bdf6172eebd4 upstream.
> 
>     The AMD VanGogh SoC contains a DesignWare USB3 Dual-Role Device that can
> be
>     operated as either a USB Host or a USB Device, similar to on the AMD
> Nolan
>     platform.
> 
>     be6646bfbaec ("PCI: Prevent xHCI driver from claiming AMD Nolan USB3 DRD
>     device") added a quirk to let the dwc3 driver claim the Nolan device
> since
>     it provides more specific support.
> 
>     Extend that quirk to include the VanGogh SoC USB3 device.
> 
>     Link: https://lore.kernel.org/r/20230927202212.2388216-1...@endrift.com
>     Signed-off-by: Vicki Pfau 
>     [bhelgaas: include be6646bfbaec reference, add stable tag]
>     Signed-off-by: Bjorn Helgaas 
>     Cc: sta...@vger.kernel.org  # v3.19+
>     Signed-off-by: Greg Kroah-Hartman 
> 
>  drivers/pci/quirks.c    | 8 +---
>  include/linux/pci_ids.h | 1 +
>  2 files changed, 6 insertions(+), 3 deletions(-)

Thanks. The above commit was backported to several stable series,
relevant for Debian are 5.10.200, 6.1.62, (6.5.11) and 6.6.1.

Is the issue as well reproducible with the kernels 6.5.13-1 in
testing, 6.6.9-1 in unstable?

With those datapoints it might now be good if you can report it to
upstream. Contact point would be the people from the issue introducing
commit, expanded with the linux-...@vger.kernel.org and
linux-ker...@vger.kernel.org lists.

Regards,
Salvatore



Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2023-12-31 Thread Cordell Bloor

b25a2f247083389e44a1c7ffb9375c7cf20fabb5 is the first bad commit
commit b25a2f247083389e44a1c7ffb9375c7cf20fabb5
Author: Vicki Pfau 
Date:   Wed Sep 27 13:22:12 2023 -0700

    PCI: Prevent xHCI driver from claiming AMD VanGogh USB3 DRD device

    commit 7e6f3b6d2c352b5fde37ce3fed83bdf6172eebd4 upstream.

    The AMD VanGogh SoC contains a DesignWare USB3 Dual-Role Device 
that can be
    operated as either a USB Host or a USB Device, similar to on the 
AMD Nolan

    platform.

    be6646bfbaec ("PCI: Prevent xHCI driver from claiming AMD Nolan 
USB3 DRD
    device") added a quirk to let the dwc3 driver claim the Nolan 
device since

    it provides more specific support.

    Extend that quirk to include the VanGogh SoC USB3 device.

    Link: https://lore.kernel.org/r/20230927202212.2388216-1...@endrift.com
    Signed-off-by: Vicki Pfau 
    [bhelgaas: include be6646bfbaec reference, add stable tag]
    Signed-off-by: Bjorn Helgaas 
    Cc: sta...@vger.kernel.org  # v3.19+
    Signed-off-by: Greg Kroah-Hartman 

 drivers/pci/quirks.c    | 8 +---
 include/linux/pci_ids.h | 1 +
 2 files changed, 6 insertions(+), 3 deletions(-)



Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2023-12-29 Thread Salvatore Bonaccorso
Hi Cordell,

Thanks Diederik for providing Cordell with more details on how to
bisect the Debian version.

On Fri, Dec 29, 2023 at 12:37:42PM -0700, Cordell Bloor wrote:
> found 1059607 6.1.66-1
> not-found 1059607 6.1.55-1
> not-found 1059607 6.1.52-1
> not-found 1059607 6.1.38-1
> thanks
> 
> On 2023-12-29 06:22, Diederik de Haas wrote:
> > On Friday, 29 December 2023 13:50:34 CET Salvatore Bonaccorso wrote:
> > > I realize this is asking much, but do you think you would be able to
> > > bisect the upstream versions accordingly to see if you find the
> > > introducing commit for the issue?
> > Viahttps://snapshot.debian.org/package/linux-signed-amd64/  you can find 
> > ready-
> > made kernel between -10 en -16 which should help narrow the range of the
> > problematic commit.
> 
> Thank you. I didn't know about the snapshot repository. That helped narrow
> things down. The breakage was introduced between -13 and -15. I've never
> built the kernel from source, but I need to learn for an unrelated kernel
> bug I reported upstream anyway. I'll report back once I find the specific
> commit.
> 
> The Steam Deck I'm using was donated by Valve for testing AMD GPU software
> on the Debian ROCm Team's CI [1], so this sort of debugging is the reason
> they gave it to me.

That's good thanks!

> On 2023-12-29 06:22, Diederik de Haas wrote:
> > But: do NOT use version 6.1.64-1 (6.1.0-14)  as it contains an ext4 bug 
> > which
> > could cause data loss (https://bugs.debian.org/1057843)
> 
> Unfortunately, the commit I'm hunting for is somewhere in the range where
> this bug was introduced.

Okay given that is not a production system, and the ext4 data
corruption issue is hit under very specific circumstances (see
https://lwn.net/Articles/954841/) I think you can safely still use the
upstream stable repostiory for bisect. Altenative is that you on
bisect apply as well the prerequisite commit, for those having the
ext4 data corruption causing commit otherwise.

Makes the bisect bit more complicated but can work.

Regards,
Salvatore



Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2023-12-29 Thread Cordell Bloor

found 1059607 6.1.66-1
not-found 1059607 6.1.55-1
not-found 1059607 6.1.52-1
not-found 1059607 6.1.38-1
thanks

On 2023-12-29 06:22, Diederik de Haas wrote:

On Friday, 29 December 2023 13:50:34 CET Salvatore Bonaccorso wrote:

I realize this is asking much, but do you think you would be able to
bisect the upstream versions accordingly to see if you find the
introducing commit for the issue?

Viahttps://snapshot.debian.org/package/linux-signed-amd64/  you can find ready-
made kernel between -10 en -16 which should help narrow the range of the
problematic commit.


Thank you. I didn't know about the snapshot repository. That helped 
narrow things down. The breakage was introduced between -13 and -15. 
I've never built the kernel from source, but I need to learn for an 
unrelated kernel bug I reported upstream anyway. I'll report back once I 
find the specific commit.


The Steam Deck I'm using was donated by Valve for testing AMD GPU 
software on the Debian ROCm Team's CI [1], so this sort of debugging is 
the reason they gave it to me.


On 2023-12-29 06:22, Diederik de Haas wrote:

But: do NOT use version 6.1.64-1 (6.1.0-14)  as it contains an ext4 bug which
could cause data loss (https://bugs.debian.org/1057843)


Unfortunately, the commit I'm hunting for is somewhere in the range 
where this bug was introduced.


Sincerely,
Cory Bloor

[1]: https://ci.rocm.debian.net/


Processed: Re: Processed (with 3 errors): Re: Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2023-12-29 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> notfound 1059607 6.1.55-1
Bug #1059607 [src:linux] linux-image-6.1.0-16-amd64: Steam Deck does not 
recognize USB keyboard on Bookworm
Ignoring request to alter found versions of bug #1059607 to the same values 
previously set
> notfound 1059607 6.1.52-1
Bug #1059607 [src:linux] linux-image-6.1.0-16-amd64: Steam Deck does not 
recognize USB keyboard on Bookworm
Ignoring request to alter found versions of bug #1059607 to the same values 
previously set
> notfound 1059607 6.1.38-1
Bug #1059607 [src:linux] linux-image-6.1.0-16-amd64: Steam Deck does not 
recognize USB keyboard on Bookworm
Ignoring request to alter found versions of bug #1059607 to the same values 
previously set
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
1059607: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059607
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Processed (with 3 errors): Re: Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2023-12-29 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> found 1059607 6.1.66-1
Bug #1059607 [src:linux] linux-image-6.1.0-16-amd64: Steam Deck does not 
recognize USB keyboard on Bookworm
Marked as found in versions linux/6.1.66-1.
> not-found 1059607 6.1.55-1
Unknown command or malformed arguments to command.
> not-found 1059607 6.1.52-1
Unknown command or malformed arguments to command.
> not-found 1059607 6.1.38-1
Unknown command or malformed arguments to command.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
1059607: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059607
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2023-12-29 Thread Diederik de Haas
On Friday, 29 December 2023 13:50:34 CET Salvatore Bonaccorso wrote:
> > Version: 6.1.67-1
> > 
> > When the system reboots, it switches to the 6.1.0-16 kernel package. At
> > this point, power delivery through the Steam Deck's USB-C connector works,
> > but it will not recognize a keyboard or ethernet adapter.
> > 
> > Everything works fine if I boot from 6.1.0-10, so this is a regression in
> > bookworm-updates.
> 
> I realize this is asking much, but do you think you would be able to
> bisect the upstream versions accordingly to see if you find the
> introducing commit for the issue?

Via https://snapshot.debian.org/package/linux-signed-amd64/ you can find ready-
made kernel between -10 en -16 which should help narrow the range of the 
problematic commit.
FYI: kernel 6.1.38-3 got ABI 11 (thus 6.1.0-11)

But: do NOT use version 6.1.64-1 (6.1.0-14)  as it contains an ext4 bug which 
could cause data loss (https://bugs.debian.org/1057843)


signature.asc
Description: This is a digitally signed message part.


Processed: Re: Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2023-12-29 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 + moreinfo
Bug #1059607 [src:linux] linux-image-6.1.0-16-amd64: Steam Deck does not 
recognize USB keyboard on Bookworm
Added tag(s) moreinfo.

-- 
1059607: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059607
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2023-12-29 Thread Salvatore Bonaccorso
Control: tags -1 + moreinfo

Hi,

On Thu, Dec 28, 2023 at 11:56:04PM -0700, Cordell Bloor wrote:
> Package: src:linux
> Version: 6.1.67-1
> Severity: important
> X-Debbugs-Cc: c...@slerp.xyz
> 
> Dear Maintainer,
> 
> When Debian 12 is installed on the Steam Deck, the process goes smoothly until
> the system is rebooted. When the system reboots, it switches to the 6.1.0-16
> kernel package. At this point, power delivery through the Steam Deck's USB-C
> connector works, but it will not recognize a keyboard or ethernet adapter.
> 
> This is a pain because without networking or keyboard input, it's difficult
> to debug or understand what is happening. I reinstalled and configured the
> WiFi during setup so that I could get SSH access for debugging (though in
> retrospect, this was not necessary). An easier workaround is to select
> an older kernel in GRUB.
> 
> Everything works fine if I boot from 6.1.0-10, so this is a regression in
> bookworm-updates.

I realize this is asking much, but do you think you would be able to
bisect the upstream versions accordingly to see if you find the
introducing commit for the issue?

Regards,
Salvatore



Bug#1059607: linux-image-6.1.0-16-amd64: Steam Deck does not recognize USB keyboard on Bookworm

2023-12-28 Thread Cordell Bloor
Package: src:linux
Version: 6.1.67-1
Severity: important
X-Debbugs-Cc: c...@slerp.xyz

Dear Maintainer,

When Debian 12 is installed on the Steam Deck, the process goes smoothly until
the system is rebooted. When the system reboots, it switches to the 6.1.0-16
kernel package. At this point, power delivery through the Steam Deck's USB-C
connector works, but it will not recognize a keyboard or ethernet adapter.

This is a pain because without networking or keyboard input, it's difficult
to debug or understand what is happening. I reinstalled and configured the
WiFi during setup so that I could get SSH access for debugging (though in
retrospect, this was not necessary). An easier workaround is to select
an older kernel in GRUB.

Everything works fine if I boot from 6.1.0-10, so this is a regression in
bookworm-updates.

Sincerely,
Cory Bloor

-- Package-specific info:
** Version:
Linux version 6.1.0-16-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 
12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP 
PREEMPT_DYNAMIC Debian 6.1.67-1 (2023-12-12)

** Command line:
BOOT_IMAGE=/vmlinuz-6.1.0-16-amd64 root=/dev/mapper/starrynight--vg-root ro 
quiet

** Not tainted

** Kernel log:
[4.315100] cdc_acm 1-3:1.3: ttyACM0: USB ACM device
[4.316847] usbcore: registered new interface driver cdc_acm
[4.316853] cdc_acm: USB Abstract Control Model driver for USB modems and 
ISDN adapters
[4.321956] ccp :04:00.2: tee enabled
[4.321965] ccp :04:00.2: psp enabled
[4.331647] Adding 1003516k swap on /dev/mapper/starrynight--vg-swap_1.  
Priority:-2 extents:1 across:1003516k SSFS
[4.356574] EXT4-fs (nvme0n1p2): mounting ext2 file system using the ext4 
subsystem
[4.357899] EXT4-fs (nvme0n1p2): mounted filesystem without journal. Quota 
mode: none.
[4.370324] input: PC Speaker as /devices/platform/pcspkr/input/input10
[4.377613] RAPL PMU: API unit is 2^-32 Joules, 1 fixed counters, 163840 ms 
ovfl timer
[4.377620] RAPL PMU: hw unit of domain package 2^-16 Joules
[4.385971] snd_pci_acp5x :04:00.5: enabling device ( -> 0002)
[4.392901] cryptd: max_cpu_qlen set to 1000
[4.428289] input: FTS3528:00 2808:1015 as 
/devices/platform/AMDI0010:01/i2c-1/i2c-FTS3528:00/0018:2808:1015.0001/input/input11
[4.428546] input: FTS3528:00 2808:1015 UNKNOWN as 
/devices/platform/AMDI0010:01/i2c-1/i2c-FTS3528:00/0018:2808:1015.0001/input/input13
[4.428701] hid-multitouch 0018:2808:1015.0001: input,hidraw0: I2C HID v1.00 
Device [FTS3528:00 2808:1015] on i2c-FTS3528:00
[4.454880] AVX2 version of gcm_enc/dec engaged.
[4.454921] AES CTR mode by8 optimization enabled
[4.475717] alg: No test for fips(ansi_cprng) (fips_ansi_cprng)
[4.476375] snd_hda_intel :04:00.1: enabling device ( -> 0002)
[4.476484] snd_hda_intel :04:00.1: Handle vga_switcheroo audio client
[4.487225] snd_hda_intel :04:00.1: bound :04:00.0 (ops 
amdgpu_dm_audio_component_bind_ops [amdgpu])
[4.489672] input: HD-Audio Generic HDMI/DP,pcm=3 as 
/devices/pci:00/:00:08.1/:04:00.1/sound/card0/input14
[4.489751] input: HD-Audio Generic HDMI/DP,pcm=7 as 
/devices/pci:00/:00:08.1/:04:00.1/sound/card0/input15
[4.489807] input: HD-Audio Generic HDMI/DP,pcm=8 as 
/devices/pci:00/:00:08.1/:04:00.1/sound/card0/input16
[4.489860] input: HD-Audio Generic HDMI/DP,pcm=9 as 
/devices/pci:00/:00:08.1/:04:00.1/sound/card0/input17
[4.540193] cfg80211: Loading compiled-in X.509 certificates for regulatory 
database
[4.540482] cfg80211: Loaded X.509 cert 'b...@debian.org: 
577e021cb980e0e820821ba7b54b4961b8b4fadf'
[4.540744] cfg80211: Loaded X.509 cert 'romain.per...@gmail.com: 
3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[4.541093] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[4.541646] platform regulatory.0: firmware: direct-loading firmware 
regulatory.db
[4.541767] platform regulatory.0: firmware: direct-loading firmware 
regulatory.db.p7s
[4.664334] Bluetooth: Core ver 2.22
[4.664392] NET: Registered PF_BLUETOOTH protocol family
[4.664393] Bluetooth: HCI device and connection manager initialized
[4.664401] Bluetooth: HCI socket layer initialized
[4.664405] Bluetooth: L2CAP socket layer initialized
[4.664410] Bluetooth: SCO socket layer initialized
[4.670293] SVM: TSC scaling supported
[4.670298] kvm: Nested Virtualization enabled
[4.670300] SVM: kvm: Nested Paging enabled
[4.670304] SEV supported: 14 ASIDs
[4.670321] SVM: Virtual VMLOAD VMSAVE supported
[4.670322] SVM: Virtual GIF supported
[4.670322] SVM: LBR virtualization supported
[4.676487] rtw_8822ce :03:00.0: enabling device ( -> 0003)
[4.676621] MCE: In-kernel MCE decoding enabled.
[4.677486] rtw_8822ce :03:00.0: firmware: direct-loading firmware 
rtw88/rtw8822c_fw.bin
[4.677523] rtw_8822ce :03:00.0: Firmware version 9.9.14,