Bug 60759

Summary: Oops when switching from integrated (intel) to discrete (radeon) graphic
Product: Drivers Reporter: Aximab (laurent.debian)
Component: Video(AGP)Assignee: Dave Airlie (airlied)
Status: NEW ---    
Severity: normal CC: alexdeucher, laurent.debian, szg00000
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.11-rc5 Subsystem:
Regression: No Bisected commit-id:
Attachments: syslog

Description Aximab 2013-08-16 19:31:08 UTC
Created attachment 107219 [details]
syslog

I just compile the last kernel with the submitted fix to solve BUG https://bugzilla.kernel.org/show_bug.cgi?id=55311. 

However now I get an oops each time i try to switch requiring an Hard reboot. 
The logfile is in the attachment
I betting on a request to bisect now ? :(

Regards,
laurent


lspci : 
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Madison [Mobility Radeon HD 5650/5750 / 6530M/6550M] (rev ff)
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Redwood HDMI Audio [Radeon HD 5000 Series] (rev ff)
02:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
7f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
7f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
7f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
7f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
7f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
7f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
Comment 1 Aximab 2013-08-19 18:43:11 UTC
Well I just tried the 3.11-rc6 and it didn't oops. 
Instead when switching I have now the following : 

[] radeon: switched on
[] radeon 0000:01:00.0: power state changed by ACPI to D0
[] [drm] PCIE GART of 512M enabled (table at 0x000000000025D000).
[] radeon 0000:01:00.0: WB enabled
[] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and
[] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and
[] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x000000000005c418 and
[] [drm] ring test on 0 succeeded in 2 usecs
[] [drm] ring test on 3 succeeded in 1 usecs


[] [drm:r600_uvd_ring_test] *ERROR* radeon: ring 5 test failed (0xCAFEDEAD)
[] [drm:evergreen_startup] *ERROR* radeon: error initializing UVD (-22).


[] [drm] ib test on ring 0 succeeded in 0 usecs
[] [drm] ib test on ring 3 succeeded in 1 usecs
[] fbcon: Remapping primary device, fb1, to tty 1-63
[] i915: switched off
[] hda-intel 0000:01:00.1: Enabling via VGA-switcheroo
[] snd_hda_intel 0000:01:00.1: irq 45 for MSI/MSI-X

I only found this error in a related (closed ) bug 67276 but I cannot see any particular problem, of course i did try to know if UVD was working but the obvious bet is certainly not. ASAIK i got complete and up to date firmware
So I didn't really know what to do now : mark it as resolved ( no oops with rc6) or keep it open (still got errors when switching). Any comments/request/question will be appreciate
regards,
Comment 2 Alex Deucher 2013-08-21 15:50:02 UTC
Make sure you have the uvd firmware and the updated rlc firmware for your asic.  If you are using an initrd, make sure you have the updated firmware in your initrd.  If you are building the driver into the kernel, make sure you build the firmware into the kernel as well.  Note that if you build the driver into the kernel, you will need to run `make clean` on your kernel tree in order for it to pick up the new firmware properly.
Comment 3 Aximab 2013-08-23 15:53:01 UTC
Since I am not able to State I do things correctly heres is what i Have just done ( I build the kernel from git and use deb-pkg to produce  .deb package): 

git pull 
make clean 
cp /boot/configXXX .config
make deb-pkg 
dpkg -i linux-libc-dev_3.11.0-rc6_amd64.deb 
        linux-firmware-image_3.11.0-rc6_amd64.deb
        linux-headers-3.11.0-rc6+_3.11.0-rc6_amd64.deb
        linux-image-3.11.0-rc6+_3.11.0-rc6_amd64.deb

2 informations : 
-NO error in boot process. Everything concerning radeon is fine during boot according to the log  specially

- The Errors occur when I try to power up the radeon card ( echo ON > ..) will produce the two lines 
[] [drm:r600_uvd_ring_test] *ERROR* radeon: ring 5 test failed (0xCAFEDEAD)
[] [drm:evergreen_startup] *ERROR* radeon: error initializing UVD (-22).

If after that I ask for a switch (i.e in console echo DIS > ..) I got no error and the switch is done properly. 

Regards,