Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-02-11 Thread Patrice Duroux
Package: src:linux
Version: 6.7.4-1~exp1
Followup-For: Bug #1061449

Dear Maintainer,
Just for info, the same error occurs also with 6.7.4-1~exp1.
Regards,
Patrice

[4.067807] [ cut here ]
[4.067808] WARNING: CPU: 7 PID: 246 at
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_factory.c:387
construct_phy+0xb26/0xd60 [amdgpu]
[4.068223] Modules linked in: amdgpu(+) i915(+) drm_exec amdxcp sd_mod
gpu_sched drm_buddy nvme drm_suballoc_helper i2c_algo_bit drm_display_helper
nvme_core ahci hid_generic liba
hci crc32_pclmul crc32c_intel t10_pi cec libata rc_core crc64_rocksoft_generic
drm_ttm_helper ghash_clmulni_intel i2c_hid_acpi crc64_rocksoft sha512_ssse3 ttm
crc_t10dif i2c_hid rtsx_
pci_sdmmc sha512_generic xhci_pci crct10dif_generic drm_kms_helper xhci_hcd
mmc_core scsi_mod hid intel_lpss_pci crct10dif_pclmul i2c_i801 sha256_ssse3
intel_lpss crc64 thunderbolt dr
m e1000e usbcore sha1_ssse3 rtsx_pci video i2c_smbus crct10dif_common
usb_common scsi_common idma64 battery wmi button aesni_intel crypto_simd cryptd
[4.068253] CPU: 7 PID: 246 Comm: (udev-worker) Not tainted 6.7-amd64 #1
Debian 6.7.4-1~exp1
[4.068256] Hardware name: Dell Inc. Precision 7540/0T2FXT, BIOS 1.29.0
11/03/2023
[4.068257] RIP: 0010:construct_phy+0xb26/0xd60 [amdgpu]
[4.068593] Code: b9 01 00 00 00 83 fe 01 74 40 48 8b 82 f8 03 00 00 89 f2
48 c7 c6 70 57 a4 c1 48 8b 40 10 48 8b 00 48 8b 78 08 e8 fa b5 3e e9 <0f> 0b 49
8b 87 d0 01 00 00 b9 0f 0
0 00 00 48 8b 80 e8 04 00 00 48
[4.068595] RSP: 0018:b5d88083f318 EFLAGS: 00010246
[4.068596] RAX:  RBX: a0f433036000 RCX:
c000efff
[4.068598] RDX:  RSI: efff RDI:
0001
[4.068598] RBP: a0f4133c3600 R08:  R09:
b5d88083f0e0
[4.068599] R10: 0003 R11: abcd2428 R12:
b5d88083f384
[4.068600] R13: c1905120 R14: b5d88083f6e0 R15:
a0f433e11000
[4.068601] FS:  7f9eab8428c0() GS:a0f78c3c()
knlGS:
[4.068603] CS:  0010 DS:  ES:  CR0: 80050033
[4.068604] CR2: 7ffe7d8ebf88 CR3: 0001048aa002 CR4:
003706f0
[4.068605] DR0:  DR1:  DR2:

[4.068606] DR3:  DR6: fffe0ff0 DR7:
0400
[4.068607] Call Trace:
[4.068609]  
[4.068610]  ? construct_phy+0xb26/0xd60 [amdgpu]
[4.068947]  ? __warn+0x81/0x130
[4.068950]  ? construct_phy+0xb26/0xd60 [amdgpu]
[4.069285]  ? report_bug+0x171/0x1a0
[4.069288]  ? handle_bug+0x3c/0x80
[4.069290]  ? exc_invalid_op+0x17/0x70
[4.069291]  ? asm_exc_invalid_op+0x1a/0x20
[4.069294]  ? construct_phy+0xb26/0xd60 [amdgpu]
[4.069627]  ? construct_phy+0xb26/0xd60 [amdgpu]
[4.069965]  link_create+0x1b2/0x200 [amdgpu]
[4.070298]  create_links+0x135/0x420 [amdgpu]
[4.070614]  dc_create+0x321/0x640 [amdgpu]
[4.070931]  amdgpu_dm_init.isra.0+0x2a0/0x1df0 [amdgpu]
[4.071254]  ? sysvec_apic_timer_interrupt+0xe/0x90
[4.071257]  ? asm_sysvec_apic_timer_interrupt+0x1a/0x20
[4.071259]  ? delay_tsc+0x1e/0xa0
[4.071262]  dm_hw_init+0x12/0x30 [amdgpu]
[4.071587]  amdgpu_device_init+0x1e42/0x24a0 [amdgpu]
[4.071838]  amdgpu_driver_load_kms+0x19/0x190 [amdgpu]
[4.072087]  amdgpu_pci_probe+0x165/0x4c0 [amdgpu]
[4.072335]  local_pci_probe+0x42/0xa0
[4.072338]  pci_device_probe+0xc7/0x240
[4.072340]  really_probe+0x19b/0x3e0
[4.072343]  ? __pfx___driver_attach+0x10/0x10
[4.072344]  __driver_probe_device+0x78/0x160
[4.072346]  driver_probe_device+0x1f/0x90
[4.072348]  __driver_attach+0xd2/0x1c0
[4.072349]  bus_for_each_dev+0x85/0xd0
[4.072352]  bus_add_driver+0x116/0x220
[4.072354]  driver_register+0x59/0x100
[4.072356]  ? __pfx_amdgpu_init+0x10/0x10 [amdgpu]
[4.072601]  do_one_initcall+0x58/0x320
[4.072604]  do_init_module+0x60/0x240
[4.072606]  init_module_from_file+0x89/0xe0
[4.072608]  ? generic_update_time+0x4e/0x60
[4.072612]  idempotent_init_module+0x120/0x2b0
[4.072614]  __x64_sys_finit_module+0x5e/0xb0
[4.072616]  do_syscall_64+0x61/0x120
[4.072619]  ? exit_to_user_mode_prepare+0x40/0x1e0
[4.072621]  ? syscall_exit_to_user_mode+0x2b/0x40
[4.072622]  ? do_syscall_64+0x70/0x120
[4.072624]  ? syscall_exit_to_user_mode+0x2b/0x40
[4.072625]  ? do_syscall_64+0x70/0x120
[4.072627]  ? syscall_exit_to_user_mode+0x2b/0x40
[4.072628]  ? do_syscall_64+0x70/0x120
[4.072630]  ? exit_to_user_mode_prepare+0x40/0x1e0
[4.072631]  ? syscall_exit_to_user_mode+0x2b/0x40
[4.072633]  ? do_syscall_64+0x70/0x120
[4.072634]  entry_SYSCALL_64_after_hwframe+0x6e/0x76
[4.072636] RIP: 0033:0x7f9eac011059
[4.072638] Code: 08 89 e8 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 89
f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01
f0 

Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-28 Thread Patrice Duroux
After a test, the patch at
https://gitlab.freedesktop.org/drm/amd/-/issues/3122#note_2252835
is working fine on my side.
Many thanks to Diederik!

Le dim. 28 janv. 2024 à 15:00, Diederik de Haas
 a écrit :
>
> Patrice,
>
> On Sunday, 28 January 2024 11:44:59 CET Linux regression tracking (Thorsten
> Leemhuis) wrote:
> > On 27.01.24 14:14, Salvatore Bonaccorso wrote:
> > > In Debian (https://bugs.debian.org/1061449) we got the following
> > > quotred report:
> > >
> > > On Wed, Jan 24, 2024 at 07:38:16PM +0100, Patrice Duroux wrote:
> > >> Giving a try to 6.7, here is a message extracted from dmesg:
> > >> [4.177226] [ cut here ]
> > >> [4.177227] WARNING: CPU: 6 PID: 248 at
> > >> drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_factory.c:387
> > >> construct_phy+0xb26/0xd60 [amdgpu]
> > >
> > > [...]
> >
> > Not my area of expertise, but looks a lot like a duplicate of
> > https://gitlab.freedesktop.org/drm/amd/-/issues/3122#note_2252835
> >
> > Mario (now CCed) already prepared a patch for that issue that seems to work.
>
> If you can build and test a kernel with the `test-patches` script like before
> with the attached patch, but *without* the previous patch (which just reverted
> commit b17ef04bf3a4346d66404454d6a646343ddc9749), that would be really useful.
>
> When you've done that, do a Reply-All to Thorsten Leemhuis' message so that
> everyone sees the results. Optionally also reply to the gitlab issue Thorsten
> mentioned.
>
> (It didn't seem useful to send these instructions to all the people/lists)



Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-28 Thread Diederik de Haas
Patrice,

On Sunday, 28 January 2024 11:44:59 CET Linux regression tracking (Thorsten 
Leemhuis) wrote:
> On 27.01.24 14:14, Salvatore Bonaccorso wrote:
> > In Debian (https://bugs.debian.org/1061449) we got the following
> > quotred report:
> > 
> > On Wed, Jan 24, 2024 at 07:38:16PM +0100, Patrice Duroux wrote:
> >> Giving a try to 6.7, here is a message extracted from dmesg:
> >> [4.177226] [ cut here ]
> >> [4.177227] WARNING: CPU: 6 PID: 248 at
> >> drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_factory.c:387
> >> construct_phy+0xb26/0xd60 [amdgpu]
> > 
> > [...]
> 
> Not my area of expertise, but looks a lot like a duplicate of
> https://gitlab.freedesktop.org/drm/amd/-/issues/3122#note_2252835
> 
> Mario (now CCed) already prepared a patch for that issue that seems to work.

If you can build and test a kernel with the `test-patches` script like before 
with the attached patch, but *without* the previous patch (which just reverted 
commit b17ef04bf3a4346d66404454d6a646343ddc9749), that would be really useful.

When you've done that, do a Reply-All to Thorsten Leemhuis' message so that 
everyone sees the results. Optionally also reply to the gitlab issue Thorsten 
mentioned.

(It didn't seem useful to send these instructions to all the people/lists)diff --git a/drivers/gpu/drm/amd/display/dc/link/link_factory.c b/drivers/gpu/drm/amd/display/dc/link/link_factory.c
index 37d3027c32dc..cf45d33ce2b7 100644
--- a/drivers/gpu/drm/amd/display/dc/link/link_factory.c
+++ b/drivers/gpu/drm/amd/display/dc/link/link_factory.c
@@ -377,17 +377,21 @@ static uint8_t translate_dig_inst_to_pwrseq_inst(struct dc_link *link)

DC_LOGGER_INIT(dc_ctx->logger);

-   switch (link->eng_id) {
-   case ENGINE_ID_DIGA:
+   if (dc_ctx->dce_version >= DCN_VERSION_3_0) {
+   switch (link->eng_id) {
+   case ENGINE_ID_DIGA:
+   pwrseq_inst = 0;
+   break;
+   case ENGINE_ID_DIGB:
+   pwrseq_inst = 1;
+   break;
+   default:
+   DC_LOG_WARNING("Unsupported pwrseq engine id: %d!\n", link->eng_id);
+   ASSERT(false);
+   break;
+   }
+   } else {
pwrseq_inst = 0;
-   break;
-   case ENGINE_ID_DIGB:
-   pwrseq_inst = 1;
-   break;
-   default:
-   DC_LOG_WARNING("Unsupported pwrseq engine id: %d!\n", link->eng_id);
-   ASSERT(false);
-   break;
}

return pwrseq_inst;



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


Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-28 Thread Linux regression tracking (Thorsten Leemhuis)
On 27.01.24 14:14, Salvatore Bonaccorso wrote:
>
> In Debian (https://bugs.debian.org/1061449) we got the following
> quotred report:
> 
> On Wed, Jan 24, 2024 at 07:38:16PM +0100, Patrice Duroux wrote:
>>
>> Giving a try to 6.7, here is a message extracted from dmesg:
>> [4.177226] [ cut here ]
>> [4.177227] WARNING: CPU: 6 PID: 248 at
>> drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_factory.c:387
>> construct_phy+0xb26/0xd60 [amdgpu]
> [...]

Not my area of expertise, but looks a lot like a duplicate of
https://gitlab.freedesktop.org/drm/amd/-/issues/3122#note_2252835

Mario (now CCed) already prepared a patch for that issue that seems to work.

HTH, Ciao, Thorsten



Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-27 Thread Salvatore Bonaccorso
Hi

In Debian (https://bugs.debian.org/1061449) we got the following
quotred report:

On Wed, Jan 24, 2024 at 07:38:16PM +0100, Patrice Duroux wrote:
> Package: src:linux
> Version: 6.7.1-1~exp1
> Severity: normal
> 
> Dear Maintainer,
> 
> Giving a try to 6.7, here is a message extracted from dmesg:
> 
> [4.177226] [ cut here ]
> [4.177227] WARNING: CPU: 6 PID: 248 at
> drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_factory.c:387
> construct_phy+0xb26/0xd60 [amdgpu]
> [4.177658] Modules linked in: amdgpu(+) i915(+) sd_mod drm_exec amdxcp
> gpu_sched drm_buddy nvme i2c_algo_bit drm_suballoc_helper drm_display_helper
> ahci nvme_core hid_generic crc32_pclmul libahci crc32c_intel t10_pi cec libata
> crc64_rocksoft_generic ghash_clmulni_intel rc_core drm_ttm_helper
> crc64_rocksoft sha512_ssse3 i2c_hid_acpi ttm rtsx_pci_sdmmc i2c_hid xhci_pci
> crc_t10dif sha512_generic mmc_core scsi_mod xhci_hcd drm_kms_helper video hid
> crct10dif_generic intel_lpss_pci crct10dif_pclmul i2c_i801 sha256_ssse3
> intel_lpss crc64 thunderbolt drm e1000e usbcore sha1_ssse3 rtsx_pci i2c_smbus
> scsi_common crct10dif_common idma64 usb_common battery wmi button aesni_intel
> crypto_simd cryptd
> [4.177689] CPU: 6 PID: 248 Comm: (udev-worker) Not tainted 6.7-amd64 #1
> Debian 6.7.1-1~exp1
> [4.177691] Hardware name: Dell Inc. Precision 7540/0T2FXT, BIOS 1.29.0
> 11/03/2023
> [4.177692] RIP: 0010:construct_phy+0xb26/0xd60 [amdgpu]
> [4.178050] Code: b9 01 00 00 00 83 fe 01 74 40 48 8b 82 f8 03 00 00 89 f2
> 48 c7 c6 00 35 a7 c1 48 8b 40 10 48 8b 00 48 8b 78 08 e8 ba b7 5b fb <0f> 0b 
> 49
> 8b 87 d0 01 00 00 b9 0f 00 00 00 48 8b 80 e8 04 00 00 48
> [4.178052] RSP: 0018:aad300857408 EFLAGS: 00010246
> [4.178053] RAX:  RBX: 96df636a1700 RCX:
> c000efff
> [4.178054] RDX:  RSI: efff RDI:
> 0001
> [4.178055] RBP: 96df4d379c00 R08:  R09:
> aad3008571d0
> [4.178056] R10: 0003 R11: bded2428 R12:
> aad300857474
> [4.178057] R13: c1933140 R14: aad3008577d0 R15:
> 96df43e82000
> [4.178058] FS:  7fcd5d9648c0() GS:96e2cc38()
> knlGS:
> [4.178060] CS:  0010 DS:  ES:  CR0: 80050033
> [4.178061] CR2: 7fcd5d932a6d CR3: 000103e9a004 CR4:
> 003706f0
> [4.178062] DR0:  DR1:  DR2:
> 
> [4.178063] DR3:  DR6: fffe0ff0 DR7:
> 0400
> [4.178063] Call Trace:
> [4.178066]  
> [4.178067]  ? construct_phy+0xb26/0xd60 [amdgpu]
> [4.178422]  ? __warn+0x81/0x130
> [4.178426]  ? construct_phy+0xb26/0xd60 [amdgpu]
> [4.178784]  ? report_bug+0x171/0x1a0
> [4.178787]  ? handle_bug+0x3c/0x80
> [4.178789]  ? exc_invalid_op+0x17/0x70
> [4.178790]  ? asm_exc_invalid_op+0x1a/0x20
> [4.178793]  ? construct_phy+0xb26/0xd60 [amdgpu]
> [4.179149]  ? construct_phy+0xb26/0xd60 [amdgpu]
> [4.179507]  link_create+0x1b2/0x200 [amdgpu]
> [4.179865]  create_links+0x135/0x420 [amdgpu]
> [4.180196]  dc_create+0x321/0x640 [amdgpu]
> [4.180529]  amdgpu_dm_init.isra.0+0x2a0/0x1ed0 [amdgpu]
> [4.180881]  ? sysvec_apic_timer_interrupt+0xe/0x90
> [4.180883]  ? asm_sysvec_apic_timer_interrupt+0x1a/0x20
> [4.180885]  ? delay_tsc+0x37/0xa0
> [4.180889]  dm_hw_init+0x12/0x30 [amdgpu]
> [4.181240]  amdgpu_device_init+0x1e42/0x24a0 [amdgpu]
> [4.181517]  amdgpu_driver_load_kms+0x19/0x190 [amdgpu]
> [4.181793]  amdgpu_pci_probe+0x165/0x4c0 [amdgpu]
> [4.182067]  local_pci_probe+0x42/0xa0
> [4.182070]  pci_device_probe+0xc7/0x240
> [4.182072]  really_probe+0x19b/0x3e0
> [4.182075]  ? __pfx___driver_attach+0x10/0x10
> [4.182076]  __driver_probe_device+0x78/0x160
> [4.182078]  driver_probe_device+0x1f/0x90
> [4.182079]  __driver_attach+0xd2/0x1c0
> [4.182081]  bus_for_each_dev+0x85/0xd0
> [4.182083]  bus_add_driver+0x116/0x220
> [4.182085]  driver_register+0x59/0x100
> [4.182087]  ? __pfx_amdgpu_init+0x10/0x10 [amdgpu]
> [4.182356]  do_one_initcall+0x58/0x320
> [4.182359]  do_init_module+0x60/0x240
> [4.182361]  init_module_from_file+0x89/0xe0
> [4.182364]  idempotent_init_module+0x120/0x2b0
> [4.182366]  __x64_sys_finit_module+0x5e/0xb0
> [4.182367]  do_syscall_64+0x61/0x120
> [4.182370]  ? do_syscall_64+0x70/0x120
> [4.182372]  entry_SYSCALL_64_after_hwframe+0x6e/0x76
> [4.182375] RIP: 0033:0x7fcd5e130f19
> [4.182376] Code: 08 89 e8 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 89
> f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 
> 01
> f0 ff ff 73 01 c3 48 8b 0d cf 1e 0d 00 f7 d8 64 89 01 48
> [4.182378] RSP: 002b:7ffd314afa38 EFLAGS: 0246 ORIG_RAX:
> 0139
> [4.182379] RAX: ffda 

Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-24 Thread Diederik de Haas
Control: tag -1 =upstream

On Wednesday, 24 January 2024 21:41:29 CET Patrice Duroux wrote:
> Finally, no more complaints!
> 
> $ uname -a
> Linux kos-moceratops 6.7+unreleased-amd64 #1 SMP PREEMPT_DYNAMIC
> Debian 6.7.1-1~exp1a~test (2024-01-24) x86_64 GNU/Linux

Excellent, now we know commit b17ef04bf3a4346d66404454d6a646343ddc9749 
introduced the regression.
 
> Does this need further testing from my side?

No, but it should be reported upstream so that an actual fix can be made.
Unfortunately the commit doesn't link to a/the patch discussion (on f.e. 
lore.kernel.org), so I don't know where it should be reported.

Hopefully someone else does ...

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


Processed: Re: Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-24 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 =upstream
Bug #1061449 [src:linux] linux-image-6.7-amd64: a boot message from amdgpu
Added tag(s) upstream; removed tag(s) moreinfo.

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



Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-24 Thread Patrice Duroux
Finally, no more complaints!

$ uname -a
Linux kos-moceratops 6.7+unreleased-amd64 #1 SMP PREEMPT_DYNAMIC
Debian 6.7.1-1~exp1a~test (2024-01-24) x86_64 GNU/Linux

$ sudo dmesg | grep '\(amdgpu\|drm\)'
[1.095216] ACPI: bus type drm_connector registered
[2.085314] i915 :00:02.0: [drm] VT-d active for gfx access
[2.085425] i915 :00:02.0: [drm] Using Transparent Hugepages
[2.087746] i915 :00:02.0: [drm] Finished loading DMC firmware
i915/kbl_dmc_ver1_04.bin (v1.4)
[3.608758] [drm] amdgpu kernel modesetting enabled.
[3.608767] amdgpu: vga_switcheroo: detected switching method
\_SB_.PCI0.GFX0.ATPX handle
[3.608784] amdgpu: ATPX version 1, functions 0x0033
[3.608830] amdgpu: ATPX Hybrid Graphics
[3.610446] amdgpu: Virtual CRAT table created for CPU
[3.610455] amdgpu: Topology: Add CPU node
[3.610550] amdgpu :01:00.0: enabling device ( -> 0003)
[3.610586] [drm] initializing kernel modesetting (POLARIS12
0x1002:0x6981 0x1028:0x0926 0x00).
[3.630941] [drm] register mmio base: 0xB430
[3.630944] [drm] register mmio size: 262144
[3.631086] [drm] add ip block number 0 
[3.631087] [drm] add ip block number 1 
[3.631088] [drm] add ip block number 2 
[3.631089] [drm] add ip block number 3 
[3.631089] [drm] add ip block number 4 
[3.631090] [drm] add ip block number 5 
[3.631091] [drm] add ip block number 6 
[3.631091] [drm] add ip block number 7 
[3.631092] [drm] add ip block number 8 
[3.642892] amdgpu :01:00.0: amdgpu: Fetched VBIOS from ATRM
[3.642895] amdgpu: ATOM BIOS: BR43850.001
[3.642927] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_sdma.bin
[3.642991] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_sdma1.bin
[3.643023] [drm] UVD is enabled in VM mode
[3.643024] [drm] UVD ENC is enabled in VM mode
[3.643026] [drm] VCE enabled in VM mode
[3.643027] amdgpu :01:00.0: amdgpu: Trusted Memory Zone (TMZ)
feature not supported
[3.643036] [drm] GPU posting now...
[3.755975] [drm] vm size is 64 GB, 2 levels, block size is 10-bit,
fragment size is 9-bit
[3.756017] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_k_mc.bin
[3.756122] amdgpu :01:00.0: BAR 2: releasing [mem
0x8000-0x801f 64bit pref]
[3.756124] amdgpu :01:00.0: BAR 0: releasing [mem
0x7000-0x7fff 64bit pref]
[3.756142] amdgpu :01:00.0: BAR 0: assigned [mem
0x41-0x41 64bit pref]
[3.756147] amdgpu :01:00.0: BAR 2: assigned [mem
0x408000-0x40801f 64bit pref]
[3.756162] amdgpu :01:00.0: amdgpu: VRAM: 4096M
0x00F4 - 0x00F4 (4096M used)
[3.756163] amdgpu :01:00.0: amdgpu: GART: 256M
0x00FF - 0x00FF0FFF
[3.756174] [drm] Detected VRAM RAM=4096M, BAR=4096M
[3.756175] [drm] RAM width 128bits GDDR5
[3.756337] [drm] amdgpu: 4096M of VRAM memory ready
[3.756338] [drm] amdgpu: 7879M of GTT memory ready.
[3.756357] [drm] GART: num cpu pages 65536, num gpu pages 65536
[3.756874] [drm] PCIE GART of 256M enabled (table at 0x00F4FFF8).
[3.756946] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_pfp_2.bin
[3.756996] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_me_2.bin
[3.757042] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_ce_2.bin
[3.757063] [drm] Chained IB support enabled!
[3.757072] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_rlc.bin
[3.757146] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_mec_2.bin
[3.757726] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_mec2_2.bin
[3.758564] amdgpu: hwmgr_sw_init smu backed is polaris10_smu
[3.758620] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_uvd.bin
[3.759394] [drm] Found UVD firmware Version: 1.130 Family ID: 16
[3.760073] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_vce.bin
[3.760419] [drm] Found VCE firmware Version: 53.26 Binary ID: 3
[3.760798] amdgpu :01:00.0: firmware: direct-loading firmware
amdgpu/polaris12_k_smc.bin
[4.092386] [drm] Display Core v3.2.259 initialized on DCE 11.2
[4.636780] i915 :00:02.0: [drm] *ERROR* Failed to probe lspcon
[4.636791] [drm] Initialized i915 1.6.0 20230929 for :00:02.0 on minor 0
[5.207332] i915 :00:02.0: [drm] *ERROR* Failed to probe lspcon
[5.207335] i915 :00:02.0: [drm] *ERROR* LSPCON init failed on port D
[5.607371] fbcon: i915drmfb (fb0) is primary device
[5.629068] i915 :00:02.0: [drm] fb0: i915drmfb frame buffer device
[6.211671] i915 :00:02.0: [drm] *ERROR* Failed to probe lspcon
[6.211682] i915 :00:02.0: [drm] *ERROR* LSPCON init failed on port D
[7.194222] 

Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-24 Thread Diederik de Haas
Control: tag -1 moreinfo

On Wednesday, 24 January 2024 19:38:16 CET Patrice Duroux wrote:
> Package: src:linux
> Version: 6.7.1-1~exp1
> Severity: normal
> 
> Giving a try to 6.7, here is a message extracted from dmesg:

Is that dmesg output from 6.7(.0) or 6.7.1?
If from 6.7.1, does the error NOT occur with 6.7.0?
If that's the case, can you test the attached patch with the `test-patches`
script? See the following link for instructions:
https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#id-1.6.6.4>From 48e0efa8ff3b5f97cd2b12040b676dad09dbcefd Mon Sep 17 00:00:00 2001
From: Diederik de Haas 
Date: Wed, 24 Jan 2024 19:59:35 +0100
Subject: [PATCH] Revert "drm/amd/display: Pass pwrseq inst for backlight and
 ABM"

This reverts commit f90fb3a482d1d4705603ab6c320de0ccd611055c.
---
 .../drm/amd/display/dc/bios/bios_parser2.c|  4 +-
 .../drm/amd/display/dc/bios/command_table2.c  | 12 ++--
 .../drm/amd/display/dc/bios/command_table2.h  |  2 +-
 .../gpu/drm/amd/display/dc/dc_bios_types.h|  2 +-
 drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c |  8 +--
 .../gpu/drm/amd/display/dc/dce/dmub_abm_lcd.c |  7 +--
 .../gpu/drm/amd/display/dc/dce/dmub_abm_lcd.h |  2 +-
 .../amd/display/dc/dcn31/dcn31_panel_cntl.c   |  5 +-
 .../amd/display/dc/hwss/dce110/dce110_hwseq.c | 16 ++---
 .../amd/display/dc/hwss/dcn21/dcn21_hwseq.c   | 36 +++
 drivers/gpu/drm/amd/display/dc/inc/hw/abm.h   |  3 +-
 .../drm/amd/display/dc/inc/hw/panel_cntl.h|  2 -
 .../drm/amd/display/dc/link/link_factory.c| 59 ++-
 .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h   | 14 +
 14 files changed, 53 insertions(+), 119 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
index b5b29451d2db..2d1f5efa9091 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
@@ -1698,7 +1698,7 @@ static enum bp_result bios_parser_enable_disp_power_gating(
 static enum bp_result bios_parser_enable_lvtma_control(
 	struct dc_bios *dcb,
 	uint8_t uc_pwr_on,
-	uint8_t pwrseq_instance,
+	uint8_t panel_instance,
 	uint8_t bypass_panel_control_wait)
 {
 	struct bios_parser *bp = BP_FROM_DCB(dcb);
@@ -1706,7 +1706,7 @@ static enum bp_result bios_parser_enable_lvtma_control(
 	if (!bp->cmd_tbl.enable_lvtma_control)
 		return BP_RESULT_FAILURE;
 
-	return bp->cmd_tbl.enable_lvtma_control(bp, uc_pwr_on, pwrseq_instance, bypass_panel_control_wait);
+	return bp->cmd_tbl.enable_lvtma_control(bp, uc_pwr_on, panel_instance, bypass_panel_control_wait);
 }
 
 static bool bios_parser_is_accelerated_mode(
diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table2.c b/drivers/gpu/drm/amd/display/dc/bios/command_table2.c
index ab0adabf9dd4..90a02d7bd3da 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/command_table2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/command_table2.c
@@ -976,7 +976,7 @@ static unsigned int get_smu_clock_info_v3_1(struct bios_parser *bp, uint8_t id)
 static enum bp_result enable_lvtma_control(
 	struct bios_parser *bp,
 	uint8_t uc_pwr_on,
-	uint8_t pwrseq_instance,
+	uint8_t panel_instance,
 	uint8_t bypass_panel_control_wait);
 
 static void init_enable_lvtma_control(struct bios_parser *bp)
@@ -989,7 +989,7 @@ static void init_enable_lvtma_control(struct bios_parser *bp)
 static void enable_lvtma_control_dmcub(
 	struct dc_dmub_srv *dmcub,
 	uint8_t uc_pwr_on,
-	uint8_t pwrseq_instance,
+	uint8_t panel_instance,
 	uint8_t bypass_panel_control_wait)
 {
 
@@ -1002,8 +1002,8 @@ static void enable_lvtma_control_dmcub(
 			DMUB_CMD__VBIOS_LVTMA_CONTROL;
 	cmd.lvtma_control.data.uc_pwr_action =
 			uc_pwr_on;
-	cmd.lvtma_control.data.pwrseq_inst =
-			pwrseq_instance;
+	cmd.lvtma_control.data.panel_inst =
+			panel_instance;
 	cmd.lvtma_control.data.bypass_panel_control_wait =
 			bypass_panel_control_wait;
 	dm_execute_dmub_cmd(dmcub->ctx, , DM_DMUB_WAIT_TYPE_WAIT);
@@ -1012,7 +1012,7 @@ static void enable_lvtma_control_dmcub(
 static enum bp_result enable_lvtma_control(
 	struct bios_parser *bp,
 	uint8_t uc_pwr_on,
-	uint8_t pwrseq_instance,
+	uint8_t panel_instance,
 	uint8_t bypass_panel_control_wait)
 {
 	enum bp_result result = BP_RESULT_FAILURE;
@@ -1021,7 +1021,7 @@ static enum bp_result enable_lvtma_control(
 	bp->base.ctx->dc->debug.dmub_command_table) {
 		enable_lvtma_control_dmcub(bp->base.ctx->dmub_srv,
 uc_pwr_on,
-pwrseq_instance,
+panel_instance,
 bypass_panel_control_wait);
 		return BP_RESULT_OK;
 	}
diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table2.h b/drivers/gpu/drm/amd/display/dc/bios/command_table2.h
index 41c8c014397f..b6d09bf6cf72 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/command_table2.h
+++ b/drivers/gpu/drm/amd/display/dc/bios/command_table2.h
@@ -96,7 +96,7 @@ struct cmd_tbl {
 			struct bios_parser *bp, uint8_t id);
 	enum bp_result (*enable_lvtma_control)(struct bios_parser *bp,
 			uint8_t 

Processed: Re: Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-24 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 moreinfo
Bug #1061449 [src:linux] linux-image-6.7-amd64: a boot message from amdgpu
Added tag(s) moreinfo.

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



Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-24 Thread Patrice Duroux
Yes, the message is from the version 6.7.1-1~exp1, sorry for the doubt.
It is just because, package name is «simply»: linux-image-6.7-amd64
and so I wrote 6.7, expecting the exact version from reportbug.
I will give it a try then and be back.


Le mer. 24 janv. 2024 à 20:02, Diederik de Haas
 a écrit :
>
> Control: tag -1 moreinfo
>
> On Wednesday, 24 January 2024 19:38:16 CET Patrice Duroux wrote:
> > Package: src:linux
> > Version: 6.7.1-1~exp1
> > Severity: normal
> >
> > Giving a try to 6.7, here is a message extracted from dmesg:
>
> Is that dmesg output from 6.7(.0) or 6.7.1?
> If from 6.7.1, does the error NOT occur with 6.7.0?
> If that's the case, can you test the attached patch with the `test-patches`
> script? See the following link for instructions:
> https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#id-1.6.6.4



Bug#1061449: linux-image-6.7-amd64: a boot message from amdgpu

2024-01-24 Thread Patrice Duroux
Package: src:linux
Version: 6.7.1-1~exp1
Severity: normal

Dear Maintainer,

Giving a try to 6.7, here is a message extracted from dmesg:

[4.177226] [ cut here ]
[4.177227] WARNING: CPU: 6 PID: 248 at
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_factory.c:387
construct_phy+0xb26/0xd60 [amdgpu]
[4.177658] Modules linked in: amdgpu(+) i915(+) sd_mod drm_exec amdxcp
gpu_sched drm_buddy nvme i2c_algo_bit drm_suballoc_helper drm_display_helper
ahci nvme_core hid_generic crc32_pclmul libahci crc32c_intel t10_pi cec libata
crc64_rocksoft_generic ghash_clmulni_intel rc_core drm_ttm_helper
crc64_rocksoft sha512_ssse3 i2c_hid_acpi ttm rtsx_pci_sdmmc i2c_hid xhci_pci
crc_t10dif sha512_generic mmc_core scsi_mod xhci_hcd drm_kms_helper video hid
crct10dif_generic intel_lpss_pci crct10dif_pclmul i2c_i801 sha256_ssse3
intel_lpss crc64 thunderbolt drm e1000e usbcore sha1_ssse3 rtsx_pci i2c_smbus
scsi_common crct10dif_common idma64 usb_common battery wmi button aesni_intel
crypto_simd cryptd
[4.177689] CPU: 6 PID: 248 Comm: (udev-worker) Not tainted 6.7-amd64 #1
Debian 6.7.1-1~exp1
[4.177691] Hardware name: Dell Inc. Precision 7540/0T2FXT, BIOS 1.29.0
11/03/2023
[4.177692] RIP: 0010:construct_phy+0xb26/0xd60 [amdgpu]
[4.178050] Code: b9 01 00 00 00 83 fe 01 74 40 48 8b 82 f8 03 00 00 89 f2
48 c7 c6 00 35 a7 c1 48 8b 40 10 48 8b 00 48 8b 78 08 e8 ba b7 5b fb <0f> 0b 49
8b 87 d0 01 00 00 b9 0f 00 00 00 48 8b 80 e8 04 00 00 48
[4.178052] RSP: 0018:aad300857408 EFLAGS: 00010246
[4.178053] RAX:  RBX: 96df636a1700 RCX:
c000efff
[4.178054] RDX:  RSI: efff RDI:
0001
[4.178055] RBP: 96df4d379c00 R08:  R09:
aad3008571d0
[4.178056] R10: 0003 R11: bded2428 R12:
aad300857474
[4.178057] R13: c1933140 R14: aad3008577d0 R15:
96df43e82000
[4.178058] FS:  7fcd5d9648c0() GS:96e2cc38()
knlGS:
[4.178060] CS:  0010 DS:  ES:  CR0: 80050033
[4.178061] CR2: 7fcd5d932a6d CR3: 000103e9a004 CR4:
003706f0
[4.178062] DR0:  DR1:  DR2:

[4.178063] DR3:  DR6: fffe0ff0 DR7:
0400
[4.178063] Call Trace:
[4.178066]  
[4.178067]  ? construct_phy+0xb26/0xd60 [amdgpu]
[4.178422]  ? __warn+0x81/0x130
[4.178426]  ? construct_phy+0xb26/0xd60 [amdgpu]
[4.178784]  ? report_bug+0x171/0x1a0
[4.178787]  ? handle_bug+0x3c/0x80
[4.178789]  ? exc_invalid_op+0x17/0x70
[4.178790]  ? asm_exc_invalid_op+0x1a/0x20
[4.178793]  ? construct_phy+0xb26/0xd60 [amdgpu]
[4.179149]  ? construct_phy+0xb26/0xd60 [amdgpu]
[4.179507]  link_create+0x1b2/0x200 [amdgpu]
[4.179865]  create_links+0x135/0x420 [amdgpu]
[4.180196]  dc_create+0x321/0x640 [amdgpu]
[4.180529]  amdgpu_dm_init.isra.0+0x2a0/0x1ed0 [amdgpu]
[4.180881]  ? sysvec_apic_timer_interrupt+0xe/0x90
[4.180883]  ? asm_sysvec_apic_timer_interrupt+0x1a/0x20
[4.180885]  ? delay_tsc+0x37/0xa0
[4.180889]  dm_hw_init+0x12/0x30 [amdgpu]
[4.181240]  amdgpu_device_init+0x1e42/0x24a0 [amdgpu]
[4.181517]  amdgpu_driver_load_kms+0x19/0x190 [amdgpu]
[4.181793]  amdgpu_pci_probe+0x165/0x4c0 [amdgpu]
[4.182067]  local_pci_probe+0x42/0xa0
[4.182070]  pci_device_probe+0xc7/0x240
[4.182072]  really_probe+0x19b/0x3e0
[4.182075]  ? __pfx___driver_attach+0x10/0x10
[4.182076]  __driver_probe_device+0x78/0x160
[4.182078]  driver_probe_device+0x1f/0x90
[4.182079]  __driver_attach+0xd2/0x1c0
[4.182081]  bus_for_each_dev+0x85/0xd0
[4.182083]  bus_add_driver+0x116/0x220
[4.182085]  driver_register+0x59/0x100
[4.182087]  ? __pfx_amdgpu_init+0x10/0x10 [amdgpu]
[4.182356]  do_one_initcall+0x58/0x320
[4.182359]  do_init_module+0x60/0x240
[4.182361]  init_module_from_file+0x89/0xe0
[4.182364]  idempotent_init_module+0x120/0x2b0
[4.182366]  __x64_sys_finit_module+0x5e/0xb0
[4.182367]  do_syscall_64+0x61/0x120
[4.182370]  ? do_syscall_64+0x70/0x120
[4.182372]  entry_SYSCALL_64_after_hwframe+0x6e/0x76
[4.182375] RIP: 0033:0x7fcd5e130f19
[4.182376] Code: 08 89 e8 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 89
f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01
f0 ff ff 73 01 c3 48 8b 0d cf 1e 0d 00 f7 d8 64 89 01 48
[4.182378] RSP: 002b:7ffd314afa38 EFLAGS: 0246 ORIG_RAX:
0139
[4.182379] RAX: ffda RBX: 5611ee7f84d0 RCX:
7fcd5e130f19
[4.182380] RDX:  RSI: 7fcd5e2644f5 RDI:
0024
[4.182381] RBP:  R08: 0040 R09:
5611ee7d3140
[4.182382] R10: 0038 R11: 0246 R12:
7fcd5e2644f5
[4.182383] R13: 0002 R14: 5611ee7f0670 R15: