[pull] radeon drm-fixes-3.8

2013-01-07 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more fixes for DMA and a mac quick. The following changes since commit eda85d6ad490923152544fba0473798b6cc0edf6: drm/nouveau: fix init with agpgart-uninorth (2013-01-04 16:04:33 +1000) are available in the git repository at:

[PATCH] drm/radeon: fix DMA CS parser for r6xx linear copy packet

2013-01-04 Thread alexdeuc...@gmail.com
From: Alex Deucher Was using the r7xx format. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_cs.c | 31 ++- 1 files changed, 22 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_cs.c

[PATCH] drm/radeon: split r6xx and r7xx copy_dma functions

2013-01-04 Thread alexdeuc...@gmail.com
From: Alex Deucher - r6xx actually uses a slightly different packet format, although both formats seem to work ok. - r7xx doesn't have the count multiple of 2 limitation. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600.c| 10 ++--

[pull] radeon drm-fixes-3.8

2013-01-03 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few fixes for radeon: - fix the crashes related to DMA on r6xx - properly reset DMA on GPU reset - fix monitor probing with some DP bridges - misc small bug fixes The following changes since commit

[PATCH 5/5] drm/radeon: switch to a finer grained reset for SI

2013-01-03 Thread alexdeuc...@gmail.com
From: Alex Deucher No change in functionality as we currently set all the reset flags. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 98 --- 1 files changed, 64 insertions(+), 34 deletions(-) diff --git

[PATCH 4/5] drm/radeon: switch to a finer grained reset for cayman/TN

2013-01-03 Thread alexdeuc...@gmail.com
From: Alex Deucher No change in functionality as we currently set all the reset flags. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni.c | 109 +++--- 1 files changed, 70 insertions(+), 39 deletions(-) diff --git

[PATCH 3/5] drm/radeon: switch to a finer grained reset for evergreen

2013-01-03 Thread alexdeuc...@gmail.com
From: Alex Deucher No change in functionality as we currently set all the reset flags. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 80 --- drivers/gpu/drm/radeon/evergreend.h |1 + 2 files changed, 56

[PATCH 2/5] drm/radeon: switch to a finer grained reset for r6xx/7xx

2013-01-03 Thread alexdeuc...@gmail.com
From: Alex Deucher No change in functionality as we currently set all the reset flags. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600.c | 85 - 1 files changed, 58 insertions(+), 27 deletions(-) diff --git

[PATCH 1/5] drm/radeon: add GPU reset flags

2013-01-03 Thread alexdeuc...@gmail.com
From: Alex Deucher The idea here is to move to a finer grained reset. In some cases we may not need reset every block, and in other cases we may not need to re-init the entire asic. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |5 + 1

[PATCH 2/2] drm/radeon: reset dma engine on gpu reset (v2)

2013-01-03 Thread alexdeuc...@gmail.com
From: Jerome Glisse This try to reset the dma engine when performing gpu reset. Hopefully bringing back the gpu dma engine in sane state. v2: agd5f: fix dma reset on cayman/TN, add support for SI Signed-off-by: Jerome Glisse Signed-off-by: Alex Deucher ---

[PATCH 1/2] drm/radeon: print dma status reg on lockup (v2)

2013-01-03 Thread alexdeuc...@gmail.com
From: Jerome Glisse To help debug dma related lockup. v2: agd5f: update SI as well Signed-off-by: Jerome Glisse Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |4 drivers/gpu/drm/radeon/evergreend.h |3 +++ drivers/gpu/drm/radeon/ni.c

[PATCH] drm/radeon/6xx: disable use of the DMA ring for ttm bo moves

2012-12-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Seems to fall over in some cases with heavy memory thrashing on 6xx. Needs more investigation after the holidays, disable for now. Cc: Markus Trippelsdorf Cc: Borislav Petkov Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c

[PATCH 2/2] drm/radeon: fix VM flush sequence on SI

2012-12-22 Thread alexdeuc...@gmail.com
From: Alex Deucher CP changes: - make sure the new VM base address hits the registers - wait for the VM invalidate to finish DMA changes: - wait for the VM invalidate to finish Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 41

[PATCH 1/2] drm/radeon: fix VM flush sequence on cayman

2012-12-22 Thread alexdeuc...@gmail.com
From: Alex Deucher CP changes: - make sure the new VM base address hits the registers - wait for the VM invalidate to finish DMA changes: - wait for the VM invalidate to finish May fix: https://bugs.freedesktop.org/show_bug.cgi?id=58354

[PATCH] drm/radeon: add WAIT_UNTIL to evergreen VM safe reg list

2012-12-20 Thread alexdeuc...@gmail.com
From: Alex Deucher It's used in a recent mesa commit: http://cgit.freedesktop.org/mesa/mesa/commit/?id=24b1206ab2dcd506aaac3ef656aebc8bc20cd27a and there may be some other cases in the future where it's required. Signed-off-by: Alex Deucher Cc: stable at

[pull] radeon drm-fixes-3.8

2012-12-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just a few fixes from the last week or so. Alex The following changes since commit 0953e76e91f4b6206cef50bd680696dc6bf1ef99: drm/ttm: fix delayed ttm_bo_cleanup_refs_and_unlock delayed handling (2012-12-20 07:46:20 +1000) are

[pull] radeon drm-next-3.8

2012-12-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, This adds CS ioctl support for the async DMA rings. The rest is bug fixes. Alex The following changes since commit 9add1ac3dd256ad12e266f8403daf928be19953f: Merge branch 'drm-next-3.8' of git://people.freedesktop.org/~agd5f/linux

[PATCH 4/4] drm/radeon: enable the async DMA rings in the CS ioctl

2012-12-13 Thread alexdeuc...@gmail.com
From: Alex Deucher This enables the functionality added in the previous patches. Userspace acceleration drivers can use the CS ioctl to submit command buffers to the async DMA rings. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_cs.c | 12

[PATCH 3/4] drm/radeon: add VM CS parser support for async DMA on cayman/TN/SI

2012-12-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Allows us to use async DMA from userspace. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_cs.c | 111 + drivers/gpu/drm/radeon/radeon_asic.c |6 ++ drivers/gpu/drm/radeon/radeon_asic.h |

[PATCH 2/4] drm/radeon/kms: add evergreen/cayman CS parser for async DMA (v2)

2012-12-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Allows us to use the DMA ring from userspace. DMA doesn't have a good NOP packet in which to embed the reloc idx, so userspace has to add a reloc for each buffer used and order them to match the command stream. v2: fix address bounds checking

[PATCH 1/4] drm/radeon/kms: add 6xx/7xx CS parser for async DMA (v2)

2012-12-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Allows us to use the DMA ring from userspace. DMA doesn't have a good NOP packet in which to embed the reloc idx, so userspace has to add a reloc for each buffer used and order them to match the command stream. v2: fix address bounds checking, reloc

[PATCH 4/4] drm/radeon: enable the async DMA rings in the CS ioctl

2012-12-13 Thread alexdeuc...@gmail.com
From: Alex Deucher This enables the functionality added in the previous patches. Userspace acceleration drivers can use the CS ioctl to submit command buffers to the async DMA rings. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_cs.c | 12

[PATCH 3/4] drm/radeon: add VM CS parser support for async DMA on cayman/TN/SI

2012-12-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Allows us to use async DMA from userspace. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_cs.c | 111 + drivers/gpu/drm/radeon/radeon_asic.c |6 ++ drivers/gpu/drm/radeon/radeon_asic.h |

[PATCH 2/4] drm/radeon/kms: add evergreen/cayman CS parser for async DMA

2012-12-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Allows us to use the DMA ring from userspace. DMA doesn't have a good NOP packet in which to embed the reloc idx, so userspace has to add a reloc for each buffer used and order them to match the command stream. Signed-off-by: Alex Deucher ---

[PATCH 1/4] drm/radeon/kms: add 6xx/7xx CS parser for async DMA

2012-12-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Allows us to use the DMA ring from userspace. DMA doesn't have a good NOP packet in which to embed the reloc idx, so userspace has to add a reloc for each buffer used and order them to match the command stream. Signed-off-by: Alex Deucher ---

[pull] radeon drm-next-3.8

2012-12-12 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, One more pull for 3.8. This one adds CP DMA support and several bug fixes. Alex The following changes since commit a636a9829175987e74ddd28a2e87ed17ff7adfdc: Merge branch 'drm-next-3.8' of git://people.freedesktop.org/~agd5f/linux

[PATCH] drm/radeon: improve mc_stop/mc_resume on r5xx-r7xx

2012-12-12 Thread alexdeuc...@gmail.com
From: Alex Deucher Along the same lines of what was done for evergreen+ in the last kernel. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_reg.h|9 +++ drivers/gpu/drm/radeon/radeon_asic.h |1 + drivers/gpu/drm/radeon/rv515.c | 122

[pull] radeon drm-next-3.8 (v2)

2012-12-10 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, I've added a new set of patches that adds support for the asynchronous DMA engines on r6xx-SI. These engines are used for ttm bo moves and VM page table updates currently. They could also be exposed via the CS ioctl for userspace use,

[pull] radeon drm-next-3.8

2012-12-07 Thread alexdeuc...@gmail.com
From: Alex Deucher Pretty minor -next pull request. We some additional new bits waiting internally for release. Hopefully Monday we can get at least some of them out. The others will probably take a few more weeks. Highlights of the current request: - ELD registers

[PATCH] drm/radeon: fix eDP clk and lane setup for scaled modes

2012-12-04 Thread alexdeuc...@gmail.com
From: Alex Deucher Need to use the adjusted mode since we are sending native timing and using the scaler for non-native modes. Signed-off-by: Alex Deucher cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atombios_encoders.c |2 +- 1 files changed, 1

[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

[pull] radeon drm-fixes-3.7

2012-11-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A couple more small fixes for 3.7: - another evergreen_mc fix - add an AGP quirk for an old RV250 The following changes since commit 6f755116c93ca35f496ccf1910dcd28cd16713e3: Merge branch 'drm-intel-fixes' of

[PATCH] drm/radeon: properly track the crtc not_enabled case evergreen_mc_stop()

2012-11-19 Thread alexdeuc...@gmail.com
From: Alex Deucher The save struct is not initialized previously so explicitly mark the crtcs as not used when they are not in use. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/evergreen.c |2 ++ 1 files changed, 2

[pull] radeon drm-fixes-3.7

2012-11-15 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, just one small bug fix. The following changes since commit afcc87aa6a233e52df73552dc1dc9ae3881b7cc8: drm/vmwgfx: Fix a case where the code would BUG when trying to pin GMR memory (2012-11-09 20:49:06 +1000) are available in the git

[PATCH] drm/radeon: fix logic error in atombios_encoders.c

2012-11-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=50431 Reported-by: David Binderman Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atombios_encoders.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH] drm: fix documentation for drm_crtc_set_mode()

2012-11-09 Thread alexdeuc...@gmail.com
From: Alex Deucher x and y parameters are offsets, not width/height Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/drm_crtc_helper.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] drm/radeon/si: add some missing regs to the VM reg checker

2012-11-08 Thread alexdeuc...@gmail.com
From: Alex Deucher This register is needed for streamout to work properly. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/si.c |1 + drivers/gpu/drm/radeon/sid.h |1 + 2 files changed, 2 insertions(+), 0 deletions(-)

[PATCH] drm/radeon/cayman: add some missing regs to the VM reg checker

2012-11-08 Thread alexdeuc...@gmail.com
From: Alex Deucher These regs were being wronly rejected leading to rendering issues. fixes: https://bugs.freedesktop.org/show_bug.cgi?id=56876 Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/evergreen_cs.c |3 +++

[pull] radeon drm-fixes-3.7

2012-11-07 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just one patch that fixes a display regression in certain cases. The following changes since commit 695ddeb457584a602f2ba117d08ce37cf6ec1589: drm/radeon: fix typo in evergreen_mc_resume() (2012-11-07 10:53:49 +1000) are available in

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

2012-11-05 Thread alexdeuc...@gmail.com
From: Alex Deucher Add missing index that may have led us to enabling more crtcs than necessary. May also fix: https://bugs.freedesktop.org/show_bug.cgi?id=56139 Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/evergreen.c |2

[pull] radeon drm-fixes-3.7

2012-11-01 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, This request is mostly load detection fixes from Egbert and me. The following changes since commit 4936b172d699434547addbe452c2d600ea6a4baf: Merge branch 'drm-nouveau-fixes' of git://people.freedesktop.org/git/nouveau/linux-2.6 into

[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

[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

[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

[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

[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

[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 -

[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 ---

[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

[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(-)

[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

[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 ---

[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

[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 +++

[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 ---

[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

[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

[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

[PATCH] drm/radeon: make 64bit fences more robust v3 (3.5 stable)

2012-09-20 Thread alexdeuc...@gmail.com
From: Christian K?nig Only increase the higher 32bits if we really detect a wrap around. v2: instead of increasing the higher 32bits just use the higher 32bits from the last emitted fence. v3: also use last emitted fence value as upper limit. The intention of this

[pull] radeon drm-fixes-3.6

2012-09-18 Thread alexdeuc...@gmail.com
From: Alex Deucher The pll fix ended up causing some regressions. Drop it for 3.6. I've fixed it properly in 3.7, but the fix is too invasive for 3.6. The following changes since commit 610bd7da160f76f1644ecb4cd7f39511b49a22cc: drm/nouveau: fix booting with

[pull] radeon drm-fixes-3.6

2012-09-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, This is the current set of radeon fixes for 3.6. Two small fixes: - fix the fence issues introduced in 3.5 with 64-bit fences - PLL fix for multiple DP heads Note that the fence fix will require a separate fix for 3.5 since the fence code

[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

[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

[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 ---

[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

[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

[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

[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

[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

[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

[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

[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

[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 ---

[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

[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

[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

[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 ---

[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

[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

[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:

[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 -

[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 ---

[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

[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:

[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

[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

[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

[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

[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

[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

[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

[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

[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 ---

[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

[PATCH 2/2] drm/radeon: fix bank tiling parameters on cayman

2012-07-31 Thread alexdeuc...@gmail.com
From: Alex Deucher Handle the 16 bank case. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/ni.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni.c

[PATCH 1/2] drm/radeon: fix bank tiling parameters on evergreen

2012-07-31 Thread alexdeuc...@gmail.com
From: Alex Deucher Handle the 16 bank case. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/evergreen.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c

[PATCH] drm/radeon: properly handle crtc powergating

2012-07-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Need to make sure the crtc is gated on before modesetting. Explicitly gate the crtc on in prepare() and set a flag so that the dpms functions don't gate it off during mode set. Noticed by sylware on IRC. Signed-off-by: Alex Deucher Cc: stable at

[PATCH] drm/radeon: add new AMD ACPI header and update relevant code

2012-07-25 Thread alexdeuc...@gmail.com
From: Alex Deucher Add a new header that defines the AMD ACPI interface used for laptops, PowerXpress, and chipset specific functionality and update the current code to use it. Todo: - properly verify the ACPI interfaces - hook up and handle ACPI notifications - make

[PATCH] drm/radeon: properly handle SS overrides on TN (v2)

2012-07-25 Thread alexdeuc...@gmail.com
From: Alex Deucher The IntegratedSystemInfo table changed versions on TN. Update the SS override lookup to handle it. v2: fix copy-paste typo. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c | 49 ++--- 1 files

[PATCH] drm/radeon: properly handle SS overrides on TN

2012-07-25 Thread alexdeuc...@gmail.com
From: Alex Deucher The IntegratedSystemInfo table changed versions on TN. Update the SS override lookup to handle it. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c | 49 ++--- 1 files changed, 37 insertions(+),

<    1   2   3   4   5   6   >