All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Tvrtko Ursulin <tursulin@ursulin.net>, Intel-gfx@lists.freedesktop.org
Cc: Jani Nikula <jani.nikula@intel.com>
Subject: Re: [RFC v3] drm/i915: Eliminate devid sprinkle
Date: Thu, 22 Feb 2018 10:59:39 +0000	[thread overview]
Message-ID: <151929717999.11316.5544066878564804022@mail.alporthouse.com> (raw)
In-Reply-To: <20180222101504.4374-1-tvrtko.ursulin@linux.intel.com>

Quoting Tvrtko Ursulin (2018-02-22 10:15:04)
> +void intel_device_info_subplatform_init(struct intel_device_info *info)
> +{
> +       struct drm_i915_private *i915 =
> +               container_of(info, struct drm_i915_private, info);
> +       u16 devid = INTEL_DEVID(i915);
> +
> +       if (IS_PINEVIEW(i915)) {
> +               if (devid == 0xa001)
> +                       info->subplatform_mask = INTEL_SUBPLATFORM_PINEVIEW_G;
> +               else if (devid == 0xa011)
> +                       info->subplatform_mask = INTEL_SUBPLATFORM_PINEVIEW_M;
> +       } else if (IS_HASWELL(i915)) {
> +               if ((devid & 0xFF00) == 0x0A00)
> +                       info->subplatform_mask = INTEL_SUBPLATFORM_ULT;
> +               /* ULX machines are also considered ULT. */
> +               if (devid == 0x0A0E || devid == 0x0A1E)
> +                       info->subplatform_mask |= INTEL_SUBPLATFORM_ULX;

Ah. Needs BIT(ULT) | BIT(ULX).
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2018-02-22 10:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-22  8:09 [RFC] drm/i915: Eliminate devid sprinkle Tvrtko Ursulin
2018-02-22  8:16 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2018-02-22  8:24 ` [RFC] " Chris Wilson
2018-02-22 10:39   ` Tvrtko Ursulin
2018-02-22  8:30 ` ✗ Fi.CI.BAT: warning for " Patchwork
2018-02-22  8:35   ` Chris Wilson
2018-02-22  8:59     ` Tvrtko Ursulin
2018-02-22  9:05 ` [RFC v2] " Tvrtko Ursulin
2018-02-22 10:15   ` [RFC v3] " Tvrtko Ursulin
2018-02-22 10:27     ` Chris Wilson
2018-02-22 10:59     ` Chris Wilson [this message]
2018-02-26 14:00     ` Jani Nikula
2018-02-26 15:53       ` Chris Wilson
2018-02-26 16:08         ` Jani Nikula
2018-02-22  9:25 ` ✗ Fi.CI.BAT: warning for drm/i915: Eliminate devid sprinkle (rev2) Patchwork
2018-02-22 10:47 ` ✗ Fi.CI.BAT: warning for drm/i915: Eliminate devid sprinkle (rev3) Patchwork

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=151929717999.11316.5544066878564804022@mail.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=Intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=tursulin@ursulin.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.