https://bugs.freedesktop.org/show_bug.cgi?id=97460
Bug ID: 97460 Summary: [drm][amdgpu][CIK] drm_sysfs_connector - BUG: unable to handle kernel NULL pointer dereference at 0000000000000038 Product: DRI Version: unspecified Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: shawn.starr@rogers.com
Created attachment 125990 --> https://bugs.freedesktop.org/attachment.cgi?id=125990&action=edit Dmesg of kernel bootup - 4.7.0 kernel
When trying to enable Switchable Graphics, I am unable to bootup.
With 4.7.0 it booted but no X display could start With 4.8-rcX it deadlocks on bootup now.
1) If the LCD (LVDS) display lid is open, no such kernel panic message is displayed and deadlocks bootup. 2) It the lid is closed, a panic message is shown (and deadlocks bootup).
Trying to enable PRIME on AMDGPU with CIK experimental enabled fails. attached to this BZ is dmesg of oops from 4.7.0 kernel, the stack is the same for 4.8-rcX.
PRIME has never worked for me on AMDGPU it has worked on regular radeon however.
https://bugs.freedesktop.org/show_bug.cgi?id=97460
--- Comment #1 from Shawn Starr shawn.starr@rogers.com --- Adding some debug when not using Switchable Graphics:
[ 10.048669] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x1e [ 10.048672] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found: 7 [ 10.048684] [drm] forcing LVDS-1 connector OFF [ 10.048721] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x20 [ 10.048724] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found: 10 [ 10.048811] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x20 [ 10.048814] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found: 10 [ 10.048877] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x21 [ 10.048880] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found: 10 [ 10.048933] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x15 [ 10.048937] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found: 1
When using Switchable Graphics:
[ X.XXXXXXX] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x1e [ X.XXXXXXX] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found: -16345243
Then we panic/deadlock.
amdgpu_atombios_get_connector_info_from_object_table() vs radeon_get_atom_connector_info_from_object_table()
Perhaps there's a bug in the parsing? This works fine with radeon.ko.
https://bugs.freedesktop.org/show_bug.cgi?id=97460
--- Comment #2 from Alex Deucher alexdeucher@gmail.com --- Created attachment 126010 --> https://bugs.freedesktop.org/attachment.cgi?id=126010&action=edit workaround
This patch should work around the crash. No idea why the bios is broken in amdgpu and fine on radeon in the switchable gfx case.
https://bugs.freedesktop.org/show_bug.cgi?id=97460
--- Comment #3 from Alex Deucher alexdeucher@gmail.com --- Created attachment 126011 --> https://bugs.freedesktop.org/attachment.cgi?id=126011&action=edit additional workaround
Skip analog TV and CV connectors as the hw doesn't support them.
https://bugs.freedesktop.org/show_bug.cgi?id=97460
--- Comment #4 from Shawn Starr shawn.starr@rogers.com --- This patch worksaround issue for me thank you Alex for your help on IRC debugging this today
https://bugs.freedesktop.org/show_bug.cgi?id=97460
--- Comment #5 from Shawn Starr shawn.starr@rogers.com --- *** Bug 96470 has been marked as a duplicate of this bug. ***
https://bugs.freedesktop.org/show_bug.cgi?id=97460
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #6 from Alex Deucher alexdeucher@gmail.com --- Workaround committed.
dri-devel@lists.freedesktop.org