From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 4/5] drm/i915:Add the VCS2 switch in Intel_ring_setup_status_page for Gen7 to remove the switch check warning Date: Wed, 9 Apr 2014 16:29:28 +0200 Message-ID: <20140409142928.GC9262@phenom.ffwll.local> References: <1397008796-3595-1-git-send-email-yakui.zhao@intel.com> <1397008796-3595-5-git-send-email-yakui.zhao@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 18B5B6EB73 for ; Wed, 9 Apr 2014 07:29:32 -0700 (PDT) Received: by mail-ee0-f51.google.com with SMTP id c13so1946767eek.24 for ; Wed, 09 Apr 2014 07:29:30 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1397008796-3595-5-git-send-email-yakui.zhao@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Zhao Yakui Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Apr 09, 2014 at 09:59:55AM +0800, Zhao Yakui wrote: > The Gen7 doesn't have the second BSD ring. But it will complain the switch check > warning message during compilation. So just add it to remove the > switch check warning. > > Signed-off-by: Zhao Yakui > --- > drivers/gpu/drm/i915/intel_ringbuffer.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c > index 11d0687..43e0227 100644 > --- a/drivers/gpu/drm/i915/intel_ringbuffer.c > +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c > @@ -984,6 +984,7 @@ void intel_ring_setup_status_page(struct intel_ring_buffer *ring) > case BCS: > mmio = BLT_HWS_PGA_GEN7; > break; > + case VCS2: Maybe add a /* doesn't actually exist but shuts up gcc */ comment? -Daniel > case VCS: > mmio = BSD_HWS_PGA_GEN7; > break; > -- > 1.7.10.1 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch