Bug#1040407: linux-image-6.3.0-1-amd64: X1 Carbon 9th gen, docked, external display stops working after suspend and there are kernel traces in the logs

2023-07-06 Thread Claudio Saavedra
On Thu, 2023-07-06 at 12:38 +0200, Salvatore Bonaccorso wrote:
> Control: tags -1 + moreinfo
> 
> On Wed, Jul 05, 2023 at 10:19:48PM +0300, Claudio Saavedra wrote:
> > > That commit is part of 6.4-rc7 and Experimental currently has
> > > 6.4.1-1
> > > so it 
> > > should be fixed with that kernel.
> > > Verification whether that's indeed the case would be appreciated.
> > 
> > According to
> > https://metadata.ftp-master.debian.org/changelogs//main/l/linux-signed-amd64/linux-signed-amd64_6.3.11+1_changelog
> > it's also part of 6.3.11, so it should be fixed in unstable too.
> > Sorry
> > that I didn't check beforehand.
> 
> Were you able to verify that? Asking so we can update the bug
> metadata accordingly.

It hasn't crashed since I upgraded to 6.3.11, but I'm not sure that's
enough verification.

Claudio



Bug#1040407: linux-image-6.3.0-1-amd64: X1 Carbon 9th gen, docked, external display stops working after suspend and there are kernel traces in the logs

2023-07-06 Thread Salvatore Bonaccorso
Control: tags -1 + moreinfo

On Wed, Jul 05, 2023 at 10:19:48PM +0300, Claudio Saavedra wrote:
> > That commit is part of 6.4-rc7 and Experimental currently has 6.4.1-1
> > so it 
> > should be fixed with that kernel.
> > Verification whether that's indeed the case would be appreciated.
> 
> According to
> https://metadata.ftp-master.debian.org/changelogs//main/l/linux-signed-amd64/linux-signed-amd64_6.3.11+1_changelog
> it's also part of 6.3.11, so it should be fixed in unstable too. Sorry
> that I didn't check beforehand.

Were you able to verify that? Asking so we can update the bug metadata
accordingly.

Regards,
Salvatore



Bug#1040407: linux-image-6.3.0-1-amd64: X1 Carbon 9th gen, docked, external display stops working after suspend and there are kernel traces in the logs

2023-07-05 Thread Claudio Saavedra
> That commit is part of 6.4-rc7 and Experimental currently has 6.4.1-1
> so it 
> should be fixed with that kernel.
> Verification whether that's indeed the case would be appreciated.

According to
https://metadata.ftp-master.debian.org/changelogs//main/l/linux-signed-amd64/linux-signed-amd64_6.3.11+1_changelog
it's also part of 6.3.11, so it should be fixed in unstable too. Sorry
that I didn't check beforehand.

Claudio



Bug#1040407: linux-image-6.3.0-1-amd64: X1 Carbon 9th gen, docked, external display stops working after suspend and there are kernel traces in the logs

2023-07-05 Thread Diederik de Haas
On Wednesday, 5 July 2023 17:54:00 CEST Claudio Saavedra wrote:
> According to https://www.spinics.net/lists/linux-usb/msg242489.html
> this seems to be fixed by
> https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git/comm
> it/?h=fixes=9f9666e65359d5047089aef97ac87c50f624ecb0
> 
> I don't have the bandwidth to check this further, so I don't know if
> this is already in an already released kernel or one already in sid or
> experimental, but hopefully this helps.

That commit is part of 6.4-rc7 and Experimental currently has 6.4.1-1 so it 
should be fixed with that kernel.
Verification whether that's indeed the case would be appreciated.

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


Bug#1040407: linux-image-6.3.0-1-amd64: X1 Carbon 9th gen, docked, external display stops working after suspend and there are kernel traces in the logs

2023-07-05 Thread Claudio Saavedra
According to https://www.spinics.net/lists/linux-usb/msg242489.html
this seems to be fixed by
https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git/commit/?h=fixes=9f9666e65359d5047089aef97ac87c50f624ecb0

I don't have the bandwidth to check this further, so I don't know if
this is already in an already released kernel or one already in sid or
experimental, but hopefully this helps.



Bug#1040407: linux-image-6.3.0-1-amd64: X1 Carbon 9th gen, docked, external display stops working after suspend and there are kernel traces in the logs

2023-07-05 Thread Claudio Saavedra
Package: src:linux
Version: 6.3.7-1
Severity: normal
Tags: upstream
X-Debbugs-Cc: csaave...@igalia.com

Dear Maintainer,

After coming back from resume, connecting the X1 Carbon 9th gen to the 
thunderbolt dock causes
issues with the external display (connected via DisplayPort port of the dock). 
The display
starts acting weird, wrong resolution first, then the internal display freezes 
instead of
going off after switching to the external, etc. It's basically unusable.

I checked dmesg and I see that there are several traces, related to thunderbolt 
I think.

I suspect this is not debian specific but maybe you can forward this upstream.

-- Package-specific info:
** Version:
Linux version 6.3.0-1-amd64 (debian-ker...@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.3.7-1 (2023-06-12)

** Command line:
BOOT_IMAGE=/vmlinuz-6.3.0-1-amd64 root=/dev/mapper/capablanca--vg-root ro quiet

** Tainted: DW (640)
 * kernel died recently, i.e. there was an OOPS or BUG
 * kernel issued warning

** Kernel log:
[628581.287272] RIP: 0010:ring_interrupt_active+0x243/0x2d0 [thunderbolt]
[628581.287293] Code: 08 44 89 04 24 e8 8d 49 bf d5 44 8b 04 24 48 8b 4c 24 08 
4d 89 f1 48 8b 54 24 10 48 89 c6 48 c7 c7 d8 13 47 c0 e8 5d c2 47 d5 <0f> 0b 44 
8b 5c 24 04 49 8b 47 08 40 84 ed 0f 85 e9 fe ff ff f6 40
[628581.287296] RSP: 0018:bb6461d4bd18 EFLAGS: 00010086
[628581.287299] RAX:  RBX:  RCX: 

[628581.287301] RDX: 0004 RSI: 96a371d5 RDI: 

[628581.287303] RBP: 0001 R08:  R09: 
bb6461d4bba8
[628581.287305] R10: 0003 R11: 970cc2a0 R12: 
0001
[628581.287307] R13: 00038200 R14: c046fc2f R15: 
9d2f8e7fe540
[628581.287309] FS:  () GS:9d36bf60() 
knlGS:
[628581.287311] CS:  0010 DS:  ES:  CR0: 80050033
[628581.287313] CR2: 7f0f6a06a000 CR3: 00023c020002 CR4: 
00f70ef0
[628581.287316] PKRU: 5554
[628581.287317] Call Trace:
[628581.287321]  
[628581.287323]  ? ring_interrupt_active+0x243/0x2d0 [thunderbolt]
[628581.287346]  ? __warn+0x81/0x130
[628581.287353]  ? ring_interrupt_active+0x243/0x2d0 [thunderbolt]
[628581.287376]  ? report_bug+0x191/0x1c0
[628581.287380]  ? prb_read_valid+0x1b/0x30
[628581.287386]  ? handle_bug+0x41/0x70
[628581.287391]  ? exc_invalid_op+0x17/0x70
[628581.287395]  ? asm_exc_invalid_op+0x1a/0x20
[628581.287401]  ? ring_interrupt_active+0x243/0x2d0 [thunderbolt]
[628581.287424]  ? ring_interrupt_active+0x243/0x2d0 [thunderbolt]
[628581.287447]  tb_ring_start+0x16a/0x300 [thunderbolt]
[628581.287470]  tb_ctl_start+0x26/0xa0 [thunderbolt]
[628581.287495]  ? __pfx_pci_pm_runtime_resume+0x10/0x10
[628581.287501]  tb_domain_runtime_resume+0x19/0x40 [thunderbolt]
[628581.287534]  __rpm_callback+0x41/0x170
[628581.287538]  ? __pfx_pci_pm_runtime_resume+0x10/0x10
[628581.287543]  rpm_callback+0x5d/0x70
[628581.287546]  ? __pfx_pci_pm_runtime_resume+0x10/0x10
[628581.287550]  rpm_resume+0x572/0x7b0
[628581.287553]  ? _raw_spin_unlock_irqrestore+0x27/0x50
[628581.287559]  ? __pm_runtime_resume+0x58/0x80
[628581.287562]  pm_runtime_work+0x70/0xb0
[628581.287565]  process_one_work+0x1c5/0x3c0
[628581.287570]  worker_thread+0x51/0x390
[628581.287573]  ? __pfx_worker_thread+0x10/0x10
[628581.287576]  kthread+0xea/0x120
[628581.287580]  ? __pfx_kthread+0x10/0x10
[628581.287584]  ret_from_fork+0x29/0x50
[628581.287591]  
[628581.287592] ---[ end trace  ]---
[628581.287601] [ cut here ]
[628581.287602] thunderbolt :00:0d.3: interrupt for RX ring 0 is already 
enabled
[628581.287625] WARNING: CPU: 0 PID: 612063 at drivers/thunderbolt/nhi.c:137 
ring_interrupt_active+0x243/0x2d0 [thunderbolt]
[628581.287645] Modules linked in: sd_mod sg uas usb_storage scsi_mod 
scsi_common uinput rfcomm cmac algif_hash algif_skcipher af_alg ctr ccm 
hid_jabra tun bnep snd_seq_dummy snd_hrtimer snd_seq_midi snd_seq_midi_event 
snd_seq qrtr binfmt_misc hid_logitech_hidpp btusb btrtl btbcm btintel btmtk 
bluetooth nls_ascii nls_cp437 squashfs vfat fat uvcvideo snd_usb_audio 
videobuf2_vmalloc uvc videobuf2_memops snd_usbmidi_lib videobuf2_v4l2 
jitterentropy_rng snd_rawmidi videodev drbg videobuf2_common snd_seq_device 
joydev ansi_cprng ecdh_generic mc ecc snd_ctl_led snd_soc_skl_hda_dsp 
snd_soc_intel_hda_dsp_common snd_soc_hdac_hdmi snd_sof_probes 
snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_soc_dmic 
hid_logitech_dj snd_sof_pci_intel_tgl snd_sof_intel_hda_common iwlmvm 
soundwire_intel soundwire_generic_allocation soundwire_cadence 
snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils mac80211 
snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi 
snd_soc_core libarc4
[628581.287695]  x86_pkg_temp_thermal