Re: [Intel-gfx] [PATCH 10/10] drm/i915: Use plane_name() in gen7_enable_fbc()

2013-11-21 Thread Daniel Vetter
On Wed, Nov 20, 2013 at 03:01:03PM -0800, Rodrigo Vivi wrote: > Reviewed-by: Rodrigo Vivi > > On Wed, Nov 06, 2013 at 11:02:25PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > All the other .enable_fbc() funcs use plane_name(). Make > > gen7_enable_fbc() do the same

Re: [Intel-gfx] [PATCH 9/9] drm/i915: Enable pipe gamma for sprites

2013-11-21 Thread Daniel Vetter
On Tue, Nov 19, 2013 at 09:42:55AM -0800, Rodrigo Vivi wrote: > Reviewed-by: Rodrigo Vivi > > On Mon, Nov 18, 2013 at 6:32 PM, Rodrigo Vivi wrote: > > From: Ville Syrjälä > > > > We send the primary and cursor plane data through the gamma unit. > > In order to get matching output from sprites,

Re: [Intel-gfx] [PATCH 01/10] drm/i915: Grab struct_mutex around all FBC updates

2013-11-21 Thread Daniel Vetter
On Wed, Nov 20, 2013 at 11:39 PM, Rodrigo Vivi wrote: > On Wed, Nov 06, 2013 at 11:02:16PM +0200, ville.syrj...@linux.intel.com wrote: >> From: Ville Syrjälä >> >> We need some protection for the FBC state, and since struct_mutex >> is it currently in most places, make sure all FBC update/disable

Re: [Intel-gfx] [PATCH 00/10] drm/i915: FBC fixes v2

2013-11-21 Thread Rodrigo Vivi
(just noticed mutt behind tsocks missed this email) On Wed, Nov 6, 2013 at 1:02 PM, wrote: > One more attempt at making FBC suck a bit less. > > The main thing as before is getting the LRI based render/blitter > tracking in place. > > In this updates series I decided the way to avoid the kms loc

Re: [Intel-gfx] [PATCH 10/10] drm/i915: Use plane_name() in gen7_enable_fbc()

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 09:08:44AM +0100, Daniel Vetter wrote: > On Wed, Nov 20, 2013 at 03:01:03PM -0800, Rodrigo Vivi wrote: > > Reviewed-by: Rodrigo Vivi > > > > On Wed, Nov 06, 2013 at 11:02:25PM +0200, ville.syrj...@linux.intel.com > > wrote: > > > From: Ville Syrjälä > > > > > > All the

Re: [Intel-gfx] [PATCH 01/10] drm/i915: Grab struct_mutex around all FBC updates

2013-11-21 Thread Ville Syrjälä
On Thu, Nov 21, 2013 at 09:22:43AM +0100, Daniel Vetter wrote: > On Wed, Nov 20, 2013 at 11:39 PM, Rodrigo Vivi wrote: > > On Wed, Nov 06, 2013 at 11:02:16PM +0200, ville.syrj...@linux.intel.com > > wrote: > >> From: Ville Syrjälä > >> > >> We need some protection for the FBC state, and since st

Re: [Intel-gfx] [PATCH 10/10] drm/i915: Use plane_name() in gen7_enable_fbc()

2013-11-21 Thread Ville Syrjälä
On Thu, Nov 21, 2013 at 09:08:44AM +0100, Daniel Vetter wrote: > On Wed, Nov 20, 2013 at 03:01:03PM -0800, Rodrigo Vivi wrote: > > Reviewed-by: Rodrigo Vivi > > > > On Wed, Nov 06, 2013 at 11:02:25PM +0200, ville.syrj...@linux.intel.com > > wrote: > > > From: Ville Syrjälä > > > > > > All the

[Intel-gfx] [PATCH v2 01/10] drm/i915: Grab struct_mutex around all FBC updates

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä We need some protection for the FBC state, and since struct_mutex is it currently in most places, make sure all FBC update/disable calles are protected by it. v2: Also protect intel_disable_fbc in i9xx_crtc_disable Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/inte

[Intel-gfx] [PATCH v2 02/10] drm/i915: Have FBC keep references to the fb

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä In order to do the FBC tracking properly for execbuffer, we need to figure out if the object being rendered to is the current front buffer. However in order to do that purely based on the crtc, we'd need to grab crtc->mutex, but we can't since we're already holding struct_mute

[Intel-gfx] [PATCH v4 06/10] drm/i915: Implement LRI based FBC tracking

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä As per the SNB and HSW PM guides, we should enable FBC render/blitter tracking only during batches targetting the front buffer. On SNB we must also update the FBC render tracking address whenever it changes. And since the register in question is stored in the context, we need

Re: [Intel-gfx] [PATCH v4 06/10] drm/i915: Implement LRI based FBC tracking

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 01:14:10PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > As per the SNB and HSW PM guides, we should enable FBC render/blitter > tracking only during batches targetting the front buffer. > > On SNB we must also update the FBC render tracking addres

[Intel-gfx] [PATCH 17/19] drm/i915: fix VDD override off wait

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni If we're disabling the VDD override bit and the panel is enabled, we don't need to wait for anything. If the panel is disabled, then we need to actually wait for panel_power_cycle_delay, not panel_power_down_delay, because the power down delay was already respected when we disa

[Intel-gfx] [PATCH 02/19] drm/i915: use the correct force_wake function at the PC8 code

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni When I submitted the first patch adding these force wake functions, Chris Wilson observed that I was using the wrong functions, so I sent a second version of the patch to correct this problem. The problem is that v1 was merged instead of v2. I was able to notice the problem wh

Re: [Intel-gfx] [PATCH] drm/i915/ddi: set sink to power down mode on dp disable

2013-11-21 Thread Daniel Vetter
On Mon, Nov 18, 2013 at 02:45:47PM -0200, Paulo Zanoni wrote: > 2013/11/15 Jani Nikula : > > Similar to > > commit fdbc3b1f639bb2cbfb32c612b2699e0ba373317d > > Author: Jani Nikula > > Date: Tue Nov 12 17:10:13 2013 +0200 > > > > drm/i915/dp: set sink to power down mode on dp disable > > > >

[Intel-gfx] [PATCH igt 2/2] kms_fbc_crc: Add a CRC based FBC test

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä kms_fbc_crc will perform various write operations to the scanout buffer whilc FBC is enabled. CRC checks will be used to make sure the modifcations to scanout buffer are detected. The operations include: - page flip - pwrite - GTT mmap - CPU mmap - blit - rendercopy -

Re: [Intel-gfx] [PATCH 12/19] drm/i915: release the GTT mmaps when going into D3

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 01:47:26PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > So we'll get a fault when someone tries to access the mmap, then we'll > wake up from D3. Harsh. Very harsh. Is the GTT completely off-limits under pc8, or is it only the GTT access to the display engine? i.e.

[Intel-gfx] [PATCH 15/19] drm/i915: don't enable VDD just to enable the panel

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni We just don't need this. This saves 250ms from every modeset on my machine. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 731a919

Re: [Intel-gfx] AVI infoframes: default aspect ratio/VIC for CEA modes

2013-11-21 Thread Ville Syrjälä
On Thu, Nov 21, 2013 at 02:48:55AM +, Gohad, Tushar wrote: > > On Wed, Nov 20, 2013 at 11:45:03PM +, Gohad, Tushar wrote: > > > > > On Wed, Nov 20, 2013 at 09:48:26PM +, Gohad, Tushar wrote: > > > > > > Folks, > > > > > > > > > > > > When filling in an HDMI AVI infoframe, how does one c

[Intel-gfx] [PATCH 09/19] drm/i915: get a runtime PM reference when the panel VDD is on

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni And put it when it's off. Otherwise, when you run pm_pc8 from intel-gpu-tools, and the delayed function that disables VDD runs, we'll get some messages saying we're touching registers while the HW is suspended. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_dp.c

Re: [Intel-gfx] [PATCH 8/9] drm/i915: Hook up dirtyfb ioctl for FBC nuke

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 09:29:52PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > FBC host modification tracking only works through GTT mmaps, so any > direct CPU access needs to manually nuke the compressed framebuffer > on modifications. Hook up the dirtyfb ioctl to do ju

Re: [Intel-gfx] [PATCH 9/9] drm/i915: Flush caches for scanout during cpu->gtt move

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 09:29:53PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Flush the caches when moving a scanout buffer from CPU to GTT domain. > This allows us to move a scanout buffer to CPU write domain, do some > writes, and move it back to the GTT read domain.

Re: [Intel-gfx] [PATCH 1/9] drm/i915: Don't set the fence number in DPFC_CTL on SNB

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 09:29:45PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > SNB has another register where the actual FBC CPU fence number is > stored. The documenation explicitly states that the fence number > in DPFC_CTL must be 0 on SNB. And in fact when it's not z

[Intel-gfx] [PATCH 05/19] drm/i915: add initial Runtime PM functions

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni This patch adds the initial infrastructure to allow a Runtime PM implementation that sets the device to its D3 state. The patch just adds the necessary callbacks and the initial infrastructure. We still don't have any platform that actually uses this infrastructure, we still d

[Intel-gfx] [PATCH 5/9] drm/i915: Reorder i915_gem_execbuffer_move_to_gpu() and i915_switch_context()

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä The FBC RT address is stored in the context, and thus needs to be rewritten after a context switch before any batches are run. We emit the LRI to update the FBC RT address when we call the ring ->flush function to invalidate the caches. When a context switch is being performe

[Intel-gfx] [PATCH 13/19] drm: do not steal the display if we have a master

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni Sometimes we want to disable all the screens on a system, because that will allow the graphics card to be put into low-power states. The problem is that, for example, while all screens are disabled, if we get a hotplug interrupt, fbcon will decide to set a mode instead of keepi

[Intel-gfx] [PATCH 19/19] drm/i915: init the DP panel power seq regs earlier

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni When we call intel_dp_i2c_init we already get some I2C calls, which will trigger a VDD enable, which will make use of the panel power sequencing registers, so we need to have them ready by this time. The good side is that we were reading the values, but were not using them for

Re: [Intel-gfx] [PATCH 18/19] drm/i915: save some time when waiting the eDP timings

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 01:47:32PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > The eDP spec defines some points where after you do action A, you have > to wait some time before action B. The thing is that in our driver > action B does not happen exactly after action A, but we still use >

[Intel-gfx] [PATCH 16/19] drm/i915: don't touch the VDD when disabling the panel

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni I don't see a reason to touch VDD when we're disabling the panel: since the panel is enabled, we don't need VDD. This saves a few sleep calls from the vdd_on and vdd_off functions at every modeset. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 1 - driv

[Intel-gfx] [PATCH 10/19] drm/i915: do not assert DE_PCH_EVENT_IVB enabled

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni The current code was checking if all bits of "val" were enabled and DE_PCH_EVENT_IVB was disabled. The new code doesn't care about the state of DE_PCH_EVENT_IVB: it just checks if everything else is 1. The goal is that future patches may completely disable interrupts, and the

[Intel-gfx] [PATCH] i915, fbdev: Fix Kconfig typo

2013-11-21 Thread Borislav Petkov
From: Borislav Petkov Too many t's. Cc: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org Cc: dri-de...@lists.freedesktop.org Signed-off-by: Borislav Petkov --- drivers/gpu/drm/i915/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/Kconfig b/driv

[Intel-gfx] [PATCH 00/19] Haswell runtime PM support + D3

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni Hi This series adds Haswell runtime PM support, which will put the graphics device in D3 state, saving a lot of power. Fore more information, see the previous cover letter: http://lists.freedesktop.org/archives/intel-gfx/2013-October/034910.html What changes from the previo

Re: [Intel-gfx] [PATCH 06/19] drm/i915: do adapter power state notification at runtime PM

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 01:47:20PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > Now that we are actually setting the device to the D3 state, we should > issue the notification. Can you please add a snippet to justify the ordering? Is there anything to say what state the callee expects the

Re: [Intel-gfx] [PATCH v4 06/10] drm/i915: Implement LRI based FBC tracking

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 06:33:21PM +0200, Ville Syrjälä wrote: > On Thu, Nov 21, 2013 at 11:49:47AM +, Chris Wilson wrote: > > On Thu, Nov 21, 2013 at 01:14:10PM +0200, ville.syrj...@linux.intel.com > > wrote: > > > From: Ville Syrjälä > > > > > > As per the SNB and HSW PM guides, we should

Re: [Intel-gfx] [PATCH 13/19] drm: do not steal the display if we have a master

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 01:47:27PM -0200, Paulo Zanoni wrote: > diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c > index 0a19401..199d0c0 100644 > --- a/drivers/gpu/drm/drm_fb_helper.c > +++ b/drivers/gpu/drm/drm_fb_helper.c > @@ -368,6 +368,12 @@ static bool drm_fb_he

[Intel-gfx] [PATCH igt 1/2] rendercopy: Pass context to rendercopy functions

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä rendercopy does the batch buffer flush internally, so if we want to use it with multiple contexts, we need to pass the context in from caller. Signed-off-by: Ville Syrjälä --- lib/rendercopy.h| 5 + lib/rendercopy_gen6.c | 12 +++- lib

Re: [Intel-gfx] [PATCH v4 06/10] drm/i915: Implement LRI based FBC tracking

2013-11-21 Thread Ville Syrjälä
On Thu, Nov 21, 2013 at 11:49:47AM +, Chris Wilson wrote: > On Thu, Nov 21, 2013 at 01:14:10PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > As per the SNB and HSW PM guides, we should enable FBC render/blitter > > tracking only during batches targetting the fron

[Intel-gfx] [PATCH 18/19] drm/i915: save some time when waiting the eDP timings

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni The eDP spec defines some points where after you do action A, you have to wait some time before action B. The thing is that in our driver action B does not happen exactly after action A, but we still use msleep() calls directly. What this patch happens is that we record the tim

[Intel-gfx] [PATCH 3/9] drm/i915: Don't set DPFC_HT_MODIFY bit on CTG/ILK/SNB

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä The ILK/SNB docs don't really mention the the DPFC_HT_MODIFY bit. CTG docs clearly state that it should be set only when tracking back buffer modification in persistent mode. The bit is supposed to be set by software after the first CPU modification to the back buffer, and it

[Intel-gfx] [PATCH 9/9] drm/i915: Flush caches for scanout during cpu->gtt move

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä Flush the caches when moving a scanout buffer from CPU to GTT domain. This allows us to move a scanout buffer to CPU write domain, do some writes, and move it back to the GTT read domain. The display will then see the correct data. In addition we still need to do the dirtyfb i

[Intel-gfx] [PATCH 4/9] drm/i915: Use LRI based FBC render tracking for ILK

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä ILK should work pretty much the same as SNB, except it doesn't have the blitter, so we only care about render tracking. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_reg.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 2 -- drivers/gpu/drm/i915/in

[Intel-gfx] [PATCH] i915, debugfs: Fix uninitialized warning

2013-11-21 Thread Borislav Petkov
From: Borislav Petkov gcc complains that: drivers/gpu/drm/i915/i915_debugfs.c: In function ‘display_crc_ctl_write’: drivers/gpu/drm/i915/i915_debugfs.c:2393:2: warning: ‘val’ may be used uninitialized in this function [-Wuninitialized] drivers/gpu/drm/i915/i915_debugfs.c:2350:6: note: ‘val’ was

[Intel-gfx] [PATCH 07/19] drm/i915: add runtime put/get calls at the basic places

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni If I add code to enable runtime PM on my Haswell machine, start a desktop environment, then enable runtime PM, these functions will complain that they're trying to read/write registers while the graphics card is suspended. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 12/19] drm/i915: release the GTT mmaps when going into D3

2013-11-21 Thread Paulo Zanoni
2013/11/21 Chris Wilson : > On Thu, Nov 21, 2013 at 01:47:26PM -0200, Paulo Zanoni wrote: >> From: Paulo Zanoni >> >> So we'll get a fault when someone tries to access the mmap, then we'll >> wake up from D3. > > Harsh. Very harsh. Is the GTT completely off-limits under pc8 Under D3, not PC8. >

Re: [Intel-gfx] [PATCH] i915, debugfs: Fix uninitialized warning

2013-11-21 Thread Daniel Vetter
On Thu, Nov 21, 2013 at 04:49:46PM +0100, Borislav Petkov wrote: > From: Borislav Petkov > > gcc complains that: > > drivers/gpu/drm/i915/i915_debugfs.c: In function ‘display_crc_ctl_write’: > drivers/gpu/drm/i915/i915_debugfs.c:2393:2: warning: ‘val’ may be used > uninitialized in this functio

[Intel-gfx] [PATCH 08/19] drm/i915: add some runtime PM get/put calls

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni These are needed when we cat the debugfs and sysfs files. V2: - Rebase V3: - Rebase Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_debugfs.c | 45 ++--- drivers/gpu/drm/i915/i915_sysfs.c | 14 ++-- drivers/gpu/drm/i915/in

[Intel-gfx] [PATCH 2/9] drm/i915: Don't set persistent FBC mode on ILK/SNB

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä The ILK/SNB docs are a bit unclear what the persistent mode does, but the CTG docs clearly state that it was meant to be used when we're tracking back buffer modifications. We never do that, so leave it in non-persistent mode. Signed-off-by: Ville Syrjälä --- drivers/gpu/dr

[Intel-gfx] [PATCH 11/19] drm/i915: disable interrupts when enabling PC8

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni The plan is to merge PC8 and D3 into a single feature, and when we're in D3 we won't get any hotplug interrupt anyway, so leaving them enable doesn't make sense, and it also brings us a problem. The problem is that we get a hotplug interrupt right when we we wake up from D3, wh

[Intel-gfx] [PATCH 14/19] drm/i915: add runtime PM support on Haswell

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni The code to enable/disable PC8 already takes care of saving and restoring all the registers we need to save/restore, so do a put() call when we enable PC8 and a get() call when we disable it. Ideally, in order to make it easier to add runtime PM support to other platforms, we

[Intel-gfx] [PATCH 03/19] drm/i915: get a PC8 reference when enabling the power well

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni In the current code, at haswell_modeset_global_resources, first we decide if we want to enable/disable the power well, then we decide if we want to enable/disable PC8. On the case where we're enabling PC8 this works fine, but on the case where we disable PC8 due to a non-eDP mo

[Intel-gfx] [PATCH] drm/i915: vlv: W/a for hotplug/manual VGA detection

2013-11-21 Thread Imre Deak
At least on my VLV stepping VGA detection doesn't work in certain cases. One such case is when all pipes are off and VGA is plugged in. Another case reported by Joonas Lahtinen (also on the same stepping) is booting with VGA disconnected where we incorrectly report that VGA is connected. At least i

Re: [Intel-gfx] [PATCH 07/19] drm/i915: add runtime put/get calls at the basic places

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 01:47:21PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > If I add code to enable runtime PM on my Haswell machine, start a > desktop environment, then enable runtime PM, these functions will > complain that they're trying to read/write registers while the > graphics

[Intel-gfx] [PATCH 12/19] drm/i915: release the GTT mmaps when going into D3

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni So we'll get a fault when someone tries to access the mmap, then we'll wake up from D3. This fixes the gem-mmap-gtt subtest from pm_pc8 from intel-gpu-tools. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_drv.c | 2 ++ drivers/gpu/drm/i915/i915_drv.h | 1 + drive

[Intel-gfx] [PATCH 8/9] drm/i915: Hook up dirtyfb ioctl for FBC nuke

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä FBC host modification tracking only works through GTT mmaps, so any direct CPU access needs to manually nuke the compressed framebuffer on modifications. Hook up the dirtyfb ioctl to do just that. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_display.c | 19 ++

[Intel-gfx] [PATCH 6/9] drm/i915: Improve page flip vs. FBC interaction

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä On FBC2 (CTG+) page flips will automagically nuke FBC, so the only thing we need to do on page flip is update the CPU fence information. On FBC1 we need to to disable+re-enable FBC around page flips. Previously we just called intel_disable_fbc() + intel_update_fbc() to do tha

[Intel-gfx] [PATCH 1/9] drm/i915: Don't set the fence number in DPFC_CTL on SNB

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä SNB has another register where the actual FBC CPU fence number is stored. The documenation explicitly states that the fence number in DPFC_CTL must be 0 on SNB. And in fact when it's not zero, the GTT tracking simply doesn't work. Signed-off-by: Ville Syrjälä --- drivers/gp

Re: [Intel-gfx] [PATCH] i915, debugfs: Fix uninitialized warning

2013-11-21 Thread Borislav Petkov
On Thu, Nov 21, 2013 at 05:10:30PM +0100, Richard Weinberger wrote: > > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c > > b/drivers/gpu/drm/i915/i915_debugfs.c > > index 6ed45a984230..1191aa47adc9 100644 > > --- a/drivers/gpu/drm/i915/i915_debugfs.c > > +++ b/drivers/gpu/drm/i915/i915_debugfs.c

Re: [Intel-gfx] AVI infoframes: default aspect ratio/VIC for CEA modes

2013-11-21 Thread Damien Lespiau
On Thu, Nov 21, 2013 at 07:19:45PM +0200, Ville Syrjälä wrote: > > > It seems natural to extend those flags to describe the picture aspect > > > ratio (that > > > why dri-devel is in Cc., touching core DRM). > > > > To start with we can use a single bit in drm_display_mode->flags to > > distingu

[Intel-gfx] [PATCH 01/19] drm/i915: WARN if !HAS_PC8 when enabling/disabling PC8

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni We already have some checks and shouldn't be reaching these places on !HAS_PC8 platforms, but add a WARN, just in case. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_di

[Intel-gfx] [PATCH 7/9] drm: Push dirtyfb ioctl kms locking down to drivers

2013-11-21 Thread ville . syrjala
From: Ville Syrjälä Not all drivers will need take all the modeset locks for dirtyfb, so push the locking down to the drivers. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c | 2 -- drivers/gpu/drm/omapdrm/omap_fb.c | 4 drivers/gpu/drm/qxl/qxl_display.c | 9 +

[Intel-gfx] [PATCH 04/19] drm/i915: get/put PC8 when we get/put a CRTC

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni Currently, PC8 is enabled at modeset_global_resources, which is called after intel_modeset_update_state. Due to this, there's a small race condition on the case where we start enabling PC8, then do a modeset while PC8 is still being enabled. The racing condition triggers a WARN

[Intel-gfx] [PATCH 0/9] drm/i915: Some more FBC stuff

2013-11-21 Thread ville . syrjala
Another set of FBC patches, which should fit on top of the previous set: "[PATCH 00/10] drm/i915: FBC fixes v2" The persistent mode and HT tracking bit stuff is a bit unclear in the docs, but I can remove it all, and everything still seems to work fine. The page flip and dirtyfb stuff is maybe a

Re: [Intel-gfx] [PATCH 04/19] drm/i915: get/put PC8 when we get/put a CRTC

2013-11-21 Thread Chris Wilson
On Thu, Nov 21, 2013 at 01:47:18PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > Currently, PC8 is enabled at modeset_global_resources, which is called > after intel_modeset_update_state. Due to this, there's a small race > condition on the case where we start enabling PC8, then do a modese

[Intel-gfx] [PATCH 06/19] drm/i915: do adapter power state notification at runtime PM

2013-11-21 Thread Paulo Zanoni
From: Paulo Zanoni Now that we are actually setting the device to the D3 state, we should issue the notification. Jani originally wrote a similar patch for PC8, but then we discovered that we were not really changing the PCI D states when enabling/disabling PC8, so we had to postpone his patch.

Re: [Intel-gfx] [PATCH] i915, fbdev: Fix Kconfig typo

2013-11-21 Thread Daniel Vetter
On Thu, Nov 21, 2013 at 03:29:55PM +0100, Borislav Petkov wrote: > From: Borislav Petkov > > Too many t's. > > Cc: Daniel Vetter > Cc: intel-gfx@lists.freedesktop.org > Cc: dri-de...@lists.freedesktop.org > Signed-off-by: Borislav Petkov Queued for -next, thanks for the patch. -Daniel > --- >

Re: [Intel-gfx] [PATCH v4 06/10] drm/i915: Implement LRI based FBC tracking

2013-11-21 Thread Ben Widawsky
On Thu, Nov 21, 2013 at 04:39:43PM +, Chris Wilson wrote: > On Thu, Nov 21, 2013 at 06:33:21PM +0200, Ville Syrjälä wrote: > > On Thu, Nov 21, 2013 at 11:49:47AM +, Chris Wilson wrote: > > > On Thu, Nov 21, 2013 at 01:14:10PM +0200, ville.syrj...@linux.intel.com > > > wrote: > > > > From: