From: Jesse Barnes Subject: Re: [PATCH 1/9] drm/i915: Move num_pipes to intel info Date: Tue, 19 Mar 2013 12:25:23 -0700 Message-ID: <20130319122523.7506c6a5@jbarnes-desktop> References: <1363198868-21787-1-git-send-email-ben@bwidawsk.net> <1363198868-21787-2-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy9.bluehost.com (oproxy9.bluehost.com [69.89.24.6]) by gabe.freedesktop.org (Postfix) with SMTP id ED39DE65FD for ; Tue, 19 Mar 2013 12:25:21 -0700 (PDT) In-Reply-To: <1363198868-21787-2-git-send-email-ben@bwidawsk.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Ben Widawsky Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, "Mcallister, Jeffrey" List-Id: intel-gfx@lists.freedesktop.org On Wed, 13 Mar 2013 11:21:00 -0700 Ben Widawsky wrote: > Requested by Daniel. > static const struct intel_device_info intel_i85x_info = { > - .gen = 2, .is_i85x = 1, .is_mobile = 1, > + .gen = 2, .is_i85x = 1, .is_mobile = 1, .num_pipes = 1, > .cursor_needs_physical = 1, > .has_overlay = 1, .overlay_needs_physical = 1, > }; Most of these are wrong. All mobile devices have 2 pipes. All gen3+ devices have 2 or 3 pipes. Check the original code: - if (IS_IVYBRIDGE(dev) || IS_HASWELL(dev)) - dev_priv->num_pipe = 3; - else if (IS_MOBILE(dev) || !IS_GEN2(dev)) - dev_priv->num_pipe = 2; - else - dev_priv->num_pipe = 1; > static const struct intel_device_info intel_valleyview_d_info = { > - .gen = 7, > + .gen = 7, .num_pipes = 3, > .need_gfx_hws = 1, .has_hotplug = 1, > .has_fbc = 0, > .has_bsd_ring = 1, > @@ -290,7 +290,7 @@ static const struct intel_device_info intel_valleyview_d_info = { > }; VLV only has 2 pipes on all variants. Looks good otherwise. With the pipe count fixes: Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center