From: "Vivi, Rodrigo" <rodrigo.vivi@intel.com>
To: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>,
"daniel@ffwll.ch" <daniel@ffwll.ch>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: Separate cherryview from valleyview
Date: Fri, 4 Dec 2015 17:14:19 +0000 [thread overview]
Message-ID: <1449249279.1387.230.camel@intel.com> (raw)
In-Reply-To: <20151204170419.GA4437@intel.com>
On Fri, 2015-12-04 at 19:04 +0200, Ville Syrjälä wrote:
> On Fri, Dec 04, 2015 at 05:51:56PM +0100, Daniel Vetter wrote:
> > On Fri, Dec 04, 2015 at 04:15:27PM +0000, Vivi, Rodrigo wrote:
> > > On Fri, 2015-12-04 at 16:05 +0100, Daniel Vetter wrote:
> > > > On Wed, Dec 02, 2015 at 02:30:28PM +0200, Jani Nikula wrote:
> > > > > On Wed, 02 Dec 2015, Ville Syrjälä <
> > > > > ville.syrjala@linux.intel.com>
> > > > > wrote:
> > > > > > On Tue, Dec 01, 2015 at 05:11:40PM -0800, Wayne Boyer
> > > > > > wrote:
> > > > > > > The cherryview device shares many characteristics with
> > > > > > > the
> > > > > > > valleyview
> > > > > > > device. When support was added to the driver for
> > > > > > > cherryview,
> > > > > > > the
> > > > > > > corresponding device info structure included
> > > > > > > .is_valleyview =
> > > > > > > 1.
> > > > > > > This is not correct and leads to some confusion.
> > > > > > >
> > > > > > > This patch changes .is_valleyview to .is_cherryview in
> > > > > > > the
> > > > > > > cherryview
> > > > > > > device info structure and defines the
> > > > > > > HAS_GEN7_LP_FEATURES
> > > > > > > macro.
> > > > > > > Then where appropriate, instances of IS_VALLEYVIEW are
> > > > > > > replaced
> > > > > > > with
> > > > > > > HAS_GEN7_LP_FEATURES to test for either a valleyview or a
> > > > > > > cherryview
> > > > > > > device.
> > > > > >
> > > > > > I don't like the name of the macro. Most of the shared bits
> > > > > > are
> > > > > > display
> > > > > > related, so we could have something like HAS_VLV_DISPLAY.
> > > > > > For the
> > > > > > rest,
> > > > > > I think we could just test IS_VLV||IS_CHV explicitly.
> > > > > > Unless
> > > > > > someone
> > > > > > can come up with a better name that covers everything?
> > > > >
> > > > > Definitely NAK on HAS_GEN7_LP_FEATURES.
> > > > >
> > > > > HAS_VLV_DISPLAY would be a subset of HAS_GMCH_DISPLAY, which
> > > > > I
> > > > > guess
> > > > > wouldn't be that bad... unless someone starts using that for
> > > > > a
> > > > > VLV||CHV
> > > > > shorthand in non-display code.
> > > > >
> > > > > I think I might just go for the verbose (IS_VALLEYVIEW ||
> > > > > IS_CHERRYVIEW)
> > > > > all around. Especially since we've been brainwashed with the
> > > > > old
> > > > > vlv is
> > > > > both vlv and chv code.
> > > >
> > > > HAS_GMCH_DISPLAY is what I've generally used, since usually you
> > > > have
> > > > a
> > > > INTEL_INFO()->gen >= 5 test already somewhere. If we want to
> > > > make
> > > > this
> > > > more explicit the proper name for vlv is BAYTRAIL, and for
> > > > truely byt
> > > > specific stuff we've named things byt_. So what about Defining
> > > > an
> > > > IS_BAYTRAIL instead for the cases where it's not vlv || chv.
> > >
> > > Baytrail is the platform name with the Valleyview graphics. Than
> > > we
> > > would have Cherry Trail and/or Braswell for Cherryview graphics
> > > and
> > > Apollo Lake for Broxton. So I would vote to stay with Valleyview,
> > > Cherryview and Broxton only.
> > >
> > > >
> > > > And what's the benefit of all this churn?
> > >
> > > Organize and prepare the code for future platforms.
> > > Avoid more confusion like we had on IS_SKYLAKE x IS_KABYLAKE.
> > > Make things more easy and clear if we decide to add .is_atom_lp
> > > on
> > > these platforms definition.
> >
> > .is_atom_lp is imo the more sensible change to do, since it
> > includes bxt.
>
> BXT vs. VLV/CHV have practically nothing in common in the driver,
> so I wouldn't go there.
this was exactly the point where HAS_GEN7_LP_FEATURES appeared, than
for BXT+ would be HAS_GEN9_LP_FEATURES
otherwises with .is_atom_lp for gen7 it would be ((gen == 7 || gen ==8)
&& .is_atom_lp);
and for gen 9: (gen ==9 && .is_atom_lp)
IS_GEN9_LP seems a good name, but IS_GEN7_LP doesn't so it was related
to the FEATURES macros at platform definition...
But yeah, maybe better just stay with full version (is_vlv || is_chv)
for that and if makes sense for future platforms we add the .is_atom_lp
later...
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-12-04 17:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-02 1:11 [PATCH] drm/i915: Separate cherryview from valleyview Wayne Boyer
2015-12-02 9:02 ` Ville Syrjälä
2015-12-02 12:30 ` Jani Nikula
2015-12-04 15:05 ` Daniel Vetter
2015-12-04 15:18 ` Ville Syrjälä
2015-12-04 16:15 ` Vivi, Rodrigo
2015-12-04 16:51 ` Daniel Vetter
2015-12-04 17:04 ` Ville Syrjälä
2015-12-04 17:14 ` Vivi, Rodrigo [this message]
2015-12-04 17:24 ` Ville Syrjälä
2015-12-05 19:52 ` Boyer, Wayne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1449249279.1387.230.camel@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox