Bug 107595 - amd-staging-drm-next: BUG: unable to handle kernel NULL pointer dereference at 0000000000000018 - R4 Mullins
Summary: amd-staging-drm-next: BUG: unable to handle kernel NULL pointer dereference a...
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-16 19:32 UTC by Przemek
Modified: 2018-09-17 14:43 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
oops kernel message (7.70 KB, text/plain)
2018-08-16 19:32 UTC, Przemek
no flags Details
pstore kernel oops message with applied patches (24.16 KB, text/plain)
2018-08-23 13:19 UTC, Przemek
no flags Details

Description Przemek 2018-08-16 19:32:25 UTC
Created attachment 141148 [details]
oops kernel message

Booting latest amd-staging-drm-next is causing kernel OOPS.

Hardware is Lenovo netbook G50-45 A6 6310 APU with R4 Mullins. Kernel booted with "amdgpu.dc=1" and "amdgpu.dpm=1". 

Blank eDP screen can be caused by another bug: https://bugs.freedesktop.org/show_bug.cgi?id=106940, but three is no picture on connected HDMI monitor also (opposite to the situation in mentioned bug report).

Panic message, that I've got from pstore, attached.
Comment 1 Alex Deucher 2018-08-16 19:52:58 UTC
What physical connectors are on your system?
Comment 2 Przemek 2018-08-16 20:57:29 UTC
Internal - eDP - Laptop screen.
External VGA and HDMI.
Comment 3 Przemek 2018-08-16 23:49:12 UTC
Bisected, if it helps.

git bisect log
git bisect start
# bad: [5024f8dfe478c1f56ef8812dabc55f2793024e93] drm/amdgpu:change VEGA booting with firmware loaded by PSP
git bisect bad 5024f8dfe478c1f56ef8812dabc55f2793024e93
# good: [5c16f36f6f003b4415237acca59384a074cd8030] drm/amd/powerplay: Set higher SCLK&MCLK frequency than dpm7 in OD (v2)
git bisect good 5c16f36f6f003b4415237acca59384a074cd8030
# good: [c90fca951e90ba470a3dc6087667edffcf8db21b] Merge tag 'powerpc-4.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
git bisect good c90fca951e90ba470a3dc6087667edffcf8db21b
# good: [ab0b2e59323cd3972e5f011fbbf3868a4ec360dd] Merge tag 'upstream-4.18-rc1' of git://git.infradead.org/linux-ubifs
git bisect good ab0b2e59323cd3972e5f011fbbf3868a4ec360dd
# good: [19785cf93b6c4252981894394f2dbd35c5e5d1ec] Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal
git bisect good 19785cf93b6c4252981894394f2dbd35c5e5d1ec
# good: [3069290d9d6a9afa93661c299419089eea57164b] Merge tag 'drm-intel-next-2018-06-06' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
git bisect good 3069290d9d6a9afa93661c299419089eea57164b
# bad: [c6d707136b4de409c7e74825e1f39e17e4b0797c] drm/amdgpu: Add support for logging process info in amdgpu_vm.
git bisect bad c6d707136b4de409c7e74825e1f39e17e4b0797c
# good: [565c17b5f02dacd8430da8d95bbba60587f339af] Merge branch 'drm-next-4.19' of git://people.freedesktop.org/~agd5f/linux into drm-next
git bisect good 565c17b5f02dacd8430da8d95bbba60587f339af
# good: [adbf1d96771e898ea12b0c3f448a60c4bcf19979] drm/amd/display: Program vsc_infopacket in commit_planes_for_stream
git bisect good adbf1d96771e898ea12b0c3f448a60c4bcf19979
# bad: [a7dd65771617773335fc289e8cb6b75346331799] drm/amdgpu/vce: simplify vce instance setup
git bisect bad a7dd65771617773335fc289e8cb6b75346331799
# bad: [35e1371a89eb98069116dabfdfabdc6a9dbfda9e] drm/amd/powerplay: correct smc display config for multi monitor
git bisect bad 35e1371a89eb98069116dabfdfabdc6a9dbfda9e
# bad: [05d2638072d5b946623f96bac82673c2fa82c7e6] drm/amdgpu: Split set_pg_state into separate function
git bisect bad 05d2638072d5b946623f96bac82673c2fa82c7e6
# good: [48c17e727376169a6165682fce9338393ee6b6da] drm/amdgpu: Rename set_mmhub_powergating_by_smu to powergate_mmhub
git bisect good 48c17e727376169a6165682fce9338393ee6b6da
# bad: [3d632bde5f010ff6f9d6baa0f24cd9e2c49bdb24] drm/amd/pp: Add gfx pg support in smu through set_powergating_by_smu
git bisect bad 3d632bde5f010ff6f9d6baa0f24cd9e2c49bdb24
# bad: [561a5c83eadde747253924be2f7be9070841b7c0] drm/amd/pp: Unify powergate_uvd/vce/mmhub to set_powergating_by_smu
git bisect bad 561a5c83eadde747253924be2f7be9070841b7c0

If it seems legit, the bad commit is:
[4a67b31524d6343fd153a1256b9652df5fcf29bc] drm/amd/pp: Rename enable_per_cu_power_gating to powergate_gfx

Thanks,
Przemek.
Comment 4 Przemek 2018-08-17 05:21:13 UTC
I apologize,
it seems that I forget to make last step during yesterday bisection.

Here is what git bisect produces:

561a5c83eadde747253924be2f7be9070841b7c0 is the first bad commit
commit 561a5c83eadde747253924be2f7be9070841b7c0
Author: Rex Zhu <Rex.Zhu@amd.com>
Date:   Tue Jun 5 13:06:11 2018 +0800

    drm/amd/pp: Unify powergate_uvd/vce/mmhub to set_powergating_by_smu
    
    Some HW ip blocks need call SMU to enter/leave power gate state.
    So export common set_powergating_by_smu interface.
    
    1. keep consistent with set_clockgating_by_smu
    2. scales easily to powergate other ip(gfx) if necessary
    
    Reviewed-by: Evan Quan <evan.quan@amd.com>
    Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>

:040000 040000 7b10ae9bb22235cbd05fef91e7ba5277a413759d 716e5604c837785fd0aa6896f72eac7e36513a2f M      drivers

Thanks,
Przemek.
Comment 5 Przemek 2018-08-17 06:53:51 UTC
Full valid git bisect log:

git bisect log                  
git bisect start
# bad: [5024f8dfe478c1f56ef8812dabc55f2793024e93] drm/amdgpu:change VEGA booting with firmware loaded by PSP
git bisect bad 5024f8dfe478c1f56ef8812dabc55f2793024e93
# good: [5c16f36f6f003b4415237acca59384a074cd8030] drm/amd/powerplay: Set higher SCLK&MCLK frequency than dpm7 in OD (v2)
git bisect good 5c16f36f6f003b4415237acca59384a074cd8030
# good: [c90fca951e90ba470a3dc6087667edffcf8db21b] Merge tag 'powerpc-4.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
git bisect good c90fca951e90ba470a3dc6087667edffcf8db21b
# good: [ab0b2e59323cd3972e5f011fbbf3868a4ec360dd] Merge tag 'upstream-4.18-rc1' of git://git.infradead.org/linux-ubifs
git bisect good ab0b2e59323cd3972e5f011fbbf3868a4ec360dd
# good: [19785cf93b6c4252981894394f2dbd35c5e5d1ec] Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal
git bisect good 19785cf93b6c4252981894394f2dbd35c5e5d1ec
# good: [3069290d9d6a9afa93661c299419089eea57164b] Merge tag 'drm-intel-next-2018-06-06' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
git bisect good 3069290d9d6a9afa93661c299419089eea57164b
# bad: [c6d707136b4de409c7e74825e1f39e17e4b0797c] drm/amdgpu: Add support for logging process info in amdgpu_vm.
git bisect bad c6d707136b4de409c7e74825e1f39e17e4b0797c
# good: [565c17b5f02dacd8430da8d95bbba60587f339af] Merge branch 'drm-next-4.19' of git://people.freedesktop.org/~agd5f/linux into drm-next
git bisect good 565c17b5f02dacd8430da8d95bbba60587f339af
# good: [adbf1d96771e898ea12b0c3f448a60c4bcf19979] drm/amd/display: Program vsc_infopacket in commit_planes_for_stream
git bisect good adbf1d96771e898ea12b0c3f448a60c4bcf19979
# bad: [a7dd65771617773335fc289e8cb6b75346331799] drm/amdgpu/vce: simplify vce instance setup
git bisect bad a7dd65771617773335fc289e8cb6b75346331799
# bad: [35e1371a89eb98069116dabfdfabdc6a9dbfda9e] drm/amd/powerplay: correct smc display config for multi monitor
git bisect bad 35e1371a89eb98069116dabfdfabdc6a9dbfda9e
# bad: [05d2638072d5b946623f96bac82673c2fa82c7e6] drm/amdgpu: Split set_pg_state into separate function
git bisect bad 05d2638072d5b946623f96bac82673c2fa82c7e6
# good: [48c17e727376169a6165682fce9338393ee6b6da] drm/amdgpu: Rename set_mmhub_powergating_by_smu to powergate_mmhub
git bisect good 48c17e727376169a6165682fce9338393ee6b6da
# bad: [3d632bde5f010ff6f9d6baa0f24cd9e2c49bdb24] drm/amd/pp: Add gfx pg support in smu through set_powergating_by_smu
git bisect bad 3d632bde5f010ff6f9d6baa0f24cd9e2c49bdb24
# bad: [561a5c83eadde747253924be2f7be9070841b7c0] drm/amd/pp: Unify powergate_uvd/vce/mmhub to set_powergating_by_smu
git bisect bad 561a5c83eadde747253924be2f7be9070841b7c0
# good: [4a67b31524d6343fd153a1256b9652df5fcf29bc] drm/amd/pp: Rename enable_per_cu_power_gating to powergate_gfx
git bisect good 4a67b31524d6343fd153a1256b9652df5fcf29bc
# first bad commit: [561a5c83eadde747253924be2f7be9070841b7c0] drm/amd/pp: Unify powergate_uvd/vce/mmhub to set_powergating_by_smu
Comment 6 Michel Dänzer 2018-08-23 10:45:38 UTC
Does https://patchwork.freedesktop.org/series/48613/ (in particular the first patch) help?
Comment 7 Przemek 2018-08-23 12:02:12 UTC
The patches (all three) applies fine, but I cannot compile kernel due to:

"drivers/gpu/drm/amd/amdgpu/kv_dpm.c: In function ‘kv_dpm_process_interrupt’:
drivers/gpu/drm/amd/amdgpu/kv_dpm.c:3210:24: error: ‘handle’ undeclared (first use in this function); did you mean ‘ihandle’?
   kv_dpm_powergate_vce(handle, gate);
                        ^~~~~~
                        ihandle
drivers/gpu/drm/amd/amdgpu/kv_dpm.c:3210:24: note: each undeclared identifier is reported only once for each function it appears in
drivers/gpu/drm/amd/amdgpu/kv_dpm.c:3210:32: error: ‘gate’ undeclared (first use in this function); did you mean ‘path’?
   kv_dpm_powergate_vce(handle, gate);
                                ^~~~
                                path
make[4]: *** [scripts/Makefile.build:317: drivers/gpu/drm/amd/amdgpu/kv_dpm.o] Błąd 1
make[4]: *** Oczekiwanie na niezakończone zadania...."

Repo is git fetched to the latest (today's). Did I miss something?

Thanks,
Przemek.
Comment 8 Przemek 2018-08-23 12:09:10 UTC
compiling with gcc 8.2.0-r2.
Comment 9 Przemek 2018-08-23 13:19:05 UTC
Created attachment 141248 [details]
pstore kernel oops message with applied patches

(In reply to Przemek from comment #7)
> Repo is git fetched to the latest (today's). Did I miss something?
> 
> Thanks,
> Przemek.
Yes I did.
Fetching once again the online repo resolved the problem with compilation, but those patches didnt help with kernel oops.

I have attached full pstore message log.

Thanks,
Przemek.
Comment 10 Michel Dänzer 2018-08-23 14:04:50 UTC
Thanks for testing the patches. Looks like there's still an issue with DC.
Comment 11 Pontus Gråskæg 2018-09-10 11:00:55 UTC
I appear to be experiencing the same bug. Same set of internal and external connectors. My hardware is Lenovo G75 A10-7300 [Kaveri]

Kernel booted with 
 - amdgpu.cik_support=1 
 - radeon.cik_support=0 
 - amdgpu.dc=1 
 - drm.debug=1

The internal (eDP) display fails to work. The VGA display doesn't work either (as expected), and I can't comment on the HDMI as I don't have an HDMI monitor. Used ssh to get in and copy the dmesg buffer.

I do not have the capability to compile kernel+patches. Sorry.

graaskaeg

[    1.963843] [drm] radeon kernel modesetting enabled.
[    1.965577] checking generic (e0000000 7f0000) vs hw (e0000000 10000000)
[    1.965579] fb: switching to radeondrmfb from EFI VGA
[    1.967248] Console: switching to colour dummy device 80x25
[    1.967463] [drm:drm_get_pci_dev [drm]] 
[    1.967928] [drm:drm_minor_register [drm]] 
[    1.968070] [drm:drm_minor_register [drm]] new minor registered 128
[    1.968084] [drm:drm_minor_register [drm]] 
[    1.968157] [drm:drm_minor_register [drm]] new minor registered 0
[    1.968163] radeon 0000:00:01.0: CIK support disabled by module param
[    2.019315] [drm] amdgpu kernel modesetting enabled.
[    2.022536] AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de>
[    2.022542] AMD IOMMUv2 functionality not available on this system
[    2.027931] CRAT table not found
[    2.027941] Virtual CRAT table created for CPU
[    2.027944] Parsing CRAT table with 1 nodes
[    2.027948] Creating topology SYSFS entries
[    2.027967] Topology: Add CPU node
[    2.027970] Finished initializing topology
[    2.028045] kfd kfd: Initialized module
[    2.028770] [drm:drm_minor_register [drm]] 
[    2.028930] [drm:drm_minor_register [drm]] new minor registered 128
[    2.028939] [drm:drm_minor_register [drm]] 
[    2.029042] [drm:drm_minor_register [drm]] new minor registered 0
[    2.029066] [drm] initializing kernel modesetting (KAVERI 0x1002:0x130A 0x17AA:0x3988 0x00).
[    2.068203] [drm] register mmio base: 0xF0B00000
[    2.068212] [drm] register mmio size: 262144
[    2.068221] [drm] add ip block number 0 <cik_common>
[    2.068225] [drm] add ip block number 1 <gmc_v7_0>
[    2.068227] [drm] add ip block number 2 <cik_ih>
[    2.068229] [drm] add ip block number 3 <kv_dpm>
[    2.068232] [drm] add ip block number 4 <dm>
[    2.068234] [drm] add ip block number 5 <gfx_v7_0>
[    2.068237] [drm] add ip block number 6 <cik_sdma>
[    2.068239] [drm] add ip block number 7 <uvd_v4_2>
[    2.068241] [drm] add ip block number 8 <vce_v2_0>
[    2.093099] [drm] BIOS signature incorrect 0 0
[    2.093117] resource sanity check: requesting [mem 0x000c0000-0x000dffff], which spans more than PCI Bus 0000:00 [mem 0x000c0000-0x000c3fff window]
[    2.093126] caller pci_map_rom+0x71/0x1c0 mapping multiple BARs
[    2.093295] [drm:check_atom_bios [amdgpu]] ATOMBIOS detected
[    2.093299] ATOM BIOS: 113-SPEC-X24
[    2.093354] [drm:amdgpu_atombios_init [amdgpu]] atom firmware requested 000fffe0 32kb
[    2.093419] [drm:amdgpu_atombios_get_clock_info [amdgpu]] Changing default dispclk from 514Mhz to 600Mhz
[    2.093453] [drm] vm size is 64 GB, 2 levels, block size is 10-bit, fragment size is 9-bit
[    2.093611] [drm:gmc_v7_0_sw_init [amdgpu]] 
[    2.093619] amdgpu 0000:00:01.0: VRAM: 1024M 0x000000F400000000 - 0x000000F43FFFFFFF (1024M used)
[    2.093625] amdgpu 0000:00:01.0: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
[    2.093636] [drm] Detected VRAM RAM=1024M, BAR=1024M
[    2.093639] [drm] RAM width 64bits UNKNOWN
[    2.093950] [TTM] Zone  kernel: Available graphics memory: 3531364 kiB
[    2.093958] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[    2.093961] [TTM] Initializing pool allocator
[    2.093975] [TTM] Initializing DMA pool allocator
[    2.094057] [drm] amdgpu: 1024M of VRAM memory ready
[    2.094061] [drm] amdgpu: 3072M of GTT memory ready.
[    2.094081] [drm] GART: num cpu pages 262144, num gpu pages 262144
[    2.094120] [drm] PCIE GART of 1024M enabled (table at 0x000000F4007E9000).
[    2.094242] [drm:drm_irq_install [drm]] irq=35
[    2.094387] [drm:amdgpu_irq_init [amdgpu]] amdgpu: irq initialized.
[    2.094398] [drm] Internal thermal controller without fan control
[    2.094402] [drm] amdgpu: dpm initialized
[    2.094468] [drm:gfx_v7_0_sw_init [amdgpu]] 
[    2.095601] [drm:cik_sdma_sw_init [amdgpu]] 
[    2.095932] [drm] Found UVD firmware Version: 1.55 Family ID: 9
[    2.096349] [drm] Found VCE firmware Version: 50.10 Binary ID: 2
[    2.098025] usb 1-4: New USB device found, idVendor=050d, idProduct=0307, bcdDevice= 0.00
[    2.098037] usb 1-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.098328] hub 1-4:1.0: USB hub found
[    2.098508] hub 1-4:1.0: 7 ports detected
[    2.102463] [drm:dm_pp_get_static_clocks [amdgpu]] *ERROR* DM_PPLIB: invalid powerlevel state: 0!
[    2.102568] [drm] Unsupported Connector type:5!
[    2.102688] [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:3! type 0 expected 3
[    2.102764] [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:4! type 0 expected 3
[    2.102840] [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:5! type 0 expected 3
[    2.102916] [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:6! type 0 expected 3
[    2.113620] [drm] Display Core initialized with v3.1.59!
[    2.114117] [drm:drm_sysfs_connector_add [drm]] adding "HDMI-A-1" to sysfs
[    2.114131] [drm:drm_sysfs_hotplug_event [drm]] generating hotplug event
[    2.114356] [drm:drm_sysfs_connector_add [drm]] adding "eDP-1" to sysfs
[    2.114369] [drm:drm_sysfs_hotplug_event [drm]] generating hotplug event
[    2.114478] [drm:drm_dp_aux_register_devnode [drm_kms_helper]] drm_dp_aux_dev: aux [dmdc] registered as minor 0
[    2.114616] BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
[    2.114624] PGD 0 P4D 0 
[    2.114630] Oops: 0000 [#1] SMP NOPTI
[    2.114635] CPU: 1 PID: 171 Comm: systemd-udevd Not tainted 4.19.0-041900rc2-generic #201809022230
[    2.114640] Hardware name: LENOVO 80EC/Lancer 5B3, BIOS A4CN40WW (V 2.09) 08/24/2015
[    2.114777] RIP: 0010:dc_link_aux_transfer+0x88/0x160 [amdgpu]
[    2.114782] Code: 00 00 48 c7 45 a8 00 00 00 00 48 c7 45 a0 00 00 00 00 48 8b 16 48 8b 00 8b 52 14 48 8b 80 38 01 00 00 48 8b 9c d0 b0 01 00 00 <48> 8b 43 18 48 89 df 48 8b 40 48 e8 68 99 7d dd 8b 45 10 4c 89 6d
[    2.114788] RSP: 0018:ffff9e2d810ef590 EFLAGS: 00010246
[    2.114791] RAX: ffff8f724a995c00 RBX: 0000000000000000 RCX: ffff9e2d810ef708
[    2.114794] RDX: 0000000000000000 RSI: ffff8f724b1fcae0 RDI: ffff8f724a994c00
[    2.114797] RBP: ffff9e2d810ef600 R08: 0000000000000001 R09: 0000000000000000
[    2.114800] R10: ffffe5bb482c7f00 R11: 0000000000000001 R12: 0000000000000001
[    2.114803] R13: ffff9e2d810ef708 R14: 0000000000000000 R15: 0000000000000000
[    2.114807] FS:  00007f81a0db38c0(0000) GS:ffff8f7257a80000(0000) knlGS:0000000000000000
[    2.114810] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    2.114813] CR2: 0000000000000018 CR3: 000000020a8b2000 CR4: 00000000000406e0
[    2.114816] Call Trace:
[    2.114899]  dm_dp_aux_transfer+0x61/0x130 [amdgpu]
[    2.114914]  drm_dp_dpcd_access+0x75/0x110 [drm_kms_helper]
[    2.114922]  drm_dp_dpcd_read+0x33/0xc0 [drm_kms_helper]
[    2.114998]  dm_helpers_dp_read_dpcd+0x2b/0x50 [amdgpu]
[    2.115071]  core_link_read_dpcd+0x23/0x30 [amdgpu]
[    2.115144]  retrieve_link_cap+0x55/0x440 [amdgpu]
[    2.115217]  detect_edp_sink_caps+0x12/0x40 [amdgpu]
[    2.115291]  dc_link_detect+0x54a/0xb30 [amdgpu]
[    2.115300]  ? drm_dp_mst_topology_mgr_init+0x345/0x430 [drm_kms_helper]
[    2.115370]  amdgpu_dm_initialize_drm_device+0x68d/0xb22 [amdgpu]
[    2.115443]  ? setup_x_points_distribution+0x72/0x100 [amdgpu]
[    2.115528]  dm_hw_init.cold.55+0x8c/0x116 [amdgpu]
[    2.115589]  amdgpu_device_init.cold.28+0x113a/0x12e9 [amdgpu]
[    2.115597]  ? kmalloc_order+0x18/0x40
[    2.115600]  ? kmalloc_order_trace+0x24/0xb0
[    2.115647]  amdgpu_driver_load_kms+0x8b/0x2d0 [amdgpu]
[    2.115671]  drm_dev_register+0x11f/0x160 [drm]
[    2.115718]  amdgpu_pci_probe+0x140/0x1c0 [amdgpu]
[    2.115723]  local_pci_probe+0x46/0x90
[    2.115726]  pci_device_probe+0x18d/0x1a0
[    2.115731]  really_probe+0x243/0x3b0
[    2.115735]  driver_probe_device+0xba/0x100
[    2.115738]  __driver_attach+0xe4/0x110
[    2.115742]  ? driver_probe_device+0x100/0x100
[    2.115745]  bus_for_each_dev+0x74/0xb0
[    2.115749]  ? kmem_cache_alloc_trace+0x1c8/0x1e0
[    2.115753]  driver_attach+0x1e/0x20
[    2.115756]  bus_add_driver+0x159/0x230
[    2.115759]  ? 0xffffffffc0964000
[    2.115762]  driver_register+0x70/0xc0
[    2.115765]  ? 0xffffffffc0964000
[    2.115768]  __pci_register_driver+0x57/0x60
[    2.115815]  amdgpu_init+0x87/0x89 [amdgpu]
[    2.115820]  do_one_initcall+0x4a/0x1c4
[    2.115824]  ? _cond_resched+0x19/0x30
[    2.115827]  ? kmem_cache_alloc_trace+0x172/0x1e0
[    2.115830]  ? vfree+0x2e/0x70
[    2.115834]  do_init_module+0x60/0x220
[    2.115838]  load_module+0x16c1/0x1930
[    2.115842]  __do_sys_finit_module+0xbd/0x120
[    2.115845]  ? __do_sys_finit_module+0xbd/0x120
[    2.115849]  __x64_sys_finit_module+0x1a/0x20
[    2.115852]  do_syscall_64+0x5a/0x110
[    2.115856]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    2.115859] RIP: 0033:0x7f819fc094d9
[    2.115862] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 8f 29 2c 00 f7 d8 64 89 01 48
[    2.115866] RSP: 002b:00007ffe01054bc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    2.115870] RAX: ffffffffffffffda RBX: 000055e7f2e1d5e0 RCX: 00007f819fc094d9
[    2.115872] RDX: 0000000000000000 RSI: 000055e7f2e1cc60 RDI: 0000000000000016
[    2.115875] RBP: 000055e7f2e1cc60 R08: 0000000000000000 R09: 0000000000000012
[    2.115877] R10: 0000000000000016 R11: 0000000000000246 R12: 0000000000000000
[    2.115880] R13: 000055e7f2e1d7e0 R14: 0000000000020000 R15: 0000000000000000
[    2.115883] Modules linked in: amdkfd amd_iommu_v2 amdgpu(+) crct10dif_pclmul crc32_pclmul ghash_clmulni_intel chash gpu_sched pcbc radeon aesni_intel aes_x86_64 crypto_simd i2c_algo_bit ttm cryptd glue_helper psmouse ahci drm_kms_helper libahci syscopyarea r8169 sysfillrect sysimgblt fb_sys_fops drm video rtsx_usb_sdmmc rtsx_usb
[    2.115908] CR2: 0000000000000018
[    2.115912] ---[ end trace a8f1451fdd1bab9d ]---
[    2.115974] RIP: 0010:dc_link_aux_transfer+0x88/0x160 [amdgpu]
[    2.115978] Code: 00 00 48 c7 45 a8 00 00 00 00 48 c7 45 a0 00 00 00 00 48 8b 16 48 8b 00 8b 52 14 48 8b 80 38 01 00 00 48 8b 9c d0 b0 01 00 00 <48> 8b 43 18 48 89 df 48 8b 40 48 e8 68 99 7d dd 8b 45 10 4c 89 6d
[    2.115982] RSP: 0018:ffff9e2d810ef590 EFLAGS: 00010246
[    2.115985] RAX: ffff8f724a995c00 RBX: 0000000000000000 RCX: ffff9e2d810ef708
[    2.115987] RDX: 0000000000000000 RSI: ffff8f724b1fcae0 RDI: ffff8f724a994c00
[    2.115990] RBP: ffff9e2d810ef600 R08: 0000000000000001 R09: 0000000000000000
[    2.115992] R10: ffffe5bb482c7f00 R11: 0000000000000001 R12: 0000000000000001
[    2.115995] R13: ffff9e2d810ef708 R14: 0000000000000000 R15: 0000000000000000
[    2.115998] FS:  00007f81a0db38c0(0000) GS:ffff8f7257a80000(0000) knlGS:0000000000000000
[    2.116001] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    2.116003] CR2: 0000000000000018 CR3: 000000020a8b2000 CR4: 00000000000406e0
Comment 12 Przemek 2018-09-16 09:01:39 UTC
Yesterday I have pulled git repo, and guess what?

_No_ more kernel _oops_, both screens lights up properly (eDP and HDMI, for VGA there is still " [drm] Unsupported Connector type:5!").

I have no idea what have changed, but thank you very much!

BTW. there is an error in dmesg:

"[drm:dm_pp_get_static_clocks [amdgpu]] *ERROR* DM_PPLIB: invalid powerlevel state: 0!"

but I think this is another story.

I am closing this bug report, as RESOLVED - FIXED.

Pontus Gråskæg, if kernel compiled from the latest git repo sync (git://people.freedesktop.org/~agd5f/linux) does not work for you feel free to reopen it.

Thanks,
Przemek.
Comment 13 Michel Dänzer 2018-09-17 09:36:30 UTC
(In reply to Przemek from comment #12)
> Pontus Gråskæg, if kernel compiled from the latest git repo sync
> (git://people.freedesktop.org/~agd5f/linux) does not work for you feel free
> to reopen it.

Please rather file your own report in that case.
Comment 14 Przemek 2018-09-17 14:43:55 UTC
Yeh, "Kaveri" - logical approach.(In reply to Michel Dänzer from comment #13)
> (In reply to Przemek from comment #12)
> > Pontus Gråskæg, if kernel compiled from the latest git repo sync
> > (git://people.freedesktop.org/~agd5f/linux) does not work for you feel free
> > to reopen it.
> 
> Please rather file your own report in that case.

Yeah, "Kaveri" - logical approach. Sorry.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.