[pull] radeon drm-next-3.11

2013-07-08 Thread alexdeuc...@gmail.com
From: Alex Deucher 

Hi Dave,

A few more DPM fixes based on user testing.

The following changes since commit 9b5de59629d2e58eab41e2f0e5cc60b3c395f1c3:

  drm/radeon/dpm: implement force performance level for TN (2013-07-05 18:10:06 
-0400)

are available in the git repository at:
  git://people.freedesktop.org/~agd5f/linux drm-next-3.11

Alex Deucher (9):
  drm/radeon/dpm: fix display_gap programming on rv7xx
  drm/radeon: remove stray line in old pm code
  drm/radeon/dpm: add helper to calculate vblank time
  drm/radeon/dpm: add checks against vblank time
  drm/radeon/dpm: implement vblank_too_short callback for 7xx
  drm/radeon/dpm: implement vblank_too_short callback for evergreen
  drm/radeon/dpm: implement vblank_too_short callback for btc
  drm/radeon/dpm: implement vblank_too_short callback for cayman
  drm/radeon/dpm: implement vblank_too_short callback for si

 drivers/gpu/drm/radeon/atombios_crtc.c |3 +++
 drivers/gpu/drm/radeon/btc_dpm.c   |   16 +++-
 drivers/gpu/drm/radeon/cypress_dpm.c   |   13 +
 drivers/gpu/drm/radeon/ni_dpm.c|   16 +++-
 drivers/gpu/drm/radeon/ni_dpm.h|2 ++
 drivers/gpu/drm/radeon/r600_dpm.c  |   24 
 drivers/gpu/drm/radeon/r600_dpm.h  |1 +
 drivers/gpu/drm/radeon/radeon.h|2 ++
 drivers/gpu/drm/radeon/radeon_asic.c   |5 +
 drivers/gpu/drm/radeon/radeon_asic.h   |4 
 drivers/gpu/drm/radeon/radeon_mode.h   |1 +
 drivers/gpu/drm/radeon/radeon_pm.c |   15 +++
 drivers/gpu/drm/radeon/rv770_dpm.c |   15 +--
 drivers/gpu/drm/radeon/si_dpm.c|3 ++-
 14 files changed, 111 insertions(+), 9 deletions(-)


[pull] radeon drm-next-3.11

2013-07-08 Thread alexdeucher
From: Alex Deucher alexander.deuc...@amd.com

Hi Dave,

A few more DPM fixes based on user testing.

The following changes since commit 9b5de59629d2e58eab41e2f0e5cc60b3c395f1c3:

  drm/radeon/dpm: implement force performance level for TN (2013-07-05 18:10:06 
-0400)

are available in the git repository at:
  git://people.freedesktop.org/~agd5f/linux drm-next-3.11

Alex Deucher (9):
  drm/radeon/dpm: fix display_gap programming on rv7xx
  drm/radeon: remove stray line in old pm code
  drm/radeon/dpm: add helper to calculate vblank time
  drm/radeon/dpm: add checks against vblank time
  drm/radeon/dpm: implement vblank_too_short callback for 7xx
  drm/radeon/dpm: implement vblank_too_short callback for evergreen
  drm/radeon/dpm: implement vblank_too_short callback for btc
  drm/radeon/dpm: implement vblank_too_short callback for cayman
  drm/radeon/dpm: implement vblank_too_short callback for si

 drivers/gpu/drm/radeon/atombios_crtc.c |3 +++
 drivers/gpu/drm/radeon/btc_dpm.c   |   16 +++-
 drivers/gpu/drm/radeon/cypress_dpm.c   |   13 +
 drivers/gpu/drm/radeon/ni_dpm.c|   16 +++-
 drivers/gpu/drm/radeon/ni_dpm.h|2 ++
 drivers/gpu/drm/radeon/r600_dpm.c  |   24 
 drivers/gpu/drm/radeon/r600_dpm.h  |1 +
 drivers/gpu/drm/radeon/radeon.h|2 ++
 drivers/gpu/drm/radeon/radeon_asic.c   |5 +
 drivers/gpu/drm/radeon/radeon_asic.h   |4 
 drivers/gpu/drm/radeon/radeon_mode.h   |1 +
 drivers/gpu/drm/radeon/radeon_pm.c |   15 +++
 drivers/gpu/drm/radeon/rv770_dpm.c |   15 +--
 drivers/gpu/drm/radeon/si_dpm.c|3 ++-
 14 files changed, 111 insertions(+), 9 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


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

2013-07-06 Thread Paul Menzel
Dear Radeon folks,


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

[?]

> 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/pci:00/:00:01.0/power_dpm_force_performance_level
low
$ more /sys/devices/pci:00/: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: 0xF010
[   53.457729] [drm] register mmio size: 262144
[   53.457818] ATOM BIOS: AMD
[   53.457897] radeon :00:01.0: VRAM: 384M 0x - 
0x17FF (384M used)
[   53.457904] radeon :00:01.0: GTT: 512M 0x1800 - 
0x37FF
[   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: 168 
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 :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.55] [drm] PCIE GART of 512M enabled (table at 
0x0004).
[   53.556903] radeon :00:01.0: WB enabled
[   53.556911] radeon :00:01.0: fence driver on ring 0 use gpu addr 
0x18000c00 and cpu addr 0xffa3dc00
[   53.556917] radeon :00:01.0: fence driver on ring 3 use gpu addr 
0x18000c0c 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 :00:01.0: irq 44 for MSI/MSI-X
[   53.556994] radeon :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]  uvdvclk: 4 dclk: 30477
[   53.574679]  power level 0sclk: 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]  uvdvclk: 53334 dclk: 4
[   53.574696]  power level 0sclk: 49231 vddc: 975
[   53.574698]  status: 

No common commits between agd5f’s and Linus’ Git trees (was: [pull] radeon drm-next-3.11)

2013-07-06 Thread Paul Menzel
Dear Alex,


Am Freitag, den 05.07.2013, 18:24 -0400 schrieb alexdeucher at gmail.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

trying to get your tree, Git says there are no common commits with
Linus? tree. Do you have an idea, why?

$ git describe torvalds/master
v3.10-5851-gb2c3110
$ git remote add alexdeuscher git://people.freedesktop.org/~agd5f/linux
$ git fetch alexdeuscher
warning: no common commits
[?]

What do not I understand about Git? Should not there be a lot of common
commits and downloading the whole tree *not* be necessary.

[?]


Thanks,

Paul
-- 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: 



No common commits between agd5f’s and Linus’ Git trees (was: [pull] radeon drm-next-3.11)

2013-07-06 Thread Paul Menzel
Dear Alex,


Am Freitag, den 05.07.2013, 18:24 -0400 schrieb alexdeuc...@gmail.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

trying to get your tree, Git says there are no common commits with
Linus’ tree. Do you have an idea, why?

$ git describe torvalds/master
v3.10-5851-gb2c3110
$ git remote add alexdeuscher git://people.freedesktop.org/~agd5f/linux
$ git fetch alexdeuscher
warning: no common commits
[…]

What do not I understand about Git? Should not there be a lot of common
commits and downloading the whole tree *not* be necessary.

[…]


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


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

2013-07-06 Thread Paul Menzel
Dear Radeon folks,


Am Freitag, den 05.07.2013, 18:24 -0400 schrieb alexdeuc...@gmail.com:
 From: Alex Deucher alexander.deuc...@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/pci:00/:00:01.0/power_dpm_force_performance_level
low
$ more /sys/devices/pci:00/: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: 0xF010
[   53.457729] [drm] register mmio size: 262144
[   53.457818] ATOM BIOS: AMD
[   53.457897] radeon :00:01.0: VRAM: 384M 0x - 
0x17FF (384M used)
[   53.457904] radeon :00:01.0: GTT: 512M 0x1800 - 
0x37FF
[   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: 168 
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 :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.55] [drm] PCIE GART of 512M enabled (table at 
0x0004).
[   53.556903] radeon :00:01.0: WB enabled
[   53.556911] radeon :00:01.0: fence driver on ring 0 use gpu addr 
0x18000c00 and cpu addr 0xffa3dc00
[   53.556917] radeon :00:01.0: fence driver on ring 3 use gpu addr 
0x18000c0c 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 :00:01.0: irq 44 for MSI/MSI-X
[   53.556994] radeon :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]  uvdvclk: 4 dclk: 30477
[   53.574679]  power level 0sclk: 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]  uvdvclk: 53334 dclk: 4
[   53.574696]  power level 0sclk: 49231 vddc: 975
[   53.574698]  status: 

[pull] radeon drm-next-3.11

2013-07-05 Thread alexdeuc...@gmail.com
From: Alex Deucher 

Hi Dave,

A few more DPM patches and some bug fixes.  Adds a sysfs interface to force
dpm performance levels.

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

Alex Deucher (9):
  drm/radeon: set default clocks for SI when DPM is disabled
  drm/radeon: add support for 3d perf states on older asics
  drm/radeon: fix surface setup on r1xx
  drm/radeon/dpm: add infrastructure to force performance levels
  drm/radeon/dpm: implement force performance levels for 7xx/eg/btc
  drm/radeon/dpm: implement force performance level for cayman
  drm/radeon/dpm: implement force performance level for SI
  drm/radeon/dpm: implement force performance level for ON/LN
  drm/radeon/dpm: implement force performance level for TN

 drivers/gpu/drm/radeon/btc_dpm.c |4 +-
 drivers/gpu/drm/radeon/cypress_dpm.c |4 +-
 drivers/gpu/drm/radeon/evergreen.c   |8 ++--
 drivers/gpu/drm/radeon/ni_dpm.c  |   38 ---
 drivers/gpu/drm/radeon/ppsmc.h   |3 +
 drivers/gpu/drm/radeon/r100.c|   11 ++---
 drivers/gpu/drm/radeon/radeon.h  |   11 
 drivers/gpu/drm/radeon/radeon_asic.c |7 +++
 drivers/gpu/drm/radeon/radeon_asic.h |   10 
 drivers/gpu/drm/radeon/radeon_atombios.c |4 ++
 drivers/gpu/drm/radeon/radeon_pm.c   |   77 +++---
 drivers/gpu/drm/radeon/rv770_dpm.c   |   31 +---
 drivers/gpu/drm/radeon/rv770_dpm.h   |3 +-
 drivers/gpu/drm/radeon/si_dpm.c  |   42 +
 drivers/gpu/drm/radeon/sumo_dpm.c|   44 +
 drivers/gpu/drm/radeon/trinity_dpm.c |   32 
 drivers/gpu/drm/radeon/trinity_dpm.h |1 +
 drivers/gpu/drm/radeon/trinity_smc.c |7 +++
 18 files changed, 291 insertions(+), 46 deletions(-)


[pull] radeon drm-next-3.11

2013-07-05 Thread alexdeucher
From: Alex Deucher alexander.deuc...@amd.com

Hi Dave,

A few more DPM patches and some bug fixes.  Adds a sysfs interface to force
dpm performance levels.

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

Alex Deucher (9):
  drm/radeon: set default clocks for SI when DPM is disabled
  drm/radeon: add support for 3d perf states on older asics
  drm/radeon: fix surface setup on r1xx
  drm/radeon/dpm: add infrastructure to force performance levels
  drm/radeon/dpm: implement force performance levels for 7xx/eg/btc
  drm/radeon/dpm: implement force performance level for cayman
  drm/radeon/dpm: implement force performance level for SI
  drm/radeon/dpm: implement force performance level for ON/LN
  drm/radeon/dpm: implement force performance level for TN

 drivers/gpu/drm/radeon/btc_dpm.c |4 +-
 drivers/gpu/drm/radeon/cypress_dpm.c |4 +-
 drivers/gpu/drm/radeon/evergreen.c   |8 ++--
 drivers/gpu/drm/radeon/ni_dpm.c  |   38 ---
 drivers/gpu/drm/radeon/ppsmc.h   |3 +
 drivers/gpu/drm/radeon/r100.c|   11 ++---
 drivers/gpu/drm/radeon/radeon.h  |   11 
 drivers/gpu/drm/radeon/radeon_asic.c |7 +++
 drivers/gpu/drm/radeon/radeon_asic.h |   10 
 drivers/gpu/drm/radeon/radeon_atombios.c |4 ++
 drivers/gpu/drm/radeon/radeon_pm.c   |   77 +++---
 drivers/gpu/drm/radeon/rv770_dpm.c   |   31 +---
 drivers/gpu/drm/radeon/rv770_dpm.h   |3 +-
 drivers/gpu/drm/radeon/si_dpm.c  |   42 +
 drivers/gpu/drm/radeon/sumo_dpm.c|   44 +
 drivers/gpu/drm/radeon/trinity_dpm.c |   32 
 drivers/gpu/drm/radeon/trinity_dpm.h |1 +
 drivers/gpu/drm/radeon/trinity_smc.c |7 +++
 18 files changed, 291 insertions(+), 46 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[pull] radeon drm-next-3.11

2013-07-03 Thread alexdeuc...@gmail.com
From: Alex Deucher 

Hi Dave,

A few more DPM fixes.

The following changes since commit 7982128c3d447df27db963af67bc6b8dc7efb1de:

  drm/radeon/dpm: add debugfs support for SI (2013-07-01 16:09:06 -0400)

are available in the git repository at:
  git://people.freedesktop.org/~agd5f/linux drm-next-3.11

Alex Deucher (6):
  drm/radeon/dpm: clarify debugfs warning
  drm/radeon: fix endian bug in radeon_atom_get_mclk_range_table()
  drm/radeon/aruba: disable additional rlc features
  drm/radeon/sumo: disable PG when changing UVD clocks
  drm/radeon/tn: disable PG when changing UVD clocks
  drm/radeon/sumo: implement support for disable_gfx_power_gating_in_uvd 
flag

Mike Lothian (1):
  drm/radeon/dpm: fix compilation with certain versions of gcc

 drivers/gpu/drm/radeon/evergreen.c   |2 --
 drivers/gpu/drm/radeon/ni_dpm.c  |1 +
 drivers/gpu/drm/radeon/radeon_atombios.c |2 +-
 drivers/gpu/drm/radeon/radeon_pm.c   |2 +-
 drivers/gpu/drm/radeon/rv6xx_dpm.c   |1 +
 drivers/gpu/drm/radeon/rv770_dpm.c   |1 +
 drivers/gpu/drm/radeon/si_dpm.c  |1 +
 drivers/gpu/drm/radeon/sumo_dpm.c|   24 ++--
 drivers/gpu/drm/radeon/trinity_dpm.c |9 +
 9 files changed, 37 insertions(+), 6 deletions(-)


[pull] radeon drm-next-3.11

2013-07-03 Thread Alex Deucher
On Wed, Jul 3, 2013 at 2:39 AM, Ruslan N. Marchenko  
wrote:
> Am 01.07.2013 23:01, schrieb alexdeucher at gmail.com:
>>
>> From: Alex Deucher
>>
>> Hi Dave,
>>
>> A few more patches for 3.11:
>> - add debugfs interface to check current DPM state
>> - Fix a bug that caused problems with DPM on BTC+ asics.
>>
>> The following changes since commit
>> f7d452f4fd5d86f764807a1234a407deb5b105ef:
>>
>>Merge branch 'drm-nouveau-next' of
>> git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next
>> (2013-07-01 14:10:20 +1000)
>>
>> are available in the git repository at:
>>
>>git://people.freedesktop.org/~agd5f/linux drm-next-3.11
>>
>> Alex Deucher (12):
>>drm/radeon: remove sumo dpm/uvd bringup leftovers
>>drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
>>drm/radeon: fix typo in radeon_atom_init_mc_reg_table()
>>drm/radeon/dpm: re-enable state transitions for BTC
>>drm/radeon/dpm: re-enable state transitions for Cayman
>>drm/radeon/dpm: add infrastructure to support debugfs info
>>drm/radeon/dpm: add debugfs support for rv6xx
>>drm/radeon/dpm: add debugfs support for 7xx/evergreen/btc
>>drm/radeon/dpm: add debugfs support for ON/LN
>>drm/radeon/dpm: add debugfs support for TN
>>drm/radeon/dpm: add debugfs support for cayman
>>drm/radeon/dpm: add debugfs support for SI
>>
>>   drivers/gpu/drm/radeon/btc_dpm.c |3 --
>>   drivers/gpu/drm/radeon/ni_dpm.c  |   25 +---
>>   drivers/gpu/drm/radeon/nid.h |4 ++
>>   drivers/gpu/drm/radeon/radeon.h  |2 +
>>   drivers/gpu/drm/radeon/radeon_asic.c |8 +
>>   drivers/gpu/drm/radeon/radeon_asic.h |   12 
>>   drivers/gpu/drm/radeon/radeon_atombios.c |3 +-
>>   drivers/gpu/drm/radeon/radeon_pm.c   |   40
>> ++
>>   drivers/gpu/drm/radeon/rv6xx_dpm.c   |   25 
>>   drivers/gpu/drm/radeon/rv770_dpm.c   |   30 
>>   drivers/gpu/drm/radeon/rv770d.h  |4 ++
>>   drivers/gpu/drm/radeon/si_dpm.c  |   19 
>>   drivers/gpu/drm/radeon/sid.h |4 ++
>>   drivers/gpu/drm/radeon/sumo_dpm.c|   45
>> ++---
>>   drivers/gpu/drm/radeon/trinity_dpm.c |   21 ++
>>   15 files changed, 206 insertions(+), 39 deletions(-)
>> ___
>> dri-devel mailing list
>> dri-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>>
> This is really excellent and very wanted addition to the radeon, a huge
> thanks Alex for giving a second life to my old TimelineX with hybrid
> AMD/Intel graphics. Intel ironlake became a bit outdated already but with
> ATi HD 5650 I was able to drink tee all day long since it never came lower
> than 90 degrees Celsius.   Now it comfortably sits at 55-60 so I can use it
> back again.
>
> As I noticed it supports now either dynpm or profile method of clocking,
> however profiles themselves also have several (3) power states. Also during
> init phase it writes that it switching from boot to performance profile - so
> what exactly is the difference between dpm and profile method? Will dynpm
> react to ACPI events like lid closed or AC offline or I better to add calls
> to acpid event handlers to tweak the profiles/methods?

With with the old profile/dynpm methods, the driver was responsible
for changing the power states.  With dpm, there is dedicated hardware
on the GPU that automatically changes the power levels based on GPU
load.  E.g., when you have an idle desktop, the hw will put the gpu
into the lowest power level, when you start to use the 3D engine,
etc., it will automatically switch the GPU into higher power levels.
With dpm you can also manually switch between performance and battery
states.  Both states will automatically switch between power levels,
but the battery state generally has a narrower range of power levels.
The driver could automatically transition based on acpi events (there
was an option do to that with the old profile method), but that's not
currently hooked up and that's more of a policy choice, so it seems
like something that would be better handled in userspace (e.g., you
may want to use the performance state even when ac is offline or you
may want to use the battery state when AC is connected, etc.).

Alex


[pull] radeon drm-next-3.11

2013-07-03 Thread Ruslan N. Marchenko
Am 01.07.2013 23:01, schrieb alexdeucher at gmail.com:
> From: Alex Deucher
>
> Hi Dave,
>
> A few more patches for 3.11:
> - add debugfs interface to check current DPM state
> - Fix a bug that caused problems with DPM on BTC+ asics.
>
> The following changes since commit f7d452f4fd5d86f764807a1234a407deb5b105ef:
>
>Merge branch 'drm-nouveau-next' of 
> git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (2013-07-01 
> 14:10:20 +1000)
>
> are available in the git repository at:
>
>git://people.freedesktop.org/~agd5f/linux drm-next-3.11
>
> Alex Deucher (12):
>drm/radeon: remove sumo dpm/uvd bringup leftovers
>drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
>drm/radeon: fix typo in radeon_atom_init_mc_reg_table()
>drm/radeon/dpm: re-enable state transitions for BTC
>drm/radeon/dpm: re-enable state transitions for Cayman
>drm/radeon/dpm: add infrastructure to support debugfs info
>drm/radeon/dpm: add debugfs support for rv6xx
>drm/radeon/dpm: add debugfs support for 7xx/evergreen/btc
>drm/radeon/dpm: add debugfs support for ON/LN
>drm/radeon/dpm: add debugfs support for TN
>drm/radeon/dpm: add debugfs support for cayman
>drm/radeon/dpm: add debugfs support for SI
>
>   drivers/gpu/drm/radeon/btc_dpm.c |3 --
>   drivers/gpu/drm/radeon/ni_dpm.c  |   25 +---
>   drivers/gpu/drm/radeon/nid.h |4 ++
>   drivers/gpu/drm/radeon/radeon.h  |2 +
>   drivers/gpu/drm/radeon/radeon_asic.c |8 +
>   drivers/gpu/drm/radeon/radeon_asic.h |   12 
>   drivers/gpu/drm/radeon/radeon_atombios.c |3 +-
>   drivers/gpu/drm/radeon/radeon_pm.c   |   40 ++
>   drivers/gpu/drm/radeon/rv6xx_dpm.c   |   25 
>   drivers/gpu/drm/radeon/rv770_dpm.c   |   30 
>   drivers/gpu/drm/radeon/rv770d.h  |4 ++
>   drivers/gpu/drm/radeon/si_dpm.c  |   19 
>   drivers/gpu/drm/radeon/sid.h |4 ++
>   drivers/gpu/drm/radeon/sumo_dpm.c|   45 
> ++---
>   drivers/gpu/drm/radeon/trinity_dpm.c |   21 ++
>   15 files changed, 206 insertions(+), 39 deletions(-)
> ___
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
This is really excellent and very wanted addition to the radeon, a huge 
thanks Alex for giving a second life to my old TimelineX with hybrid 
AMD/Intel graphics. Intel ironlake became a bit outdated already but 
with ATi HD 5650 I was able to drink tee all day long since it never 
came lower than 90 degrees Celsius.   Now it comfortably sits at 55-60 
so I can use it back again.

As I noticed it supports now either dynpm or profile method of clocking, 
however profiles themselves also have several (3) power states. Also 
during init phase it writes that it switching from boot to performance 
profile - so what exactly is the difference between dpm and profile 
method? Will dynpm react to ACPI events like lid closed or AC offline or 
I better to add calls to acpid event handlers to tweak the profiles/methods?

In any case it's just a new breath to my relict brick, especially now 
when its successor is at service repair :)

-- 
Looking forward to reading yours...
  Ruslan N. Marchenko



Re: [pull] radeon drm-next-3.11

2013-07-03 Thread Ruslan N. Marchenko

Am 01.07.2013 23:01, schrieb alexdeuc...@gmail.com:

From: Alex Deucheralexander.deuc...@amd.com

Hi Dave,

A few more patches for 3.11:
- add debugfs interface to check current DPM state
- Fix a bug that caused problems with DPM on BTC+ asics.

The following changes since commit f7d452f4fd5d86f764807a1234a407deb5b105ef:

   Merge branch 'drm-nouveau-next' of 
git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (2013-07-01 
14:10:20 +1000)

are available in the git repository at:

   git://people.freedesktop.org/~agd5f/linux drm-next-3.11

Alex Deucher (12):
   drm/radeon: remove sumo dpm/uvd bringup leftovers
   drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
   drm/radeon: fix typo in radeon_atom_init_mc_reg_table()
   drm/radeon/dpm: re-enable state transitions for BTC
   drm/radeon/dpm: re-enable state transitions for Cayman
   drm/radeon/dpm: add infrastructure to support debugfs info
   drm/radeon/dpm: add debugfs support for rv6xx
   drm/radeon/dpm: add debugfs support for 7xx/evergreen/btc
   drm/radeon/dpm: add debugfs support for ON/LN
   drm/radeon/dpm: add debugfs support for TN
   drm/radeon/dpm: add debugfs support for cayman
   drm/radeon/dpm: add debugfs support for SI

  drivers/gpu/drm/radeon/btc_dpm.c |3 --
  drivers/gpu/drm/radeon/ni_dpm.c  |   25 +---
  drivers/gpu/drm/radeon/nid.h |4 ++
  drivers/gpu/drm/radeon/radeon.h  |2 +
  drivers/gpu/drm/radeon/radeon_asic.c |8 +
  drivers/gpu/drm/radeon/radeon_asic.h |   12 
  drivers/gpu/drm/radeon/radeon_atombios.c |3 +-
  drivers/gpu/drm/radeon/radeon_pm.c   |   40 ++
  drivers/gpu/drm/radeon/rv6xx_dpm.c   |   25 
  drivers/gpu/drm/radeon/rv770_dpm.c   |   30 
  drivers/gpu/drm/radeon/rv770d.h  |4 ++
  drivers/gpu/drm/radeon/si_dpm.c  |   19 
  drivers/gpu/drm/radeon/sid.h |4 ++
  drivers/gpu/drm/radeon/sumo_dpm.c|   45 ++---
  drivers/gpu/drm/radeon/trinity_dpm.c |   21 ++
  15 files changed, 206 insertions(+), 39 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

This is really excellent and very wanted addition to the radeon, a huge 
thanks Alex for giving a second life to my old TimelineX with hybrid 
AMD/Intel graphics. Intel ironlake became a bit outdated already but 
with ATi HD 5650 I was able to drink tee all day long since it never 
came lower than 90 degrees Celsius.   Now it comfortably sits at 55-60 
so I can use it back again.


As I noticed it supports now either dynpm or profile method of clocking, 
however profiles themselves also have several (3) power states. Also 
during init phase it writes that it switching from boot to performance 
profile - so what exactly is the difference between dpm and profile 
method? Will dynpm react to ACPI events like lid closed or AC offline or 
I better to add calls to acpid event handlers to tweak the profiles/methods?


In any case it's just a new breath to my relict brick, especially now 
when its successor is at service repair :)


--
Looking forward to reading yours...
 Ruslan N. Marchenko

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[pull] radeon drm-next-3.11

2013-07-03 Thread alexdeucher
From: Alex Deucher alexander.deuc...@amd.com

Hi Dave,

A few more DPM fixes.

The following changes since commit 7982128c3d447df27db963af67bc6b8dc7efb1de:

  drm/radeon/dpm: add debugfs support for SI (2013-07-01 16:09:06 -0400)

are available in the git repository at:
  git://people.freedesktop.org/~agd5f/linux drm-next-3.11

Alex Deucher (6):
  drm/radeon/dpm: clarify debugfs warning
  drm/radeon: fix endian bug in radeon_atom_get_mclk_range_table()
  drm/radeon/aruba: disable additional rlc features
  drm/radeon/sumo: disable PG when changing UVD clocks
  drm/radeon/tn: disable PG when changing UVD clocks
  drm/radeon/sumo: implement support for disable_gfx_power_gating_in_uvd 
flag

Mike Lothian (1):
  drm/radeon/dpm: fix compilation with certain versions of gcc

 drivers/gpu/drm/radeon/evergreen.c   |2 --
 drivers/gpu/drm/radeon/ni_dpm.c  |1 +
 drivers/gpu/drm/radeon/radeon_atombios.c |2 +-
 drivers/gpu/drm/radeon/radeon_pm.c   |2 +-
 drivers/gpu/drm/radeon/rv6xx_dpm.c   |1 +
 drivers/gpu/drm/radeon/rv770_dpm.c   |1 +
 drivers/gpu/drm/radeon/si_dpm.c  |1 +
 drivers/gpu/drm/radeon/sumo_dpm.c|   24 ++--
 drivers/gpu/drm/radeon/trinity_dpm.c |9 +
 9 files changed, 37 insertions(+), 6 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[pull] radeon drm-next-3.11

2013-07-02 Thread Markus Trippelsdorf
On 2013.07.01 at 17:01 -0400, alexdeucher at gmail.com wrote:
> From: Alex Deucher 
> 
> Hi Dave,
> 
> A few more patches for 3.11:
> - add debugfs interface to check current DPM state
> - Fix a bug that caused problems with DPM on BTC+ asics.
> 
> The following changes since commit f7d452f4fd5d86f764807a1234a407deb5b105ef:
> 
>   Merge branch 'drm-nouveau-next' of 
> git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (2013-07-01 
> 14:10:20 +1000)
> 
> are available in the git repository at:
> 
>   git://people.freedesktop.org/~agd5f/linux drm-next-3.11
> 
> Alex Deucher (12):
>   drm/radeon: remove sumo dpm/uvd bringup leftovers
>   drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
>   drm/radeon: fix typo in radeon_atom_init_mc_reg_table()
>   drm/radeon/dpm: re-enable state transitions for BTC
>   drm/radeon/dpm: re-enable state transitions for Cayman
>   drm/radeon/dpm: add infrastructure to support debugfs info
>   drm/radeon/dpm: add debugfs support for rv6xx
>   drm/radeon/dpm: add debugfs support for 7xx/evergreen/btc

Looks like you forgot to add debugfs support for rs780:

diff --git a/drivers/gpu/drm/radeon/radeon_asic.c 
b/drivers/gpu/drm/radeon/radeon_asic.c
index a5b244d..ca4f928 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.c
+++ b/drivers/gpu/drm/radeon/radeon_asic.c
@@ -1270,6 +1270,7 @@ static struct radeon_asic rs780_asic = {
.get_sclk = _dpm_get_sclk,
.get_mclk = _dpm_get_mclk,
.print_power_state = _dpm_print_power_state,
+   .debugfs_print_current_performance_level = 
_dpm_debugfs_print_current_performance_level,
},
.pflip = {
.pre_page_flip = _pre_page_flip,

-- 
Markus


[pull] radeon drm-next-3.11

2013-07-01 Thread Deucher, Alexander
> -Original Message-
> From: Markus Trippelsdorf [mailto:markus at trippelsdorf.de]
> Sent: Monday, July 01, 2013 5:58 PM
> To: alexdeucher at gmail.com
> Cc: dri-devel at lists.freedesktop.org; airlied at gmail.com; Deucher, 
> Alexander
> Subject: Re: [pull] radeon drm-next-3.11
> 
> On 2013.07.01 at 17:01 -0400, alexdeucher at gmail.com wrote:
> > From: Alex Deucher 
> >
> > Hi Dave,
> >
> > A few more patches for 3.11:
> > - add debugfs interface to check current DPM state
> > - Fix a bug that caused problems with DPM on BTC+ asics.
> >
> > The following changes since commit
> f7d452f4fd5d86f764807a1234a407deb5b105ef:
> >
> >   Merge branch 'drm-nouveau-next' of
> git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (2013-07-
> 01 14:10:20 +1000)
> >
> > are available in the git repository at:
> >
> >   git://people.freedesktop.org/~agd5f/linux drm-next-3.11
> >
> > Alex Deucher (12):
> >   drm/radeon: remove sumo dpm/uvd bringup leftovers
> >   drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
> >   drm/radeon: fix typo in radeon_atom_init_mc_reg_table()
> >   drm/radeon/dpm: re-enable state transitions for BTC
> >   drm/radeon/dpm: re-enable state transitions for Cayman
> >   drm/radeon/dpm: add infrastructure to support debugfs info
> >   drm/radeon/dpm: add debugfs support for rv6xx
> >   drm/radeon/dpm: add debugfs support for 7xx/evergreen/btc
> 
> Looks like you forgot to add debugfs support for rs780:
> 
> diff --git a/drivers/gpu/drm/radeon/radeon_asic.c
> b/drivers/gpu/drm/radeon/radeon_asic.c
> index a5b244d..ca4f928 100644
> --- a/drivers/gpu/drm/radeon/radeon_asic.c
> +++ b/drivers/gpu/drm/radeon/radeon_asic.c
> @@ -1270,6 +1270,7 @@ static struct radeon_asic rs780_asic = {
>   .get_sclk = _dpm_get_sclk,
>   .get_mclk = _dpm_get_mclk,
>   .print_power_state = _dpm_print_power_state,
> + .debugfs_print_current_performance_level =
> _dpm_debugfs_print_current_performance_level,
>   },
>   .pflip = {
>   .pre_page_flip = _pre_page_flip,
> 

Rs780 doesn't have a convenient way to look up the current power state so it's 
not implemented yet.  The method used on the other asics does not work for 
rs780.

Alex




[pull] radeon drm-next-3.11

2013-07-01 Thread alexdeuc...@gmail.com
From: Alex Deucher 

Hi Dave,

A few more patches for 3.11:
- add debugfs interface to check current DPM state
- Fix a bug that caused problems with DPM on BTC+ asics.

The following changes since commit f7d452f4fd5d86f764807a1234a407deb5b105ef:

  Merge branch 'drm-nouveau-next' of 
git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (2013-07-01 
14:10:20 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~agd5f/linux drm-next-3.11

Alex Deucher (12):
  drm/radeon: remove sumo dpm/uvd bringup leftovers
  drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
  drm/radeon: fix typo in radeon_atom_init_mc_reg_table()
  drm/radeon/dpm: re-enable state transitions for BTC
  drm/radeon/dpm: re-enable state transitions for Cayman
  drm/radeon/dpm: add infrastructure to support debugfs info
  drm/radeon/dpm: add debugfs support for rv6xx
  drm/radeon/dpm: add debugfs support for 7xx/evergreen/btc
  drm/radeon/dpm: add debugfs support for ON/LN
  drm/radeon/dpm: add debugfs support for TN
  drm/radeon/dpm: add debugfs support for cayman
  drm/radeon/dpm: add debugfs support for SI

 drivers/gpu/drm/radeon/btc_dpm.c |3 --
 drivers/gpu/drm/radeon/ni_dpm.c  |   25 +---
 drivers/gpu/drm/radeon/nid.h |4 ++
 drivers/gpu/drm/radeon/radeon.h  |2 +
 drivers/gpu/drm/radeon/radeon_asic.c |8 +
 drivers/gpu/drm/radeon/radeon_asic.h |   12 
 drivers/gpu/drm/radeon/radeon_atombios.c |3 +-
 drivers/gpu/drm/radeon/radeon_pm.c   |   40 ++
 drivers/gpu/drm/radeon/rv6xx_dpm.c   |   25 
 drivers/gpu/drm/radeon/rv770_dpm.c   |   30 
 drivers/gpu/drm/radeon/rv770d.h  |4 ++
 drivers/gpu/drm/radeon/si_dpm.c  |   19 
 drivers/gpu/drm/radeon/sid.h |4 ++
 drivers/gpu/drm/radeon/sumo_dpm.c|   45 ++---
 drivers/gpu/drm/radeon/trinity_dpm.c |   21 ++
 15 files changed, 206 insertions(+), 39 deletions(-)


[pull] radeon drm-next-3.11

2013-07-01 Thread alexdeucher
From: Alex Deucher alexander.deuc...@amd.com

Hi Dave,

A few more patches for 3.11:
- add debugfs interface to check current DPM state
- Fix a bug that caused problems with DPM on BTC+ asics.

The following changes since commit f7d452f4fd5d86f764807a1234a407deb5b105ef:

  Merge branch 'drm-nouveau-next' of 
git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (2013-07-01 
14:10:20 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~agd5f/linux drm-next-3.11

Alex Deucher (12):
  drm/radeon: remove sumo dpm/uvd bringup leftovers
  drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
  drm/radeon: fix typo in radeon_atom_init_mc_reg_table()
  drm/radeon/dpm: re-enable state transitions for BTC
  drm/radeon/dpm: re-enable state transitions for Cayman
  drm/radeon/dpm: add infrastructure to support debugfs info
  drm/radeon/dpm: add debugfs support for rv6xx
  drm/radeon/dpm: add debugfs support for 7xx/evergreen/btc
  drm/radeon/dpm: add debugfs support for ON/LN
  drm/radeon/dpm: add debugfs support for TN
  drm/radeon/dpm: add debugfs support for cayman
  drm/radeon/dpm: add debugfs support for SI

 drivers/gpu/drm/radeon/btc_dpm.c |3 --
 drivers/gpu/drm/radeon/ni_dpm.c  |   25 +---
 drivers/gpu/drm/radeon/nid.h |4 ++
 drivers/gpu/drm/radeon/radeon.h  |2 +
 drivers/gpu/drm/radeon/radeon_asic.c |8 +
 drivers/gpu/drm/radeon/radeon_asic.h |   12 
 drivers/gpu/drm/radeon/radeon_atombios.c |3 +-
 drivers/gpu/drm/radeon/radeon_pm.c   |   40 ++
 drivers/gpu/drm/radeon/rv6xx_dpm.c   |   25 
 drivers/gpu/drm/radeon/rv770_dpm.c   |   30 
 drivers/gpu/drm/radeon/rv770d.h  |4 ++
 drivers/gpu/drm/radeon/si_dpm.c  |   19 
 drivers/gpu/drm/radeon/sid.h |4 ++
 drivers/gpu/drm/radeon/sumo_dpm.c|   45 ++---
 drivers/gpu/drm/radeon/trinity_dpm.c |   21 ++
 15 files changed, 206 insertions(+), 39 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [pull] radeon drm-next-3.11

2013-07-01 Thread Markus Trippelsdorf
On 2013.07.01 at 17:01 -0400, alexdeuc...@gmail.com wrote:
 From: Alex Deucher alexander.deuc...@amd.com
 
 Hi Dave,
 
 A few more patches for 3.11:
 - add debugfs interface to check current DPM state
 - Fix a bug that caused problems with DPM on BTC+ asics.
 
 The following changes since commit f7d452f4fd5d86f764807a1234a407deb5b105ef:
 
   Merge branch 'drm-nouveau-next' of 
 git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (2013-07-01 
 14:10:20 +1000)
 
 are available in the git repository at:
 
   git://people.freedesktop.org/~agd5f/linux drm-next-3.11
 
 Alex Deucher (12):
   drm/radeon: remove sumo dpm/uvd bringup leftovers
   drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
   drm/radeon: fix typo in radeon_atom_init_mc_reg_table()
   drm/radeon/dpm: re-enable state transitions for BTC
   drm/radeon/dpm: re-enable state transitions for Cayman
   drm/radeon/dpm: add infrastructure to support debugfs info
   drm/radeon/dpm: add debugfs support for rv6xx
   drm/radeon/dpm: add debugfs support for 7xx/evergreen/btc

Looks like you forgot to add debugfs support for rs780:

diff --git a/drivers/gpu/drm/radeon/radeon_asic.c 
b/drivers/gpu/drm/radeon/radeon_asic.c
index a5b244d..ca4f928 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.c
+++ b/drivers/gpu/drm/radeon/radeon_asic.c
@@ -1270,6 +1270,7 @@ static struct radeon_asic rs780_asic = {
.get_sclk = rs780_dpm_get_sclk,
.get_mclk = rs780_dpm_get_mclk,
.print_power_state = rs780_dpm_print_power_state,
+   .debugfs_print_current_performance_level = 
rv770_dpm_debugfs_print_current_performance_level,
},
.pflip = {
.pre_page_flip = rs600_pre_page_flip,

-- 
Markus
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


RE: [pull] radeon drm-next-3.11

2013-07-01 Thread Deucher, Alexander
 -Original Message-
 From: Markus Trippelsdorf [mailto:mar...@trippelsdorf.de]
 Sent: Monday, July 01, 2013 5:58 PM
 To: alexdeuc...@gmail.com
 Cc: dri-devel@lists.freedesktop.org; airl...@gmail.com; Deucher, Alexander
 Subject: Re: [pull] radeon drm-next-3.11
 
 On 2013.07.01 at 17:01 -0400, alexdeuc...@gmail.com wrote:
  From: Alex Deucher alexander.deuc...@amd.com
 
  Hi Dave,
 
  A few more patches for 3.11:
  - add debugfs interface to check current DPM state
  - Fix a bug that caused problems with DPM on BTC+ asics.
 
  The following changes since commit
 f7d452f4fd5d86f764807a1234a407deb5b105ef:
 
Merge branch 'drm-nouveau-next' of
 git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (2013-07-
 01 14:10:20 +1000)
 
  are available in the git repository at:
 
git://people.freedesktop.org/~agd5f/linux drm-next-3.11
 
  Alex Deucher (12):
drm/radeon: remove sumo dpm/uvd bringup leftovers
drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()
drm/radeon: fix typo in radeon_atom_init_mc_reg_table()
drm/radeon/dpm: re-enable state transitions for BTC
drm/radeon/dpm: re-enable state transitions for Cayman
drm/radeon/dpm: add infrastructure to support debugfs info
drm/radeon/dpm: add debugfs support for rv6xx
drm/radeon/dpm: add debugfs support for 7xx/evergreen/btc
 
 Looks like you forgot to add debugfs support for rs780:
 
 diff --git a/drivers/gpu/drm/radeon/radeon_asic.c
 b/drivers/gpu/drm/radeon/radeon_asic.c
 index a5b244d..ca4f928 100644
 --- a/drivers/gpu/drm/radeon/radeon_asic.c
 +++ b/drivers/gpu/drm/radeon/radeon_asic.c
 @@ -1270,6 +1270,7 @@ static struct radeon_asic rs780_asic = {
   .get_sclk = rs780_dpm_get_sclk,
   .get_mclk = rs780_dpm_get_mclk,
   .print_power_state = rs780_dpm_print_power_state,
 + .debugfs_print_current_performance_level =
 rv770_dpm_debugfs_print_current_performance_level,
   },
   .pflip = {
   .pre_page_flip = rs600_pre_page_flip,
 

Rs780 doesn't have a convenient way to look up the current power state so it's 
not implemented yet.  The method used on the other asics does not work for 
rs780.

Alex


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[pull] radeon drm-next-3.11

2013-06-27 Thread alexdeuc...@gmail.com
From: Alex Deucher 

Hi Dave,

This is the pull request for radeon for 3.11.  Highlights include:

- Support for CIK (Sea Islands) asics: 3D, compute, UVD
- DPM (Dynamic Power Management) support for 6xx-SI
- ASPM support for 6xx-SI
- Assorted bug fixes

DPM is disabled by default for now until it gets further testing.  DPM
on 6xx and NI asics are still a bit problematic, but other asic families
are generally working well.  You can enable DPM by setting the dpm module
parameter to 1.

The following changes since commit 9b1be4dc02bb6b9761fbd8927c1750d75ddd2a8c:

  drm/radeon: fix UVD on big endian (2013-06-12 08:17:21 -0400)

are available in the git repository at:
  git://people.freedesktop.org/~agd5f/linux drm-next-3.11

Alex Deucher (166):
  drm/radeon: fix AVI infoframe generation
  drm/radeon: add backlight quirk for hybrid mac
  drm/radeon: add a reset work handler
  drm/radeon: add CIK chip families
  drm/radeon: add DCE8 macro for CIK
  drm/radeon: adapt to PCI BAR changes on CIK
  drm/radeon: add gpu init support for CIK (v9)
  drm/radeon: Add support for CIK GPU reset (v2)
  drm/radeon: add support for MC/VM setup on CIK (v6)
  drm/radeon/cik: stop page faults from hanging the system (v2)
  drm/radeon: add initial ucode loading for CIK (v5)
  drm/radeon: add support mc ucode loading on CIK (v2)
  drm/radeon: Add CP init for CIK (v7)
  drm/radeon: add IB and fence dispatch functions for CIK gfx (v7)
  drm/radeon: add ring and IB tests for CIK (v3)
  drm/radeon: implement async vm_flush for the CP (v7)
  drm/radeon: Add support for RLC init on CIK (v4)
  drm/radeon: add support for interrupts on CIK (v5)
  drm/radeon/cik: log and handle VM page fault interrupts
  drm/radeon/cik: add support for sDMA dma engines (v8)
  drm/radeon: implement async vm_flush for the sDMA (v6)
  drm/radeon/cik: add support for doing async VM pt updates (v5)
  drm/radeon/cik: fill in startup/shutdown callbacks (v5)
  drm/radeon: upstream ObjectID.h updates (v2)
  drm/radeon: upstream atombios.h updates (v2)
  drm/radeon: atombios power table updates (v2)
  drm/radeon: handle the integrated thermal controller on CI
  drm/radeon: update power state parsing for CI
  drm/radeon/dce8: add support for display watermark setup
  drm/radeon/cik: add hw cursor support (v2)
  drm/radeon/dce8: properly handle interlaced timing
  drm/radeon/dce8: crtc_set_base updates
  drm/radeon/atom: add DCE8 encoder support
  drm/radeon/atom: add support for new DVO tables
  drm/radeon: update DISPCLK programming for DCE8
  drm/radeon: add support pll selection for DCE8 (v4)
  drm/radeon: Handle PPLL0 powerdown on DCE8
  drm/radeon: use frac fb div on DCE8
  drm/radeon: add SS override support for KB/KV
  drm/radeon: Update radeon_info_ioctl for CIK (v2)
  drm/radeon: add get_gpu_clock_counter() callback for cik
  drm/radeon: update CIK soft reset
  drm/radeon: add indirect register accessors for SMC registers
  drm/radeon: add get_xclk() callback for CIK
  drm/radeon/cik: add pcie_port indirect register accessors
  drm/radeon: update radeon_atom_get_clock_dividers() for SI
  drm/radeon: update radeon_atom_get_clock_dividers for CIK
  drm/radeon/cik: add srbm_select function
  drm/radeon: use callbacks for ring pointer handling (v3)
  drm/radeon: implement simple doorbell page allocator
  drm/radeon/cik: Add support for compute queues (v4)
  drm/radeon/cik: switch to type3 nop packet for compute rings (v2)
  drm/radeon: fix up ring functions for compute rings
  drm/radeon/cik: add support for compute interrupts
  drm/radeon/cik: add support for golden register init
  drm/radeon: add radeon_asic struct for CIK (v12)
  drm/radeon: add cik tile mode array query
  drm/radeon: add current Bonaire PCI ids
  drm/radeon: add current KB pci ids
  drm/radeon/kms: add accessors for RCU indirect space
  drm/radeon/evergreen: add indirect register accessors for CG registers
  drm/radeon: make get_temperature functions a callback
  drm/radeon: add support for thermal sensor on tn
  drm/radeon/kms: move ucode defines to a separate header
  drm/radeon: properly set up the RLC on ON/LN/TN (v3)
  drm/radeon/kms: add atom helper functions for dpm (v3)
  drm/radeon/kms: add new asic struct for rv6xx (v4)
  drm/radeon/kms: add common dpm infrastructure
  drm/radeon/kms: fix up rs780/rs880 display watermark calc for dpm
  drm/radeon/kms: fix up 6xx/7xx display watermark calc for dpm
  drm/radeon/kms: fix up dce4/5 display watermark calc for dpm
  drm/radeon/kms: fix up dce6 display watermark calc for dpm
  drm/radeon/kms: add common r600 dpm functions
  drm/radeon/kms: add dpm support for rs780/rs880
  drm/radeon/kms: add dpm support for rv6xx 

[pull] radeon drm-next-3.11

2013-06-27 Thread alexdeucher
From: Alex Deucher alexander.deuc...@amd.com

Hi Dave,

This is the pull request for radeon for 3.11.  Highlights include:

- Support for CIK (Sea Islands) asics: 3D, compute, UVD
- DPM (Dynamic Power Management) support for 6xx-SI
- ASPM support for 6xx-SI
- Assorted bug fixes

DPM is disabled by default for now until it gets further testing.  DPM
on 6xx and NI asics are still a bit problematic, but other asic families
are generally working well.  You can enable DPM by setting the dpm module
parameter to 1.

The following changes since commit 9b1be4dc02bb6b9761fbd8927c1750d75ddd2a8c:

  drm/radeon: fix UVD on big endian (2013-06-12 08:17:21 -0400)

are available in the git repository at:
  git://people.freedesktop.org/~agd5f/linux drm-next-3.11

Alex Deucher (166):
  drm/radeon: fix AVI infoframe generation
  drm/radeon: add backlight quirk for hybrid mac
  drm/radeon: add a reset work handler
  drm/radeon: add CIK chip families
  drm/radeon: add DCE8 macro for CIK
  drm/radeon: adapt to PCI BAR changes on CIK
  drm/radeon: add gpu init support for CIK (v9)
  drm/radeon: Add support for CIK GPU reset (v2)
  drm/radeon: add support for MC/VM setup on CIK (v6)
  drm/radeon/cik: stop page faults from hanging the system (v2)
  drm/radeon: add initial ucode loading for CIK (v5)
  drm/radeon: add support mc ucode loading on CIK (v2)
  drm/radeon: Add CP init for CIK (v7)
  drm/radeon: add IB and fence dispatch functions for CIK gfx (v7)
  drm/radeon: add ring and IB tests for CIK (v3)
  drm/radeon: implement async vm_flush for the CP (v7)
  drm/radeon: Add support for RLC init on CIK (v4)
  drm/radeon: add support for interrupts on CIK (v5)
  drm/radeon/cik: log and handle VM page fault interrupts
  drm/radeon/cik: add support for sDMA dma engines (v8)
  drm/radeon: implement async vm_flush for the sDMA (v6)
  drm/radeon/cik: add support for doing async VM pt updates (v5)
  drm/radeon/cik: fill in startup/shutdown callbacks (v5)
  drm/radeon: upstream ObjectID.h updates (v2)
  drm/radeon: upstream atombios.h updates (v2)
  drm/radeon: atombios power table updates (v2)
  drm/radeon: handle the integrated thermal controller on CI
  drm/radeon: update power state parsing for CI
  drm/radeon/dce8: add support for display watermark setup
  drm/radeon/cik: add hw cursor support (v2)
  drm/radeon/dce8: properly handle interlaced timing
  drm/radeon/dce8: crtc_set_base updates
  drm/radeon/atom: add DCE8 encoder support
  drm/radeon/atom: add support for new DVO tables
  drm/radeon: update DISPCLK programming for DCE8
  drm/radeon: add support pll selection for DCE8 (v4)
  drm/radeon: Handle PPLL0 powerdown on DCE8
  drm/radeon: use frac fb div on DCE8
  drm/radeon: add SS override support for KB/KV
  drm/radeon: Update radeon_info_ioctl for CIK (v2)
  drm/radeon: add get_gpu_clock_counter() callback for cik
  drm/radeon: update CIK soft reset
  drm/radeon: add indirect register accessors for SMC registers
  drm/radeon: add get_xclk() callback for CIK
  drm/radeon/cik: add pcie_port indirect register accessors
  drm/radeon: update radeon_atom_get_clock_dividers() for SI
  drm/radeon: update radeon_atom_get_clock_dividers for CIK
  drm/radeon/cik: add srbm_select function
  drm/radeon: use callbacks for ring pointer handling (v3)
  drm/radeon: implement simple doorbell page allocator
  drm/radeon/cik: Add support for compute queues (v4)
  drm/radeon/cik: switch to type3 nop packet for compute rings (v2)
  drm/radeon: fix up ring functions for compute rings
  drm/radeon/cik: add support for compute interrupts
  drm/radeon/cik: add support for golden register init
  drm/radeon: add radeon_asic struct for CIK (v12)
  drm/radeon: add cik tile mode array query
  drm/radeon: add current Bonaire PCI ids
  drm/radeon: add current KB pci ids
  drm/radeon/kms: add accessors for RCU indirect space
  drm/radeon/evergreen: add indirect register accessors for CG registers
  drm/radeon: make get_temperature functions a callback
  drm/radeon: add support for thermal sensor on tn
  drm/radeon/kms: move ucode defines to a separate header
  drm/radeon: properly set up the RLC on ON/LN/TN (v3)
  drm/radeon/kms: add atom helper functions for dpm (v3)
  drm/radeon/kms: add new asic struct for rv6xx (v4)
  drm/radeon/kms: add common dpm infrastructure
  drm/radeon/kms: fix up rs780/rs880 display watermark calc for dpm
  drm/radeon/kms: fix up 6xx/7xx display watermark calc for dpm
  drm/radeon/kms: fix up dce4/5 display watermark calc for dpm
  drm/radeon/kms: fix up dce6 display watermark calc for dpm
  drm/radeon/kms: add common r600 dpm functions
  drm/radeon/kms: add dpm support for rs780/rs880
  drm/radeon/kms: add dpm support for rv6xx (v3)