OSDN Git Service

drm/i915/tgl: Set subplatforms
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 7 Aug 2020 19:26:28 +0000 (12:26 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 17 Aug 2020 20:17:06 +0000 (16:17 -0400)
commit1d3cc7ab2b00f849c94bd7e5fcffc7899dc4039a
tree47c2ff40e3f310d4b4015416a5cdf22f33b432e9
parent05e31dd78e26d8c4d9d0dd68addead8d19c367c2
drm/i915/tgl: Set subplatforms

There is no way to differentiate TGL-U from TGL-Y by the PCI ids as
some ids are available in both SKUs.
So here using the root device id in the PCI bus that iGPU is in
to differentiate between U and Y.

BSpec: 44455
Reviewed-by: Swathi Dhanavanthri <swathi.dhanavanthri@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200807192629.64134-1-jose.souza@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_device_info.c