[PATCH] drm/radeon: use 10khz units for audio dto calculation

2013-05-13 Thread alexdeuc...@gmail.com
From: Alex Deucher May produce better results with some modes and also avoids overflows on DCE2.x/3.x devices. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/evergreen_hdmi.c |7 +++ drivers/gpu/drm/radeon/r600_hdmi.c | 11 +-- 2 fil

[PATCH 1/8] drm/radeon: add chip family for Hainan

2013-05-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h|1 + drivers/gpu/drm/radeon/radeon_device.c |1 + drivers/gpu/drm/radeon/radeon_family.h |1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/

[PATCH 2/8] drm/radeon: fill in GPU init for Hainan

2013-05-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 20 +++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index f0b6c2f..9fbfb89 100644 --- a/drivers/gpu/drm/radeon/si.c +

[PATCH 3/8] drm/radeon: don't touch DCE or VGA regs on Hainan (v2)

2013-05-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Hainan has no display hardware: - no DCE (crtc, uniphy, dac, etc.) - no VGA v2: fix bios fetch Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 27 +-- drivers/gpu/drm/radeon/radeon_bios.c | 28

[PATCH 4/8] drm/radeon: fill in ucode loading support for Hainan

2013-05-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 58 +++ 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index 9878071..798b8b3 100644 --- a/driver

[PATCH 5/8] drm/radeon: radeon-asic updates for Hainan

2013-05-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c index 6417132..44a7a41 100644 --- a/drivers/gpu/drm/r

[PATCH 6/8] drm/radeon: sun/hainan chips do not have UVD

2013-05-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Skip UVD handling on them. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |1 + drivers/gpu/drm/radeon/si.c | 72 --- 2 files changed, 45 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon

[PATCH 7/8] drm/radeon: add golden register settings for Hainan

2013-05-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 122 +++ 1 files changed, 122 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index 4b07820..f6c1399 100644 --- a/drive

[PATCH 8/8] drm/radeon: add Hainan pci ids

2013-05-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- include/drm/drm_pciids.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index c2af598..bb1bc48 100644 --- a/include/drm/drm_pciids.h +++ b/include/drm/drm_pciids

[PATCH 1/9] drm/radeon: add chip family for Hainan

2013-05-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/radeon.h|1 + drivers/gpu/drm/radeon/radeon_device.c |1 + drivers/gpu/drm/radeon/radeon_family.h |1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/driv

[PATCH 2/9] drm/radeon: fill in GPU init for Hainan (v2)

2013-05-14 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: fix gb_addr_config value Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 20 +++- drivers/gpu/drm/radeon/sid.h |1 + 2 files changed, 20 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/

[PATCH 3/9] drm/radeon: don't touch DCE or VGA regs on Hainan (v2)

2013-05-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Hainan has no display hardware: - no DCE (crtc, uniphy, dac, etc.) - no VGA v2: fix bios fetch Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/evergreen.c | 27 +-- drivers/gpu/drm/radeon/radeon_bios.c | 28

[PATCH 4/9] drm/radeon: fill in ucode loading support for Hainan

2013-05-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/si.c | 58 +++ 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index a048ec

[PATCH 5/9] drm/radeon: radeon-asic updates for Hainan

2013-05-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/radeon_asic.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c index 6417132..44a7a41

[PATCH 6/9] drm/radeon: track which asics have UVD

2013-05-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |1 + drivers/gpu/drm/radeon/radeon_asic.c | 17 + 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h inde

[PATCH 7/9] drm/radeon: sun/hainan chips do not have UVD (v2)

2013-05-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Skip UVD handling on them. v2: split has_uvd tracking into separate patch Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 67 +-- 1 files changed, 39 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/radeon/

[PATCH 8/9] drm/radeon: add golden register settings for Hainan

2013-05-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/si.c | 122 +++ 1 files changed, 122 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index c2188

[PATCH 9/9] drm/radeon: add Hainan pci ids

2013-05-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- include/drm/drm_pciids.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index c2af598..bb1bc48 100644 --- a/include/drm/drm_pciids.

[pull] radeon drm-fixes-3.10

2013-05-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just some minor bug fixes. The following changes since commit b7cb1c50c828adaee95e8ada0e55918686245992: Merge branch 'drm-nouveau-fixes-3.10' of git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (2013-05-20 13:31:36 +1000) are available in th

[pull] radeon drm-fixes-3.10-sun

2013-05-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, This is the pull request for AMD Sun/Hainan support. I've split it out separately from my regular fixes stream. Hainan is a new SI asic with no UVD or DCE hardware. The patches are minimally invasive; basically just pci ids and skipping UVD and DCE init for this

[PATCH] drm/radeon: fix typo in cu_per_sh on verde

2013-05-21 Thread alexdeuc...@gmail.com
From: Alex Deucher Should be 5 rather than 2. Noticed by sroland and glisse on IRC. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/si.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm

[PATCH 1/2] drm/radeon: fix card_posted check for newer asics

2013-05-22 Thread alexdeuc...@gmail.com
From: Alex Deucher Newer asics have variable numbers of crtcs. Use that rather than the asic family to determine which crtcs to check. This avoids checking non-existent crtcs or missing crtcs on certain asics. Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/rade

[PATCH 2/2] drm/radeon: don't check crtcs in card_posted() on cards without DCE

2013-05-22 Thread alexdeuc...@gmail.com
From: Alex Deucher Skip checking crtcs in hardware without them. Avoids checking non-existent hardware. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_device.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/

[PATCH] drm/radeon: revert Apple re-POST hack

2013-05-22 Thread alexdeuc...@gmail.com
From: Alex Deucher This reverts: drm/radeon: re-POST the asic on Apple hardware when booted via EFI That patch prevents UVD from working on macs when booted in EFI mode. The original patch may not be required any more due to other fixes for UEFI on non-Mac platforms, but I don't have any Macs.

[PATCH] drm/radeon: narrow scope of Apple re-POST hack

2013-05-29 Thread alexdeuc...@gmail.com
From: Alex Deucher This narrows the scope of the apple re-POST hack added in: drm/radeon: re-POST the asic on Apple hardware when booted via EFI That patch prevents UVD from working on macs when booted in EFI mode. The original patch fixed macbook2,1 systems which were r5xx and hence have no UV

[pull] radeon drm-fixes-3.10

2013-05-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just a few minor fixes for radeon. The following changes since commit c89b65e7fffef745bdd36c372aa0dea778fecbab: qxl: fix Kconfig deps - select FB_DEFERRED_IO (2013-05-28 17:03:37 +1000) are available in the git repository at: git://people.freedesktop.org/~agd

[PATCH 1/2] drm/radeon: prevent crash in the ring space allocation

2013-01-31 Thread alexdeuc...@gmail.com
From: Alex Deucher If the requested number of DWs on the ring is larger than the size of the ring itself, return an error. In testing with large VM updates, we've seen crashes when we try and allocate more space on the ring than the total size of the ring without checking. This prevents the cra

[PATCH 2/2] drm/radeon: switch back to the CP ring for VM PT updates

2013-01-31 Thread alexdeuc...@gmail.com
From: Alex Deucher For large VM page table updates, we can sometimes generate more packets than there is space on the ring. This happens more readily with the DMA ring since it is 64K (vs 1M for the CP). For now, switch back to the CP. For the next kernel, I have a patch to utilize IBs for VM

[drm-next] drm/radeon: use IBs for VM page table updates

2013-01-31 Thread alexdeuc...@gmail.com
From: Alex Deucher For very large page table updates, we can exceed the size of the ring. To avoid this, use an IB to perform the page table update. Signed-off-by: Alex Deucher --- We may want to do something similar for the BO move code as we could potentially run out of ring space on a smal

[pull] radeon drm-fixes-3.8

2013-01-31 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more radeon fixes for 3.8. Mostly small stuff. The big change is disabling the use of the DMA ring for VM PT updates. This reverts back to the 3.7 behavior. Problem is we can get huge PT updates in certain cases that are too big for the DMA ring. I've got p

[pull] radeon drm-next-3.11

2013-07-01 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more patches for 3.11: - add debugfs interface to check current DPM state - Fix a bug that caused problems with DPM on BTC+ asics. The following changes since commit f7d452f4fd5d86f764807a1234a407deb5b105ef: Merge branch 'drm-nouveau-next' of git://anongit.

[pull] radeon drm-next-3.11

2013-07-03 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more DPM fixes. The following changes since commit 7982128c3d447df27db963af67bc6b8dc7efb1de: drm/radeon/dpm: add debugfs support for SI (2013-07-01 16:09:06 -0400) are available in the git repository at: git://people.freedesktop.org/~agd5f/linux drm-next-

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

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

[pull] radeon drm-next-3.11

2013-07-05 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more DPM patches and some bug fixes. Adds a sysfs interface to force dpm performance levels. The following changes since commit 338a95a95508537e23c82d59a2d87be6fde4b6ff: drm/radeon/sumo: implement support for disable_gfx_power_gating_in_uvd flag (2013-07-0

[pull] radeon drm-next-3.11

2013-07-08 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more DPM fixes based on user testing. The following changes since commit 9b5de59629d2e58eab41e2f0e5cc60b3c395f1c3: drm/radeon/dpm: implement force performance level for TN (2013-07-05 18:10:06 -0400) are available in the git repository at: git://people.f

[PATCH 1/3] drm/radeon: Disable dma rings for bo moves on r6xx

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher They still seem to cause instability on some r6xx parts. As a follow up, we can switch to using CP DMA for bo moves on r6xx as a lighter weight alternative to using the 3D engine. A version of this patch should also go to stable kernels. Tested-by: J.N. Signed-off-by: Alex D

[PATCH 2/3] drm/radeon: implement bo copy callback using CP DMA (v2)

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Lighter weight than using the 3D engine. v2: fix ring count Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600.c| 81 ++ drivers/gpu/drm/radeon/r600d.h |1 + drivers/gpu/drm/radeon/radeon_asic.h |3 + 3 files

[PATCH 3/3] drm/radeon: use CP DMA on r6xx for bo moves

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Lighter weight than using the 3D engine. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c index ea5c

[PATCH 1/3] drm/radeon: add fault decode function for cayman/TN (v2)

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Helpful for debugging GPUVM errors as we can see what hw block and page generated the fault in the log. v2: simplify fault decoding Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/evergreen.c | 10 ++- drivers/gpu/drm/radeon/ni.c

[PATCH 2/3] drm/radeon: add fault decode function for SI (v2)

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Helpful for debugging GPUVM errors as we can see what hw block and page generated the fault in the log. v2: simplify fault decoding Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/si.c | 272 +-

[PATCH 3/3] drm/radeon: add fault decode function for CIK

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Helpful for debugging GPUVM errors as we can see what hw block and page generated the fault in the log. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 32 ++-- drivers/gpu/drm/radeon/cikd.h | 16 2 files chang

[PATCH 1/2] drm/radeon: allow selection of alignment in the sub-allocator

2013-07-12 Thread alexdeuc...@gmail.com
From: Alex Deucher There are cases where we need more than 4k alignment. No functional change with this commit. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h|1 + drivers/gpu/drm/radeon/radeon_gart.c |1 + drivers/gpu/drm/radeon/radeon_object.h |2 +- d

[PATCH 2/2] drm/radeon: align VM PTBs (Page Table Blocks) to 32K

2013-07-12 Thread alexdeuc...@gmail.com
From: Alex Deucher Covers requirements of all current asics. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |5 + drivers/gpu/drm/radeon/radeon_gart.c | 12 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeo

[pull] radeon drm-fixes-3.11

2013-07-15 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Bug fixes for radeon all over the place. Big one is a fix for ttm which causes hangs on boot for a number of systems. The following changes since commit 774d8e34e46506222bb5e2888e3ef42b2775715f: Merge branch 'drm-next-3.11' of git://people.freedesktop.org/~agd5f

[pull] radeon drm-fixes-3.11

2013-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just a few DPM fixes. The following changes since commit d1ce3d5496f2a7c90dd00a9133572f931d2acdcc: uvesafb: Really allow mtrr being 0, as documented and warn()ed (2013-07-16 10:24:28 +1000) are available in the git repository at: git://people.freedesktop.org/~

[pull] radeon drm-fixes-3.11

2013-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Take two. Just some DPM fixes. The following changes since commit d1ce3d5496f2a7c90dd00a9133572f931d2acdcc: uvesafb: Really allow mtrr being 0, as documented and warn()ed (2013-07-16 10:24:28 +1000) are available in the git repository at: git://people.freedes

[pull] radeon drm-fixes-3.11

2013-07-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just a few radeon bug fixes. The following changes since commit 058ca4a22ebf22ea1cbedd6cc0340ed1e2e94ee1: Merge tag 'drm-intel-fixes-2013-07-22' of git://people.freedesktop.org/~danvet/drm-intel into drm-fixes (2013-07-22 16:14:26 +1000) are available in the

[pull] radeon drm-fixes-3.11

2013-07-25 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just a few more patches to fix some issues with dpm on rv6xx. The following changes since commit cef1d00cd56f600121ad121875655ad410a001b8: drm/radeon: fix combios tables on older cards (2013-07-22 15:57:14 -0400) are available in the git repository at: git://

[pull] radeon drm-fixes-3.11

2013-07-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more radeon bug fixes, mostly for SI dpm. At this point dpm is pretty solid across the majority of asics. I think we mostly just have corner cases and fixing up some of the trickier features at this point. The following changes since commit bf903e4141fce4b350

[pull] radeon drm-fixes-3.11

2013-07-30 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more fixes for radeon on top of the ones I sent yesterday. - more fixes for SI dpm - fix DP on some rv6xx boards The following changes since commit 63f22d0e98cf74adf4ecfb25099607239b00c751: drm/radeon/dpm: fix and enable reclocking on SI (2013-07-29 18:14:42

[pull] radeon drm-fixes-3.10

2013-06-04 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just a few fixes for radeon. The big one is a fix for hangs on older asics due to the ordering of interrupt initialization. The following changes since commit 91f8f105f2b82b4a38dee2d74760bc39d40ec42c: drm/mgag200: Add missing write to index before accessing dat

[PATCH] drm/radeon: fix AVI infoframe generation

2013-06-07 Thread alexdeuc...@gmail.com
From: Alex Deucher - remove adding 2 to checksum, this breaks certain monitors - properly emit the AVI infoframe version, not emitting the version breaks some monitors. This should fix blank screen when HDMI audio is enabled on certain monitors. Signed-off-by: Alex Deucher Cc: Rafa? Mi?ecki -

[pull] radeon drm-fixes-3.10

2013-06-13 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just two small fixes from Jerome. Remove some harmless but confusing VM related error messages and fix a regression with suspend and UVD. The following changes since commit df63d3ecbca514bad99513b2401448d19a9bb92e: Merge tag 'drm-intel-fixes-2013-06-11' of git

[pull] radeon drm-fixes-3.10

2013-06-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just one more fix for radeon. Patch from Jerome to avoid GPU resets due to false positives when the ring is empty. The following changes since commit c139b1ee4e36374af705660af6172d7477352792: drm/radeon: fix UVD on big endian (2013-06-14 17:05:57 -0400) are

[PATCH 000/165] radeon drm-next patches

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher These are the radeon patches for 3.11. Some of these patches are huge so, it might be easier to review things here: http://cgit.freedesktop.org/~agd5f/linux/log/?h=drm-next-3.11-wip I'll send a formal pull in request in the next day or two. Highlights of this series: - DPM s

[PATCH 001/165] drm/radeon: fix AVI infoframe generation

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher - remove adding 2 to checksum, this is incorrect. This was incorrectly introduced in: 92db7f6c860b8190571a9dc1fcbc16d003422fe8 http://lists.freedesktop.org/archives/dri-devel/2011-December/017717.html However, the off by 2 was due to adding the version twice. >From the example

[PATCH 003/165] drm/radeon: add a reset work handler

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher New asics support non-privileged IBs. This allows us to skip IB checking in the driver since the hardware will check the command buffers for us. When using non-privileged IBs, if the CP encounters an illegal register in the command stream, it will halt and generate an interru

[PATCH 002/165] drm/radeon: add backlight quirk for hybrid mac

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Mac laptops with multiple GPUs apparently use the gmux driver for backlight control. Don't register a radeon backlight interface. We may need to add other pci ids for other hybrid mac laptops. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=65377 Signed-off-by: Alex Deu

[PATCH 007/165] drm/radeon: add gpu init support for CIK (v9)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: tiling fixes v3: more tiling fixes v4: more tiling fixes v5: additional register init v6: rebase v7: fix gb_addr_config for KV/KB v8: drop wip KV bits for now, add missing config reg v9: fix cu count on Bonaire Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/Makef

[PATCH 010/165] drm/radeon/cik: stop page faults from hanging the system (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Redirect invalid memory accesses to the default page instead of locking up the memory controller. v2: rebase on top of 2 level PTs Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 15 +-- drivers/gpu/drm/radeon/cikd.h | 11 +++ 2 files

[PATCH 011/165] drm/radeon: add initial ucode loading for CIK (v5)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Currently the driver required 6 sets of ucode: 1. pfp - pre-fetch parser, part of the GFX CP 2. me - micro engine, part of the GFX CP 3. ce - constant engine, part of the GFX CP 4. rlc - interrupt, etc. controller 5. mc - memory controller (discrete cards only) 6. mec - compute

[PATCH 005/165] drm/radeon: add DCE8 macro for CIK

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index f5fccbb..b50a786 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b

[PATCH 016/165] drm/radeon: implement async vm_flush for the CP (v7)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Update the page table base address and flush the VM TLB using the CP. v2: update for 2 level PTs v3: use new packet for invalidate v4: update SH_MEM* regs when flushing the VM v5: add pfp sync, go back to old style vm TLB invalidate v6: fix hdp flush packet count v7: use old s

[PATCH 004/165] drm/radeon: add CIK chip families

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_device.c |3 +++ drivers/gpu/drm/radeon/radeon_family.h |3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.

[PATCH 019/165] drm/radeon/cik: log and handle VM page fault interrupts

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 10 ++ drivers/gpu/drm/radeon/cikd.h |4 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index 72c7e83..b70f017 10064

[PATCH 020/165] drm/radeon/cik: add support for sDMA dma engines (v8)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher CIK has new asynchronous DMA engines called sDMA (system DMA). Each engine supports 1 ring buffer for kernel and gfx and 2 userspace queues for compute. TODO: fill in the compute setup. v2: update to the latest reset code v3: remove ib_parse v4: fix copy_dma() v5: drop WIP c

[PATCH 009/165] drm/radeon: add support for MC/VM setup on CIK (v6)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher The vm callbacks are the same as the SI ones right now (same regs and bits). We could share the SI variants, and I may yet do that, but I figured I would add CIK specific ones for now in case we need to change anything. V2: add documentation, minor fixes. V3: integrate vram of

[PATCH 025/165] drm/radeon: upstream atombios.h updates (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: further updates Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios.h | 486 ++--- 1 files changed, 454 insertions(+), 32 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios.h b/drivers/gpu/drm/radeon/atombios.h index

[PATCH 023/165] drm/radeon/cik: fill in startup/shutdown callbacks (v4)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: update to latest driver changes v3: properly tear down vm on suspend v4: fix up irq init ordering Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 340 ++ 1 files changed, 340 insertions(+), 0 deletions(-) diff --gi

[PATCH 008/165] drm/radeon: Add support for CIK GPU reset (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: split soft reset into compute and gfx. Still need to make reset more fine grained, but this should be a start. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 197 + drivers/gpu/drm/radeon/cikd.h | 80 ++

[PATCH 006/165] drm/radeon: adapt to PCI BAR changes on CIK

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher register BAR is now at PCI BAR 5. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_device.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index c2

[PATCH 014/165] drm/radeon: add IB and fence dispatch functions for CIK gfx (v7)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher For gfx ring only. Compute is still todo. v2: add documentation v3: update to latest reset changes, integrate emit update patch. v4: fix count on wait_reg_mem for HDP flush v5: use old hdp flush method for fence v6: set valid bit for IB v7: cleanup for release Signed-off-by:

[PATCH 012/165] drm/radeon: add support mc ucode loading on CIK (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Load the GDDR5 ucode and train the links. v2: update ucode Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 116 + drivers/gpu/drm/radeon/cikd.h | 16 ++ 2 files changed, 132 insertions(+), 0 deletions(-) diff -

[PATCH 027/165] drm/radeon: handle the integrated thermal controller on CI

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher No support for reading the temperature yet. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |1 + drivers/gpu/drm/radeon/radeon_atombios.c |6 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon

[PATCH 013/165] drm/radeon: Add CP init for CIK (v7)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Sets up the GFX ring and loads ucode for GFX and Compute. Todo: - handle compute queue setup. v2: add documentation v3: integrate with latest reset changes v4: additional init fixes v5: scratch reg write back no longer supported on CIK v6: properly set CP_RB0_BASE_HI v7: reba

[PATCH 018/165] drm/radeon: add support for interrupts on CIK (v5)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Todo: - handle interrupts for compute queues v2: add documentation v3: update to latest reset code v4: update to latest illegal CP handling v5: fix missing break in interrupt handler switch statement Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c| 840 +++

[PATCH 015/165] drm/radeon: add ring and IB tests for CIK (v3)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: add documenation v3: update the latest ib changes Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 114 ++ 1 files changed, 114 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/d

[PATCH 031/165] drm/radeon/dce8: properly handle interlaced timing

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher The register bits changed on DCE8 compared to previous families. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c |8 +++- drivers/gpu/drm/radeon/cik_reg.h |3 +++ 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a

[PATCH 021/165] drm/radeon: implement async vm_flush for the sDMA (v6)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Update the page table base address and flush the VM TLB using the sDMA. V2: update for 2 level PTs V3: update vm flush V4: update SH_MEM* regs V5: switch back to old style VM TLB invalidate V6: fix packet formatting Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik

[PATCH 022/165] drm/radeon/cik: add support for doing async VM pt updates (v5)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Async page table updates using the sDMA engine. sDMA has a special packet for updating entries for contiguous pages that reduces overhead. v2: add support for and use the CP for now. v3: update for 2 level PTs v4: rebase, fix DMA packet v5: switch to using an IB Signed-off-b

[PATCH 017/165] drm/radeon: Add support for RLC init on CIK (v4)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher RLC handles the interrupt controller and other tasks on the GPU. v2: add documentation v3: update programming sequence v4: additional setup Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 142 + drivers/gpu/drm/radeon

[PATCH 036/165] drm/radeon: add support pll selection for DCE8 (v4)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: make PPLL0 is available for non-DP on CI v3: rebase changes, update documentation v4: fix kabini Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 48 +++- 1 files changed, 47 insertions(+), 1 deletions(-) diff --git

[PATCH 026/165] drm/radeon: atombios power table updates (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: further updates Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios.h | 58 ++-- 1 files changed, 54 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios.h b/drivers/gpu/drm/radeon/atombios.h index f19

[PATCH 038/165] drm/radeon: use frac fb div on DCE8

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 24eee7c..c7ad4b9 100644 --- a/drivers/gpu/dr

[PATCH 039/165] drm/radeon: add SS override support for KB/KV

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 88a55af..3236755 10064

[PATCH 024/165] drm/radeon: upstream ObjectID.h updates (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: further updates Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ObjectID.h | 40 + 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/ObjectID.h b/drivers/gpu/drm/radeon/ObjectID.h index ca

[PATCH 040/165] drm/radeon: Update radeon_info_ioctl for CIK (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: rebase changes, fix a couple missed cases Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_kms.c | 33 ++--- 1 files changed, 26 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/

[PATCH 029/165] drm/radeon/dce8: add support for display watermark setup

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 537 + drivers/gpu/drm/radeon/cikd.h | 11 + 2 files changed, 548 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c

[PATCH 041/165] drm/radeon: add get_gpu_clock_counter() callback for cik

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Used for GPU clock counter snapshots. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 21 + drivers/gpu/drm/radeon/cikd.h|4 +++- drivers/gpu/drm/radeon/radeon_asic.h |5 + 3 files changed, 29 insertions(+), 1

[PATCH 042/165] drm/radeon: update CIK soft reset

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Update to the newer programming model. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 387 + drivers/gpu/drm/radeon/cikd.h | 12 ++ 2 files changed, 253 insertions(+), 146 deletions(-) diff --git a/drivers/gpu/drm/

[PATCH 028/165] drm/radeon: update power state parsing for CI

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index cb3273b..88a55af 100644 --- a

[PATCH 030/165] drm/radeon/cik: add hw cursor support (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher CIK (DCE8) hw cursors are programmed the same as evergreen (DCE4) with the following caveats: - cursors are now 128x128 pixels - new alpha blend enable bit v2: rebase Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik_reg.h| 65

[PATCH 043/165] drm/radeon: add indirect register accessors for SMC registers

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_reg.h |4 drivers/gpu/drm/radeon/radeon.h| 17 + 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_reg.h b/drivers/gpu/drm/radeo

[PATCH 035/165] drm/radeon: update DISPCLK programming for DCE8

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 4ba5184..586c452 100644 --- a/drivers/gpu/dr

[PATCH 033/165] drm/radeon/atom: add DCE8 encoder support

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c | 27 --- drivers/gpu/drm/radeon/radeon_display.c|5 +++-- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c

[PATCH 044/165] drm/radeon: add get_xclk() callback for CIK

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 22 ++ drivers/gpu/drm/radeon/cikd.h|7 +++ drivers/gpu/drm/radeon/radeon_asic.h |1 + 3 files changed, 30 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/

[PATCH 046/165] drm/radeon: update radeon_atom_get_clock_dividers() for SI

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher SI uses v5 of the command table and uses a different table for memory PLLs. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/driv

[PATCH 034/165] drm/radeon/atom: add support for new DVO tables

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index 1bf13b3..092275d 100644 -

[PATCH 032/165] drm/radeon/dce8: crtc_set_base updates

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Some new fields and DESKTOP_HEIGHT register moved. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 34 -- drivers/gpu/drm/radeon/cik_reg.h | 79 2 files changed, 108 insertions(+), 5 deletions(-)

[PATCH 048/165] drm/radeon: add UVD support for CIK (v3)

2013-06-26 Thread alexdeuc...@gmail.com
From: Christian K?nig v2: agd5f: fix clock dividers setup for bonaire v3: agd5f: rebase Signed-off-by: Christian K?nig Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 111 ++ drivers/gpu/drm/radeon/cikd.h| 28 + drivers

<    1   2   3   4   5   6   >