From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 40/50] drm/i915/bdw: Handle context switch events Date: Thu, 12 Jun 2014 08:53:32 +0200 Message-ID: <20140612065332.GO5821@phenom.ffwll.local> References: <1399637360-4277-1-git-send-email-oscar.mateo@intel.com> <1399637360-4277-41-git-send-email-oscar.mateo@intel.com> <20140611115214.GK5821@phenom.ffwll.local> <92648605EABDA246B775AAB04C95A7A3013168FA@IRSMSX103.ger.corp.intel.com> <92648605EABDA246B775AAB04C95A7A301316C66@IRSMSX103.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by gabe.freedesktop.org (Postfix) with ESMTP id CBBD96E3BC for ; Wed, 11 Jun 2014 23:53:38 -0700 (PDT) Received: by mail-wg0-f48.google.com with SMTP id n12so755909wgh.7 for ; Wed, 11 Jun 2014 23:53:38 -0700 (PDT) Content-Disposition: inline In-Reply-To: <92648605EABDA246B775AAB04C95A7A301316C66@IRSMSX103.ger.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: "Mateo Lozano, Oscar" Cc: "Daniel, Thomas" , "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org On Wed, Jun 11, 2014 at 03:23:33PM +0000, Mateo Lozano, Oscar wrote: > > > > - Ack the interrupt inmediately, before trying to handle it (fix for > > > > missing interrupts by Bob Beckett ). > > > > > > This interrupt handling change is interesting since it might explain > > > our irq handling woes on gen5+ with the two-level GT interrupt handling > > scheme. > > > Can you please roll this out as a prep patch for all the existing gt > > > interrupt sources we handle already for gen5+? > > > > > > Thanks, Daniel > > > > Can do. > > One question, though: why only the GT interrupts? what about DE, PM, etc...? > > It looks like the BSpec is pretty clear on this: > > 1 - Disable Master Interrupt Control > 2 - Find the category of interrupt that is pending > 3 - Find the source(s) of the interrupt and ***clear the Interrupt Identity bits (IIR)*** > 4 - Process the interrupt(s) that had bits set in the IIRs > 5 - Re-enable Master Interrupt Control Yeah, makes sense to do it for all. When I've looked at it the funky part are the SDE interrupts where we (at least on pre-bdw) have this crazy hack. I guess at least that one we should leave in since apparently it works. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch