From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH v3 2/2] drm/i915: Prevent MI_DISPLAY_FLIP straddling two cachelines on IVB Date: Tue, 11 Feb 2014 22:34:48 +0200 Message-ID: <20140211203448.GX3891@intel.com> References: <1392141126-27691-1-git-send-email-ville.syrjala@linux.intel.com> <1392141126-27691-3-git-send-email-ville.syrjala@linux.intel.com> <20140211201854.GF11275@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id BE8E0FAB05 for ; Tue, 11 Feb 2014 12:34:52 -0800 (PST) Content-Disposition: inline In-Reply-To: <20140211201854.GF11275@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Chris Wilson , intel-gfx@lists.freedesktop.org, Enrico Tagliavini , Bjoern C , Alexandru DAMIAN List-Id: intel-gfx@lists.freedesktop.org On Tue, Feb 11, 2014 at 08:19:13PM +0000, Chris Wilson wrote: > On Tue, Feb 11, 2014 at 07:52:06PM +0200, ville.syrjala@linux.intel.com w= rote: > > From: Ville Syrj=E4l=E4 > > = > > According to BSpec the entire MI_DISPLAY_FLIP packet must be contained > > in a single cacheline. Make sure that happens. > > = > > v2: Use intel_ring_begin_cacheline_safe() > > v3: Use intel_ring_cacheline_align() (Chris) > > = > > Cc: Bjoern C > > Cc: Alexandru DAMIAN > > Cc: Enrico Tagliavini > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3D74053 > > Signed-off-by: Ville Syrj=E4l=E4 > = > I would have used intel_ring_align_cacheline() as it seems more natural > for me to say... I had it as intel_ring_align_to_cacheline(), but then changed it when I saw Daniel's suggestion for the name. So you can blame Daniel for this ;) But I have no emotional attachment to the chosen name. So if you prefer we rename it, I'm fine with that. -- = Ville Syrj=E4l=E4 Intel OTC