Radeon DPM branch successfully tested on Radeon HD 6310 (AMD Wrestler) (was: [pull] radeon drm-next-3.11)

Paul Menzel paulepanter at users.sourceforge.net
Sat Jul 6 08:15:48 PDT 2013


Dear Radeon folks,


Am Freitag, den 05.07.2013, 18:24 -0400 schrieb alexdeucher at gmail.com:
> From: Alex Deucher <alexander.deucher at amd.com>

[…]

> The following changes since commit 338a95a95508537e23c82d59a2d87be6fde4b6ff:
> 
>   drm/radeon/sumo: implement support for disable_gfx_power_gating_in_uvd flag (2013-07-03 17:37:31 -0400)
> 
> are available in the git repository at:
>   git://people.freedesktop.org/~agd5f/linux drm-next-3.11

[…]

just a note that I tested that branch successfully on an ASRock E350M1
(with coreboot) and Radeon HD 6310.

Setting the performance level also seems to work.

	$ echo low | sudo tee /sys/devices/pci0000:00/0000:00:01.0/power_dpm_force_performance_level
	low
	$ more /sys/devices/pci0000:00/0000:00:01.0/power_dpm_force*
	low

I have no idea though how to check the effects, that means if actually
less power is drawn and the chip is cooler.


Thanks,

Paul


PS: Here is the output from `kern.log`.

	$ cut -d " " -f 7- /var/log/kern.log # with `drm_kms_helper.poll=0 drm.debug=0x06`
	[…]
	[   53.456521] calling  radeon_init+0x0/0xa1 [radeon] @ 553
	[   53.456529] [drm] radeon kernel modesetting enabled.
	[   53.457682] [drm] initializing kernel modesetting (PALM 0x1002:0x9802 0x1002:0x9802).
	[   53.457726] [drm] register mmio base: 0xF0100000
	[   53.457729] [drm] register mmio size: 262144
	[   53.457818] ATOM BIOS: AMD
	[   53.457897] radeon 0000:00:01.0: VRAM: 384M 0x0000000000000000 - 0x0000000017FFFFFF (384M used)
	[   53.457904] radeon 0000:00:01.0: GTT: 512M 0x0000000018000000 - 0x0000000037FFFFFF
	[   53.457908] [drm] Detected VRAM RAM=384M, BAR=256M
	[   53.457911] [drm] RAM width 32bits DDR
	[   53.458052] [TTM] Zone  kernel: Available graphics memory: 438544 kiB
	[   53.458056] [TTM] Zone highmem: Available graphics memory: 1622228 kiB
	[   53.458058] [TTM] Initializing pool allocator
	[   53.458131] [drm] radeon: 384M of VRAM memory ready
	[   53.458135] [drm] radeon: 512M of GTT memory ready.
	[   53.517781] radeon 0000:00:01.0: radeon_uvd: Can't load firmware "radeon/SUMO_uvd.bin"
	[   53.526154] [drm] GART: num cpu pages 131072, num gpu pages 131072
	[   53.527954] [drm] Loading PALM Microcode
	[   53.556666] [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
	[   53.556903] radeon 0000:00:01.0: WB enabled
	[   53.556911] radeon 0000:00:01.0: fence driver on ring 0 use gpu addr 0x0000000018000c00 and cpu addr 0xffa3dc00
	[   53.556917] radeon 0000:00:01.0: fence driver on ring 3 use gpu addr 0x0000000018000c0c and cpu addr 0xffa3dc0c
	[   53.556925] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
	[   53.556928] [drm] Driver supports precise vblank timestamp query.
	[   53.556970] radeon 0000:00:01.0: irq 44 for MSI/MSI-X
	[   53.556994] radeon 0000:00:01.0: radeon: using MSI.
	[   53.557037] [drm] radeon: irq initialized.
	[   53.573605] [drm] ring test on 0 succeeded in 1 usecs
	[   53.573667] [drm] ring test on 3 succeeded in 1 usecs
	[   53.573916] [drm] ib test on ring 0 succeeded in 0 usecs
	[   53.573953] [drm] ib test on ring 3 succeeded in 0 usecs
	[   53.574488] [drm] Radeon Display Connectors
	[   53.574491] [drm] Connector 0:
	[   53.574494] [drm]   HDMI-A-1
	[   53.574496] [drm]   HPD1
	[   53.574501] [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c
	[   53.574504] [drm]   Encoders:
	[   53.574507] [drm]     DFP1: INTERNAL_UNIPHY
	[   53.574509] [drm] Connector 1:
	[   53.574512] [drm]   HDMI-A-2
	[   53.574514] [drm]   HPD2
	[   53.574518] [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c
	[   53.574520] [drm]   Encoders:
	[   53.574522] [drm]     DFP2: INTERNAL_UNIPHY
	[   53.574525] [drm] Connector 2:
	[   53.574527] [drm]   VGA-1
	[   53.574531] [drm]   DDC: 0x64d8 0x64d8 0x64dc 0x64dc 0x64e0 0x64e0 0x64e4 0x64e4
	[   53.574533] [drm]   Encoders:
	[   53.574536] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
	[   53.574601] [drm] Internal thermal controller without fan control
	[   53.574662] == power state 0 ==
	[   53.574665] 	ui class: none
	[   53.574669] 	internal class: uvd_hd 
	[   53.574672] 	caps: 
	[   53.574676] 	uvd    vclk: 40000 dclk: 30477
	[   53.574679] 		power level 0    sclk: 27827 vddc: 900
	[   53.574681] 	status: 
	[   53.574684] == power state 1 ==
	[   53.574686] 	ui class: none
	[   53.574688] 	internal class: uvd 
	[   53.574690] 	caps: 
	[   53.574693] 	uvd    vclk: 53334 dclk: 40000
	[   53.574696] 		power level 0    sclk: 49231 vddc: 975
	[   53.574698] 	status: 
	[   53.574700] == power state 2 ==
	[   53.574702] 	ui class: performance
	[   53.574704] 	internal class: none
	[   53.574707] 	caps: 
	[   53.574710] 	uvd    vclk: 0 dclk: 0
	[   53.574712] 		power level 0    sclk: 27827 vddc: 900
	[   53.574715] 		power level 1    sclk: 49231 vddc: 975
	[   53.574717] 	status: 
	[   53.574719] == power state 3 ==
	[   53.574721] 	ui class: none
	[   53.574723] 	internal class: boot 
	[   53.574726] 	caps: 
	[   53.574728] 	uvd    vclk: 0 dclk: 0
	[   53.574731] 		power level 0    sclk: 20000 vddc: 975
	[   53.574733] 	status: c r b 
	[   53.574749] == power state 4 ==
	[   53.574751] 	ui class: none
	[   53.574753] 	internal class: thermal 
	[   53.574756] 	caps: 
	[   53.574758] 	uvd    vclk: 0 dclk: 0
	[   53.574761] 		power level 0    sclk: 20000 vddc: 900
	[   53.574763] 	status: 
	[   53.574768] [drm] Found smc ucode version: 0x00010601
	[   53.574882] switching from power state:
	[   53.574884] 	ui class: none
	[   53.574886] 	internal class: boot 
	[   53.574889] 	caps: 
	[   53.574892] 	uvd    vclk: 0 dclk: 0
	[   53.574895] 		power level 0    sclk: 20000 vddc: 975
	[   53.574896] 	status: c b 
	[   53.574900] switching to power state:
	[   53.574902] 	ui class: performance
	[   53.574904] 	internal class: none
	[   53.574906] 	caps: 
	[   53.574909] 	uvd    vclk: 0 dclk: 0
	[   53.574911] 		power level 0    sclk: 27827 vddc: 900
	[   53.574914] 		power level 1    sclk: 49231 vddc: 975
	[   53.574916] 	status: r 
	[   53.574977] [drm] radeon: dpm initialized
	[   53.574987] [drm:radeon_atom_encoder_dpms], encoder dpms 30 to mode 3, devices 00000008, active_devices 00000000
	[   53.574995] [drm:radeon_atom_encoder_dpms], encoder dpms 30 to mode 3, devices 00000080, active_devices 00000000
	[   53.575000] [drm:radeon_atom_encoder_dpms], encoder dpms 21 to mode 3, devices 00000001, active_devices 00000000
	[   53.575142] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:13:HDMI-A-1]
	[   53.576301] [drm:radeon_atombios_connected_scratch_regs], DFP1 disconnected
	[   53.576306] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:13:HDMI-A-1] disconnected
	[   53.576311] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:15:HDMI-A-2]
	[   53.577457] [drm:radeon_atombios_connected_scratch_regs], DFP2 disconnected
	[   53.577461] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:15:HDMI-A-2] disconnected
	[   53.577465] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:17:VGA-1]
	[   53.611138] [drm:radeon_atombios_connected_scratch_regs], CRT1 connected
	[   53.611202] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:17:VGA-1] probed modes :
	[   53.611207] [drm:drm_mode_debug_printmodeline], Modeline 31:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
	[   53.611214] [drm:drm_mode_debug_printmodeline], Modeline 19:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
	[   53.611220] [drm:drm_mode_debug_printmodeline], Modeline 32:"1024x768" 75 78800 1024 1040 1136 1312 768 769 772 800 0x40 0x5
	[   53.611226] [drm:drm_mode_debug_printmodeline], Modeline 23:"1024x768" 75 78750 1024 1040 1136 1312 768 769 772 800 0x40 0x5
	[   53.611232] [drm:drm_mode_debug_printmodeline], Modeline 33:"1024x768" 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa
	[   53.611238] [drm:drm_mode_debug_printmodeline], Modeline 34:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
	[   53.611244] [drm:drm_mode_debug_printmodeline], Modeline 35:"832x624" 75 57284 832 864 928 1152 624 625 628 667 0x40 0xa
	[   53.611250] [drm:drm_mode_debug_printmodeline], Modeline 36:"800x600" 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5
	[   53.611256] [drm:drm_mode_debug_printmodeline], Modeline 37:"800x600" 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5
	[   53.611262] [drm:drm_mode_debug_printmodeline], Modeline 24:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
	[   53.611268] [drm:drm_mode_debug_printmodeline], Modeline 25:"800x600" 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
	[   53.611274] [drm:drm_mode_debug_printmodeline], Modeline 26:"640x480" 75 31500 640 656 720 840 480 481 484 500 0x40 0xa
	[   53.611280] [drm:drm_mode_debug_printmodeline], Modeline 27:"640x480" 73 31500 640 664 704 832 480 489 491 520 0x40 0xa
	[   53.611286] [drm:drm_mode_debug_printmodeline], Modeline 28:"640x480" 67 30240 640 704 768 864 480 483 486 525 0x40 0xa
	[   53.611292] [drm:drm_mode_debug_printmodeline], Modeline 29:"640x480" 60 25200 640 656 752 800 480 490 492 525 0x40 0xa
	[   53.611298] [drm:drm_mode_debug_printmodeline], Modeline 22:"720x405" 70 26483 720 736 808 896 405 406 409 422 0x0 0x6
	[   53.611303] [drm:drm_mode_debug_printmodeline], Modeline 30:"720x400" 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
	[   53.611309] [drm:drm_mode_debug_printmodeline], Modeline 21:"640x400" 70 23354 640 656 720 800 400 401 404 417 0x0 0x6
	[   53.611315] [drm:drm_mode_debug_printmodeline], Modeline 20:"640x360" 70 20604 640 648 712 784 360 361 364 375 0x0 0x6
	[   53.611322] [drm:drm_setup_crtcs], 
	[   53.611326] [drm:drm_enable_connectors], connector 13 enabled? no
	[   53.611329] [drm:drm_enable_connectors], connector 15 enabled? no
	[   53.611332] [drm:drm_enable_connectors], connector 17 enabled? yes
	[   53.611336] [drm:drm_target_preferred], looking for cmdline mode on connector 17
	[   53.611340] [drm:drm_target_preferred], looking for preferred mode on connector 17
	[   53.611343] [drm:drm_target_preferred], found mode 1280x1024
	[   53.611346] [drm:drm_setup_crtcs], picking CRTCs for 8192x8192 config
	[   53.611352] [drm:drm_setup_crtcs], desired mode 1280x1024 set on crtc 10
	[   53.615661] [drm] fb mappable at 0xE0145000
	[   53.615664] [drm] vram apper at 0xE0000000
	[   53.615667] [drm] size 5242880
	[   53.615670] [drm] fb depth is 24
	[   53.615672] [drm]    pitch is 5120
	[   53.615976] fbcon: radeondrmfb (fb0) is primary device
	[   53.618334] [drm:drm_crtc_helper_set_config], 
	[   53.618338] [drm:drm_crtc_helper_set_config], [CRTC:10] [FB:39] #connectors=1 (x y) (0 0)
	[   53.618351] [drm:drm_crtc_helper_set_config], crtc has no fb, full mode set
	[   53.618353] [drm:drm_crtc_helper_set_config], modes are different, full mode set
	[   53.618358] [drm:drm_mode_debug_printmodeline], Modeline 0:"" 0 0 0 0 0 0 0 0 0 0 0x0 0x0
	[   53.618364] [drm:drm_mode_debug_printmodeline], Modeline 38:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
	[   53.618367] [drm:drm_crtc_helper_set_config], encoder changed, full mode switch
	[   53.618369] [drm:drm_crtc_helper_set_config], crtc changed, full mode switch
	[   53.618372] [drm:drm_crtc_helper_set_config], [CONNECTOR:17:VGA-1] to [CRTC:10]
	[   53.618375] [drm:drm_crtc_helper_set_config], attempting to set mode from userspace
	[   53.618380] [drm:drm_mode_debug_printmodeline], Modeline 38:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
	[   53.618387] [drm:radeon_encoder_set_active_device], setting active device to 00000001 from 00000001 00000001 for encoder 4
	[   53.618404] [drm:drm_crtc_helper_set_mode], [CRTC:10]
	[   53.618421] [drm:radeon_atom_encoder_dpms], encoder dpms 30 to mode 3, devices 00000008, active_devices 00000000
	[   53.618427] [drm:radeon_atom_encoder_dpms], encoder dpms 30 to mode 3, devices 00000080, active_devices 00000000
	[   53.618473] [drm:radeon_compute_pll_avivo], 13500, pll dividers - fb: 21.6 ref: 2, post 8
	[   53.635317] [drm:drm_crtc_helper_set_mode], [ENCODER:16:TV-16] set [MODE:38:1280x1024]
	[   53.635323] [drm:radeon_atom_encoder_dpms], encoder dpms 21 to mode 3, devices 00000001, active_devices 00000001
	[   53.635393] [drm:dce4_crtc_load_lut], 0
	[   53.648764] [drm:radeon_atom_encoder_dpms], encoder dpms 21 to mode 0, devices 00000001, active_devices 00000001
	[   53.648777] [drm:radeon_atom_encoder_dpms], encoder dpms 30 to mode 3, devices 00000008, active_devices 00000000
	[   53.648784] [drm:radeon_atom_encoder_dpms], encoder dpms 30 to mode 3, devices 00000080, active_devices 00000000
	[   53.648803] [drm:drm_crtc_helper_set_config], Setting connector DPMS state to on
	[   53.648806] [drm:drm_crtc_helper_set_config], 	[CONNECTOR:17:VGA-1] set DPMS on
	[   53.648811] [drm:drm_crtc_helper_set_config], 
	[   53.648813] [drm:drm_crtc_helper_set_config], [CRTC:11] [NOFB]
	[   53.648817] [drm:radeon_atom_encoder_dpms], encoder dpms 30 to mode 3, devices 00000008, active_devices 00000000
	[   53.648821] [drm:radeon_atom_encoder_dpms], encoder dpms 30 to mode 3, devices 00000080, active_devices 00000000
	[   53.648921] [drm:drm_crtc_helper_set_config], 
	[   53.648925] [drm:drm_crtc_helper_set_config], [CRTC:10] [FB:39] #connectors=1 (x y) (0 0)
	[   53.648941] [drm:drm_crtc_helper_set_config], [CONNECTOR:17:VGA-1] to [CRTC:10]
	[   53.648943] [drm:drm_crtc_helper_set_config], Setting connector DPMS state to on
	[   53.648946] [drm:drm_crtc_helper_set_config], 	[CONNECTOR:17:VGA-1] set DPMS on
	[   53.648951] [drm:dce4_crtc_load_lut], 0
	[   53.648988] [drm:dce4_crtc_load_lut], 0
	[   53.661938] Console: switching to colour frame buffer device 160x64
	[   53.661946] [drm:drm_crtc_helper_set_config], 
	[   53.661949] [drm:drm_crtc_helper_set_config], [CRTC:10] [FB:39] #connectors=1 (x y) (0 0)
	[   53.661957] [drm:drm_crtc_helper_set_config], [CONNECTOR:17:VGA-1] to [CRTC:10]
	[   53.661959] [drm:drm_crtc_helper_set_config], Setting connector DPMS state to on
	[   53.661962] [drm:drm_crtc_helper_set_config], 	[CONNECTOR:17:VGA-1] set DPMS on
	[   53.661965] [drm:dce4_crtc_load_lut], 0
	[   53.661999] [drm:dce4_crtc_load_lut], 0
	[   53.674948] radeon 0000:00:01.0: fb0: radeondrmfb frame buffer device
	[   53.674953] radeon 0000:00:01.0: registered panic notifier
	[   53.674973] [drm:radeon_acpi_init], Call to ATCS verify_interface failed: -5
	[   53.674980] [drm:radeon_acpi_init], Call to ATIF verify_interface failed: -5
	[   53.674988] [drm] Initialized radeon 2.34.0 20080528 for 0000:00:01.0 on minor 0
	[   53.675344] initcall radeon_init+0x0/0xa1 [radeon] returned 0 after 213556 usecs
	[…]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130706/ab5e996f/attachment.pgp>


More information about the dri-devel mailing list