From: Zhao Yakui Subject: Re: [PATCH 0/5] drm/i915: Add the support of dual BSD rings on BDW GT3 Date: Mon, 14 Apr 2014 09:05:25 +0800 Message-ID: <1397437525.2039.220.camel@genxdev-ykzhao.sh.intel.com> References: <1397008796-3595-1-git-send-email-yakui.zhao@intel.com> <20140409144558.GE9262@phenom.ffwll.local> <1397100526.2039.137.camel@genxdev-ykzhao.sh.intel.com> <20140410065825.GI9262@phenom.ffwll.local> <1397118514.2039.176.camel@genxdev-ykzhao.sh.intel.com> <20140410090451.GS9262@phenom.ffwll.local> <1397177788.2039.192.camel@genxdev-ykzhao.sh.intel.com> <20140411085751.GX9262@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 CD3046E643 for ; Sun, 13 Apr 2014 18:07:26 -0700 (PDT) In-Reply-To: <20140411085751.GX9262@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: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org On Fri, 2014-04-11 at 02:57 -0600, Daniel Vetter wrote: > On Fri, Apr 11, 2014 at 08:56:28AM +0800, Zhao Yakui wrote: > > On Thu, 2014-04-10 at 03:04 -0600, Daniel Vetter wrote: > > > On Thu, Apr 10, 2014 at 04:28:34PM +0800, Zhao Yakui wrote: > > > > BTW: Does it need to check all the flags defined in i915_drm.h or the > > > > exported flag returned by i915_get_parameter? > > > > > > I don't have i915_get_parameter anywhere in my sources, so no idea what > > > you mean ... > > > > Sorry that the function should be i915_getparam. It is called by the > > I915_GETPARAM ioctl to query the flag supported by the driver. > > Ah, now I understand. The idea is to test all fields of the structure > exhaustively (so also rsvd to make sure it's 0). Well except for the > buffer count field since we have tests for that already. > > For the reasons see my two blog posts on the topic: > > http://blog.ffwll.ch/2013/11/testing-requirements-for-drmi915.html > > http://blog.ffwll.ch/2013/11/botching-up-ioctls.html OK. It seems that the case needs to check more fields than the exported flag. I will take a look at your blog and understand how to write the test case. Thanks. Yakui > > Cheers, Daniel