[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 insertions(+), 1 deletions(-) d

[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 for passing audio informati

[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, but I haven't had a chance to

[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

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 into drm-next (2012-12-11 08:

[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 --- drivers/gpu/drm/radeon/r600_cs.c

[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 --- drivers/gpu/drm/radeon/evergreen

[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 |1 + 3 files changed, 118 in

[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 include/uapi/drm/radeo

[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 indexing Signed-off-by: Al

[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 Signed-off-by: Alex Deucher ---

[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 |1 + 3 files changed, 118 in

[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 include/uapi/drm/radeo

[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 into drm-next (2012-12-13 12:0

[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 available in the git repository a

[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 vger.kernel.org --- drivers/gpu/drm/rad

[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 https://bugs.freedesktop.org/show_bug.cgi?id=58667 possibly

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

[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 |8 1 files cha

[PATCH 1/2] drm/radeon/kms: add r1xx/r2xx support for CS_KEEP_TILING_FLAGS

2012-02-02 Thread alexdeuc...@gmail.com
From: Alex Deucher Previous patch only updates r3xx+. It's not likely anyone will use this on r1xx/r2xx, but add it for consistency. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c | 46 +++- drivers/gpu/drm/radeon/r200.c | 17 +---

[PATCH 2/2] drm/radeon/kms: add r1xx/r2xx CS support for tiled textures

2012-02-02 Thread alexdeuc...@gmail.com
From: Alex Deucher Not likely this will be implemented anytime soon, but for completeness... Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c | 12 +++- drivers/gpu/drm/radeon/r200.c | 12 +++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/dri

[PATCH] drm/radeon/kms: fix TRAVIS panel setup

2012-02-02 Thread alexdeuc...@gmail.com
From: Alex Deucher Different versions of the DP to LVDS bridge chip need different panel mode settings depending on the chip version used. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41569 Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atombios_dp

[PATCH] drm/radeon/kms: give better user feedback if a VM CS fails

2012-02-07 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_cs.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index 435a3d9..22e0afe 100644 --- a/drivers/gpu/drm/radeon/rade

[PATCH] drm/radeon/kms/atom: bios scratch reg handling updates

2012-02-13 Thread alexdeuc...@gmail.com
From: Alex Deucher - Add missing DFP6 connection state handling - crtc routing bits not used on DCE4+ Noticed by sylware on phoronix. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --gi

[PATCH] drm/radeon/kms/atom: dpms bios scratch reg updates

2012-02-19 Thread alexdeuc...@gmail.com
From: Alex Deucher dpms bits not used on DCE4+ Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 8577824.

[drm-next 00/14] radeon_asic cleanups for drm-next

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher This patch set cleans up radeon_asic and organizes the asic specific callbacks based on their function. Not change in functionality. It requires Christian's patch: "drm/radeon: also make the cs_parse function per ring" Alex Deucher (14): drm/radeon/kms: add wait_for_vblank

[drm-next 01/14] drm/radeon/kms: add wait_for_vblank asic callback

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Required for future functionality. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 19 + drivers/gpu/drm/radeon/evergreen_reg.h |1 + drivers/gpu/drm/radeon/r100.c | 34 drivers/gpu/dr

[drm-next 02/14] drm/radeon/kms: add a radeon asic callback for mc idle

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Required for future functionality. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r520.c|2 +- drivers/gpu/drm/radeon/radeon.h |3 +++ drivers/gpu/drm/radeon/radeon_asic.c | 17 + drivers/gpu/drm/radeon/radeon_asic.h | 10

[drm-next 03/14] drm/radeon/kms: reorganize hpd callbacks

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher tidy up the radeon_asic struct. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 20 +++-- drivers/gpu/drm/radeon/radeon_asic.c | 170 -- 2 files changed, 114 insertions(+), 76 deletions(-) diff --git a/drivers/gpu/dr

[drm-next 04/14] drm/radeon/kms: reorganize page flip callbacks

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher tidy up the radeon_asic struct. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 14 ++-- drivers/gpu/drm/radeon/radeon_asic.c | 136 +- 2 files changed, 93 insertions(+), 57 deletions(-) diff --git a/drivers/gpu/drm/

[drm-next 05/14] drm/radeon/kms: reorganize pm callbacks

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher tidy up the radeon_asic struct. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 22 ++-- drivers/gpu/drm/radeon/radeon_asic.c | 204 -- 2 files changed, 131 insertions(+), 95 deletions(-) diff --git a/drivers/gpu/drm

[drm-next 06/14] drm/radeon/kms: reorganize copy callbacks

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher tidy up the radeon_asic struct, handle multiple rings better. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c|2 +- drivers/gpu/drm/radeon/ni.c |2 +- drivers/gpu/drm/radeon/r600.c |2 +- drivers/gpu/drm/radeon

[drm-next 07/14] drm/radeon/kms: reorganize irq callbacks

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher tidy up the radeon_asic struct. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 13 +++- drivers/gpu/drm/radeon/radeon_asic.c | 102 ++--- 2 files changed, 77 insertions(+), 38 deletions(-) diff --git a/drivers/gpu/drm/r

[drm-next 08/14] drm/radeon/kms: remove unused cp callbacks from radeon_asic

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 9fbeca4..d2aa41f 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++

[drm-next 09/14] drm/radeon/kms: make ring_start, ring_test, and ib_test per ring

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Each ring type may need a different variant. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |4 +- drivers/gpu/drm/radeon/ni.c |4 +- drivers/gpu/drm/radeon/r100.c| 11 ++--- drivers/gpu/drm/radeon/r300.c|5 +- dri

[drm-next 10/14] drm/radeon/kms: reorganize gart callbacks

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher tidy up the radeon_asic struct. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c|4 +- drivers/gpu/drm/radeon/r300.c|4 +- drivers/gpu/drm/radeon/radeon.h | 12 +++- drivers/gpu/drm/radeon/radeon_asic.c | 110 +

[drm-next 11/14] drm/radeon/kms: reorganize display callbacks

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher tidy up the radeon_asic struct. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 19 +++-- drivers/gpu/drm/radeon/radeon_asic.c | 137 +- 2 files changed, 98 insertions(+), 58 deletions(-) diff --git a/drivers/gpu/drm

[drm-next 12/14] drm/radeon/kms: move clock/pcie setting callbacks into pm struct

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher tidy up radeon_asic struct. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c |2 +- drivers/gpu/drm/radeon/radeon.h| 28 ++-- drivers/gpu/drm/radeon/radeon_asic.c | 248 drivers/gpu/drm/radeon/radeon_clo

[drm-next 13/14] drm/radeon/kms: reorganize surface callbacks

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher tidy up the radeon_asic struct. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 14 +++-- drivers/gpu/drm/radeon/radeon_asic.c | 103 ++ 2 files changed, 76 insertions(+), 41 deletions(-) diff --git a/drivers/gpu/drm

[drm-next 14/14] drm/radeon/kms: clean up radeon_asic struct

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 38 ++--- drivers/gpu/drm/radeon/radeon_asic.c | 100 +- 2 files changed, 68 insertions(+), 70 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/driver

[drm-next 14/14] drm/radeon/kms: clean up radeon_asic struct (v2)

2012-02-23 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: fix typo. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 38 ++--- drivers/gpu/drm/radeon/radeon_asic.c | 102 +- 2 files changed, 69 insertions(+), 71 deletions(-) diff --git a/drivers/gpu/drm/radeon/ra

[drm-next] drm/radeon/kms: use asic callback for mc idle

2012-02-27 Thread alexdeuc...@gmail.com
From: Alex Deucher Switch all the asic specific mc idle calls to use the asic callback. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |6 +++--- drivers/gpu/drm/radeon/ni.c|3 +-- drivers/gpu/drm/radeon/r100.c |2 +- drivers/gpu/drm/radeon/r300.c

[PATCH] drm/radeon/kms: give better user feedback if a VM CS fails

2012-02-27 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_cs.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index 9b4124e..f7ee2f8 100644 --- a/drivers/gpu/drm/radeon/rade

[PATCH] drm/radeon/kms: fix radeon_dp_get_modes for LVDS bridges

2012-02-27 Thread alexdeuc...@gmail.com
From: Alex Deucher Need to call ExternalEncoderControl to set up DDC before trying to get an EDID for all DP bridge chipsi (including DP to LVDS). Also remove redundant encoder assignment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_connectors.c | 25 +-

[PATCH] drm/radeon/kms: fix radeon_dp_get_modes for LVDS bridges (v2)

2012-02-28 Thread alexdeuc...@gmail.com
From: Alex Deucher Need to call ExternalEncoderControl to set up DDC before trying to get an EDID for all DP bridge chips (including DP to LVDS). Also remove redundant encoder assignment. V2: fix typo in commit message. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_connectors

[PATCH] drm/radeon/kms/vm: fix possible bug in radeon_vm_bo_rmv()

2012-02-29 Thread alexdeuc...@gmail.com
From: Sebastian Biemueller The bo is removed from the list at the top of radeon_vm_bo_rmv(), but then the list is used in radeon_vm_bo_update_pte() to look up the vm. remove the bo_list entry at the end of the function instead. Signed-off-by: Alex Deucher Cc: Jerome Glisse --- drivers/gpu/drm

[PATCH] drm/radeon/kms: disable writeback on pre-R300 asics

2012-01-03 Thread alexdeuc...@gmail.com
From: Alex Deucher We often end up missing fences on older asics with writeback enabled which leads to delays in the userspace accel code, so just disable it by default on those asics. Reported-by: Helge Deller Reported-by: Dave Airlie Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org

[PATCH] drm/radeon/kms: Add DDC quirk for ASUS RS400

2012-01-03 Thread alexdeuc...@gmail.com
From: Alex Deucher vbios is missing a ddc entry for the DVI-D port. Reported by ponyofdeath on IRC. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon_combios.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/gpu

[PATCH 1/3] drm/radeon: GPU virtual memory support v22

2012-01-05 Thread alexdeuc...@gmail.com
From: Jerome Glisse Virtual address space are per drm client (opener of /dev/drm). Client are in charge of virtual address space, they need to map bo into it by calling DRM_RADEON_GEM_VA ioctl. First 16M of virtual address space is reserved by the kernel. Once using 2 level page table we should

[PATCH 2/3] drm/radeon/kms: Add support for multi-ring sync in CS ioctl (v2)

2012-01-05 Thread alexdeuc...@gmail.com
From: Christian K?nig Use semaphores to sync buffers across rings in the CS ioctl. Add a reloc flag to allow userspace to skip sync for buffers. agd5f: port to latest CS ioctl changes. v2: add ring lock/unlock to make sure changes hit the ring. Signed-off-by: Christian K?nig Signed-off-by: A

[PATCH 3/3] drm/radeon/kms: sync across multiple rings when doing bo moves v3

2012-01-05 Thread alexdeuc...@gmail.com
From: Alex Deucher We need to synchronize across rings when doing a bo move to make sure we the buffer is idle if it's in use by a different ring than the ring doing the move. v2: fix fence setup for bo moves v3: add missing ring lock/unlock Signed-off-by: Alex Deucher --- drivers/gpu/drm/ra

[PATCH 1/2] drm/radeon/kms: check if vm is supported in VA ioctl

2012-01-06 Thread alexdeuc...@gmail.com
From: Alex Deucher Add a VM manager enabled field and use it to check if vm is enabled. Signed-off-by: Alex Deucher Cc: jglisse at redhat.com --- drivers/gpu/drm/radeon/radeon.h |2 ++ drivers/gpu/drm/radeon/radeon_cs.c |4 ++-- drivers/gpu/drm/radeon/radeon_gart.c | 10 ++

[PATCH 2/2] drm/radeon/kms: remove pointless CS flags priority struct

2012-01-06 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Cc: Christian K?nig --- include/drm/radeon_drm.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/include/drm/radeon_drm.h b/include/drm/radeon_drm.h index 2a807a5..b55da40 100644 --- a/include/drm/radeon_drm.h +++ b/incl

[PATCH] drm/radeon/kms/ni: fix packet2 handling for VM IB parser

2012-01-12 Thread alexdeuc...@gmail.com
From: Alex Deucher Packet2 is only one dword. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_cs.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index f7442e6..8e8cd85 1

[PATCH] drm/radeon/kms: Add an MSI quirk for Dell RS690

2012-01-15 Thread alexdeuc...@gmail.com
From: Alex Deucher Interrupts only work with MSIs. https://bugs.freedesktop.org/show_bug.cgi?id=37679 Reported-by: Dmitry Podgorny Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon_irq_kms.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions

[PATCH] drm/radeon/kms: add some missing semaphore init

2012-01-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |1 + drivers/gpu/drm/radeon/evergreend.h |1 + drivers/gpu/drm/radeon/ni.c |1 + drivers/gpu/drm/radeon/nid.h|1 + 4 files changed, 4 insertions(+), 0 deletions(-) diff --git

[PATCH] drm/radeon/kms/dce3+: add support for hw i2c using atom

2012-01-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Starting with DCE3 hardware, atom contains a general purpose ProcessI2cChannelTransaction similar to ProcessAuxChannelTransaction. Add an implementation using the atom tables for DCE3+ hardware. This should be a little less CPU intensive than bit banging and may work better i

[PATCH] drm/radeon/kms: move disp eng pll setup to init path

2012-01-20 Thread alexdeuc...@gmail.com
From: Alex Deucher We really only need to set it up once on init or resume rather than on every mode set. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 56 +++ drivers/gpu/drm/radeon/radeon_device.c |6 ++- drivers/gpu/drm/radeon/r

[PATCH 1/2] drm/radeon/kms: move panel mode setup into encoder mode set

2012-01-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Needs to happen earlier in the mode set. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atombios_dp.c | 22 ++ drivers/gpu/drm/radeon/atombios_encoders.c | 11 +++ drivers/gpu/drm/radeon/radeon_mode.

[PATCH 2/2] drm/radeon/kms: rework modeset sequence for DCE41 and DCE5

2012-01-20 Thread alexdeuc...@gmail.com
From: Alex Deucher dig transmitter control table only has ENABLE/DISABLE actions on DCE4.1/DCE5. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=44955 Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atombios_encoders.c | 19 --- 1 fil

[PATCH 1/2] drm/radeon/kms: use drm_detect_hdmi_monitor for picking encoder mode

2012-01-20 Thread alexdeuc...@gmail.com
From: Alex Deucher We were previously just checking for audio. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_

[PATCH 2/2] drm/radeon/kms: refine TMDS dual link checks

2012-01-20 Thread alexdeuc...@gmail.com
From: Alex Deucher HDMI 1.3 defines single link clocks up to 340 Mhz. Refine the current dual link checks to only enable dual link for DVI > 165 Mhz or HDMI > 340 Mhz if the hw supports HDMI 1.3 (DCE3+). Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=44755 Signed-off-by: Alex Deucher ---

[PATCH] drm/radeon/kms: add support for streamout v2

2012-01-24 Thread alexdeuc...@gmail.com
From: Marek Ol??k v2: agd5f: add strmout CS checking, copy_dw register checking Signed-off-by: Marek Ol??k Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_cs.c | 114 +-- drivers/gpu/drm/radeon/evergreend.h |9 ++ drivers/gpu/drm/radeon/

[PATCH] drm/radeon/kms: add support for streamout v3

2012-01-24 Thread alexdeuc...@gmail.com
From: Marek Ol??k v2: agd5f: add strmout CS checking, copy_dw register checking v3: agd5f: don't use cs_check_reg() for copy_dw checking as it will incorrectly patch the command stream for certain regs. Signed-off-by: Marek Ol??k Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergre

[PATCH] drm/radeon/kms: add support for streamout v4

2012-01-24 Thread alexdeuc...@gmail.com
From: Marek Ol??k v2: agd5f: add strmout CS checking, copy_dw register checking v3: agd5f: don't use cs_check_reg() for copy_dw checking as it will incorrectly patch the command stream for certain regs. v4: agd5f: add warning if safe reg check fails for copy_dw Signed-off-by: Marek Ol??k Sign

[PATCH] drm/radeon/kms: add support for streamout v5

2012-01-24 Thread alexdeuc...@gmail.com
From: Marek Ol??k v2: agd5f: add strmout CS checking, copy_dw register checking v3: agd5f: don't use cs_check_reg() for copy_dw checking as it will incorrectly patch the command stream for certain regs. v4: agd5f: add warning if safe reg check fails for copy_dw v5: agd5f: add stricter checking

[PATCH] drm/radeon/kms: add support for streamout v6

2012-01-27 Thread alexdeuc...@gmail.com
From: Marek Ol??k v2: agd5f: add strmout CS checking, copy_dw register checking v3: agd5f: don't use cs_check_reg() for copy_dw checking as it will incorrectly patch the command stream for certain regs. v4: agd5f: add warning if safe reg check fails for copy_dw v5: agd5f: add stricter checking

[PATCH] drm/radeon/kms: add support for streamout v7

2012-01-27 Thread alexdeuc...@gmail.com
From: Marek Ol??k v2: agd5f: add strmout CS checking, copy_dw register checking v3: agd5f: don't use cs_check_reg() for copy_dw checking as it will incorrectly patch the command stream for certain regs. v4: agd5f: add warning if safe reg check fails for copy_dw v5: agd5f: add stricter checking

[PATCH] drm/radeon/kms: make some watermark messages debug only

2011-08-04 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 401c6eb..fe73da7 100644 --- a/drivers/gpu/drm/radeon/eve

[PATCH] drm/radeon/kms: don't enable connectors that are off in the hotplug handler

2011-08-09 Thread alexdeuc...@gmail.com
From: Alex Deucher If we get a hotplug event on an connector that is off, don't attempt to turn it on or off, it should already be off. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=728228 Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_connectors.c

[PATCH] drm/radeon/kms: fix regression is handling >2 heads on cedar/caicos

2011-08-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Need to add support for 4 crtcs when setting the possible crtcs for the encoders. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_encoders.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/rade

[PATCH] drm/radeon/kms: don't try to be smart in the hpd handler

2011-08-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Attempting to try and turn off disconnected display hw in the hotput handler lead to more problems than it helped. For now just register an event and only attempt the do something interesting with DP. Other connectors are just too problematic: - Some systems have an HPD pin a

[PATCH] drm/radeon/kms: add s/r quirk for Compaq Presario V5245EU

2011-08-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Fixes resume on Compaq Presario V5245EU. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=41642 Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_combios.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a

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

2011-12-01 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Cc: stable at kernel.org --- include/drm/drm_pciids.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index f81676f..4e4fbb8 100644 --- a/include/drm/drm_pciids.h +

[PATCH] drm/radeon/kms: fix return type for radeon_encoder_get_dp_bridge_encoder_id

2011-12-02 Thread alexdeuc...@gmail.com
From: Alex Deucher Seems like something got mis-merged here. Noticed by kallisti5 on IRC. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_encoders.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers

[PATCH] drm/radeon/kms: bail on BTC parts if MC ucode is missing

2011-12-09 Thread alexdeuc...@gmail.com
From: Alex Deucher We already do this for cayman, need to also do it for BTC parts. The default memory and voltage setup is not adequate for advanced operation. Continuing will result in an unusable display. Signed-off-by: Alex Deucher Cc: stable at kernel.org Cc: Jean Delvare --- drivers/g

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

2011-12-12 Thread alexdeuc...@gmail.com
From: Alex Deucher Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=43739 Signed-off-by: Alex Deucher Cc: stable at kernel.org --- include/drm/drm_pciids.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h

[PATCH] drm/radeon/kms: bail on BTC parts if MC ucode is missing

2011-12-21 Thread alexdeuc...@gmail.com
From: Alex Deucher We already do this for cayman, need to also do it for BTC parts. The default memory and voltage setup is not adequate for advanced operation. Continuing will result in an unusable display. Signed-off-by: Alex Deucher Cc: stable at kernel.org Cc: Jean Delvare --- drivers/g

[PATCH] drm/radeon/kms: add missing ring ready check in sync tests

2011-12-21 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_test.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_test.c b/drivers/gpu/drm/radeon/radeon_test.c index 210d99f..dc5dcf4 100644 --- a/drivers/gpu/drm/rade

[PATCH 1/2] drm/radeon: make ib size variable

2011-12-21 Thread alexdeuc...@gmail.com
From: Jerome Glisse This avoid to waste ib pool size and avoid a bunch of wait for previous ib to finish. Signed-off-by: Jerome Glisse Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c |2 +- drivers/gpu/drm/radeon/r600.c |2 +- drivers/gpu/drm/radeon/r60

[PATCH 2/2] drm/radeon: allocate semaphore from the ib pool

2011-12-21 Thread alexdeuc...@gmail.com
From: Jerome Glisse This allow to share the ib pool with semaphore and avoid having more bo around. Signed-off-by: Jerome Glisse Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 67 - drivers/gpu/drm/radeon/radeon_device.c|2 +- drivers/gpu/drm

[PATCH] drm/radeon/kms: clean up CS flags chunk processing

2011-12-21 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_cs.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index de3cac0..e30a36f 100644 --- a/drivers/gpu/drm/radeo

[PATCH] drm/radeon/kms/atom: fix possible segfault in pm setup

2011-12-30 Thread alexdeuc...@gmail.com
From: Alexander M?ller If we end up with no power states, don't look up current vddc. fixes: https://bugs.freedesktop.org/show_bug.cgi?id=44130 agd5f: fix patch formatting Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon_atombios.c |6 +- 1

[PATCH 1/4] drm/radeon/kms: split MSI check into a separate function

2011-11-01 Thread alexdeuc...@gmail.com
From: Alex Deucher This makes it easier to add quirks for certain systems. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_irq_kms.c | 29 +++-- 1 files changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/rade

[PATCH 3/4] drm/radeon/kms: Add MSI quirk for Dell RS690

2011-11-01 Thread alexdeuc...@gmail.com
From: Alex Deucher Some Dell laptops only seem to work with MSIs. This looks like a platform/bios bug. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=37679 Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_irq_kms.c |6 ++ 1 files changed, 6

[PATCH 2/4] drm/radeon/kms: Add MSI quirk for HP RS690

2011-11-01 Thread alexdeuc...@gmail.com
From: Alex Deucher Some HP laptops only seem to work with MSIs. This looks like a platform/bios bug. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=37679 Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_irq_kms.c |7 +++ 1 files changed, 7 i

[PATCH 4/4] drm/radeon/kms: add MSI module parameter

2011-11-01 Thread alexdeuc...@gmail.com
From: Alex Deucher Allow the user to override whether MSIs are enabled or not on supported ASICs. MSIs are disabled by default on IGP chips as they tend not to work. However certain IGP chips only seem to work with MSIs enabled. I suspect this is a chipset or bios issue, but I'm not sure what

[PATCH] drm/radeon/kms: fix DP setup on TRAVIS bridges

2011-11-02 Thread alexdeuc...@gmail.com
From: Alex Deucher Supposedly both NUTMEG and TRAVIS should use the same panel mode, but switching the panel mode for TRAVIS gets things working. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=41569 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_dp.c |7 +-- 1 fi

[PATCH] drm/radeon/kms: don't poll forever if MC GDDR link training fails

2011-11-02 Thread alexdeuc...@gmail.com
From: Alex Deucher Bail if we hit the timeout limit. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 56afaff..722cfb3 100644 --- a/drivers/

[PATCH 1/4] drm/radeon/kms: remove extraneous calls to radeon_pm_compute_clocks()

2011-11-04 Thread alexdeuc...@gmail.com
From: Alex Deucher It's already called via the DPMS functions. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |6 -- drivers/gpu/drm/radeon/radeon_legacy_crtc.c |6 -- 2 files changed, 0 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/r

[PATCH 2/4] drm/radeon/kms/pm: add a proper pm profile init function for fusion

2011-11-04 Thread alexdeuc...@gmail.com
From: Alex Deucher The new power tables need to be handled differently when setting up the profiles. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 51 + drivers/gpu/drm/radeon/r600.c| 58 -- driver

[PATCH 3/4] drm/radeon/kms: optimize r600_pm_profile_init

2011-11-04 Thread alexdeuc...@gmail.com
From: Alex Deucher Avoid a lot of extra loops through the pm state array. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600.c | 100 + 1 files changed, 32 insertions(+), 68 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu

[PATCH 4/4] drm/radeon/kms/pm: switch to dynamically allocating clock mode array

2011-11-04 Thread alexdeuc...@gmail.com
From: Alex Deucher On newer chips the number of clock modes per power state varies. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |3 +- drivers/gpu/drm/radeon/radeon_atombios.c | 118 - 2 files changed, 82 insertions(+), 39 deletions

[PATCH] drm/radeon/kms: make an aux failure debug only

2011-11-08 Thread alexdeuc...@gmail.com
From: Alex Deucher Can happen when there is no DP panel attached, confusing users. Make it debug only. Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/atombios_dp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH] drm/radeon/kms: fix use of vram scratch page on evergreen/ni

2011-11-10 Thread alexdeuc...@gmail.com
From: Alex Deucher This hunk seems to have gotten lost when I rebased the patch. Reported-by: Sylvain Bertrand Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/dri

[PATCH] drm/radeon/kms/combios: fix dynamic allocation of PM clock modes

2011-11-12 Thread alexdeuc...@gmail.com
From: Alex Deucher I missed the combios path when I updated the atombios pm code. Reported by amarsh04 on IRC. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_combios.c | 27 +++ 1 files changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/gp

[PATCH] drm/radeon: add some missing FireMV pci ids

2011-11-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Noticed by Egbert. Signed-off-by: Alex Deucher Cc: stable at kernel.org Cc: Egbert Eich --- include/drm/drm_pciids.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index a13e1d8..82fbcf5 100644 -

[PATCH] drm/radeon/kms: fix up gpio i2c mask bits for r4xx

2011-11-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Fixes i2c test failures when i2c_algo_bit.bit_test=1. The hw doesn't actually require a mask, so just set it to the default mask bits for r1xx-r4xx radeon ddc. Signed-off-by: Alex Deucher Cc: stable at kernel.org Cc: Jean Delvare --- drivers/gpu/drm/radeon/radeon_atombios.

[PATCH] drm/radeon/kms: fix segfault in pm rework

2011-11-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c | 20 +--- 1 files changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 6b5fbc9..0e9ad6f 10

[PATCH] drm/radeon/kms: fix up gpio i2c mask bits for r4xx for real

2011-11-21 Thread alexdeuc...@gmail.com
From: Alex Deucher Fixes i2c test failures when i2c_algo_bit.bit_test=1. The hw doesn't actually require a mask, so just set it to the default mask bits for r1xx-r4xx radeon ddc. I missed this part the first time through. Signed-off-by: Alex Deucher Cc: stable at kernel.org Cc: Jean Delvare

<    1   2   3   4   5   6   >