From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102553] Venus PRO R9 M265X amdgpu: Kernel OOPS si_dpm_set_power_state unable to handle kernel NULL pointer dereference Date: Tue, 05 Sep 2017 20:23:38 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2114001124==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F5E76E5E8 for ; Tue, 5 Sep 2017 20:23:38 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2114001124== Content-Type: multipart/alternative; boundary="15046430180.ADD3B9E.23332"; charset="UTF-8" --15046430180.ADD3B9E.23332 Date: Tue, 5 Sep 2017 20:23:38 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D102553 Bug ID: 102553 Summary: Venus PRO R9 M265X amdgpu: Kernel OOPS si_dpm_set_power_state unable to handle kernel NULL pointer dereference Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: mercuriete@yahoo.es Created attachment 133980 --> https://bugs.freedesktop.org/attachment.cgi?id=3D133980&action=3Dedit full dmesg Hi all When you try to change the DPM "governor" to "battery" using this command: echo "battery" > /sys/class/drm/card0/device/power_dpm_state You will get a kernel OOPS OS: Gentoo Kernel: ~ $ uname -a Linux localhost.localdomain 4.13.0-gentoo #2 SMP PREEMPT Tue Sep 5 19:43:50 CEST 2017 x86_64 Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz GenuineIntel GNU/Linux m lspci of my graphic card: 01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus PRO [Radeon HD 8850M / R9 M265X] lspci -n: 01:00.0 0380: 1002:6823 partial dmesg output: [ 1861.111097] BUG: unable to handle kernel NULL pointer dereference at=20= =20=20=20=20=20=20=20 (null) [ 1861.111929] IP: (null) [ 1861.112733] PGD 3cb980067=20 [ 1861.112734] P4D 3cb980067=20 [ 1861.113516] PUD 343b2f067=20 [ 1861.114286] PMD 0=20 [ 1861.116531] Oops: 0010 [#1] PREEMPT SMP [ 1861.117296] Modules linked in: [ 1861.118053] CPU: 4 PID: 4384 Comm: bash Not tainted 4.13.0-gentoo #2 [ 1861.118803] Hardware name: TOSHIBA SATELLITE P50-B-11M/VG20SQ, BIOS 1.50 12/09/2014 [ 1861.119547] task: ffff880307a33000 task.stack: ffffc90000894000 [ 1861.120295] RIP: 0010: (null) [ 1861.121365] RSP: 0018:ffffc90000897cc8 EFLAGS: 00010202 [ 1861.122300] RAX: ffffffff81ea12e0 RBX: ffff88041b8f0000 RCX: 0000000000000078 [ 1861.123101] RDX: 0000000000000078 RSI: 0000000000000007 RDI: ffff88041b8f0000 [ 1861.123938] RBP: ffffc90000897d50 R08: 0000000000020000 R09: 0000000000018c04 [ 1861.124720] R10: 0000000000000000 R11: ffff88041b940044 R12: 0000000000000000 [ 1861.125507] R13: ffff88041b940000 R14: ffff88041b941988 R15: 0000000000000003 [ 1861.126293] FS: 00007fefa79d6700(0000) GS:ffff88042fb00000(0000) knlGS:0000000000000000 [ 1861.127096] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1861.127903] CR2: 0000000000000000 CR3: 00000002e9266000 CR4: 00000000001406e0 [ 1861.128718] Call Trace: [ 1861.129530] ? si_dpm_set_power_state+0xc49/0x11e0 [ 1861.130354] amdgpu_pm_compute_clocks+0x289/0x600 [ 1861.131177] amdgpu_set_dpm_state+0x79/0x110 [ 1861.131990] dev_attr_store+0x13/0x20 [ 1861.132804] sysfs_kf_write+0x32/0x40 [ 1861.133624] kernfs_fop_write+0x112/0x190 [ 1861.134466] __vfs_write+0x23/0x130 [ 1861.135324] ? preempt_count_add+0x99/0xb0 [ 1861.136163] ? _raw_write_unlock+0x11/0x30 [ 1861.136992] ? __this_cpu_preempt_check+0x13/0x20 [ 1861.137804] ? __sb_start_write+0x50/0xe0 [ 1861.138613] vfs_write+0xaf/0x180 [ 1861.139405] SyS_write+0x41/0xb0 [ 1861.140189] ? __context_tracking_exit.part.2+0x2e/0xf0 [ 1861.140980] do_syscall_64+0x6f/0x160 [ 1861.141764] entry_SYSCALL64_slow_path+0x25/0x25 [ 1861.142557] RIP: 0033:0x7fefa7092b40 [ 1861.143346] RSP: 002b:00007ffcd158b488 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 1861.144158] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007fefa7092b40 [ 1861.144975] RDX: 0000000000000008 RSI: 00000000006c5b00 RDI: 0000000000000001 [ 1861.145794] RBP: 00000000006c5b00 R08: 00007fefa734d760 R09: 00007fefa79d6700 [ 1861.146617] R10: 0000000000000097 R11: 0000000000000246 R12: 0000000000000008 [ 1861.147442] R13: 0000000000000001 R14: 00007fefa734c600 R15: 0000000000000000 [ 1861.148267] Code: Bad RIP value. [ 1861.149090] RIP: (null) RSP: ffffc90000897cc8 [ 1861.149925] CR2: 0000000000000000 [ 1861.157732] ---[ end trace 4f6879609b5f474d ]--- --=20 You are receiving this mail because: You are the assignee for the bug.= --15046430180.ADD3B9E.23332 Date: Tue, 5 Sep 2017 20:23:38 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 102553
Summary Venus PRO R9 M265X amdgpu: Kernel OOPS si_dpm_set_power_state= unable to handle kernel NULL pointer dereference
Product DRI
Version unspecified
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter mercuriete@yahoo.es

Created attachment 133980 [det=
ails]
full dmesg

Hi all

When you try to change the DPM "governor" to "battery" =
using this command:

echo "battery" > /sys/class/drm/card0/device/power_dpm_state

You will get a kernel OOPS

OS: Gentoo

Kernel:
 ~ $ uname -a
Linux localhost.localdomain 4.13.0-gentoo #2 SMP PREEMPT Tue Sep 5 19:43:50
CEST 2017 x86_64 Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz GenuineIntel
GNU/Linux
m

lspci of my graphic card:
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus PRO
[Radeon HD 8850M / R9 M265X]

lspci -n:
01:00.0 0380: 1002:6823




partial dmesg output:

[ 1861.111097] BUG: unable to handle kernel NULL pointer dereference at=20=
=20=20=20=20=20=20=20
  (null)
[ 1861.111929] IP:           (null)
[ 1861.112733] PGD 3cb980067=20
[ 1861.112734] P4D 3cb980067=20
[ 1861.113516] PUD 343b2f067=20
[ 1861.114286] PMD 0=20

[ 1861.116531] Oops: 0010 [#1] PREEMPT SMP
[ 1861.117296] Modules linked in:
[ 1861.118053] CPU: 4 PID: 4384 Comm: bash Not tainted 4.13.0-gentoo #2
[ 1861.118803] Hardware name: TOSHIBA SATELLITE P50-B-11M/VG20SQ, BIOS 1.50
12/09/2014
[ 1861.119547] task: ffff880307a33000 task.stack: ffffc90000894000
[ 1861.120295] RIP: 0010:          (null)
[ 1861.121365] RSP: 0018:ffffc90000897cc8 EFLAGS: 00010202
[ 1861.122300] RAX: ffffffff81ea12e0 RBX: ffff88041b8f0000 RCX:
0000000000000078
[ 1861.123101] RDX: 0000000000000078 RSI: 0000000000000007 RDI:
ffff88041b8f0000
[ 1861.123938] RBP: ffffc90000897d50 R08: 0000000000020000 R09:
0000000000018c04
[ 1861.124720] R10: 0000000000000000 R11: ffff88041b940044 R12:
0000000000000000
[ 1861.125507] R13: ffff88041b940000 R14: ffff88041b941988 R15:
0000000000000003
[ 1861.126293] FS:  00007fefa79d6700(0000) GS:ffff88042fb00000(0000)
knlGS:0000000000000000
[ 1861.127096] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1861.127903] CR2: 0000000000000000 CR3: 00000002e9266000 CR4:
00000000001406e0
[ 1861.128718] Call Trace:
[ 1861.129530]  ? si_dpm_set_power_state+0xc49/0x11e0
[ 1861.130354]  amdgpu_pm_compute_clocks+0x289/0x600
[ 1861.131177]  amdgpu_set_dpm_state+0x79/0x110
[ 1861.131990]  dev_attr_store+0x13/0x20
[ 1861.132804]  sysfs_kf_write+0x32/0x40
[ 1861.133624]  kernfs_fop_write+0x112/0x190
[ 1861.134466]  __vfs_write+0x23/0x130
[ 1861.135324]  ? preempt_count_add+0x99/0xb0
[ 1861.136163]  ? _raw_write_unlock+0x11/0x30
[ 1861.136992]  ? __this_cpu_preempt_check+0x13/0x20
[ 1861.137804]  ? __sb_start_write+0x50/0xe0
[ 1861.138613]  vfs_write+0xaf/0x180
[ 1861.139405]  SyS_write+0x41/0xb0
[ 1861.140189]  ? __context_tracking_exit.part.2+0x2e/0xf0
[ 1861.140980]  do_syscall_64+0x6f/0x160
[ 1861.141764]  entry_SYSCALL64_slow_path+0x25/0x25
[ 1861.142557] RIP: 0033:0x7fefa7092b40
[ 1861.143346] RSP: 002b:00007ffcd158b488 EFLAGS: 00000246 ORIG_RAX:
0000000000000001
[ 1861.144158] RAX: ffffffffffffffda RBX: 0000000000000008 RCX:
00007fefa7092b40
[ 1861.144975] RDX: 0000000000000008 RSI: 00000000006c5b00 RDI:
0000000000000001
[ 1861.145794] RBP: 00000000006c5b00 R08: 00007fefa734d760 R09:
00007fefa79d6700
[ 1861.146617] R10: 0000000000000097 R11: 0000000000000246 R12:
0000000000000008
[ 1861.147442] R13: 0000000000000001 R14: 00007fefa734c600 R15:
0000000000000000
[ 1861.148267] Code:  Bad RIP value.
[ 1861.149090] RIP:           (null) RSP: ffffc90000897cc8
[ 1861.149925] CR2: 0000000000000000
[ 1861.157732] ---[ end trace 4f6879609b5f474d ]---


You are receiving this mail because:
  • You are the assignee for the bug.
= --15046430180.ADD3B9E.23332-- --===============2114001124== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2114001124==--