From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhao Yakui Subject: Re: [PATCH V4 3/6] drm/i915:Initialize the second BSD ring on BDW GT3 machine Date: Fri, 25 Apr 2014 09:13:44 +0800 Message-ID: <1398388424.2066.0.camel@genxdev-ykzhao.sh.intel.com> References: <1397702260-2309-1-git-send-email-yakui.zhao@intel.com> <1397702260-2309-4-git-send-email-yakui.zhao@intel.com> <20140424152146.GF26374@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 511BB6EDB5 for ; Thu, 24 Apr 2014 18:14:33 -0700 (PDT) In-Reply-To: <20140424152146.GF26374@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 Thu, 2014-04-24 at 09:21 -0600, Daniel Vetter wrote: > On Thu, Apr 17, 2014 at 10:37:37AM +0800, Zhao Yakui wrote: > > Based on the hardware spec, the BDW GT3 machine has two independent > > BSD ring that can be used to dispatch the video commands. > > So just initialize it. > > > > V3->V4: Follow Imre's comment to do some minor updates. For example: > > more comments are added to describe the semaphore between ring. > > > > Reviewed-by: Imre Deak > > Signed-off-by: Zhao Yakui > > --- > [snip] > > > +/** > > + * Initialize the second BSD ring for Broadwell GT3. > > + * It is noted that this only exists on Broadwell GT3. > > + */ > > +int intel_init_bsd2_ring_buffer(struct drm_device *dev) > > +{ > > + struct drm_i915_private *dev_priv = dev->dev_private; > > + struct intel_ring_buffer *ring = &dev_priv->ring[VCS2]; > > + > > + if ((INTEL_INFO(dev)->gen != 8) ) { > > Checkpatch complained about the space here, I've fixed it up quickly. > Running checkpatch before submitting patches is highly recommended so that > we all nicely follow the official linux kernel Coding Style. Thanks for the suggestion. I will pay attention to this next time. Thanks. Yakui > > Cheers, Daniel