i915: Add first set of DG2 PCI IDs
Subsystems (2)
PATCH 1/1 i915: Add first set of DG2 PCI IDs
The IDs added here are the subset reserved for 'motherboard down' designs of DG2. We have all the necessary support upstream to enable these now (although they'll continue to require force_probe until the usual requirements are met).
The remaining DG2 IDs for add-in cards will come in a future patch once some additional required functionality has fully landed.
Bspec: 44477
---
These IDs already exist in drm-tip via the topic/core-for-CI branch, so I've based this patch on drm-intel-next (where we intend to land it) instead of drm-tip.
drivers/gpu/drm/i915/i915_pci.c | 2 +- drivers/gpu/drm/i915/intel_device_info.c | 21 +++++++++++++++++++++ include/drm/i915_pciids.h | 22 ++++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_pci.c +1 -1
@@ -1056,7 +1056,6 @@ static const struct intel_device_info xehpsdv_info = {BIT (VECS0 ) |BIT (VECS1 ) | \ BIT(VCS0) | BIT(VCS2) -__maybe_unused static const struct intel_device_info dg2_info = {DG2_FEATURES ,XE_LPD_FEATURES ,
@@ -1152,6 +1151,7 @@ static const struct pci_device_id pciidlist[] = {INTEL_DG1_IDS (&dg1_info),INTEL_RPLS_IDS (&adl_s_info),INTEL_RPLP_IDS (&adl_p_info), +INTEL_DG2_IDS (&dg2_info), {0, 0, 0} };MODULE_DEVICE_TABLE (pci, pciidlist);
drivers/gpu/drm/i915/intel_device_info.c +21 -0
@@ -186,6 +186,18 @@ static const u16 subplatform_rpl_ids[] = { INTEL_RPLP_IDS(0), }; +static const u16 subplatform_g10_ids[] = { +INTEL_DG2_G10_IDS (0 ), +}; + +static const u16 subplatform_g11_ids[] = { +INTEL_DG2_G11_IDS (0 ), +}; + +static const u16 subplatform_g12_ids[] = { +INTEL_DG2_G12_IDS (0 ), +}; +static bool find_devid (u16 id,const u16 *p,unsigned int num) {for (; num; num--, p++) {
@@ -231,6 +243,15 @@ void intel_device_info_subplatform_init(struct drm_i915_private *i915) }else if (find_devid (devid, subplatform_rpl_ids,ARRAY_SIZE (subplatform_rpl_ids))) { mask =BIT (INTEL_SUBPLATFORM_RPL ); + }else if (find_devid (devid, subplatform_g10_ids, +ARRAY_SIZE (subplatform_g10_ids))) { + mask =BIT (INTEL_SUBPLATFORM_G10 ); + }else if (find_devid (devid, subplatform_g11_ids, +ARRAY_SIZE (subplatform_g11_ids))) { + mask =BIT (INTEL_SUBPLATFORM_G11 ); + }else if (find_devid (devid, subplatform_g12_ids, +ARRAY_SIZE (subplatform_g12_ids))) { + mask =BIT (INTEL_SUBPLATFORM_G12 ); }GEM_BUG_ON (mask & ~INTEL_SUBPLATFORM_MASK );
include/drm/i915_pciids.h +22 -0
@@ -692,4 +692,26 @@INTEL_VGA_DEVICE (0xA7A8 , info), \INTEL_VGA_DEVICE (0xA7A9 , info) +/* DG2 */ +#define INTEL_DG2_G10_IDS (info) \ + INTEL_VGA_DEVICE(0x5690, info), \ + INTEL_VGA_DEVICE(0x5691, info), \ + INTEL_VGA_DEVICE(0x5692, info) + +#define INTEL_DG2_G11_IDS (info) \ + INTEL_VGA_DEVICE(0x5693, info), \ + INTEL_VGA_DEVICE(0x5694, info), \ + INTEL_VGA_DEVICE(0x5695, info), \ + INTEL_VGA_DEVICE(0x56B0, info) + +#define INTEL_DG2_G12_IDS (info) \ + INTEL_VGA_DEVICE(0x5696, info), \ + INTEL_VGA_DEVICE(0x5697, info), \ + INTEL_VGA_DEVICE(0x56B2, info) + +#define INTEL_DG2_IDS (info) \ + INTEL_DG2_G10_IDS(info), \ + INTEL_DG2_G11_IDS(info), \ + INTEL_DG2_G12_IDS(info) +#endif /* _I915_PCIIDS_H */
Signature · 1 line
2.35.1
Looks like I somehow lost the "drm/" at the beginning of the subject line prefix...that wasn't intentional.
Matt
Quoted 121 lines · Matt Roper
The IDs added here are the subset reserved for 'motherboard down' designs of DG2. We have all the necessary support upstream to enable these now (although they'll continue to require
force_probeuntil the usual requirements are met).The remaining DG2 IDs for add-in cards will come in a future patch once some additional required functionality has fully landed.
Bspec: 44477
Cc Lucas De Marchi <[email protected]>Cc Daniel Vetter <[email protected]>Cc Dave Airlie <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Jani Nikula <[email protected]>Cc Tvrtko Ursulin <[email protected]>Signed-off-by Matt Roper <[email protected]>---
These IDs already exist in drm-tip via the topic/core-for-CI branch, so I've based this patch on drm-intel-next (where we intend to land it) instead of drm-tip.
drivers/gpu/drm/i915/i915_pci.c | 2 +- drivers/gpu/drm/i915/intel_device_info.c | 21 +++++++++++++++++++++ include/drm/i915_pciids.h | 22 ++++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/i915_pci.c +1
-1@@ -1056,7 +1056,6 @@ static const struct intel_device_info xehpsdv_info = {BIT (VECS0 ) |BIT (VECS1 ) | \ BIT(VCS0) | BIT(VCS2) -__maybe_unused static const struct intel_device_info dg2_info = {DG2_FEATURES ,XE_LPD_FEATURES ,@@ -1152,6 +1151,7 @@ static const struct pci_device_id pciidlist[] = {INTEL_DG1_IDS (&dg1_info),INTEL_RPLS_IDS (&adl_s_info),INTEL_RPLP_IDS (&adl_p_info), +INTEL_DG2_IDS (&dg2_info), {0, 0, 0} };MODULE_DEVICE_TABLE (pci, pciidlist);drivers/gpu/drm/i915/intel_device_info.c +21
-0@@ -186,6 +186,18 @@ static const u16 subplatform_rpl_ids[] = { INTEL_RPLP_IDS(0), }; +static const u16 subplatform_g10_ids[] = { +INTEL_DG2_G10_IDS (0 ), +}; + +static const u16 subplatform_g11_ids[] = { +INTEL_DG2_G11_IDS (0 ), +}; + +static const u16 subplatform_g12_ids[] = { +INTEL_DG2_G12_IDS (0 ), +}; +static bool find_devid (u16 id,const u16 *p,unsigned int num) {for (; num; num--, p++) {@@ -231,6 +243,15 @@ void intel_device_info_subplatform_init(struct drm_i915_private *i915) }else if (find_devid (devid, subplatform_rpl_ids,ARRAY_SIZE (subplatform_rpl_ids))) { mask =BIT (INTEL_SUBPLATFORM_RPL ); + }else if (find_devid (devid, subplatform_g10_ids, +ARRAY_SIZE (subplatform_g10_ids))) { + mask =BIT (INTEL_SUBPLATFORM_G10 ); + }else if (find_devid (devid, subplatform_g11_ids, +ARRAY_SIZE (subplatform_g11_ids))) { + mask =BIT (INTEL_SUBPLATFORM_G11 ); + }else if (find_devid (devid, subplatform_g12_ids, +ARRAY_SIZE (subplatform_g12_ids))) { + mask =BIT (INTEL_SUBPLATFORM_G12 ); }GEM_BUG_ON (mask & ~INTEL_SUBPLATFORM_MASK );include/drm/i915_pciids.h +22
-0@@ -692,4 +692,26 @@INTEL_VGA_DEVICE (0xA7A8 , info), \INTEL_VGA_DEVICE (0xA7A9 , info) +/* DG2 */ +#define INTEL_DG2_G10_IDS (info) \ + INTEL_VGA_DEVICE(0x5690, info), \ + INTEL_VGA_DEVICE(0x5691, info), \ + INTEL_VGA_DEVICE(0x5692, info) + +#define INTEL_DG2_G11_IDS (info) \ + INTEL_VGA_DEVICE(0x5693, info), \ + INTEL_VGA_DEVICE(0x5694, info), \ + INTEL_VGA_DEVICE(0x5695, info), \ + INTEL_VGA_DEVICE(0x56B0, info) + +#define INTEL_DG2_G12_IDS (info) \ + INTEL_VGA_DEVICE(0x5696, info), \ + INTEL_VGA_DEVICE(0x5697, info), \ + INTEL_VGA_DEVICE(0x56B2, info) + +#define INTEL_DG2_IDS (info) \ + INTEL_DG2_G10_IDS(info), \ + INTEL_DG2_G11_IDS(info), \ + INTEL_DG2_G12_IDS(info) +#endif /* _I915_PCIIDS_H */ Signature · 1 line
2.35.1
Signature · 5 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795
Quoted 4 lines · Matt Roper
The IDs added here are the subset reserved for 'motherboard down' designs of DG2. We have all the necessary support upstream to enable these now (although they'll continue to require
force_probeuntil the usual requirements are met).
Main requirement for keeping the PCI IDs out was the needed uapi changes. Did they all land already? If so can we mention that explicitly in the commit message?
Quoted 13 lines
The remaining DG2 IDs for add-in cards will come in a future patch once some additional required functionality has fully landed.
Bspec: 44477
Cc Lucas De Marchi <[email protected]>Cc Daniel Vetter <[email protected]>Cc Dave Airlie <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Jani Nikula <[email protected]>Cc Tvrtko Ursulin <[email protected]>Signed-off-by Matt Roper <[email protected]>
Quoted 5 lines
---
These IDs already exist in drm-tip via the topic/core-for-CI branch, so I've based this patch on drm-intel-next (where we intend to land it) instead of drm-tip.
but they are not the same. Maybe having 2 patches on drm-tip with a revert + this patch would be better, so this can also have a chance to go through CI.
Lucas De Marchi
Quoted 10 lines · Lucas De Marchi
Quoted 4 lines · Matt Roper
The IDs added here are the subset reserved for 'motherboard down' designs of DG2. We have all the necessary support upstream to enable these now (although they'll continue to require
force_probeuntil the usual requirements are met).Main requirement for keeping the PCI IDs out was the needed uapi changes. Did they all land already? If so can we mention that explicitly in the commit message?
The important uapi for general use of the platform (e.g., lmem-related) has landed. There will be other uapi for non-mandatory features (e.g., the compute engines that will be landing really soon here now that the final bits of IGT testing just landed).
Quoted 16 lines
Quoted 16 lines
The remaining DG2 IDs for add-in cards will come in a future patch once some additional required functionality has fully landed.
Bspec: 44477
Cc Lucas De Marchi <[email protected]>Cc Daniel Vetter <[email protected]>Cc Dave Airlie <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Jani Nikula <[email protected]>Cc Tvrtko Ursulin <[email protected]>Signed-off-by Matt Roper <[email protected]>---
Quoted 8 lines
Quoted 3 lines
These IDs already exist in drm-tip via the topic/core-for-CI branch, so I've based this patch on drm-intel-next (where we intend to land it) instead of drm-tip.
but they are not the same. Maybe having 2 patches on drm-tip with a revert + this patch would be better, so this can also have a chance to go through CI.
I think CI would still fail in that case because the actual platforms we have in the CI farm right now are add-in cards.
Matt
Quoted 2 lines
Lucas De Marchi
Signature · 5 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for i915: Add first set of DG2 PCI IDs
In reply to Matt Roper== Series Details ==
== Series Details ==
Series: i915: Add first set of DG2 PCI IDs
URL : https://patchwork.freedesktop.org/series/103003/
State : failure
== Summary ==
Error: patch https://patchwork.freedesktop.org/api/1.0/series/103003/revisions/1/mbox/ not applied
Applying: i915: Add first set of DG2 PCI IDs
Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/i915_pci.c
M drivers/gpu/drm/i915/intel_device_info.c
M include/drm/i915_pciids.h
Falling back to patching base and 3-way merge...
Auto-merging include/drm/i915_pciids.h
CONFLICT (content): Merge conflict in include/drm/i915_pciids.h
Auto-merging drivers/gpu/drm/i915/intel_device_info.c
CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/intel_device_info.c Auto-merging drivers/gpu/drm/i915/i915_pci.c
CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/i915_pci.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 i915: Add first set of DG2 PCI IDs
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".