[PATCH] gpu: schedule gma500 stub driver for feature removal

2012-03-20 Thread Lee, Chun-Yi
In v3.3, the gma500 drm driver moved from staging to drm group by Alan Cox's 3abcf41fb patch. the gma500 drm driver should control brightness well and don't need gma500 stub driver anymore. So, my plan is remove gma500 stub driver at Dec. 2012. Signed-off-by: Lee, Chun-Yi --- Documentation/feat

Re: [PATCH v2 00/14] updated exynos-drm-next.

2012-03-20 Thread Dave Airlie
On Fri, Mar 16, 2012 at 9:47 AM, Inki Dae wrote: > Hi, Dave and all. Hi Inki, I've taken most of these patches except for the G2D and Virtual drivers, If you can make the virtual driver rebase without G2D I don't see an issue with merging it, it didn't seem to apply cleanly here. But I don't t

[PATCH 1/5] drm: add drm_property_change_is_valid

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Move code from drm_mode_connector_property_set_ioctl to a new function, so we can reuse this code when we add crtc properties. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/drm_crtc.c | 41 + 1 files changed, 21 insertions(+), 20 d

[PATCH 2/5] drm: WARN() when drm_connector_attach_property fails

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Also return void instead of int. We have more than 100 callers and no one checks for the return value. If this function fails the property won't be exposed by the get/set ioctls, but we should probably survive. If this starts happening, the solution will be to increase DRM_CON

[PATCH 3/5] drm: add CRTC properties

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Code based on the connector properties code. Two new ioctls: - DRM_IOCTL_MODE_CRTC_GETPROPERTIES - DRM_IOCTL_MODE_CRTC_SETPROPERTY The i915 driver needs this for the rotation and overscan compensation properties. Other drivers might need this too. v2: replace BUG_ON() for WA

[PATCH 4/5] drm/i915: add 'rotation' CRTC property

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni This property is needed so we can inform the KVMr feature about our current rotation: whenever we change the rotation, we should change that property so that the KVMr knows that the screen is rotated. How to reproduce the problem: - on an AMT machine, enable KVM - boot the mac

[PATCH 5/5] drm/i915: add overscan compensation CRTC properties

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni They're named "underscan x" and "underscan y". The properties accept values from 0 to 100, where 0 is "don't compensate" and 100 is "shrink the screen as much as possible". Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.h |2 + drivers/gpu/drm/i915/in

[PATCH 1/5 libdrm] modetest: fix some compiler warnings

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Use unsigned int instead of int: - modetest.c:89:1: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] - modetest.c:97:1: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] - modetest.c:117:1: warning: compar

[PATCH 2/5 libdrm] modetest: fix memory leak

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Don't "continue" without freeing the connector. 192 bytes in 6 blocks are indirectly lost in loss record 6 of 12 at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x4E30DD8: drmMalloc (xf86drm.c:147) by 0x4E35024: drmAllocCpy (xf86drmMod

[PATCH 3/5 libdrm] modetest: print more about our properties

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni In the future we'll have more than just connector properties, so create a dump_prop function that can handle any property (instead of the current dump_props function that only handles connector properties). Also, make this function print a lot more information about the existi

[PATCH 4/5 libdrm] Add support for CRTC properties

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni New library calls: - drmModeCrtcGetProperties - drmModeFreeCrtcProperties - drmModeCrtcSetProperties Signed-off-by: Paulo Zanoni --- include/drm/drm.h |2 + include/drm/drm_mode.h | 13 xf86drmMode.c | 79 +++

[PATCH 5/5 libdrm] modetest: print CRTC properties

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Signed-off-by: Paulo Zanoni --- tests/modetest/modetest.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index 52c81a9..58bb39e 100644 --- a/tests/modetest/modetest.c +++ b/tests/mode

[PATCH 1/3 xf86-video-intel] Avoid duplicated code with intel_output_create_ranged_atom

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Same change for intel_display.c and sna_display.c. Signed-off-by: Paulo Zanoni --- src/intel_display.c | 104 + src/sna/sna_display.c | 104 + 2 files changed, 90 insertions(+

[PATCH 2/3 xf86-video-intel] Update the rotation property whenever we change the rotation.

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Don't worry if that fails: only the KVMr feature will be affected. We still need to change the sna/ code. Signed-off-by: Paulo Zanoni --- src/intel.h |3 ++ src/intel_display.c | 79 +++ src/intel_driver.c |

[PATCH 3/3 xf86-video-intel] Add underscan properties

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni In the Kernel side, these are crtc properties (since in the hardware, underscan use the panel fitters, which are attached to the pipes). Ideally we should make these as crtc properties too, but since xrandr doesn't have support for them, we expose the atoms as output properties

Re: [PATCH 3/5] drm: add CRTC properties

2012-03-20 Thread Rob Clark
On Tue, Mar 20, 2012 at 9:48 AM, Paulo Zanoni wrote: > From: Paulo Zanoni > > Code based on the connector properties code. > > Two new ioctls: > - DRM_IOCTL_MODE_CRTC_GETPROPERTIES > - DRM_IOCTL_MODE_CRTC_SETPROPERTY Just fyi, this is useful to me too.. I need a way to set rotation on a crtc or

Re: [PATCH 5/5] drm/i915: add overscan compensation CRTC properties

2012-03-20 Thread Alex Deucher
On Tue, Mar 20, 2012 at 10:48 AM, Paulo Zanoni wrote: > From: Paulo Zanoni > > They're named "underscan x" and "underscan y". The properties accept > values from 0 to 100, where 0 is "don't compensate" and 100 is "shrink > the screen as much as possible". FWIW, the radeon driver already exposes

CRTC properties patches

2012-03-20 Thread Paulo Zanoni
Hi Some time ago I posted a patch series to implement Kernel CRTC properties and a "rotation" property for the i915 driver. No one objected those patches, so now I'm resending the rebased versions, with some minor changes and also "overscan compensation" properties. The patches apply to the ~danve

Re: [PATCH 3/5] drm: add CRTC properties

2012-03-20 Thread Alex Deucher
On Tue, Mar 20, 2012 at 10:48 AM, Paulo Zanoni wrote: > From: Paulo Zanoni > > Code based on the connector properties code. > > Two new ioctls: > - DRM_IOCTL_MODE_CRTC_GETPROPERTIES > - DRM_IOCTL_MODE_CRTC_SETPROPERTY > > The i915 driver needs this for the rotation and overscan compensation > pro

Re: [PATCH 1/5] drm: add drm_property_change_is_valid

2012-03-20 Thread Ville Syrjälä
On Tue, Mar 20, 2012 at 11:48:28AM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > Move code from drm_mode_connector_property_set_ioctl to a new > function, so we can reuse this code when we add crtc properties. > > Signed-off-by: Paulo Zanoni > --- > drivers/gpu/drm/drm_crtc.c | 41

Re: Why do flush page cache twice when change TT's cache attribute

2012-03-20 Thread Konrad Rzeszutek Wilk
On Tue, Mar 20, 2012 at 10:15:02AM +0800, Scott Fang wrote: > Can I do the optimization like: > > if (ttm->caching_state == tt_cached) > -drm_clflush_pages(ttm->pages, ttm->num_pages); > +for (i = 0; i < ttm->num_pages; ++i) > + if (PageHighMem(ttm->pages[i])) > +

[Bug 29412] fans running at full-speed after resume from suspend with radeon and KMS

2012-03-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=29412 --- Comment #10 from Jon Dowland 2012-03-20 15:40:16 --- I'll have access to the machine again this Friday; I'll try it this weekend. Thanks! -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receivi

Re: [PATCH 3/5] drm: add CRTC properties

2012-03-20 Thread Daniel Vetter
On Tue, Mar 20, 2012 at 11:09:42AM -0400, Alex Deucher wrote: > On Tue, Mar 20, 2012 at 10:48 AM, Paulo Zanoni wrote: > > From: Paulo Zanoni > > > > Code based on the connector properties code. > > > > Two new ioctls: > > - DRM_IOCTL_MODE_CRTC_GETPROPERTIES > > - DRM_IOCTL_MODE_CRTC_SETPROPERTY >

[Bug 46713] HDMI audio played back at a wrong rate

2012-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713 Tvrtko Ursulin changed: What|Removed |Added Status|ASSIGNED|NEW --- Comment #19 from Tvrtko Ursulin

Re: [PATCH 4/5] drm/i915: add 'rotation' CRTC property

2012-03-20 Thread Marcus Lorentzon
Hi Paulo, thanks for a quick response posting the patches. In my use of CRTC rotation properties, I need the change to be synchronized with modeset. Your implementation activate the property change immediately instead of staging it for next modeset. Do you think it is ok for different drivers

[Bug 44772] Radeon HD6950 (Cayman): Resuming from hibernation fails sometimes

2012-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44772 --- Comment #6 from Harald Judt 2012-03-20 11:15:35 PDT --- The bug is still present with kernel-3.3 final. Further tests confirm that this is an issue specific to the HD6950 card. I swapped the card with a Radeon HD3650 (RV635 chipset) for test

[PATCH] drm/radeon/kms: add info query for max pipes

2012-03-20 Thread Tom Stellard
The maximum number of pipes is needed by the user space compute driver to calculate the number of wavefronts per thread group. Signed-off-by: Tom Stellard --- drivers/gpu/drm/radeon/radeon_drv.c |3 ++- drivers/gpu/drm/radeon/radeon_kms.c | 13 + include/drm/radeon_drm.h

Re: [PATCH 4/5] drm/i915: add 'rotation' CRTC property

2012-03-20 Thread Ville Syrjälä
On Tue, Mar 20, 2012 at 05:48:14PM +0100, Marcus Lorentzon wrote: > Then it would also be nice to define some rules in KMS of what should be > modeset params and what should be properties. Modeset params seems hard > to add (struct change) and properties seems very loosely defined and > device s

[Bug 43278] RS482: Hibernation reliably hangs, suspend-to-RAM unreliably hangs

2012-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43278 --- Comment #17 from Jonathan Nieder 2012-03-20 11:47:35 PDT --- (In reply to comment #10) >>> When trying the "drm.debug=0x6" and "no_console_suspend" parameters the >>> system sometimes didn't hangup on hibernate test - the test worked 3 >>>

[Bug 45018] [bisected] rendering regression since added support for virtual address space on cayman v11

2012-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45018 --- Comment #40 from Harald Judt 2012-03-20 11:50:26 PDT --- (In reply to comment #35) > (In reply to comment #34) > > Is there a way to disable radeon virtual addressing when loading the kernel? > > You can disable it in mesa. Just set ws->inf

[Bug 45018] [bisected] rendering regression since added support for virtual address space on cayman v11

2012-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45018 --- Comment #41 from Alex Deucher 2012-03-20 12:11:26 PDT --- Are you still getting any messages like the following in your dmesg with the latest mesa from git? radeon :01:00.0: offset 0x20 is in reserved area 0x80 radeon :01:00.

Re: [PATCH] drm/radeon/kms: add info query for max pipes

2012-03-20 Thread Alex Deucher
On Tue, Mar 20, 2012 at 1:30 PM, Tom Stellard wrote: > The maximum number of pipes is needed by the user space compute > driver to calculate the number of wavefronts per thread group. > > Signed-off-by: Tom Stellard Reviewed-by: Alex Deucher > --- >  drivers/gpu/drm/radeon/radeon_drv.c |    3

[PATCH] [RFC] dma-buf: mmap support

2012-03-20 Thread Daniel Vetter
Let's have some competition here for dma_buf mmap support ;-) Compared to Rob Clarke's RFC I've ditched the prepare/finish hooks and corresponding ioctls on the dma_buf file. The major reason for that is that many people seem to be under the impression that this is also for synchronization with ou

[PATCH 00/48] Add SI, TN support

2012-03-20 Thread alexdeucher
From: Alex Deucher This patch set adds support for SI (Southern Islands discrete GPUs) and TN (Trinity APU). The patches are available here as well: http://people.freedesktop.org/~agd5f/si_tn/ New ucode for SI (TAHITI, PITCAIRN, VERDE) and TN (ARUBA) is available here: http://people.freedesktop.

[PATCH 01/48] drm/radeon/kms: add info query for max pipes

2012-03-20 Thread alexdeucher
From: Tom Stellard The maximum number of pipes is needed by the user space compute driver to calculate the number of wavefronts per thread group. Signed-off-by: Tom Stellard --- drivers/gpu/drm/radeon/radeon_drv.c |3 ++- drivers/gpu/drm/radeon/radeon_kms.c | 13 + include/dr

[PATCH 02/48] drm/radeon/kms: Upstream ObjectID.h updates

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ObjectID.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/ObjectID.h b/drivers/gpu/drm/radeon/ObjectID.h index c61c3fe..ca4b038 100644 --- a/drivers/gpu/drm/radeon/Obj

[PATCH 04/48] drm/radeon/kms: upstream power table updates

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios.h| 180 +++--- drivers/gpu/drm/radeon/radeon_atombios.c | 14 +- 2 files changed, 172 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios.h b/drivers/g

[PATCH 05/48] drm/radeon/kms: add SI chip families

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- 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/radeon.

[PATCH 06/48] drm/radeon/kms: add initial DCE6 display watermark support

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/Makefile |2 +- drivers/gpu/drm/radeon/radeon_asic.h |3 + drivers/gpu/drm/radeon/si.c | 486 ++ drivers/gpu/drm/radeon/sid.h | 46 4 files changed, 53

[PATCH 07/48] drm/radeon/kms: fix up atom HPD gpio parsing for DCE6

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c |4 ++- drivers/gpu/drm/radeon/radeon_reg.h |1 + drivers/gpu/drm/radeon/si_reg.h | 33 ++ 3 files changed, 37 insertions(+), 1 deletions(-) create mo

[PATCH 08/48] drm/radeon/kms/atom: DCE6 no longer has crtcmemreq bits

2012-03-20 Thread alexdeucher
From: Alex Deucher The hw no longer has the bits and the table is removed. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombio

[PATCH 09/48] drm/radeon/kms/atom: add support for crtc power gating

2012-03-20 Thread alexdeucher
From: Alex Deucher Each pair of crtcs (0/1, 2/3, 4/5) can be power gated. Make sure the power is applied when the crtc is in use and only power down the pair when both are off. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 38 1 fil

[PATCH 10/48] drm/radeon/kms: DCE6 disp eng pll updates

2012-03-20 Thread alexdeucher
From: Alex Deucher Rename the function to better match the functionality. DCPLL became PLL0 on DCE6. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 15 ++- drivers/gpu/drm/radeon/radeon_device.c |2 +- drivers/gpu/drm/radeon/radeon_display.c |2

[PATCH 11/48] drm/radeon/kms/atom: add support for DCE6.x dig transmitters

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c | 57 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index b88c4

[PATCH 12/48] drm/radeon/kms: DP aux updates for DCE6

2012-03-20 Thread alexdeucher
From: Alex Deucher DCE6 requires a non-0 value for lpAuxRequest for the ProcessAuxChannelTransaction command table. Setting lpAuxRequest to 0 is a special case used by AsicInit for setting up the aux pads. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_dp.c |6 +++--- 1 f

[PATCH 13/48] drm/radeon/kms: update comments about dig encoders/transmitters

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index 28b55da..45bb2fc 100644 ---

[PATCH 14/48] drm/radeon/kms/atom: add support for SI SetVoltage table

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |1 - drivers/gpu/drm/radeon/radeon_atombios.c | 39 + 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/

[PATCH 15/48] drm/radeon/kms: update power table parsing for SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |1 + drivers/gpu/drm/radeon/radeon_atombios.c | 21 + 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/r

[PATCH 16/48] drm/radeon/kms: add support for internal thermal sensor on SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h|1 + drivers/gpu/drm/radeon/radeon_pm.c |4 drivers/gpu/drm/radeon/si.c| 19 +++ drivers/gpu/drm/radeon/sid.h |8 4 files changed, 32 insertions(+), 0

[PATCH 17/48] drm/radeon/kms: add gpu init support for SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 32 ++ drivers/gpu/drm/radeon/si.c | 1005 +++ drivers/gpu/drm/radeon/sid.h| 201 3 files changed, 1238 insertions(+), 0 deletions(-) diff --git a/driver

[PATCH 18/48] drm/radeon/kms: Add support for SI GPU reset

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 100 ++ drivers/gpu/drm/radeon/sid.h | 70 + 2 files changed, 170 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/dr

[PATCH 19/48] drm/radeon/kms: add support for MC/VM setup on SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Sets up the VM and adds support for the new VM ioctls. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 328 ++ drivers/gpu/drm/radeon/sid.h | 219 2 files changed, 547 insertions(+), 0 dele

[PATCH 20/48] drm/radeon/kms: add support for the CONST IB to the CS ioctl

2012-03-20 Thread alexdeucher
From: Alex Deucher This adds a new chunk id to the CS ioctl to support the INDIRECT_BUFFER_CONST packet. On SI, the CP adds a new engine called the CE (Constant Engine) which runs simulatenously with the DE (Drawing Engine, formerly called the ME). This allows the CP to process two related IBs

[PATCH 21/48] drm/radeon/kms: add VM CS checker for SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 309 ++ drivers/gpu/drm/radeon/sid.h | 31 2 files changed, 340 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c

[PATCH 22/48] drm/radeon/kms: Only VM CS ioctl is supported on SI (v2)

2012-03-20 Thread alexdeucher
From: Alex Deucher v2: avoid double free. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_cs.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index 087bd50..5e459a3 100644 ---

[PATCH 23/48] drm/radeon/kms: add ucode loading for SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Currently the driver required 5 sets of ucode: 1. pfp - pre-fetch parser, part of the CP 2. me - micro engine, part of the CP 3. ce - constant engine, part of the CP 4. rlc - interrupt controller 5. mc - memory controller Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeo

[PATCH 24/48] drm/radeon/kms: add support for MC ucode loading on SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 195 ++ drivers/gpu/drm/radeon/sid.h | 16 2 files changed, 211 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c

[PATCH 25/48] drm/radeon/kms: add support for CP setup on SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/Makefile |2 +- drivers/gpu/drm/radeon/si.c | 267 ++ drivers/gpu/drm/radeon/si_blit_shaders.c | 252 drivers/gpu/drm/radeon/si_blit_sha

[PATCH 26/48] drm/radeon/kms: add IB and fence dispatch functions for SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Support both IBs (DE) and CONST IBs (CE). Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 78 ++ drivers/gpu/drm/radeon/sid.h | 65 +++ 2 files changed, 143 insertions(+), 0 deletions(

[PATCH 27/48] drm/radeon/kms: Add support for RLC init on SI

2012-03-20 Thread alexdeucher
From: Alex Deucher RLC handles the interrupt controller and other tasks on the GPU. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 13 drivers/gpu/drm/radeon/si.c | 132 +++ drivers/gpu/drm/radeon/sid.h| 17 + 3 files

[PATCH 28/48] drm/radeon/kms: add support for interrupts on SI

2012-03-20 Thread alexdeucher
From: Alex Deucher This is mostly identical to evergreen/ni, however there are some additional fields in the IV vector for RINGID and VMID. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600.c |4 +- drivers/gpu/drm/radeon/si.c | 721 + d

[PATCH 29/48] drm/radeon/kms: fill in startup/shutdown callbacks for SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/si.c | 329 +++ 1 files changed, 329 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index 6aecbf5..4c0d8d2 100644 --- a/drive

[PATCH 30/48] drm/radeon/kms: add support for compute rings in CS ioctl on SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Very basic implementation for picking the ring priority. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_cs.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs

[PATCH 31/48] drm/radeon/kms: add radeon_asic struct for SI

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c | 110 ++ drivers/gpu/drm/radeon/radeon_asic.h | 22 +++ 2 files changed, 132 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/driver

[PATCH 32/48] drm/radeon: Update radeon_info_ioctl for SI. (v2)

2012-03-20 Thread alexdeucher
From: Michel Dänzer v2: agd5f: add new MAX_PIPES param Signed-off-by: Michel Dänzer Reviewed-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_kms.c | 21 - 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gp

[PATCH 33/48] drm/radeon/kms: Add SI pci ids

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- include/drm/drm_pciids.h | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index 14b6cd0..1ab5270 100644 --- a/include/drm/drm_pcii

[PATCH 34/48] drm/radeon/kms: add trinity (TN) chip family

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h|4 +++- drivers/gpu/drm/radeon/radeon_device.c |1 + drivers/gpu/drm/radeon/radeon_family.h |1 + 3 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h

[PATCH 35/48] drm/radeon/kms: no support for internal thermal sensor on TN yet

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_pm.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index a6dbefc..caa55d6 100644 --- a/drivers/gpu/drm/radeon/ra

[PATCH 36/48] drm/radeon/kms: DCE6.1 watermark updates for TN

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |2 +- drivers/gpu/drm/radeon/si.c|8 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 466d

[PATCH 37/48] drm/radeon/kms: DCE6.1 disp eng pll updates

2012-03-20 Thread alexdeucher
From: Alex Deucher DCE6.1 uses EXT_PLL1 for disp eng. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 6fe4a6

[PATCH 38/48] drm/radeon/kms: Adjust pll picker for DCE6.1

2012-03-20 Thread alexdeucher
From: Alex Deucher On TN, UNIPHYA always uses PPLL2, UNIPHYB/C/D/E/F can use either PPLL1 or PPLL0. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 31 ++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/rad

[PATCH 39/48] drm/radeon/kms: disable PPLL0 on DCE6.1 when not in use

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 92263af..a5c4e3f 100644 --- a/drivers/

[PATCH 40/48] drm/radeon/kms/DCE6.1: ss is not supported on the internal pplls

2012-03-20 Thread alexdeucher
From: Alex Deucher It's handled via external clock. It should already be protected by the external ss flag, but add an explicit check just in case. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/d

[PATCH 41/48] drm/radeon/kms: Add checks for TN in the DP bridge code

2012-03-20 Thread alexdeucher
From: Alex Deucher TN (trinity) uses DP bridges for LVDS and VGA just like llano. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu

[PATCH 42/48] drm/radeon/kms: cayman gpu init updates for trinity

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_blit_kms.c |2 +- drivers/gpu/drm/radeon/ni.c | 52 -- 2 files changed, 49 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_blit_kms.c b

[PATCH 43/48] drm/radeon/kms: Update evergreen functions for trinity

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 23 +-- drivers/gpu/drm/radeon/nid.h |1 + 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergre

[PATCH 44/48] drm/radeon/kms/vm: set vram base offset properly for TN

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 833892f..bae3ec3 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/g

[PATCH 45/48] drm/radeon/kms: add support for ucode loading on trinity (v2)

2012-03-20 Thread alexdeucher
From: Alex Deucher v2: fix check for MC ucode from Tom. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni.c| 82 +++- drivers/gpu/drm/radeon/r600.c | 21 -- drivers/gpu/drm/radeon/r600d.h |4 ++ drivers/gpu/drm/radeon/si.c|

[PATCH 46/48] drm/radeon/kms: add radeon_asic struct for trinity

2012-03-20 Thread alexdeucher
From: Alex Deucher Trinity (TN) is an APU with: - Cayman 3D - DCE6.1 display Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c | 98 ++ 1 files changed, 98 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/d

[PATCH 47/48] drm/radeon/kms: add trinity pci ids

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- include/drm/drm_pciids.h | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index 1ab5270..58d0bda 100644 --- a/include/drm/drm_pciids.h +++ b/include/drm

[PATCH 48/48] drm/radeon/kms: update duallink checks for DCE6

2012-03-20 Thread alexdeucher
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_connectors.c |2 +- drivers/gpu/drm/radeon/radeon_encoders.c |6 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/

Re: [PATCH] [RFC] dma-buf: mmap support

2012-03-20 Thread Daniel Vetter
On Tue, Mar 20, 2012 at 09:53:05PM +0100, Daniel Vetter wrote: > Note taht this dma-buf mmap patch does _not_ support every possible > insanity an existing subsystem could pull of with mmap: Because it > does not allow to intercept pagefaults and shoot down ptes importing > subsystems can't add som

Re: [PATCH 17/48] drm/radeon/kms: add gpu init support for SI

2012-03-20 Thread Jerome Glisse
On Tue, 2012-03-20 at 17:18 -0400, alexdeuc...@gmail.com wrote: > From: Alex Deucher > > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/radeon/radeon.h | 32 ++ > drivers/gpu/drm/radeon/si.c | 1005 > +++ > drivers/gpu/drm/radeon/sid.h| 201 +

Re: [PATCH 00/48] Add SI, TN support

2012-03-20 Thread Jerome Glisse
On Tue, 2012-03-20 at 17:17 -0400, alexdeuc...@gmail.com wrote: > From: Alex Deucher > > This patch set adds support for SI (Southern Islands discrete > GPUs) and TN (Trinity APU). The patches are available here > as well: > http://people.freedesktop.org/~agd5f/si_tn/ > New ucode for SI (TAHITI,

Re: [PATCH 06/48] drm/radeon/kms: add initial DCE6 display watermark support

2012-03-20 Thread Jerome Glisse
On Tue, 2012-03-20 at 17:18 -0400, alexdeuc...@gmail.com wrote: > From: Alex Deucher > > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/radeon/Makefile |2 +- > drivers/gpu/drm/radeon/radeon_asic.h |3 + > drivers/gpu/drm/radeon/si.c | 486 >

Re: [PATCH 19/48] drm/radeon/kms: add support for MC/VM setup on SI

2012-03-20 Thread Jerome Glisse
On Tue, 2012-03-20 at 17:18 -0400, alexdeuc...@gmail.com wrote: > From: Alex Deucher > > Sets up the VM and adds support for the new VM ioctls. > > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/radeon/si.c | 328 > ++ > drivers/gpu/drm/radeon/si

Re: Why do flush page cache twice when change TT's cache attribute

2012-03-20 Thread Scott Fang
yes, flush page twice cause system slow in some CPU. Meanwhile, set_memory_uc/wc doesn't only do flush page cache, but also change page table attribute, so your solution seems to have some problem. 2012/3/20 Konrad Rzeszutek Wilk > On Tue, Mar 20, 2012 at 10:15:02AM +0800, Scott Fang wrote: > >

RE: [PATCH v2 00/14] updated exynos-drm-next.

2012-03-20 Thread Inki Dae
Hi Dave, > -Original Message- > From: Dave Airlie [mailto:airl...@gmail.com] > Sent: Tuesday, March 20, 2012 6:49 PM > To: Inki Dae > Cc: airl...@linux.ie; dri-devel@lists.freedesktop.org; > kyungmin.p...@samsung.com; sw0312@samsung.com > Subject: Re: [PATCH v2 00/14] updated exynos-dr

[git pull] updated exynos-drm-next

2012-03-20 Thread Inki Dae
Hi, Dave. as you pointed out, we have removed g2d driver from this patch set and rebased virtual display driver. for g2d driver, we will consolidate the security issue you pointed out for next time. Please pull from git://git.infradead.org/users/kmpark/linux-samsung exynos-drm-next this

Re: Fwd: Brightness on HP EliteBook 8460p

2012-03-20 Thread Pali Rohár
On Saturday 04 February 2012 20:19:16 Joey Lee wrote: > Add Cc. to dri mail > > Hi Pali, > > 於 五,2012-02-03 於 16:24 +0100,Pali Rohár 提到: > > > On Friday 20 January 2012 17:55:57 Pali Rohár wrote: > > > On Friday 20 January 2012 11:28:59 joeyli wrote: > > > > 於 五,2012-01-20 於 11:12 +0800,joeyli 提到:

Re: Fwd: Brightness on HP EliteBook 8460p

2012-03-20 Thread joeyli
於 二,2012-03-20 於 23:03 +0100,Pali Rohár 提到: > > > > Another doubt is the latest statement in _BCM, it emit a BEVT event: > > > > Signal (\_SB.BEVT) > > > > Only HKFR(HotkeyFunctionResponse) method is waiting this event, it > > should related to how the HP implement brightness function key on > >

[PATCH] dma-buf: add support for kernel cpu access

2012-03-20 Thread Daniel Vetter
Big differences to other contenders in the field (like ion) is that this also supports highmem, so we have to split up the cpu access from the kernel side into a prepare and a kmap step. Prepare is allowed to fail and should do everything required so that the kmap calls can succeed (like swapin/ba

[PATCH v2 09/14] drm/exynos: add G2D driver

2012-03-20 Thread Joonyoung Shim
On 03/19/2012 09:25 PM, Dave Airlie wrote: > On Fri, Mar 16, 2012 at 9:47 AM, Inki Dae wrote: >> From: Joonyoung Shim >> >> The G2D is a 2D graphic accelerator that supports Bit Block Transfer. >> This G2D driver is exynos drm specific and supports only G2D(version >> 4.1) of later Exynos series f

Why do flush page cache twice when change TT's cache attribute

2012-03-20 Thread Scott Fang
> > Does the code do some abundant flush, or there is some trick to these > > codes? > > > > Thanks for the answer in advance. > > Yes there might be redundant flushing. > > Cheers, > Jerome > > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20120320/69ebebc5/attachment.html>

[PATCH] gpu: schedule gma500 stub driver for feature removal

2012-03-20 Thread Lee, Chun-Yi
In v3.3, the gma500 drm driver moved from staging to drm group by Alan Cox's 3abcf41fb patch. the gma500 drm driver should control brightness well and don't need gma500 stub driver anymore. So, my plan is remove gma500 stub driver at Dec. 2012. Signed-off-by: Lee, Chun-Yi --- Documentation/feat

[PATCH v2 00/14] updated exynos-drm-next.

2012-03-20 Thread Dave Airlie
On Fri, Mar 16, 2012 at 9:47 AM, Inki Dae wrote: > Hi, Dave and all. Hi Inki, I've taken most of these patches except for the G2D and Virtual drivers, If you can make the virtual driver rebase without G2D I don't see an issue with merging it, it didn't seem to apply cleanly here. But I don't t

[PATCH 1/5] drm: add drm_property_change_is_valid

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Move code from drm_mode_connector_property_set_ioctl to a new function, so we can reuse this code when we add crtc properties. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/drm_crtc.c | 41 + 1 files changed, 21 insertions(+), 20 d

[PATCH 2/5] drm: WARN() when drm_connector_attach_property fails

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Also return void instead of int. We have more than 100 callers and no one checks for the return value. If this function fails the property won't be exposed by the get/set ioctls, but we should probably survive. If this starts happening, the solution will be to increase DRM_CON

[PATCH 3/5] drm: add CRTC properties

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni Code based on the connector properties code. Two new ioctls: - DRM_IOCTL_MODE_CRTC_GETPROPERTIES - DRM_IOCTL_MODE_CRTC_SETPROPERTY The i915 driver needs this for the rotation and overscan compensation properties. Other drivers might need this too. v2: replace BUG_ON() for WA

[PATCH 4/5] drm/i915: add 'rotation' CRTC property

2012-03-20 Thread Paulo Zanoni
From: Paulo Zanoni This property is needed so we can inform the KVMr feature about our current rotation: whenever we change the rotation, we should change that property so that the KVMr knows that the screen is rotated. How to reproduce the problem: - on an AMT machine, enable KVM - boot the mac

  1   2   >