Re: radeon/kms: black screen when loading radeon with modeset=1

2011-11-15 Thread Sergey V.
On Tuesday 15 of November 2011 23:21:10 Alex Deucher wrote:
> On Tue, Nov 15, 2011 at 2:05 PM, Sergey V.  wrote:
> > Kernel from Linus tree, HEAD at 7f80850d3f9fd8fda23a317044aef3a6bafab06b
> >
> > Loading radeon module with modeset=1 causes black screen.
> >
> > Usually it happens at boot time, but if run kernel with radeon.modeset=0 
then
> > `rmmod radeon; modprobe radeon modeset=1` I can get dmesg over ssh (thanks 
to
> > glisse from #radeon for help).
> 
> Fixed with this patch:
> http://lists.freedesktop.org/archives/dri-devel/2011-November/016498.html
> 
> Alex
> 

Thank you! I tested the patch and it helped.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


RE: radeon/kms: black screen when loading radeon with modeset=1

2011-11-15 Thread Deucher, Alexander
Fixed with this patch:
http://lists.freedesktop.org/archives/dri-devel/2011-November/016498.html

Alex

> -Original Message-
> From: Sergey V. [mailto:sftp.mt...@gmail.com]
> Sent: Tuesday, November 15, 2011 2:05 PM
> To: David Airlie
> Cc: Deucher, Alexander; dri-devel@lists.freedesktop.org; linux-
> ker...@vger.kernel.org
> Subject: radeon/kms: black screen when loading radeon with modeset=1
> 
> Kernel from Linus tree, HEAD at 7f80850d3f9fd8fda23a317044aef3a6bafab06b
> 
> Loading radeon module with modeset=1 causes black screen.
> 
> Usually it happens at boot time, but if run kernel with radeon.modeset=0
> then `rmmod radeon; modprobe radeon modeset=1` I can get dmesg over
> ssh (thanks to glisse from #radeon for help).
> 
> Backtrace below:
> 
> [   89.905890] BUG: unable to handle kernel NULL pointer dereference at
> 0008
> [   89.906016] IP: []
> radeon_atombios_parse_power_table_1_3+0x13d/0x810 [radeon]
> [   89.906016] PGD 6a0e1067 PUD 6a09d067 PMD 0
> [   89.906016] Oops: 0002 [#1] SMP
> [   89.906016] CPU 0
> [   89.906016] Modules linked in: radeon(+) snd_seq_dummy snd_seq_oss
> snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss
> snd_mixer_oss ipv6 btrfs cpufreq_ondemand powernow_k8 freq_table
> mperf lp ppdev parport_pc parport fuse snd_hda_codec_hdmi
> snd_hda_codec_realtek processor ttm drm_kms_helper drm thermal
> i2c_piix4 joydev agpgart video snd_hda_intel r8169 thermal_sys i2c_algo_bit
> i2c_core k8temp battery sdhci_pci snd_hda_codec evdev hwmon mii button
> ac shpchp sdhci snd_hwdep snd_pcm psmouse serio_raw mmc_core
> snd_timer sg snd soundcore snd_page_alloc [last unloaded: radeon]
> [   89.906016]
> [   89.906016] Pid: 2189, comm: modprobe Tainted: GW3.2.0-rc1+ #4
> Micro-Star International PR210/MS-1222
> [   89.906016] RIP: 0010:[]  []
> radeon_atombios_parse_power_table_1_3+0x13d/0x810 [radeon]
> [   89.906016] RSP: 0018:880075959948  EFLAGS: 00010246
> [   89.906016] RAX:  RBX: 880075b72000 RCX:
> 
> [   89.906016] RDX:  RSI:  RDI:
> 880076c73c00
> [   89.906016] RBP: 880075959a98 R08:  R09:
> 880076c73a00
> [   89.906016] R10: 8800758a R11: 0006 R12:
> 8800758aadde
> [   89.906016] R13: 8800758aadde R14:  R15:
> 
> [   89.906016] FS:  7f57d0b27720() GS:88007bc0()
> knlGS:f702a6d0
> [   89.906016] CS:  0010 DS:  ES:  CR0: 8005003b
> [   89.906016] CR2: 0008 CR3: 6a0a6000 CR4:
> 06f0
> [   89.906016] DR0:  DR1:  DR2:
> 
> [   89.906016] DR3:  DR6: 0ff0 DR7:
> 0400
> [   89.906016] Process modprobe (pid: 2189, threadinfo 880075958000, task
> 880075abc6d0)
> [   89.906016] Stack:
> [   89.906016]  8800 8800768f400a 8800
> 00ff
> [   89.906016]  880037653663 880075b73158 880075b73174
> 000675959acf
> [   89.906016]  81b6112c 880075959a38 81b6112e
> 880075959ad5
> [   89.906016] Call Trace:
> [   89.906016]  [] ? vsnprintf+0x31e/0x5d0
> [   89.906016]  [] ? vsnprintf+0x31e/0x5d0
> [   89.906016]  [] ? up+0x31/0x50
> [   89.906016]  [] ? console_unlock+0x1c4/0x230
> [   89.906016]  []
> radeon_atombios_get_power_modes+0x228/0x8e0 [radeon]
> [   89.906016]  [] radeon_pm_init+0x3b1/0x590 [radeon]
> [   89.906016]  [] ? rs600_irq_set+0x109/0x180 [radeon]
> [   89.906016]  [] radeon_modeset_init+0x4c9/0x8a0
> [radeon]
> [   89.906016]  [] ? radeon_acpi_init+0x8c/0xbc [radeon]
> [   89.906016]  [] radeon_driver_load_kms+0x120/0x170
> [radeon]
> [   89.906016]  [] drm_get_pci_dev+0x18e/0x2c0 [drm]
> [   89.906016]  [] radeon_pci_probe+0xad/0xb5 [radeon]
> [   89.906016]  [] local_pci_probe+0x5f/0xd0
> [   89.906016]  [] pci_device_probe+0x88/0xb0
> [   89.906016]  [] ? driver_sysfs_add+0x7a/0xb0
> [   89.906016]  [] driver_probe_device+0x96/0x1b0
> [   89.906016]  [] __driver_attach+0xa3/0xb0
> [   89.906016]  [] ? driver_probe_device+0x1b0/0x1b0
> [   89.906016]  [] bus_for_each_dev+0x5e/0x90
> [   89.906016]  [] driver_attach+0x1e/0x20
> [   89.906016]  [] bus_add_driver+0x155/0x280
> [   89.906016]  [] driver_register+0x76/0x140
> [   89.906016]  [] __pci_register_driver+0x55/0xd0
> [   89.906016]  [] drm_pci_init+0x111/0x120 [drm]
> [   89.906016]  [] ? 0xa0638fff
> [   89.906016]  [] ? 0xa0638fff
> [   89.906016]  [] radeon_init+0xec/0xee [radeon]
> [   89.906016]  [] do_one_initcall+0x44/0x170
> [   89.906016]  [] sys_init_module+0x92/0x1e0
> [   89.906016]  [] system_call_fastpath+0x16/0x1b
> [   89.906016] Code: 16 44 3b b5 ec fe ff ff 0f 8d 40 01 00 00 48 8b 83 58 11
> 00 00 49 63 cf 48 89 ca 48 c1 e1 06 48 c1 e2 04 48 29 d1 48 8b 44 08 08 
> 40 08 00 00 00 00 0f b6 45 8f 3c 02 75 ac 4c 8b 83 58 11 00
> [   89.906016] RIP  []

Re: radeon/kms: black screen when loading radeon with modeset=1

2011-11-15 Thread Alex Deucher
On Tue, Nov 15, 2011 at 2:05 PM, Sergey V.  wrote:
> Kernel from Linus tree, HEAD at 7f80850d3f9fd8fda23a317044aef3a6bafab06b
>
> Loading radeon module with modeset=1 causes black screen.
>
> Usually it happens at boot time, but if run kernel with radeon.modeset=0 then
> `rmmod radeon; modprobe radeon modeset=1` I can get dmesg over ssh (thanks to
> glisse from #radeon for help).

Fixed with this patch:
http://lists.freedesktop.org/archives/dri-devel/2011-November/016498.html

Alex

>
> Backtrace below:
>
> [   89.905890] BUG: unable to handle kernel NULL pointer dereference at
> 0008
> [   89.906016] IP: []
> radeon_atombios_parse_power_table_1_3+0x13d/0x810 [radeon]
> [   89.906016] PGD 6a0e1067 PUD 6a09d067 PMD 0
> [   89.906016] Oops: 0002 [#1] SMP
> [   89.906016] CPU 0
> [   89.906016] Modules linked in: radeon(+) snd_seq_dummy snd_seq_oss
> snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss ipv6 btrfs
> cpufreq_ondemand powernow_k8 freq_table mperf lp ppdev parport_pc parport fuse
> snd_hda_codec_hdmi snd_hda_codec_realtek processor ttm drm_kms_helper drm
> thermal i2c_piix4 joydev agpgart video snd_hda_intel r8169 thermal_sys
> i2c_algo_bit i2c_core k8temp battery sdhci_pci snd_hda_codec evdev hwmon mii
> button ac shpchp sdhci snd_hwdep snd_pcm psmouse serio_raw mmc_core snd_timer
> sg snd soundcore snd_page_alloc [last unloaded: radeon]
> [   89.906016]
> [   89.906016] Pid: 2189, comm: modprobe Tainted: G        W    3.2.0-rc1+ #4
> Micro-Star International PR210/MS-1222
> [   89.906016] RIP: 0010:[]  []
> radeon_atombios_parse_power_table_1_3+0x13d/0x810 [radeon]
> [   89.906016] RSP: 0018:880075959948  EFLAGS: 00010246
> [   89.906016] RAX:  RBX: 880075b72000 RCX:
> 
> [   89.906016] RDX:  RSI:  RDI:
> 880076c73c00
> [   89.906016] RBP: 880075959a98 R08:  R09:
> 880076c73a00
> [   89.906016] R10: 8800758a R11: 0006 R12:
> 8800758aadde
> [   89.906016] R13: 8800758aadde R14:  R15:
> 
> [   89.906016] FS:  7f57d0b27720() GS:88007bc0()
> knlGS:f702a6d0
> [   89.906016] CS:  0010 DS:  ES:  CR0: 8005003b
> [   89.906016] CR2: 0008 CR3: 6a0a6000 CR4:
> 06f0
> [   89.906016] DR0:  DR1:  DR2:
> 
> [   89.906016] DR3:  DR6: 0ff0 DR7:
> 0400
> [   89.906016] Process modprobe (pid: 2189, threadinfo 880075958000, task
> 880075abc6d0)
> [   89.906016] Stack:
> [   89.906016]  8800 8800768f400a 8800
> 00ff
> [   89.906016]  880037653663 880075b73158 880075b73174
> 000675959acf
> [   89.906016]  81b6112c 880075959a38 81b6112e
> 880075959ad5
> [   89.906016] Call Trace:
> [   89.906016]  [] ? vsnprintf+0x31e/0x5d0
> [   89.906016]  [] ? vsnprintf+0x31e/0x5d0
> [   89.906016]  [] ? up+0x31/0x50
> [   89.906016]  [] ? console_unlock+0x1c4/0x230
> [   89.906016]  []
> radeon_atombios_get_power_modes+0x228/0x8e0 [radeon]
> [   89.906016]  [] radeon_pm_init+0x3b1/0x590 [radeon]
> [   89.906016]  [] ? rs600_irq_set+0x109/0x180 [radeon]
> [   89.906016]  [] radeon_modeset_init+0x4c9/0x8a0 [radeon]
> [   89.906016]  [] ? radeon_acpi_init+0x8c/0xbc [radeon]
> [   89.906016]  [] radeon_driver_load_kms+0x120/0x170
> [radeon]
> [   89.906016]  [] drm_get_pci_dev+0x18e/0x2c0 [drm]
> [   89.906016]  [] radeon_pci_probe+0xad/0xb5 [radeon]
> [   89.906016]  [] local_pci_probe+0x5f/0xd0
> [   89.906016]  [] pci_device_probe+0x88/0xb0
> [   89.906016]  [] ? driver_sysfs_add+0x7a/0xb0
> [   89.906016]  [] driver_probe_device+0x96/0x1b0
> [   89.906016]  [] __driver_attach+0xa3/0xb0
> [   89.906016]  [] ? driver_probe_device+0x1b0/0x1b0
> [   89.906016]  [] bus_for_each_dev+0x5e/0x90
> [   89.906016]  [] driver_attach+0x1e/0x20
> [   89.906016]  [] bus_add_driver+0x155/0x280
> [   89.906016]  [] driver_register+0x76/0x140
> [   89.906016]  [] __pci_register_driver+0x55/0xd0
> [   89.906016]  [] drm_pci_init+0x111/0x120 [drm]
> [   89.906016]  [] ? 0xa0638fff
> [   89.906016]  [] ? 0xa0638fff
> [   89.906016]  [] radeon_init+0xec/0xee [radeon]
> [   89.906016]  [] do_one_initcall+0x44/0x170
> [   89.906016]  [] sys_init_module+0x92/0x1e0
> [   89.906016]  [] system_call_fastpath+0x16/0x1b
> [   89.906016] Code: 16 44 3b b5 ec fe ff ff 0f 8d 40 01 00 00 48 8b 83 58 11
> 00 00 49 63 cf 48 89 ca 48 c1 e1 06 48 c1 e2 04 48 29 d1 48 8b 44 08 08 
> 40 08 00 00 00 00 0f b6 45 8f 3c 02 75 ac 4c 8b 83 58 11 00
> [   89.906016] RIP  []
> radeon_atombios_parse_power_table_1_3+0x13d/0x810 [radeon]
> [   89.906016]  RSP 
> [   89.906016] CR2: 0008
> [   89.918682] ---[ end trace 758728fd12807b58 ]---
>
> Whole dmesg output attached.
>
> __