Re: [Intel-gfx] Request Linux Graphic Driver for Intel GMA 3150

2015-09-02 Thread Matt Turner
On Wed, Sep 2, 2015 at 9:01 PM, David Ho wrote: > Dear Rodrigo, > > Thank you for your help. > > I'll take a look at the PCI ID. > > However, > when I search GMA 3150 at 01.org, I came across this page: > https://01.org/linuxgraphics/downloads/2013q1-intel-graphics-stack-release > > and also this

Re: [Intel-gfx] Request Linux Graphic Driver for Intel GMA 3150

2015-09-02 Thread David Ho
Dear Rodrigo, Thank you for your help. I'll take a look at the PCI ID. However, when I search GMA 3150 at 01.org, I came across this page: https://01.org/linuxgraphics/downloads/2013q1-intel-graphics-stack-release and also this page at Intel.com http://www.intel.com/support/graphics/sb/cs-01051

Re: [Intel-gfx] Request Linux Graphic Driver for Intel GMA 3150

2015-09-02 Thread Vivi, Rodrigo
On Wed, 2015-09-02 at 18:09 -0700, Matt Turner wrote: > On Wed, Sep 2, 2015 at 10:37 AM, Vivi, Rodrigo < > rodrigo.v...@intel.com> wrote: > > On Wed, 2015-09-02 at 18:16 +0700, David Ho wrote: > > > Dear Rodrigo, > > > > Hi David, > > > > I just paid attention to the subject and notice you are lo

Re: [Intel-gfx] Request Linux Graphic Driver for Intel GMA 3150

2015-09-02 Thread Matt Turner
On Wed, Sep 2, 2015 at 10:37 AM, Vivi, Rodrigo wrote: > On Wed, 2015-09-02 at 18:16 +0700, David Ho wrote: >> Dear Rodrigo, > > Hi David, > > I just paid attention to the subject and notice you are looking for > driver for GMA 3150. I'm not sure, but I'm afraid this platform doesn't > have the GPU

[Intel-gfx] linux-next: build failure after merge of the drm-misc tree

2015-09-02 Thread Stephen Rothwell
) Caused by commit a317290af0db ("drm/atomic: Make prepare_fb/cleanup_fb only take state, v3") Well, that was clearly never build tested :-( I have used the drm-misc tree from next-20150902 for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au

[Intel-gfx] [PATCH] drm/i915: Add GuC css header parser

2015-09-02 Thread yu . dai
From: Alex Dai By using information from GuC css header, we can eliminate some hard code w.r.t size of some components of firmware. Signed-off-by: Alex Dai --- drivers/gpu/drm/i915/intel_guc.h| 2 +- drivers/gpu/drm/i915/intel_guc_fwif.h | 36 + drivers/gpu/drm/i915/inte

[Intel-gfx] [PATCH] drm/i915: Fix a bug in GuC status check

2015-09-02 Thread yu . dai
From: Alex Dai Bit 16 of GuC status indicates resuming from RC6. The LAPIC_DONE status is a reliable readiness flag only when resuming from RC6. This fix a racing issue that allocation of doorbell fails whilst GuC init is not finished. Signed-off-by: Alex Dai --- drivers/gpu/drm/i915/i915_guc_

[Intel-gfx] Water mark update need to wait for next VSYNC?

2015-09-02 Thread Xie, William
Hi all, Can anyone educate me if water mark update need to wait for next VSYNC? In other words, if we flip a frame to overlay for the first time, it will be showed in the next VBlank as water mark update needs to wait for that? Is this true or a bug? Thanks William _

[Intel-gfx] watermark problem in kernel 3.14

2015-09-02 Thread Xie, William
Hi all, We suspect watermark has problem in kernel 3.14, Does anyone have a new watermark patch for 3.14 similar as below patch: http://patchwork.freedesktop.org/bundle/anderco/matt-watermarks/ Thanks William ___ Intel-gfx mailing list Intel-gfx@lists.f

[Intel-gfx] [PATCH 2/3] drm/i915: Future proof uncore_init.

2015-09-02 Thread Rodrigo Vivi
Unless future specs tells otherwise we can assume future gens inherit some stuff from the previous so let's handle missed cases when we know tehy should't be there and assume default equals newest one. No functional changes. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_uncore.c |

[Intel-gfx] [PATCH 1/3] drm/i915: Future proof interrupt handler.

2015-09-02 Thread Rodrigo Vivi
These functions are already being called for gen >= 9, so let's be sure when this happens we use whatever is there already for the latest platform. No functional change. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_irq.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[Intel-gfx] [PATCH 3/3] drm/i915: Future proof panel fitter.

2015-09-02 Thread Rodrigo Vivi
This is another case where we can consider the default is the newest available and not actually a missed case. No functional change. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_display.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drive

Re: [Intel-gfx] [PATCH 2/2] drm/i915: restrict unclaimed register checking

2015-09-02 Thread Paulo Zanoni
2015-09-02 17:53 GMT-03:00 ch...@chris-wilson.co.uk : > On Wed, Sep 02, 2015 at 08:20:52PM +, Zanoni, Paulo R wrote: >> Em Qua, 2015-08-26 às 08:44 +0100, Chris Wilson escreveu: >> > On Tue, Aug 25, 2015 at 07:03:42PM -0300, Paulo Zanoni wrote: >> > > The unclaimed register bit is only triggere

Re: [Intel-gfx] [PATCH 2/2] drm/i915: restrict unclaimed register checking

2015-09-02 Thread Paulo Zanoni
2015-09-02 17:53 GMT-03:00 ch...@chris-wilson.co.uk : > On Wed, Sep 02, 2015 at 08:20:52PM +, Zanoni, Paulo R wrote: >> Em Qua, 2015-08-26 às 08:44 +0100, Chris Wilson escreveu: >> > On Tue, Aug 25, 2015 at 07:03:42PM -0300, Paulo Zanoni wrote: >> > > The unclaimed register bit is only triggere

Re: [Intel-gfx] [PATCH 2/2] drm/i915: restrict unclaimed register checking

2015-09-02 Thread ch...@chris-wilson.co.uk
On Wed, Sep 02, 2015 at 08:20:52PM +, Zanoni, Paulo R wrote: > Em Qua, 2015-08-26 às 08:44 +0100, Chris Wilson escreveu: > > On Tue, Aug 25, 2015 at 07:03:42PM -0300, Paulo Zanoni wrote: > > > The unclaimed register bit is only triggered when someone touches > > > the > > > specified register

Re: [Intel-gfx] 4.1->4.2 regression : intel_display.c:12324 check_crtc_state warning

2015-09-02 Thread Konduru, Chandra
>> Sep 2 18:10:26 t44 kernel: [drm:check_crtc_state [i915]] *ERROR* mismatch >> in ips_enabled (expected 1, found 0) It is due to ips_enabled mismatch in crtc_state. I can't think how below patch is triggering mismatch in ips_enabled. > -Original Message- > From: Toralf Förster [mailt

Re: [Intel-gfx] [PATCH 2/2] drm/i915: restrict unclaimed register checking

2015-09-02 Thread Zanoni, Paulo R
Em Qua, 2015-08-26 às 08:44 +0100, Chris Wilson escreveu: > On Tue, Aug 25, 2015 at 07:03:42PM -0300, Paulo Zanoni wrote: > > The unclaimed register bit is only triggered when someone touches > > the > > specified register range. > > > > For the normal use case (with i915.mmio_debug=0), this comm

[Intel-gfx] 4.1->4.2 regression : intel_display.c:12324 check_crtc_state warning

2015-09-02 Thread Toralf Förster
The following commit was bisected and tested to be the first bad commit which causes the warning as seen below at a ThinkPad T40s: commit a1b2278e4dfcd2dbea85e319ebf73a6b7b2f180b Author: Chandra Konduru Date: Tue Apr 7 15:28:45 2015 -0700 drm/i915: skylake panel fitting using shared sca

Re: [Intel-gfx] [PATCH] drm/i915: access the PP_ON_DELAYS/PP_OFF_DELAYS regs only pre GEN5

2015-09-02 Thread Ville Syrjälä
On Wed, Sep 02, 2015 at 06:36:35PM +0300, Imre Deak wrote: > These registers exist only before GEN5, so currently we may access > undefined registers on VLV/CHV and BXT. Apply the workaround only pre > GEN5. > > This triggered an unclaimed register access warning on BXT. > > Signed-off-by: Imre D

Re: [Intel-gfx] Request Linux Graphic Driver for Intel GMA 3150

2015-09-02 Thread Vivi, Rodrigo
On Wed, 2015-09-02 at 18:16 +0700, David Ho wrote: > Dear Rodrigo, Hi David, I just paid attention to the subject and notice you are looking for driver for GMA 3150. I'm not sure, but I'm afraid this platform doesn't have the GPU supported by our open source driver. Probably the GMA 3150 will be

Re: [Intel-gfx] [PATCH] drm/i915/skl: Don't clear all watermarks when updating. (v2)

2015-09-02 Thread Bob Paauwe
Damien, You reviewed v1 and then went on vacation for v2. Any chance you can review v2? Thanks, Bob On Tue, 21 Jul 2015 10:42:53 -0700 Bob Paauwe wrote: > Clearing the watermarks for all pipes/planes when updating the > watermarks for a single CRTC change seems like the wrong thing to > do he

Re: [Intel-gfx] [PATCH v4] drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps

2015-09-02 Thread Chris Wilson
On Wed, Sep 02, 2015 at 05:46:38PM +0200, Michał Winiarski wrote: > + pts = kcalloc(pdpes * BITS_TO_LONGS(I915_PDES), > + sizeof(unsigned long), GFP_TEMPORARY); > + if (!pts) > + goto err_out; This is the oddly aligned bracket! -Chris -- Chris Wilson, Inte

[Intel-gfx] [PATCH v4] drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps

2015-09-02 Thread Michał Winiarski
On each call to gen8_alloc_va_range_3lvl we're allocating temporary bitmaps needed for error handling. Unfortunately, when we increase address space size (48b ppgtt) we do additional (512 - 4) calls to kcalloc, increasing latency between exec and actual start of execution on the GPU. Let's just do

[Intel-gfx] [PATCH] drm/i915: access the PP_ON_DELAYS/PP_OFF_DELAYS regs only pre GEN5

2015-09-02 Thread Imre Deak
These registers exist only before GEN5, so currently we may access undefined registers on VLV/CHV and BXT. Apply the workaround only pre GEN5. This triggered an unclaimed register access warning on BXT. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_bios.c | 2 +- 1 file changed, 1 ins

Re: [Intel-gfx] [PATCH v6 4/4] drm/i915: set proper N/CTS in modeset

2015-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2015 17:22:01 +0200, Daniel Vetter wrote: > > On Wed, Sep 02, 2015 at 03:46:40PM +0200, Takashi Iwai wrote: > > On Wed, 02 Sep 2015 15:44:34 +0200, > > Jani Nikula wrote: > > > > > > On Wed, 02 Sep 2015, Takashi Iwai wrote: > > > > On Wed, 02 Sep 2015 11:02:42 +0200, > > > > Jani

Re: [Intel-gfx] [RFC 1/3] drm/i915: Roll intel_crtc->atomic into intel_crtc_state

2015-09-02 Thread Ville Syrjälä
On Wed, Sep 02, 2015 at 04:22:56PM +0200, Maarten Lankhorst wrote: > Op 02-09-15 om 13:15 schreef Ville Syrjälä: > > On Wed, Sep 02, 2015 at 01:08:31PM +0200, Maarten Lankhorst wrote: > >> Op 02-09-15 om 12:35 schreef Ville Syrjälä: > >>> On Wed, Sep 02, 2015 at 07:15:25AM +0200, Maarten Lankhorst

Re: [Intel-gfx] [RFC] Docs: drm: Move KMS properties table out to source files

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 02:50:52PM +0100, Graham Whaley wrote: > (RFC/test - not for merging) > The below is a test of moving the large HTML KMS properties table out > to markdown style in the appropriate files. > In the test we only use the first few rows of the existing KMS table > an example. >

Re: [Intel-gfx] [RFC] Docs: drm: Move KMS properties table out to source files

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 05:14:35PM +0300, Jani Nikula wrote: > On Wed, 02 Sep 2015, Graham Whaley wrote: > > Documentation/DocBook/drm.tmpl | 925 > > + > > drivers/gpu/drm/drm_crtc.c | 16 + > > 2 files changed, 17 insertions(+), 924 deletions(-) >

Re: [Intel-gfx] [PATCH v3] drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 05:13:29PM +0200, Daniel Vetter wrote: > On Wed, Sep 02, 2015 at 02:46:41PM +0100, Chris Wilson wrote: > > On Wed, Sep 02, 2015 at 02:40:03PM +0100, Michel Thierry wrote: > > > On 9/1/2015 10:06 AM, Michał Winiarski wrote: > > > >On each call to gen8_alloc_va_range_3lvl we'r

Re: [Intel-gfx] [PATCH 1/2] drm/atomic: Make prepare_fb/cleanup_fb only take state, v3.

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 03:36:33PM +0100, Daniel Stone wrote: > On 2 September 2015 at 09:42, Maarten Lankhorst > wrote: > > This removes the need to separately track fb changes i915. > > That will be done as a separate commit, however. > > > > Changes since v1: > > - Add dri-devel to cc. > > - Fi

Re: [Intel-gfx] [PATCH v6 4/4] drm/i915: set proper N/CTS in modeset

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 03:46:40PM +0200, Takashi Iwai wrote: > On Wed, 02 Sep 2015 15:44:34 +0200, > Jani Nikula wrote: > > > > On Wed, 02 Sep 2015, Takashi Iwai wrote: > > > On Wed, 02 Sep 2015 11:02:42 +0200, > > > Jani Nikula wrote: > > >> > > >> >> Nitpick. I'd prefer some sharing with the

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Avoid race of intel_crt_detect_hotplug() with HPD interrupt

2015-09-02 Thread Egbert Eich
Daniel Vetter writes: > On Wed, Sep 02, 2015 at 04:19:00PM +0200, Egbert Eich wrote: > > Hm I missed that this same register is also accessed by the irq handler > code, and it's not just that touching these bits can cause interrupts. So > yeah we need your patch, but it needs to be clearer in

Re: [Intel-gfx] [PATCH v3] drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 02:46:41PM +0100, Chris Wilson wrote: > On Wed, Sep 02, 2015 at 02:40:03PM +0100, Michel Thierry wrote: > > On 9/1/2015 10:06 AM, Michał Winiarski wrote: > > >On each call to gen8_alloc_va_range_3lvl we're allocating temporary > > >bitmaps needed for error handling. Unfortun

Re: [Intel-gfx] [PATCH 18/17] drm/i915: Don't call intel_get_hpd_pins() when there's no hotplug interrupt

2015-09-02 Thread Daniel Vetter
On Fri, Aug 28, 2015 at 07:15:15PM -0300, Paulo Zanoni wrote: > 2015-08-28 16:59 GMT-03:00 : > > From: Ville Syrjälä > > > > On GMCH plaforms we are now getting the following spew on aux > > interrupts: > > [drm:intel_get_hpd_pins] hotplug event received, stat 0x, dig > > 0x, pin

Re: [Intel-gfx] [PATCH v2] drm/i915/bdw: Check for slice, subslice and EU count for BDW

2015-09-02 Thread Arun Siluvery
On 02/09/2015 16:47, Łukasz Daniluk wrote: Added checks for available slices, subslices and EUs for Broadwell. This information is filled in intel_device_info and is available to user with GET_PARAM. Added checks for enabled slices, subslices and EU for Broadwell. This information is based on ava

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Avoid race of intel_crt_detect_hotplug() with HPD interrupt

2015-09-02 Thread Egbert Eich
Jani Nikula writes: > On Wed, 02 Sep 2015, Egbert Eich wrote: > > This is exactly the scenatio I'm getting here. I get HPD interrupts at an > > order of 10^4 / sec. > > Makes you wonder if either you have faulty hardware or we are > configuring the hardware wrong (we overlook some configur

Re: [Intel-gfx] [PATCH] drm/i915: Fix broken mst get_hw_state.

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 04:14:27PM +0200, Maarten Lankhorst wrote: > Op 02-09-15 om 16:07 schreef Ander Conselvan De Oliveira: > > On Thu, 2015-08-27 at 13:13 +0200, Maarten Lankhorst wrote: > >> connector->encoder is initialized as NULL. Fix this by setting it in > >> during pre enable. MST connec

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Avoid race of intel_crt_detect_hotplug() with HPD interrupt

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 04:19:00PM +0200, Egbert Eich wrote: > Daniel Vetter writes: > > On Tue, Sep 01, 2015 at 10:21:35PM +0200, Egbert Eich wrote: > > > A HPD interrupt may fire during intel_crt_detect_hotplug() - especially > > > when HPD interrupt storms occur. > > > Since the interrupt ha

Re: [Intel-gfx] [PATCH] drm/i915: Update comments around base bpp

2015-09-02 Thread Daniel Vetter
On Wed, Aug 26, 2015 at 06:57:26PM +0200, Daniel Vetter wrote: > Forgot to do that in > > commit d328c9d78d64ca11e744fe227096990430a88477 > Author: Daniel Vetter > Date: Fri Apr 10 16:22:37 2015 +0200 > > drm/i915: Select starting pipe bpp irrespective or the primary plane > > and it's co

Re: [Intel-gfx] [PATCH 1/2] drm/atomic: Make prepare_fb/cleanup_fb only take state, v3.

2015-09-02 Thread Daniel Stone
On 2 September 2015 at 09:42, Maarten Lankhorst wrote: > This removes the need to separately track fb changes i915. > That will be done as a separate commit, however. > > Changes since v1: > - Add dri-devel to cc. > - Fix a check in intel's prepare and cleanup fb to take rotation > into account.

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Avoid race of intel_crt_detect_hotplug() with HPD interrupt

2015-09-02 Thread Jani Nikula
On Wed, 02 Sep 2015, Egbert Eich wrote: > This is exactly the scenatio I'm getting here. I get HPD interrupts at an > order of 10^4 / sec. Makes you wonder if either you have faulty hardware or we are configuring the hardware wrong (we overlook some configuration about some voltage/duration thre

Re: [Intel-gfx] [RFC 1/3] drm/i915: Roll intel_crtc->atomic into intel_crtc_state

2015-09-02 Thread Maarten Lankhorst
Op 02-09-15 om 13:15 schreef Ville Syrjälä: > On Wed, Sep 02, 2015 at 01:08:31PM +0200, Maarten Lankhorst wrote: >> Op 02-09-15 om 12:35 schreef Ville Syrjälä: >>> On Wed, Sep 02, 2015 at 07:15:25AM +0200, Maarten Lankhorst wrote: Op 01-09-15 om 17:48 schreef Ville Syrjälä: > On Tue, Sep 0

Re: [Intel-gfx] [PATCH] scripts/kernel-doc: Improve Markdown results

2015-09-02 Thread Jonathan Corbet
On Tue, 1 Sep 2015 14:57:33 -0300 Danilo Cesar Lemes de Paula wrote: > Did you find time to check this patch? As you mentioned that you applied > the Markdown support for the linux-next tree, this patch might be needed > (maybe "wanted" is a better word). Not quite what I said...I said I'd apply

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Avoid race of intel_crt_detect_hotplug() with HPD interrupt

2015-09-02 Thread Egbert Eich
Daniel Vetter writes: > On Tue, Sep 01, 2015 at 10:21:35PM +0200, Egbert Eich wrote: > > A HPD interrupt may fire during intel_crt_detect_hotplug() - especially > > when HPD interrupt storms occur. > > Since the interrupt handler changes the enabled interrupt lines when it > > detects a storm

Re: [Intel-gfx] [PATCH] drm/i915: Fix broken mst get_hw_state.

2015-09-02 Thread Maarten Lankhorst
Op 02-09-15 om 16:07 schreef Ander Conselvan De Oliveira: > On Thu, 2015-08-27 at 13:13 +0200, Maarten Lankhorst wrote: >> connector->encoder is initialized as NULL. Fix this by setting it in >> during pre enable. MST connectors are not read out during initial hw >> readout, and have no fixed encod

Re: [Intel-gfx] [RFC] Docs: drm: Move KMS properties table out to source files

2015-09-02 Thread Jani Nikula
On Wed, 02 Sep 2015, Graham Whaley wrote: > Documentation/DocBook/drm.tmpl | 925 > + > drivers/gpu/drm/drm_crtc.c | 16 + > 2 files changed, 17 insertions(+), 924 deletions(-) I like this already. BR, Jani. -- Jani Nikula, Intel Open Source Techn

Re: [Intel-gfx] [RFC PATCH] drm/i915: Use universal planes for cursor on skylake.

2015-09-02 Thread Maarten Lankhorst
Op 02-09-15 om 11:15 schreef Daniel Vetter: > On Thu, Aug 27, 2015 at 12:08:30PM +0200, Maarten Lankhorst wrote: >> This appears to make all the cursor tests really slow because of the many >> calls to skl_update_wm >> when the cursor plane visibility is changed. It performs does 3 vblanks each >

Re: [Intel-gfx] [PATCH] drm/i915: Fix broken mst get_hw_state.

2015-09-02 Thread Ander Conselvan De Oliveira
On Thu, 2015-08-27 at 13:13 +0200, Maarten Lankhorst wrote: > connector->encoder is initialized as NULL. Fix this by setting it in > during pre enable. MST connectors are not read out during initial hw > readout, and have no fixed encoder mappings. So it's harmless to > return false when the connec

Re: [Intel-gfx] [PATCH 4/5] Documentation: drm: Convert KMS Properties HTML table to CALS

2015-09-02 Thread Graham Whaley
On Tue, 2015-09-01 at 14:56 -0300, Danilo Cesar Lemes de Paula wrote: > On 08/25/2015 01:10 PM, Graham Whaley wrote: > > On Tue, 2015-08-25 at 16:29 +0200, Daniel Vetter wrote: > > > On Tue, Aug 25, 2015 at 10:26:44AM +0100, Graham Whaley wrote: > > > > The KMS Properties table is in HTML format, w

Re: [Intel-gfx] [PATCH v2] drm/i915/bdw: Check for slice, subslice and EU count for BDW

2015-09-02 Thread Chris Wilson
On Wed, Sep 02, 2015 at 05:47:58PM +0200, Łukasz Daniluk wrote: > +static void broadwell_sseu_device_status(struct drm_device *dev, Why pass in dev if you only use dev_priv (and commit the sin of repeatedly retrieving dev->dev_priv)? > + struct sseu_dev_status

[Intel-gfx] [PATCH v2] drm/i915/bdw: Check for slice, subslice and EU count for BDW

2015-09-02 Thread Łukasz Daniluk
Added checks for available slices, subslices and EUs for Broadwell. This information is filled in intel_device_info and is available to user with GET_PARAM. Added checks for enabled slices, subslices and EU for Broadwell. This information is based on available counts but takes power gated slices in

[Intel-gfx] [RFC] Docs: drm: Move KMS properties table out to source files

2015-09-02 Thread Graham Whaley
(RFC/test - not for merging) The below is a test of moving the large HTML KMS properties table out to markdown style in the appropriate files. In the test we only use the first few rows of the existing KMS table an example. We use a fixed width table as the other styles of table supported by pandoc

Re: [Intel-gfx] [PATCH v3] drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps

2015-09-02 Thread Chris Wilson
On Wed, Sep 02, 2015 at 02:40:03PM +0100, Michel Thierry wrote: > On 9/1/2015 10:06 AM, Michał Winiarski wrote: > >On each call to gen8_alloc_va_range_3lvl we're allocating temporary > >bitmaps needed for error handling. Unfortunately, when we increase > >address space size (48b ppgtt) we do additi

Re: [Intel-gfx] [PATCH v6 4/4] drm/i915: set proper N/CTS in modeset

2015-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2015 15:44:34 +0200, Jani Nikula wrote: > > On Wed, 02 Sep 2015, Takashi Iwai wrote: > > On Wed, 02 Sep 2015 11:02:42 +0200, > > Jani Nikula wrote: > >> > >> >> Nitpick. I'd prefer some sharing with the similar blocks from the > >> >> earlier patch. Also a debug message on n == 0

Re: [Intel-gfx] [PATCH v6 4/4] drm/i915: set proper N/CTS in modeset

2015-09-02 Thread Jani Nikula
On Wed, 02 Sep 2015, Takashi Iwai wrote: > On Wed, 02 Sep 2015 11:02:42 +0200, > Jani Nikula wrote: >> >> >> Nitpick. I'd prefer some sharing with the similar blocks from the >> >> earlier patch. Also a debug message on n == 0 would be nice; you >> >> probably didn't notice your audio_config_get_

Re: [Intel-gfx] [PATCH v3] drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps

2015-09-02 Thread Michel Thierry
On 9/1/2015 10:06 AM, Michał Winiarski wrote: On each call to gen8_alloc_va_range_3lvl we're allocating temporary bitmaps needed for error handling. Unfortunately, when we increase address space size (48b ppgtt) we do additional (512 - 4) calls to kcalloc, increasing latency between exec and actu

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Use the correct hpd_status list for non-G4xx/VLV

2015-09-02 Thread Jani Nikula
On Wed, 02 Sep 2015, Imre Deak wrote: > On ke, 2015-09-02 at 14:00 +0200, Daniel Vetter wrote: >> On Tue, Sep 01, 2015 at 10:21:34PM +0200, Egbert Eich wrote: >> > This copy-and-past error was introduced in: >> > >> > commit fd63e2a972c670887e5e8a08440111d3812c0996 >> > Author: Imre Deak >> > Da

Re: [Intel-gfx] [PATCH 17/17] drm/i915: Pass hpd_status_i915[] to intel_get_hpd_pins() in pre-g4x

2015-09-02 Thread Jani Nikula
On Sat, 29 Aug 2015, Paulo Zanoni wrote: > 2015-08-27 17:56 GMT-03:00 : >> From: Ville Syrjälä >> >> Pass the correct hpd[] array to intel_get_hpd_pins() on pre-g4x >> platforms. >> >> This got broken in the following commit: >> commit fd63e2a972c670887e5e8a08440111d3812c0996 >> Author: Imre Dea

Re: [Intel-gfx] [PATCH v6 4/4] drm/i915: set proper N/CTS in modeset

2015-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2015 11:02:42 +0200, Jani Nikula wrote: > > >> Nitpick. I'd prefer some sharing with the similar blocks from the > >> earlier patch. Also a debug message on n == 0 would be nice; you > >> probably didn't notice your audio_config_get_rate() wasn't working > >> right > >> because this

Re: [Intel-gfx] [PATCH] drm/i915: Always mark the object as dirty when used by the GPU

2015-09-02 Thread Jani Nikula
On Wed, 02 Sep 2015, Daniel Vetter wrote: > On Mon, Aug 31, 2015 at 03:10:39PM +0100, Chris Wilson wrote: >> There have been many hard to track down bugs whereby userspace forgot to >> flag a write buffer and then cause graphics corruption or a hung GPU >> when that buffer was later purged under m

Re: [Intel-gfx] [PATCH] uapi/drm/i915_drm.h: fix userspace compilation.

2015-09-02 Thread Jani Nikula
On Wed, 02 Sep 2015, Daniel Vetter wrote: > On Wed, Sep 02, 2015 at 02:52:19PM +0300, Ville Syrjälä wrote: >> On Wed, Sep 02, 2015 at 01:41:18PM +0200, Artem Savkov wrote: >> > Patch "drm/i915: Use expcitly fixed type in compat32 structs" changed the >> > type >> > of param field in drm_i915_getp

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Use the correct hpd_status list for non-G4xx/VLV

2015-09-02 Thread Imre Deak
On ke, 2015-09-02 at 14:00 +0200, Daniel Vetter wrote: > On Tue, Sep 01, 2015 at 10:21:34PM +0200, Egbert Eich wrote: > > This copy-and-past error was introduced in: > > > > commit fd63e2a972c670887e5e8a08440111d3812c0996 > > Author: Imre Deak > > Date: Tue Jul 21 15:32:44 2015 -0700 > > > >

Re: [Intel-gfx] [PATCH] uapi/drm/i915_drm.h: fix userspace compilation.

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 02:52:19PM +0300, Ville Syrjälä wrote: > On Wed, Sep 02, 2015 at 01:41:18PM +0200, Artem Savkov wrote: > > Patch "drm/i915: Use expcitly fixed type in compat32 structs" changed the > > type > > of param field in drm_i915_getparam from int to s32. This header is > > exporte

Re: [Intel-gfx] [PATCH] drm/i915: add kerneldoc for i915_audio_component

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 02:12:24PM +0800, libin.y...@intel.com wrote: > From: Libin Yang > > Add the kerneldoc for i915_audio_component in i915_component.h > > Signed-off-by: Libin Yang > --- > include/drm/i915_component.h | 39 --- > 1 file changed, 24 inse

Re: [Intel-gfx] [PATCH 0/4 v5] i915 to call hda driver on HDMI plug/unplug

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 01:59:30PM +0200, Takashi Iwai wrote: > On Wed, 02 Sep 2015 13:45:03 +0200, > Daniel Vetter wrote: > > > > On Fri, Aug 28, 2015 at 08:14:48PM +0300, Jani Nikula wrote: > > > On Fri, 28 Aug 2015, David Henningsson > > > wrote: > > > > Hopefully last version? :-) > > > > >

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Avoid race of intel_crt_detect_hotplug() with HPD interrupt

2015-09-02 Thread Daniel Vetter
On Tue, Sep 01, 2015 at 10:21:35PM +0200, Egbert Eich wrote: > A HPD interrupt may fire during intel_crt_detect_hotplug() - especially > when HPD interrupt storms occur. > Since the interrupt handler changes the enabled interrupt lines when it > detects a storm this races with intel_crt_detect_hotp

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Use the correct hpd_status list for non-G4xx/VLV

2015-09-02 Thread Daniel Vetter
On Tue, Sep 01, 2015 at 10:21:34PM +0200, Egbert Eich wrote: > This copy-and-past error was introduced in: > > commit fd63e2a972c670887e5e8a08440111d3812c0996 > Author: Imre Deak > Date: Tue Jul 21 15:32:44 2015 -0700 > > drm/i915: combine i9xx_get_hpd_pins and pch_get_hpd_pins > > Signed

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Fix irq_port for eDP

2015-09-02 Thread Jindal, Sonika
When hpd occurs on port_b, due to the below assignment, it calls digital_port_wok_func first. There it tries to check the connector status for port B (actually checking port A's HPD pin due to the BXT WA). It finds it connected and continues to read the dpcd. Since this port was only initialized

Re: [Intel-gfx] [PATCH 0/4 v5] i915 to call hda driver on HDMI plug/unplug

2015-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2015 13:45:03 +0200, Daniel Vetter wrote: > > On Fri, Aug 28, 2015 at 08:14:48PM +0300, Jani Nikula wrote: > > On Fri, 28 Aug 2015, David Henningsson > > wrote: > > > Hopefully last version? :-) > > > > > > * Added commit text about duplicate events (patch 4/4) > > > * Added loc

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Call non-locking version of drm_kms_helper_poll_enable()

2015-09-02 Thread Daniel Vetter
On Tue, Sep 01, 2015 at 10:21:33PM +0200, Egbert Eich wrote: > drm_kms_helper_poll_enable() is called from a context in > intel_hpd_irq_storm_disable() where the the mode_config mutex is > already locked. > When this function was converted to lock this mutex in: > > commit 8c4ccc4ab6f64e859d4ff8d7

Re: [Intel-gfx] [PATCH 1/4] drm: Add a non-locking version of drm_kms_helper_poll_enable().

2015-09-02 Thread Daniel Vetter
On Tue, Sep 01, 2015 at 10:21:32PM +0200, Egbert Eich wrote: > drm_kms_helper_poll_enable() was converted to lock the mode_config > mutex in commit 8c4ccc4ab6f64e859d4ff8d7c02c2ed2e956e07f > ("drm/probe-helper: Grab mode_config.mutex in poll_init/enable"). > > This disregarded the cases where this

Re: [Intel-gfx] [PATCH] uapi/drm/i915_drm.h: fix userspace compilation.

2015-09-02 Thread Ville Syrjälä
On Wed, Sep 02, 2015 at 01:41:18PM +0200, Artem Savkov wrote: > Patch "drm/i915: Use expcitly fixed type in compat32 structs" changed the type > of param field in drm_i915_getparam from int to s32. This header is exported > to > userspace and needs to use userspace type __s32 instead. > > This fi

Re: [Intel-gfx] [PATCH] drm/i915: Always mark the object as dirty when used by the GPU

2015-09-02 Thread Daniel Vetter
On Mon, Aug 31, 2015 at 03:10:39PM +0100, Chris Wilson wrote: > There have been many hard to track down bugs whereby userspace forgot to > flag a write buffer and then cause graphics corruption or a hung GPU > when that buffer was later purged under memory pressure (as the buffer > appeared clean,

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: Also record time difference if vblank evasion fails, v2.

2015-09-02 Thread Daniel Vetter
On Tue, Sep 01, 2015 at 12:15:33PM +0200, Maarten Lankhorst wrote: > This makes the error message slightly more useful. > > Changes since v1: > - Use ktime_get() while irqs are still disabled. (vsyrjala) > > Signed-off-by: Maarten Lankhorst > Reviewed-by: Ville Syrjälä Both applied to dinq, th

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Fix irq_port for eDP

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 11:48:36AM +, Jindal, Sonika wrote: > :( This had a hole.. > Please drop this patch.. What kind of hole? It sounds like we need this to avoid blowing up when we handle the edp hpd interrupt everywhere? Please explain so I can understand what I've missed here ... Thanks

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Fix irq_port for eDP

2015-09-02 Thread Jindal, Sonika
:( This had a hole.. Please drop this patch.. I am going to send another patch tested with hdmi optimization series for bxt. Regards, Sonika -Original Message- From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel Vetter Sent: Wednesday, September 2, 2015 5:17 PM To: Ji

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Fix irq_port for eDP

2015-09-02 Thread Daniel Vetter
On Mon, Aug 31, 2015 at 02:35:32PM +0530, Sonika Jindal wrote: > From: Durgadoss R > > Currently, HDMI hotplug with eDP as local panel is failing > because the HDMI hpd is detected as a long hpd for eDP; and is > thus rightfully ignored. But, it should really be handled as > an interrupt on port

[Intel-gfx] [PULL] drm-intel-next-fixes

2015-09-02 Thread Jani Nikula
Hi Dave - i915 display fixes headed for v4.3. Mostly SKL, but some regression fixes too. BR, Jani. The following changes since commit 26951caf55d73ceb1967b0bf12f6d0b96853508e: drm/i915/skl: enable DDI-E hotplug (2015-08-26 10:24:25 +0300) are available in the git repository at: git://ano

Re: [Intel-gfx] [PATCH 0/4 v5] i915 to call hda driver on HDMI plug/unplug

2015-09-02 Thread Daniel Vetter
On Fri, Aug 28, 2015 at 08:14:48PM +0300, Jani Nikula wrote: > On Fri, 28 Aug 2015, David Henningsson > wrote: > > Hopefully last version? :-) > > > > * Added commit text about duplicate events (patch 4/4) > > * Added locks in bind/unbind on i915 side (patch 2/4) > > * Fixed docbook comments i

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Add audio pin sense / ELD callback

2015-09-02 Thread Daniel Vetter
On Fri, Aug 28, 2015 at 07:02:27PM +0200, David Henningsson wrote: > This callback will be called by the i915 driver to notify the hda > driver that its HDMI information needs to be refreshed, i e, > that audio output is now available (or unavailable) - usually as a > result of a monitor being plug

[Intel-gfx] [PATCH] uapi/drm/i915_drm.h: fix userspace compilation.

2015-09-02 Thread Artem Savkov
Patch "drm/i915: Use expcitly fixed type in compat32 structs" changed the type of param field in drm_i915_getparam from int to s32. This header is exported to userspace and needs to use userspace type __s32 instead. This fixes userspace compilation errors like the following: include/drm/i915_drm.h

[Intel-gfx] [PATCH] drm/i915: Fix cmdparser STORE/LOAD command descriptors

2015-09-02 Thread Chris Wilson
Fixes regression from commit f1afe24f0e736b9d7f2275e2b1504af3fe612f2a Author: Arun Siluvery Date: Tue Aug 4 16:22:20 2015 +0100 drm/i915: Change SRM, LRM instructions to use correct length which forgot to account for the length bias when declaring the fixed length. Bugzilla: https://bugs.

Re: [Intel-gfx] [PATCH] drm/i915: Update ring space correctly on lrc context reset

2015-09-02 Thread Arun Siluvery
On 20/08/2015 16:27, Chris Wilson wrote: On Thu, Aug 20, 2015 at 05:34:59PM +0300, Mika Kuoppala wrote: If we leave the last_retired_head to pre-reset value, we might end up in a situation where intel_ring_space() returns wrong value on next hardware init. http://patchwork.freedesktop.org/patc

Re: [Intel-gfx] Request Linux Graphic Driver for Intel GMA 3150

2015-09-02 Thread David Ho
Dear Rodrigo, Is it possible to obtain the "raw" driver and to install it manually, without installing it through the Installer? Regards, David -Original Message- From: Vivi, Rodrigo [mailto:rodrigo.v...@intel.com] Sent: 01 September 2015 23:04 To: intel-gfx@lists.freedesktop.org; jan

Re: [Intel-gfx] [RFC 1/3] drm/i915: Roll intel_crtc->atomic into intel_crtc_state

2015-09-02 Thread Ville Syrjälä
On Wed, Sep 02, 2015 at 01:08:31PM +0200, Maarten Lankhorst wrote: > Op 02-09-15 om 12:35 schreef Ville Syrjälä: > > On Wed, Sep 02, 2015 at 07:15:25AM +0200, Maarten Lankhorst wrote: > >> Op 01-09-15 om 17:48 schreef Ville Syrjälä: > >>> On Tue, Sep 01, 2015 at 08:30:05AM -0700, Matt Roper wrote:

Re: [Intel-gfx] [RFC 1/3] drm/i915: Roll intel_crtc->atomic into intel_crtc_state

2015-09-02 Thread Maarten Lankhorst
Op 02-09-15 om 12:35 schreef Ville Syrjälä: > On Wed, Sep 02, 2015 at 07:15:25AM +0200, Maarten Lankhorst wrote: >> Op 01-09-15 om 17:48 schreef Ville Syrjälä: >>> On Tue, Sep 01, 2015 at 08:30:05AM -0700, Matt Roper wrote: On Tue, Sep 01, 2015 at 07:24:19AM +0200, Maarten Lankhorst wrote: >>>

Re: [Intel-gfx] [RFC 1/3] drm/i915: Roll intel_crtc->atomic into intel_crtc_state

2015-09-02 Thread Ville Syrjälä
On Wed, Sep 02, 2015 at 07:15:25AM +0200, Maarten Lankhorst wrote: > Op 01-09-15 om 17:48 schreef Ville Syrjälä: > > On Tue, Sep 01, 2015 at 08:30:05AM -0700, Matt Roper wrote: > >> On Tue, Sep 01, 2015 at 07:24:19AM +0200, Maarten Lankhorst wrote: > >>> Op 29-08-15 om 01:57 schreef Matt Roper: > >

Re: [Intel-gfx] [PATCH] drm/i915: Detect virtual south bridge

2015-09-02 Thread Daniel Vetter
On Fri, Aug 28, 2015 at 01:10:22PM +0100, robert.beck...@intel.com wrote: > From: Robert Beckett > > Virtualized systems often use a virtual P2X4 south bridge. > Detect this in intel_detect_pch and make a best guess as to which PCH > we should be using. > > This was seen on vmware esxi hyperviso

Re: [Intel-gfx] [PATCH v2 6/6] drm/i915: Allow Broadwell guest with Intel GVT-g

2015-09-02 Thread Daniel Vetter
On Fri, Aug 28, 2015 at 03:41:19PM +0800, Zhiyuan Lv wrote: > I915 Broadwell guest driver is now supported to run inside a VM with > Intel GVT-g > > v2: > - Introduce HAS_VGPU macro (Zhenyu Wang) > > Signed-off-by: Zhiyuan Lv > Signed-off-by: Zhi Wang > Reviewed-by: Joonas Lahtinen I'll hold

Re: [Intel-gfx] [PATCH v2 2/6] drm/i915: Enable full ppgtt for vgpu on Broadwell

2015-09-02 Thread Daniel Vetter
On Mon, Aug 31, 2015 at 03:55:58PM +0300, Joonas Lahtinen wrote: > On pe, 2015-08-28 at 15:41 +0800, Zhiyuan Lv wrote: > > The full ppgtt is supported now in Intel GVT-g device model. > > Broadwell > > is allowed to use it in virtual machines. > > > > v2: > > - Keep backward compatibility on HSW w

Re: [Intel-gfx] [PATCH igt] dma-buf mmap

2015-09-02 Thread Daniel Vetter
On Thu, Aug 27, 2015 at 07:48:49PM -0300, Tiago Vignatti wrote: > Hi, > > Here's the igt side of the work I sent yesterday to dri-devel: > > http://lists.freedesktop.org/archives/dri-devel/2015-August/089263.html > > I've addressed all the commentaries made in the previous igt patchset and I > b

Re: [Intel-gfx] About the iGVT-g's requirement to pin guest contexts in VM

2015-09-02 Thread Daniel Vetter
On Wed, Sep 02, 2015 at 05:20:34PM +0800, Zhiyuan Lv wrote: > Hi Daniel, > > Thanks for the comments! And my reply in line: > > On Wed, Sep 02, 2015 at 10:19:03AM +0200, Daniel Vetter wrote: > > > > > > > > Also you obviously have to complete the copying from shadow->guest ctx > > > > before you

Re: [Intel-gfx] [PATCH 4/4] ALSA: hda - Wake the codec up on pin/ELD notify events

2015-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2015 10:32:34 +0200, Daniel Vetter wrote: > > On Wed, Sep 02, 2015 at 10:03:55AM +0200, Takashi Iwai wrote: > > On Wed, 02 Sep 2015 10:00:44 +0200, > > Daniel Vetter wrote: > > > > > > On Fri, Aug 28, 2015 at 04:10:36PM +0300, Jani Nikula wrote: > > > > On Thu, 20 Aug 2015, Takashi

Re: [Intel-gfx] About the iGVT-g's requirement to pin guest contexts in VM

2015-09-02 Thread Zhiyuan Lv
Hi Daniel, Thanks for the comments! And my reply in line: On Wed, Sep 02, 2015 at 10:19:03AM +0200, Daniel Vetter wrote: > > > > > > Also you obviously have to complete the copying from shadow->guest ctx > > > before you send the irq to the guest to signal ctx completion. Which means > > > there

Re: [Intel-gfx] [PATCH 4/5] Documentation: drm: Convert KMS Properties HTML table to CALS

2015-09-02 Thread Graham Whaley
On Tue, 2015-09-01 at 14:56 -0300, Danilo Cesar Lemes de Paula wrote: > On 08/25/2015 01:10 PM, Graham Whaley wrote: > > On Tue, 2015-08-25 at 16:29 +0200, Daniel Vetter wrote: > > > On Tue, Aug 25, 2015 at 10:26:44AM +0100, Graham Whaley wrote: > > > > The KMS Properties table is in HTML format, w

Re: [Intel-gfx] [PATCH] drm/atomic: Make sure lock is held in trylock contexts.

2015-09-02 Thread Daniel Vetter
On Thu, Aug 27, 2015 at 01:58:09PM +0200, Maarten Lankhorst wrote: > This will make sure we get a lockdep spat in all cases > even if the context is a complete garbage pointer. > > Signed-off-by: Maarten Lankhorst Applied to drm-misc, thanks. -Daniel > --- > diff --git a/drivers/gpu/drm/drm_mod

Re: [Intel-gfx] [PATCH 2/3] drm/i915: add yesno utility function

2015-09-02 Thread Daniel Vetter
On Mon, Aug 31, 2015 at 03:33:13PM +0100, Chris Wilson wrote: > On Mon, Aug 31, 2015 at 05:23:27PM +0300, Jani Nikula wrote: > > On Thu, 27 Aug 2015, Jani Nikula wrote: > > > On Thu, 27 Aug 2015, Chris Wilson wrote: > > >> On Thu, Aug 27, 2015 at 04:23:30PM +0300, Jani Nikula wrote: > > >>> Add a

Re: [Intel-gfx] [RFC PATCH] drm/i915: Use universal planes for cursor on skylake.

2015-09-02 Thread Daniel Vetter
On Thu, Aug 27, 2015 at 12:08:30PM +0200, Maarten Lankhorst wrote: > This appears to make all the cursor tests really slow because of the many > calls to skl_update_wm > when the cursor plane visibility is changed. It performs does 3 vblanks each > time it's called, and > it's probably called mor

Re: [Intel-gfx] [PATCH 4/4] drm/i915: force full detect on sink count change

2015-09-02 Thread Daniel Vetter
On Thu, Aug 27, 2015 at 02:18:32PM +0530, Sivakumar Thulasimani wrote: > From: "Thulasimani,Sivakumar" > > This patch checks for changes in sink count between short pulse > hpds and forces full detect when there is a change. > > This will allow both detection of hotplug and unplug of panels > th

Re: [Intel-gfx] [PATCH 1/4] drm/i915: read dpcd 0 - 12 & link_status always

2015-09-02 Thread Daniel Vetter
On Tue, Sep 01, 2015 at 01:16:49PM +0300, Jani Nikula wrote: > On Thu, 27 Aug 2015, Sivakumar Thulasimani > wrote: > > From: "Thulasimani,Sivakumar" > > > > Compliance requires the driver to read dpcd register 0 to 12 and > > registers 0x200 to 0x205 to be read always. > > Current code performs

  1   2   >