[pull] radeon drm-fixes-3.7

2012-11-27 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, One last fix for 3.7 from Jerome. This fixes a display regression which results in blank displays in some cases. The following changes since commit 452f19201f35d20a1a6c9009acbcfa6799163c6a: Merge branch 'drm-fixes-3.7' of git://people.freedesktop.org/~agd5f/linux

[pull] radeon drm-next-3.7

2012-10-02 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, This is the drm-next pull request for 3.7. Most of these patches have been in my drm-next-3.7-wip branch for a while now, and I've been using it regularly now for a while. The big changes for 3.7 include: - Asynchronous VM page table updates for Cayman/SI - 2 level

[PATCH 1/2] drm/radeon: use %zu for formatting size_t

2012-10-04 Thread alexdeuc...@gmail.com
From: Luca Tettamanti Fixes compiler warnings on 32bit. Signed-off-by: Luca Tettamanti Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_acpi.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_acpi.c b/drivers/gpu/drm/radeo

[PATCH 2/2] drm/radeon: fix compilation with backlight disabled

2012-10-04 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_acpi.c|2 + drivers/gpu/drm/radeon/radeon_legacy_encoders.c | 42 +++--- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_acpi.c b/dr

[PATCH] drm/radeon: allocate PPLLs from low to high

2012-10-05 Thread alexdeuc...@gmail.com
From: Alex Deucher The order shouldn't matter, but there have been problems reported on certain older asics. This behaves more like the original code before the PPLL allocation rework. Signed-off-by: Alex Deucher Cc: Markus Trippelsdorf --- drivers/gpu/drm/radeon/atombios_crtc.c |8

[PATCH] drm/radeon: update comments to clarify VM setup

2012-10-08 Thread alexdeuc...@gmail.com
From: Alex Deucher The actual set up and assignment of VM page tables is done on the fly in radeon_gart.c. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni.c|4 drivers/gpu/drm/radeon/radeon_device.c |3 +++ drivers/gpu/drm/radeon/si.c|7 --

[PATCH 1/2] drm/radeon: update comments to clarify VM setup (v2)

2012-10-08 Thread alexdeuc...@gmail.com
From: Alex Deucher The actual set up and assignment of VM page tables is done on the fly in radeon_gart.c. v2: update vm size comments Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/ni.c|4 drivers/gpu/drm/radeon/radeon_device.c |

[PATCH] drm/radeon/cayman: set VM max pfn at MC init

2012-10-08 Thread alexdeuc...@gmail.com
From: Alex Deucher No need to emit them at VM flush as we no longer use variable sized page tables now that we support 2 level page tables. This matches the behavior of SI (which does not support variable sized page tables). Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni.c |8 +

[PATCH] drm/radeon: check if pcie gen 2 is already enabled

2012-10-08 Thread alexdeuc...@gmail.com
From: Alex Deucher If so, skip enabling it. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |8 ++-- drivers/gpu/drm/radeon/r600.c |7 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/d

[PATCH] drm/radeon: check if pcie gen 2 is already enabled (v2)

2012-10-09 Thread alexdeuc...@gmail.com
From: Alex Deucher If so, skip enabling it to save time. v2: coding style fixes Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |7 ++- drivers/gpu/drm/radeon/r600.c |6 ++ 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/

[pull] radeon drm-fixes-3.7

2012-10-15 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, This is the first -fixes pull for 3.7. I would have preferred to have gotten it out a bit sooner, but I was on holiday last week. - Cleanup of the new 2 level page table code it get it in better shape and using less memory. - Fix some display issues related to the

[PATCH] drm/radeon: add some new SI PCI ids

2012-10-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- include/drm/drm_pciids.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index c78bb99..af1cbaf 100644 --- a/include/drm/drm_pciids.h +

[PATCH] drm/radeon: give each backlight a unique id

2012-10-17 Thread alexdeuc...@gmail.com
From: Alex Deucher In cases where we have multiple radeons with backlight controls. Should fix: https://bugzilla.kernel.org/show_bug.cgi?id=48941 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c |5 - drivers/gpu/drm/radeon/radeon_legacy_encoders.c |

[PATCH] drm/radeon: add error output if VM CS fails on cayman

2012-10-19 Thread alexdeuc...@gmail.com
From: Alex Deucher So we know why the CS was rejected. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/evergreen_cs.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/ev

[PATCH] drm/radeon: fix ATPX regression in acpi rework

2012-10-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Copy and paste typo in the apci rework. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=49351 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atpx_handler.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/rad

[pull] radeon drm-fixes-3.7

2012-10-24 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Fixes pull request for radeon. The main things here are fixing a ATPX regression from the acpi rework, fixing some fallout from the async VM work, and fixing some module options that were broken in certain cases. Other than that, mainly just bug fixes. The followin

[PATCH] drm/radeon: add load detection support for ext DAC on R200

2012-10-31 Thread alexdeuc...@gmail.com
From: Alex Deucher The R200 asics use an external DAC for the secondary DAC. The current KMS code tries to use code for the integrated TV DAC for R200 which leads to unpredictable results since R200 does not have an integrated TV DAC. This patch ports the external DAC load detection support from

[PATCH] drm/radeon: add load detection support for ext DAC on R200 (v2)

2012-10-31 Thread alexdeuc...@gmail.com
From: Alex Deucher The R200 asics use an external DAC for the secondary DAC. The current KMS code tries to use code for the integrated TV DAC for R200 which leads to unpredictable results since R200 does not have an integrated TV DAC. This patch ports the external DAC load detection support from

[PATCH] drm/radeon: rework pll selection (v3)

2012-09-03 Thread alexdeuc...@gmail.com
From: Alex Deucher For DP we can use the same PPLL for all active DP encoders. Take advantage of that to prevent cases where we may end up sharing a PPLL between DP and non-DP which won't work. Also clean up the code a bit. v2: - fix missing pll_id assignment in crtc init v3: - fix DP PPLL che

[PATCH 1/3] drm/radeon/kms: add some loop timeouts in pageflip code

2011-11-28 Thread alexdeuc...@gmail.com
From: Alex Deucher Avoid infinite loops waiting for surface updates if a GPU reset happens while waiting for a page flip. See: https://bugs.freedesktop.org/show_bug.cgi?id=43191 Signed-off-by: Alex Deucher Cc: stable at kernel.org Cc: Mario Kleiner --- drivers/gpu/drm/radeon/evergreen.c |

[PATCH 2/3] drm/radeon/kms: fix scanout of 2D tiled buffers on EG/CM

2011-11-28 Thread alexdeuc...@gmail.com
From: Alex Deucher Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=43191 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 35 ++- drivers/gpu/drm/radeon/evergreen_reg.h | 29 ++ 2 files changed, 62 insertions(+

[PATCH 3/3] drm/radeon/kms: fix 2D tiling CS support on EG/CM

2011-11-28 Thread alexdeuc...@gmail.com
From: Alex Deucher Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=43191 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_cs.c | 149 +++-- drivers/gpu/drm/radeon/evergreend.h | 31 +++ 2 files changed, 154 insertions(+), 26 deletions(-)

[PATCH] drm/radeon/kms: Fix logic error in DP HPD handler

2011-10-03 Thread alexdeuc...@gmail.com
From: Alex Deucher Only disable the pipe if the monitor is physically disconnected. The previous logic also disabled the pipe if the link was trained. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41248 Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/rad

[PATCH 1/2] drm/radeon/kms: fix regression in DP aux defer handling

2011-10-03 Thread alexdeuc...@gmail.com
From: Alex Deucher An incorrect ordering in the error checking code lead to DP aux defer being skipped in the aux native write path. Move the bytes transferred check (ret == 0) below the defer check. Tracked down by: Brad Campbell Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41121 Sig

[PATCH 2/2] drm/radeon/kms: add retry limits for native DP aux defer

2011-10-03 Thread alexdeuc...@gmail.com
From: Alex Deucher The previous code could potentially loop forever. Limit the number of DP aux defer retries to 4 for native aux transactions, same as i2c over aux transactions. Noticed by: Brad Campbell Signed-off-by: Alex Deucher Cc: Brad Campbell Cc: stable at kernel.org --- drivers/gp

[PATCH] drm/radeon/kms: fix channel_remap setup

2011-10-04 Thread alexdeuc...@gmail.com
From: Alex Deucher Most asics just use the hw default value which requires no explicit programming. For those that need a different value, the vbios will program it properly. As such, there's no need to program these registers explicitly in the driver. Changing these registers requires a reloa

[PATCH] drm/radeon/kms: fix channel_remap setup (v2)

2011-10-04 Thread alexdeuc...@gmail.com
From: Alex Deucher Most asics just use the hw default value which requires no explicit programming. For those that need a different value, the vbios will program it properly. As such, there's no need to program these registers explicitly in the driver. Changing MC_SHARED_CHREMAP requires a rel

[PATCH] drm/radeon/kms: fix dp_detect handling for DP bridge chips

2011-10-04 Thread alexdeuc...@gmail.com
From: Alex Deucher The HPD pin is not reliable for detecting whether a monitor is connected or not. Skip HPD and just use DDC or load detection. Fixes phantom VGA connected bugs. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_connectors.c | 21 ++

[PATCH] drm/radeon/kms: retry aux transactions if there are status flags

2011-10-04 Thread alexdeuc...@gmail.com
From: Alex Deucher If there are error flags in the aux status, retry the transaction. This makes aux much more reliable, especially on llano systems. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/atombios_dp.c | 12 +--- 1 files changed, 9 insertions

[PATCH] drm/radeon/kms: set DMA mask properly on newer PCI asics

2011-10-05 Thread alexdeuc...@gmail.com
From: Alex Deucher If a card wasn't PCIE, we always set the DMA mask to 32 bits. This is only applies to the old rage128/r1xx gart block on early radeon asics (~r1xx-r4xx). Newer PCI and IGP cards can handle 40 bits just fine. Signed-off-by: Alex Deucher Cc: Chen Jie --- drivers/gpu/drm/rade

[PATCH] drm/radeon/kms: use hardcoded dig encoder to transmitter mapping for DCE4.1

2011-10-05 Thread alexdeuc...@gmail.com
From: Alex Deucher The encoders are supposedly fully routeable, but changing the mapping doesn't always seem to take. Using a hardcoded mapping is much more reliable. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41366 Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gp

[PATCH 1/2] drm/radeon/kms: bail early in dvi_detect for digital only connectors

2011-10-07 Thread alexdeuc...@gmail.com
From: Alex Deucher DVI-D and HDMI-A are digital only, so there's no need to attempt analog load detect. Also, skip bail before the !force check, or we fail to get a disconnect events. The next patches in the series attempt to fix disconnect events for connectors with analog support (DVI-I, HDMI-

[PATCH 2/2] drm/radeon/kms: handle !force case in connector detect more gracefully

2011-10-07 Thread alexdeuc...@gmail.com
From: Alex Deucher When force == false, we don't do load detection in the connector detect functions. Unforunately, we also return the previous connector state so we never get disconnect events for DVI-I, DVI-A, or VGA. Save whether we detected the monitor via load detection previously and use

[PATCH 1/3] drm/radeon/kms/DCE4.1: fix dig encoder to transmitter mapping

2011-10-12 Thread alexdeuc...@gmail.com
From: Alex Deucher llano has fully routeable dig encoders similar to DCE3.2 while ontario has a hardcoded mapping similar to DCE4.0. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_encoders.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dri

[PATCH 2/3] drm/radeon/kms/DCE4.1: ss is not supported on the internal pplls

2011-10-12 Thread alexdeuc...@gmail.com
From: Alex Deucher It's handled via external clock. It should already be protected by the external ss flag, but add an explicit check just in case. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/

[PATCH 3/3] drm/radeon/kms/DCE4.1: fix Select_CrtcSource EncodeMode setting for DP bridges

2011-10-12 Thread alexdeuc...@gmail.com
From: Alex Deucher Settings in this table reflect the physical panel/connector rather than the internal dig encoding. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_encoders.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/ra

[PATCH 3/3] drm/radeon/kms/DCE4.1: fix Select_CrtcSource EncodeMode setting for DP bridges (v2)

2011-10-12 Thread alexdeuc...@gmail.com
From: Alex Deucher Settings in this table reflect the physical panel/connector rather than the internal dig encoding. v2: fix typo for DRM_MODE_CONNECTOR_VGA case. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_encoders.c | 12 +++- 1 files changed, 11 insertions(+),

[PATCH] drm/radeon/kms: make r600-NI blit suspend code common

2011-10-14 Thread alexdeuc...@gmail.com
From: Alex Deucher r600-NI shared the same blit suspend code. Clean it up and make it a shared function. Signed-off-by: Alex Deucher Cc: Ilija Hadzic --- drivers/gpu/drm/radeon/evergreen.c | 10 +- drivers/gpu/drm/radeon/ni.c| 10 +- drivers/gpu/drm/radeon/r600.c

[PATCH] drm/radeon/kms/atom: check fb scratch array access

2011-10-18 Thread alexdeuc...@gmail.com
From: Alex Deucher Check access to the fb scratch array to avoid accessing memory past the end of the array. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/atom.c | 15 +-- drivers/gpu/drm/radeon/atom.h |1 + 2 files changed, 14 insertions(+),

[PATCH] drm/radeon/kms/atom: fix handling of FB scratch indices

2011-10-18 Thread alexdeuc...@gmail.com
From: Alex Deucher FB scratch indices are dword indices, but we were treating them as byte indices. As such, we were getting the wrong FB scratch data for non-0 indices. Fix the indices and guard the indexing against indices larger than the scratch allocation. Fixes potential memory corruption

[PATCH] drm/radeon/kms: remove useless radeon_ddc_dump()

2011-10-25 Thread alexdeuc...@gmail.com
From: Alex Deucher The function didn't work with DP, eDP, or DP bridge connectors and thus confused users as it lead them to believe nothing was connected or the EDID was invalid when in fact is was, just on the aux bus rather an i2c. It should also speed up module loading as it avoids a bunch o

[PATCH 1/2] drm/radeon/kms: rework texture cache flush in r6xx+ blit code

2011-10-25 Thread alexdeuc...@gmail.com
From: Alex Deucher Move the TC flush before the texture setup to match mesa and the ddx. Also, move the TC flush into the texture setup function. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_blit_kms.c |5 - drivers/gpu/drm/radeon/r600_blit_kms.c | 10 +--

[PATCH 2/2] drm/radeon/kms/cayman/blit: specify CP_COHER_CNTL2 with surface_sync

2011-10-25 Thread alexdeuc...@gmail.com
From: Alex Deucher CP_COHER_CNTL2 has to be programmed manually when submitting packets to the ring directly rather than programmed via an IB. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_blit_kms.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff

[PATCH 1/4] drm/radeon/kms: cleanup atombios_adjust_pll()

2011-10-26 Thread alexdeuc...@gmail.com
From: Alex Deucher The logic was messy and hard to follow. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 41 ++- 1 files changed, 13 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/r

[PATCH 2/4] drm/radeon/kms: rework DP bridge checks

2011-10-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Return the encoder id rather than a boolean. This is needed for differentiate between multiple DP bridge chips. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 12 ++-- drivers/gpu/drm/radeon/atombios_dp.c |6 -- drivers/

[PATCH 3/4] drm/radeon/kms: only require 2.7 Ghz DP clock for NUTMEG

2011-10-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Use the regular logic for other bridge chips. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_dp.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index 0

[PATCH 4/4] drm/radeon/kms/atom: rework encoder dpms

2011-10-26 Thread alexdeuc...@gmail.com
From: Alex Deucher The existing function was getting too big and complex. Break it down into a more manageable set of functions. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_encoders.c | 340 -- 1 files changed, 187 insertions(+), 153 deletions(-)

[PATCH] drm/radeon/kms: check for DP MST mode in a few more places (v2)

2011-10-26 Thread alexdeuc...@gmail.com
From: Alex Deucher DP MST is DP multi-stream support, part of DP 1.2. v2: switch to a helper macro as suggested by Michel. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |5 +++-- drivers/gpu/drm/radeon/radeon_encoders.c | 20 +--- drivers/gpu/d

[PATCH] drm/radeon/kms: allocate vram scratch page on 6xx+

2011-10-27 Thread alexdeuc...@gmail.com
From: Alex Deucher The vram scratch was originally only used on some 7xx asics to work around a hw bug. Allocate the scratch page on all 6xx+ radeons and set the MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR to point to it. We shouldn't ever hit it since we limit the system aperture to vram or vram and AG

[PATCH] drm/radeon/kms: always do extended edid probe

2011-10-30 Thread alexdeuc...@gmail.com
From: Alex Deucher Rather than having a quirk list just always check the EDID header when probing. This is the recommended behavior according to the display team. This avoids problems with improperly terminated i2c lines on some boards. This is also what the proprietary driver does. Signed-of

[PATCH 2/4] drm/radeon/kms: make atombios_dvo_setup() version based

2011-10-30 Thread alexdeuc...@gmail.com
From: Alex Deucher Use table version numbers for param setup. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c | 63 +-- 1 files changed, 40 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gp

[PATCH 1/4] drm/radeon/kms: move atom encoder setup to a new file

2011-10-30 Thread alexdeuc...@gmail.com
From: Alex Deucher Leave the common code in radeon_encoders.c and move the atom specific code to atombios_encoders.c. This matches legacy encoder setup and crtc setup. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/Makefile|2 +- drivers/gpu/drm/radeon/atombios_encoder

[PATCH 3/4] drm/radeon/kms: make atombios_dig_encoder_setup() version based

2011-10-30 Thread alexdeuc...@gmail.com
From: Alex Deucher set up the params based on the table version number. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c | 213 +--- 1 files changed, 128 insertions(+), 85 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c

[PATCH 4/4] drm/radeon/kms: make atombios_dig_transmitter_setup() version based

2011-10-30 Thread alexdeuc...@gmail.com
From: Alex Deucher Use the table version to determine which params to use. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c | 343 ++-- 1 files changed, 221 insertions(+), 122 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders

[PATCH] drm/radeon/kms: make sure pci max read request size is valid on evergreen+

2011-09-01 Thread alexdeuc...@gmail.com
From: Alex Deucher If the bios or OS sets the pci max read request size to 0 or an invalid value (6,7), it can result in a hang or slowdown. Check and set it to something sane if it's invalid. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=42162 Signed-off-by: Alex Deucher Cc: stable at k

[PATCH] drm/radeon/kms: make sure pci max read request size is valid on evergreen+ (v2)

2011-09-01 Thread alexdeuc...@gmail.com
From: Alex Deucher If the bios or OS sets the pci max read request size to 0 or an invalid value (6,7), it can result in a hang or slowdown. Check and set it to something sane if it's invalid. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=42162 v2: use pci reg defines from include/linux/p

[PATCH] drm/radeon/kms: fix DP detect and EDID fetch for DP bridges

2011-09-02 Thread alexdeuc...@gmail.com
From: Alex Deucher Sink type is always DP for DP bridges and EDID fetch on DP bridges is always i2c over aux rather than plain i2c. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_connectors.c | 37 ++-- drivers/gpu/drm/radeon/radeon_display.c| 19

[PATCH 1/2] drm/radeon/kms: fix typo in r100_blit_copy

2011-09-16 Thread alexdeuc...@gmail.com
From: Alex Deucher cur_pages is the number of pages per loop iteration. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/r100.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100

[PATCH 2/2] drm/radeon/kms: Make GPU/CPU page size handling consistent in blit code (v2)

2011-09-16 Thread alexdeuc...@gmail.com
From: Alex Deucher The BO blit code inconsistenly handled the page size. This wasn't an issue on system with 4k pages since the GPU's page size is 4k as well. Switch the driver blit callbacks to take num pages in GPU page units. Fixes lemote mipsel systems using AMD rs780/rs880 chipsets. v2:

[PATCH] drm/radeon/kms: fix DDIA enable on some rs690 systems

2011-09-22 Thread alexdeuc...@gmail.com
From: Alex Deucher DVOOutputControl checks the value of of bios scratch reg 3 on some tables and assumes the encoder is already enabled if the DFP2_ACTIVE bit is set. Clear that bit so the table sets the DDIA enable bit properly. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- driver

[PATCH] drm/radeon: fix error return code in TN thermal setup

2012-04-03 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_pm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index caa55d6..17571da 100644 --- a/drivers/gpu/drm/radeon/rad

[PATCH] drm/radeon/kms: fix DVO setup on some r4xx chips

2012-04-03 Thread alexdeuc...@gmail.com
From: Alex Deucher Some r4xx chips have the wrong frev in the DVOEncoderControl table. It should always be 1 on r4xx. Fixes modesetting on DVO on r4xx chips with the bad frev. Reported by twied on #radeon. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/

[PATCH] drm/radeon: only add the mm i2c bus if the hw_i2c module param is set

2012-04-10 Thread alexdeuc...@gmail.com
From: Alex Deucher It seems it can corrupt the monitor EDID in certain cases on certain boards when running sensors detect. It's rarely used anyway outside of AIW boards. http://lists.lm-sensors.org/pipermail/lm-sensors/2012-April/035847.html http://lists.freedesktop.org/archives/xorg/2011-Janu

[PATCH] drm/radeon/si: add missing radeon_bo_unreserve in si_rlc_init()

2012-04-12 Thread alexdeuc...@gmail.com
From: Alex Deucher Forget to unreserve after pinning. This can lead to problems in soft reset and resume. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon

[PATCH] drm/radeon/si: add missing radeon_bo_unreserve in si_rlc_init() v2

2012-04-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Forget to unreserve after pinning. This can lead to problems in soft reset and resume. v2: rework patch as per Michel's suggestion. Signed-off-by: Alex Deucher Reviewed-by: Michel D?nzer --- drivers/gpu/drm/radeon/si.c |5 ++--- 1 files changed, 2 insertions(+), 3 del

[PATCH] drm/radeon: fix logic inversion in load detect fix

2012-04-18 Thread alexdeuc...@gmail.com
From: Alex Deucher Reported-by: Takashi Iwai Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon_connectors.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/r

[PATCH] drm/radeon/kms: use frac fb div on APUs

2012-04-19 Thread alexdeuc...@gmail.com
From: Alex Deucher Seems to be more stable on certain monitors. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=48880 Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --g

[PATCH] drm/radeon/kms: need to set up ss on DP bridges as well

2012-04-27 Thread alexdeuc...@gmail.com
From: Alex Deucher Makes Nutmeg DP to VGA bridges work for me. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=42490 Noticed by Jerome Glisse Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c |4 ++-- 1 files changed, 2 insertions(+)

[PATCH] drm/radeon: fix some missing parens in asic macros

2012-08-03 Thread alexdeuc...@gmail.com
From: Alex Deucher Better safe than sorry. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 118e4b9..9f58885 100644 --- a/dri

[PATCH] drm/radeon: add some new SI pci ids

2012-08-06 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- include/drm/drm_pciids.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index 7ff5c99..c78bb99 100644 --- a/include/drm/drm_pciids.h +

[PATCH] drm/radeon: fix ordering in pll picking on dce4+

2012-08-06 Thread alexdeuc...@gmail.com
From: Alex Deucher No functional change, but re-order the cases so they evaluate properly due to the way the DCE macros work. Noticed by kallisti5 on IRC. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |8 1 files changed, 4 insertions(+), 4 deletions(-)

[PATCH 1/2] drm/radeon/dynpm: wait for fences on all rings when reclocking

2012-08-10 Thread alexdeuc...@gmail.com
From: Alex Deucher 1. Drop gui idle stuff, it's not as reliable as fences and only covers the 3D engine. 2. Wait for fences on all rings. This makes sure all rings are idle when reclocking. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_pm.c | 17 ++--- 1 files ch

[PATCH 2/2] drm/radeon: remove gui_idle interrupt infrastructure

2012-08-10 Thread alexdeuc...@gmail.com
From: Alex Deucher It was only used for dynpm, but has been replaced with a better implementation using fences. Remove it. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |5 drivers/gpu/drm/radeon/r100.c | 19 - drivers/gpu/drm/rad

[pull] radeon drm-fixes-3.6

2012-08-10 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, This is the current set of radeon fixes for 3.6. Nothing too major. Highlights: - various display fixes - some SI fixes - new SI pci ids - major VM fix - CS checker support for MSAA I've tested on a number of cards across generations and noticed no problems. There

[PATCH 1/5] drm/radeon/dce4+: don't use radeon_crtc for vblank callback

2012-08-15 Thread alexdeuc...@gmail.com
From: Alex Deucher This might be called before we've allocated the radeon_crtcs Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 20 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/

[PATCH 2/5] drm/radeon: clean up evergreen_get_vblank_counter

2012-08-15 Thread alexdeuc...@gmail.com
From: Alex Deucher Use the new offset array rather than open coding it. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 18 +++--- 1 files changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/eve

[PATCH 3/5] drm/radeon/r1xx-r4xx: don't use radeon_crtc for vblank callback

2012-08-15 Thread alexdeuc...@gmail.com
From: Alex Deucher This might be called before we've allocated the radeon_crtcs Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 8acb34

[PATCH 4/5] drm/radeon/r5xx-r7xx: don't use radeon_crtc for vblank callback

2012-08-15 Thread alexdeuc...@gmail.com
From: Alex Deucher This might be called before we've allocated the radeon_crtcs Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/rs600.c | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.

[PATCH 5/5] drm/radeon: properly handle mc_stop/mc_resume on evergreen+

2012-08-15 Thread alexdeuc...@gmail.com
From: Alex Deucher - Stop the displays from accessing the FB - Block CPU access - Turn off MC client access This should fix issues some users have seen, especially with UEFI, when changing the MC FB location that result in hangs or display corruption. Signed-off-by: Alex Deucher --- drivers/g

[PATCH 4/5] drm/radeon/r5xx-r7xx: don't use radeon_crtc for vblank callback (v2)

2012-08-15 Thread alexdeuc...@gmail.com
From: Alex Deucher This might be called before we've allocated the radeon_crtcs v2: fix typo in array size Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/rs600.c | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/rs600.c b/d

[PATCH 1/2] drm/radeon: implement ACPI VFCT vbios fetch

2012-08-16 Thread alexdeuc...@gmail.com
From: David L This is required for pure UEFI systems. The vbios is stored in ACPI rather than at the legacy vga location. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=26891 Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon_bios.c | 59 ++

[PATCH 2/2] drm/radeon: split ATRM support out from the ATPX handler

2012-08-16 Thread alexdeuc...@gmail.com
From: Alex Deucher There are systems that use ATRM, but not ATPX. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41265 Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon.h | 15 - drivers/gpu/drm/radeon/radeon_atpx_handler.c |

[PATCH 1/2] drm/radeon: implement ACPI VFCT vbios fetch (v2)

2012-08-16 Thread alexdeuc...@gmail.com
From: David L This is required for pure UEFI systems. The vbios is stored in ACPI rather than at the legacy vga location. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=26891 V2: fix #ifdefs as per Greg's comments Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gp

[PATCH 2/2] drm/radeon: split ATRM support out from the ATPX handler (v2)

2012-08-16 Thread alexdeuc...@gmail.com
From: Alex Deucher There are systems that use ATRM, but not ATPX. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41265 V2: fix #ifdefs as per Greg's comments Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon.h | 15 - drivers/

[PATCH 1/2] drm/radeon: implement ACPI VFCT vbios fetch (v3)

2012-08-16 Thread alexdeuc...@gmail.com
From: David Lamparter This is required for pure UEFI systems. The vbios is stored in ACPI rather than at the legacy vga location. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=26891 V2: fix #ifdefs as per Greg's comments V3: fix it harder Signed-off-by: Alex Deucher Reviewed-by: Jerome

[PATCH 2/2] drm/radeon: split ATRM support out from the ATPX handler (v3)

2012-08-16 Thread alexdeuc...@gmail.com
From: Alex Deucher There are systems that use ATRM, but not ATPX. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41265 V2: fix #ifdefs as per Greg's comments V3: fix it harder Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon.h |

[PATCH 1/4] drm/radeon: implement ACPI VFCT vbios fetch (v3)

2012-08-20 Thread alexdeuc...@gmail.com
From: David Lamparter This is required for pure UEFI systems. The vbios is stored in ACPI rather than at the legacy vga location. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=26891 V2: fix #ifdefs as per Greg's comments V3: fix it harder Signed-off-by: Alex Deucher Reviewed-by: Jerome

[PATCH 2/4] ACPI: export symbol acpi_get_table_with_size

2012-08-20 Thread alexdeuc...@gmail.com
From: Alex Deucher We need it in the radeon drm module to fetch and verify the vbios image on UEFI systems. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/acpi/acpica/tbxface.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/acpica/t

[PATCH 3/4] drm/radeon: convert radeon vfct code to use acpi_get_table_with_size

2012-08-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Allows us to verify the table size. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon_bios.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_bios.c b/drivers/gpu/drm/radeon

[PATCH 4/4] drm/radeon: split ATRM support out from the ATPX handler (v3)

2012-08-20 Thread alexdeuc...@gmail.com
From: Alex Deucher There are systems that use ATRM, but not ATPX. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41265 V2: fix #ifdefs as per Greg's comments V3: fix it harder Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon.h |

[pull] radeon drm-fixes-3.6

2012-08-21 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, This is the current set of radeon fixes for 3.6. Nothing too major. Highlights: - fix vbios fetch on pure uefi systems - fix vbios fetch on thunderbolt systems - MSAA fixes - lockup timeout fix - modesetting fix The following changes since commit 2e26c73a1e410448fb

[PATCH 1/2] drm/radeon: don't disable plls that are in use by other crtcs

2012-08-24 Thread alexdeuc...@gmail.com
From: Alex Deucher Some plls are shared for DP. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/

[PATCH 2/2] drm/radeon/atom: rework DIG modesetting on DCE3+

2012-08-24 Thread alexdeuc...@gmail.com
From: Alex Deucher The ordering is important and the current drm code wasn't cutting it for modern DIG encoders. We need to have information about crtc before setting up the encoders so I've shifted the ordering a bit. Probably we'll need a full rework akin to danvet's recent intel patchs. This

[PATCH] drm/radeon/atom: powergating fixes for DCE6

2012-08-27 Thread alexdeuc...@gmail.com
From: Alex Deucher Power gating is per crtc pair, but the powergating registers should be called individually. The hw handles power up/down properly. The pair is powered up if either crtc in the pair is powered up and the pair is not powered down until both crtcs in the pair are powered down.

[PATCH] drm/radeon: rework panel mode setup

2012-08-28 Thread alexdeuc...@gmail.com
From: Alex Deucher Adjust the panel mode setup to match the behavior of the vbios. Rather than checking for specific bridge chip ids, just check the eDP configuration register. This saves extra aux transactions and works across DP bridge chips without requiring additional per chip id checking.

[pull] radeon drm-fixes-3.6

2012-08-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, This is the current set of radeon fixes for 3.6. Nothing too major. Highlights: - fix a gart regression on older IGP chips - more MSAA fixes - fix a double free in gpu reset code - modesetting fixes The following changes since commit 84f720ecba6716d198b21936d1bf625

[PATCH] drm/radeon: fix dig encoder selection on DCE61

2012-08-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Was using the DCE41 code which was wrong. Fixes blank displays on a number of Trinity systems. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atombios_encoders.c | 31 +++ 1 files changed, 26 insertions(+), 5 de

[PATCH] drm/radeon: implement bounds checking on thermal controller lookup

2012-08-30 Thread alexdeuc...@gmail.com
From: Alex Deucher Don't read past the end of the array if we encounter an unknown thermal controller. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atomb

[PATCH] drm/radeon: rework pll selection

2012-08-31 Thread alexdeuc...@gmail.com
From: Alex Deucher For DP we can use the same PPLL for all active DP encoders. Take advantage of that to prevent cases where we may end up sharing a PPLL between DP and non-DP which won't work. Also clean up the code a bit. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc

[PATCH] drm/radeon: rework pll selection (v2)

2012-08-31 Thread alexdeuc...@gmail.com
From: Alex Deucher For DP we can use the same PPLL for all active DP encoders. Take advantage of that to prevent cases where we may end up sharing a PPLL between DP and non-DP which won't work. Also clean up the code a bit. v2: fix missing pll_id assignment in crtc init Signed-off-by: Alex De

  1   2   3   4   5   6   >