Skip to content

Commit 1d28de1

Browse files
TianhaolSherry-Lin
authored andcommitted
[Encode] Add some missing device IDs.
Fixes: #507
1 parent e61f5c5 commit 1d28de1

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

media_driver/linux/common/os/i915/include/intel_chipset.h

+25-1
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,27 @@
220220

221221
#define PCI_CHIP_COFFEELAKE_S_GT1_1 0x3E90
222222
#define PCI_CHIP_COFFEELAKE_S_GT1_2 0x3E93
223+
#define PCI_CHIP_COFFEELAKE_S_GT1_3 0x3E99
223224
#define PCI_CHIP_COFFEELAKE_S_GT2_1 0x3E91
224225
#define PCI_CHIP_COFFEELAKE_S_GT2_2 0x3E92
225226
#define PCI_CHIP_COFFEELAKE_S_GT2_3 0x3E96
227+
#define PCI_CHIP_COFFEELAKE_S_GT2_4 0x3E98
228+
#define PCI_CHIP_COFFEELAKE_S_GT2_5 0x3E9A
229+
#define PCI_CHIP_COFFEELAKE_H_GT1_1 0x3E9C
226230
#define PCI_CHIP_COFFEELAKE_H_GT2_1 0x3E9B
227231
#define PCI_CHIP_COFFEELAKE_H_GT2_2 0x3E94
232+
#define PCI_CHIP_COFFEELAKE_U_GT2_1 0x3EA9
228233
#define PCI_CHIP_COFFEELAKE_U_GT3_1 0x3EA5
229234
#define PCI_CHIP_COFFEELAKE_U_GT3_2 0x3EA6
230235
#define PCI_CHIP_COFFEELAKE_U_GT3_3 0x3EA7
231236
#define PCI_CHIP_COFFEELAKE_U_GT3_4 0x3EA8
232237

238+
#define PCI_CHIP_WHISKYLAKE_U_GT2_1 0x3EA0
239+
#define PCI_CHIP_WHISKYLAKE_U_GT1_1 0x3EA1
240+
#define PCI_CHIP_WHISKYLAKE_U_GT3_1 0x3EA2
241+
#define PCI_CHIP_WHISKYLAKE_U_GT2_2 0x3EA3
242+
#define PCI_CHIP_WHISKYLAKE_U_GT1_2 0x3EA4
243+
233244
#define PCI_CHIP_CANNONLAKE_U_GT2_0 0x5A52
234245
#define PCI_CHIP_CANNONLAKE_U_GT2_1 0x5A5A
235246
#define PCI_CHIP_CANNONLAKE_U_GT2_2 0x5A42
@@ -471,20 +482,33 @@
471482

472483
#define IS_COFFEELAKE(devid) ((devid) == PCI_CHIP_COFFEELAKE_S_GT1_1 || \
473484
(devid) == PCI_CHIP_COFFEELAKE_S_GT1_2 || \
485+
(devid) == PCI_CHIP_COFFEELAKE_S_GT1_3 || \
474486
(devid) == PCI_CHIP_COFFEELAKE_S_GT2_1 || \
475487
(devid) == PCI_CHIP_COFFEELAKE_S_GT2_2 || \
476488
(devid) == PCI_CHIP_COFFEELAKE_S_GT2_3 || \
489+
(devid) == PCI_CHIP_COFFEELAKE_S_GT2_4 || \
490+
(devid) == PCI_CHIP_COFFEELAKE_S_GT2_5 || \
491+
(devid) == PCI_CHIP_COFFEELAKE_H_GT1_1 || \
477492
(devid) == PCI_CHIP_COFFEELAKE_H_GT2_1 || \
478493
(devid) == PCI_CHIP_COFFEELAKE_H_GT2_2 || \
494+
(devid) == PCI_CHIP_COFFEELAKE_U_GT2_1 || \
479495
(devid) == PCI_CHIP_COFFEELAKE_U_GT3_1 || \
480496
(devid) == PCI_CHIP_COFFEELAKE_U_GT3_2 || \
481497
(devid) == PCI_CHIP_COFFEELAKE_U_GT3_3 || \
482498
(devid) == PCI_CHIP_COFFEELAKE_U_GT3_4)
483499

500+
#define IS_WHISKYLAKE(devid) ((devid) == PCI_CHIP_WHISKYLAKE_U_GT1_1 || \
501+
(devid) == PCI_CHIP_WHISKYLAKE_U_GT1_2 || \
502+
(devid) == PCI_CHIP_WHISKYLAKE_U_GT2_1 || \
503+
(devid) == PCI_CHIP_WHISKYLAKE_U_GT2_2 || \
504+
(devid) == PCI_CHIP_WHISKYLAKE_U_GT3_1
505+
506+
484507
#define IS_GEN9(devid) (IS_SKYLAKE(devid) || \
485508
IS_BROXTON(devid) || \
486509
IS_KABYLAKE(devid) || \
487-
IS_COFFEELAKE(devid))
510+
IS_COFFEELAKE(devid) || \
511+
IS_WHISKYLAKE(devid))
488512

489513
#define IS_CNL_Y(devid) ((devid) == PCI_CHIP_CANNONLAKE_Y_GT2_0 || \
490514
(devid) == PCI_CHIP_CANNONLAKE_Y_GT2_1 || \

media_driver/linux/gen9/ddi/media_sysinfo_g9.cpp

+16-1
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,9 @@ static bool kblDevice592a = DeviceInfoFactory<GfxDeviceInfo>::
801801
static bool cflDevice3e93 = DeviceInfoFactory<GfxDeviceInfo>::
802802
RegisterDevice(0x3e93, &cflGt1Info);
803803

804+
static bool cflDevice3e99 = DeviceInfoFactory<GfxDeviceInfo>::
805+
RegisterDevice(0x3e99, &cflGt1Info);
806+
804807
static bool cflDevice3e90 = DeviceInfoFactory<GfxDeviceInfo>::
805808
RegisterDevice(0x3e90, &cflGt1Info);
806809

@@ -811,14 +814,23 @@ static bool cflDevice3e94 = DeviceInfoFactory<GfxDeviceInfo>::
811814
RegisterDevice(0x3e94, &cflGt2Info);
812815

813816
static bool cflDevice3e91 = DeviceInfoFactory<GfxDeviceInfo>::
814-
RegisterDevice(0x3e91, &cflGt1Info);
817+
RegisterDevice(0x3e91, &cflGt2Info);
815818

816819
static bool cflDevice3e96 = DeviceInfoFactory<GfxDeviceInfo>::
817820
RegisterDevice(0x3e96, &cflGt2Info);
818821

822+
static bool cflDevice3e98 = DeviceInfoFactory<GfxDeviceInfo>::
823+
RegisterDevice(0x3e98, &cflGt2Info);
824+
825+
static bool cflDevice3e9a = DeviceInfoFactory<GfxDeviceInfo>::
826+
RegisterDevice(0x3e9a, &cflGt2Info);
827+
819828
static bool cflDevice3e9b = DeviceInfoFactory<GfxDeviceInfo>::
820829
RegisterDevice(0x3e9b, &cflGt2Info);
821830

831+
static bool cflDevice3e9c = DeviceInfoFactory<GfxDeviceInfo>::
832+
RegisterDevice(0x3e9c, &cflGt1Info);
833+
822834
static bool cflDevice3ea5 = DeviceInfoFactory<GfxDeviceInfo>::
823835
RegisterDevice(0x3ea5, &cflGt3eInfo);
824836

@@ -831,6 +843,9 @@ static bool cflDevice3ea7 = DeviceInfoFactory<GfxDeviceInfo>::
831843
static bool cflDevice3ea8 = DeviceInfoFactory<GfxDeviceInfo>::
832844
RegisterDevice(0x3ea8, &cflGt3eInfo);
833845

846+
static bool cflDevice3ea9 = DeviceInfoFactory<GfxDeviceInfo>::
847+
RegisterDevice(0x3ea9, &cflGt2Info);
848+
834849
static bool cflDevice3ea1 = DeviceInfoFactory<GfxDeviceInfo>::
835850
RegisterDevice(0x3ea1, &cflGt1Info);
836851

0 commit comments

Comments
 (0)