[PATCH 3/4] drm/dp/mst: fix in MSTB RAD initialization

2016-01-04 Thread Alex Deucher
From: Mykola Lysenko This fix is needed to support more then two branch displays, so RAD address consist at least of 2 elements Acked-by: Dave Airlie Signed-off-by: Mykola Lysenko Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/drm_dp_mst_topology.c | 12

[PATCH 4/4] drm/dp/mst: fix in RAD element access

2016-01-04 Thread Alex Deucher
From: Mykola Lysenko This is needed to receive correct port number from RAD, so MSTB could be found Acked-by: Dave Airlie Signed-off-by: Mykola Lysenko Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/drm_dp_mst_topology.c | 4 ++-- 1 file changed, 2 insertions

[PATCH 1/4] drm/dp/mst: process broadcast messages correctly

2016-01-04 Thread Alex Deucher
broadcast) Acked-by: Dave Airlie Signed-off-by: Mykola Lysenko Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/drm_dp_mst_topology.c | 95 +++ 1 file changed, 84 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c

[PATCH 2/4] drm/dp/mst: always send reply for UP request

2016-01-04 Thread Alex Deucher
From: Mykola Lysenko We should always send reply for UP request in order to make downstream device clean-up resources appropriately. Issue was that reply for UP request was sent only once. Acked-by: Dave Airlie Signed-off-by: Mykola Lysenko Signed-off-by: Alex Deucher Cc: stable

Re: [PATCH 1/3] radeon/cik: Fix GFX IB test on Big-Endian

2015-12-08 Thread Alex Deucher
On Sun, Dec 6, 2015 at 1:45 PM, Christian König wrote: > On 06.12.2015 08:29, Oded Gabbay wrote: >> >> On Sat, Dec 5, 2015 at 12:23 PM, Christian König >> wrote: >>> >>> Patch #1 & #2 are Reviewed-by: Christian König >>> >>> For patch #3: >>> >>> Couldn't we just in a loop go over all the dw in

Re: [PATCH] drm/amdgpu: Fix default page access routing

2015-11-10 Thread Alex Deucher
On Thu, Nov 5, 2015 at 2:06 PM, Jay Cornwall wrote: > The VM default page (used when a VM translation fails) is allocated in > system memory. The VM is misconfigured to interpret the physical address > as referencing a VRAM physical page. > > Route default page accesses to system memory. > > Signe

Re: [PATCH 2/2] drm/amdgpu/atom: Send out the full AUX address

2015-08-31 Thread Alex Deucher
tml Alex > > Regards, > Jammy > > -Original Message- > From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf Of > Alex Deucher > Sent: Monday, August 31, 2015 11:19 PM > To: dri-de...@lists.freedesktop.org > Cc: Deucher, Alexander; stabl

[PATCH 1/2] drm/radeon/native: Send out the full AUX address

2015-08-31 Thread Alex Deucher
AUX addresses are 20 bits long. Send out the entire address instead of just the low 16 bits. Port of: drm/radeon/atom: Send out the full AUX address to radeon non-atom aux path Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_dp_auxch.c | 4 ++-- 1 file

[PATCH 2/2] drm/amdgpu/atom: Send out the full AUX address

2015-08-31 Thread Alex Deucher
AUX addresses are 20 bits long. Send out the entire address instead of just the low 16 bits. Port of: drm/radeon/atom: Send out the full AUX address to amdgpu Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/amd/amdgpu/atombios_dp.c | 3 ++- 1 file changed, 2

[PATCH 2/3] drm/radeon/evergreen: only enable CP gui idle interrupts after CP is set up

2015-07-08 Thread Alex Deucher
Necessary for proper gfx/rlc/smu handshaking. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/evergreen.c | 12 ++-- drivers/gpu/drm/radeon/r600.c | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH 1/3] drm/radeon/r600/r700: only enable CP gui idle interrupts after CP is set up

2015-07-08 Thread Alex Deucher
Necessary for proper gfx/rlc/smu handshaking. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/r600.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c

Re: [PATCH 1/2] drm/radeon: Handle irqs only based on irq ring, not irq status regs.

2015-07-06 Thread Alex Deucher
e on a mismatch. >> >> This fixed the problems reliably on both previously failing >> cards, RV-730 dual-head tested on both crtcs (pipes D1 and D2) >> and a triple-output Juniper HD-5770 card tested on all three >> available crtcs (D1/D2/D3). The r600 and evergre

Re: [PATCH 2/2] drm/radeon: SDMA fix hibernation (CI GPU family).

2015-06-25 Thread Alex Deucher
On Fri, Jun 19, 2015 at 10:32 AM, wrote: > From: Jérôme Glisse > > In order for hibernation to reliably work we need to properly turn > off the SDMA block, sadly after numerous attemps i haven't not found > proper sequence for clean and full shutdown. So simply reset both > SDMA block, this make

[PATCH] hda: set proper caps for newer AMD hda audio in KB/KV

2015-06-24 Thread Alex Deucher
Fixes audio problems on newer asics. Noticed by: Kelly Anderson Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- sound/pci/hda/hda_intel.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index a8a1e14..479ee25 100644 --- a

Re: [PATCH] drm/radeon: fix freeze for laptop with Turks/Thames GPU.

2015-06-09 Thread Alex Deucher
On Fri, Jun 5, 2015 at 1:33 PM, wrote: > From: Jérôme Glisse > > Laptop with Turks/Thames GPU will freeze if dpm is enabled. It seems > the SMC engine is relying on some state inside the CP engine. CP needs > to chew at least one packet for it to get in good state for dynamic > power management.

[PATCH] drm/radeon: don't share plls if monitors differ in audio support

2015-05-26 Thread Alex Deucher
Enabling audio may enable different pll dividers. Don't share plls if the monitors differ in audio support. bug: https://bugzilla.kernel.org/show_bug.cgi?id=98751 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 4 +++- 1 file chang

[PATCH] drm/radeon: adjust pll when audio is not enabled

2015-04-21 Thread Alex Deucher
Fixes display problems with some monitors when audio is not enabled. Bugs: https://bugs.freedesktop.org/show_bug.cgi?id=89505 https://bugzilla.kernel.org/show_bug.cgi?id=94171 Plus several reports on IRC. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon

Re: [Intel-gfx] [PATCH] drm/edid: set ELD for firmware and debugfs override EDIDs

2015-03-27 Thread Alex Deucher
On Fri, Mar 27, 2015 at 12:02 PM, Jani Nikula wrote: > On Fri, 27 Mar 2015, Alex Deucher wrote: >> On Fri, Mar 27, 2015 at 8:08 AM, Jani Nikula wrote: >>> On Thu, 26 Mar 2015, Daniel Vetter wrote: >>>> On Thu, Mar 26, 2015 at 10:42:00AM +0200, Jani Nikula wrote: &

Re: [Intel-gfx] [PATCH] drm/edid: set ELD for firmware and debugfs override EDIDs

2015-03-27 Thread Alex Deucher
On Fri, Mar 27, 2015 at 8:08 AM, Jani Nikula wrote: > On Thu, 26 Mar 2015, Daniel Vetter wrote: >> On Thu, Mar 26, 2015 at 10:42:00AM +0200, Jani Nikula wrote: >>> If the user supplies EDID through firmware or debugfs override, the >>> driver callbacks are bypassed and the connector ELD does not

[PATCH] drm/radeon/dpm: fix 120hz handling harder

2015-03-19 Thread Alex Deucher
Need to expand the check to handle short circuiting if the selected state is the same as current state. bug: https://bugs.freedesktop.org/show_bug.cgi?id=87796 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon.h| 1 + drivers/gpu/drm/radeon

[PATCH] drm/radeon: drop ttm two ended allocation

2015-03-17 Thread Alex Deucher
point. Noticed-by: Oded Gabbay Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_object.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index 43e0994..318165d

Re: [PATCH] drm/radeon: fix TOPDOWN handling for bo_create

2015-03-11 Thread Alex Deucher
On Wed, Mar 11, 2015 at 4:51 PM, Alex Deucher wrote: > On Wed, Mar 11, 2015 at 2:21 PM, Christian König > wrote: >> On 11.03.2015 16:44, Alex Deucher wrote: >>> >>> radeon_bo_create() calls radeon_ttm_placement_from_domain() >>> before ttm_bo_init() is ca

Re: [PATCH] drm/radeon: fix TOPDOWN handling for bo_create

2015-03-11 Thread Alex Deucher
On Wed, Mar 11, 2015 at 2:21 PM, Christian König wrote: > On 11.03.2015 16:44, Alex Deucher wrote: >> >> radeon_bo_create() calls radeon_ttm_placement_from_domain() >> before ttm_bo_init() is called. radeon_ttm_placement_from_domain() >> uses the ttm bo size to determ

[PATCH] drm/radeon: fix TOPDOWN handling for bo_create

2015-03-11 Thread Alex Deucher
Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon.h| 3 ++- drivers/gpu/drm/radeon/radeon_gem.c| 2 +- drivers/gpu/drm/radeon/radeon_mn.c | 2 +- drivers/gpu/drm/radeon/radeon_object.c | 17 ++--- drivers/gpu/drm/radeon/radeon_ttm.c

Re: [PATCH] drm/radeon: fix wait to actually occur after the signaling callback

2015-03-06 Thread Alex Deucher
On Tue, Mar 3, 2015 at 3:56 AM, Maarten Lankhorst wrote: > A normal wait adds to the front of the tail. By doing something > similar to fence_default_wait the fence code can run without racing. > > This is a complete fix for "panic on suspend from KDE with radeon", > and a partial fix for "Radeon:

[PATCH] drm/radeon: fix 1 RB harvest config setup for TN/RL

2015-02-19 Thread Alex Deucher
The logic was reversed from what the hw actually exposed. Fixes graphics corruption in certain harvest configurations. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/ni.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu

[PATCH] drm/radeon: enable native backlight control on old macs

2015-02-17 Thread Alex Deucher
Commit b7bc596ebbe0cddc97d76ef9309f64471bbf13eb accidently broke backlight control on old mac laptops that use the on-GPU backlight controller. Reported by nathanhi on IRC. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_encoders.c | 3 +++ 1 file

[PATCH] drm/radeon: fix voltage setup on hawaii

2015-02-11 Thread Alex Deucher
Missing parameter when fetching the real voltage values from atom. Fixes problems with dynamic clocking on certain boards. bug: https://bugs.freedesktop.org/show_bug.cgi?id=87457 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_atombios.c | 1 + 1 file

[PATCH] drm/radeon/dp: Set EDP_CONFIGURATION_SET for bridge chips if necessary

2015-02-11 Thread Alex Deucher
Don't restrict it to just eDP panels. Some LVDS bridge chips require this. May fix blank panels on resume on certain laptops. Noticed by mrnuke on IRC. bug: https://bugs.freedesktop.org/show_bug.cgi?id=42960 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/r

Re: [PATCH 1/2] drm/radeon: fix the crash in benchmark functions

2015-01-30 Thread Alex Deucher
On Fri, Jan 30, 2015 at 4:20 AM, Christian König wrote: > Am 30.01.2015 um 06:38 schrieb Ilija Hadzic: >> >> radeon_copy_dma and radeon_copy_blit must be called with >> a valid reservation object. Otherwise a crash will be provoked. >> We borrow the object from destination BO. >> >> Cc: stable@vge

[PATCH] drm/radeon: don't init gpuvm if accel is disabled (v3)

2015-01-30 Thread Alex Deucher
://bugs.freedesktop.org/show_bug.cgi?id=88786 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_gem.c | 6 -- drivers/gpu/drm/radeon/radeon_kms.c | 16 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH] drm/radeon: properly set vm fragment size for TN/RL

2015-01-30 Thread Alex Deucher
Should be the same as cayman. We don't use VM by default on NI parts so this isn't critical. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_vm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/

[PATCH] drm/radeon: don't init gpuvm if accel is disabled (v2)

2015-01-29 Thread Alex Deucher
Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_kms.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index 3cf9c1f..686411e 100644 --- a/drivers

[PATCH] drm/radeon: don't init gpuvm if accel is disabled

2015-01-28 Thread Alex Deucher
If acceleration is disabled, it does not make sense to init gpuvm since nothing will use it. Moreover, if radeon_vm_init() gets called it uses accel to try and clear the pde tables, etc. which results in a bug. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88786 Signed-off-by: Alex Deucher

[PATCH] drm/radeon: use rv515_ring_start on r5xx

2015-01-15 Thread Alex Deucher
This was accidently lost in 76a0df859def. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_asic.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon

[PATCH 1/3] drm/radeon: fix VM flush on cayman/aruba (v3)

2015-01-06 Thread Alex Deucher
changes v3: just read back rather than polling Reviewed-by: Christian König Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/ni.c | 10 ++ drivers/gpu/drm/radeon/ni_dma.c | 6 ++ drivers/gpu/drm/radeon/nid.h| 24 3 files

[PATCH 2/3] drm/radeon: fix VM flush on SI (v3)

2015-01-06 Thread Alex Deucher
changes v3: just read back rather than polling Reviewed-by: Christian König Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/si.c | 10 ++ drivers/gpu/drm/radeon/si_dma.c | 8 drivers/gpu/drm/radeon/sid.h| 18 ++ 3 files

[PATCH 3/3] drm/radeon: fix VM flush on CIK (v3)

2015-01-06 Thread Alex Deucher
changes v3: just read back rather than polling Reviewed-by: Christian König Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/cik.c | 11 +++ drivers/gpu/drm/radeon/cik_sdma.c | 10 ++ 2 files changed, 21 insertions(+) diff --git a/drivers/gpu/drm

[PATCH 1/3] drm/radeon: fix VM flush on cayman/aruba (v2)

2015-01-06 Thread Alex Deucher
changes Reviewed-by: Christian König Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/ni.c | 10 ++ drivers/gpu/drm/radeon/ni_dma.c | 6 ++ drivers/gpu/drm/radeon/nid.h| 21 + 3 files changed, 37 insertions(+) diff --git a

[PATCH 2/3] drm/radeon: fix VM flush on SI (v2)

2015-01-06 Thread Alex Deucher
changes Reviewed-by: Christian König Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/si.c | 10 ++ drivers/gpu/drm/radeon/si_dma.c | 8 drivers/gpu/drm/radeon/sid.h| 18 ++ 3 files changed, 36 insertions(+) diff --git a

[PATCH 3/3] drm/radeon: fix VM flush on CIK (v2)

2015-01-06 Thread Alex Deucher
changes Reviewed-by: Christian König Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/cik.c | 11 +++ drivers/gpu/drm/radeon/cik_sdma.c | 10 ++ 2 files changed, 21 insertions(+) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon

[PATCH] drm/radeon: fix sad_count check for dce3

2014-12-09 Thread Alex Deucher
Make it consistent with the sad code for other asics to deal with monitors that don't report sads. bug: https://bugzilla.kernel.org/show_bug.cgi?id=89461 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/dce3_1_afmt.c | 2 +- 1 file changed, 1 insertion(

[PATCH] drm/radeon: KV has three PPLLs (v2)

2014-12-05 Thread Alex Deucher
Enable all three in the driver. Early documentation indicated the 3rd one was used for something else, but that is not the case. v2: handle disable as well Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 8 1 file changed, 4

[PATCH] drm/radeon: KV has three PPLLs

2014-12-05 Thread Alex Deucher
Enable all three in the driver. Early documentation indicated the 3rd one was used for something else, but that is not the case. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff

[PATCH] drm/radeon: check the right ring in radeon_evict_flags()

2014-12-03 Thread Alex Deucher
Check the that ring we are using for copies is functional rather than the GFX ring. On newer asics we use the DMA ring for bo moves. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: radeon fix for stable

2014-11-20 Thread Alex Deucher
On Thu, Nov 20, 2014 at 8:19 AM, Luis Henriques wrote: > On Wed, Nov 19, 2014 at 05:40:44PM -0500, Alex Deucher wrote: >> On Wed, Nov 19, 2014 at 5:39 PM, Greg KH wrote: >> > On Wed, Nov 19, 2014 at 05:31:55PM -0500, Alex Deucher wrote: >> >> Hi Greg, >>

Re: radeon fix for stable

2014-11-19 Thread Alex Deucher
On Wed, Nov 19, 2014 at 5:39 PM, Greg KH wrote: > On Wed, Nov 19, 2014 at 05:31:55PM -0500, Alex Deucher wrote: >> Hi Greg, >> >> Can you please cherry-pick: >> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=83d04c39f9048807a8500e575ae3f1

radeon fix for stable

2014-11-19 Thread Alex Deucher
Hi Greg, Can you please cherry-pick: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=83d04c39f9048807a8500e575ae3f1718a3f45bb to the stable trees? Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=88481 Thanks! Alex -- To unsubscribe from this list: send the line "u

[PATCH 02/11] drm/radeon: work around a hw bug in MGCG on CIK

2014-11-19 Thread Alex Deucher
Always need to set bit 0 of RLC_CGTT_MGCG_OVERRIDE to avoid unreliable doorbell updates in some cases. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/cik.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/cik.c b

[PATCH 03/11] drm/radeon: fix endian swapping in vbios fetch for tdp table

2014-11-19 Thread Alex Deucher
Value needs to be swapped on BE. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/r600_dpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index f6309bd..b5c73df 100644

[PATCH] drm/radeon: use gart for DMA IB tests

2014-11-03 Thread Alex Deucher
Use gart rather than vram to avoid having to deal with the HDP cache. Port of adfed2b0587289013f8143c54913ddfd44ac1fd3 (drm/radeon: use gart memory for DMA ring tests) to the IB tests. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/cik_sdma.c | 21

[PATCH] drm/radeon: fix vm page table block size calculation

2014-10-16 Thread Alex Deucher
The page offset is 12 bits. For example if we have an 8 GB VM, we'd need 33 bits. The number of bits needed for PD + PT is 21 (33 - 12 or log2(8) + 18), not 20 (log2(8) + 17). Noticed by Alexey during code review. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gp

Re: [PATCH 1/3] drm/radeon: don't reset dma on NI/SI init

2014-09-18 Thread Alex Deucher
On Thu, Sep 18, 2014 at 1:51 PM, Christian König wrote: > Am 18.09.2014 um 19:26 schrieb Alex Deucher: >> >> Otherwise we may lose the DMA golden settings which can >> lead to hangs, etc. > > > Don't we still want the soft reset at some point, e.g. when the engi

[PATCH 1/3] drm/radeon: don't reset dma on NI/SI init

2014-09-18 Thread Alex Deucher
Otherwise we may lose the DMA golden settings which can lead to hangs, etc. bug: https://www.libreoffice.org/bugzilla/show_bug.cgi?id=83500 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/ni_dma.c | 6 -- 1 file changed, 6 deletions(-) diff --git a

[PATCH 3/3] drm/radeon: don't reset dma on r6xx-evergreen init

2014-09-18 Thread Alex Deucher
Otherwise we may lose the DMA golden settings which can lead to hangs, etc. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/r600_dma.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_dma.c b/drivers/gpu/drm/radeon

[PATCH 2/3] drm/radeon: don't reset sdma on CIK init

2014-09-18 Thread Alex Deucher
Otherwise we may lose the DMA golden settings which can lead to hangs, etc. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/cik_sdma.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon

[PATCH 1/3] vgaswitcheroo: add vga_switcheroo_fini_domain_pm_ops

2014-09-14 Thread Alex Deucher
Drivers should call this on unload to unregister pmops. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=84431 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Pali Rohár Cc: Ben Skeggs --- drivers/gpu/vga/vga_switcheroo.c | 6 ++ include/linux/vga_switcheroo.h | 2

[PATCH 2/3] drm/radeon/px: fix module unload

2014-09-14 Thread Alex Deucher
Use the new vga_switcheroo_fini_domain_pm_ops function to unregister the pm ops. Based on a patch from: Pali Rohár bug: https://bugzilla.kernel.org/show_bug.cgi?id=84431 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Pali Rohár Cc: Ben Skeggs --- drivers/gpu/drm

[PATCH 3/3] drm/nouveau/runpm: fix module unload

2014-09-14 Thread Alex Deucher
Use the new vga_switcheroo_fini_domain_pm_ops function to unregister the pm ops. Based on a patch from: Pali Rohár bug: https://bugzilla.kernel.org/show_bug.cgi?id=84431 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Cc: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_vga.c | 9

[PATCH] drm/radeon/dpm: set the thermal type properly for special configs

2014-09-09 Thread Alex Deucher
On systems with special thermal configurations make sure we make note of the thermal setup. This is required for proper firmware configuration on these systems. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_atombios.c | 26

[PATCH] drm/radeon: handle broken disabled rb mask gracefully (6xx/7xx) (v2)

2014-08-26 Thread Alex Deucher
This is a port of cedb655a3a7764c3fd946077944383c9e0e68dd4 to older asics. Fixes a possible divide by 0 if the harvest register is invalid. v2: drop some additional harvest munging. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/r600.c | 26

[PATCH] drm/radeon: handle broken disabled rb mask gracefully (6xx/7xx)

2014-08-25 Thread Alex Deucher
This is a port of cedb655a3a7764c3fd946077944383c9e0e68dd4 to older asics. Fixes a possible divide by 0 if the harvest register is invalid. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/r600.c | 8 drivers/gpu/drm/radeon/rv770.c | 8 2

[PATCH 2/3] drm/radeon: Revert drop non blocking allocations from sub allocator

2014-08-22 Thread Alex Deucher
From: Christian König The next revert needs this functionality. This reverts commit 4d1526466296360f56f93c195848c1202b0cc10b. Signed-off-by: Alex Deucher Acked-and-Tested-by: Michel Dänzer --- drivers/gpu/drm/radeon/radeon_object.h| 2 +- drivers/gpu/drm/radeon/radeon_ring.c | 2

[PATCH 0/3] GPUVM stability fixes for 3.15

2014-08-22 Thread Alex Deucher
Hi Greg, Please apply this patch set to 3.15. It fixes a stability problems with GPUVM on 3.15 that can lead to GPU or system hangs. It basically reverts a major rework of the GPUVM system that happened during 3.15 that was not properly fixed until 3.16. Alex Deucher (1): Revert "drm/r

[PATCH 1/3] Revert "drm/radeon: page table BOs are kernel allocations"

2014-08-22 Thread Alex Deucher
This reverts commit a7bf949883de441a96efa1b5e9754e005eae3b1e. This is a prerequisite for fixing GPUVM stability in 3.15. --- drivers/gpu/drm/radeon/radeon_vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_vm.c b/drivers/gpu/drm/radeon/rade

[PATCH 3/3] drm/radeon: Revert use normal BOs for the page tables v2

2014-08-22 Thread Alex Deucher
directory update size estimation drm/radeon: remove global vm lock v2: fix incorrect merge conflict solving Signed-off-by: Christian König Signed-off-by: Alex Deucher Acked-and-Tested-by: Michel Dänzer --- drivers/gpu/drm/radeon/radeon.h| 24 +- drivers/gpu/drm/radeon/radeon_cs.c

[PATCH 1/3] drm/radeon: add new KV pci id

2014-08-21 Thread Alex Deucher
bug: https://bugs.freedesktop.org/show_bug.cgi?id=82912 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/cik.c | 1 + include/drm/drm_pciids.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c

[PATCH 2/3] drm/radeon: add new bonaire pci ids

2014-08-21 Thread Alex Deucher
Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- include/drm/drm_pciids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index 3a9281b..b75b9a5 100644 --- a/include/drm/drm_pciids.h +++ b/include/drm/drm_pciids.h @@ -176,6

[PATCH 3/3] drm/radeon: add additional SI pci ids

2014-08-21 Thread Alex Deucher
Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- include/drm/drm_pciids.h | 4 1 file changed, 4 insertions(+) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index b75b9a5..e973540 100644 --- a/include/drm/drm_pciids.h +++ b/include/drm/drm_pciids.h @@ -165,8

Re: [PATCH] drm/radeon: enable bapm on MSI systems

2014-08-20 Thread Alex Deucher
On Wed, Aug 20, 2014 at 3:36 PM, Greg KH wrote: > On Wed, Aug 20, 2014 at 07:23:29PM +, Deucher, Alexander wrote: >> > -Original Message- >> > From: Greg KH [mailto:gre...@linuxfoundation.org] >> > Sent: Wednesday, August 20, 2014 3:21 PM >>

[PATCH] drm/radeon: enable bapm on MSI systems

2014-08-20 Thread Alex Deucher
This is a backport of: 0c78a44964db3d483b0c09a8236e0fe123aa9cfc 730a336c33a3398d65896e8ee3ef9f5679fe30a9 from 3.16 to stable. Fixes hangs on some MSI systems. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72921 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/trinity_dpm.c | 11

[PATCH] drm/radeon: fix active_cu mask on SI and CIK after re-init (v2)

2014-08-18 Thread Alex Deucher
Need to initialize the mask to 0 on init, otherwise it keeps increasing. bug: https://bugzilla.kernel.org/show_bug.cgi?id=82581 v2: also fix cu count Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/cik.c | 9 - drivers/gpu/drm/radeon/si.c | 9

[PATCH] drm/radeon: fix active_cu mask on SI and CIK after re-init

2014-08-18 Thread Alex Deucher
Need to initialize the mask to 0 on init, otherwise it keeps increasing. bug: https://bugzilla.kernel.org/show_bug.cgi?id=82581 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/cik.c | 1 + drivers/gpu/drm/radeon/si.c | 1 + 2 files changed, 2 insertions

[PATCH] drm/radeon/dpm: select the appropriate vce power state for KV/KB/ML

2014-08-13 Thread Alex Deucher
Compare the clock in the limits table to the requested evclk rather than just taking the first value. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/kv_dpm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon

Re: [PATCH 1/4] drm/radeon: use packet2 for nop on hawaii with old firmware

2014-08-04 Thread Alex Deucher
On Fri, Aug 1, 2014 at 2:05 PM, Andreas Boll wrote: > From: Alex Deucher > > Older firmware didn't support the new nop packet. > > v2 (Andreas Boll): > - Drop usage of packet3 for new firmware > > Signed-off-by: Alex Deucher > Reviewed-by: Christian König (v

[PATCH 2/2] drm/radeon/dpm: handle voltage info fetching on hawaii

2014-07-31 Thread Alex Deucher
Some hawaii cards use a different method to fetch the voltage info from the vbios. bug: https://bugs.freedesktop.org/show_bug.cgi?id=74250 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/ci_dpm.c | 13 - 1 file changed, 12 insertions(+), 1 deletion

[PATCH 1/2] drm/radeon/atom: add new voltage fetch function for hawaii

2014-07-31 Thread Alex Deucher
Some hawaii boards use a different method for fetching the voltage information from the vbios. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon.h | 3 +++ drivers/gpu/drm/radeon/radeon_atombios.c | 35 2 files

[PATCH] drm/radeon: load the lm63 driver for an lm64 thermal chip.

2014-07-28 Thread Alex Deucher
Looks like the lm63 driver supports the lm64 as well. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_atombios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon

[PATCH 1/2] drm/radeon: fix cut and paste issue for hawaii.

2014-07-24 Thread Alex Deucher
From: Jerome Glisse This is a halfway fix for hawaii acceleration. More fixes to come but hopefully isolated to userspace. Signed-off-by: Jérôme Glisse Cc: stable@vger.kernel.org Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH] drm/radeon: set default bl level to something reasonable

2014-07-15 Thread Alex Deucher
://bugs.freedesktop.org/show_bug.cgi?id=81382 https://bugs.freedesktop.org/show_bug.cgi?id=70207 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/atombios_encoders.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH] drm/radeon: avoid leaking edid data

2014-07-14 Thread Alex Deucher
In some cases we fetch the edid in the detect() callback in order to determine what sort of monitor is connected. If that happens, don't fetch the edid again in the get_modes() callback or we will leak the edid. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/r

[PATCH] drm/radeon: fix typo in ci_stop_dpm()

2014-07-08 Thread Alex Deucher
Need to use the RREG32_SMC() accessor since the register is an smc indirect index. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/ci_dpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/ci_dpm.c b/drivers/gpu/drm

[PATCH] drm/radeon/dp: return -EIO for flags not zero case

2014-07-03 Thread Alex Deucher
If there are error flags in the aux transaction return -EIO rather than -EBUSY. -EIO restarts the whole transaction while -EBUSY jus retries. Fixes problematic aux transfers. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80684 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org

[PATCH] drm/radeon: add missing vce init case for hawaii

2014-06-04 Thread Alex Deucher
Hawaii has the same version of VCE as other CIK parts. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_vce.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/radeon_vce.c b/drivers/gpu/drm/radeon/radeon_vce.c index ced53dd

Re: [PATCH] drm/radeon/dpm: resume fixes for some systems

2014-06-02 Thread Alex Deucher
On Mon, Jun 2, 2014 at 4:10 AM, Christian König wrote: > Am 02.06.2014 05:39, schrieb Dave Airlie: > >>> I've just added this to my 3.15 queue, but it looks like Linus is going >>> to >>> tag 3.15 tomorrow and Dave already send out his most likely last pull >>> request. >>> >>> Going to send out a

[PATCH 1/7] drm/radeon: only apply hdmi bpc pll flags when encoder mode is hdmi

2014-06-02 Thread Alex Deucher
May fix display issues with non-HDMI displays. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 48 ++ 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b

[PATCH] drm/radeon/dpm: resume fixes for some systems

2014-05-30 Thread Alex Deucher
systems. bug: https://bugzilla.kernel.org/show_bug.cgi?id=76761 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 6 ++ drivers/gpu/drm/radeon/radeon_device.c | 5 + drivers/gpu/drm/radeon/radeon_pm.c | 1 - 3 files changed, 7

[PATCH] drm/radeon/atom: fix dithering on certain panels

2014-05-27 Thread Alex Deucher
We need to specify the encoder mode as LVDS for eDP when using the Crtc_Source atom table in order to properly set up the FMT hardware. bug: https://bugs.freedesktop.org/show_bug.cgi?id=73911 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/atombios_encoders.c

[PATCH 1/2] drm/radeon: fix typo in radeon_connector_is_dp12_capable()

2014-05-27 Thread Alex Deucher
We were checking the ext clock rather than the display clock. Noticed by ArtForz on IRC. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_connectors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon

[PATCH 2/2] drm/radeon/dp: fix lane/clock setup for dp 1.2 capable devices

2014-05-27 Thread Alex Deucher
Only DCE5+ asics support DP 1.2. Noticed by ArtForz on IRC. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/atombios_dp.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu

[PATCH 1/5] drm/radeon: only apply hdmi bpc pll flags when encoder mode is hdmi

2014-05-20 Thread Alex Deucher
May fix display issues with non-HDMI displays. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 48 ++ 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b

[PATCH 2/5] drm/radeon: fix pll setup for hdmi deep color

2014-05-20 Thread Alex Deucher
Need to adjust the pll up for deep color modes. Additionally, the atom bpc defines were wrong in certain cases. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 36 ++ 1 file changed, 28 insertions(+), 8

[PATCH] vgaswitcheroo: switch the mux to the igp on power down when runpm is enabled

2014-05-20 Thread Alex Deucher
Avoids blank screens on muxed systems when runpm is active. bug: https://bugs.freedesktop.org/show_bug.cgi?id=75917 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/vga/vga_switcheroo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/vga

[PATCH] drm/radeon/pm: don't allow debugfs/sysfs access when PX card is off (v2)

2014-05-19 Thread Alex Deucher
When the PX card is off don't try and access it. Avoid hw access to the card while it's off (e.g., reading back invalid temperature). v2: be less strict bug: https://bugzilla.kernel.org/show_bug.cgi?id=76321 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/

[PATCH] drm/radeon: handle non-VGA class pci devices with ATRM

2014-05-08 Thread Alex Deucher
Newer PX systems have non-VGA pci class dGPUs. Update the ATRM fetch method to handle those cases. bug: https://bugzilla.kernel.org/show_bug.cgi?id=75401 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_bios.c | 14 ++ 1 file changed, 14

Re: [PATCH] drm/radeon: avoid segfault on device open when accel is not working.

2014-05-07 Thread Alex Deucher
t; buffer if accel is working. > > Cc: > Signed-off-by: Jérôme Glisse Probably also fixes: https://bugzilla.kernel.org/show_bug.cgi?id=73931 Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/radeon/radeon_kms.c | 55 > +++-- > 1 file

[PATCH] drm/radeon: fix register typo on si

2014-05-05 Thread Alex Deucher
Probably a copy paste typo. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/sid.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/sid.h b/drivers/gpu/drm/radeon/sid.h index 683532f..7321283 100644 --- a/drivers/gpu

[PATCH] drm/radeon: fix count in cik_sdma_ring_test()

2014-04-22 Thread Alex Deucher
Should be 5 rather than 4. Noticed-by: Mathias Fröhlich Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/cik_sdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon/cik_sdma.c index

Re: [PATCH] drm/radeon: disable dpm on rv770 by default

2014-04-19 Thread Alex Deucher
On Sat, Apr 19, 2014 at 2:02 PM, Andy Furniss wrote: > Alex Deucher wrote: >> >> There seem to be stability issues on a number of cards. >> >> bugs: https://bugs.freedesktop.org/show_bug.cgi?id=76286 >> https://bugzilla.redhat.com/show_bug.cgi?id=1085785 &

[PATCH] drm/radeon: disable dpm on rv770 by default

2014-04-18 Thread Alex Deucher
There seem to be stability issues on a number of cards. bugs: https://bugs.freedesktop.org/show_bug.cgi?id=76286 https://bugzilla.redhat.com/show_bug.cgi?id=1085785 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741619 Signed-off-by: Alex Deucher Cc: matthias.g...@st.ovqu.de Cc: b...@alien8

  1   2   >