Op 26-06-13 04:14, Seung-Woo Kim schreef:
> From: YoungJun Cho
>
> 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 mutex lock or
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
> >
> > 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 miss
On Wed, Jun 26, 2013 at 10:42:39AM +0900, Seung-Woo Kim wrote:
> From: YoungJun Cho
>
> 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 idr_alloc())
>
On Jun 26, 2013 5:56 PM, "Chris Wilson" wrote:
>
> On Wed, Jun 26, 2013 at 10:42:39AM +0900, Seung-Woo Kim wrote:
> > From: YoungJun Cho
> >
> > 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 regr
From: Alex Deucher
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.
Highlights of this series:
- DPM s
From: Alex Deucher
- 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 version twice.
From the examples
From: Alex Deucher
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 halt and generate
an interru
From: Alex Deucher
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:
https://bugs.freedesktop.org/show_bug.cgi?id=65377
Signed-off-by: Alex Deu
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/cik.c | 197 +
drivers/gpu/drm/radeon/cikd.h | 80 ++
From: Alex Deucher
register BAR is now at PCI BAR 5.
Signed-off-by: Alex Deucher
---
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
b/drivers/gpu/drm/radeon/radeon_device.c
index c2
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/Makef
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/cik.c | 15 +--
drivers/gpu/drm/radeon/cikd.h | 11 +++
2 files
From: Alex Deucher
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 cards only)
6. mec - compute
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b
From: Alex Deucher
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 packet count
v7: use old s
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 a/drivers/gpu/drm/radeon/radeon_device.c
b/drivers/gpu/drm/radeon/radeon_device.
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 b/drivers/gpu/drm/radeon/cik.c
index 72c7e83..b70f017 10064
From: Alex Deucher
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 copy_dma()
v5: drop WIP c
From: Alex Deucher
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 fixes.
V3: integrate vram of
From: Alex Deucher
v2: update to latest driver changes
v3: properly tear down vm on suspend
v4: fix up irq init ordering
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/cik.c | 340 ++
1 files changed, 340 insertions(+), 0 deletions(-)
diff --gi
From: Alex Deucher
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 for release
Signed-off-by:
From: Alex Deucher
Load the GDDR5 ucode and train the links.
v2: update ucode
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/cik.c | 116 +
drivers/gpu/drm/radeon/cikd.h | 16 ++
2 files changed, 132 insertions(+), 0 deletions(-)
diff -
From: Alex Deucher
No support for reading the temperature yet.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/radeon.h |1 +
drivers/gpu/drm/radeon/radeon_atombios.c |6 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon
From: Alex Deucher
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 set CP_RB0_BASE_HI
v7: reba
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/cik.c| 840 +++
From: Alex Deucher
v2: add documenation
v3: update the latest ib changes
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/cik.c | 114 ++
1 files changed, 114 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/d
From: Alex Deucher
The register bits changed on DCE8 compared to previous
families.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/atombios_encoders.c |8 +++-
drivers/gpu/drm/radeon/cik_reg.h |3 +++
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/cik
From: Alex Deucher
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 using an IB
Signed-off-b
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/cik.c | 142 +
drivers/gpu/drm/radeon
From: Alex Deucher
v2: make PPLL0 is available for non-DP on CI
v3: rebase changes, update documentation
v4: fix kabini
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/atombios_crtc.c | 48 +++-
1 files changed, 47 insertions(+), 1 deletions(-)
diff --git
From: Alex Deucher
v2: further updates
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/atombios.h | 58 ++--
1 files changed, 54 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/radeon/atombios.h
b/drivers/gpu/drm/radeon/atombios.h
index f19
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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
index 24eee7c..c7ad4b9 100644
--- a/drivers/gpu/dr
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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
b/drivers/gpu/drm/radeon/radeon_atombios.c
index 88a55af..3236755 10064
From: Alex Deucher
v2: further updates
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/ObjectID.h | 40 +
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/ObjectID.h
b/drivers/gpu/drm/radeon/ObjectID.h
index ca
From: Alex Deucher
v2: rebase changes, fix a couple missed cases
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/radeon_kms.c | 33 ++---
1 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c
b/drivers/gpu/drm/
From: Alex Deucher
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/cik.c | 537 +
drivers/gpu/drm/radeon/cikd.h | 11 +
2 files changed, 548 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c
From: Alex Deucher
Used for GPU clock counter snapshots.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/cik.c | 21 +
drivers/gpu/drm/radeon/cikd.h|4 +++-
drivers/gpu/drm/radeon/radeon_asic.h |5 +
3 files changed, 29 insertions(+), 1
From: Alex Deucher
Update to the newer programming model.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/cik.c | 387 +
drivers/gpu/drm/radeon/cikd.h | 12 ++
2 files changed, 253 insertions(+), 146 deletions(-)
diff --git a/drivers/gpu/drm/
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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
b/drivers/gpu/drm/radeon/radeon_atombios.c
index cb3273b..88a55af 100644
--- a
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/cik_reg.h| 65
From: Alex Deucher
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/evergreen_reg.h |4
drivers/gpu/drm/radeon/radeon.h| 17 +
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/evergreen_reg.h
b/drivers/gpu/drm/radeo
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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
index 4ba5184..586c452 100644
--- a/drivers/gpu/dr
From: Alex Deucher
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/atombios_encoders.c | 27 ---
drivers/gpu/drm/radeon/radeon_display.c|5 +++--
2 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/
From: Alex Deucher
SI uses v5 of the command table and uses a different table
for memory PLLs.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/radeon_atombios.c |6 +-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c
b/driv
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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
b/drivers/gpu/drm/radeon/atombios_encoders.c
index 1bf13b3..092275d 100644
-
From: Alex Deucher
Some new fields and DESKTOP_HEIGHT register moved.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/atombios_crtc.c | 34 --
drivers/gpu/drm/radeon/cik_reg.h | 79
2 files changed, 108 insertions(+), 5 deletions(-)
From: Christian König
v2: agd5f: fix clock dividers setup for bonaire
v3: agd5f: rebase
Signed-off-by: Christian König
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/cik.c | 111 ++
drivers/gpu/drm/radeon/cikd.h| 28 +
drivers
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/cik.c | 27 +--
1 files changed, 25 insertions(+), 2 deletio
From: Alex Deucher
Only Bonaire has PPLL0.
Signed-off-by: Alex Deucher
---
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
index 590e4eb..24eee7c 10
From: Alex Deucher
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 Deucher
---
drivers/gpu/drm/ra
From: Alex Deucher
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 pipe = 32 queues
-KV
From: Alex Deucher
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/cik.c | 21 +
drivers/gpu/drm/radeon/cikd.h|3 +++
drivers/gpu/drm/radeon/radeon_asic.c |6 +-
drivers/gpu/drm/radeon/radeon_asic.h |2 ++
4 files changed, 31 insertio
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/cik.c
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/cik.c |4 ++--
1
From: Alex Deucher
CIK uses a slightly different variant of the table structs
and params.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/radeon_atombios.c | 20 +++-
drivers/gpu/drm/radeon/radeon_mode.h |3 +++
2 files changed, 22 insertions(+), 1 deletions(-)
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/cik.c | 53 +
1 files changed, 47 insertions
From: Alex Deucher
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/cik.c | 121 --
1 files changed, 116 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c
index 596bfed..5923ef7 100644
--- a/dri
From: Alex Deucher
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/cik.c | 438 ++
1 files changed, 438 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c
index 5923ef7..e899c44 100644
--- a/dri
From: Alex Deucher
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 compute changes
v11: cleanu
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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
--- a/include/drm/drm_pciids.h
+++ b/include/drm/drm_pcii
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 +++---
4 files changed, 14 insertions(+), 8 delet
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/radeon
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 100644
--- a/include/drm/drm_pciids.h
+++ b/include/drm
From: Alex Deucher
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/evergreen_reg.h |3 +++
drivers/gpu/drm/radeon/radeon.h| 17 +
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/evergreen_reg.h
b/drivers/gpu/drm/radeon
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 | 26 --
4 files change
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 +
4 files changed, 13 insertions(+), 0 deletions(
From: Alex Deucher
Avoids confusion and duplication.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/evergreen.c|4 +--
drivers/gpu/drm/radeon/ni.c | 13 +
drivers/gpu/drm/radeon/r600.c | 25 +
drivers/gpu/drm/radeon/radeon_ucode.h |
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, wh
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 wo
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 contro
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
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
Has a different dpm controller than r600.
v2: rebase on gpu reset changes
v3: rebase on get_xclk changes
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/radeon_asic.c | 96 --
1 files changed, 91 insertions(+), 5 deletions(-)
diff -
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/rs690.c | 291 +++
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/radeon.h | 100 +++-
driver
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/rv515.c | 224 +++
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/evergreen.c | 89 +++
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/si.c | 96 ++
From: Alex Deucher
These are shared by rs780/rs880, rv6xx, and newer chips.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/Makefile |3 +-
drivers/gpu/drm/radeon/r600_dpm.c | 678 +
drivers/gpu/drm/radeon/r600_dpm.h | 210
driver
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/Makefile |2 +-
drivers/gpu/drm/radeon/radeon_a
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/radeon.h | 33 ++
drivers/gpu/drm/radeon/radeon_atombios.c |
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 67c85c7..f103880 100644
--- a/drivers/gpu/drm/radeon/s
From: Alex Deucher
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/sumo_dpm.c | 55 +
drivers/gpu/drm/radeon/sumod.h| 10 +++
2 files changed, 65 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/sumo_dpm.c
b/drivers/gpu/d
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 a/drivers/gpu/drm/radeon/rv770_dpm.c
b/drivers/gpu/drm/ra
From: Alex Deucher
v2: fix typo noticed by Dan Carpenter
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/ppsmc.h |1 +
drivers/gpu/drm/radeon/trinity_dpm.c | 220 ++
drivers/gpu/drm/radeon/trinity_dpm.h | 18 +++
drivers/gpu/drm/radeon/trinit
From: Alex Deucher
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/btc_dpm.c | 62 ++
drivers/gpu/drm/radeon/btc_dpm.h |4 ++
drivers/gpu/drm/radeon/cypress_dpm.c | 10 +-
drivers/gpu/drm/radeon/cypress_dpm.h | 10 +
drivers/gpu/d
From: Alex Deucher
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
state, otherwise, reschedule
From: Alex Deucher
This data will be needed for dpm on newer asics.
v2: fix typo in rebase
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/r600_dpm.c | 179 +
drivers/gpu/drm/radeon/r600_dpm.h |3 +
drivers/gpu/drm/radeon/radeon.h | 70 +
From: Alex Deucher
Driver needs this information to validate power states.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/radeon.h|1 +
drivers/gpu/drm/radeon/radeon_pm.c |7 +++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeo
From: Alex Deucher
Use a dedicated copy of the current power state since
we may have to adjust it on the fly.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/radeon.h|1 +
drivers/gpu/drm/radeon/radeon_pm.c | 13 -
drivers/gpu/drm/radeon/sumo_dpm.c |5 +
d
From: Alex Deucher
Use a dedicated copy of the current power state since
we may have to adjust it on the fly.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/trinity_dpm.c |5 +
drivers/gpu/drm/radeon/trinity_dpm.h |1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff
From: Alex Deucher
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
---
drivers/gpu/drm/radeon/btc_dpm.c | 340 ++
drivers/gpu/drm/radeon/btc_dpm.h |
From: Alex Deucher
Signed-off-by: Alex Deucher
---
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 100644
--- a/drivers/gpu/drm/radeon/ni_dpm.c
+++ b
From: Alex Deucher
Needed to properly handle dynamic state adjustment.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/rs780_dpm.c | 52 ++--
1 files changed, 32 insertions(+), 20 deletions(-)
diff --git a/drivers/gpu/drm/radeon/rs780_dpm.c
b/drivers/
From: Alex Deucher
Needed to properly handle dynamic state adjustment.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/rv6xx_dpm.c | 115 +--
1 files changed, 69 insertions(+), 46 deletions(-)
diff --git a/drivers/gpu/drm/radeon/rv6xx_dpm.c
b/drivers/g
From: Alex Deucher
Needed to properly handle dynamic state adjustment.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/btc_dpm.c | 13 ---
drivers/gpu/drm/radeon/cypress_dpm.c | 62 +
drivers/gpu/drm/radeon/cypress_dpm.h | 20 ---
3
From: Alex Deucher
Needed to properly handle dynamic state adjustment.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/radeon/btc_dpm.c |6 ++-
drivers/gpu/drm/radeon/cypress_dpm.c |6 ++-
drivers/gpu/drm/radeon/rv740_dpm.c |1 -
drivers/gpu/drm/radeon/rv770_dpm.c | 77 ++
1 - 100 of 335 matches
Mail list logo