[PATCH] drm/radeon/kms: implement gpu lockup check for evergreen

2010-12-21 Thread Alex Deucher
Now that soft reset works, we can add this. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c | 26 -- drivers/gpu/drm/radeon/radeon.h|1 + 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[PATCH] drm/radeon/kms: disable bo moves using the blitter

2010-12-21 Thread Alex Deucher
Blitting from vram to gart is problematic at the moment. Use the CPU for now to avoid buffer corruption. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH] drm/radeon/kms: add quirk for Mac Radeon HD 2600 card

2011-01-03 Thread Alex Deucher
Reported-by: 屋国遥 hya...@gmail.com Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/radeon_atombios.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm

[PATCH] drm/radeon/kms: adjust quirk for acer laptop

2011-01-04 Thread Alex Deucher
no concept of encoders (only crtcs and connectors) and will try and drive both connectors with different crtcs which isn't possible on the hardware side and leaves no crtcs for LVDS or VGA. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=32732 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta

Re: [PATCH 09/32] drm/radeon: use system_wq instead of dev_priv-wq

2011-01-04 Thread Alex Deucher
area now, so I'd prefer if we pushed it through Dave's tree, but I can handle it either way. Acked-by: Alex Deucher alexdeuc...@gmail.com Alex Thanks.  drivers/gpu/drm/radeon/evergreen.c      |    2 +-  drivers/gpu/drm/radeon/r100.c           |    2 +-  drivers/gpu/drm/radeon/r600.c

Re: OpenChrome KMS needs a home

2011-01-05 Thread Alex Deucher
On Wed, Jan 5, 2011 at 10:21 AM, James Simmons jsimm...@infradead.org wrote: Hi!        The OpenChrome project is now experimenting with a move over to the new TTM/GEM and KMS apis. A xorg tree has just been started to support KMS and UMS (svn

[PATCH] drm/radeon/kms: disable underscan by default

2011-01-05 Thread Alex Deucher
-overscanning TVs. There's no good default, but on average there have been more users complaining about it being on by default than off, so change it to off. This will probably result in a new deluge of overscanning TV user complaints. There's no winning. Signed-off-by: Alex Deucher alexdeuc

[PATCH 1/2] drm/radeon/kms: add pcie get/set lane support for r6xx/r7xx/evergreen

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/r300.c|5 +- drivers/gpu/drm/radeon/r600.c| 118 ++ drivers/gpu/drm/radeon/radeon.h |8 ++ drivers/gpu/drm/radeon/radeon_asic.c | 14 ++-- drivers/gpu/drm

[PATCH 2/2] drm/radeon/kms: add support for gen2 pcie link speeds

2011-01-06 Thread Alex Deucher
Supported on rv6xx/r7xx/evergreen. Cards come up in gen1 mode. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c | 53 ++ drivers/gpu/drm/radeon/evergreend.h | 38 + drivers/gpu/drm/radeon/r600.c | 102

[PATCH] drm/radeon/kms: set the MSB of the HDP slice size

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- 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 11344c7..b5bc7d0 100644 --- a/drivers/gpu/drm/radeon

[PATCH] drm/radeon/kms: fix some typos in evergreen pm4 defines

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreend.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreend.h b/drivers/gpu/drm/radeon/evergreend.h index b8da323..36d32d8 100644 --- a/drivers/gpu/drm

[PATCH 0/25] drm/radeon/kms: Add support for NI (Northern Islands)

2011-01-06 Thread Alex Deucher
This patchset adds support for evergreen+ based NI asics (Barts, Turks, and Caicos). It includes full acceleration (2D and 3D) for these asics. Mesa 7.10 or git master and xf86-video-ati from git master are required. There is no support for UMS, KMS is required. The 3D engine on Barts, Turks,

[PATCH 01/25] drm/radeon/kms: clean up ASIC_IS_DCE41() macro

2011-01-06 Thread Alex Deucher
only fusion asics are dce4.1 Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon.h |3 ++- drivers/gpu/drm/radeon/radeon_encoders.c |6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers

[PATCH 02/25] drm/radeon/kms: add NI chip families

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

[PATCH 03/25] drm/radeon/kms: update display watermark calculations for DCE5

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c | 20 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index b5bc7d0..9c990c3 100644

[PATCH 04/25] drm/radeon/kms: DCE5 supports 16k display surfaces

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_display.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index acebbc7..30d867c 100644 --- a/drivers

[PATCH 05/25] drm/radeon/kms: DCE5 atom SetPixelClock updates

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/atombios_crtc.c | 31 +++-- drivers/gpu/drm/radeon/radeon_atombios.c | 25 ++- 2 files changed, 47 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH 06/25] drm/radeon/kms: DCE5 atom spread spectrum updates

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/atombios_crtc.c | 26 +- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index b3e5e75..b0ab185

[PATCH 07/25] drm/radeon/kms: DCE5 atom transmitter control updates

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_encoders.c | 19 ++- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index c83ad89..76835b0

[PATCH 08/25] drm/radeon/kms: DCE5 atom dig encoder updates

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_encoders.c | 31 + 1 files changed, 26 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index 76835b0

[PATCH 09/25] drm/radeon/kms: dac dpms updates for DCE5

2011-01-06 Thread Alex Deucher
The DAC1OutputControl table was removed for DCE5. DAC1EncoderControl now handles everything. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_encoders.c | 28 ++-- 1 files changed, 22 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH 10/25] drm/radeon/kms: dvo dpms updates for DCE5

2011-01-06 Thread Alex Deucher
The DVOOutputControl table was removed for DCE5. DVOEncoderControl now handles everything. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_encoders.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 11/25] drm/radeon/kms: parse DCE5 encoder caps when setting up encoders

2011-01-06 Thread Alex Deucher
Needed to tell which DIG encoders are HBR2 capable for DP 1.2. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_atombios.c | 44 +++-- drivers/gpu/drm/radeon/radeon_encoders.c |6 +++- drivers/gpu/drm/radeon/radeon_mode.h

[PATCH 12/25] drm/radeon/kms: handle NI thermal controller

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon.h |1 + drivers/gpu/drm/radeon/radeon_atombios.c |6 ++ drivers/gpu/drm/radeon/radeon_pm.c |1 + 3 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH 13/25] drm/radeon/kms: add disabled vbios accessor for NI asics

2011-01-06 Thread Alex Deucher
Some systems disable the vbios on secondary cards or cards that have been posted. This code re-enabled the vbios so the driver can load it. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_bios.c | 41 ++ 1 files changed, 41

[PATCH 14/25] drm/radeon/kms: fill gpu init for NI asics

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c | 71 1 files changed, 71 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 9c990c3..6a73867

[PATCH 15/25] drm/radeon/kms: add backend map workaround for barts

2011-01-06 Thread Alex Deucher
Same as Cypress. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 6a73867..c40e5ad 100644 --- a/drivers

[PATCH 17/25] drm/radeon/kms: always use writeback/events for fences on NI

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_device.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index e353430..26091d6 100644 --- a/drivers

[PATCH 18/25] drm/radeon/kms: add bo blit support for NI

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen_blit_kms.c | 69 ++- 1 files changed, 67 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_blit_kms.c b/drivers/gpu/drm/radeon/evergreen_blit_kms.c index

[PATCH 19/25] drm/radeon/kms: add ni_reg.h

2011-01-06 Thread Alex Deucher
This adds some new NI (northern islands) specific display register defines. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/ni_reg.h | 86 +++ drivers/gpu/drm/radeon/radeon_reg.h |1 + 2 files changed, 87 insertions(+), 0

[PATCH 20/25] drm/radeon/kms: add support for DCE5 display LUTs

2011-01-06 Thread Alex Deucher
The hardware supports advanced user defined color management but at the moment, there is no infrastructure in place to take advantage of it so for now we just support the legacy LUTs. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_display.c | 68

[PATCH 21/25] drm/radeon/kms: add ucode loader for NI

2011-01-06 Thread Alex Deucher
The MC ucode is no longer loaded by the vbios tables as on previous asics. It now must be loaded by the driver. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/Makefile|2 +- drivers/gpu/drm/radeon/evergreen.c | 21 ++- drivers/gpu/drm/radeon/ni.c

[PATCH 22/25] drm/radeon/kms/ni: load default sclk/mclk/vddc at pm init

2011-01-06 Thread Alex Deucher
The vbios only partially initializes the memory controller on NI, so now we need to load the MC ucode in the driver and set the default clocks once the ucode is loaded. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_pm.c | 18 ++ 1 files

[PATCH 23/25] drm/radeon/kms: add radeon_asic struct for NI asics

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_asic.c | 51 ++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c index 53c6240..3a1b161

[PATCH 24/25] drm/radeon/kms: don't enable pcie gen2 on NI yet

2011-01-06 Thread Alex Deucher
Still needs to be implemented. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 4fb2101..7fe8ebd

[PATCH 25/25] drm/radeon/kms: add NI pci ids

2011-01-06 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- include/drm/drm_pciids.h | 36 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index e6b28a3..fe29ae3 100644 --- a/include/drm

[PATCH 1/2] drm/radeon/kms: add new PREFER_CLOSEST_HIGHER pll flag

2011-01-10 Thread Alex Deucher
Partner to the existing PREFER_CLOSEST_LOWER. A new flag to prefer slightly higher target frequencies if the target cannot be hit exactly. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_display.c |5 + drivers/gpu/drm/radeon/radeon_mode.h|5

Re: [RFC PATCH v2] Utilize the PCI API in the TTM framework.

2011-01-11 Thread Alex Deucher
On Tue, Jan 11, 2011 at 10:55 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: . snip .. I think the error path would be the same in both cases? Not really. The really dangerous situation is if TTM is allowed to exhaust all GFP_KERNEL memory. Then any application or kernel task Ok,

Re: A query on frame buffers

2011-01-11 Thread Alex Deucher
On Tue, Jan 11, 2011 at 11:58 AM, Prasad Joshi prasadjoshi...@gmail.com wrote: On Mon, Jan 10, 2011 at 8:24 PM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: AMD chipset. They don't seem to have have any errata's for this GFX business. But they do have a passthrough mode - hopefull

Re: [RFC PATCH v2] Utilize the PCI API in the TTM framework.

2011-01-11 Thread Alex Deucher
On Tue, Jan 11, 2011 at 11:59 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: Another thing that I was thinking of is what happens if you have a huge gart and allocate a lot of coherent memory. Could that potentially exhaust IOMMU resources? scratches his head So the GART is

[PATCH] drm/radeon/kms: remove duplicate card_posted() functions

2011-01-11 Thread Alex Deucher
Use the common one for all asics. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c | 27 +-- drivers/gpu/drm/radeon/r600.c | 20 +--- drivers/gpu/drm/radeon/rv770.c |2 +- 3 files changed, 3

[PATCH] drm/radeon/kms: add module option for pcie gen2

2011-01-12 Thread Alex Deucher
Switching to pcie gen2 causes problems on some boards. Add a module option to turn it on/off. There are gen2 compatability issues with some motherboards it seems. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=33027 Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm

[PATCH] drm/radeon/kms: fix typo in evergreen safe reg

2011-01-13 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/reg_srcs/evergreen |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/reg_srcs/evergreen b/drivers/gpu/drm/radeon/reg_srcs/evergreen index ac40fd3..9177f91 100644

Re: [PATCH 3/5] radeon: Expose backlight class device for legacy LVDS encoder

2011-01-15 Thread Alex Deucher
device - mjg) Signed-off-by: Michel Dänzer daen...@vmware.com Signed-off-by: Matthew Garrett m...@redhat.com Acked-by: Alex Deucher alexdeuc...@gmail.com Cc: dri-devel@lists.freedesktop.org ---  drivers/gpu/drm/radeon/Kconfig                  |    1 +  drivers/gpu/drm/radeon

[PATCH] drm/radeon/kms: fix a spelling error in an error message

2011-01-17 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/r100.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 46da514..5968dde 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b

[PATCH] drm/radeon/kms: simplify atom adjust pll setup

2011-01-20 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/atombios_crtc.c | 22 +- 1 files changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index ebacad6..4a20a62

Re: [PATCH 1/4] drm: Add an interface to reset the device

2011-01-24 Thread Alex Deucher
On Mon, Jan 24, 2011 at 10:55 AM, Chris Wilson ch...@chris-wilson.co.uk wrote: Iterate over the attached CRTCs, encoders and connectors and call the supplied reset vfunc in order to reset any cached state back to unknown. Useful after an invalidation event such as a GPU reset or resuming.

[PATCH] drm/radeon/kms: add new radeon_info ioctl query for clock crystal freq

2011-01-24 Thread Alex Deucher
Needed for timer queries in the 3D driver. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_drv.c |2 +- drivers/gpu/drm/radeon/radeon_kms.c |4 include/drm/radeon_drm.h|1 + 3 files changed, 6 insertions(+), 1 deletions(-) diff

[PATCH] drm/radeon/kms: only enable HDMI mode if radeon audio is enabled

2011-01-24 Thread Alex Deucher
Force DVI mode if the user specifies radeon.audio=0. The driver doesn't handle HDMI mode properly in some cases. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=27731 Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_encoders.c |6 +++--- 1 files

[PATCH] drm/radeon/kms: clean up some magic numbers

2011-01-24 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/r100.c | 10 +- drivers/gpu/drm/radeon/r300.c |7 +-- drivers/gpu/drm/radeon/r420.c |2 +- drivers/gpu/drm/radeon/r520.c |4 ++-- drivers/gpu/drm/radeon/radeon_reg.h

[PATCH] drm/radeon/kms: fix r6xx+ scanout on BE systems

2011-01-25 Thread Alex Deucher
R6xx+ have per-block swappers. BE content in the framebuffer will now be swapped properly during scanout. Untested, however, the same code is reported working in the UMS ddx. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/atombios_crtc.c | 17

Re: [PATCH] radeon/kms: fix dp displayport mode validation

2011-01-26 Thread Alex Deucher
, probably from me :) Reviewed-By: Alex Deucher alexdeuc...@gmail.com ---  drivers/gpu/drm/radeon/atombios_dp.c |    4 ++--  1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index 4e7778d..695de9a 100644

[PATCH] drm/radeon/kms: re-emit full context state for evergreen blits

2011-01-27 Thread Alex Deucher
clear state doesn't seem to work properly in some cases Fixes hangs in heavy 3D on some evergreen cards reported on IRC. May fix: https://bugs.freedesktop.org/show_bug.cgi?id=33381 possibly others. Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm

Re: [PATCH] radeon: Fix wrong boolean operator

2011-01-28 Thread Alex Deucher
Deucher alexdeuc...@gmail.com It looks like cppcheck is correct, so fix this. No test was run. Cc: David Airlie airl...@linux.ie Cc: Alex Deucher alexdeuc...@gmail.com Cc: dri-devel@lists.freedesktop.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Stefan Weil w...@mail.berlios.de

[PATCH 1/4] drm/radeon/kms: switch back to min-max pll post divider iteration

2011-01-31 Thread Alex Deucher
Seems more reliable. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=26552 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/radeon_display.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon

[PATCH 2/4] drm/radeon/kms: add pll debugging output

2011-01-31 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/radeon_display.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 71788e9..3673656

[PATCH 3/4] drm/radeon/kms: add new pll algo for avivo asics

2011-01-31 Thread Alex Deucher
Based on the vbios code. This should hopefully fix the pll problems on a number of avivo asics once it's enabled. Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c |4 +- drivers/gpu/drm/radeon/radeon_display.c | 123

[PATCH 4/4] drm/radeon/kms: Enable new pll calculation for avivo+ asics

2011-01-31 Thread Alex Deucher
://bugs.freedesktop.org/show_bug.cgi?id=32556 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 18 -- drivers/gpu/drm/radeon/radeon_atombios.c | 10 -- drivers/gpu/drm/radeon/radeon_display.c |3 +++ 3

[PATCH] drm/radeon/kms: rv6xx+ thermal sensor fixes

2011-02-01 Thread Alex Deucher
Some fixes to the thermal sensor code: - handle negative numbers - properly handle temp calculation on different asics Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c | 21 - drivers/gpu/drm/radeon/r600.c |8

[PATCH] drm/radeon: remove 0x4243 pci id

2011-02-01 Thread Alex Deucher
0x4243 is a PCI bridge, not a GPU. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=33815 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- include/drm/drm_pciids.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/drm/drm_pciids.h b

[PATCH 1/2] drm/radeon/kms: add updated ib_execute function for evergreen

2011-02-02 Thread Alex Deucher
Adds new packet to disable DX9 constant emulation. Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/evergreen.c | 13 + drivers/gpu/drm/radeon/evergreen_blit_kms.c | 10 +++--- drivers/gpu/drm/radeon/evergreend.h

[PATCH 2/2] drm/radeon/kms/evergreen: always set certain VGT regs at CP init

2011-02-02 Thread Alex Deucher
These should be handled by the clear_state setup, but set them directly as well just to be sure. Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/evergreen.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH] drm/radeon/kms/NI: don't load if MC ucode is not available

2011-02-02 Thread Alex Deucher
The default clocks and voltages are not sufficient for advanced operation. On prior asics, the MC ucode was loaded by the vbios during asic_init so they did not have this limitation. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=26812 Signed-off-by: Alex Deucher alexdeuc...@gmail.com

[PATCH] drm/radeon/kms: dynamically allocate power state space

2011-02-02 Thread Alex Deucher
We previously used a static array, but some new systems had more states then we had array space, so dynamically allocate space based on the number of states in the vbios. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=33851 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta

Re: [PATCH] drm/radeon/kms: dynamically allocate power state space

2011-02-02 Thread Alex Deucher
On Wed, Feb 2, 2011 at 6:47 PM, Martin Peres martin.pe...@free.fr wrote: Le 03/02/2011 00:42, Alex Deucher a écrit : We previously used a static array, but some new systems had more states then we had array space, so dynamically allocate space based on the number of states in the vbios

[PATCH] drm/radeon/kms: fix s/r issues with bios scratch regs

2011-02-02 Thread Alex Deucher
The accelerate mode bit gets checked by certain atom command tables to set up some register state. It needs to be clear when setting modes and set when not. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=26942 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org

[PATCH] drm/radeon/kms: fix interlaced modes on dce4+

2011-02-06 Thread Alex Deucher
evergreen_do_set_base() to dce4_do_set_base() since it's used on both evergreen and NI asics. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=28182 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 22

[PATCH] drm/radeon/kms: add connector table for mac g5 9600

2011-02-07 Thread Alex Deucher
PPC Mac cards do not provide connector tables in their vbios. Their connector/encoder configurations must be hardcoded in the driver. verified by nyef on #radeon Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/radeon_combios.c | 47

Re: [BISECTED] commit 619efb1059 makes the MacBookPro2,2 screen flicker like its broken or half plugged in

2011-02-08 Thread Alex Deucher
=128K]        Capabilities: access denied        Kernel driver in use: radeon        Kernel modules: radeon Justin P. Mattock From 1fce058d7f063b481a274b0a653ffad94f5e9b23 Mon Sep 17 00:00:00 2001 From: Alex Deucher alexdeuc...@gmail.com Date: Tue, 8 Feb 2011 16:13:27 -0500 Subject: [PATCH

Re: [PATCH/RFC 0/5] HDMI driver for Samsung S5PV310 platform

2011-02-08 Thread Alex Deucher
On Tue, Feb 8, 2011 at 5:47 PM, Andy Walls awa...@md.metrocast.net wrote: On Tue, 2011-02-08 at 10:28 -0500, Alex Deucher wrote: On Tue, Feb 8, 2011 at 4:47 AM, Hans Verkuil hansv...@cisco.com wrote: Just two quick notes. I'll try to do a full review this weekend. On Tuesday, February 08

Re: [PATCH/RFC 0/5] HDMI driver for Samsung S5PV310 platform

2011-02-09 Thread Alex Deucher
On Wed, Feb 9, 2011 at 3:59 AM, Hans Verkuil hansv...@cisco.com wrote: On Tuesday, February 08, 2011 16:28:32 Alex Deucher wrote: On Tue, Feb 8, 2011 at 4:47 AM, Hans Verkuil hansv...@cisco.com wrote: snip   The driver supports an interrupt. It is used to detect plug/unplug events

[PATCH 1/2] drm/radeon/kms: use linear aligned for 6xx/7xx bo blits

2011-02-10 Thread Alex Deucher
Not only is linear aligned supposedly more performant, linear general is only supported by the CB in single slice mode. The texture hardware doesn't support linear general, but I think the hw automatically upgrades it to linear aligned. Signed-off-by: Alex Deucher alexdeuc...@gmail.com

[PATCH 2/2] drm/radeon/kms: use linear aligned for evergreen/ni bo blits

2011-02-10 Thread Alex Deucher
Not only is linear aligned supposedly more performant, linear general is only supported by the CB in single slice mode. The texture hardware doesn't support linear general, but I think the hw automatically upgrades it to linear aligned. Signed-off-by: Alex Deucher alexdeuc...@gmail.com

[PATCH] drm/radeon/kms: fix pll algo quirk function

2011-02-10 Thread Alex Deucher
I'm sick of fighting this. Just add a new pick_pll_algo() function and quirk specific boards as they are reported. Add a quirk for the pll algo selection on the MacBookPro2,2. Reported-by: Justin P. Mattock justinmatt...@gmail.com Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta

[PATCH] drm/radeon/kms: pll quirk cleanup

2011-02-10 Thread Alex Deucher
Default to legacy pll algo, add quirks for specific regressions. Fixes regressions reported in: https://bugzilla.kernel.org/show_bug.cgi?id=26552 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 52

Re: [BISECTED] commit 619efb1059 makes the MacBookPro2,2 screen flicker like its broken or half plugged in

2011-02-10 Thread Alex Deucher
On Thu, Feb 10, 2011 at 12:33 AM, Justin Mattock justinmatt...@gmail.com wrote: On Feb 9, 2011, at 2:09 PM, Alex Deucher wrote: On Tue, Feb 8, 2011 at 4:20 PM, Alex Deucher alexdeuc...@gmail.com wrote: On Tue, Feb 8, 2011 at 3:52 PM, Justin P. Mattock justinmatt...@gmail.com wrote

Re: [BISECTED] commit 619efb1059 makes the MacBookPro2,2 screen flicker like its broken or half plugged in

2011-02-11 Thread Alex Deucher
On Fri, Feb 11, 2011 at 1:59 AM, Alex Deucher alexdeuc...@gmail.com wrote: On Thu, Feb 10, 2011 at 12:33 AM, Justin Mattock justinmatt...@gmail.com wrote: On Feb 9, 2011, at 2:09 PM, Alex Deucher wrote: On Tue, Feb 8, 2011 at 4:20 PM, Alex Deucher alexdeuc...@gmail.com wrote: On Tue, Feb

[PATCH 1/4] drm/radeon: 6xx/7xx non-kms endian fixes

2011-02-11 Thread Alex Deucher
From: Cédric Cano cc...@interfaceconcept.com agd5f: minor cleanups Signed-off-by: Cédric Cano cc...@interfaceconcept.com Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/r600_blit.c | 11 +-- drivers/gpu/drm/radeon/r600_cp.c| 31

[PATCH 2/4] drm/radeon/kms: atombios big endian fixes

2011-02-11 Thread Alex Deucher
From: Cédric Cano cc...@interfaceconcept.com agd5f: additional cleanups/fixes Signed-off-by: Cédric Cano cc...@interfaceconcept.com Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/atombios_crtc.c | 52 +++--- drivers/gpu/drm/radeon

[PATCH 3/4] drm/radeon/kms: 6xx/7xx big endian fixes

2011-02-11 Thread Alex Deucher
From: Cédric Cano cc...@interfaceconcept.com agd5f: minor cleanups Signed-off-by: Cédric Cano cc...@interfaceconcept.com Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/r600.c | 22 +- drivers/gpu/drm/radeon/r600_blit_kms.c

[PATCH 4/4] drm/radeon/kms: evergreen/ni big endian fixes

2011-02-11 Thread Alex Deucher
Based on 6xx/7xx endian fixes from Cédric Cano. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c | 22 +- drivers/gpu/drm/radeon/evergreen_blit_kms.c | 19 ++- drivers/gpu/drm/radeon

Re: [BISECTED] commit 619efb1059 makes the MacBookPro2,2 screen flicker like its broken or half plugged in

2011-02-11 Thread Alex Deucher
reference divider along with the new pll algo. This should hopefully fix the issues across the board. v2: add some options to uncomment and try Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/atombios_crtc.c | 21 - 1 files

Re: [PATCH/RFC 0/5] HDMI driver for Samsung S5PV310 platform

2011-02-12 Thread Alex Deucher
On Wed, Feb 9, 2011 at 7:51 PM, Andy Walls awa...@md.metrocast.net wrote: On Wed, 2011-02-09 at 02:12 -0500, Alex Deucher wrote: On Tue, Feb 8, 2011 at 5:47 PM, Andy Walls awa...@md.metrocast.net wrote: On Tue, 2011-02-08 at 10:28 -0500, Alex Deucher wrote: On Tue, Feb 8, 2011 at 4:47 AM

[PATCH] drm/radeon/kms: improve 6xx/7xx CS error output

2011-02-13 Thread Alex Deucher
Makes debugging CS rejections much easier. Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/r600_cs.c | 46 + 1 files changed, 26 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_cs.c

Re: [BISECTED] commit 619efb1059 makes the MacBookPro2,2 screen flicker like its broken or half plugged in

2011-02-13 Thread Alex Deucher
On Sun, Feb 13, 2011 at 12:28 AM, Justin Mattock justinmatt...@gmail.com wrote: On Feb 11, 2011, at 5:15 PM, Alex Deucher wrote: On Fri, Feb 11, 2011 at 10:57 AM, Justin Mattock justinmatt...@gmail.com wrote: Better yet, can you try the attached patch on top of 2.6.38-rc4 or newer? Alex

[PATCH 4/4] drm/radeon/kms: evergreen/ni big endian fixes (v2)

2011-02-13 Thread Alex Deucher
Based on 6xx/7xx endian fixes from Cédric Cano. v2: fix typo in shader Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/evergreen.c | 22 +- drivers/gpu/drm/radeon/evergreen_blit_kms.c | 19 ++- drivers/gpu/drm

[PATCH 1/2] drm/radeon/kms: add bounds checking to avivo pll algo

2011-02-14 Thread Alex Deucher
Prevent divider overflow. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=28932 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon/radeon_display.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/gpu

[PATCH 2/2] drm/radeon/kms: hopefully fix pll issues for real (v3)

2011-02-14 Thread Alex Deucher
to max p and use fractional feedback dividers. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=28852 https://bugzilla.kernel.org/show_bug.cgi?id=24462 https://bugzilla.kernel.org/show_bug.cgi?id=26552 MacbookPro issues reported by Justin Mattock justinmatt...@gmail.com Signed-off-by: Alex Deucher

[PATCH] drm/radeon/kms: fix a few more atombios endian issues

2011-02-14 Thread Alex Deucher
Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/atombios_crtc.c |2 +- drivers/gpu/drm/radeon/rs690.c | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon

[PATCH] drm/radeon/kms: add missing frac fb div flag for dce4+

2011-02-16 Thread Alex Deucher
The fixed ref/post dividers are set by the AdjustPll table rather than the ss info table on dce4+. Make sure we enable the fractional feedback dividers when using a fixed post or ref divider on them as well. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=29272 Signed-off-by: Alex Deucher

[PATCH] Revert drm/radeon/kms: switch back to min-max pll post divider iteration

2011-02-20 Thread Alex Deucher
for dce4+ 9f4283f49f0a96a64c5a45fe56f0f8c942885eef This commit also broke certain ~5 Mhz modes on old arcade monitors, so reverting this commit fixes: https://bugzilla.kernel.org/show_bug.cgi?id=29502 Signed-off-by: Alex Deucher alexdeuc...@gmail.com Cc: sta...@kernel.org --- drivers/gpu/drm/radeon

Re: [PATCH] radeon: DMA unmap dummy page during unload/unbind.

2011-02-24 Thread Alex Deucher
From: Alex Deucher alexdeuc...@gmail.com Date: Thu, 24 Feb 2011 03:16:21 -0500 Subject: [PATCH] drm/radeon/kms: clean up gart dummy page handling As per Konrad's original patch, the dummy page used by the gart code and allocated in radeon_gart_init() was not freed properly in radeon_gart_fini

Re: Information resources

2011-02-25 Thread Alex Deucher
On Fri, Feb 25, 2011 at 9:38 AM, Phillip Susi ps...@cfl.rr.com wrote: On 2/24/2011 6:03 PM, Jerome Glisse wrote: We don't have source of firmware, only nouveau is reverse engineering the nvidia one. Then where does the firmware come from?  I've been glancing at the AMD documentation for the

Re: Information resources

2011-02-25 Thread Alex Deucher
On Fri, Feb 25, 2011 at 6:09 PM, Phillip Susi ps...@cfl.rr.com wrote: On 02/25/2011 03:56 PM, Dave Airlie wrote: So you made an assumpution you knew how graphics cards worked and derived a theory, unfortunately the assumption was wrong. How so?  After studying the R600 documentation I found,

Re: [PATCH] kms: Fix warning XNFprintf is deprecated

2011-02-25 Thread Alex Deucher
Pushed a variant of this without breaking pre-1.10 xservers. cb4dc7ab66016d0c980800f8dbf71bbe993889d3 On Fri, Feb 25, 2011 at 4:07 PM, Sedat Dilek sedat.di...@googlemail.com wrote: Noticed when building ati/radeon ddx against xserver 1.10-rc3. [ build.log ] ../../src/radeon_kms.c:412:5:

Re: Information resources

2011-02-25 Thread Alex Deucher
On Fri, Feb 25, 2011 at 6:30 PM, Phillip Susi ps...@cfl.rr.com wrote: On 02/25/2011 06:19 PM, Alex Deucher wrote: The memory clock is still running at whatever clock it's set to unless you manually change it.  Things are like displays are constantly being fed from vram. Sure, the master

Re: [PATCH] drm/r600: parse the set predication command.

2011-02-27 Thread Alex Deucher
On Mon, Feb 28, 2011 at 1:07 AM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This is required for NV_conditional_render and EXT_transform_feedback. Need to add this packet to evergreen_cs.c as well. Otherwise, looks good. Alex Signed-off-by: Dave Airlie

[PATCH] drm/radeon/kms: allow max clock of 340 Mhz on hdmi 1.3+

2011-03-02 Thread Alex Deucher
hdmi 1.3 raises the max clock from 165 Mhz to 340 Mhz. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_connectors.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu

[PATCH 01/15] drm/radeon/kms: add cayman chip family

2011-03-02 Thread Alex Deucher
Cayman is DCE5 display plus a new 4-way shader block. 3D state programming is similar to evergreen. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/radeon_device.c |1 + drivers/gpu/drm/radeon/radeon_family.h |1 + 2 files changed, 2 insertions(+), 0

[PATCH 02/15] drm/radeon/kms: add ucode loader for cayman

2011-03-02 Thread Alex Deucher
The MC ucode is no longer loaded by the vbios tables as on previous asics. It now must be loaded by the driver. Signed-off-by: Alex Deucher alexdeuc...@gmail.com --- drivers/gpu/drm/radeon/ni.c | 83 ++ 1 files changed, 75 insertions(+), 8 deletions

<    1   2   3   4   5   6   7   8   9   10   >