Skip to contentSkip to conversation

Asus F5RL laptop unable to resume from S3 because of radeon module

DISCUSSION Ondrej Zary 2 participants 13 messages Aug 22, 2013 – Aug 27, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there is no fix or workaround.

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends correctly (power LED blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works), only the LCD is blank (obviously). Loading radeon module now initializes the card properly:
LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then unloaded:
Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M] [1002:5a62] (prog-if 00 [VGA controller])

        Subsystem: ASUSTeK Computer Inc. Device [1043:1402]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10
        Memory at c0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 9800 [size=256]
        Memory at fa8f0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at fa8c0000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 2
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Kernel driver in use: radeon
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting (RS400 0x1002:0x5A62 0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using max accessible memory
[    4.837653] radeon 0000:01:05.0: VRAM: 128M 0x0000000078000000 - 0x000000007FFFFFFF (128M used)
[    4.837714] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000 - 0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics memory: 444588 kiB
[    4.839907] [TTM] Zone highmem: Available graphics memory: 972784 kiB
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    4.866905] [drm] radeon: 2 quad pipes, 1 z pipes initialized.
[    4.872945] [drm] PCIE GART of 512M enabled (table at 0x0000000035A00000).
[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    4.874988] [drm] Driver supports precise vblank timestamp query.
[    4.875055] [drm] radeon: irq initialized.
[    4.875119] [drm] Loading R300 Microcode
[    4.962083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.088150] ohci-pci: OHCI PCI platform driver
[    5.141799] [drm] radeon: ring at 0x0000000080001000
[    5.141883] [drm] ring test succeeded in 2 usecs
[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight initialized
[    5.166358] [drm] Radeon Display Connectors
[    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68 0x68 0x68
[    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0 0x1a0 0x1a4 0x1a4
[    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer device
[    5.427442] radeon 0000:01:05.0: registered panic notifier
[    5.427501] [drm] Initialized radeon 2.34.0 20080528 for 0000:01:05.0 on minor 0
Signature · 1 line
Ondrej Zary
#1 lore raw
Quoted 8 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 5 lines

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=cef1d00cd56f600121ad121875655ad410a001b8

Alex

Quoted 99 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends correctly (power LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works), only the LCD is
blank (obviously). Loading radeon module now initializes the card properly:
LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then unloaded:
Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M] [1002:5a62] (prog-if 00 [VGA controller])

        Subsystem: ASUSTeK Computer Inc. Device [1043:1402]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10
        Memory at c0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 9800 [size=256]
        Memory at fa8f0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at fa8c0000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 2
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Kernel driver in use: radeon
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting (RS400 0x1002:0x5A62
0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using max accessible memory
[    4.837653] radeon 0000:01:05.0: VRAM: 128M 0x0000000078000000 -
0x000000007FFFFFFF (128M used)
[    4.837714] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000 -
0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics memory: 444588 kiB
[    4.839907] [TTM] Zone highmem: Available graphics memory: 972784 kiB
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    4.866905] [drm] radeon: 2 quad pipes, 1 z pipes initialized.
[    4.872945] [drm] PCIE GART of 512M enabled (table at
0x0000000035A00000).
[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring 0 use gpu addr
0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    4.874988] [drm] Driver supports precise vblank timestamp query.
[    4.875055] [drm] radeon: irq initialized.
[    4.875119] [drm] Loading R300 Microcode
[    4.962083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.088150] ohci-pci: OHCI PCI platform driver
[    5.141799] [drm] radeon: ring at 0x0000000080001000
[    5.141883] [drm] ring test succeeded in 2 usecs
[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight initialized
[    5.166358] [drm] Radeon Display Connectors
[    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68 0x68 0x68
[    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0 0x1a0 0x1a4 0x1a4
[    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer device
[    5.427442] radeon 0000:01:05.0: registered panic notifier
[    5.427501] [drm] Initialized radeon 2.34.0 20080528 for 0000:01:05.0 on

minor 0

--
Ondrej Zary

#2 lore raw
Quoted 14 lines · Alexander
Quoted 8 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 5 lines

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Quoted 3 lines

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c
ef1d00cd56f600121ad121875655ad410a001b8

Just tried latest git (3.11-rc6+) and the problem persists.

Quoted 100 lines

Alex

Quoted 98 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends correctly (power LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works), only the LCD is
blank (obviously). Loading radeon module now initializes the card
properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then unloaded:
Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M] [1002:5a62] (prog-if 00 [VGA controller])

        Subsystem: ASUSTeK Computer Inc. Device [1043:1402]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10
        Memory at c0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 9800 [size=256]
        Memory at fa8f0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at fa8c0000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 2
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Kernel driver in use: radeon
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting (RS400 0x1002:0x5A62
0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using max accessible
memory [    4.837653] radeon 0000:01:05.0: VRAM: 128M 0x0000000078000000
- 0x000000007FFFFFFF (128M used)
[    4.837714] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000 -
0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics memory: 444588 kiB
[    4.839907] [TTM] Zone highmem: Available graphics memory: 972784 kiB
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    4.866905] [drm] radeon: 2 quad pipes, 1 z pipes initialized.
[    4.872945] [drm] PCIE GART of 512M enabled (table at
0x0000000035A00000).
[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring 0 use gpu addr
0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching Rev 1
(10.10.2010). [    4.874988] [drm] Driver supports precise vblank
timestamp query. [    4.875055] [drm] radeon: irq initialized.
[    4.875119] [drm] Loading R300 Microcode
[    4.962083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.088150] ohci-pci: OHCI PCI platform driver
[    5.141799] [drm] radeon: ring at 0x0000000080001000
[    5.141883] [drm] ring test succeeded in 2 usecs
[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight initialized
[    5.166358] [drm] Radeon Display Connectors
[    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68 0x68 0x68
[    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0 0x1a0 0x1a4
0x1a4 [    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer device
[    5.427442] radeon 0000:01:05.0: registered panic notifier
[    5.427501] [drm] Initialized radeon 2.34.0 20080528 for 0000:01:05.0

on minor 0

--
Ondrej Zary

Signature · 1 line
Ondrej Zary
#3 lore raw
Quoted 23 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 4:00 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 14 lines · Alexander
Quoted 13 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Quoted 6 lines
Quoted 3 lines

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c
ef1d00cd56f600121ad121875655ad410a001b8

Just tried latest git (3.11-rc6+) and the problem persists.

You might try adding a quirk for your system in radeon_combios_asic_init() in radeon_combios.c. You can try something like this for testing:

drivers/gpu/drm/radeon/radeon_combios.c +2 -0
index 68ce360..0419a2c 100644
@@ -3398,6 +3398,8 @@ void radeon_combios_asic_init(struct drm_device *dev)
            rdev->pdev->subsystem_device == 0x30ae)
                return;
 
+       return;
+
        /* DYN CLK 1 */
        table = combios_get_table_offset(dev, COMBIOS_DYN_CLK_1_TABLE);
        if (table)

If that doesn't work, you'll probably have to track down where it's hanging during resume, or compare registers before and after resume to see if it's some particular state that's causing a problem.

Alex

Quoted 110 lines
Quoted 6 lines

Alex

Quoted 4 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends correctly

(power

Quoted 6 lines
Quoted 6 lines

LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works), only the

LCD

Quoted 5 lines
Quoted 5 lines

is
blank (obviously). Loading radeon module now initializes the card
properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then

unloaded:

Quoted 5 lines
Quoted 5 lines

Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Quoted 7 lines
Quoted 7 lines

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M] [1002:5a62] (prog-if

00

Quoted 11 lines
Quoted 11 lines

[VGA controller])

        Subsystem: ASUSTeK Computer Inc. Device [1043:1402]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10
        Memory at c0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 9800 [size=256]
        Memory at fa8f0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at fa8c0000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 2
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Kernel driver in use: radeon
Quoted 7 lines
Quoted 7 lines
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting (RS400 0x1002:0x5A62
0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using max accessible

memory [ 4.837653] radeon 0000:01:05.0: VRAM: 128M

0x0000000078000000

Quoted 7 lines
Quoted 7 lines

- 0x000000007FFFFFFF (128M used)

[    4.837714] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000 -
0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics memory: 444588 kiB
[    4.839907] [TTM] Zone highmem: Available graphics memory: 972784

kiB

Quoted 44 lines
Quoted 44 lines
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    4.866905] [drm] radeon: 2 quad pipes, 1 z pipes initialized.
[    4.872945] [drm] PCIE GART of 512M enabled (table at
0x0000000035A00000).
[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring 0 use gpu addr
0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching Rev 1
(10.10.2010). [    4.874988] [drm] Driver supports precise vblank
timestamp query. [    4.875055] [drm] radeon: irq initialized.
[    4.875119] [drm] Loading R300 Microcode
[    4.962083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.088150] ohci-pci: OHCI PCI platform driver
[    5.141799] [drm] radeon: ring at 0x0000000080001000
[    5.141883] [drm] ring test succeeded in 2 usecs
[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight initialized
[    5.166358] [drm] Radeon Display Connectors
[    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68 0x68 0x68
[    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0 0x1a0 0x1a4
0x1a4 [    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer device
[    5.427442] radeon 0000:01:05.0: registered panic notifier
[    5.427501] [drm] Initialized radeon 2.34.0 20080528 for 0000:01:05.0

on minor 0

Quoted 2 lines
Quoted 2 lines

--
Ondrej Zary

--
Ondrej Zary

#4 lore raw
Quoted 46 lines · Alexander
Quoted 23 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 4:00 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 14 lines · Alexander
Quoted 13 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Quoted 5 lines
Quoted 3 lines

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?
id=c ef1d00cd56f600121ad121875655ad410a001b8

Just tried latest git (3.11-rc6+) and the problem persists.

You might try adding a quirk for your system in radeon_combios_asic_init() in radeon_combios.c. You can try something like this for testing:

(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_combios.c index 68ce360..0419a2c 100644

drivers/gpu/drm/radeon/radeon_combios.c +2 -0
@@ -3398,6 +3398,8 @@ void radeon_combios_asic_init(struct drm_device *dev)
            rdev->pdev->subsystem_device == 0x30ae)
                return;
 
+       return;
+
        /* DYN CLK 1 */
        table = combios_get_table_offset(dev, COMBIOS_DYN_CLK_1_TABLE);
        if (table)
Quoted 3 lines

If that doesn't work, you'll probably have to track down where it's hanging during resume, or compare registers before and after resume to see if it's some particular state that's causing a problem.

No change.

Inserted "return -1;" before radeon_device_init() to radeon_driver_load_kms() - driver fails to load and resume works. Moved it (and changed to "r = -1; goto out;") a bit down before radeon_modeset_init() - driver fails to load and resume stopped working.

Quoted 124 lines

Alex

Quoted 122 lines
Quoted 6 lines

Alex

Quoted 4 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends correctly

(power

Quoted 6 lines
Quoted 6 lines

LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works), only the

LCD

Quoted 5 lines
Quoted 5 lines

is
blank (obviously). Loading radeon module now initializes the card
properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then

unloaded:

Quoted 5 lines
Quoted 5 lines

Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Quoted 8 lines
Quoted 8 lines

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M] [1002:5a62] (prog-if

00

Quoted 11 lines
Quoted 11 lines

[VGA controller])

        Subsystem: ASUSTeK Computer Inc. Device [1043:1402]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10
        Memory at c0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 9800 [size=256]
        Memory at fa8f0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at fa8c0000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 2
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Kernel driver in use: radeon
Quoted 7 lines
Quoted 7 lines
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting (RS400
0x1002:0x5A62 0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using max accessible

memory [ 4.837653] radeon 0000:01:05.0: VRAM: 128M

0x0000000078000000

Quoted 8 lines
Quoted 8 lines

- 0x000000007FFFFFFF (128M used)

[    4.837714] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000 -
0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics memory: 444588

kiB [ 4.839907] [TTM] Zone highmem: Available graphics memory:
972784

kiB

Quoted 44 lines
Quoted 44 lines
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    4.866905] [drm] radeon: 2 quad pipes, 1 z pipes initialized.
[    4.872945] [drm] PCIE GART of 512M enabled (table at
0x0000000035A00000).
[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring 0 use gpu
addr 0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching Rev 1
(10.10.2010). [    4.874988] [drm] Driver supports precise vblank
timestamp query. [    4.875055] [drm] radeon: irq initialized.
[    4.875119] [drm] Loading R300 Microcode
[    4.962083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.088150] ohci-pci: OHCI PCI platform driver
[    5.141799] [drm] radeon: ring at 0x0000000080001000
[    5.141883] [drm] ring test succeeded in 2 usecs
[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight initialized
[    5.166358] [drm] Radeon Display Connectors
[    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68 0x68 0x68
[    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0 0x1a0 0x1a4
0x1a4 [    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer
device [    5.427442] radeon 0000:01:05.0: registered panic notifier
[    5.427501] [drm] Initialized radeon 2.34.0 20080528 for

0000:01:05.0 on minor 0

Quoted 2 lines
Quoted 2 lines

--
Ondrej Zary

--
Ondrej Zary

Signature · 1 line
Ondrej Zary
#5 lore raw
Quoted 54 lines · On Thursday 22 August 2013 22:56:03 Ondrej Zary wrote:
Quoted 47 lines · Alexander
Quoted 23 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 4:00 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 14 lines · Alexander
Quoted 13 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Quoted 5 lines
Quoted 3 lines

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit
/? id=c ef1d00cd56f600121ad121875655ad410a001b8

Just tried latest git (3.11-rc6+) and the problem persists.

You might try adding a quirk for your system in radeon_combios_asic_init() in radeon_combios.c. You can try something like this for testing:

(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_combios.c index 68ce360..0419a2c 100644

drivers/gpu/drm/radeon/radeon_combios.c +2 -0
@@ -3398,6 +3398,8 @@ void radeon_combios_asic_init(struct drm_device
 *dev) rdev->pdev->subsystem_device == 0x30ae)
                return;
 
+       return;
+
        /* DYN CLK 1 */
        table = combios_get_table_offset(dev, COMBIOS_DYN_CLK_1_TABLE);
        if (table)
Quoted 3 lines

If that doesn't work, you'll probably have to track down where it's hanging during resume, or compare registers before and after resume to see if it's some particular state that's causing a problem.

No change.

Quoted 4 lines

Inserted "return -1;" before radeon_device_init() to radeon_driver_load_kms() - driver fails to load and resume works. Moved it (and changed to "r = -1; goto out;") a bit down before radeon_modeset_init() - driver fails to load and resume stopped working.

Going deeper... it works before rs400_startup() and does not work after that. Will continue later.

Quoted 126 lines
Quoted 126 lines

Alex

Quoted 124 lines
Quoted 6 lines

Alex

Quoted 4 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends correctly

(power

Quoted 7 lines
Quoted 7 lines

LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works), only the

LCD

Quoted 5 lines
Quoted 5 lines

is
blank (obviously). Loading radeon module now initializes the card
properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then

unloaded:

Quoted 5 lines
Quoted 5 lines

Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Quoted 8 lines
Quoted 8 lines

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M] [1002:5a62] (prog-if

00

Quoted 11 lines
Quoted 11 lines

[VGA controller])

        Subsystem: ASUSTeK Computer Inc. Device [1043:1402]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10
        Memory at c0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 9800 [size=256]
        Memory at fa8f0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at fa8c0000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 2
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Kernel driver in use: radeon
Quoted 7 lines
Quoted 7 lines
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting (RS400
0x1002:0x5A62 0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using max

accessible memory [ 4.837653] radeon 0000:01:05.0: VRAM: 128M

0x0000000078000000

Quoted 8 lines
Quoted 8 lines

- 0x000000007FFFFFFF (128M used)

[    4.837714] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000 -
0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics memory:

444588 kiB [ 4.839907] [TTM] Zone highmem: Available graphics
memory: 972784

kiB

Quoted 45 lines
Quoted 45 lines
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu pages

131072 [ 4.866905] [drm] radeon: 2 quad pipes, 1 z pipes
initialized. [ 4.872945] [drm] PCIE GART of 512M enabled (table
at
0x0000000035A00000).

[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring 0 use gpu
addr 0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching Rev 1
(10.10.2010). [    4.874988] [drm] Driver supports precise vblank
timestamp query. [    4.875055] [drm] radeon: irq initialized.
[    4.875119] [drm] Loading R300 Microcode
[    4.962083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI)
Driver [    5.088150] ohci-pci: OHCI PCI platform driver
[    5.141799] [drm] radeon: ring at 0x0000000080001000
[    5.141883] [drm] ring test succeeded in 2 usecs
[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight initialized
[    5.166358] [drm] Radeon Display Connectors
[    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68 0x68 0x68
[    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0 0x1a0
0x1a4 0x1a4 [    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer

device [ 5.427442] radeon 0000:01:05.0: registered panic
notifier [ 5.427501] [drm] Initialized radeon 2.34.0 20080528
for 0000:01:05.0 on minor 0

Quoted 2 lines
Quoted 2 lines

--
Ondrej Zary

--
Ondrej Zary

Signature · 1 line
Ondrej Zary
#6 lore raw
Quoted 55 lines · On Friday 23 August 2013 00:08:33 Ondrej Zary wrote:
Quoted 54 lines · On Thursday 22 August 2013 22:56:03 Ondrej Zary wrote:
Quoted 47 lines · Alexander
Quoted 23 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 4:00 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 14 lines · Alexander
Quoted 13 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Quoted 5 lines
Quoted 3 lines

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/comm
it /? id=c ef1d00cd56f600121ad121875655ad410a001b8

Just tried latest git (3.11-rc6+) and the problem persists.

You might try adding a quirk for your system in radeon_combios_asic_init() in radeon_combios.c. You can try something like this for testing:

(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_combios.c index 68ce360..0419a2c 100644

drivers/gpu/drm/radeon/radeon_combios.c +2 -0
@@ -3398,6 +3398,8 @@ void radeon_combios_asic_init(struct drm_device
 *dev) rdev->pdev->subsystem_device == 0x30ae)
                return;
 
+       return;
+
        /* DYN CLK 1 */
        table = combios_get_table_offset(dev, COMBIOS_DYN_CLK_1_TABLE);
        if (table)
Quoted 3 lines

If that doesn't work, you'll probably have to track down where it's hanging during resume, or compare registers before and after resume to see if it's some particular state that's causing a problem.

No change.

Quoted 7 lines
Quoted 4 lines

Inserted "return -1;" before radeon_device_init() to radeon_driver_load_kms() - driver fails to load and resume works. Moved it (and changed to "r = -1; goto out;") a bit down before radeon_modeset_init() - driver fails to load and resume stopped working.

Going deeper... it works before rs400_startup() and does not work after that. Will continue later.

Tracked the problem down to rs400_gart_enable(). When this "Disable AGP mode" code is commented out, the machine resumes fine:

        if ((rdev->family == CHIP_RS690) || (rdev->family == CHIP_RS740)) {
              WREG32_MC(RS480_MC_MISC_CNTL,
                        (RS480_GART_INDEX_REG_EN | RS690_BLOCK_GFX_D3_EN));
        } else {
              WREG32_MC(RS480_MC_MISC_CNTL, RS480_GART_INDEX_REG_EN);
        }
Quoted 126 lines
Quoted 126 lines
Quoted 126 lines

Alex

Quoted 124 lines
Quoted 6 lines

Alex

Quoted 4 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends correctly

(power

Quoted 7 lines
Quoted 7 lines

LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works), only the

LCD

Quoted 5 lines
Quoted 5 lines

is
blank (obviously). Loading radeon module now initializes the card
properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then

unloaded:

Quoted 5 lines
Quoted 5 lines

Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Quoted 8 lines
Quoted 8 lines

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M] [1002:5a62] (prog-if

00

Quoted 11 lines
Quoted 11 lines

[VGA controller])
Subsystem: ASUSTeK Computer Inc. Device [1043:1402]
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ
10 Memory at c0000000 (32-bit, prefetchable) [size=256M] I/O ports at 9800 [size=256]
Memory at fa8f0000 (32-bit, non-prefetchable) [size=64K] Expansion ROM at fa8c0000 [disabled] [size=128K]
Capabilities: [50] Power Management version 2
Capabilities: [80] MSI: Enable- Count=1/1 Maskable-
64bit- Kernel driver in use: radeon

Quoted 7 lines
Quoted 7 lines
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting (RS400
0x1002:0x5A62 0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using max

accessible memory [ 4.837653] radeon 0000:01:05.0: VRAM: 128M

0x0000000078000000

Quoted 8 lines
Quoted 8 lines

- 0x000000007FFFFFFF (128M used)

[    4.837714] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000
- 0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics memory:

444588 kiB [ 4.839907] [TTM] Zone highmem: Available graphics
memory: 972784

kiB

Quoted 45 lines
Quoted 45 lines
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu pages

131072 [ 4.866905] [drm] radeon: 2 quad pipes, 1 z pipes
initialized. [ 4.872945] [drm] PCIE GART of 512M enabled
(table at
0x0000000035A00000).

[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring 0 use
gpu addr 0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching Rev 1
(10.10.2010). [    4.874988] [drm] Driver supports precise vblank
timestamp query. [    4.875055] [drm] radeon: irq initialized.
[    4.875119] [drm] Loading R300 Microcode
[    4.962083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI)
Driver [    5.088150] ohci-pci: OHCI PCI platform driver
[    5.141799] [drm] radeon: ring at 0x0000000080001000
[    5.141883] [drm] ring test succeeded in 2 usecs
[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight initialized
[    5.166358] [drm] Radeon Display Connectors
[    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68 0x68
0x68 [    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0 0x1a0
0x1a4 0x1a4 [    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer

device [ 5.427442] radeon 0000:01:05.0: registered panic
notifier [ 5.427501] [drm] Initialized radeon 2.34.0 20080528
for 0000:01:05.0 on minor 0

Quoted 2 lines
Quoted 2 lines

--
Ondrej Zary

--
Ondrej Zary

Signature · 1 line
Ondrej Zary
#7 lore raw
Quoted 82 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Friday, August 23, 2013 1:55 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 25 lines · On Friday 23 August 2013 00:08:33 Ondrej Zary wrote:
Quoted 24 lines · On Thursday 22 August 2013 22:56:03 Ondrej Zary wrote:
Quoted 23 lines · Alexander
Quoted 23 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 4:00 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 14 lines · Alexander
Quoted 13 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/comm
it /? id=c ef1d00cd56f600121ad121875655ad410a001b8

Just tried latest git (3.11-rc6+) and the problem persists.

You might try adding a quirk for your system in radeon_combios_asic_init() in radeon_combios.c. You can try

something

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

like this for testing:

(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_combios.c index 68ce360..0419a2c

100644

Quoted 3 lines
Quoted 3 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct

Quoted 3 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
@@ -3398,6 +3398,8 @@ void radeon_combios_asic_init(struct

drm_device

Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct drm_device *dev)

Quoted 7 lines
drivers/gpu/drm/radeon/radeon_combios.c +2 -0
 *dev) rdev->pdev->subsystem_device == 0x30ae)
                return;
 
+       return;
+
        /* DYN CLK 1 */
        table = combios_get_table_offset(dev,

COMBIOS_DYN_CLK_1_TABLE);

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
        if (table)

If that doesn't work, you'll probably have to track down where it's hanging during resume, or compare registers before and after resume

to

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

see if it's some particular state that's causing a problem.

No change.

Inserted "return -1;" before radeon_device_init() to radeon_driver_load_kms() - driver fails to load and resume works. Moved it (and changed to "r = -1; goto out;") a bit down before radeon_modeset_init() - driver fails to load and resume stopped

working.

Quoted 3 lines

Going deeper... it works before rs400_startup() and does not work after that. Will continue later.

Tracked the problem down to rs400_gart_enable(). When this "Disable AGP mode"
code is commented out, the machine resumes fine:

Quoted 7 lines
        if ((rdev->family == CHIP_RS690) || (rdev->family == CHIP_RS740)) {
              WREG32_MC(RS480_MC_MISC_CNTL,
                        (RS480_GART_INDEX_REG_EN | RS690_BLOCK_GFX_D3_EN));
        } else {
              WREG32_MC(RS480_MC_MISC_CNTL, RS480_GART_INDEX_REG_EN);
        }

Does the driver work properly after resume with that part commented out or does it just avoid the hang?

Alex

Quoted 136 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Alex

Quoted 6 lines
Quoted 6 lines

Alex

Quoted 4 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends

correctly

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

(power

Quoted 6 lines
Quoted 6 lines

LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works),

only

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 1 line
Quoted 1 line

the

LCD

Quoted 5 lines
Quoted 5 lines

is
blank (obviously). Loading radeon module now initializes the card
properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then

unloaded:

Quoted 5 lines
Quoted 5 lines

Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro

Devices,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M]

[1002:5a62]

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 1 line
Quoted 1 line

(prog-if

00

Quoted 11 lines
Quoted 11 lines

[VGA controller])
Subsystem: ASUSTeK Computer Inc. Device [1043:1402]
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ
10 Memory at c0000000 (32-bit, prefetchable) [size=256M] I/O ports at 9800 [size=256]
Memory at fa8f0000 (32-bit, non-prefetchable) [size=64K] Expansion ROM at fa8c0000 [disabled] [size=128K]
Capabilities: [50] Power Management version 2
Capabilities: [80] MSI: Enable- Count=1/1 Maskable-
64bit- Kernel driver in use: radeon

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting (RS400
0x1002:0x5A62 0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using max

accessible memory [ 4.837653] radeon 0000:01:05.0: VRAM:

128M

Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
Quoted 59 lines

0x0000000078000000

Quoted 8 lines
Quoted 8 lines

- 0x000000007FFFFFFF (128M used)

[    4.837714] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000
- 0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics memory:

444588 kiB [ 4.839907] [TTM] Zone highmem: Available graphics
memory: 972784

kiB

Quoted 45 lines
Quoted 45 lines
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu pages

131072 [ 4.866905] [drm] radeon: 2 quad pipes, 1 z pipes
initialized. [ 4.872945] [drm] PCIE GART of 512M enabled
(table at
0x0000000035A00000).

[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring 0 use
gpu addr 0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching Rev 1
(10.10.2010). [    4.874988] [drm] Driver supports precise vblank
timestamp query. [    4.875055] [drm] radeon: irq initialized.
[    4.875119] [drm] Loading R300 Microcode
[    4.962083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI)
Driver [    5.088150] ohci-pci: OHCI PCI platform driver
[    5.141799] [drm] radeon: ring at 0x0000000080001000
[    5.141883] [drm] ring test succeeded in 2 usecs
[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight initialized
[    5.166358] [drm] Radeon Display Connectors
[    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68 0x68
0x68 [    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0 0x1a0
0x1a4 0x1a4 [    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer

device [ 5.427442] radeon 0000:01:05.0: registered panic
notifier [ 5.427501] [drm] Initialized radeon 2.34.0 20080528
for 0000:01:05.0 on minor 0

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

--
Ondrej Zary

--
Ondrej Zary

--
Ondrej Zary

#8 lore raw
Quoted 100 lines · Alexander
Quoted 93 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Friday, August 23, 2013 1:55 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 25 lines · On Friday 23 August 2013 00:08:33 Ondrej Zary wrote:
Quoted 24 lines · On Thursday 22 August 2013 22:56:03 Ondrej Zary wrote:
Quoted 23 lines · Alexander
Quoted 23 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 4:00 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 14 lines · Alexander
Quoted 13 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
comm it /? id=c ef1d00cd56f600121ad121875655ad410a001b8

Just tried latest git (3.11-rc6+) and the problem persists.

You might try adding a quirk for your system in radeon_combios_asic_init() in radeon_combios.c. You can try

something

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

like this for testing:

(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_combios.c index 68ce360..0419a2c

100644

Quoted 3 lines
Quoted 3 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct

Quoted 3 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
@@ -3398,6 +3398,8 @@ void radeon_combios_asic_init(struct

drm_device

Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct drm_device *dev)

Quoted 7 lines
drivers/gpu/drm/radeon/radeon_combios.c +2 -0
 *dev) rdev->pdev->subsystem_device == 0x30ae)
                return;
 
+       return;
+
        /* DYN CLK 1 */
        table = combios_get_table_offset(dev,

COMBIOS_DYN_CLK_1_TABLE);

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
        if (table)

If that doesn't work, you'll probably have to track down where it's hanging during resume, or compare registers before and after resume

to

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

see if it's some particular state that's causing a problem.

No change.

Inserted "return -1;" before radeon_device_init() to radeon_driver_load_kms() - driver fails to load and resume works. Moved it (and changed to "r = -1; goto out;") a bit down before radeon_modeset_init() - driver fails to load and resume stopped

working.

Quoted 2 lines

Going deeper... it works before rs400_startup() and does not work after that. Will continue later.

Tracked the problem down to rs400_gart_enable(). When this "Disable AGP mode"
code is commented out, the machine resumes fine:

Quoted 6 lines
        if ((rdev->family == CHIP_RS690) || (rdev->family == CHIP_RS740))
{ WREG32_MC(RS480_MC_MISC_CNTL,
                        (RS480_GART_INDEX_REG_EN |
RS690_BLOCK_GFX_D3_EN)); } else {
              WREG32_MC(RS480_MC_MISC_CNTL, RS480_GART_INDEX_REG_EN);
        }
Quoted 2 lines

Does the driver work properly after resume with that part commented out or does it just avoid the hang?

Console seems to work fine, haven't tested X, 3D or video.

Quoted 151 lines

Alex

Quoted 135 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Alex

Quoted 6 lines
Quoted 6 lines

Alex

Quoted 4 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends

correctly

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(power

Quoted 6 lines
Quoted 6 lines

LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works),

only

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 1 line
Quoted 1 line

the

LCD

Quoted 5 lines
Quoted 5 lines

is
blank (obviously). Loading radeon module now initializes the card properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then

unloaded:

Quoted 5 lines
Quoted 5 lines

Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro

Devices,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M]

[1002:5a62]

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 1 line
Quoted 1 line

(prog-if

00

Quoted 11 lines
Quoted 11 lines

[VGA controller])
Subsystem: ASUSTeK Computer Inc. Device [1043:1402]
Flags: bus master, 66MHz, medium devsel, latency 64,
IRQ 10 Memory at c0000000 (32-bit, prefetchable) [size=256M] I/O ports at 9800 [size=256]

        Memory at fa8f0000 (32-bit, non-prefetchable)

[size=64K] Expansion ROM at fa8c0000 [disabled] [size=128K]
Capabilities: [50] Power Management version 2 Capabilities:
[80] MSI: Enable- Count=1/1 Maskable- 64bit- Kernel driver in
use: radeon

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting (RS400
0x1002:0x5A62 0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using max

accessible memory [ 4.837653] radeon 0000:01:05.0: VRAM:

128M

Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
Quoted 59 lines

0x0000000078000000

Quoted 8 lines
Quoted 8 lines

- 0x000000007FFFFFFF (128M used)

[    4.837714] radeon 0000:01:05.0: GTT: 512M
0x0000000080000000 - 0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics memory:

444588 kiB [ 4.839907] [TTM] Zone highmem: Available
graphics memory: 972784

kiB

Quoted 46 lines
Quoted 46 lines
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu

pages 131072 [ 4.866905] [drm] radeon: 2 quad pipes, 1 z
pipes initialized. [ 4.872945] [drm] PCIE GART of 512M
enabled (table at
0x0000000035A00000).

[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring 0
use gpu addr 0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching Rev 1
(10.10.2010). [    4.874988] [drm] Driver supports precise
vblank timestamp query. [    4.875055] [drm] radeon: irq
initialized. [    4.875119] [drm] Loading R300 Microcode
[    4.962083] ohci_hcd: USB 1.1 'Open' Host Controller

(OHCI) Driver [ 5.088150] ohci-pci: OHCI PCI platform
driver [ 5.141799] [drm] radeon: ring at
0x0000000080001000 [ 5.141883] [drm] ring test succeeded
in 2 usecs

[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight initialized
[    5.166358] [drm] Radeon Display Connectors
[    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68
0x68 0x68 [    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0
0x1a0 0x1a4 0x1a4 [    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb frame

buffer device [ 5.427442] radeon 0000:01:05.0: registered
panic notifier [ 5.427501] [drm] Initialized radeon 2.34.0
20080528 for 0000:01:05.0 on minor 0

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

--
Ondrej Zary

--
Ondrej Zary

--
Ondrej Zary

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 1 line
Ondrej Zary
#9 lore raw
Quoted 102 lines · On Sunday 25 August 2013 19:12:32 Ondrej Zary wrote:
Quoted 101 lines · Alexander
Quoted 100 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Friday, August 23, 2013 1:55 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 25 lines · On Friday 23 August 2013 00:08:33 Ondrej Zary wrote:
Quoted 24 lines · On Thursday 22 August 2013 22:56:03 Ondrej Zary wrote:
Quoted 23 lines · Alexander
Quoted 23 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 4:00 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 14 lines · Alexander
Quoted 13 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.gi
t/ comm it /? id=c ef1d00cd56f600121ad121875655ad410a001b8

Just tried latest git (3.11-rc6+) and the problem persists.

You might try adding a quirk for your system in radeon_combios_asic_init() in radeon_combios.c. You can try

something

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

like this for testing:

(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_combios.c index 68ce360..0419a2c

100644

Quoted 3 lines
Quoted 3 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct

Quoted 3 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
@@ -3398,6 +3398,8 @@ void radeon_combios_asic_init(struct

drm_device

Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct drm_device *dev)

Quoted 7 lines
drivers/gpu/drm/radeon/radeon_combios.c +2 -0
 *dev) rdev->pdev->subsystem_device == 0x30ae)
                return;
 
+       return;
+
        /* DYN CLK 1 */
        table = combios_get_table_offset(dev,

COMBIOS_DYN_CLK_1_TABLE);

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
        if (table)

If that doesn't work, you'll probably have to track down where it's hanging during resume, or compare registers before and after resume

to

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

see if it's some particular state that's causing a problem.

No change.

Inserted "return -1;" before radeon_device_init() to radeon_driver_load_kms() - driver fails to load and resume works. Moved it (and changed to "r = -1; goto out;") a bit down before radeon_modeset_init() - driver fails to load and resume stopped

working.

Quoted 2 lines

Going deeper... it works before rs400_startup() and does not work after that. Will continue later.

Tracked the problem down to rs400_gart_enable(). When this "Disable AGP mode"
code is commented out, the machine resumes fine:

        if ((rdev->family == CHIP_RS690) || (rdev->family ==
CHIP_RS740)) { WREG32_MC(RS480_MC_MISC_CNTL,
                        (RS480_GART_INDEX_REG_EN |
RS690_BLOCK_GFX_D3_EN)); } else {
              WREG32_MC(RS480_MC_MISC_CNTL, RS480_GART_INDEX_REG_EN);
        }
Quoted 4 lines
Quoted 2 lines

Does the driver work properly after resume with that part commented out or does it just avoid the hang?

Console seems to work fine, haven't tested X, 3D or video.

Testing it right now - everything seems to work. X, accelerated video (mplayer), 3D (glxgears). Both before and after suspend. That code does something with GART so maybe I should test something like OpenArena (have to download it first).

Quoted 153 lines
Quoted 153 lines

Alex

Quoted 137 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Alex

Quoted 6 lines
Quoted 6 lines

Alex

Quoted 4 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends

correctly

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

(power

Quoted 8 lines
Quoted 8 lines

LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works),

only

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 1 line
Quoted 1 line

the

LCD

Quoted 5 lines
Quoted 5 lines

is
blank (obviously). Loading radeon module now initializes the card properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then

unloaded:

Quoted 5 lines
Quoted 5 lines

Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro

Devices,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M]

[1002:5a62]

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 1 line
Quoted 1 line

(prog-if

00

Quoted 11 lines
Quoted 11 lines

[VGA controller])
Subsystem: ASUSTeK Computer Inc. Device [1043:1402]
Flags: bus master, 66MHz, medium devsel, latency
64, IRQ 10 Memory at c0000000 (32-bit, prefetchable) [size=256M] I/O ports at 9800 [size=256]

        Memory at fa8f0000 (32-bit, non-prefetchable)

[size=64K] Expansion ROM at fa8c0000 [disabled] [size=128K]
Capabilities: [50] Power Management version 2 Capabilities:
[80] MSI: Enable- Count=1/1 Maskable- 64bit- Kernel driver in use: radeon

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting (RS400
0x1002:0x5A62 0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using max

accessible memory [ 4.837653] radeon 0000:01:05.0: VRAM:

128M

Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
Quoted 59 lines

0x0000000078000000

Quoted 8 lines
Quoted 8 lines

- 0x000000007FFFFFFF (128M used)

[    4.837714] radeon 0000:01:05.0: GTT: 512M
0x0000000080000000 - 0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics

memory: 444588 kiB [ 4.839907] [TTM] Zone highmem:
Available graphics memory: 972784

kiB

Quoted 46 lines
Quoted 46 lines
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu

pages 131072 [ 4.866905] [drm] radeon: 2 quad pipes, 1 z
pipes initialized. [ 4.872945] [drm] PCIE GART of 512M
enabled (table at
0x0000000035A00000).

[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring 0
use gpu addr 0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching Rev

1 (10.10.2010). [ 4.874988] [drm] Driver supports
precise vblank timestamp query. [ 4.875055] [drm]
radeon: irq initialized. [ 4.875119] [drm] Loading R300
Microcode [ 4.962083] ohci_hcd: USB 1.1 'Open' Host
Controller (OHCI) Driver [ 5.088150] ohci-pci: OHCI PCI
platform driver [ 5.141799] [drm] radeon: ring at
0x0000000080001000 [ 5.141883] [drm] ring test succeeded
in 2 usecs

[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight
initialized [    5.166358] [drm] Radeon Display Connectors
[    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68
0x68 0x68 [    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0
0x1a0 0x1a4 0x1a4 [    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb frame

buffer device [ 5.427442] radeon 0000:01:05.0:
registered panic notifier [ 5.427501] [drm] Initialized
radeon 2.34.0 20080528 for 0000:01:05.0 on minor 0

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

--
Ondrej Zary

--
Ondrej Zary

--
Ondrej Zary

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 1 line
Ondrej Zary
#10 lore raw
Quoted 108 lines · On Monday 26 August 2013 00:01:11 Ondrej Zary wrote:
Quoted 107 lines · On Sunday 25 August 2013 19:12:32 Ondrej Zary wrote:
Quoted 105 lines · Alexander
Quoted 96 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Friday, August 23, 2013 1:55 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 30 lines · On Friday 23 August 2013 00:08:33 Ondrej Zary wrote:
Quoted 29 lines · On Thursday 22 August 2013 22:56:03 Ondrej Zary wrote:
Quoted 28 lines · Alexander
Quoted 28 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 4:00 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 18 lines · Alexander
Quoted 8 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 5 lines

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop does not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.
gi t/ comm it /? id=c
ef1d00cd56f600121ad121875655ad410a001b8

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

Just tried latest git (3.11-rc6+) and the problem persists.

You might try adding a quirk for your system in radeon_combios_asic_init() in radeon_combios.c. You can try

something

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

like this for testing:

(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_combios.c index
68ce360..0419a2c

100644

Quoted 3 lines
Quoted 3 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct

Quoted 3 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
@@ -3398,6 +3398,8 @@ void radeon_combios_asic_init(struct

drm_device

Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct · line 3404

Quoted 7 lines
drivers/gpu/drm/radeon/radeon_combios.c +2 -0
 *dev) rdev->pdev->subsystem_device == 0x30ae)
                return;
 
+       return;
+
        /* DYN CLK 1 */
        table = combios_get_table_offset(dev,

COMBIOS_DYN_CLK_1_TABLE);

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
        if (table)

If that doesn't work, you'll probably have to track down where it's hanging during resume, or compare registers before and after resume

to

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

see if it's some particular state that's causing a problem.

No change.

Inserted "return -1;" before radeon_device_init() to radeon_driver_load_kms() - driver fails to load and resume works. Moved it (and changed to "r = -1; goto out;") a bit down before radeon_modeset_init() - driver fails to load and resume stopped

working.

Quoted 2 lines

Going deeper... it works before rs400_startup() and does not work after that. Will continue later.

Tracked the problem down to rs400_gart_enable(). When this "Disable AGP mode"
code is commented out, the machine resumes fine:

Quoted 6 lines
        if ((rdev->family == CHIP_RS690) || (rdev->family ==
CHIP_RS740)) { WREG32_MC(RS480_MC_MISC_CNTL,
                        (RS480_GART_INDEX_REG_EN |
RS690_BLOCK_GFX_D3_EN)); } else {
              WREG32_MC(RS480_MC_MISC_CNTL, RS480_GART_INDEX_REG_EN);
        }

Does the driver work properly after resume with that part commented out or does it just avoid the hang?

Quoted 6 lines
Quoted 1 line

Console seems to work fine, haven't tested X, 3D or video.

Testing it right now - everything seems to work. X, accelerated video (mplayer), 3D (glxgears). Both before and after suspend. That code does something with GART so maybe I should test something like OpenArena (have to download it first).

OpenArena works fine with the code commented out. Both before and after suspend.

Quoted 157 lines
Quoted 157 lines
Quoted 157 lines

Alex

Quoted 141 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Alex

Quoted 6 lines
Quoted 6 lines

Alex

Quoted 4 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends

correctly

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

(power

Quoted 8 lines
Quoted 8 lines

LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works),

only

Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 1 line
Quoted 1 line

the

LCD

Quoted 6 lines
Quoted 6 lines

is
blank (obviously). Loading radeon module now initializes the card properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then

unloaded:

Quoted 6 lines
Quoted 6 lines

Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro

Devices,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M]

[1002:5a62]

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 1 line
Quoted 1 line

(prog-if

00

Quoted 11 lines
Quoted 11 lines

[VGA controller])
Subsystem: ASUSTeK Computer Inc. Device
[1043:1402] Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10 Memory at c0000000 (32-bit, prefetchable) [size=256M] I/O ports at 9800 [size=256]

        Memory at fa8f0000 (32-bit, non-prefetchable)

[size=64K] Expansion ROM at fa8c0000 [disabled] [size=128K] Capabilities: [50] Power Management version 2
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit- Kernel driver in use: radeon

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting
(RS400 0x1002:0x5A62 0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using

max accessible memory [ 4.837653] radeon 0000:01:05.0:
VRAM:

128M

Quoted 60 lines
Quoted 60 lines
Quoted 60 lines
Quoted 60 lines

0x0000000078000000

Quoted 8 lines
Quoted 8 lines

- 0x000000007FFFFFFF (128M used)

[    4.837714] radeon 0000:01:05.0: GTT: 512M
0x0000000080000000 - 0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M, BAR=256M
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics

memory: 444588 kiB [ 4.839907] [TTM] Zone highmem:
Available graphics memory: 972784

kiB

Quoted 47 lines
Quoted 47 lines
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu

pages 131072 [ 4.866905] [drm] radeon: 2 quad pipes, 1
z pipes initialized. [ 4.872945] [drm] PCIE GART of
512M enabled (table at
0x0000000035A00000).

[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring
0 use gpu addr 0x0000000080000000 and cpu addr 0xf592c000
[    4.874929] [drm] Supports vblank timestamp caching

Rev 1 (10.10.2010). [ 4.874988] [drm] Driver supports
precise vblank timestamp query. [ 4.875055] [drm]
radeon: irq initialized. [ 4.875119] [drm] Loading
R300 Microcode [ 4.962083] ohci_hcd: USB 1.1 'Open'
Host Controller (OHCI) Driver [ 5.088150] ohci-pci:
OHCI PCI platform driver [ 5.141799] [drm] radeon:
ring at 0x0000000080001000 [ 5.141883] [drm] ring test
succeeded in 2 usecs

[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight
initialized [    5.166358] [drm] Radeon Display
Connectors [    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68
0x68 0x68 [    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0
0x1a0 0x1a4 0x1a4 [    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb

frame buffer device [ 5.427442] radeon 0000:01:05.0:
registered panic notifier [ 5.427501] [drm]
Initialized radeon 2.34.0 20080528 for 0000:01:05.0 on minor 0

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

--
Ondrej Zary

--
Ondrej Zary

--
Ondrej Zary

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 1 line
Ondrej Zary
#11 lore raw
Quoted 126 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Monday, August 26, 2013 5:23 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 22 lines · On Monday 26 August 2013 00:01:11 Ondrej Zary wrote:
Quoted 21 lines · On Sunday 25 August 2013 19:12:32 Ondrej Zary wrote:
Quoted 20 lines · Alexander
Quoted 20 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Friday, August 23, 2013 1:55 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 11 lines · On Friday 23 August 2013 00:08:33 Ondrej Zary wrote:
Quoted 10 lines · On Thursday 22 August 2013 22:56:03 Ondrej Zary wrote:
Quoted 9 lines · Alexander
Quoted 9 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 4:00 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

On Thursday 22 August 2013 21:49:41 Deucher, Alexander

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop

does

Quoted 57 lines
Quoted 57 lines
Quoted 57 lines
Quoted 57 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.
gi t/ comm it /? id=c
ef1d00cd56f600121ad121875655ad410a001b8

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

Just tried latest git (3.11-rc6+) and the problem persists.

You might try adding a quirk for your system in radeon_combios_asic_init() in radeon_combios.c. You can try

something

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

like this for testing:

(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_combios.c index
68ce360..0419a2c

100644

Quoted 3 lines
Quoted 3 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct

Quoted 3 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
@@ -3398,6 +3398,8 @@ void radeon_combios_asic_init(struct

drm_device

Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct · line 3404

Quoted 7 lines
drivers/gpu/drm/radeon/radeon_combios.c +2 -0
 *dev) rdev->pdev->subsystem_device == 0x30ae)
                return;
 
+       return;
+
        /* DYN CLK 1 */
        table = combios_get_table_offset(dev,

COMBIOS_DYN_CLK_1_TABLE);

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
        if (table)

If that doesn't work, you'll probably have to track down where it's hanging during resume, or compare registers before and after resume

to

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

see if it's some particular state that's causing a problem.

No change.

Inserted "return -1;" before radeon_device_init() to radeon_driver_load_kms() - driver fails to load and resume works. Moved it (and changed to "r = -1; goto out;") a bit down before radeon_modeset_init() - driver fails to load and resume stopped

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

working.

Quoted 2 lines

Going deeper... it works before rs400_startup() and does not work after that. Will continue later.

Tracked the problem down to rs400_gart_enable(). When this

"Disable

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

AGP mode"
code is commented out, the machine resumes fine:

        if ((rdev->family == CHIP_RS690) || (rdev->family ==
CHIP_RS740)) { WREG32_MC(RS480_MC_MISC_CNTL,
                        (RS480_GART_INDEX_REG_EN |
RS690_BLOCK_GFX_D3_EN)); } else {
              WREG32_MC(RS480_MC_MISC_CNTL,

RS480_GART_INDEX_REG_EN);

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
        }

Does the driver work properly after resume with that part commented

out

Quoted 4 lines
Quoted 3 lines
Quoted 1 line

or does it just avoid the hang?

Console seems to work fine, haven't tested X, 3D or video.

Quoted 8 lines
Quoted 3 lines

Testing it right now - everything seems to work. X, accelerated video (mplayer), 3D (glxgears). Both before and after suspend. That code does something with GART so maybe I should test something

like

Quoted 1 line

OpenArena (have to download it first).

OpenArena works fine with the code commented out. Both before and after suspend.

Does the attached patch also work? I suspect we should be RMWing the register rather than only setting that bit.

Alex

Quoted 162 lines
Quoted 82 lines
Quoted 82 lines
Quoted 82 lines

Alex

Quoted 79 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Alex

Quoted 6 lines
Quoted 6 lines

Alex

Quoted 4 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends

correctly

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

(power

Quoted 8 lines
Quoted 8 lines

LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works),

only

Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 1 line
Quoted 1 line

the

LCD

Quoted 6 lines
Quoted 6 lines

is
blank (obviously). Loading radeon module now initializes the card properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then

unloaded:

Quoted 6 lines
Quoted 6 lines

Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro

Devices,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M]

[1002:5a62]

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 1 line
Quoted 1 line

(prog-if

00

Quoted 19 lines
Quoted 19 lines

[VGA controller])
Subsystem: ASUSTeK Computer Inc. Device
[1043:1402] Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10 Memory at c0000000 (32-bit, prefetchable) [size=256M] I/O ports at 9800 [size=256]

        Memory at fa8f0000 (32-bit, non-prefetchable)

[size=64K] Expansion ROM at fa8c0000 [disabled] [size=128K] Capabilities: [50] Power Management version 2
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit- Kernel driver in use: radeon

[    4.836009] [drm] radeon kernel modesetting enabled.
[    4.837169] [drm] initializing kernel modesetting
(RS400 0x1002:0x5A62 0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface, using

max accessible memory [ 4.837653] radeon 0000:01:05.0:
VRAM:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

128M

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

0x0000000078000000

Quoted 4 lines
Quoted 4 lines

- 0x000000007FFFFFFF (128M used)

[    4.837714] radeon 0000:01:05.0: GTT: 512M
0x0000000080000000 - 0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M,

BAR=256M

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics

memory: 444588 kiB [ 4.839907] [TTM] Zone highmem:
Available graphics memory: 972784

kiB

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory ready
[    4.840094] [drm] radeon: 512M of GTT memory ready.
[    4.840160] [drm] GART: num cpu pages 131072, num gpu

pages 131072 [ 4.866905] [drm] radeon: 2 quad pipes, 1
z pipes initialized. [ 4.872945] [drm] PCIE GART of
512M enabled (table at
0x0000000035A00000).

[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on ring

0 use gpu addr 0x0000000080000000 and cpu addr

0xf592c000

Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 41 lines
Quoted 41 lines
Quoted 41 lines
Quoted 41 lines
Quoted 36 lines
Quoted 36 lines
[    4.874929] [drm] Supports vblank timestamp caching

Rev 1 (10.10.2010). [ 4.874988] [drm] Driver supports
precise vblank timestamp query. [ 4.875055] [drm]
radeon: irq initialized. [ 4.875119] [drm] Loading
R300 Microcode [ 4.962083] ohci_hcd: USB 1.1 'Open'
Host Controller (OHCI) Driver [ 5.088150] ohci-pci:
OHCI PCI platform driver [ 5.141799] [drm] radeon:
ring at 0x0000000080001000 [ 5.141883] [drm] ring test
succeeded in 2 usecs

[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight
initialized [    5.166358] [drm] Radeon Display
Connectors [    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68
0x68 0x68 [    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c 0x1a0
0x1a0 0x1a4 0x1a4 [    5.166812] [drm]   Encoders:
[    5.166862] [drm]     LCD1: INTERNAL_LVDS
[    5.426968] [drm] fb mappable at 0xC0040000
[    5.427026] [drm] vram apper at 0xC0000000
[    5.427076] [drm] size 4096000
[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb

frame buffer device [ 5.427442] radeon 0000:01:05.0:
registered panic notifier [ 5.427501] [drm]
Initialized radeon 2.34.0 20080528 for 0000:01:05.0 on minor 0

Quoted 2 lines
Quoted 2 lines

--
Ondrej Zary

--
Ondrej Zary

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

--
Ondrej Zary

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Quoted 2 lines

--
Ondrej Zary

From c37ef645e80068222e359e0c2aa5c47f8c8a55cb Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Mon, 26 Aug 2013 17:52:12 -0400
Subject: [PATCH] drm/radeon: fix resume on some rs4xx boards (v2)

Setting MC_MISC_CNTL.GART_INDEX_REG_EN causes hangs on some boards on resume. The systems seem to work fine without touching this bit so leave it as is.

v2: read-modify-write the GART_INDEX_REG_EN bit. I suspect the problem is that we are losing the other settings in the register.

---
 drivers/gpu/drm/radeon/rs400.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/rs400.c +6 -3
index 233a9b9..b8074a8 100644
@@ -174,10 +174,13 @@ int rs400_gart_enable(struct radeon_device *rdev)
 	/* FIXME: according to doc we should set HIDE_MMCFG_BAR=0,
 	 * AGPMODE30=0 & AGP30ENHANCED=0 in NB_CNTL */
 	if ((rdev->family == CHIP_RS690) || (rdev->family == CHIP_RS740)) {
-		WREG32_MC(RS480_MC_MISC_CNTL,
-			  (RS480_GART_INDEX_REG_EN | RS690_BLOCK_GFX_D3_EN));
+		tmp = RREG32_MC(RS480_MC_MISC_CNTL);
+		tmp |= RS480_GART_INDEX_REG_EN | RS690_BLOCK_GFX_D3_EN;
+		WREG32_MC(RS480_MC_MISC_CNTL, tmp);
 	} else {
-		WREG32_MC(RS480_MC_MISC_CNTL, RS480_GART_INDEX_REG_EN);
+		tmp = RREG32_MC(RS480_MC_MISC_CNTL);
+		tmp |= RS480_GART_INDEX_REG_EN;
+		WREG32_MC(RS480_MC_MISC_CNTL, tmp);
 	}
 	/* Enable gart */
 	WREG32_MC(RS480_AGP_ADDRESS_SPACE_SIZE, (RS480_GART_EN | size_reg));
Signature · 1 line
1.8.3.1
#12 lore raw
Quoted 142 lines · Alexander
Quoted 142 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Monday, August 26, 2013 5:23 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 22 lines · On Monday 26 August 2013 00:01:11 Ondrej Zary wrote:
Quoted 21 lines · On Sunday 25 August 2013 19:12:32 Ondrej Zary wrote:
Quoted 20 lines · Alexander
Quoted 20 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Friday, August 23, 2013 1:55 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

Quoted 11 lines · On Friday 23 August 2013 00:08:33 Ondrej Zary wrote:
Quoted 10 lines · On Thursday 22 August 2013 22:56:03 Ondrej Zary wrote:
Quoted 9 lines · Alexander
Quoted 9 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 4:00 PM
To: Deucher, Alexander
Cc: Kernel development list
Subject: Re: Asus F5RL laptop unable to resume from S3 because of radeon module

On Thursday 22 August 2013 21:49:41 Deucher, Alexander

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

-----Original Message-----
From: Ondrej Zary [mailto:[email protected]]
Sent: Thursday, August 22, 2013 2:18 PM
To: Kernel development list
Cc: Deucher, Alexander
Subject: Asus F5RL laptop unable to resume from S3 because of radeon module

Hello,
resume from suspend-to-RAM (S3) on Asus F5RL laptop

does

Quoted 60 lines
Quoted 60 lines
Quoted 60 lines
Quoted 60 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

not work. According to many reports found by Google, it was always been that and there
is no fix or workaround.

Make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/li
nux. gi t/ comm it /? id=c
ef1d00cd56f600121ad121875655ad410a001b8

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

Just tried latest git (3.11-rc6+) and the problem persists.

You might try adding a quirk for your system in radeon_combios_asic_init() in radeon_combios.c. You can try

something

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

like this for testing:

(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_combios.c index 68ce360..0419a2c

100644

Quoted 3 lines
Quoted 3 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct

Quoted 3 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
@@ -3398,6 +3398,8 @@ void radeon_combios_asic_init(struct

drm_device

Quoted 7 lines
Quoted 7 lines

drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_asic_init(struct · line 3404

Quoted 7 lines
drivers/gpu/drm/radeon/radeon_combios.c +2 -0
 *dev) rdev->pdev->subsystem_device == 0x30ae)
                return;
 
+       return;
+
        /* DYN CLK 1 */
        table = combios_get_table_offset(dev,

COMBIOS_DYN_CLK_1_TABLE);

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
        if (table)

If that doesn't work, you'll probably have to track down where it's hanging during resume, or compare registers before and after resume

to

Quoted 9 lines
Quoted 9 lines
Quoted 1 line

see if it's some particular state that's causing a problem.

No change.

Inserted "return -1;" before radeon_device_init() to radeon_driver_load_kms() - driver fails to load and resume works. Moved it (and changed to "r = -1; goto out;") a bit down before radeon_modeset_init() - driver fails to load and resume stopped

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

working.

Quoted 2 lines

Going deeper... it works before rs400_startup() and does not work after that. Will continue later.

Tracked the problem down to rs400_gart_enable(). When this

"Disable

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

AGP mode"
code is commented out, the machine resumes fine:

        if ((rdev->family == CHIP_RS690) || (rdev->family ==
CHIP_RS740)) { WREG32_MC(RS480_MC_MISC_CNTL,
                        (RS480_GART_INDEX_REG_EN |
RS690_BLOCK_GFX_D3_EN)); } else {
              WREG32_MC(RS480_MC_MISC_CNTL,

RS480_GART_INDEX_REG_EN);

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
        }

Does the driver work properly after resume with that part commented

out

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

or does it just avoid the hang?

Console seems to work fine, haven't tested X, 3D or video.

Testing it right now - everything seems to work. X, accelerated video (mplayer), 3D (glxgears). Both before and after suspend. That code does something with GART so maybe I should test something

like

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

OpenArena (have to download it first).

OpenArena works fine with the code commented out. Both before and after suspend.

Does the attached patch also work? I suspect we should be RMWing the register rather than only setting that bit.

Great, this patch works fine!

BTW. Value of the RS480_MC_MISC_CNTL register (before we change it) is 0x3381100 on this system. Most of the bits are not documented in AMD register guide so they're probably reserved.

Quoted 173 lines

Alex

Quoted 171 lines
Quoted 85 lines
Quoted 85 lines
Quoted 85 lines

Alex

Quoted 83 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Alex

Quoted 7 lines
Quoted 7 lines

Alex

Quoted 5 lines

Did some tests:

radeon module loaded (usual state):
After "echo mem>/sys/power/state", the laptop suspends

correctly

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

(power

Quoted 8 lines
Quoted 8 lines

LED
blinks). When power button is pressed, power LED goes on and that's all. No more activity, machine is frozen completely.

radeon module not loaded at all:
Laptop resumes correctly (keyboard LED work, network works),

only

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 1 line
Quoted 1 line

the

LCD

Quoted 7 lines
Quoted 7 lines

is
blank (obviously). Loading radeon module now initializes the card properly: LCD goes on and console works.

radeon module loaded (but fbcon module not loaded) and then

unloaded:

Quoted 6 lines
Quoted 6 lines

Machine freezes the same way as when the module is loaded.

So it looks like the radeon module does some initialization that prevents resume from working.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Hibernation works fine.

Any ideas what to test or how to debug this?

Details:
01:05.0 VGA compatible controller [0300]: Advanced Micro

Devices,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M]

[1002:5a62]

Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 1 line
Quoted 1 line

(prog-if

00

Quoted 20 lines
Quoted 20 lines

[VGA controller])
Subsystem: ASUSTeK Computer Inc. Device
[1043:1402] Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10 Memory at c0000000 (32-bit, prefetchable) [size=256M] I/O ports at 9800 [size=256] Memory at fa8f0000 (32-bit, non-prefetchable) [size=64K] Expansion ROM at fa8c0000 [disabled] [size=128K] Capabilities: [50] Power Management version 2 Capabilities: [80] MSI:
Enable- Count=1/1 Maskable- 64bit- Kernel driver in
use: radeon

[    4.836009] [drm] radeon kernel modesetting
enabled. [    4.837169] [drm] initializing kernel
modesetting (RS400 0x1002:0x5A62 0x1043:0x1402).
[    4.837251] [drm] register mmio base: 0xFA8F0000
[    4.837302] [drm] register mmio size: 65536
[    4.837570] [drm] Generation 2 PCI interface,

using max accessible memory [ 4.837653] radeon
0000:01:05.0: VRAM:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

128M

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

0x0000000078000000

Quoted 4 lines
Quoted 4 lines

- 0x000000007FFFFFFF (128M used)

[    4.837714] radeon 0000:01:05.0: GTT: 512M
0x0000000080000000 - 0x000000009FFFFFFF
[    4.837787] [drm] Detected VRAM RAM=128M,

BAR=256M

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
[    4.837839] [drm] RAM width 128bits DDR
[    4.839854] [TTM] Zone  kernel: Available graphics

memory: 444588 kiB [ 4.839907] [TTM] Zone highmem:
Available graphics memory: 972784

kiB

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
[    4.839959] [TTM] Initializing pool allocator
[    4.840042] [drm] radeon: 128M of VRAM memory

ready [ 4.840094] [drm] radeon: 512M of GTT memory
ready. [ 4.840160] [drm] GART: num cpu pages
131072, num gpu pages 131072 [ 4.866905] [drm]
radeon: 2 quad pipes, 1 z pipes initialized. [ 4.872945] [drm] PCIE GART of 512M enabled (table at 0x0000000035A00000).

[    4.873213] radeon 0000:01:05.0: WB enabled
[    4.873301] radeon 0000:01:05.0: fence driver on

ring 0 use gpu addr 0x0000000080000000 and cpu addr

0xf592c000

Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 37 lines
Quoted 37 lines
[    4.874929] [drm] Supports vblank timestamp

caching Rev 1 (10.10.2010). [ 4.874988] [drm]
Driver supports precise vblank timestamp query. [ 4.875055] [drm] radeon: irq initialized. [
4.875119] [drm] Loading R300 Microcode [ 4.962083]
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI)
Driver [ 5.088150] ohci-pci: OHCI PCI platform
driver [ 5.141799] [drm] radeon: ring at
0x0000000080001000 [ 5.141883] [drm] ring test
succeeded in 2 usecs

[    5.142064] spurious 8259A interrupt: IRQ7.
[    5.142073] [drm] ib test succeeded in 0 usecs
[    5.142317] [drm] Panel ID String: LPL
[    5.142370] [drm] Panel Size 1280x800
[    5.166305] [drm] radeon legacy LVDS backlight
initialized [    5.166358] [drm] Radeon Display
Connectors [    5.166408] [drm] Connector 0:
[    5.166458] [drm]   VGA-1
[    5.166509] [drm]   DDC: 0x68 0x68 0x68 0x68 0x68
0x68 0x68 0x68 [    5.166560] [drm]   Encoders:
[    5.166610] [drm]     CRT1: INTERNAL_DAC2
[    5.166660] [drm] Connector 1:
[    5.166710] [drm]   LVDS-1
[    5.166760] [drm]   DDC: 0x198 0x198 0x19c 0x19c

0x1a0 0x1a0 0x1a4 0x1a4 [ 5.166812] [drm]
Encoders: [ 5.166862] [drm] LCD1:
INTERNAL_LVDS [ 5.426968] [drm] fb mappable at
0xC0040000 [ 5.427026] [drm] vram apper at
0xC0000000 [ 5.427076] [drm] size 4096000

[    5.427126] [drm] fb depth is 24
[    5.427176] [drm]    pitch is 5120
[    5.427388] radeon 0000:01:05.0: fb0: radeondrmfb

frame buffer device [ 5.427442] radeon
0000:01:05.0: registered panic notifier [ 5.427501] [drm] Initialized radeon 2.34.0 20080528 for 0000:01:05.0 on minor 0

Quoted 2 lines
Quoted 2 lines

--
Ondrej Zary

--
Ondrej Zary

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

--
Ondrej Zary

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

--
Ondrej Zary

Signature · 1 line
Ondrej Zary