About buffer sychronization mechanism and cache operation

2013-08-12 Thread Inki Dae
Hello all, The purpose of this email is to get other opinions and advices to buffer synchronization mechanism, and coupling cache operation feature with the buffer synchronization mechanism. First of all, I am not a native English speaker so I'm not sure that I can convey my intention to you.

Re: [PATCH] drm: drm_drv: Only call drm_agp_clear() in __OS_HAS_AGP case

2013-08-12 Thread David Herrmann
Hi On Fri, Aug 9, 2013 at 12:00 AM, Fabio Estevam feste...@gmail.com wrote: From: Fabio Estevam fabio.este...@freescale.com Commit 28ec711 (drm/agp: move AGP cleanup paths to drm_agpsupport.c) causes the following link error on ARM (imx_v6_v7_defconfig): drivers/built-in.o: In function

[PATCH] drm/nouveau: fix ltcg allocating memory as free

2013-08-12 Thread Maarten Lankhorst
Allocating type=0 marks the memory as free. This allows the ltcg memory to be allocated twice. Add a BUG_ON in core/mm.c to prevent this ever happening again. Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com --- diff --git a/drivers/gpu/drm/nouveau/core/core/mm.c

[PATCH] drm/nouveau: fix ltcg memory initialization after suspend

2013-08-12 Thread Maarten Lankhorst
Some registers were not initialized in init, this causes them to be uninitialized after suspend. Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com --- diff --git a/drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c b/drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c index

[PATCH] drm/nouveau: fix vblank deadlock

2013-08-12 Thread Maarten Lankhorst
This fixes a deadlock inversion when vblank is enabled/disabled by drm. dev-vblank_time_lock is always taken when the vblank state is toggled, which caused a deadlock when event-lock was also taken during event_get/put. Solve the race by requiring that lock to change enable/disable state, and

[RFC PATCH] drm/nv50-nvd0: implement precise vblank timing support on nv50/nvc0.

2013-08-12 Thread Maarten Lankhorst
Not as thoroughly tested as I would like. Newer nvd0 and kepler are unsupported, as I don't know the registers yet. Information of the scanout position is based on Lucas Stach's original patch, with a teak to read vline twice, to prevent a race of hline with vline. Cc: Lucas Stach

Re: [PATCH] drm/radeon: fix UVD message buffer validation

2013-08-12 Thread Alex Deucher
On Sun, Aug 11, 2013 at 3:27 PM, Christian König deathsim...@vodafone.de wrote: From: Christian König christian.koe...@amd.com When the message buffer is currently moving block until it is idle again. Signed-off-by: Christian König christian.koe...@amd.com Cc: sta...@vger.kernel.org Applied

[PATCH] drm/edid: add quirk for Medion MD30217PG

2013-08-12 Thread Alex Deucher
This LCD monitor (1280x1024 native) has a completely bogus detailed timing (640x350@70hz). User reports that 1280x1024@60 has waves so prefer 1280x1024@75. Manufacturer: MED Model: 7b8 Serial#: 99188 Year: 2005 Week: 5 EDID Version: 1.3 Analog Display Input, Input Voltage Level: 0.700/0.700

Re: [RFC PATCH] fence: dma-buf cross-device synchronization (v12)

2013-08-12 Thread Rob Clark
On Mon, Jul 29, 2013 at 10:05 AM, Maarten Lankhorst maarten.lankho...@canonical.com wrote: A fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call page_flip ioctl to

Re: [Nouveau] [PATCH] drm/nouveau: fix ltcg memory initialization after suspend

2013-08-12 Thread Ilia Mirkin
On Mon, Aug 12, 2013 at 6:43 AM, Maarten Lankhorst maarten.lankho...@canonical.com wrote: Some registers were not initialized in init, this causes them to be uninitialized after suspend. Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com --- diff --git

[PATCH 00/53] Initial 3.12 radeon patches

2013-08-12 Thread Alex Deucher
This is the initial set of patches for 3.12 for radeon. The big changes here are adding ASPM and DPM support to CIK asics. There are also some cleanups related to removing bo copy support using the 3D engine in favor of the sDMA engines or CP DMA. For easier review the patches are also available

[PATCH 01/53] drm/radeon: switch r6xx+ to using CP DMA for the blit copy callback

2013-08-12 Thread Alex Deucher
CP DMA is lighter weight than using the 3D engine. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/radeon_asic.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c

[PATCH 03/53] drm/radeon: add UVD-DPM helper function (v5)

2013-08-12 Thread Alex Deucher
Add a helper function for counting the number of open stream handles. v2: fix copy-pasta in comments and whitespace error v3: make function static since it's only used in radeon_uvd.c at the moment v4: make non-static again for future changes v5: make static again for new rework of dpm uvd

[PATCH 04/53] drm/radeon/dpm: use multiple UVD power states (v3)

2013-08-12 Thread Alex Deucher
Use the UVD handle information to determine which which power states to select when using UVD. For example, decoding a single SD stream requires much lower clocks than multiple HD streams. v2: switch to a cleaner dpm/uvd interface v3: change the uvd power state while streams are active if need

[PATCH 05/53] drm/radeon/dpm: rework thermal state handling

2013-08-12 Thread Alex Deucher
1. Handle the the thermal state directly in the work handler. Remove the state selection function since nothing else uses it now. 2. On some asics there is no thermal state, so we just use a regular state and force the low performance state. Signed-off-by: Alex Deucher alexander.deuc...@amd.com

[PATCH 06/53] drm/radeon: default to 1024M gart size on rv770+

2013-08-12 Thread Alex Deucher
Newer asics have a lot of vram so it's less of an issue to waste a little more space for the gart page table. This gives us some additional gart space before having to migrate to non-gart system ram for games, etc. where we use up most of vram. Signed-off-by: Alex Deucher

[PATCH 07/53] drm/radeon/dpm: use performance state if no UVD state

2013-08-12 Thread Alex Deucher
Newer asics don't have specific UVD states. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/radeon_pm.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c

[PATCH 09/53] drm/radeon/cik: implement some more atom helpers for DPM

2013-08-12 Thread Alex Deucher
Required for DPM on CIK. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/radeon_atombios.c | 115 +++ 1 file changed, 115 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c

[PATCH 08/53] drm/radeon/kms: fix up dce8 display watermark calc for dpm

2013-08-12 Thread 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 alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik.c | 96

[PATCH 10/53] drm/radeon: switch CIK to use radeon_ucode.h

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik.c | 17 + drivers/gpu/drm/radeon/radeon_ucode.h | 14 ++ 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c

[PATCH 11/53] drm/radeon/cik: add support for pcie gen1/2/3 switching

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik.c | 161 ++ drivers/gpu/drm/radeon/cikd.h | 57 +++ 2 files changed, 218 insertions(+) diff --git a/drivers/gpu/drm/radeon/cik.c

[PATCH 12/53] drm/radeon: add support for ASPM on CIK asics

2013-08-12 Thread Alex Deucher
Enables PCIE ASPM (Active State Power Management) on CIK asics. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik.c | 151 ++ drivers/gpu/drm/radeon/cikd.h | 72 +++- 2 files changed, 222 insertions(+),

[PATCH 13/53] drm/radeon/cik: restructure rlc setup

2013-08-12 Thread Alex Deucher
Restructure rlc setup to handle clock and power gating. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik.c | 84 +++ drivers/gpu/drm/radeon/cikd.h | 1 + drivers/gpu/drm/radeon/si.c | 2 +- 3 files changed, 56

[PATCH 14/53] drm/radeon: clean up sumo_rlc_init() for code sharing

2013-08-12 Thread Alex Deucher
This will eventually be shared with newer asics to reduce code duplication. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/evergreen.c | 221 +++-- 1 file changed, 113 insertions(+), 108 deletions(-) diff --git

[PATCH 15/53] drm/radeon: convert SI,CIK to use sumo_rlc functions

2013-08-12 Thread Alex Deucher
and remove duplicate si_rlc functions. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik.c | 10 +- drivers/gpu/drm/radeon/clearstate_cayman.h| 2 +- drivers/gpu/drm/radeon/clearstate_evergreen.h | 2 +-

[PATCH 17/53] drm/radeon: add indirect accessors for dift registers on CIK

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik_reg.h | 3 +++ drivers/gpu/drm/radeon/radeon.h | 18 ++ 2 files changed, 21 insertions(+) diff --git a/drivers/gpu/drm/radeon/cik_reg.h b/drivers/gpu/drm/radeon/cik_reg.h index d71e46d..ca1bb61

[PATCH 18/53] drm/radeon/sumo add helper to go from vid7 to vid2

2013-08-12 Thread Alex Deucher
Needed for DPM on KB/KV. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/sumo_dpm.c | 14 ++ drivers/gpu/drm/radeon/sumo_dpm.h | 3 +++ 2 files changed, 17 insertions(+) diff --git a/drivers/gpu/drm/radeon/sumo_dpm.c

[PATCH 19/53] drm/radeon: switch to pptable.h

2013-08-12 Thread Alex Deucher
Internally we switched to using a separate header for atombios pplib definitions. Switch over the open source driver. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/atombios.h | 615 +- drivers/gpu/drm/radeon/pptable.h | 682

[PATCH 21/53] drm/radeon/cik: add rlc helpers for DPM

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik.c | 29 + drivers/gpu/drm/radeon/cikd.h | 9 + 2 files changed, 38 insertions(+) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index

[PATCH 22/53] drm/radeon: add support for thermal controller on KB/KV

2013-08-12 Thread Alex Deucher
No support for reading temperature back yet. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/radeon.h | 1 + drivers/gpu/drm/radeon/radeon_atombios.c | 5 + 2 files changed, 6 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon.h

[PATCH 20/53] drm/radeon: add structs to store uvd clock voltage deps

2013-08-12 Thread Alex Deucher
Used for uvd power management. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/radeon.h | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 37b0fc4..00d154d 100644 ---

[PATCH 24/53] drm/radeon: add KB/KV to r600_is_internal_thermal_sensor

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index e246e3a..d54a838 100644 --- a/drivers/gpu/drm/radeon/r600_dpm.c +++

[PATCH 23/53] drm/radeon: add CI to r600_is_internal_thermal_sensor()

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index e5c860f..e246e3a 100644 --- a/drivers/gpu/drm/radeon/r600_dpm.c +++

[PATCH 25/53] drm/radeon: add get_temperature() callbacks for CIK

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik.c | 37 drivers/gpu/drm/radeon/cikd.h| 8 drivers/gpu/drm/radeon/radeon_asic.c | 2 ++ drivers/gpu/drm/radeon/radeon_asic.h | 2 ++

[PATCH 26/53] drm/radeon: adjust si_dpm function for code sharing

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/si_dpm.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index 88699e3..0f8be48 100644 ---

[PATCH 27/53] drm/radeon/dpm: update cac leakage table parsing for CI

2013-08-12 Thread Alex Deucher
Uses a different table format if the board supports EVV. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 17 + drivers/gpu/drm/radeon/radeon.h | 15 +++ 2 files changed, 24 insertions(+), 8 deletions(-) diff --git

[PATCH 31/53] drm/radeon: add clock voltage dep tables for acp, samu

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/radeon.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index d21fa20..661e7c1 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++

[PATCH 33/53] drm/radeon: parse the uvd clock voltage deps table

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 40 +++ 1 file changed, 40 insertions(+) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index b49b0f0..c103d3f 100644 ---

[PATCH 34/53] drm/radeon/dpm: clean up the extended table error pathes

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 40 ++- 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index c103d3f..98db6ea

[PATCH 32/53] drm/radeon: parse the vce clock voltage deps table

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 41 ++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index 9dda735..b49b0f0

[PATCH 35/53] drm/radeon: parse the samu clock voltage deps table

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index 98db6ea..314886a 100644 ---

[PATCH 36/53] drm/radeon: parse the acp clock voltage deps table

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index 314886a..bf851ac 100644 ---

[PATCH 37/53] drm/radeon: add r600_get_pcie_lane_support helper

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 23 +++ drivers/gpu/drm/radeon/r600_dpm.h | 4 2 files changed, 27 insertions(+) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index

[PATCH 38/53] drm/radeon/dpm: add vce clocks to radeon_ps

2013-08-12 Thread Alex Deucher
Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/radeon.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 661e7c1..13e402c 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++

[PATCH 39/53] drm/radeon/dpm: add a helper to encode pcie lane setting

2013-08-12 Thread Alex Deucher
convert from number of lanes to register setting. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 10 ++ drivers/gpu/drm/radeon/r600_dpm.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c

[PATCH 40/53] drm/radeon/dpm: add helper to fetch the vrefresh of the current mode

2013-08-12 Thread Alex Deucher
Needed for DPM on CI. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 18 ++ drivers/gpu/drm/radeon/r600_dpm.h | 1 + 2 files changed, 19 insertions(+) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c

[PATCH 43/53] drm/radeon/dpm: add debugfs support for CI

2013-08-12 Thread Alex Deucher
This allows you to look at the current DPM state via debugfs. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/ci_dpm.c | 11 +++ drivers/gpu/drm/radeon/cikd.h| 12 drivers/gpu/drm/radeon/radeon_asic.c | 1 +

[PATCH 44/53] drm/radeon/dpm: implement force performance level for CI

2013-08-12 Thread Alex Deucher
Allows you to force the selected performance level via sysfs. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/ci_dpm.c | 153 +++ drivers/gpu/drm/radeon/ppsmc.h | 1 + drivers/gpu/drm/radeon/radeon_asic.c | 1 +

[PATCH 28/53] drm/radeon/dpm: add support for parsing the atom powertune table

2013-08-12 Thread Alex Deucher
Needed for DPM on CI. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 44 +++ drivers/gpu/drm/radeon/radeon.h | 12 +++ 2 files changed, 56 insertions(+) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c

[PATCH 29/53] drm/radeon/dpm: grab mvdd_dependency_on_mclk info from vbios

2013-08-12 Thread Alex Deucher
Required for dpm on CI. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/r600_dpm.c | 19 +++ drivers/gpu/drm/radeon/radeon.h | 1 + 2 files changed, 20 insertions(+) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c

[PATCH 30/53] drm/radeon: add structs to store vce clock voltage deps

2013-08-12 Thread Alex Deucher
Used for vce power management. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/radeon.h | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index e65304a..d21fa20 100644 ---

[PATCH 45/53] drm/radeon/dpm: implement vblank_too_short callback for CI

2013-08-12 Thread Alex Deucher
Check if we can switch the mclk during the vblank time otherwise we may get artifacts on the screen when the mclk changes. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/ci_dpm.c | 16 +++- drivers/gpu/drm/radeon/radeon_asic.c | 1 +

[PATCH 46/53] drm/radeon/dpm: add debugfs support for KB/KV

2013-08-12 Thread Alex Deucher
This allows you to look at the current DPM state via debugfs. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cikd.h| 4 drivers/gpu/drm/radeon/kv_dpm.c | 23 +++ drivers/gpu/drm/radeon/radeon_asic.c | 1 +

[PATCH 47/53] drm/radeon/dpm: implement force performance level for KB/KV

2013-08-12 Thread Alex Deucher
Allows you to force the selected performance level via sysfs. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/kv_dpm.c | 43 drivers/gpu/drm/radeon/radeon_asic.c | 1 + drivers/gpu/drm/radeon/radeon_asic.h | 2 ++ 3

[PATCH 48/53] drm/radeon/dpm: add new callback for powergating UVD (v3)

2013-08-12 Thread Alex Deucher
Starting on CIK, multi-media blocks like UVD no longer have special power state. Rather they have their own DPM implementation which adjusts their clocks dynamically when active. When they are not active, the blocks are powergated to save power. v2: add missing pm locks v3: rebase on uvd state

[PATCH 49/53] drm/radeon: restructure UVD code to handle UVD PG (v2)

2013-08-12 Thread Alex Deucher
When we PG (powergate) UVD, we need to re-initialize it before we can use it again. v2: rebase on UVD stop fixes Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik.c | 14 +++ drivers/gpu/drm/radeon/evergreen.c | 2 +- drivers/gpu/drm/radeon/ni.c

[PATCH 50/53] drm/radeon/dpm: implement UVD powergating for KB/KV

2013-08-12 Thread Alex Deucher
Powergate the UVD block when not in use to save power. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/cik.c | 4 ++-- drivers/gpu/drm/radeon/kv_dpm.c | 22 +++--- drivers/gpu/drm/radeon/radeon_asic.c | 1 +

[PATCH 51/53] drm/radeon/dpm: implement UVD powergating for CI

2013-08-12 Thread Alex Deucher
Disable the UVD block when not in use to save power. The block is not actually powergated on CI, but we switch between UVD DPM (where the uvd clocks are adjusted on demand) and clocks off. Signed-off-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/radeon/ci_dpm.c | 7 +--

[PATCH 52/53] drm/radeon/dpm: add reclocking quirk for ASUS K70AF

2013-08-12 Thread Alex Deucher
The LCD has a relatively short vblank time (216us), but the card is able to reclock memory fine in that time. Signed-off-by: Alex Deucher alexander.deuc...@amd.com Reported-by: normalr...@gmail.com --- drivers/gpu/drm/radeon/rv770_dpm.c | 10 +- 1 file changed, 9 insertions(+), 1

[PATCH] drm/radeon: add RADEON_TILING_R600_SCANOUT to radeon_drm.h

2013-08-12 Thread Marek Olšák
Signed-off-by: Marek Olšák marek.ol...@amd.com --- include/uapi/drm/radeon_drm.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h index 321d4ac..0b6740a 100644 --- a/include/uapi/drm/radeon_drm.h +++

[PATCH] r600g, radeonsi: set/get the scanout flag using the set/get_tiling ioctls

2013-08-12 Thread Marek Olšák
--- src/gallium/drivers/r300/r300_state.c | 2 +- src/gallium/drivers/r300/r300_texture.c | 4 ++-- src/gallium/drivers/r600/r600_texture.c | 13 - src/gallium/drivers/radeonsi/r600_texture.c | 13 - src/gallium/winsys/radeon/drm/radeon_drm_bo.c |

[PATCH] radeon/kms: set/get the scanout flag using the set/get_tiling ioctls

2013-08-12 Thread Marek Olšák
Basically just pass RADEON_TILING_R600_SCANOUT everywhere. Hopefully I didn't miss anything. This is only compile-tested. Signed-off-by: Marek Olšák marek.ol...@amd.com --- src/drmmode_display.c | 44 +--- src/radeon_bo_helper.c | 11 +--

[PATCH] radeon: add RADEON_TILING_R600_SCANOUT to radeon_drm.h

2013-08-12 Thread Marek Olšák
--- include/drm/radeon_drm.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/drm/radeon_drm.h b/include/drm/radeon_drm.h index 86cef15..1e8713c 100644 --- a/include/drm/radeon_drm.h +++ b/include/drm/radeon_drm.h @@ -806,8 +806,9 @@ struct drm_radeon_gem_create {

[Bug 67723] Resume from s2ram doesn't work with radeon.dpm=1

2013-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67723 Bastian Triller bastian.tril...@gmail.com changed: What|Removed |Added Summary|Resume from s2ram fails |Resume from

[Bug 67723] Resume from s2ram doesn't work with radeon.dpm=1

2013-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67723 --- Comment #5 from Alex Deucher ag...@yahoo.com --- You said in comment 3 that you also had the same failure with dpm disabled, but you just changed the summary to indicate that it happens with dpm enabled. Which is correct? Is it only an

[Bug 67723] Resume from s2ram doesn't work with radeon.dpm=1

2013-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67723 Bastian Triller bastian.tril...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED

[Bug 50091] [BISECTED]GeForce 6150SE: system hangs on X-server start with garbled screen

2013-08-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=50091 Tom Wijsman tom...@gentoo.org changed: What|Removed |Added CC||ker...@gentoo.org ---

[Bug 66425] failed testing IB on ring 5 when suspending to disk

2013-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66425 wuruxu wrx...@gmail.com changed: What|Removed |Added Hardware|x86-64 (AMD64) |x86 (IA32)

[Bug 66425] failed testing IB on ring 5 when suspending to disk

2013-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66425 --- Comment #27 from wuruxu wrx...@gmail.com --- Hi I found that after enable radeon.dpm, this message [drm:radeon_ib_ring_tests] *ERROR* radeon: failed testing IB on ring 5 (-35). always show after suspend system to RAM. wait a minute, the X

[Bug 66425] failed testing IB on ring 5 when suspending to disk

2013-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66425 --- Comment #28 from Alex Deucher ag...@yahoo.com --- (In reply to comment #27) Hi I found that after enable radeon.dpm, this message [drm:radeon_ib_ring_tests] *ERROR* radeon: failed testing IB on ring 5 (-35). always show after suspend

[Bug 66425] failed testing IB on ring 5 when suspending to disk

2013-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66425 Alex Deucher ag...@yahoo.com changed: What|Removed |Added Status|REOPENED|RESOLVED

[Bug 66425] failed testing IB on ring 5 when suspending to disk

2013-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66425 --- Comment #29 from Alex Deucher ag...@yahoo.com --- (In reply to comment #28) If you are having problems with dpm enabled, please open a new bug as it may be a different issue. Also check to see if you can reproduce the problem with dpm

[Bug 66425] failed testing IB on ring 5 when suspending to disk

2013-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66425 --- Comment #30 from wuruxu wrx...@gmail.com --- Created attachment 83989 -- https://bugs.freedesktop.org/attachment.cgi?id=83989action=edit dmesg 3.11rc5 [ 129.095684] [drm:r600_uvd_ib_test] *ERROR* radeon: fence wait failed (-35). [

RE: [PATCH] drm/exynos: Add missing includes

2013-08-12 Thread Inki Dae
-Original Message- From: linux-samsung-soc-ow...@vger.kernel.org [mailto:linux-samsung-soc- ow...@vger.kernel.org] On Behalf Of Mark Brown Sent: Tuesday, August 13, 2013 8:47 AM To: David Airlie Cc: linux-samsung-...@vger.kernel.org; dri-devel@lists.freedesktop.org; Mark Brown

EDID modes unavailable when no connector/crtc available at boot

2013-08-12 Thread Tony Prisk
I am working on the HDMI driver for the i.MX6 as part of the larger DRM driver written by Sascha Hauer and need a little advice. I seem to be missing one important part of the subsystem that I haven't been able to resolve. In my testing, powering on the system with only a HDMI cable connected

Re: EDID modes unavailable when no connector/crtc available at boot

2013-08-12 Thread Tony Prisk
On 11/08/13 20:42, Dave Airlie wrote: On Sun, Aug 11, 2013 at 2:41 PM, Tony Prisk li...@prisktech.co.nz wrote: I am working on the HDMI driver for the i.MX6 as part of the larger DRM driver written by Sascha Hauer and need a little advice. I seem to be missing one important part of the

RE: [PATCHv2 1/5] drm/exynos: add device tree support for rotator

2013-08-12 Thread Chanho Park
Hi Tomasz, -Original Message- From: Tomasz Figa [mailto:t.f...@samsung.com] Sent: Friday, August 09, 2013 9:51 PM To: Chanho Park Cc: inki@samsung.com; kgene@samsung.com; dri- de...@lists.freedesktop.org; kyungmin.p...@samsung.com; mark.rutl...@arm.com;

RE: [PATCHv2 2/5] ARM: dts: Add rotator node for exynos4210

2013-08-12 Thread Chanho Park
Hi Tomasz, -Original Message- From: Tomasz Figa [mailto:t.f...@samsung.com] Sent: Friday, August 09, 2013 9:57 PM To: Chanho Park Cc: inki@samsung.com; kgene@samsung.com; dri- de...@lists.freedesktop.org; kyungmin.p...@samsung.com; mark.rutl...@arm.com;

RE: [PATCHv2 5/5] ARM: dts: Add dt binding documentation for exynos rotator

2013-08-12 Thread Chanho Park
Hi Tomasz, -Original Message- From: Tomasz Figa [mailto:t.f...@samsung.com] Sent: Friday, August 09, 2013 10:16 PM To: Chanho Park Cc: inki@samsung.com; kgene@samsung.com; dri- de...@lists.freedesktop.org; kyungmin.p...@samsung.com; mark.rutl...@arm.com;

[Nouveau] [PATCH] drm/nouveau: mark last megabyte as usable

2013-08-12 Thread Ben Skeggs
On Thu, Aug 8, 2013 at 1:24 AM, Maarten Lankhorst wrote: > It's my megabyte, I want to use it! At this point in init > vbios is copied over already, so there's no reason it cannot > used to hold other data now. I believe there's areas in here where the SBIOS/VBIOS can communicate to the driver on

[PATCH] drm/nouveau: fix ltcg memory corruptions

2013-08-12 Thread Ben Skeggs
On Thu, Aug 8, 2013 at 1:16 AM, Maarten Lankhorst wrote: > Allocating type=0 marks the memory as free. This allows the ltcg memory to be > allocated twice. Add a BUG_ON in core/mm.c to prevent this ever happening > again. > Additionally some registers were not initialized in init, this causes

[Bug 16193] NULL pointer dereference - radeon_unmap_vram_bos+0x22/0x50

2013-08-12 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=16193 Scott Wood changed: What|Removed |Added CC||scott at buserror.net --- Comment #3 from

[Bug 64201] OpenCL usage result segmentation fault on r600g with HD6850.

2013-08-12 Thread bugzilla-dae...@freedesktop.org
-- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130812/c38c5b5e/attachment.html>

About buffer sychronization mechanism and cache operation

2013-08-12 Thread Inki Dae
Hello all, The purpose of this email is to get other opinions and advices to buffer synchronization mechanism, and coupling cache operation feature with the buffer synchronization mechanism. First of all, I am not a native English speaker so I'm not sure that I can convey my intention to you.

[PATCH] drm: drm_drv: Only call drm_agp_clear() in __OS_HAS_AGP case

2013-08-12 Thread David Herrmann
Hi On Fri, Aug 9, 2013 at 12:00 AM, Fabio Estevam wrote: > From: Fabio Estevam > > Commit 28ec711 (drm/agp: move AGP cleanup paths to drm_agpsupport.c) causes > the > following link error on ARM (imx_v6_v7_defconfig): > > drivers/built-in.o: In function `drm_lastclose': > :(.text+0x588a0):

[PATCH] drm/nouveau: fix ltcg allocating memory as free

2013-08-12 Thread Maarten Lankhorst
Allocating type=0 marks the memory as free. This allows the ltcg memory to be allocated twice. Add a BUG_ON in core/mm.c to prevent this ever happening again. Signed-off-by: Maarten Lankhorst --- diff --git a/drivers/gpu/drm/nouveau/core/core/mm.c b/drivers/gpu/drm/nouveau/core/core/mm.c index

[PATCH] drm/nouveau: fix ltcg memory initialization after suspend

2013-08-12 Thread Maarten Lankhorst
Some registers were not initialized in init, this causes them to be uninitialized after suspend. Signed-off-by: Maarten Lankhorst --- diff --git a/drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c b/drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c index bcca883..7288940 100644 ---

[PATCH] drm/nouveau: fix vblank deadlock

2013-08-12 Thread Maarten Lankhorst
This fixes a deadlock inversion when vblank is enabled/disabled by drm. >vblank_time_lock is always taken when the vblank state is toggled, which caused a deadlock when >lock was also taken during event_get/put. Solve the race by requiring that lock to change enable/disable state, and always

[RFC PATCH] drm/nv50-nvd0: implement precise vblank timing support on nv50/nvc0.

2013-08-12 Thread Maarten Lankhorst
Not as thoroughly tested as I would like. Newer nvd0 and kepler are unsupported, as I don't know the registers yet. Information of the scanout position is based on Lucas Stach's original patch, with a teak to read vline twice, to prevent a race of hline with vline. Cc: Lucas Stach Cc: Mario

[PATCH] drm/radeon: fix UVD message buffer validation

2013-08-12 Thread Alex Deucher
On Sun, Aug 11, 2013 at 3:27 PM, Christian K?nig wrote: > From: Christian K?nig > > When the message buffer is currently moving block until it is idle again. > > Signed-off-by: Christian K?nig > Cc: stable at vger.kernel.org Applied to my fixes tree. Alex > --- >

[PATCH] drm/edid: add quirk for Medion MD30217PG

2013-08-12 Thread Alex Deucher
This LCD monitor (1280x1024 native) has a completely bogus detailed timing (640x350 at 70hz). User reports that 1280x1024 at 60 has waves so prefer 1280x1024 at 75. Manufacturer: MED Model: 7b8 Serial#: 99188 Year: 2005 Week: 5 EDID Version: 1.3 Analog Display Input, Input Voltage Level:

[RFC PATCH] fence: dma-buf cross-device synchronization (v12)

2013-08-12 Thread Rob Clark
On Mon, Jul 29, 2013 at 10:05 AM, Maarten Lankhorst wrote: > A fence can be attached to a buffer which is being filled or consumed > by hw, to allow userspace to pass the buffer without waiting to another > device. For example, userspace can call page_flip ioctl to display the > next frame of

[Nouveau] [PATCH] drm/nouveau: fix ltcg memory initialization after suspend

2013-08-12 Thread Ilia Mirkin
On Mon, Aug 12, 2013 at 6:43 AM, Maarten Lankhorst wrote: > Some registers were not initialized in init, this causes them to be > uninitialized after suspend. > > Signed-off-by: Maarten Lankhorst > --- > diff --git a/drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c >

[PATCH 00/53] Initial 3.12 radeon patches

2013-08-12 Thread Alex Deucher
This is the initial set of patches for 3.12 for radeon. The big changes here are adding ASPM and DPM support to CIK asics. There are also some cleanups related to removing bo copy support using the 3D engine in favor of the sDMA engines or CP DMA. For easier review the patches are also available

[PATCH 01/53] drm/radeon: switch r6xx+ to using CP DMA for the blit copy callback

2013-08-12 Thread Alex Deucher
CP DMA is lighter weight than using the 3D engine. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c index

[PATCH 02/53] drm/radeon/kms: remove r6xx+ blit copy routines

2013-08-12 Thread Alex Deucher
No longer used now that we use the async dma engines or CP DMA for bo copies. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/Makefile | 4 +- drivers/gpu/drm/radeon/cayman_blit_shaders.c| 54 -- drivers/gpu/drm/radeon/evergreen.c | 8 -

[PATCH 03/53] drm/radeon: add UVD->DPM helper function (v5)

2013-08-12 Thread Alex Deucher
Add a helper function for counting the number of open stream handles. v2: fix copy-pasta in comments and whitespace error v3: make function static since it's only used in radeon_uvd.c at the moment v4: make non-static again for future changes v5: make static again for new rework of dpm uvd

[PATCH 04/53] drm/radeon/dpm: use multiple UVD power states (v3)

2013-08-12 Thread Alex Deucher
Use the UVD handle information to determine which which power states to select when using UVD. For example, decoding a single SD stream requires much lower clocks than multiple HD streams. v2: switch to a cleaner dpm/uvd interface v3: change the uvd power state while streams are active if need

[PATCH 05/53] drm/radeon/dpm: rework thermal state handling

2013-08-12 Thread Alex Deucher
1. Handle the the thermal state directly in the work handler. Remove the state selection function since nothing else uses it now. 2. On some asics there is no thermal state, so we just use a regular state and force the low performance state. Signed-off-by: Alex Deucher ---

[PATCH 06/53] drm/radeon: default to 1024M gart size on rv770+

2013-08-12 Thread Alex Deucher
Newer asics have a lot of vram so it's less of an issue to waste a little more space for the gart page table. This gives us some additional gart space before having to migrate to non-gart system ram for games, etc. where we use up most of vram. Signed-off-by: Alex Deucher ---

  1   2   >