From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Menzel Subject: Radeon DPM branch successfully tested on Radeon HD 6310 (AMD Wrestler) (was: [pull] radeon drm-next-3.11) Date: Sat, 06 Jul 2013 17:15:48 +0200 Message-ID: <1373123748.7093.7.camel@mattotaupa> References: <1373063072-2044-1-git-send-email-alexdeucher@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0165944841==" Return-path: Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by gabe.freedesktop.org (Postfix) with ESMTP id 3A58FE5C40 for ; Sat, 6 Jul 2013 08:16:04 -0700 (PDT) In-Reply-To: <1373063072-2044-1-git-send-email-alexdeucher@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: alexdeucher@gmail.com Cc: Alex Deucher , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0165944841== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-nerzFeL9VqhKwFE5KhtT" --=-nerzFeL9VqhKwFE5KhtT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Radeon folks, Am Freitag, den 05.07.2013, 18:24 -0400 schrieb alexdeucher@gmail.com: > From: Alex Deucher [=E2=80=A6] > The following changes since commit 338a95a95508537e23c82d59a2d87be6fde4b6= ff: >=20 > drm/radeon/sumo: implement support for disable_gfx_power_gating_in_uvd = flag (2013-07-03 17:37:31 -0400) >=20 > are available in the git repository at: > git://people.freedesktop.org/~agd5f/linux drm-next-3.11 [=E2=80=A6] 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=3D0 drm.d= ebug=3D0x06` [=E2=80=A6] [ 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 0= x1002: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 - 0x0000= 000017FFFFFF (384M used) [ 53.457904] radeon 0000:00:01.0: GTT: 512M 0x0000000018000000 - 0x00000= 00037FFFFFF [ 53.457908] [drm] Detected VRAM RAM=3D384M, BAR=3D256M [ 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 "radeo= n/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 0x000000000004000= 0). [ 53.556903] radeon 0000:00:01.0: WB enabled [ 53.556911] radeon 0000:00:01.0: fence driver on ring 0 use gpu addr 0x= 0000000018000c00 and cpu addr 0xffa3dc00 [ 53.556917] radeon 0000:00:01.0: fence driver on ring 3 use gpu addr 0x= 0000000018000c0c 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 0x64= 3c 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 0x64= 4c 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 0x64= e4 0x64e4 [ 53.574533] [drm] Encoders: [ 53.574536] [drm] CRT1: INTERNAL_KLDSCP_DAC1 [ 53.574601] [drm] Internal thermal controller without fan control [ 53.574662] =3D=3D power state 0 =3D=3D [ 53.574665] ui class: none [ 53.574669] internal class: uvd_hd=20 [ 53.574672] caps:=20 [ 53.574676] uvd vclk: 40000 dclk: 30477 [ 53.574679] power level 0 sclk: 27827 vddc: 900 [ 53.574681] status:=20 [ 53.574684] =3D=3D power state 1 =3D=3D [ 53.574686] ui class: none [ 53.574688] internal class: uvd=20 [ 53.574690] caps:=20 [ 53.574693] uvd vclk: 53334 dclk: 40000 [ 53.574696] power level 0 sclk: 49231 vddc: 975 [ 53.574698] status:=20 [ 53.574700] =3D=3D power state 2 =3D=3D [ 53.574702] ui class: performance [ 53.574704] internal class: none [ 53.574707] caps:=20 [ 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:=20 [ 53.574719] =3D=3D power state 3 =3D=3D [ 53.574721] ui class: none [ 53.574723] internal class: boot=20 [ 53.574726] caps:=20 [ 53.574728] uvd vclk: 0 dclk: 0 [ 53.574731] power level 0 sclk: 20000 vddc: 975 [ 53.574733] status: c r b=20 [ 53.574749] =3D=3D power state 4 =3D=3D [ 53.574751] ui class: none [ 53.574753] internal class: thermal=20 [ 53.574756] caps:=20 [ 53.574758] uvd vclk: 0 dclk: 0 [ 53.574761] power level 0 sclk: 20000 vddc: 900 [ 53.574763] status:=20 [ 53.574768] [drm] Found smc ucode version: 0x00010601 [ 53.574882] switching from power state: [ 53.574884] ui class: none [ 53.574886] internal class: boot=20 [ 53.574889] caps:=20 [ 53.574892] uvd vclk: 0 dclk: 0 [ 53.574895] power level 0 sclk: 20000 vddc: 975 [ 53.574896] status: c b=20 [ 53.574900] switching to power state: [ 53.574902] ui class: performance [ 53.574904] internal class: none [ 53.574906] caps:=20 [ 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=20 [ 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:1= 3:HDMI-A-1] [ 53.576301] [drm:radeon_atombios_connected_scratch_regs], DFP1 disconne= cted [ 53.576306] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:1= 3:HDMI-A-1] disconnected [ 53.576311] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:1= 5:HDMI-A-2] [ 53.577457] [drm:radeon_atombios_connected_scratch_regs], DFP2 disconne= cted [ 53.577461] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:1= 5:HDMI-A-2] disconnected [ 53.577465] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:1= 7:VGA-1] [ 53.611138] [drm:radeon_atombios_connected_scratch_regs], CRT1 connecte= d [ 53.611202] [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:1= 7: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" 7= 5 57284 832 864 928 1152 624 625 628 667 0x40 0xa [ 53.611250] [drm:drm_mode_debug_printmodeline], Modeline 36:"800x600" 7= 5 49500 800 816 896 1056 600 601 604 625 0x40 0x5 [ 53.611256] [drm:drm_mode_debug_printmodeline], Modeline 37:"800x600" 7= 2 50000 800 856 976 1040 600 637 643 666 0x40 0x5 [ 53.611262] [drm:drm_mode_debug_printmodeline], Modeline 24:"800x600" 6= 0 40000 800 840 968 1056 600 601 605 628 0x40 0x5 [ 53.611268] [drm:drm_mode_debug_printmodeline], Modeline 25:"800x600" 5= 6 36000 800 824 896 1024 600 601 603 625 0x40 0x5 [ 53.611274] [drm:drm_mode_debug_printmodeline], Modeline 26:"640x480" 7= 5 31500 640 656 720 840 480 481 484 500 0x40 0xa [ 53.611280] [drm:drm_mode_debug_printmodeline], Modeline 27:"640x480" 7= 3 31500 640 664 704 832 480 489 491 520 0x40 0xa [ 53.611286] [drm:drm_mode_debug_printmodeline], Modeline 28:"640x480" 6= 7 30240 640 704 768 864 480 483 486 525 0x40 0xa [ 53.611292] [drm:drm_mode_debug_printmodeline], Modeline 29:"640x480" 6= 0 25200 640 656 752 800 480 490 492 525 0x40 0xa [ 53.611298] [drm:drm_mode_debug_printmodeline], Modeline 22:"720x405" 7= 0 26483 720 736 808 896 405 406 409 422 0x0 0x6 [ 53.611303] [drm:drm_mode_debug_printmodeline], Modeline 30:"720x400" 7= 0 28320 720 738 846 900 400 412 414 449 0x40 0x6 [ 53.611309] [drm:drm_mode_debug_printmodeline], Modeline 21:"640x400" 7= 0 23354 640 656 720 800 400 401 404 417 0x0 0x6 [ 53.611315] [drm:drm_mode_debug_printmodeline], Modeline 20:"640x360" 7= 0 20604 640 648 712 784 360 361 364 375 0x0 0x6 [ 53.611322] [drm:drm_setup_crtcs],=20 [ 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 con= nector 17 [ 53.611340] [drm:drm_target_preferred], looking for preferred mode on c= onnector 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 1= 0 [ 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],=20 [ 53.618338] [drm:drm_crtc_helper_set_config], [CRTC:10] [FB:39] #connec= tors=3D1 (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 mod= e switch [ 53.618369] [drm:drm_crtc_helper_set_config], crtc changed, full mode s= witch [ 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 fr= om 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 devi= ce 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: 2= 1.6 ref: 2, post 8 [ 53.635317] [drm:drm_crtc_helper_set_mode], [ENCODER:16:TV-16] set [MOD= E: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 st= ate 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],=20 [ 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],=20 [ 53.648925] [drm:drm_crtc_helper_set_config], [CRTC:10] [FB:39] #connec= tors=3D1 (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 st= ate 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],=20 [ 53.661949] [drm:drm_crtc_helper_set_config], [CRTC:10] [FB:39] #connec= tors=3D1 (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 st= ate 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 faile= d: -5 [ 53.674980] [drm:radeon_acpi_init], Call to ATIF verify_interface faile= d: -5 [ 53.674988] [drm] Initialized radeon 2.34.0 20080528 for 0000:00:01.0 o= n minor 0 [ 53.675344] initcall radeon_init+0x0/0xa1 [radeon] returned 0 after 213= 556 usecs [=E2=80=A6] --=-nerzFeL9VqhKwFE5KhtT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAlHYNKQACgkQPX1aK2wOHVgoFQCeLuPjJ7RgpdR8YtZmRmqXdkTn odQAnRowq7ivpiriY4RIGyg3dgdvSZKg =OcCi -----END PGP SIGNATURE----- --=-nerzFeL9VqhKwFE5KhtT-- --===============0165944841== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0165944841==--