[Bug 92524] system hang on "radeon_hwmon_get_pwm1_enable"

2015-10-21 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=92524

Thomas DEBESSE  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Thomas DEBESSE  ---
Hi, I just recompiled my kernel applying your patch and it works, you fixed
that issue!

I cannot anymore "cat /sys/class/hwmon/hwmon0/pwm1_enable" with radeon.dpm=0 so
my system does not hang when I run pwmconfig. :-)

Thanks a lot for your fast response and your efficient help.

About the other bug, the unexpected hang when using radeon.dpm=1 , I added some
comments on bug #68059 .

I close the current bug as RESOLVED/FIXED.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 92524] system hang on "radeon_hwmon_get_pwm1_enable"

2015-10-19 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=92524

--- Comment #6 from Thomas DEBESSE  ---
So, some news!

I've just tested with radeon.dpm=1, but less than 10 minute after the boot the
graphic display completely hangs with graphic glitches (the system was
available from ssh for example, but was not able to reboot), the command "cat
/sys/class/hwmon/hwmon0/pwm1_enable" works (I did it *after* the graphical
hang, so the graphical hang was not a consequence of this command). So, the
glitch is another bug, but I now verified that "cat
/sys/class/hwmon/hwmon0/pwm1_enable" is not a crash cause when radeon.dpm=1.

Also, I tried to load amdgpu instead of radeon module, blacklinsting radeon,
then I verified that with amdgpu.dpm=0 there is no
"/sys/class/hwmon/hwmon0/pwm1_enable" file and with amdgpu.dpm=1, there is a
"/sys/class/hwmon/hwmon0/pwm1_enable" file and I can "cat" it. So, the bug was
not reproduced in amdgpu module, which is a good news.

I've not yet tried to recompile the kernel to test your patch.

I'm now running Ubuntu 15.10, of course it changes nothing about this bug, but
they ship by default a 4.2 kernel so I can use my distro tools to recompile the
kernel and do it cleanly, applying the patch on the official Ubuntu kernel
tree.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 92524] system hang on "radeon_hwmon_get_pwm1_enable"

2015-10-19 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=92524

--- Comment #5 from Alex Deucher  ---
(In reply to Thomas DEBESSE from comment #4)
> 
> On which source tree this patch must be applied?

It was against my drm-next tree, but should apply to any recent kernel.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 92524] system hang on "radeon_hwmon_get_pwm1_enable"

2015-10-19 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=92524

--- Comment #4 from Thomas DEBESSE  ---
> The attached patch should fix it. pwm control is only available with dpm,
and you've disabled dpm via the kernel command line.

Oh yes, the last grub update (fortuitously made the morning before I change
my GPU for the one described above) introduced a "radeon.dpm=0" default
kernel command line option, probably to workaround that other bug
https://bugzilla.kernel.org/show_bug.cgi?id=103271

Thank you for your fast answer, I will try both (the patch and the kernel
command line option).

On which source tree this patch must be applied?

--
Thomas DEBESSE

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 92524] system hang on "radeon_hwmon_get_pwm1_enable"

2015-10-19 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=92524

--- Comment #3 from Alex Deucher  ---
Created attachment 118978
  --> https://bugs.freedesktop.org/attachment.cgi?id=118978=edit
possible fix

The attached patch should fix it.  pwm control is only available with dpm, and
you've disabled dpm via the kernel command line.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 92524] system hang on "radeon_hwmon_get_pwm1_enable"

2015-10-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=92524

--- Comment #2 from Thomas DEBESSE  ---
Created attachment 118964
  --> https://bugs.freedesktop.org/attachment.cgi?id=118964=edit
verbose lspci output for the GPU

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 92524] system hang on "radeon_hwmon_get_pwm1_enable"

2015-10-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=92524

--- Comment #1 from Thomas DEBESSE  ---
Created attachment 118963
  --> https://bugs.freedesktop.org/attachment.cgi?id=118963=edit
complete dmesg log

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 92524] system hang on "radeon_hwmon_get_pwm1_enable"

2015-10-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=92524

Bug ID: 92524
   Summary: system hang on "radeon_hwmon_get_pwm1_enable"
   Product: Mesa
   Version: git
  Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
  Severity: normal
  Priority: medium
 Component: Drivers/Gallium/radeonsi
  Assignee: dri-devel at lists.freedesktop.org
  Reporter: dev at illwieckz.net
QA Contact: dri-devel at lists.freedesktop.org

Hi, every time I do "cat /sys/class/hwmon/hwmon0/pwm1_enable" my system
crashes, and just before it hangs dmesg prints that:

--8<--
[  340.012644] BUG: unable to handle kernel paging request at 1659
[  340.012717] IP: [] ci_fan_ctrl_get_mode+0xe/0x30 [radeon]
[  340.012820] PGD 7e1b0b067 PUD 7e19e0067 PMD 0 
[  340.012865] Oops:  [#1] SMP 
[  340.012896] Modules linked in: xt_CHECKSUM iptable_mangle ipt_MASQUERADE
nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4
nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp
bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables
iptable_filter ip_tables x_tables ctr ccm cmac binfmt_misc rfcomm bnep
fglrx(POE) eeepc_wmi asus_wmi sparse_keymap video arc4 snd_hda_codec_realtek
snd_hda_codec_generic snd_hda_codec_hdmi ath9k snd_usb_audio ath3k
snd_hda_intel ath9k_common btusb hid_logitech_hidpp snd_hda_codec ath9k_hw
btrtl snd_usbmidi_lib snd_hda_core btbcm snd_hwdep btintel kvm_amd ath snd_pcm
bluetooth kvm snd_seq_midi snd_seq_midi_event mac80211 snd_rawmidi snd_seq
input_leds snd_seq_device edac_core serio_raw fam15h_power snd_timer
edac_mce_amd
[  340.013643]  k10temp cfg80211 snd i2c_piix4 soundcore 8250_fintek shpchp
tpm_infineon mac_hid cuse it87 hwmon_vid parport_pc ppdev lp parport autofs4
drbg ansi_cprng dm_crypt raid10 raid456 async_raid6_recov async_memcpy async_pq
async_xor async_tx xor raid6_pq raid0 multipath linear amdgpu hid_logitech_dj
hid_logitech ff_memless raid1 hid_generic usbhid hid amdkfd amd_iommu_v2
mxm_wmi radeon crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel
aes_x86_64 lrw gf128mul glue_helper i2c_algo_bit ablk_helper ttm cryptd
drm_kms_helper r8169 drm mii ahci libahci wmi
[  340.014176] CPU: 5 PID: 5797 Comm: cat Tainted: P   OE  
4.2.3-040203-generic #201510030832
[  340.014248] Hardware name: To be filled by O.E.M. To be filled by
O.E.M./SABERTOOTH 990FX R2.0, BIOS 2501 04/08/2014
[  340.014359] task: 8800b4db9b80 ti: 8807e1b2 task.ti:
8807e1b2
[  340.014418] RIP: 0010:[]  []
ci_fan_ctrl_get_mode+0xe/0x30 [radeon]
[  340.014528] RSP: 0018:8807e1b23d00  EFLAGS: 00010246
[  340.014571] RAX:  RBX: 88081533c000 RCX:
880813b31e10
[  340.014627] RDX:  RSI: c038eea0 RDI:
880813248000
[  340.014683] RBP: 8807e1b23d18 R08: 880814583818 R09:

[  340.014739] R10: 1000 R11: 0246 R12:
81873090
[  340.014796] R13: 0001 R14: 8807e1b23f20 R15:
880814bb6780
[  340.014853] FS:  7f4ddf962700() GS:88083ed4()
knlGS:
[  340.014916] CS:  0010 DS:  ES:  CR0: 80050033
[  340.014962] CR2: 1659 CR3: 0007beccb000 CR4:
000406e0
[  340.015018] Stack:
[  340.015036]  c02aaebd 8807e1b23d68 c038eea0
8807e1b23d48
[  340.015103]  814e0be0  817a7ed6
880814061300
[  340.015170]  880814bb6780 8807e1b23d68 812626d2

[  340.015237] Call Trace:
[  340.015296]  [] ? radeon_hwmon_get_pwm1_enable+0x2d/0x60
[radeon]
[  340.015361]  [] dev_attr_show+0x20/0x50
[  340.015408]  [] ? mutex_lock+0x16/0x37
[  340.015454]  [] sysfs_kf_seq_show+0xc2/0x1a0
[  340.015532]  [] kernfs_seq_show+0x23/0x30
[  340.015580]  [] seq_read+0xe5/0x350
[  340.015623]  [] kernfs_fop_read+0x10d/0x170
[  340.015685]  [] __vfs_read+0x28/0xe0
[  340.015732]  [] ? security_file_permission+0xa3/0xc0
[  340.015785]  [] ? rw_verify_area+0x56/0xe0
[  340.015832]  [] vfs_read+0x86/0x130
[  340.015875]  [] SyS_read+0x46/0xa0
[  340.015917]  [] entry_SYSCALL_64_fastpath+0x16/0x75
[  340.015968] Code: 01 75 af 41 c6 85 59 16 00 00 00 eb a5 e8 ab c3 ff ff 48
83 c4 08 5b 41 5c 41 5d 5d c3 0f 1f 44 00 00 48 8b 97 30 1e 00 00 31 c0 <80> ba
59 16 00 00 00 74 01 c3 55 be 6c 00 30 c0 48 89 e5 e8 ea 
[  340.016273] RIP  [] ci_fan_ctrl_get_mode+0xe/0x30 [radeon]
[  340.016364]  RSP 
[  340.016393] CR2: 1659
[  340.037044] ---[ end trace 94bb46b2f2c467e6 ]---
--8<--

It seems the complete system hangs, not only the display, if I have a terminal
open as root I can't do things like "reboot" at all, even the keyboard is
frozen.

I need to be able to do "cat /sys/class/hwmon/hwmon0/pwm1_enable" since it's
something that pwmconfig does by default (the pwmconfig script from