Skip to contentSkip to conversation

New: AMDGPU: kernel NULL pointer dereferenced with hybrid graphics

Bug 193341 [email protected] 1 participant 10 messages Jan 27, 2017 – Mar 1, 2017

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=193341

            Bug ID: 193341
           Summary: AMDGPU: kernel NULL pointer dereferenced with hybrid
                    graphics
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.9.6
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Created attachment 253261
--> https://bugzilla.kernel.org/attachment.cgi?id=253261&action=edit
Kernel config, output of dmesh (with stack trace), output of lspci

The driver crashes when AMDGPU is used with a combination of R5 M230 and MULLINS.

The driver work with MULLINS OK, when discrete GPU (01:00.0 R5 M230) is disabled (in bios).

Kernel: Linux LenovoPC 4.9.6-1-ARCH #1 SMP PREEMPT Thu Jan 26 09:22:26 CET 2017 x86_64 GNU/Linux

Relevant config:
CONFIG_DRM_AMDGPU=m
CONFIG_DRM_AMDGPU_SI=y
CONFIG_DRM_AMDGPU_CIK=y
CONFIG_DRM_AMDGPU_USERPTR=y

I understand this is experimental case. Anyway, maybe somebody will fix it.

This case work OK with RADEON driver (even offloading).

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 193341] AMDGPU: kernel NULL pointer dereferenced with hybrid graphics

https://bugzilla.kernel.org/show_bug.cgi?id=193341

--- Comment #1 from Michel Dänzer <[email protected]> --- Same as https://bugzilla.kernel.org/show_bug.cgi?id=193341 .

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 193341] AMDGPU: kernel NULL pointer dereferenced with hybrid graphics

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=193341

--- Comment #2 from Michel Dänzer <[email protected]> --- Sorry, I mean https://bugs.freedesktop.org/show_bug.cgi?id=99387 .

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

[Bug 193341] AMDGPU: kernel NULL pointer dereferenced with hybrid graphics

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=193341

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Alex Deucher <[email protected]> --- Created attachment 253281
--> https://bugzilla.kernel.org/attachment.cgi?id=253281&action=edit
possible fix

This patch should fix the crash.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

[Bug 193341] AMDGPU: kernel NULL pointer dereferenced with hybrid graphics

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=193341

Marco Piazza ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #4 from Marco Piazza ([email protected]) --- Attached logs about amdgpu kernel oops on hybrid gpu (KABINI+HAINAN)

4.9.9: https://bugs.freedesktop.org/show_bug.cgi?id=99387#c13

4.9.2: https://bugs.freedesktop.org/show_bug.cgi?id=99387#c14

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

[Bug 193341] AMDGPU: kernel NULL pointer dereferenced with hybrid graphics

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=193341

--- Comment #5 from Alex Deucher ([email protected]) --- Created attachment 254699
--> https://bugzilla.kernel.org/attachment.cgi?id=254699&action=edit
possible fix

This should fix it (along with the previous patch).

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

[Bug 193341] AMDGPU: kernel NULL pointer dereferenced with hybrid graphics

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=193341

Luya Tshimbalanga ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from Luya Tshimbalanga ([email protected]) --- Greetings,
I am the original reported on Freedesktop bug report. I have a similar hardware in this case Kaveri and R5 M230 (Hainan or Jet Pro).
The fix as mentioned on comment #5 is working fine.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

[Bug 193341] AMDGPU: kernel NULL pointer dereferenced with hybrid graphics

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=193341

--- Comment #7 from [email protected] ---
Created attachment 254989
--> https://bugzilla.kernel.org/attachment.cgi?id=254989&action=edit
Dmesg of 4.10.1-1-ARCH #1 SMP PREEMPT Sun Feb 26 21:08:53 UTC 2017 x86_64 GNU/Linux

I'm not sure if all attached fixes were merged to kernel 4.10.1, but now I get different error (when trying to use the discrete GPU).

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

[Bug 193341] AMDGPU: kernel NULL pointer dereferenced with hybrid graphics

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=193341

--- Comment #8 from Alex Deucher ([email protected]) --- Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c10c8f7c27103bd7ac02d041d9d6e97296d48fc1

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

[Bug 193341] AMDGPU: kernel NULL pointer dereferenced with hybrid graphics

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=193341

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #9 from [email protected] ---
With this path is working fine. Thank you.

Shader heavy games are now rendering twice as fast.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel