Bug 102641 - amdgpu: Oops when setting battery profile on a RX480
Summary: amdgpu: Oops when setting battery profile on a RX480
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-10 05:47 UTC by higuita
Modified: 2019-11-19 08:22 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description higuita 2017-09-10 05:47:07 UTC
Just testing radeon-profile tool, i set the battery profile and amdgpu crashed on my asus rx480 gpu

Kernel 3.13, mesa 17.2, libdrm 2.4.83

[116973.996834] amdgpu: [powerplay] Invalid Powerstate Type!
[116973.996847] BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
[116974.020656] IP: smu7_apply_state_adjust_rules+0x7e/0x430 [amdgpu]
[116974.039173] PGD 14c72a067 
[116974.039174] P4D 14c72a067 
[116974.047537] PUD 14c5fc067 
[116974.055896] PMD 0 

[116974.075249] Oops: 0000 [#1] SMP
[116974.084924] Modules linked in: uinput f71882fg ipt_ECN lz4 lz4_compress zram zsmalloc snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss nf_conntrack_ipv6 nf_defrag_ipv6 ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 ip6table_mangle ip6table_filter ip6_tables xt_DSCP nf_nat_irc nf_nat nf_conntrack_irc nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack nf_log_ipv4 nf_log_common xt_LOG xt_limit ipt_REJECT nf_reject_ipv4 xt_tcpudp iptable_mangle iptable_filter ip_tables x_tables bridge stp llc ipv6 nls_iso8859_1 nls_cp437 vfat fat reiserfs sch_fq_codel pcspkr fuse joydev hid_generic usbhid hid snd_hda_codec_hdmi tuner_simple tuner_types tea5767 tuner tda7432 tvaudio snd_hda_codec_realtek msp3400 snd_hda_codec_generic bttv amdkfd tea575x tveeprom videobuf_dma_sg
[116974.297826]  amd_iommu_v2 snd_hda_intel videobuf_core i2c_dev amdgpu snd_hda_codec rc_core eeepc_wmi crct10dif_pclmul snd_hwdep asus_wmi snd_hda_core v4l2_common sparse_keymap crc32_pclmul snd_pcm crc32c_intel mfd_core wmi_bmof rfkill evdev ohci_pci ghash_clmulni_intel snd_timer efi_pstore ehci_pci serio_raw r8169 fam15h_power k10temp snd ohci_hcd ttm efivars hwmon mii videodev soundcore i2c_piix4 ehci_hcd parport_pc xhci_pci shpchp xhci_hcd wmi parport video button acpi_cpufreq loop
[116974.426575] CPU: 1 PID: 1275 Comm: radeon-profile Not tainted 4.13.0-slack #25
[116974.444513] gShield (reserved drop) IN=eth0 OUT= MAC=01:00:5e:00:00:01:88:a2:d7:07:c8:ce:08:00 SRC=10.52.23.157 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0x40 TTL=1 ID=8449 PROTO=2 
[116974.495414] Hardware name: System manufacturer System Product Name/A88X-PLUS, BIOS 3003 03/10/2016
[116974.522528] task: ffff9a2c83752300 task.stack: ffffb209c968c000
[116974.540602] RIP: 0010:smu7_apply_state_adjust_rules+0x7e/0x430 [amdgpu]
[116974.560699] RSP: 0018:ffffb209c968f8d8 EFLAGS: 00010206
[116974.576621] RAX: ffffb209c968f8f4 RBX: ffff9a2e93e70000 RCX: 0000000000000000
[116974.598270] RDX: 0000000000000000 RSI: ffff9a2e93c42010 RDI: ffff9a2e9ec8caf8
[116974.619917] RBP: ffffb209c968f940 R08: 0000000000002d4c R09: 0000000000000003
[116974.641559] R10: ffff9a2d48591c38 R11: 0000000000000001 R12: 0000000000000000
[116974.663204] R13: ffff9a2e92b85700 R14: ffff9a2e9282ac70 R15: ffff9a2e93097000
[116974.684855] FS:  00007f01aecd2100(0000) GS:ffff9a2e9ec80000(0000) knlGS:0000000000000000
[116974.709368] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[116974.726847] CR2: 0000000000000018 CR3: 00000001f458e000 CR4: 00000000000406e0
[116974.748488] Call Trace:
[116974.756129]  phm_apply_state_adjust_rules+0x25/0x40 [amdgpu]
[116974.773426]  psm_adjust_power_state_dynamic+0x5d/0xe0 [amdgpu]
[116974.791237]  pem_task_adjust_power_state+0x6a/0x80 [amdgpu]
[116974.808243]  pem_excute_event_chain+0x55/0xb0 [amdgpu]
[116974.823946]  pem_handle_event_unlocked+0x2d/0x40 [amdgpu]
[116974.840416]  pem_handle_event+0xe/0x10 [amdgpu]
[116974.854282]  pp_dpm_dispatch_tasks+0x172/0x190 [amdgpu]
[116974.870232]  amdgpu_set_dpm_state+0x80/0x140 [amdgpu]
[116974.885624]  dev_attr_store+0x18/0x30
[116974.896849]  sysfs_kf_write+0x37/0x40
[116974.908067]  kernfs_fop_write+0x132/0x1b0
[116974.920329]  __vfs_write+0x37/0x170
[116974.931038]  vfs_write+0xc0/0x1b0
[116974.941214]  SyS_write+0x5e/0xd0
[116974.951135]  entry_SYSCALL_64_fastpath+0x17/0x98
[116974.965219] RIP: 0033:0x7f01ac31c11b
[116974.976185] RSP: 002b:00007ffc08bc5f00 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
[116974.999127] RAX: ffffffffffffffda RBX: 00000000009c3aa0 RCX: 00007f01ac31c11b
[116975.020769] RDX: 0000000000000008 RSI: 00000000019a7ae8 RDI: 0000000000000011
[116975.042413] RBP: 0000000000898cd0 R08: 0000000000000000 R09: 00007f01ab798070
[116975.064060] R10: 000000000000000d R11: 0000000000000293 R12: 0000000000898d10
[116975.085704] R13: 00007ffc08bc71f0 R14: 0000000000000000 R15: 00007ffc08bc65b0
[116975.107350] Code: b4 4c 8b ab 08 01 00 00 48 c7 45 c0 00 00 00 00 48 c7 45 b4 00 00 00 00 c7 45 bc 00 00 00 00 48 89 45 c8 41 0f 94 87 d1 05 00 00 <66> 41 83 7c 24 18 02 0f 85 7f 03 00 00 8b 83 28 03 00 00 4c 8d 
[116975.164244] RIP: smu7_apply_state_adjust_rules+0x7e/0x430 [amdgpu] RSP: ffffb209c968f8d8
[116975.188746] CR2: 0000000000000018
[116975.213875] ---[ end trace 8723bff327dbe655 ]---
Comment 1 Martin Peres 2019-11-19 08:22:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/233.


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.