From: Damien Lespiau Subject: Re: [PATCH 41/49] drm/i915/bdw: LR context switch interrupts Date: Wed, 2 Apr 2014 13:56:53 +0100 Message-ID: <20140402125653.GB30534@strange.amr.corp.intel.com> References: <1395943218-7708-1-git-send-email-oscar.mateo@intel.com> <1395943218-7708-42-git-send-email-oscar.mateo@intel.com> <20140402114211.GA30534@strange.amr.corp.intel.com> <20140402114938.GS7225@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id DEBD06EAC9 for ; Wed, 2 Apr 2014 05:57:21 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140402114938.GS7225@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Daniel Vetter Cc: Thomas Daniel , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Apr 02, 2014 at 01:49:38PM +0200, Daniel Vetter wrote: > On Wed, Apr 02, 2014 at 12:42:11PM +0100, Damien Lespiau wrote: > > On Thu, Mar 27, 2014 at 06:00:10PM +0000, oscar.mateo@intel.com wrote: > > > @@ -543,6 +545,9 @@ static int init_ring_common_lrc(struct intel_engine *ring) > > > ringbuf->space = ringbuf->size; > > > ringbuf->last_retired_head = -1; > > > > > > + I915_WRITE_IMR(ring, ~(ring->irq_enable_mask | ring->irq_keep_mask)); > > > + I915_WRITE(RING_HWSTAM(ring->mmio_base), ~(ring->irq_enable_mask | ring->irq_keep_mask)); > > > + > > > return 0; > > > } > > > > > > > Two little things: > > > > - I don't see any place where we look at the interrupt reporting in > > the HWS page, so we could just initialize HWSTAM to 0xffffffff > > It's an old w/a to make interrupt signalling a little bit more coherent. > No idea whether we still need it since we don't really have a good > testcase for interrupts ... I guess we could give it a shot with a patch > and a big commit message citing all the history. Another detail, is that we're unmasking interrupts in HWSTAM that are not supposed to be unmasked because the HW doesn't support reporting them to the HWSP (eg. Context Switch Interrupt). -- Damien