From: Damien Lespiau Subject: Re: [PATCH] drm/i915/bdw: MU_FLUSH_DW a qword instead of dword Date: Wed, 5 Mar 2014 23:13:26 +0000 Message-ID: <20140305231326.GA6992@strange.amr.corp.intel.com> References: <1393954736-1397-1-git-send-email-benjamin.widawsky@intel.com> <20140305092434.GA20735@nuc-i3427.alporthouse.com> <20140305183311.GX17001@phenom.ffwll.local> <20140305190515.GA21029@intel.com> <20140305223021.GA3559@nuc-i3427.alporthouse.com> <20140305223849.GA24362@bwidawsk.net> 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 C2FB0FA99F for ; Wed, 5 Mar 2014 15:13:33 -0800 (PST) Content-Disposition: inline In-Reply-To: <20140305223849.GA24362@bwidawsk.net> 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: Ben Widawsky Cc: Intel GFX , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Wed, Mar 05, 2014 at 02:38:50PM -0800, Ben Widawsky wrote: > It wasn't completely fortuitous, I did check. I was lucky you think my > check was satisfactory though. I agree it makes future code somewhat > risky so maybe some improvement is needed to safeguard. I also have/had > a patch to lengthen MI_STORE_DATA_INDEX. The decoder however does not > complain about that one, and the windows team did neither. So I didn't > want to change it for the sake of change. Note that the decoder warns here because the shorter length is not valid if you believe what's in the spec. It could actually work ok if the CS hardware respects the length field, don't go fetch the missing dword, and, as we're not using it, doesn't care too much (which seems to be the case as we correctly jump to the next instruction). But not quite sure how well defined this is. -- Damien