Op 26-06-13 04:14, Seung-Woo Kim schreef:
From: YoungJun Cho yj44@samsung.com
The drm_gem_mmap_obj() has to be protected with dev-struct_mutex,
but some caller functions do not. So it adds mutex lock to missing
callers and adds WARN_ON assertion whether drm_gem_mmap_obj() is
called with
On Jun 26, 2013 4:13 PM, Maarten Lankhorst
maarten.lankho...@canonical.com wrote:
Op 26-06-13 04:14, Seung-Woo Kim schreef:
From: YoungJun Cho yj44@samsung.com
The drm_gem_mmap_obj() has to be protected with dev-struct_mutex,
but some caller functions do not. So it adds mutex lock
On Wed, Jun 26, 2013 at 10:42:39AM +0900, Seung-Woo Kim wrote:
From: YoungJun Cho yj44@samsung.com
If idr_alloc() is failed, obj-name can be error value. Also
it cleans up duplicated flink processing code.
You should mention that it is a regression from
commit 2e928815c (drm: convert to
On Jun 26, 2013 5:56 PM, Chris Wilson ch...@chris-wilson.co.uk wrote:
On Wed, Jun 26, 2013 at 10:42:39AM +0900, Seung-Woo Kim wrote:
From: YoungJun Cho yj44@samsung.com
If idr_alloc() is failed, obj-name can be error value. Also
it cleans up duplicated flink processing code.
You
From: Alex Deucher alexander.deuc...@amd.com
These are the radeon patches for 3.11. Some of these patches
are huge so, it might be easier to review things here:
http://cgit.freedesktop.org/~agd5f/linux/log/?h=drm-next-3.11-wip
I'll send a formal pull in request in the next day or two.
From: Alex Deucher alexander.deuc...@amd.com
- remove adding 2 to checksum, this is incorrect.
This was incorrectly introduced in:
92db7f6c860b8190571a9dc1fcbc16d003422fe8
http://lists.freedesktop.org/archives/dri-devel/2011-December/017717.html
However, the off by 2 was due to adding the
From: Alex Deucher alexander.deuc...@amd.com
New asics support non-privileged IBs. This allows us
to skip IB checking in the driver since the hardware
will check the command buffers for us. When using
non-privileged IBs, if the CP encounters an illegal
register in the command stream, it will
From: Alex Deucher alexander.deuc...@amd.com
Mac laptops with multiple GPUs apparently use the gmux
driver for backlight control. Don't register a radeon
backlight interface. We may need to add other pci ids
for other hybrid mac laptops.
Fixes:
From: Alex Deucher alexander.deuc...@amd.com
v2: split soft reset into compute and gfx. Still need
to make reset more fine grained, but this should be a
start.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 197
From: Alex Deucher alexander.deuc...@amd.com
register BAR is now at PCI BAR 5.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon_device.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_device.c
From: Alex Deucher alexander.deuc...@amd.com
v2: tiling fixes
v3: more tiling fixes
v4: more tiling fixes
v5: additional register init
v6: rebase
v7: fix gb_addr_config for KV/KB
v8: drop wip KV bits for now, add missing config reg
v9: fix cu count on Bonaire
Signed-off-by: Alex Deucher
From: Alex Deucher alexander.deuc...@amd.com
Redirect invalid memory accesses to the default page
instead of locking up the memory controller.
v2: rebase on top of 2 level PTs
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 15 +--
From: Alex Deucher alexander.deuc...@amd.com
Currently the driver required 6 sets of ucode:
1. pfp - pre-fetch parser, part of the GFX CP
2. me - micro engine, part of the GFX CP
3. ce - constant engine, part of the GFX CP
4. rlc - interrupt, etc. controller
5. mc - memory controller (discrete
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index f5fccbb..b50a786
From: Alex Deucher alexander.deuc...@amd.com
Update the page table base address and flush the
VM TLB using the CP.
v2: update for 2 level PTs
v3: use new packet for invalidate
v4: update SH_MEM* regs when flushing the VM
v5: add pfp sync, go back to old style vm TLB invalidate
v6: fix hdp flush
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon_device.c |3 +++
drivers/gpu/drm/radeon/radeon_family.h |3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 10 ++
drivers/gpu/drm/radeon/cikd.h |4
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/cik.c
From: Alex Deucher alexander.deuc...@amd.com
CIK has new asynchronous DMA engines called sDMA
(system DMA). Each engine supports 1 ring buffer
for kernel and gfx and 2 userspace queues for compute.
TODO: fill in the compute setup.
v2: update to the latest reset code
v3: remove ib_parse
v4: fix
From: Alex Deucher alexander.deuc...@amd.com
The vm callbacks are the same as the SI ones right now
(same regs and bits). We could share the SI variants, and
I may yet do that, but I figured I would add CIK specific
ones for now in case we need to change anything.
V2: add documentation, minor
From: Alex Deucher alexander.deuc...@amd.com
v2: update to latest driver changes
v3: properly tear down vm on suspend
v4: fix up irq init ordering
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 340 ++
1 files
From: Alex Deucher alexander.deuc...@amd.com
For gfx ring only. Compute is still todo.
v2: add documentation
v3: update to latest reset changes, integrate emit update patch.
v4: fix count on wait_reg_mem for HDP flush
v5: use old hdp flush method for fence
v6: set valid bit for IB
v7: cleanup
From: Alex Deucher alexander.deuc...@amd.com
Load the GDDR5 ucode and train the links.
v2: update ucode
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 116 +
drivers/gpu/drm/radeon/cikd.h | 16 ++
2 files
From: Alex Deucher alexander.deuc...@amd.com
No support for reading the temperature yet.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon.h |1 +
drivers/gpu/drm/radeon/radeon_atombios.c |6 ++
2 files changed, 7 insertions(+), 0
From: Alex Deucher alexander.deuc...@amd.com
Sets up the GFX ring and loads ucode for GFX and Compute.
Todo:
- handle compute queue setup.
v2: add documentation
v3: integrate with latest reset changes
v4: additional init fixes
v5: scratch reg write back no longer supported on CIK
v6: properly
From: Alex Deucher alexander.deuc...@amd.com
Todo:
- handle interrupts for compute queues
v2: add documentation
v3: update to latest reset code
v4: update to latest illegal CP handling
v5: fix missing break in interrupt handler switch statement
Signed-off-by: Alex Deucher
From: Alex Deucher alexander.deuc...@amd.com
v2: add documenation
v3: update the latest ib changes
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 114 ++
1 files changed, 114 insertions(+), 0 deletions(-)
diff
From: Alex Deucher alexander.deuc...@amd.com
The register bits changed on DCE8 compared to previous
families.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/atombios_encoders.c |8 +++-
drivers/gpu/drm/radeon/cik_reg.h |3 +++
2 files
From: Alex Deucher alexander.deuc...@amd.com
Update the page table base address and flush the
VM TLB using the sDMA.
V2: update for 2 level PTs
V3: update vm flush
V4: update SH_MEM* regs
V5: switch back to old style VM TLB invalidate
V6: fix packet formatting
Signed-off-by: Alex Deucher
From: Alex Deucher alexander.deuc...@amd.com
Async page table updates using the sDMA engine. sDMA has a
special packet for updating entries for contiguous pages
that reduces overhead.
v2: add support for and use the CP for now.
v3: update for 2 level PTs
v4: rebase, fix DMA packet
v5: switch to
From: Alex Deucher alexander.deuc...@amd.com
RLC handles the interrupt controller and other tasks
on the GPU.
v2: add documentation
v3: update programming sequence
v4: additional setup
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 142
From: Alex Deucher alexander.deuc...@amd.com
v2: make PPLL0 is available for non-DP on CI
v3: rebase changes, update documentation
v4: fix kabini
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/atombios_crtc.c | 48 +++-
1 files
From: Alex Deucher alexander.deuc...@amd.com
v2: further updates
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/atombios.h | 58 ++--
1 files changed, 54 insertions(+), 4 deletions(-)
diff --git
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/atombios_crtc.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c
b/drivers/gpu/drm/radeon/atombios_crtc.c
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon_atombios.c | 17 +
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c
From: Alex Deucher alexander.deuc...@amd.com
v2: further updates
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/ObjectID.h | 40 +
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git
From: Alex Deucher alexander.deuc...@amd.com
v2: rebase changes, fix a couple missed cases
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon_kms.c | 33 ++---
1 files changed, 26 insertions(+), 7 deletions(-)
diff --git
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 537 +
drivers/gpu/drm/radeon/cikd.h | 11 +
2 files changed, 548 insertions(+), 0 deletions(-)
diff --git
From: Alex Deucher alexander.deuc...@amd.com
Used for GPU clock counter snapshots.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 21 +
drivers/gpu/drm/radeon/cikd.h|4 +++-
drivers/gpu/drm/radeon/radeon_asic.h
From: Alex Deucher alexander.deuc...@amd.com
Update to the newer programming model.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 387 +
drivers/gpu/drm/radeon/cikd.h | 12 ++
2 files changed, 253
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon_atombios.c | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c
From: Alex Deucher alexander.deuc...@amd.com
CIK (DCE8) hw cursors are programmed the same as evergreen
(DCE4) with the following caveats:
- cursors are now 128x128 pixels
- new alpha blend enable bit
v2: rebase
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/evergreen_reg.h |4
drivers/gpu/drm/radeon/radeon.h| 17 +
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/atombios_crtc.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c
b/drivers/gpu/drm/radeon/atombios_crtc.c
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/atombios_encoders.c | 27 ---
drivers/gpu/drm/radeon/radeon_display.c|5 +++--
2 files changed, 27 insertions(+), 5 deletions(-)
diff
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 22 ++
drivers/gpu/drm/radeon/cikd.h|7 +++
drivers/gpu/drm/radeon/radeon_asic.h |1 +
3 files changed, 30
From: Alex Deucher alexander.deuc...@amd.com
SI uses v5 of the command table and uses a different table
for memory PLLs.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon_atombios.c |6 +-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/atombios_encoders.c |9 -
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c
From: Alex Deucher alexander.deuc...@amd.com
Some new fields and DESKTOP_HEIGHT register moved.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/atombios_crtc.c | 34 --
drivers/gpu/drm/radeon/cik_reg.h | 79
From: Christian König christian.koe...@amd.com
v2: agd5f: fix clock dividers setup for bonaire
v3: agd5f: rebase
Signed-off-by: Christian König christian.koe...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 111
From: Alex Deucher alexander.deuc...@amd.com
Allows us to select instanced registers based on:
- ME (micro engine
- Pipe
- Queue
- VMID
Switch MC setup to use this new function.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 27
From: Alex Deucher alexander.deuc...@amd.com
Only Bonaire has PPLL0.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/atombios_crtc.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c
From: Alex Deucher alexander.deuc...@amd.com
Add callbacks to the radeon_ring struct to handle
rptr/wptr fetchs and wptr updates.
We currently use one version for all rings, but this
allows us to override with a ring specific versions.
Needed for compute rings on CIK.
Signed-off-by: Alex
From: Alex Deucher alexander.deuc...@amd.com
On CIK, the compute rings work slightly differently than
on previous asics, however the basic concepts are the same.
The main differences:
- New MEC engines for compute queues
- Multiple queues per MEC:
- CI/KB: 1 MEC, 4 pipes per MEC, 8 queues per
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 21 +
drivers/gpu/drm/radeon/cikd.h|3 +++
drivers/gpu/drm/radeon/radeon_asic.c |6 +-
From: Alex Deucher alexander.deuc...@amd.com
The doorbell aperture is a PCI BAR whose pages can be
mapped to compute resources for things like wptrs
for userspace queues.
This patch maps the BAR and sets up a simple allocator
to allocate pages from the BAR.
Signed-off-by: Alex Deucher
From: Alex Deucher alexander.deuc...@amd.com
Type 2 packets are deprecated on CIK MEC and we should use
type 3 nop packets. Setting the count field to the max value
(0x3fff) indicates that only one dword should be skipped
like a type 2 packet.
Signed-off-by: Alex Deucher
From: Alex Deucher alexander.deuc...@amd.com
CIK uses a slightly different variant of the table structs
and params.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon_atombios.c | 20 +++-
drivers/gpu/drm/radeon/radeon_mode.h |3 +++
From: Alex Deucher alexander.deuc...@amd.com
The compute rings use RELEASE_MEM rather then EOP
packets for writing fences and there is no SYNC_PFP_ME
packet on the compute rings.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 53
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 121 --
1 files changed, 116 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/radeon/cik.c
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c | 438 ++
1 files changed, 438 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/cik.c
From: Alex Deucher alexander.deuc...@amd.com
v2: fix up for latest reset changes
v3: use CP for pt updates for now
v4: update for 2 level PTs
v5: update for ib_parse removal
v6: vm_flush api change
v7: rebase
v8: fix gfx ring function pointers
v9: fix vm_set_page function params
v10: update for
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
include/drm/drm_pciids.h |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h
index bb1bc48..23f89df 100644
---
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/cik.c|4
drivers/gpu/drm/radeon/radeon.h |1 +
drivers/gpu/drm/radeon/radeon_drv.c |3 ++-
drivers/gpu/drm/radeon/radeon_kms.c | 14
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/evergreen.c |6 ++
drivers/gpu/drm/radeon/r600_reg.h |3 +++
drivers/gpu/drm/radeon/radeon.h| 17 +
3 files changed, 22 insertions(+),
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
include/drm/drm_pciids.h | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h
index 23f89df..34efaf6
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/evergreen_reg.h |3 +++
drivers/gpu/drm/radeon/radeon.h| 17 +
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon.h |7 ++-
drivers/gpu/drm/radeon/radeon_asic.c |8
drivers/gpu/drm/radeon/radeon_asic.h |5 +
drivers/gpu/drm/radeon/radeon_pm.c
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/ni.c |8
drivers/gpu/drm/radeon/nid.h |3 +++
drivers/gpu/drm/radeon/radeon_asic.c |1 +
drivers/gpu/drm/radeon/radeon_asic.h |1
From: Alex Deucher alexander.deuc...@amd.com
Avoids confusion and duplication.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/evergreen.c|4 +--
drivers/gpu/drm/radeon/ni.c | 13 +
drivers/gpu/drm/radeon/r600.c | 25
On mar., 2013-06-25 at 17:08 +0100, Matthew Garrett wrote:
On Sat, Jun 22, 2013 at 11:46:39PM +0200, Yves-Alexis Perez wrote:
Before Linux support for acpi_osi(Windows 2012) (and when booting with
acpi_osi=!Windows 2012), brightness keys were handled by the kernel
just fine, whether in
Hi Russell,
Thanks a lot for writing the Armada DRM driver.
I have tested it on OLPC XO-1.75 (MMP2 aka Armada610) and OLPC XO-4 (MMP3
aka PXA2128). After a bit of fighting, I have it running. Could you share your
X driver, or your methodology for testing hardware cursors? I'd like to test
your
On mar., 2013-06-25 at 21:54 +0100, Matthew Garrett wrote:
On Tue, Jun 25, 2013 at 10:43:57PM +0200, Yves-Alexis Perez wrote:
On mar., 2013-06-25 at 17:08 +0100, Matthew Garrett wrote:
Right, the kernel has special-casing to hook the backlight keys up to
the ACPI backlight control. This
On mar., 2013-06-25 at 22:14 +0100, Matthew Garrett wrote:
On Tue, Jun 25, 2013 at 11:10:11PM +0200, Yves-Alexis Perez wrote:
On mar., 2013-06-25 at 21:54 +0100, Matthew Garrett wrote:
I agree, we should standardise the behaviour. And the only way we can
standardise the behaviour is to
On mar., 2013-06-25 at 22:33 +0100, Matthew Garrett wrote:
I was referring to “standardize the behaviour by leaving up to
userspace”. A lot of thinkpads (for example) (all the pre-windows 8
ones) have a perfectly working ACPI backlight interface.
And this patchset won't alter their
[Daniel Vetter]
Nah, silence just means that your patch fell through the crack while I've
travelled around a bit. Thanks for poking, it's merged now for 3.11 (with
cc: stable) to my drm-intel-next-queued branch. I've slightly bikeshedded
the patch though for formatting.
Right. Thank you.
From: Alex Deucher alexander.deuc...@amd.com
Has a different dpm controller than r600.
v2: rebase on gpu reset changes
v3: rebase on get_xclk changes
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon_asic.c | 96 --
1
From: Alex Deucher alexander.deuc...@amd.com
calculate the low and high watermarks based on the low and high
clocks for the current power state. The dynamic pm hw will select
the appropriate watermark based on the internal dpm state.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
From: Alex Deucher alexander.deuc...@amd.com
This adds the common dpm (dynamic power management)
infrastructure:
- dpm callbacks
- dpm init/fini/suspend/resume
- dpm power state selection
No device specific code is enabled yet.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
From: Alex Deucher alexander.deuc...@amd.com
Calculate the low and high watermarks based on the low and high
clocks for the current power state. The dynamic pm hw will select
the appropriate watermark based on the internal dpm state.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
From: Alex Deucher alexander.deuc...@amd.com
Calculate the low and high watermarks based on the low and high
clocks for the current power state. The dynamic pm hw will select
the appropriate watermark based on the internal dpm state.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
From: Alex Deucher alexander.deuc...@amd.com
Calculate the low and high watermarks based on the low and high
clocks for the current power state. The dynamic pm hw will select
the appropriate watermark based on the internal dpm state.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
From: Alex Deucher alexander.deuc...@amd.com
These are shared by rs780/rs880, rv6xx, and newer chips.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/Makefile |3 +-
drivers/gpu/drm/radeon/r600_dpm.c | 678 +
From: Alex Deucher alexander.deuc...@amd.com
This adds dpm support for rs780/rs880 asics. This includes:
- clockgating
- dynamic engine clock scaling
- dynamic voltage scaling
set radeon.dpm=1 to enable it.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
From: Alex Deucher alexander.deuc...@amd.com
dpm needs access to atombios data and command tables
for setup and calculation of a number of parameters.
v2: endian fix
v3: fix mc reg table bug
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon.h |
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/sumo_dpm.c |7 +++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/sumo_dpm.c
b/drivers/gpu/drm/radeon/sumo_dpm.c
index
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/sumo_dpm.c | 55 +
drivers/gpu/drm/radeon/sumod.h| 10 +++
2 files changed, 65 insertions(+), 0 deletions(-)
diff --git
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/rv770_dpm.c | 34 ++
drivers/gpu/drm/radeon/rv770_dpm.h |2 ++
2 files changed, 36 insertions(+), 0 deletions(-)
diff --git
From: Alex Deucher alexander.deuc...@amd.com
v2: fix typo noticed by Dan Carpenter
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/ppsmc.h |1 +
drivers/gpu/drm/radeon/trinity_dpm.c | 220 ++
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/btc_dpm.c | 62 ++
drivers/gpu/drm/radeon/btc_dpm.h |4 ++
drivers/gpu/drm/radeon/cypress_dpm.c | 10 +-
From: Alex Deucher alexander.deuc...@amd.com
When using UVD, the driver must switch to a special UVD power
state. In the CS ioctl, switch to the power state and schedule
work to change the power state back, when the work comes up,
check if uvd is still busy and if not, switch back to the user
From: Alex Deucher alexander.deuc...@amd.com
This data will be needed for dpm on newer asics.
v2: fix typo in rebase
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/r600_dpm.c | 179 +
drivers/gpu/drm/radeon/r600_dpm.h |
From: Alex Deucher alexander.deuc...@amd.com
Driver needs this information to validate power states.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon.h|1 +
drivers/gpu/drm/radeon/radeon_pm.c |7 +++
2 files changed, 8 insertions(+), 0
From: Alex Deucher alexander.deuc...@amd.com
Use a dedicated copy of the current power state since
we may have to adjust it on the fly.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/radeon.h|1 +
drivers/gpu/drm/radeon/radeon_pm.c | 13 -
From: Alex Deucher alexander.deuc...@amd.com
Use a dedicated copy of the current power state since
we may have to adjust it on the fly.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/trinity_dpm.c |5 +
drivers/gpu/drm/radeon/trinity_dpm.h |1 +
2
From: Alex Deucher alexander.deuc...@amd.com
Use a dedicated copy of the current power state since
we may have to adjust it on the fly.
v2: fix up redundant state sets
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/btc_dpm.c | 340
From: Alex Deucher alexander.deuc...@amd.com
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/ni_dpm.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/ni_dpm.c b/drivers/gpu/drm/radeon/ni_dpm.c
index 635bf04..44016f2
From: Alex Deucher alexander.deuc...@amd.com
Needed to properly handle dynamic state adjustment.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/rs780_dpm.c | 52 ++--
1 files changed, 32 insertions(+), 20 deletions(-)
diff
From: Alex Deucher alexander.deuc...@amd.com
Needed to properly handle dynamic state adjustment.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/rv6xx_dpm.c | 115 +--
1 files changed, 69 insertions(+), 46 deletions(-)
diff
From: Alex Deucher alexander.deuc...@amd.com
Needed to properly handle dynamic state adjustment.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/btc_dpm.c | 13 ---
drivers/gpu/drm/radeon/cypress_dpm.c | 62 +
From: Alex Deucher alexander.deuc...@amd.com
Needed to properly handle dynamic state adjustment.
Signed-off-by: Alex Deucher alexander.deuc...@amd.com
---
drivers/gpu/drm/radeon/btc_dpm.c |6 ++-
drivers/gpu/drm/radeon/cypress_dpm.c |6 ++-
drivers/gpu/drm/radeon/rv740_dpm.c |
1 - 100 of 334 matches
Mail list logo