[PATCH] drm/radeon/kms/atom: unify i2c gpio table handling

2011-11-21 Thread alexdeuc...@gmail.com
From: Alex Deucher Split the quirks and i2c_rec assignment into separate functions used by both radeon_lookup_i2c_gpio() and radeon_atombios_i2c_init(). This avoids duplicating code and cases where quirks were only added to one of the functions. Signed-off-by: Alex Deucher Cc: Jean Delvare --

[PATCH] drm/radeon/kms: fix i2c pad masks on rs4xx

2010-11-18 Thread alexdeuc...@gmail.com
From: Alex Deucher These got lost in the last i2c cleanup. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=23222 Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_combios.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --

[PATCH] drm/radeon/kms: set encoder type to DVI for HDMI on evergreen

2010-08-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Fixes the pink line that shows up with some hdmi monitors. This will need to be revisited when audio support is added. Fixes: http://bugs.freedesktop.org/show_bug.cgi?id=27452 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_encoders.c | 32 +

[PATCH] drm/radeon/kms: add info query for backend map

2011-07-15 Thread alexdeuc...@gmail.com
From: Alex Deucher The 3D driver need to get the pipe to backend map to certain things. Add a query to get the info. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |1 + drivers/gpu/drm/radeon/ni.c |1 + drivers/gpu/drm/radeon/r600.c |1 + driver

[PATCH] drm/radeon/kms: fix i2c map for rv250/280

2011-07-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Those chips have crt2_ddc bus. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=39672 Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_combios.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/dr

[PATCH] drm/radeon/kms: add missing vddci setting on NI+

2011-07-25 Thread alexdeuc...@gmail.com
From: Alex Deucher Need to add vddci setting to pm init as well as resume. Fixes hangs on load on some boards. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=38754 Signed-off-by: Alex Deucher Cc: stable at kernel.org --- drivers/gpu/drm/radeon/radeon_pm.c |3 +++ 1 files changed, 3

[PATCH] drm/radeon/kms: fix version comment due to merge timing

2011-07-27 Thread alexdeuc...@gmail.com
From: Alex Deucher Compute cs support was actually added in 2.11.0 rather than 2.10.0, but the patch was written prior. Update comment to match. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_drv.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/driv

[PATCH] drm/radeon/kms: add thermal chip quirk for asus 9600xt

2011-07-30 Thread alexdeuc...@gmail.com
From: Alex Deucher The board has an lm63 compatible thermal chip, but no thermal chip entry in the vbios tables. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=39513 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_combios.c | 21 - 1 files changed, 20

[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 changed in 3.6. The follow

[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 plymouth + dumb support (2012-09-

[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 patch is to make fences as

[PATCH] drm/radeon: Always flush the VM

2013-04-16 Thread alexdeuc...@gmail.com
From: Jerome Glisse This is slightly cleaned up version of Jerome's patch. There seems to be an issue tracking the last flush of the VM which results in hangs in certain cases when VM is used. For now just flush the VM for every IB. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=62959 http

[pull] radeon drm-next-3.10

2013-04-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, This is the initial 3.10 pull request for radeon. The big changes here are UVD support and proper tiling support for SI. The rest is bug fixes. I hope to have another pull request later in the week with some new things we've been working on internally. The followi

[PATCH 0/3] Additional radeon audio cleanups

2013-04-18 Thread alexdeuc...@gmail.com
From: Alex Deucher This set of patches does some additional audio cleanups and switches to per asic callbacks for audio. Alex Deucher (3): drm/radeon: clean up audio supported check drm/radeon: clean up audio dto programming drm/radeon: switch audio handling to use callbacks drivers/gpu/

[PATCH 1/3] drm/radeon: clean up audio supported check

2013-04-18 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_audio.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_audio.c b/drivers/gpu/drm/radeon/r600_audio.c index cb03fe2..72561e4 100644 --- a/drivers/gpu/drm/rade

[PATCH 2/3] drm/radeon: clean up audio dto programming

2013-04-18 Thread alexdeuc...@gmail.com
From: Alex Deucher Split into DCE2/3 and DCE4/5 variants. Still todo is to calculate the DTO dividers properly. Add proper formula to the comments. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_hdmi.c | 26 +- drivers/gpu/drm/radeon/r600_audio.c | 59 ---

[PATCH 3/3] drm/radeon: switch audio handling to use callbacks

2013-04-18 Thread alexdeuc...@gmail.com
From: Alex Deucher Register audio callbacks for asic where we support audio. Cleans up the code and makes it easier to add support for newer asics. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c | 17 ++--- drivers/gpu/drm/radeon/evergreen_hdmi.c| 17 +

[PATCH] drm/radeon: fix endian bugs in radeon_atom_get_clock_dividers()

2013-04-22 Thread alexdeuc...@gmail.com
From: Alex Deucher Reported-by: Dan Carpenter Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios.h|2 ++ drivers/gpu/drm/radeon/radeon_atombios.c |6 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios.h b/drivers/

[PATCH] drm/radeon: fix up audio dto programming for DCE2

2013-04-22 Thread alexdeuc...@gmail.com
From: Alex Deucher Uses a different register than DCE3 asics. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_hdmi.c | 15 --- drivers/gpu/drm/radeon/r600d.h |7 ++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/r60

[pull] radeon drm-next-3.10-2

2013-04-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more updates for 3.10. Nothing too major here. Mostly bug fixes. The big changes are adding golden register init for 7xx and newer asics and some audio cleanups. The following changes since commit f9df7ea33c87291365d943828bec852874f15c2f: Merge tag 'drm/te

[PATCH] drm/radeon: fix endian bugs in atom_allocate_fb_scratch()

2013-04-24 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/atom.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c index 46a9c37..fb441a7 100644 --- a/drivers/

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

2013-04-25 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 918e8fe..52300c7 100644 --- a/include/drm/drm_pciids.h +

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

2013-04-25 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/ni.c |6 -- include/drm/drm_pciids.h|2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 7436b

[PATCH] drm/radeon: fix 64 bit divide in SI spm code

2013-08-01 Thread alexdeuc...@gmail.com
From: Alex Deucher Forgot to use the appropriate math64 function. Signed-off-by: Alex Deucher --- This is already in my -fixes queue, but for those that are running into issues, here's the fix. drivers/gpu/drm/radeon/si_dpm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH] drm/radeon: update ib_execute for SI

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher When submitting a CONST_IB, emit a SWITCH_BUFFER packet before the CONST_IB. This isn't strictly necessary (the driver will work fine without it), but is good practice and allows for more flexible DE/CE sychronization options in the future. Current userspace drivers do not ta

[PATCH 00/10] Radeon documentation updates for drm-next

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Same as my previous set, but rebased on Christian's latest ring changes for drm-next: http://cgit.freedesktop.org/~deathsimple/linux/log/?h=wip Alex Deucher (10): drm/radeon: document radeon_device.c (v2) drm/radeon: document radeon_kms.c drm/radeon: document radeon_irq_

[PATCH 01/10] drm/radeon: document radeon_device.c (v2)

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_device.c v2: split out general descriptions as per Christian's comments. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_device.c | 313 +++- 1 files changed, 310 insertions(+),

[PATCH 02/10] drm/radeon: document radeon_kms.c

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_kms.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_kms.c | 126 +++ 1 files changed, 126 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b

[PATCH 03/10] drm/radeon: document radeon_irq_kms.c

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_irq_kms.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_irq_kms.c | 150 +++ 1 files changed, 150 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_irq_

[PATCH 04/10] drm/radeon: document radeon_asic.c

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_asic.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c | 46 ++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c

[PATCH 05/10] drm/radeon: document radeon_fence.c (v2)

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_fence.c v2: address Christian's comments: - split common concept description into it's own comment - fix description of intr parameter - Improve description of -EDEADLK error Signed-off-by: Alex Deucher --- drivers/gpu/d

[PATCH 06/10] drm/radeon: document radeon_ring.c (v3)

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_ring.c v2: adjust per Christian's suggestions v3: adjust per Christian's latest patches Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_ring.c | 207 +- 1 files changed, 204

[PATCH 07/10] drm/radeon: document non-VM functions in radeon_gart.c (v2)

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Document the non-VM functions in radeon_gart.c v2: adjust per Christian's suggestions Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_gart.c | 125 +- 1 files changed, 122 insertions(+), 3 deletions(-) diff --git a/drivers/gpu

[PATCH 08/10] drm/radeon: document VM functions in radeon_gart.c (v3)

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Document the VM functions in radeon_gart.c v2: adjust per Christian's suggestions v3: adjust to Christains's latest changes Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_gart.c | 142 ++ 1 files changed, 142 insertions(+), 0

[PATCH 09/10] drm/radeon: start to document the functions r100.c

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Still a lot more to do. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c | 127 - 1 files changed, 124 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 4ee5a7

[PATCH 10/10] drm/radeon: start to document evergreen.c

2012-07-16 Thread alexdeuc...@gmail.com
From: Alex Deucher Still a lot to do. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 120 1 files changed, 120 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index

[PATCH] drm/radeon: update ib_execute for SI (v2)

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher When submitting a CONST_IB, emit a SWITCH_BUFFER packet before the CONST_IB. This isn't strictly necessary (the driver will work fine without it), but is good practice and allows for more flexible DE/CE sychronization options in the future. Current userspace drivers do not ta

[PATCH 00/16] radeon drm-next patches

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Radeon drm-next patches from me. They apply on top or Christian's latest drm-next patch sets. This includes the ib_execute updates for SI and the documentation patches. Also available here: http://cgit.freedesktop.org/~agd5f/linux/log/?h=wip Alex Deucher (16): drm/radeon:

[PATCH 01/16] drm/radeon: update ib_execute for SI (v2)

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher When submitting a CONST_IB, emit a SWITCH_BUFFER packet before the CONST_IB. This isn't strictly necessary (the driver will work fine without it), but is good practice and allows for more flexible DE/CE sychronization options in the future. Current userspace drivers do not ta

[PATCH 02/16] drm/radeon: remove radeon_ring_index()

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Just store the index in the ring structure. Idea taken from one of Jerome's wip rptr patches. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600.c | 11 - drivers/gpu/drm/radeon/radeon.h|2 +- drivers/gpu/drm/radeon/radeon_device.c |

[PATCH 03/16] drm/radeon: update rptr saving logic for memory buffers

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Add support for using memory buffers rather than scratch registers. Some rings may not be able to write to scratch registers. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 10 +- drivers/gpu/drm/radeon/r600.c| 20 +++-

[PATCH 04/16] drm/radeon: add rptr save support for r1xx-r5xx

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 4ee5a74..2e0a603 100644 --- a/drivers/gpu/drm/radeon/r100.

[PATCH 05/16] drm/radeon: document radeon_device.c (v2)

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_device.c v2: split out general descriptions as per Christian's comments. Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/radeon_device.c | 313 +++- 1 fil

[PATCH 06/16] drm/radeon: document radeon_kms.c

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_kms.c Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/radeon_kms.c | 126 +++ 1 files changed, 126 insertions(+), 0 deletions(-) diff --git a/drivers/

[PATCH 07/16] drm/radeon: document radeon_irq_kms.c

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_irq_kms.c Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/radeon_irq_kms.c | 150 +++ 1 files changed, 150 insertions(+), 0 deletions(-) diff --git a/driv

[PATCH 08/16] drm/radeon: document radeon_asic.c

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_asic.c Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/radeon_asic.c | 46 ++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/drivers/

[PATCH 09/16] drm/radeon: document radeon_fence.c (v2)

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_fence.c v2: address Christian's comments: - split common concept description into it's own comment - fix description of intr parameter - Improve description of -EDEADLK error Signed-off-by: Alex Deucher Reviewed-by: Chris

[PATCH 10/16] drm/radeon: document radeon_ring.c (v4)

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_ring.c v2: adjust per Christian's suggestions v3: adjust per Christian's latest patches v4: adjust per my latest changes Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_ring.c | 208 +++

[PATCH 11/16] drm/radeon: document non-VM functions in radeon_gart.c (v2)

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Document the non-VM functions in radeon_gart.c v2: adjust per Christian's suggestions Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/radeon_gart.c | 125 +- 1 files changed, 122 insertions(+), 3 deletion

[PATCH 12/16] drm/radeon: document VM functions in radeon_gart.c (v3)

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Document the VM functions in radeon_gart.c v2: adjust per Christian's suggestions v3: adjust to Christians's latest changes Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/radeon_gart.c | 142 ++ 1 files

[PATCH 13/16] drm/radeon: start to document the functions r100.c

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Still a lot more to do. Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/r100.c | 127 - 1 files changed, 124 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/

[PATCH 14/16] drm/radeon: start to document evergreen.c

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Still a lot to do. Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/evergreen.c | 120 1 files changed, 120 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu

[PATCH 15/16] drm/radeon: fix up pll selection on DCE5/6

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Selecting ATOM_PPLL_INVALID should be equivalent as the DCPLL or PPLL0 are already programmed for the DISPCLK, but the preferred method is to always specify the PLL selected. SetPixelClock will check the parameters and skip the programming if the PLL is already set up. Signed-

[PATCH 16/16] drm/radeon: fix SS setup for DCPLL

2012-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Need to actually set the SS parameters rather than just 0. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 16 1 files changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/dr

[PATCH 1/2] drm/radeon: fix hotplug of DP to DVI|HDMI passive adapters (v2)

2012-07-20 Thread alexdeuc...@gmail.com
From: Jerome Glisse No need to retrain the link for passive adapters. v2: agd5f - no passive DP to VGA adapters, update comments - assign radeon_connector_atom_dig after we are sure we have a digital connector as analog connectors have different private data. - get new sink type before check

[PATCH 2/2] drm/radeon: on hotplug force link training to happen (v2)

2012-07-20 Thread alexdeuc...@gmail.com
From: Jerome Glisse To have DP behave like VGA/DVI we need to retrain the link on hotplug. For this to happen we need to force link training to happen by setting connector dpms to off before asking it turning it on again. v2: agd5f - drop the dp_get_link_status() change in atombios_dp.c for no

[PATCH] drm/radeon: fix handling for ddc type 5 on combios

2012-07-20 Thread alexdeuc...@gmail.com
From: Alex Deucher When ddc type is 5, need to look up the i2c channel in the i2c table. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_combios.c | 57 +++--- 1 files changed, 36 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon

[PATCH] drm/radeon/dce4+: set a more reasonable cursor watermark

2012-07-20 Thread alexdeuc...@gmail.com
From: Alex Deucher Set a more reasonable default cursor watermark. The recommended default value is 4. This should reduce urgency requests to the MC form the display hw. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_cursor.c |6 -- 1 files changed, 4 insertions(+), 2 d

[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(+), 12 deletions(-) diff --git a

[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 changed, 37 insertions(+), 12

[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 PX code more robust - implem

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

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

[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 b/drivers/gpu/drm/radeon/ni.c index 9945d86..

[PATCH] drm/radeon: fix gpu_init on si

2012-06-01 Thread alexdeuc...@gmail.com
From: Alex Deucher - Properly set up the RBs - Properly set up the SPI - Properly set up gb_addr_config This should fix rendering issues on certain cards. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |5 +- drivers/gpu/drm/radeon/radeon_kms.c |2 +- drivers/gpu/

[PATCH] drm/radeon: make audio_init consistent across asics

2012-06-04 Thread alexdeuc...@gmail.com
From: Alex Deucher Call it in the asic startup callback on all asics. Previously r600 and rv770 called it in the startup and resume callbacks while all the other asics called it in the startup callback. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600.c | 15 ++- driv

[PATCH 1/4] drm/radeon/kms: add new Trinity PCI ids

2012-06-05 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/ni.c | 21 + include/drm/drm_pciids.h|8 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/r

[PATCH 2/4] drm/radeon/kms: add new Palm, Sumo PCI ids

2012-06-05 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- 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 961dae0..c5b0d8c 100644 --- a/include/drm/drm_pciids.h ++

[PATCH 3/4] drm/radeon/kms: add new BTC PCI ids

2012-06-05 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- 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 c5b0d8c..86c4cf9 100644 --- a/include/drm/drm_pciids.h ++

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

2012-06-05 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- include/drm/drm_pciids.h |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index 86c4cf9..81368ab 100644 --- a/include/drm/drm_pciids.h

[PATCH] radeon: fall back to 1D tiling only with broken kernels

2012-06-06 Thread alexdeuc...@gmail.com
From: Alex Deucher Certain cards report the the wrong bank setup which causes surface init to fail in the ddx and leads to no accel. If we hit an invalid tiling parameter, just set a default value and disable 2D tiling. Should fix: https://bugs.freedesktop.org/show_bug.cgi?id=43448 Signed-off-b

[PATCH] drm/radeon/si: check for CE ucode as well when loading ucode

2012-06-12 Thread alexdeuc...@gmail.com
From: Alex Deucher Fixes possible segfault if the CE ucode is missing. 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/radeon/si.c i

[PATCH] drm/radeon: fix regression in dynpm due to multi-ring rework

2012-06-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Not all asics have all rings, so make sure the ring is ready before attempting to check it in the dynpm work handler. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=43367 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_pm.c | 10 +++--- 1 files chang

[PATCH] drm/radeon: SI tiling fixes for display

2012-06-14 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 10 - drivers/gpu/drm/radeon/si_reg.h| 72 2 files changed, 81 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drive

[PATCH] drm/radeon: make radeon_fence_any_seq_signaled static

2012-06-28 Thread alexdeuc...@gmail.com
From: Alex Deucher It's not used anywhere else. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_fence.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c index 7b55625..67f6fa9

[PATCH 1/2] drm/radeon: clean up CS functions in r100.c

2012-06-28 Thread alexdeuc...@gmail.com
From: Alex Deucher Consolidate the CS functions to one section of the file. Previously they were spread all around. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c | 2983 - 1 files changed, 1491 insertions(+), 1492 deletions(-) diff --git

[PATCH 2/2] drm/radeon: move r100_enable_bm to a more logic place

2012-06-28 Thread alexdeuc...@gmail.com
From: Alex Deucher It was stuck right in the middle of the gart functions. Move next to the bm_disable function and where it is used. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/

[PATCH] drm/radeon: fix VM page table setup on SI

2012-06-28 Thread alexdeuc...@gmail.com
From: Alex Deucher Cayman and trinity allow for variable sized VM page tables, but SI requires that all page tables be the same size. The current code assumes variablely sized VM page tables so SI may end up with part of each page table overlapping with other memory which could end up being inte

[PATCH 00/10] Start documenting the radeon drm better

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher This is something I've been wanting to do for a while and I finally spent a little time getting a start on it. There is still a lot to do and not all of my descriptions are great, but I think we can document the rest in bits and pieces. I also added a note about what asics the

[PATCH 01/10] drm/radeon: document radeon_device.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_device.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_device.c | 344 +++- 1 files changed, 341 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_devic

[PATCH 02/10] drm/radeon: document radeon_kms.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_kms.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_kms.c | 126 +++ 1 files changed, 126 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b

[PATCH 03/10] drm/radeon: document radeon_irq_kms.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_irq_kms.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_irq_kms.c | 150 +++ 1 files changed, 150 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_irq_

[PATCH 04/10] drm/radeon: document radeon_asic.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_asic.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c | 46 ++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c

[PATCH 05/10] drm/radeon: document radeon_fence.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_fence.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_fence.c | 373 + 1 files changed, 373 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_fence.

[PATCH 06/10] drm/radeon: document radeon_ring.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_ring.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_ring.c | 374 +- 1 files changed, 373 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_ring.c

[PATCH 07/10] drm/radeon: document non-VM functions in radeon_gart.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Document the non-VM functions in radeon_gart.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_gart.c | 154 +- 1 files changed, 151 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu

[PATCH 09/10] drm/radeon: start to document the functions r100.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Still a lot more to do. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c | 127 - 1 files changed, 124 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index d06c8d

[PATCH 08/10] drm/radeon: document VM functions in radeon_gart.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Document the VM functions in radeon_gart.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_gart.c | 237 ++ 1 files changed, 237 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm

[PATCH 10/10] drm/radeon: start to document evergreen.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Still a lot to do. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 120 1 files changed, 120 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index

[PATCH 01/10] drm/radeon: document radeon_device.c (v2)

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_device.c v2: split out general descriptions as per Christian's comments. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_device.c | 313 +++- 1 files changed, 310 insertions(+),

[PATCH 02/10] drm/radeon: document radeon_kms.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_kms.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_kms.c | 126 +++ 1 files changed, 126 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b

[PATCH 03/10] drm/radeon: document radeon_irq_kms.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_irq_kms.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_irq_kms.c | 150 +++ 1 files changed, 150 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_irq_

[PATCH 04/10] drm/radeon: document radeon_asic.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_asic.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c | 46 ++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c

[PATCH 05/10] drm/radeon: document radeon_fence.c (v2)

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_fence.c v2: address Christian's comments: - split common concept description into it's own comment - fix description of intr parameter - Improve description of -EDEADLK error Signed-off-by: Alex Deucher --- drivers/gpu/d

[PATCH 06/10] drm/radeon: document radeon_ring.c (v2)

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Adds documentation to most of the functions in radeon_ring.c v2: adjust per Christian's suggestions Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_ring.c | 216 +- 1 files changed, 213 insertions(+), 3 deletions(-) diff --git

[PATCH 07/10] drm/radeon: document non-VM functions in radeon_gart.c (v2)

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Document the non-VM functions in radeon_gart.c v2: adjust per Christian's suggestions Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_gart.c | 125 +- 1 files changed, 122 insertions(+), 3 deletions(-) diff --git a/drivers/gpu

[PATCH 08/10] drm/radeon: document VM functions in radeon_gart.c (v2)

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Document the VM functions in radeon_gart.c v2: adjust per Christian's suggestions Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_gart.c | 159 ++ 1 files changed, 159 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 09/10] drm/radeon: start to document the functions r100.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Still a lot more to do. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r100.c | 127 - 1 files changed, 124 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index d06c8d

[PATCH 10/10] drm/radeon: start to document evergreen.c

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Still a lot to do. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 120 1 files changed, 120 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index

[PATCH] drm/radeon: make a few SI functions static

2012-06-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Not used outside of si.c Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index 4071858..148471c 100644 --- a/drivers/gpu/drm/ra

<    1   2   3   4   5   6   >