Re: [Intel-gfx] [PATCH] drm/i915: Preserve the DDI_A_4_LANES bit from the bios

2013-07-12 Thread Jesse Barnes
p; DP_DETECTED; > + intel_dp->DP = I915_READ(intel_dp->output_reg) & > +(DP_DETECTED | DDI_A_4_LANES); > > /* Handle DP bits in common between all three register formats */ > intel_dp->DP |= DP_VOLTAGE_0_4 | DP_PRE_EMPHASIS_0; Thanks.

Re: [Intel-gfx] [PATCH] drm/i915: fix long-standing SNB regression in power consumption after resume

2013-07-16 Thread Jesse Barnes
er than trying to forcewake around everywhere we need it. Thanks, -- Jesse Barnes, Intel Open Source Technology Center diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_d index 12ea1a9..9152cba 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH] drm/i915: fix long-standing SNB regression in power consumption after resume

2013-07-16 Thread Jesse Barnes
On Tue, 16 Jul 2013 10:06:54 -0700 Jesse Barnes wrote: > On Tue, 16 Jul 2013 11:34:25 +0400 > Konstantin Khlebnikov wrote: > > I've tested that patch and it really works for me. If you want change > > something for other hardware or > > extend range where forcew

Re: [Intel-gfx] [PATCH] drm/i915: fix long-standing SNB regression in power consumption after resume

2013-07-16 Thread Jesse Barnes
On Tue, 16 Jul 2013 22:43:49 +0200 Daniel Vetter wrote: > On Tue, Jul 16, 2013 at 01:19:25PM -0700, Jesse Barnes wrote: > > On Tue, 16 Jul 2013 10:06:54 -0700 > > Jesse Barnes wrote: > > > > > On Tue, 16 Jul 2013 11:34:25 +0400 > > > Konstantin Khlebnikov

Re: [Intel-gfx] [PATCH v2] drm/i915: fix long-standing SNB regression in power consumption after resume

2013-07-17 Thread Jesse Barnes
://bugs.freedesktop.org/show_bug.cgi?id=54089 > References: https://bugzilla.kernel.org/show_bug.cgi?id=58971 > Signed-off-by: Konstantin Khlebnikov > Cc: Daniel Vetter > Cc: Chris Wilson > Cc: Jesse Barnes > --- My hero! So the later init change didn't work? Eithe

Re: [Intel-gfx] [PATCH] drm/i915: correctly restore fences with objects attached

2013-07-17 Thread Jesse Barnes
gt; + } else { > + i915_gem_write_fence(dev, i, NULL); > + } Why do we look at reg->obj here? Can it be NULL? Or would reg->obj->tiling_mode != I915_TILING_NONE do the same thing? -- Jesse Barnes, Intel Open Source Technology Center _

[Intel-gfx] [PATCH] drm/i915: allow root to submit secure buffers even if !master

2013-07-17 Thread Jesse Barnes
This should allow userland tools running under X to submit secure batches for various things. This gives master DRM clients slightly more permissions, but doesn't give regular processes any more, since a root process can already map the registers directly and poke at hw. Signed-off-by:

Re: [Intel-gfx] [PATCH] drm/i915: allow root to submit secure buffers even if !master

2013-07-17 Thread Jesse Barnes
On Wed, 17 Jul 2013 21:20:07 +0100 Chris Wilson wrote: > On Wed, Jul 17, 2013 at 09:45:30AM -0700, Jesse Barnes wrote: > > This should allow userland tools running under X to submit secure > > batches for various things. This gives master DRM clients slightly more > > per

Re: [Intel-gfx] [PATCH 2/8] lib: Introduce drmtest_skip_on_simulation()

2013-07-18 Thread Jesse Barnes
s differ, it might be better to simply take an argv for the values, and have the sim vs. full scripts pass different values. -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.fr

Re: [Intel-gfx] [PATCH 2/8] lib: Introduce drmtest_skip_on_simulation()

2013-07-18 Thread Jesse Barnes
On Thu, 18 Jul 2013 17:55:00 +0100 Damien Lespiau wrote: > On Thu, Jul 18, 2013 at 09:31:15AM -0700, Ben Widawsky wrote: > > On Thu, Jul 18, 2013 at 09:18:34AM -0700, Jesse Barnes wrote: > > > On Thu, 18 Jul 2013 16:19:07 +0100 > > > Damien Lespiau wrote: > >

[Intel-gfx] [PATCH 2/2] drm/i915: use devm_request_mem_region_ram() for i915 stolen reservations

2013-07-23 Thread Jesse Barnes
Since this is actual RAM space we can clobber any padding intended to prevent MMIO allocations in this space. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_gem_stolen.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c

[Intel-gfx] [PATCH 1/2] resource: add devm_request_mem_region_ram() for reserving RAM regions

2013-07-23 Thread Jesse Barnes
n the E820 map (like the i915 driver). So add a new entry point to allow this, that will shrink the "RAM buffer" padding if needed. Signed-off-by: Jesse Barnes --- include/linux/ioport.h |6 kernel/resource.c | 75

[Intel-gfx] [PATCH 1/2] drm/i915: move PCI IDs to i915_drm.h

2013-07-23 Thread Jesse Barnes
Since we need to use them in early x86 boot code. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 158 ++ include/drm/i915_drm.h | 180 +++ 2 files changed, 208 insertions(+), 130 deletions(-) diff

[Intel-gfx] [PATCH 2/2] x86 early quirk: detect & reserve graphics stolen memory for Intel devices

2013-07-23 Thread Jesse Barnes
We need to do this early on before the E820 map is modified or conflicting resources assigned on top. --- arch/x86/kernel/early-quirks.c | 91 1 file changed, 91 insertions(+) diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c i

[Intel-gfx] [RFC] early stolen mem detection

2013-07-23 Thread Jesse Barnes
This is getting ugly; looking for feedback. ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH 1/2] drm/i915: split PCI IDs out into i915_drm.h

2013-07-24 Thread Jesse Barnes
For use by userspace (at some point in the future) and other kernel code. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 158 ++ include/drm/i915_drm.h | 180 +++ 2 files changed, 208 insertions

[Intel-gfx] [PATCH 2/2] x86: add early quirk for reserving Intel graphics stolen memory

2013-07-24 Thread Jesse Barnes
efforts of the "RAM buffer" approach, which simply rounds memory boundaries up to 64M to try to catch space that may decode as RAM and so is not suitable for MMIO. Signed-off-by: Jesse Barnes --- arch/x86/include/asm/pci-direct.h |1 + arch/x86/kernel/early-quirks.c

Re: [Intel-gfx] [PATCH 2/2] x86: add early quirk for reserving Intel graphics stolen memory

2013-07-24 Thread Jesse Barnes
arch/x86/pci/early.c > > +++ b/arch/x86/pci/early.c > > @@ -31,6 +31,14 @@ u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 > > offset) > > return v; > > } > > > > +u32 read_pci_config_32(u8 bus, u8 slot, u8 func, u8 offset) > > +{ > > + u32 v; > > + outl(0x8000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); > > + v = inl(0xcfc); > > + return v; > > +} > > This is just read_pci_config(). Oops missed it probably due to the consistent naming (_byte, _16, maybe we should add a _24). Will drop that bit. -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH 1/2] drm/i915: split PCI IDs out into i915_drm.h v2

2013-07-24 Thread Jesse Barnes
For use by userspace (at some point in the future) and other kernel code. v2: move PCI IDs to uabi (Chris) move PCI IDs to drm/ (Dave) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 158 ++--- include/drm/i915_drm.h |2 + include/drm

[Intel-gfx] [PATCH 2/2] x86: add early quirk for reserving Intel graphics stolen memory v2

2013-07-24 Thread Jesse Barnes
ned-off-by: Jesse Barnes --- arch/x86/kernel/early-quirks.c | 175 +++ drivers/gpu/drm/i915/i915_reg.h | 15 include/drm/i915_drm.h | 32 +++ 3 files changed, 207 insertions(+), 15 deletions(-) diff --git a/arch/x86/kernel/early-quirks.c

[Intel-gfx] [PATCH 2/2] x86: add early quirk for reserving Intel graphics stolen memory v3

2013-07-24 Thread Jesse Barnes
a function pointer (Chris) drop gen2 bits (Daniel) Signed-off-by: Jesse Barnes --- arch/x86/kernel/early-quirks.c | 158 +++ drivers/gpu/drm/i915/i915_reg.h | 15 include/drm/i915_drm.h | 32 3 files changed, 190 inserti

[Intel-gfx] [PATCH 1/2] drm/i915: split PCI IDs out into i915_drm.h v3

2013-07-24 Thread Jesse Barnes
For use by userspace (at some point in the future) and other kernel code. v2: move PCI IDs to uabi (Chris) move PCI IDs to drm/ (Dave) v3: fixup Quanta detection - needs to come first (Daniel) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 164

[Intel-gfx] Ugly patches for stolen reservation

2013-07-25 Thread Jesse Barnes
Patch 2/2 has the description, but suffice it to say I'm not really pleased with this, though it does solve a problem we have. On some machines, we get MMIO space allocated on top of this hidden memory, which can cause problems. I'm not sure if there are similar problems for other hunks of the ad

[Intel-gfx] [PATCH 1/2] drm/i915: split PCI IDs out into i915_drm.h v3

2013-07-25 Thread Jesse Barnes
For use by userspace (at some point in the future) and other kernel code. v2: move PCI IDs to uabi (Chris) move PCI IDs to drm/ (Dave) v3: fixup Quanta detection - needs to come first (Daniel) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 164

[Intel-gfx] [PATCH 2/2] x86: add early quirk for reserving Intel graphics stolen memory v3

2013-07-25 Thread Jesse Barnes
a function pointer (Chris) drop gen2 bits (Daniel) Signed-off-by: Jesse Barnes --- arch/x86/kernel/early-quirks.c | 158 +++ drivers/gpu/drm/i915/i915_reg.h | 15 include/drm/i915_drm.h | 32 3 files changed, 190 inserti

[Intel-gfx] [PATCH] drm/i915: enable IPS for bpp <= 24

2013-07-25 Thread Jesse Barnes
Art confirms that this should work fine. Since most panels are 18bpp with dithering from 24bpp, the existing code wouldn't be enabled in most cases. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: [Intel-gfx] [PATCH] drm/i915: enable IPS for bpp <= 24

2013-07-25 Thread Jesse Barnes
On Thu, 25 Jul 2013 18:17:59 +0100 Chris Wilson wrote: > On Thu, Jul 25, 2013 at 10:06:50AM -0700, Jesse Barnes wrote: > > Art confirms that this should work fine. Since most panels are 18bpp > > with dithering from 24bpp, the existing code wouldn't be enabled in most > &

Re: [Intel-gfx] Ugly patches for stolen reservation

2013-07-25 Thread Jesse Barnes
On Thu, 25 Jul 2013 22:05:51 +0200 Ingo Molnar wrote: > > * Jesse Barnes wrote: > > > Patch 2/2 has the description, but suffice it to say I'm > > not really pleased with this, though it does solve a > > problem we have. On some machines, we get MMIO spa

Re: [Intel-gfx] Ugly patches for stolen reservation

2013-07-25 Thread Jesse Barnes
eter Anvin" wrote: > So the bootloader is just as likely to step on things... what happens when/if > it does? > > Ingo Molnar wrote: > > > >* Jesse Barnes wrote: > > > >> Patch 2/2 has the description, but suffice it to say I'm > >> n

Re: [Intel-gfx] [PATCH 2/2] x86: add early quirk for reserving Intel graphics stolen memory v3

2013-07-25 Thread Jesse Barnes
On Thu, 25 Jul 2013 23:59:25 +0100 Chris Wilson wrote: > Hmm, interesting licence block in i915_pciids.h - our claim to > grant licence but TG disclaims liability. Oops my manual search & replace obviously failed. Will fix up. -- Jesse Barnes, Intel Open Source Technol

Re: [Intel-gfx] Ugly patches for stolen reservation

2013-07-25 Thread Jesse Barnes
To clarify: it'll either be marked reserved or not listed at all in e820, which is why I did this early, before any other e820 stuff like the "RAM buffer" are allocated, and before we could use the iomem resource (or maybe we could even early per Linus? I'll check).  Jes

Re: [Intel-gfx] Ugly patches for stolen reservation

2013-07-26 Thread Jesse Barnes
On Thu, 25 Jul 2013 20:31:27 -0700 "H. Peter Anvin" wrote: > On 07/25/2013 07:14 PM, Jesse Barnes wrote: > > To clarify: it'll either be marked reserved or not listed at all in e820, > > which is why I did this early, before any other e820 stuff like the "

Re: [Intel-gfx] Ugly patches for stolen reservation

2013-07-26 Thread Jesse Barnes
ffer cfa0-feaf : PCI Bus :00 d000-dfff : :00:02.0 After (yay): cb00-cb9f : RAM buffer cba0-cf9f : reserved cba0-cf9f : Graphics Stolen Memory cfa0-feaf : PCI Bus :00 Thanks, -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] Maintainer-review fluff (was: Re: [PATCH 01/12] drm/i915: plumb VM into object operations)

2013-07-26 Thread Jesse Barnes
onable, and ideally not leave the author hanging with hints about problems the reviewer has spotted, leaving the author looking for easter eggs For the most part I think we adhere to this, though reviews from the domain experts are done more on an ad-hoc basis these days... Thoughts? -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 2/2] x86: add early quirk for reserving Intel graphics stolen memory v3

2013-07-26 Thread Jesse Barnes
On Fri, 26 Jul 2013 09:58:45 -0700 "H. Peter Anvin" wrote: > On 07/25/2013 09:37 AM, Jesse Barnes wrote: > > Systems with Intel graphics controllers set aside memory exclusively for > > + /* > > +* Almost universally we can find the Graphics Base of Stolen M

Re: [Intel-gfx] Maintainer-review fluff (was: Re: [PATCH 01/12] drm/i915: plumb VM into object operations)

2013-07-26 Thread Jesse Barnes
On Fri, 26 Jul 2013 18:08:48 +0100 Chris Wilson wrote: > On Fri, Jul 26, 2013 at 09:59:42AM -0700, Jesse Barnes wrote: > > 4) review comments should be concrete and actionable, and ideally not > > leave the author hanging with hints about problems the reviewer >

[Intel-gfx] Updated stolen mem patches

2013-07-26 Thread Jesse Barnes
These address the comments I've received so far, but omit the new E820 type for this mem. Chris's patches could go on top if desired; they add a new type and resource reservation function for looking up regions by name. That allows us to remove some duplicate code in the driver for finding stolen

[Intel-gfx] [PATCH 2/2] x86: add early quirk for reserving Intel graphics stolen memory v5

2013-07-26 Thread Jesse Barnes
v3: use a function pointer (Chris) drop gen2 bits (Daniel) v4: call e820_sanitize_map after adding the region v5: fixup comments (Peter) simplify loop (Chris) Acked-by: Ingo Molnar Signed-off-by: Jesse Barnes --- arch/x86/kernel/early-quirks

[Intel-gfx] [PATCH 1/2] drm/i915: split PCI IDs out into i915_drm.h v4

2013-07-26 Thread Jesse Barnes
For use by userspace (at some point in the future) and other kernel code. v2: move PCI IDs to uabi (Chris) move PCI IDs to drm/ (Dave) v3: fixup Quanta detection - needs to come first (Daniel) v4: fix up PCI match structure init for easier use by userspace (Chris) Signed-off-by: Jesse Barnes

Re: [Intel-gfx] [PATCH] drm/i915: Adjustable Render Power State policies

2013-07-26 Thread Jesse Barnes
elay); > + else > + gen6_set_rps(dev_priv->dev, new_delay); > > if (IS_VALLEYVIEW(dev_priv->dev)) { > /* > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c > index 4e6d618..e9e467c 100644 > --- a/drivers/g

Re: [Intel-gfx] Maintainer-review fluff (was: Re: [PATCH 01/12] drm/i915: plumb VM into object operations)

2013-07-29 Thread Jesse Barnes
since vague feedback is more likely to leave a patchset in the doldrums and de-motivate the author. I think the "slowing things down" may hurt more than it helps here. For example all the time Paulo spends on refactoring and rebasing his PC8 stuff is time he could have spent on H

Re: [Intel-gfx] Maintainer-review fluff (was: Re: [PATCH 01/12] drm/i915: plumb VM into object operations)

2013-08-05 Thread Jesse Barnes
7;T BE TESTED* reasonably. So if you're waiting for all tests to be written before going upstream, all you're doing is delaying the bug reports that will inevitably come in, both from new test programs and from general usage. On top of that, if someone is trying to refactor at the sa

Re: [Intel-gfx] [PATCH] drm/i915: add fast boot support for Haswell

2013-08-05 Thread Jesse Barnes
mplicated, but you'll need docs for it. Charlie Huang ought to be able to get you the NDA docs that should have the info you need. Thanks, -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] Maintainer-review fluff (was: Re: [PATCH 01/12] drm/i915: plumb VM into object operations)

2013-08-05 Thread Jesse Barnes
I've botched the job (there are plentiful to pick from > imo) and concrete suggestion for how to improve our overall process. I've suggested some already, but they've fallen on deaf ears afaict. I don't know what more I ca

Re: [Intel-gfx] Second HDMI port not visible

2013-08-07 Thread Jesse Barnes
if (I915_READ(VLV_DISPLAY_BASE + GEN4_HDMIB) & SDVO_DETECTED) { intel_hdmi_init(dev, VLV_DISPLAY_BASE + GEN4_HDMIB, -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] Second HDMI port not visible

2013-08-07 Thread Jesse Barnes
is as a fix in future releases? > > -Ryan > -Original Message- > From: Jesse Barnes [mailto:jbar...@virtuousgeek.org] > Sent: Wednesday, August 07, 2013 8:49 AM > To: Daniel Vetter > Cc: Matsumura, Ryan; intel-gfx@lists.freedesktop.org > Subject: Re: [Intel-gfx] Se

[Intel-gfx] [PATCH] drm/i915: expose HDMI connectors on port C on BYT

2013-08-09 Thread Jesse Barnes
Ryan noticed that on his board, HDMI was wired up to port C but not exposed by the kernel, which had only expected DP on that port. Fix that up by enumerating both ports if possible. Tested-by: "Matsumura, Ryan" Acked-by: Chris Wilson Signed-off-by: Jesse Barnes --- drivers/gp

[Intel-gfx] [PATCH] drm/i915: make IVB FDI training match spec v3

2013-08-19 Thread Jesse Barnes
hecks (Jesse) v3: fix TX and RX disable per spec (Paulo) fix delays per spec (Paulo) make RX symbol lock check match TX bit lock check (Paulo) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 142 +- 1 file changed, 72 insertions(+

Re: [Intel-gfx] [PATCH] drm/i915: make IVB FDI training match spec v2

2013-08-19 Thread Jesse Barnes
On Sun, 18 Aug 2013 21:09:59 +0200 Daniel Vetter wrote: > On Mon, Apr 08, 2013 at 05:50:07PM -0300, Paulo Zanoni wrote: > > Hi > > > > 2013/3/28 Jesse Barnes : > > > The existing code was trying different vswing and preemphasis settings > > > in the wro

Re: [Intel-gfx] [PATCH] drm/i915: Don't load context at driver init time on SNB

2013-08-20 Thread Jesse Barnes
reg is 0. And after resume, it is broken, and that > reg is still 0. So something else is going on. Maybe this reg is > write-once-ever? Apparently it is. And if the BIOS writes that bit, we're not supposed to write it either. However, since it's WO, we can't easily tell if it

[Intel-gfx] [PATCH] drm/i915: drop WaMbcDriverBootEnable workaround

2013-08-21 Thread Jesse Barnes
Turns out the BIOS will do this for us as needed, and if we try to do it again we risk hangs or other bad behavior. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_pm.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers

Re: [Intel-gfx] [PATCH] drm/i915: drop WaMbcDriverBootEnable workaround

2013-08-21 Thread Jesse Barnes
On Wed, 21 Aug 2013 23:23:04 +0200 Daniel Vetter wrote: > On Wed, Aug 21, 2013 at 08:08:55AM -0700, Jesse Barnes wrote: > > Turns out the BIOS will do this for us as needed, and if we try to do it > > again we risk hangs or other bad behavior. > > > >

Re: [Intel-gfx] The whole round of i-g-t testing cost too long running time

2014-04-16 Thread Jesse Barnes
On Tue, 15 Apr 2014 19:17:59 +0200 Daniel Vetter wrote: > Ok there are a few cases where we can indeed make tests faster, but it > will be work for us. And that won't really speed up much since we're > adding piles more testcases at a pretty quick rate. And many of these > new testcases are CRC ba

[Intel-gfx] [PATCH] drm/i915/vlv: don't wait for vblank after pipe enable

2014-05-12 Thread Jesse Barnes
Like on ILK, the pipe won't be running until later on. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index c65e7f7..c66d2ea 100644

Re: [Intel-gfx] [PATCH] drm/i915/vlv: don't wait for vblank after pipe enable

2014-05-13 Thread Jesse Barnes
On Tue, 13 May 2014 08:08:55 +0200 Daniel Vetter wrote: > On Tue, May 13, 2014 at 12:37 AM, Jesse Barnes > wrote: > > Like on ILK, the pipe won't be running until later on. > > Like on ilk?! Since when is vlv display derived from that? "[PATCH > 3/4] drm/i91

Re: [Intel-gfx] [PATCH] drm/i915: Use the first mode if there is no preferred mode in the EDID

2014-05-13 Thread Jesse Barnes
r->modes)) { > > + DRM_DEBUG_KMS("using first mode listed on connector > > %s\n", > > + drm_get_connector_name(connector)); > > + modes[i] = list_first_entry(struct drm_display_mode, > > +

Re: [Intel-gfx] [PATCH] drm/i915/vlv: T12 eDP panel timing enforcement during reboot.

2014-05-13 Thread Jesse Barnes
en't full done a PPS, we'll get into trouble and potentially confuse the panel in the worst case. Previous BIOS-free systems may have had this problem too, but this was the first one we got an actual eDP timing spec violation about, so it's a good first step. It can easily be ext

Re: [Intel-gfx] [PATCH 2/2] drm/i915: s/dev->dev_private/to_i915(dev)/

2014-05-13 Thread Jesse Barnes
er than with sed. > > Way, way too easy. Why? For an eventual move to embedding drm_device in i915? May as well move over all the rest of the driver internals that use drm_device * while you're at it. :) Would be nice to get rid of the typedef too... -- Jesse Barnes, Intel Open S

Re: [Intel-gfx] [PATCH v3] drm/i915: Added write-enable pte bit support

2014-05-13 Thread Jesse Barnes
ddress(&sg_iter), > cache_level, true); > + > if (++act_pte == I915_PPGTT_PT_ENTRIES) { > kunmap_atomic(pt_vaddr); > pt_vaddr = NULL; Some extra whitespace here. Otherwise: Reviewed-by: Jesse Barnes Might be good

Re: [Intel-gfx] [PATCH v6] drm/i915/vlv: WA for Turbo and RC6 to work together.

2014-05-13 Thread Jesse Barnes
ei calculation */ > + struct intel_rps_ei_calc rps_down_ei; > + I think Chris meant that these bits belonged in intel_gen6_power_mgmt too. Other than that it looks like Ville has given this his r-b so it ought to be fine. -- Jesse Barnes, Intel Open Source Technology Center _

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Validate BDB section before reading

2014-05-13 Thread Jesse Barnes
n NULL; > + > if (current_id == section_id) > return base + index; > + > index += current_size; > } > Oh cool, did we see stuff in the wild where it all went sideways? -- Jesse Barnes, Intel Open Source Technology Center _

Re: [Intel-gfx] [PATCH v3] drm/i915: Added write-enable pte bit support

2014-05-13 Thread Jesse Barnes
On Wed, 14 May 2014 00:30:34 +0200 Daniel Vetter wrote: > On Tue, May 13, 2014 at 03:05:24PM -0700, Jesse Barnes wrote: > > On Tue, 11 Feb 2014 14:19:03 +0530 > > akash.g...@intel.com wrote: > > > > > @@ -810,6 +815,7 @@ static void gen6_ppgtt_insert_entries(struct

Re: [Intel-gfx] [PATCH] drm/i915/vlv: T12 eDP panel timing enforcement during reboot.

2014-05-13 Thread Jesse Barnes
On Wed, 14 May 2014 00:32:30 +0200 Daniel Vetter wrote: > On Tue, May 13, 2014 at 02:53:22PM -0700, Jesse Barnes wrote: > > On Tue, 13 May 2014 22:26:08 +0200 > > Daniel Vetter wrote: > > > > > On Tue, May 13, 2014 at 11:51:11AM -0700, clinton.a.tay...@intel.

Re: [Intel-gfx] [PATCH 2/2] drm/i915: s/dev->dev_private/to_i915(dev)/

2014-05-13 Thread Jesse Barnes
On Tue, 13 May 2014 14:56:28 -0700 Jesse Barnes wrote: > On Tue, 13 May 2014 22:22:00 +0200 > Daniel Vetter wrote: > > > coccinelle is seriously a tool I should have played around with much > > earlier. Extremely powerful, and extremely dangerous in causing > >

Re: [Intel-gfx] [PATCH] drm: Perform cmdline mode parsing during connector initialisation

2014-05-15 Thread Jesse Barnes
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73154 > Signed-off-by: Chris Wilson > Cc: Jesse Barnes > Cc: Ville Syrjälä > Cc: Daniel Vetter > --- > drivers/gpu/drm/drm_crtc.c | 56 +++ > drivers/gpu/drm/drm_fb_helper.c|

Re: [Intel-gfx] [PATCH] drm/i915: honour forced connector modes

2014-05-15 Thread Jesse Barnes
hat tries to enable a connector (disabling is easy!). > > Based on earlier patches by Jesse Barnes. > > v2: Remove Jesse's patch > > Reported-by: Ville Syrjälä > Signed-off-by: Chris Wilson > Cc: Jesse Barnes > Cc: Ville Syrjälä > -

Re: [Intel-gfx] [PATCH] drm/i915: Add OACONTROL to the command parser register whitelist.

2014-05-16 Thread Jesse Barnes
but enabling it universally is *not* OK. Daniel, I'm not sure what you mean by 0 coverage. Surely DRI clients count for something? And X shouldn't be submitting all its batches with the secure bit set, right? If so, we ought to fix that and only use it for ones where it's necessary

Re: [Intel-gfx] [PATCH] drm/i915: Add OACONTROL to the command parser register whitelist.

2014-05-16 Thread Jesse Barnes
On Fri, 16 May 2014 20:20:50 +0100 Chris Wilson wrote: > On Fri, May 16, 2014 at 12:05:45PM -0700, Jesse Barnes wrote: > > On Thu, 27 Mar 2014 16:22:44 -0700 > > Kenneth Graunke wrote: > > > > > On 03/27/2014 03:44 PM, Daniel Vetter wrote: > > > >

Re: [Intel-gfx] [PATCH] drm/i915: Add OACONTROL to the command parser register whitelist.

2014-05-16 Thread Jesse Barnes
On Fri, 16 May 2014 12:34:08 -0700 Jesse Barnes wrote: > On Fri, 16 May 2014 20:20:50 +0100 > Chris Wilson wrote: > > Yes, X only sets the secure bit when it pokes the display registers, and > > those registers should be privileged even with a cmd parser in place &

Re: [Intel-gfx] [PATCH] drm/i915: Add OACONTROL to the command parser register whitelist.

2014-05-16 Thread Jesse Barnes
On Fri, 16 May 2014 20:49:30 +0100 Chris Wilson wrote: > On Fri, May 16, 2014 at 12:34:08PM -0700, Jesse Barnes wrote: > > On Fri, 16 May 2014 20:20:50 +0100 > > Chris Wilson wrote: > > > We haven't even fixed the major regression from enabling FBC. What

Re: [Intel-gfx] [PATCH] drm/i915: Add OACONTROL to the command parser register whitelist.

2014-05-16 Thread Jesse Barnes
On Fri, 16 May 2014 13:12:27 -0700 "Volkin, Bradley D" wrote: > On Fri, May 16, 2014 at 12:53:30PM -0700, Jesse Barnes wrote: > > On Fri, 16 May 2014 12:34:08 -0700 > > Jesse Barnes wrote: > > > > > On Fri, 16 May 2014 20:20:50 +0100 > > >

Re: [Intel-gfx] [PATCH 66/66] drm/i915: runtime PM support for DPMS

2014-05-16 Thread Jesse Barnes
per-platform and save us the "get_crtc_power_domains" call which may not make sense on all platforms. I haven't thought it through for the other power wells, but that type of approach may make more sense than trying to abstract the wells at the high level we're doing today,

Re: [Intel-gfx] [PATCH 3/4] drm/i915: enable VT switchless resume v3

2014-05-16 Thread Jesse Barnes
drm_fb_helper_fill_var(info, &ifbdev->helper, sizes->fb_width, > > sizes->fb_height); Is it sufficient to just revert this part? Or are the other bits needed too? Sorry for the delay on this, I've been traveling a lot the past month and buried in other stuff so out o

Re: [Intel-gfx] [PATCH 66/66] drm/i915: runtime PM support for DPMS

2014-05-16 Thread Jesse Barnes
On Sat, 17 May 2014 00:19:09 +0200 Daniel Vetter wrote: > On Fri, May 16, 2014 at 02:48:27PM -0700, Jesse Barnes wrote: > > On Thu, 24 Apr 2014 23:55:42 +0200 > > Daniel Vetter wrote: > > > > > + if (enable) { > > > + if (!intel_crtc->

Re: [Intel-gfx] [PATCH 1/2] drm/i915: rename IOSF sideband opcodes according to the spec

2014-05-19 Thread Jesse Barnes
val) > { > vlv_sideband_rw(dev_priv, DPIO_DEVFN, > DPIO_PHY_IOSF_PORT(DPIO_PHY(pipe)), > - DPIO_OPCODE_REG_WRITE, reg, &val); > + SB_MWR_NP, reg, &val); > } > > /* SBI access */ > @@ -261,13 +270,13 @@ void intel_sbi_writ

Re: [Intel-gfx] [PATCH 2/2] drm/i915: vlv/chv: fix DSI sideband register accessing

2014-05-19 Thread Jesse Barnes
+ vlv_sideband_rw(dev_priv, DPIO_DEVFN, IOSF_PORT_FLISDSI, SB_CRWRDA_NP, > reg, &val); > } Nice find... is this documented somewhere so we can put a reference in? Or is it in the Punit HAS somewhere already and we just missed it? Thanks, -- Jesse Barn

Re: [Intel-gfx] [PATCH 1/2] igt/intel_iosf: rename IOSF sideband opcodes according to the spec

2014-05-19 Thread Jesse Barnes
b/lib/intel_reg.h > index 4b3a102..5520624 100644 > --- a/lib/intel_reg.h > +++ b/lib/intel_reg.h > @@ -3576,9 +3576,4 @@ typedef enum { > #define VLV_IOSF_DATA(VLV_DISPLAY_BASE + > 0x2104) > #define VLV_IOSF_ADDR(VLV_D

Re: [Intel-gfx] [PATCH] drm/i915: Don't die in wait_for_pending_flips

2014-05-19 Thread Jesse Barnes
60*HZ) == 0); > > mutex_lock(&dev->struct_mutex); > intel_finish_fb(crtc->primary->fb); Updating our page flip ioctl man page (hah!) with the timeout info would be good, in case people like Mario queue flips for after lunch. :) -- Jesse Barn

Re: [Intel-gfx] [PATCH] [v3] drm/i915/bdw: Only use 2g GGTT for 32b platforms

2014-05-19 Thread Jesse Barnes
here's no such config for x86. > > There's CONFIG_X86_32 though. Which I think matches the original > approach of #ifndef CONFIG_64BIT in the referenced bug. However, "with > this patch only, the system still hung while booting." [1]. > > I want a new patc

Re: [Intel-gfx] [PATCH 2/2] drm/i915: vlv/chv: fix DSI sideband register accessing

2014-05-19 Thread Jesse Barnes
On Mon, 19 May 2014 18:10:18 +0300 Imre Deak wrote: > On Mon, 2014-05-19 at 08:01 -0700, Jesse Barnes wrote: > > On Mon, 19 May 2014 11:41:18 +0300 > > Imre Deak wrote: > > > > > So far we used the wrong opcodes to access the DSI registers, so the > > >

Re: [Intel-gfx] [PATCH] drm/i915: Don't die in wait_for_pending_flips

2014-05-19 Thread Jesse Barnes
On Mon, 19 May 2014 17:18:40 +0200 Daniel Vetter wrote: > On Mon, May 19, 2014 at 08:06:06AM -0700, Jesse Barnes wrote: > > On Mon, 19 May 2014 16:09:35 +0200 > > Daniel Vetter wrote: > > > > > We can apperently miss them, but breaking the entire driver hampers &g

Re: [Intel-gfx] [PATCH 1/6] drm/i915: Drop bogus comments about display reset

2014-05-19 Thread Jesse Barnes
(ret) > return ret; > > - /* We can't reset render&media without also resetting display ... */ > gdrst = I915_READ(MCHBAR_MIRROR_BASE + ILK_GDSR); > gdrst &= ~GRDOM_MASK; > I915_WRITE(MCHBAR_MIRROR_BASE + ILK_GDSR, Reviewed-by: Jesse Barn

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Fix ILK reset wait

2014-05-19 Thread Jesse Barnes
GRDOM_RESET_ENABLE) == 0, 500); > } > > static int gen6_do_reset(struct drm_device *dev) Arg, I lost the docs on this, but it matches what I remember. Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Fix ILK GPU reset domain bits

2014-05-19 Thread Jesse Barnes
15_WRITE(MCHBAR_MIRROR_BASE + ILK_GDSR, > -gdrst | GRDOM_MEDIA | GRDOM_RESET_ENABLE); > +gdrst | ILK_GRDOM_MEDIA | ILK_GRDOM_RESET_ENABLE); > return wait_for((I915_READ(MCHBAR_MIRROR_BASE + ILK_GDSR) & > - GRDOM_RESET_ENABLE) == 0, 500); >

Re: [Intel-gfx] [PATCH] Revert "store_dw_loop: make loops smaller"

2014-05-19 Thread Jesse Barnes
On Mon, 19 May 2014 18:13:22 +0200 Daniel Vetter wrote: > This reverts commit f00efff326610fdba92dbc91d951790a3320052e. > > This is a temporary revert since I want QA to first test with the > original testcase whether it got faster again. This is to test the > effects of Yeah this is fine as lo

[Intel-gfx] [PATCH] drm/i915/vlv: assert and de-assert sideband reset at boot and resume v2

2014-05-19 Thread Jesse Barnes
patch, such machines won't resume correctly much of the time, with the symptom being a 'port ready' timeout and/or a link training failure. v2: extract simpler set_power_well function for use in reset_dpio (Imre) move to reset_dpio (Daniel & Ville) Signed-off-by: Jesse Barn

[Intel-gfx] [PATCH] drm/i915/vlv: assert and de-assert sideband reset at boot and resume v3

2014-05-20 Thread Jesse Barnes
reset is already de-asserted (Imre) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 19 +++ drivers/gpu/drm/i915/intel_drv.h | 3 ++- drivers/gpu/drm/i915/intel_pm.c | 13 ++--- 3 files changed, 31 insertions(+), 4 deletions(-) diff

Re: [Intel-gfx] [PATCH] drm/i915/vlv: assert and de-assert sideband reset at boot and resume v2

2014-05-20 Thread Jesse Barnes
On Mon, 19 May 2014 16:16:37 -0700 Jesse Barnes wrote: > This is a bit like the CMN reset de-assert we do in DPIO_CTL, except > that it resets the whole common lane section of the PHY. This is > required on machines where the BIOS doesn't do this for us on boot or > resu

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Kill RMW from ILK reset code

2014-05-20 Thread Jesse Barnes
ASK; > I915_WRITE(MCHBAR_MIRROR_BASE + ILK_GDSR, > -gdrst | ILK_GRDOM_MEDIA | ILK_GRDOM_RESET_ENABLE); > +ILK_GRDOM_MEDIA | ILK_GRDOM_RESET_ENABLE); > return wait_for((I915_READ(MCHBAR_MIRROR_BASE + ILK_GDSR) & >

Re: [Intel-gfx] [PATCH 5/6] drm/i915: Clear GDSR after reset on ILK

2014-05-20 Thread Jesse Barnes
SR) & > + ILK_GRDOM_RESET_ENABLE) == 0, 500); > + if (ret) > + return ret; > + > + I915_WRITE(MCHBAR_MIRROR_BASE + ILK_GDSR, 0); > + > + return 0; > } > > static int gen6_do_reset(struct drm_device *dev) Reviewed-by: Jesse Barnes --

Re: [Intel-gfx] [PATCH 6/6] drm/i915: Implement WaVcpClkGateDisableForMediaReset:ctg, elk

2014-05-20 Thread Jesse Barnes
e 5: return ironlake_do_reset(dev); > - case 4: return i965_do_reset(dev); > + case 4: > + if (IS_G4X(dev)) > + return g4x_do_reset(dev); > + else > + return i965_do_re

Re: [Intel-gfx] [RFC PATCH 1/2] drm/i915: shuffle panel code

2014-05-20 Thread Jesse Barnes
e->vsync_start && > - scan->vsync_end == fixed_mode->vsync_end && > - scan->vtotal == fixed_mode->vtotal) { > - if (scan->clock < temp_downclock) { > - /* > -

Re: [Intel-gfx] [RFC PATCH 2/2] drm/i915: respect the VBT minimum backlight brightness

2014-05-20 Thread Jesse Barnes
props.brightness = scale_hw_to_user(connector, > + panel->backlight.level, > + props.max_brightness); > > /* >* Note: using the same name independent of the connector prevents > @@ -965

Re: [Intel-gfx] [PATCH 3/4] drm/i915: enable VT switchless resume v3

2014-05-20 Thread Jesse Barnes
On Fri, 16 May 2014 23:42:23 +0100 Chris Wilson wrote: > On Fri, May 16, 2014 at 11:38:07PM +0100, Chris Wilson wrote: > > On Fri, May 16, 2014 at 03:20:47PM -0700, Jesse Barnes wrote: > > > On Mon, 21 Apr 2014 18:37:31 +0200 > > > Knut Petersen wrote: > > &

Re: [Intel-gfx] [PATCH 3/4] drm/i915: enable VT switchless resume v3

2014-05-20 Thread Jesse Barnes
On Tue, 20 May 2014 12:53:29 -0700 Jesse Barnes wrote: > On Fri, 16 May 2014 23:42:23 +0100 > Chris Wilson wrote: > > > On Fri, May 16, 2014 at 11:38:07PM +0100, Chris Wilson wrote: > > > On Fri, May 16, 2014 at 03:20:47PM -0700, Jesse Barnes wrote: > > > >

Re: [Intel-gfx] [PATCH 3/4] drm/i915: enable VT switchless resume v3

2014-05-20 Thread Jesse Barnes
On Tue, 20 May 2014 22:15:45 +0200 Daniel Vetter wrote: > On Tue, May 20, 2014 at 9:58 PM, Jesse Barnes > wrote: > > Ah, poll_enable is false until after _thaw finishes, so > > our hotplug_resume call of hpd_irq_event does nothing. So aside from > > the encoder h

Re: [Intel-gfx] [PATCH 3/4] drm/i915: enable VT switchless resume v3

2014-05-20 Thread Jesse Barnes
On Tue, 20 May 2014 14:10:16 -0700 Jesse Barnes wrote: > On Tue, 20 May 2014 22:15:45 +0200 > Daniel Vetter wrote: > > > On Tue, May 20, 2014 at 9:58 PM, Jesse Barnes > > wrote: > > > Ah, poll_enable is false until after _thaw finishes, so > > > our ho

Re: [Intel-gfx] [PATCH 3/4] drm/i915: enable VT switchless resume v3

2014-05-20 Thread Jesse Barnes
On Tue, 20 May 2014 14:18:07 -0700 Jesse Barnes wrote: > On Tue, 20 May 2014 14:10:16 -0700 > Jesse Barnes wrote: > > > On Tue, 20 May 2014 22:15:45 +0200 > > Daniel Vetter wrote: > > > > > On Tue, May 20, 2014 at 9:58 PM, Jesse Barnes > > >

[Intel-gfx] [PATCH 1/3] drm/i915: drop encoder hot_plug calls at resume

2014-05-20 Thread Jesse Barnes
We really just want to go detect displays again and fire off a hotplug event if things have changed, not go through full hotplug processing. Requested-by: Daniel Vetter Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 20 +--- 1 file changed, 1 insertion(+), 19

[Intel-gfx] [PATCH 3/3] drm/i915: use async hpd_irq_event function on resume

2014-05-20 Thread Jesse Barnes
Gets the detect code (which may take awhile) out of the resume path, speeding things up a bit. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c

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