Skip to content

Commit 7d5e2dc

Browse files
beckwensysopenci
authored andcommitted
Support BMG device
Add BMG device 0xE20B, 0xE20C, 0xE210, 0xE211 Tracked-On: OAM-131719 Signed-off-by: Kui Wen <kui.wen@intel.com>
1 parent b49d508 commit 7d5e2dc

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

intel_device.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ int intel_gpu_info_from_device_id(uint16_t device_id, struct intel_gpu_info *i91
121121
const uint16_t rplp_ids[] = { 0xA720, 0xA721, 0xA7A0, 0xA7A1, 0xA7A8, 0xA7A9 };
122122

123123
const uint16_t mtl_ids[] = { 0x7D40, 0x7D60, 0x7D45, 0x7D55, 0x7DD5 };
124+
const uint16_t bmg_ids[] = { 0xE20B, 0xE20C, 0xE210, 0xE211 };
125+
124126

125127
unsigned i;
126128
/* Gen 4 */
@@ -224,6 +226,13 @@ int intel_gpu_info_from_device_id(uint16_t device_id, struct intel_gpu_info *i91
224226
i915->is_xelpd = false;
225227
return 0;
226228
}
229+
for (i = 0; i < ARRAY_SIZE(bmg_ids); i++)
230+
if (bmg_ids[i] == device_id) {
231+
i915->graphics_version = 20;
232+
i915->sub_version = 0;
233+
i915->is_xelpd = true;
234+
return 0;
235+
}
227236

228237
return -1;
229238
}
@@ -295,6 +304,8 @@ int get_gpu_type(int fd)
295304
} else {
296305
type = GPU_GRP_TYPE_INTEL_IGPU_IDX;
297306
}
307+
} else if (strcmp(version->name, "xe")) {
308+
type = GPU_GRP_TYPE_INTEL_DGPU_IDX;
298309
} else if (strcmp(version->name, "virtio_gpu") == 0) {
299310
if (!isVirtioGpuPciDevice(fd)) {
300311
type = GPU_GRP_TYPE_VIRTIO_GPU_IVSHMEM_IDX;

0 commit comments

Comments
 (0)