Re: [Intel-gfx] [PATCH 1/4] drm/i915/dp: retry i2c-over-aux seven times on AUX DEFER

2013-09-23 Thread Jani Nikula
Hi Todd - On Fri, 20 Sep 2013, Todd Previte wrote: > On 09/20/2013 06:42 AM, Jani Nikula wrote: >> Per DP1.2 spec. >> >> Signed-off-by: Jani Nikula >> --- >> drivers/gpu/drm/i915/intel_dp.c |7 ++- >> 1 file changed, 6 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/gpu/drm/i

Re: [Intel-gfx] [PATCH] drm/i915/tv: clear adjusted_mode.flags

2013-09-23 Thread Knut Petersen
Hi Daniel! This patch is definitely needed for 3.12, but it is still missing in 3.12-rc2 ... cu, Knut On 10.09.2013 11:44, Daniel Vetter wrote: The native TV encoder has it's own flags to adjust sync modes and enabled interlaced modes which are totally irrelevant for the adjusted mode. This

Re: [Intel-gfx] [PATCH] [v9] drm/i915: Use the new vm [un]bind functions

2013-09-23 Thread Chris Wilson
On Mon, Sep 23, 2013 at 03:00:06PM -0700, Ben Widawsky wrote: > > I think this interface violates Rusty's rules (API should be easy to > > use but hard to misuse). > > > > vma = i915_gem_object_pin(batch_obj, ggtt, 0, false, false); > > if (IS_ERR(vm)) { > > ret = PTR_ERR(vm); > > goto

Re: [Intel-gfx] [PATCH] [v9] drm/i915: Use the new vm [un]bind functions

2013-09-23 Thread Ben Widawsky
On Mon, Sep 23, 2013 at 09:39:31AM +0100, Chris Wilson wrote: > On Sun, Sep 22, 2013 at 11:46:00AM -0700, Ben Widawsky wrote: > > From: Ben Widawsky > > > > Building on the last patch which created the new function pointers in > > the VM for bind/unbind, here we actually put those new function po

Re: [Intel-gfx] [PATCH] drm/i915: preserve pipe A quirk in i9xx_set_pipeconf

2013-09-23 Thread Chris Wilson
On Tue, Sep 24, 2013 at 12:18:32AM +0300, Meelis Roos wrote: > > Good news, testing nightly+ with patch results in machine death. Now > > seeing just where death creeps in. > > I am seeing these with just stock nightly. Maybe related... > > [ 3405.571241] shrink_slab: i915_gem_inactive_scan+0x0/0

Re: [Intel-gfx] [PATCH] drm/i915: preserve pipe A quirk in i9xx_set_pipeconf

2013-09-23 Thread Meelis Roos
> Good news, testing nightly+ with patch results in machine death. Now > seeing just where death creeps in. I am seeing these with just stock nightly. Maybe related... [ 3405.571241] shrink_slab: i915_gem_inactive_scan+0x0/0x70 [i915] negative objects to delete nr=-1568632773 [ 3405.571331] shri

Re: [Intel-gfx] [PATCH 13/13] drm/i915: Allow Dynamically GT3 Slice Shutdown.

2013-09-23 Thread Chris Wilson
On Mon, Sep 23, 2013 at 05:33:30PM -0300, Rodrigo Vivi wrote: > Slice shutdown is a power savings feature whereby parts of HW i.e. slice is > shut off on boot or dynamically to save power. > > This patch introduces a sysfs interface to easily allow dynamically switch > between full and half GT3 sl

[Intel-gfx] [PATCH 13/13] drm/i915: Allow Dynamically GT3 Slice Shutdown.

2013-09-23 Thread Rodrigo Vivi
Slice shutdown is a power savings feature whereby parts of HW i.e. slice is shut off on boot or dynamically to save power. This patch introduces a sysfs interface to easily allow dynamically switch between full and half GT3 slices. v2: remove unused variables and fix identation Signed-off-by: Ro

[Intel-gfx] [PATCH 12/13] drm/i915: Allow GT3 Slice Shutdown on Boot.

2013-09-23 Thread Rodrigo Vivi
Slice shutdown is a power savings feature whereby parts of HW i.e. slice is shut off on boot or dynamically to save power. This patch only introduces a way to disable half of Haswell GT3 slices on boot. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_drv.c | 5 + drivers/gpu/drm/

[Intel-gfx] [PATCH 11/13] drm/i915: Tweak RPS thresholds to more aggressively downclock

2013-09-23 Thread Rodrigo Vivi
From: Chris Wilson After applying wait-boost we often find ourselves stuck at higher clocks than required. The current threshold value requires the GPU to be continuously and completely idle for 313ms before it is dropped by one bin. Conversely, we require the GPU to be busy for an average of 90%

[Intel-gfx] [PATCH 10/13] drm/i915: Boost RPS frequency for CPU stalls

2013-09-23 Thread Rodrigo Vivi
From: Chris Wilson If we encounter a situation where the CPU blocks waiting for results from the GPU, give the GPU a kick to boost its the frequency. This should work to reduce user interface stalls and to quickly promote mesa to high frequencies - but the cost is that our requested frequency st

[Intel-gfx] [PATCH 09/13] drm/i915: Add a tracepoint for using a semaphore

2013-09-23 Thread Rodrigo Vivi
From: Chris Wilson So that we can find the callers who introduce a ring stall. A single ring stall is not too unwelcome, the right issue becomes when they start to interlock and prevent any concurrent work. That, however, is a little tricker to detect with a mere tracepoint! v2: Rebrand it as a

[Intel-gfx] [PATCH 08/13] drm/i915: Delay the relase of the forcewake by a jiffie

2013-09-23 Thread Rodrigo Vivi
From: Chris Wilson Obtaining the forcwake requires expensive and time consuming serialisation. And we often try to obtain the forcewake multiple times in very quick succession. We can reduce the overhead of these sequences by delaying the forcewake release, and so not hammer the hw quite so hard.

[Intel-gfx] [PATCH 07/13] drm/i915: Initialise min/max frequencies before updating RPS registers

2013-09-23 Thread Rodrigo Vivi
From: Chris Wilson The RPS register writing routines use the current value of min/max to set certain limits and interrupt gating. If we set those afterwards, we risk setting up the hw incorrectly and losing power management events, and worse, trigger some internal assertions. Reorder the calling

[Intel-gfx] [PATCH 06/13] drm/i915: Pair seqno completion tracepoint with its dispatch

2013-09-23 Thread Rodrigo Vivi
From: Chris Wilson In order to time how long a seqno is executed by a ring, we need to measure both its insertion and its completion. (Using the completion of the previous seqno as an estimate for when the GPU starts, if busy.) In order to get an exact completion timestamp, we need irqs. This is

[Intel-gfx] [PATCH 04/13] drm/i915: Asynchronously perform the set-base for a simple modeset

2013-09-23 Thread Rodrigo Vivi
From: Chris Wilson A simple modeset, where we only wish to switch over to a new framebuffer such as the transition from fbcon to X, takes around 30-60ms. This is due to three factors: 1. We need to make sure the fb->obj is in the display domain, which incurs a cache flush to ensure no dirt is le

[Intel-gfx] [PATCH 05/13] drm/i915: Align tiled scanouts from stolen memory to 256k in the GTT

2013-09-23 Thread Rodrigo Vivi
From: Chris Wilson For unfathomable reasons this alignment appears to be required for tiled scanouts being read from stolen memory. I can find no reference in the w/a db to support this requirement, but the evidence of my own eyes says this prevents many headaches. Note that I have not tricked a

[Intel-gfx] [PATCH 03/13] drm/i915: Add some missing steps to i915_driver_load error path

2013-09-23 Thread Rodrigo Vivi
From: Chris Wilson We missed adding a few cleanup steps for recent additions. Reviewer: Ben Widawsky Signed-off-by: Chris Wilson Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_dma.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/drivers/g

[Intel-gfx] [PATCH 02/13] drm/i915: Move the conditional seqno query into the tracepoint

2013-09-23 Thread Rodrigo Vivi
From: Chris Wilson We only wish to know the value of seqno when emitting the tracepoint, so move the query from a parameter to the macro to inside the conditional macro body so that the query is only evaluated when required. Reviewer: Ville Syrjälä Signed-off-by: Chris Wilson Signed-off-by: Ro

[Intel-gfx] [PATCH 01/13] drm/i915: check that the i965g/gm 4G limit is really obeyed

2013-09-23 Thread Rodrigo Vivi
From: Daniel Vetter In truly crazy circumstances shmem might give us the wrong type of page. So be a bit paranoid and double check this. Reviewer: Damien Lespiau Cc: Rob Clark References: http://lkml.org/lkml/2011/7/11/238 Signed-off-by: Daniel Vetter Signed-off-by: Rodrigo Vivi --- drivers

[Intel-gfx] [PATCH 00/13] drm-intel-collector - review request

2013-09-23 Thread Rodrigo Vivi
This is another drm-intel-collector push for review: http://cgit.freedesktop.org/~vivijim/drm-intel/log/?h=drm-intel-collector Here goes the list in order for better reviewers assignment: Patch 01/13 - 816e102 drm/i915: check that the i965g/gm 4G limit is really obeyed - Reviewer: Damien Patch 0

Re: [Intel-gfx] [PATCH] drm/i915: preserve pipe A quirk in i9xx_set_pipeconf

2013-09-23 Thread Chris Wilson
On Mon, Sep 23, 2013 at 11:05:25PM +0300, Meelis Roos wrote: > > It works, thank you! No more WARNING. > > > > However, it now keeps spamming dmesg every 10 seconds about CRT not > > connected: > > No, false alarm - the current upstream of > 3.12.0-rc1-00336-gd8524ae-dirty is doing that even wi

Re: [Intel-gfx] [PATCH] drm/i915: preserve pipe A quirk in i9xx_set_pipeconf

2013-09-23 Thread Meelis Roos
> It works, thank you! No more WARNING. > > However, it now keeps spamming dmesg every 10 seconds about CRT not > connected: No, false alarm - the current upstream of 3.12.0-rc1-00336-gd8524ae-dirty is doing that even without the pipe patch. -- Meelis Roos __

Re: [Intel-gfx] [Gfx-internal-devel] [PATCH 1/2] [v2] drm/i915: Calculate PSR register offsets from base + gen

2013-09-23 Thread Rodrigo Vivi
On Fri, Sep 20, 2013 at 09:35:30AM -0700, Ben Widawsky wrote: > Future generations will be changing these registers (thanks to design > for giving us an early heads up). To help abstract, create the > definition of the base of the register block, and define all registers > relative to that. > > De

[Intel-gfx] [RFC PATCH] drm/nouveau: fix nested locking in mmap handler

2013-09-23 Thread Maarten Lankhorst
Hey, Op 13-09-13 11:00, Peter Zijlstra schreef: > On Fri, Sep 13, 2013 at 10:41:54AM +0200, Daniel Vetter wrote: >> On Fri, Sep 13, 2013 at 10:29 AM, Peter Zijlstra >> wrote: >>> On Fri, Sep 13, 2013 at 09:46:03AM +0200, Thomas Hellstrom wrote: >> if (!bo_tryreserve()) { >> up_read m

Re: [Intel-gfx] [PATCH v2 06/11] drm/i915: Fix unclaimed register access due to delayed VGA memroy disable

2013-09-23 Thread Paulo Zanoni
2013/9/20 : > From: Ville Syrjälä > > VGA registers live inside the power well on HSW, so in order to write > the VGA MSR register we need the power well to be on. > > We really must write to the register to properly clear the > VGA_MSR_MEM_EN enable bit, even if all VGA registers get zeroed when

Re: [Intel-gfx] xorg.conf* screen resolution via PreferredMode disregarded by X if valid video= on cmdline

2013-09-23 Thread Felix Miata
On 2013-09-23 19:41 (GMT+0100) Chris Wilson composed: On Mon, Sep 23, 2013 at 02:18:17PM -0400, Felix Miata wrote: https://bugzilla.novell.com/show_bug.cgi?id=841696 I've not had a chance to see if this also applies to Fedora and/or Mageia, or been able to tell whether it's an Intel bug ra

Re: [Intel-gfx] [PATCH 2/2] drm: Check the fb size against the adjusted v/hdisplay for stereo modes

2013-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2013 at 03:57:40PM +0100, Damien Lespiau wrote: > Some stereo modes, like frame packing, need a larger CRTC viewport than > the "natural" underlying 2D mode and thus drm_crtc_check_viewport() > needs to query the adjusted mode to use the correct h/vdisplay. > > Signed-off-by: Damie

Re: [Intel-gfx] xorg.conf* screen resolution via PreferredMode disregarded by X if valid video= on cmdline

2013-09-23 Thread Chris Wilson
On Mon, Sep 23, 2013 at 02:18:17PM -0400, Felix Miata wrote: > https://bugzilla.novell.com/show_bug.cgi?id=841696 > > I've not had a chance to see if this also applies to Fedora and/or > Mageia, or been able to tell whether it's an Intel bug rather than a > Xorg bug. Maybe someone here already kno

Re: [Intel-gfx] [PATCH] drm/i915: Rip out SUPPORTS_EDP

2013-09-23 Thread Paulo Zanoni
2013/9/21 Daniel Vetter : > It only controls the setting of the vbt.edp_support variable, which in > turn only controls one debug output plus can also force-disable the > lvds output. > > Since the value only restricted this logic to mobile ilk there's the > slight risk that this will break lvds on

Re: [Intel-gfx] [PATCH] drm/i915/vlv: add VLV specific clock_get function v3

2013-09-23 Thread Ville Syrjälä
On Fri, Sep 20, 2013 at 11:29:32AM -0700, Jesse Barnes wrote: > Calculation is a little different than other platforms. > > v2: update to use port_clock instead > rebase on top of Ville's changes > v3: update to new port_clock semantics - don't divide by > pixel_multiplier (Ville) > > Ref

[Intel-gfx] [PATCH] drm/i915: Rewrite vlv_find_best_dpll()

2013-09-23 Thread ville . syrjala
From: Ville Syrjälä vlv_find_best_dpll() has several integer over/underflow issues, includes a hand rolled DIV_ROUND_CLOSEST(), has a boat load of variables, some slightly weird math, and it doesn't look very nice either. Rather than try to deal with each issue separately I just decided to rewri

Re: [Intel-gfx] [PATCH] drm/i915: Quirk to ignore VBT bpp

2013-09-23 Thread Jani Nikula
On Mon, 23 Sep 2013, Srinivas Pandruvada wrote: > On 09/22/2013 11:18 PM, Jani Nikula wrote: >> On Sat, 21 Sep 2013, Ben Widawsky wrote: >>> We've had several reports of an Asus Zenbook reporting an 18bpp eDP >>> display, which then proceeds to not work. Using the default 24, work >>> just fine.

[Intel-gfx] xorg.conf* screen resolution via PreferredMode disregarded by X if valid video= on cmdline

2013-09-23 Thread Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=841696 I've not had a chance to see if this also applies to Fedora and/or Mageia, or been able to tell whether it's an Intel bug rather than a Xorg bug. Maybe someone here already knows? -- "The wise are known for their understanding, and pleasant wo

Re: [Intel-gfx] i810 only partially usable

2013-09-23 Thread Felix Miata
On 2013-09-23 15:51 (GMT+0100) Chris Wilson composed: On Mon, Sep 23, 2013 at 10:13:02AM -0400, Felix Miata wrote: Did Adam already fix this? Will you be including this among your next submits? Do I need to file a bug first? You have reported the bug, I've sent the patch onwards. It would

[Intel-gfx] [PATCH] drm/i915: Fix intel_crtc_mode_get() mode clock

2013-09-23 Thread ville . syrjala
From: Ville Syrjälä i9xx_crtc_clock_get() no longer populates adjusted_mode.clock, so we must get the pixel clock from port_clock in intel_crtc_mode_get(). This bug caused Chris's 845g machine to lockup during boot, and it was introduced in: commit 18442d08786472c63a0a80c27f92b033dffc26de Aut

Re: [Intel-gfx] [PATCH] drm/i915: preserve pipe A quirk in i9xx_set_pipeconf

2013-09-23 Thread Chris Wilson
On Sun, Sep 22, 2013 at 08:51:12PM +0200, Daniel Vetter wrote: > This regression has been introduced in > > commit 9f11a9e4e50006b615ba94722dfc33ced89664cf > Author: Daniel Vetter > Date: Thu Jun 13 00:54:58 2013 +0200 > > drm/i915: set up PIPECONF explicitly for i9xx/vlv platforms > > Vi

Re: [Intel-gfx] [PATCH] drm/i915: Reduce number of register access during IVB+ interrupt handling

2013-09-23 Thread Chris Wilson
On Mon, Sep 23, 2013 at 11:39:11AM -0300, Paulo Zanoni wrote: > Also, just out of curiosity: do we get any noticeable performance > difference on any workload? Depending on the impact I'd even vote to > disable-by-default some of the debugging features. The tests are typically GPU bound, we are wa

[Intel-gfx] Check the fb size against the correct CRTC viewport for stereo modes

2013-09-23 Thread Damien Lespiau
I've sent this 2 patches separately from the main stereo series so we can have the usual rounds of review without having to resend the full 20+ patches. Once that last bit has been reviewed as well, I'll send a consolidated series that will be a serious candidate for merging. -- Damien _

[Intel-gfx] [PATCH 1/2] drm: Factor out common CRTC viewport checking code

2013-09-23 Thread Damien Lespiau
Both setcrtc and page_flip are checking that the framebuffer is big enough for the defined crtc viewport (x, y, hdisplay, vdisplay). Factor that code out in a single function. Signed-off-by: Damien Lespiau --- drivers/gpu/drm/drm_crtc.c | 70 -- 1 file

[Intel-gfx] [PATCH] drm: Implement timings adjustments for frame packing

2013-09-23 Thread Damien Lespiau
When using the frame packing and a single big framebuffer, some hardware requires that we do everything like if we were scanning out the big buffer itself. Let's instrument drm_mode_set_crtcinfo() to be able to do this adjustement if the driver is asking for it. v2: Use crtc_vtotal and multiply th

Re: [Intel-gfx] i810 only partially usable

2013-09-23 Thread Chris Wilson
On Mon, Sep 23, 2013 at 10:13:02AM -0400, Felix Miata wrote: > On 2013-09-23 09:22 (GMT+0100) Chris Wilson composed: > > >On Sun, Sep 22, 2013 at 08:45:57PM -0400, Felix Miata wrote: > > >>82810E DC-133 (GMCH)(rev 03) > ... > >>* > >>Not good (openSUSE 12.2): > >>glamor-0.

[Intel-gfx] [PATCH 2/2] drm: Check the fb size against the adjusted v/hdisplay for stereo modes

2013-09-23 Thread Damien Lespiau
Some stereo modes, like frame packing, need a larger CRTC viewport than the "natural" underlying 2D mode and thus drm_crtc_check_viewport() needs to query the adjusted mode to use the correct h/vdisplay. Signed-off-by: Damien Lespiau --- drivers/gpu/drm/drm_crtc.c | 8 1 file changed, 8

Re: [Intel-gfx] [PATCH] drm/i915: Quirk to ignore VBT bpp

2013-09-23 Thread Srinivas Pandruvada
On 09/22/2013 11:18 PM, Jani Nikula wrote: On Sat, 21 Sep 2013, Ben Widawsky wrote: We've had several reports of an Asus Zenbook reporting an 18bpp eDP display, which then proceeds to not work. Using the default 24, work just fine. Since it appears this is somewhat common in the budding world o

Re: [Intel-gfx] [PATCH] drm/i915: Reduce number of register access during IVB+ interrupt handling

2013-09-23 Thread Paulo Zanoni
2013/9/23 Chris Wilson : > On Mon, Sep 23, 2013 at 09:57:37AM -0300, Paulo Zanoni wrote: >> 2013/9/23 Chris Wilson : >> > Register access is particularly obnoxious on Sandybridge and later due to >> > the extra work we must do around every read or write. The effect is >> > magnified on Haswell, as

Re: [Intel-gfx] i810 only partially usable

2013-09-23 Thread Felix Miata
On 2013-09-23 09:22 (GMT+0100) Chris Wilson composed: On Sun, Sep 22, 2013 at 08:45:57PM -0400, Felix Miata wrote: 82810E DC-133 (GMCH)(rev 03) ... * Not good (openSUSE 12.2): glamor-0.4.1-2.2.2 kernel-desktop-3.4.47-2.38 libdrm2-2.4.33-2.47.33-2.3.2 libdrm_intel1-2.

Re: [Intel-gfx] [PATCH] drm/i915: Reduce number of register access during IVB+ interrupt handling

2013-09-23 Thread Chris Wilson
On Mon, Sep 23, 2013 at 09:57:37AM -0300, Paulo Zanoni wrote: > 2013/9/23 Chris Wilson : > > Register access is particularly obnoxious on Sandybridge and later due to > > the extra work we must do around every read or write. The effect is > > magnified on Haswell, as we have per-operation sanity ch

Re: [Intel-gfx] [PATCH] drm/i915: Reduce number of register access during IVB+ interrupt handling

2013-09-23 Thread Paulo Zanoni
2013/9/23 Chris Wilson : > Register access is particularly obnoxious on Sandybridge and later due to > the extra work we must do around every read or write. The effect is > magnified on Haswell, as we have per-operation sanity checking > magnifying the number of reads and writes. > > Interrupt hand

Re: [Intel-gfx] [PATCH] drm/i915: Add support to change pixel format, tiling mode, tiling offset.

2013-09-23 Thread Chris Wilson
On Mon, Sep 23, 2013 at 11:32:40AM +, Ramakutty, SandeepX wrote: > Hi Chris, > > This patch is necessary for applying pixel format changes without creating > new frame buffer. No, it doesn't. As pixelformat is only specified with AddFB2, it appears there is something else required to allow c

[Intel-gfx] [PATCH v2 1/3] drm/i915: Skip register reads in i915_get_crtc_scanoutpos()

2013-09-23 Thread ville . syrjala
From: Ville Syrjälä We have all the information we need in the mode structure, so going and reading it from the hardware is pointless, and slower. We never populated ->get_vblank_timestamp() in the UMS case, and as that is the only way we'd ever call ->get_scanout_position(), we can completely i

Re: [Intel-gfx] [PATCH] drm/i915: Add support to change pixel format, tiling mode, tiling offset.

2013-09-23 Thread Ramakutty, SandeepX
Hi Chris, This patch is necessary for applying pixel format changes without creating new frame buffer. The pixel format will be changed at page flip. Background - The present kernel code does not support applying pixel format to the current frame buffer. Hence hardware composer needs to create

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Skip register reads in i915_get_crtc_scanoutpos()

2013-09-23 Thread Chris Wilson
On Mon, Sep 23, 2013 at 01:02:05PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > We have all the information we need in the mode structure, so going and > reading it from the hardware is pointless, and slower. > > For the !kms case, leave the register reads in place. dev

[Intel-gfx] [PATCH] drm/i915: Reduce number of register access during IVB+ interrupt handling

2013-09-23 Thread Chris Wilson
Register access is particularly obnoxious on Sandybridge and later due to the extra work we must do around every read or write. The effect is magnified on Haswell, as we have per-operation sanity checking magnifying the number of reads and writes. Interrupt handling is supposed to be fast, yet due

Re: [Intel-gfx] i835GM flicker on panning

2013-09-23 Thread Thomas Richter
Hi folks, Can you please test with Option "LinearFramebuffer" "true"? Thanks, Daniel Tested again. Yes, indeed, LinearFramebuffer does make a difference. Without it, panning to the right causes flicker, with it, moving the mouse to the right - panning right (thus scrolling the scre

[Intel-gfx] [PATCH 3/3] drm/i915: Improve the accuracy of get_scanout_pos on CTG+

2013-09-23 Thread ville . syrjala
From: Ville Syrjälä The DSL register increments at the start of horizontal sync, so it manages to miss the entire active portion of the current line. Improve the get_scanoutpos accuracy a bit when the scanout position is close to the start or end of vblank. We can do that by double checking the

[Intel-gfx] [PATCH 2/3] drm/i915: Fix scanoutpos calculations

2013-09-23 Thread ville . syrjala
From: Ville Syrjälä The reported scanout position must be relative to the end of vblank. Currently we manage to fumble that in a few ways. First we don't consider the case when vtotal != vbl_end. While that isn't very common (happens maybe only w/ old panel fitting hardware), we can fix it easil

[Intel-gfx] [PATCH 1/3] drm/i915: Skip register reads in i915_get_crtc_scanoutpos()

2013-09-23 Thread ville . syrjala
From: Ville Syrjälä We have all the information we need in the mode structure, so going and reading it from the hardware is pointless, and slower. For the !kms case, leave the register reads in place. Cc: Mario Kleiner Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_irq.c | 51 +++

[Intel-gfx] [PATCH 0/3] drm/i915: i915_get_crtc_scanoutpos improvements

2013-09-23 Thread ville . syrjala
These patches make some fixes and improvements to the get_scanoutpos() code. They've been sitting on my disk for a while now, but I haven't found the time to really test them properly. But as the subject of eliminating the useless register reads came up recently, I decided that it's better to post

Re: [Intel-gfx] [PATCH] drm/i915: preserve pipe A quirk in i9xx_set_pipeconf

2013-09-23 Thread Chris Wilson
On Mon, Sep 23, 2013 at 10:37:02AM +0200, Daniel Vetter wrote: > On Mon, Sep 23, 2013 at 10:17 AM, Ville Syrjälä > wrote: > > Hmm. Why not just this? > > > > pipeconf = 0; > > if (pipe == PIPE_A && QUIRK) > > pipeconf |= PIPECONF_ENABLE; > > After resume the bios might or might not have enabled

Re: [Intel-gfx] [PATCH] uxa: Do not change DPMS mode on unconnected outputs

2013-09-23 Thread Daniel Vetter
On Fri, Sep 20, 2013 at 07:56:40AM -0300, Rodrigo Vivi wrote: > "The operation is in theory redundant, and in the case of Haswell where > we have multiple outputs aliasing to the same encoder, actually harmful." > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68030 > Credits-to: Chris W

Re: [Intel-gfx] [PATCH v2] drm/i915/hsw: Add display Audio codec disable sequence for Haswell

2013-09-23 Thread Lin, Mengdong
> -Original Message- > From: daniel.vet...@ffwll.ch [mailto:daniel.vet...@ffwll.ch] On Behalf Of > Daniel Vetter > Sent: Monday, September 23, 2013 4:57 PM > To: Lin, Mengdong > Cc: ville.syrj...@linux.intel.com; intel-gfx; Arora, MukeshX > Subject: Re: [Intel-gfx] [PATCH v2] drm/i915/hsw:

Re: [Intel-gfx] [PATCH v2] drm/i915/hsw: Add display Audio codec disable sequence for Haswell

2013-09-23 Thread Daniel Vetter
On Mon, Sep 23, 2013 at 10:52 AM, Lin, Mengdong wrote: >> Also I'd really like to see the audio stuff being tracked in the pipe config >> instead >> of splattering these different ad-hoc state bits like intel_crtc->eld_vld >> all over >> the place. >> -Daniel > > How about adding a flag "has_aud

Re: [Intel-gfx] [PATCH v2] drm/i915/hsw: Add display Audio codec disable sequence for Haswell

2013-09-23 Thread Lin, Mengdong
Hi Daniel and Ville, Thanks for your feedback and please see comments below ... I'm very sorry I missed your mails for a long time. > -Original Message- > From: daniel.vet...@ffwll.ch [mailto:daniel.vet...@ffwll.ch] On Behalf Of > Daniel Vetter > Sent: Thursday, September 05, 2013 2:50 AM

Re: [Intel-gfx] [PATCH] [v9] drm/i915: Use the new vm [un]bind functions

2013-09-23 Thread Chris Wilson
On Sun, Sep 22, 2013 at 11:46:00AM -0700, Ben Widawsky wrote: > From: Ben Widawsky > > Building on the last patch which created the new function pointers in > the VM for bind/unbind, here we actually put those new function pointers > to use. > > Split out as a separate patch to aid in review. I'

Re: [Intel-gfx] BUG: sleeping function called from invalid context on 3.10.10-rt7

2013-09-23 Thread Ville Syrjälä
On Sat, Sep 21, 2013 at 12:07:36AM +0200, Mario Kleiner wrote: > On 09/17/2013 10:55 PM, Daniel Vetter wrote: > > On Tue, Sep 17, 2013 at 9:50 PM, Peter Hurley > > wrote: > >> On 09/11/2013 03:31 PM, Peter Hurley wrote: > >>> > >>> [+cc dri-devel] > >>> > >>> On 09/11/2013 11:38 AM, Steven Rosted

Re: [Intel-gfx] [PATCH] drm/i915: preserve pipe A quirk in i9xx_set_pipeconf

2013-09-23 Thread Daniel Vetter
On Mon, Sep 23, 2013 at 10:17 AM, Ville Syrjälä wrote: > Hmm. Why not just this? > > pipeconf = 0; > if (pipe == PIPE_A && QUIRK) > pipeconf |= PIPECONF_ENABLE; After resume the bios might or might not have enabled pipe A already. We have a bit of magic to make sure that on resume we set up a de

Re: [Intel-gfx] i835GM flicker on panning

2013-09-23 Thread Thomas Richter
Hi Daniel, hi others, On 22.09.2013 22:03, Daniel Vetter wrote: Hm, that sounds a bit more like the ddx is having fun with rendering. Have you tried switching the backed from to either SNA or UXA? Also adding relevant mailing lists ... No, whether I use uxa or sna makes no difference, same pr

Re: [Intel-gfx] i810 only partially usable

2013-09-23 Thread Chris Wilson
On Sun, Sep 22, 2013 at 08:45:57PM -0400, Felix Miata wrote: > 82810E DC-133 (GMCH)(rev 03) > > Everything seems to be OK with these (openSUSE 12.1): > glamor (no such package) > kernel-desktop-3.1.10-1.29 > libdrm-2.4.26-15.1.2 > (no Plymouth) > xorg-x11-driver-video-intel-legacy-2.9.1-13.1.2 > x

Re: [Intel-gfx] [PATCH] drm/i915: preserve pipe A quirk in i9xx_set_pipeconf

2013-09-23 Thread Ville Syrjälä
On Sun, Sep 22, 2013 at 08:51:12PM +0200, Daniel Vetter wrote: > This regression has been introduced in > > commit 9f11a9e4e50006b615ba94722dfc33ced89664cf > Author: Daniel Vetter > Date: Thu Jun 13 00:54:58 2013 +0200 > > drm/i915: set up PIPECONF explicitly for i9xx/vlv platforms > > Vi

Re: [Intel-gfx] i835GM flicker on panning

2013-09-23 Thread Daniel Vetter
On Mon, Sep 23, 2013 at 12:33:04AM +0200, Thomas Richter wrote: > On 22.09.2013 22:03, Daniel Vetter wrote: > >Hm, that sounds a bit more like the ddx is having fun with rendering. > >Have you tried switching the backed from to either SNA or UXA? Also > >adding relevant mailing lists ... > > > No,

Re: [Intel-gfx] [PATCH 0/4] drm/i915/dp: aux and dpcd fixes

2013-09-23 Thread Daniel Vetter
On Mon, Sep 23, 2013 at 08:59:43AM +0300, Jani Nikula wrote: > On Fri, 20 Sep 2013, Jani Nikula wrote: > > I haven't received confirmation from various bug reporters whether these > > actually fix any issues, but here goes anyway. > > These are on the series, but I bet it's patch 2/4 that does th

Re: [Intel-gfx] [PATCH 4/4] drm/i915/dp: read DPCD PSR capability only on eDP

2013-09-23 Thread Daniel Vetter
On Fri, Sep 20, 2013 at 03:31:42PM -0700, Todd Previte wrote: > On 09/20/2013 01:57 PM, Paulo Zanoni wrote: > >2013/9/20 Todd Previte : > >>On 09/20/2013 06:42 AM, Jani Nikula wrote: > >>>Reduce AUX transactions for non-eDP. > >>> > >>>Signed-off-by: Jani Nikula > >>>--- > >>> drivers/gpu/drm/i9