diff options
| -rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 | ||||
| -rw-r--r-- | drivers/gpu/drm/i915/i915_pci.c | 5 | ||||
| -rw-r--r-- | include/drm/i915_pciids.h | 18 |
3 files changed, 11 insertions, 14 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 88255f9c3cc4..8b5c1a839655 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
| @@ -2648,6 +2648,8 @@ intel_info(const struct drm_i915_private *dev_priv) | |||
| 2648 | (dev_priv)->info.gt == 2) | 2648 | (dev_priv)->info.gt == 2) |
| 2649 | #define IS_CFL_GT3(dev_priv) (IS_COFFEELAKE(dev_priv) && \ | 2649 | #define IS_CFL_GT3(dev_priv) (IS_COFFEELAKE(dev_priv) && \ |
| 2650 | (dev_priv)->info.gt == 3) | 2650 | (dev_priv)->info.gt == 3) |
| 2651 | #define IS_CNL_WITH_PORT_F(dev_priv) (IS_CANNONLAKE(dev_priv) && \ | ||
| 2652 | (INTEL_DEVID(dev_priv) & 0x0004) == 0x0004) | ||
| 2651 | 2653 | ||
| 2652 | #define IS_ALPHA_SUPPORT(intel_info) ((intel_info)->is_alpha_support) | 2654 | #define IS_ALPHA_SUPPORT(intel_info) ((intel_info)->is_alpha_support) |
| 2653 | 2655 | ||
diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c index 138228dd7782..4e7a10c89782 100644 --- a/drivers/gpu/drm/i915/i915_pci.c +++ b/drivers/gpu/drm/i915/i915_pci.c | |||
| @@ -571,7 +571,7 @@ static const struct intel_device_info intel_coffeelake_gt3_info = { | |||
| 571 | .ddb_size = 1024, \ | 571 | .ddb_size = 1024, \ |
| 572 | GLK_COLORS | 572 | GLK_COLORS |
| 573 | 573 | ||
| 574 | static const struct intel_device_info intel_cannonlake_gt2_info = { | 574 | static const struct intel_device_info intel_cannonlake_info = { |
| 575 | GEN10_FEATURES, | 575 | GEN10_FEATURES, |
| 576 | .is_alpha_support = 1, | 576 | .is_alpha_support = 1, |
| 577 | .platform = INTEL_CANNONLAKE, | 577 | .platform = INTEL_CANNONLAKE, |
| @@ -649,8 +649,7 @@ static const struct pci_device_id pciidlist[] = { | |||
| 649 | INTEL_CFL_U_GT1_IDS(&intel_coffeelake_gt1_info), | 649 | INTEL_CFL_U_GT1_IDS(&intel_coffeelake_gt1_info), |
| 650 | INTEL_CFL_U_GT2_IDS(&intel_coffeelake_gt2_info), | 650 | INTEL_CFL_U_GT2_IDS(&intel_coffeelake_gt2_info), |
| 651 | INTEL_CFL_U_GT3_IDS(&intel_coffeelake_gt3_info), | 651 | INTEL_CFL_U_GT3_IDS(&intel_coffeelake_gt3_info), |
| 652 | INTEL_CNL_U_GT2_IDS(&intel_cannonlake_gt2_info), | 652 | INTEL_CNL_IDS(&intel_cannonlake_info), |
| 653 | INTEL_CNL_Y_GT2_IDS(&intel_cannonlake_gt2_info), | ||
| 654 | {0, 0, 0} | 653 | {0, 0, 0} |
| 655 | }; | 654 | }; |
| 656 | MODULE_DEVICE_TABLE(pci, pciidlist); | 655 | MODULE_DEVICE_TABLE(pci, pciidlist); |
diff --git a/include/drm/i915_pciids.h b/include/drm/i915_pciids.h index 5db0458dd832..9e1fe6634424 100644 --- a/include/drm/i915_pciids.h +++ b/include/drm/i915_pciids.h | |||
| @@ -414,24 +414,20 @@ | |||
| 414 | INTEL_CFL_U_GT2_IDS(info), \ | 414 | INTEL_CFL_U_GT2_IDS(info), \ |
| 415 | INTEL_CFL_U_GT3_IDS(info) | 415 | INTEL_CFL_U_GT3_IDS(info) |
| 416 | 416 | ||
| 417 | /* CNL U 2+2 */ | 417 | /* CNL */ |
| 418 | #define INTEL_CNL_U_GT2_IDS(info) \ | 418 | #define INTEL_CNL_IDS(info) \ |
| 419 | INTEL_VGA_DEVICE(0x5A52, info), \ | 419 | INTEL_VGA_DEVICE(0x5A52, info), \ |
| 420 | INTEL_VGA_DEVICE(0x5A5A, info), \ | 420 | INTEL_VGA_DEVICE(0x5A5A, info), \ |
| 421 | INTEL_VGA_DEVICE(0x5A42, info), \ | 421 | INTEL_VGA_DEVICE(0x5A42, info), \ |
| 422 | INTEL_VGA_DEVICE(0x5A4A, info) | 422 | INTEL_VGA_DEVICE(0x5A4A, info), \ |
| 423 | |||
| 424 | /* CNL Y 2+2 */ | ||
| 425 | #define INTEL_CNL_Y_GT2_IDS(info) \ | ||
| 426 | INTEL_VGA_DEVICE(0x5A51, info), \ | 423 | INTEL_VGA_DEVICE(0x5A51, info), \ |
| 427 | INTEL_VGA_DEVICE(0x5A59, info), \ | 424 | INTEL_VGA_DEVICE(0x5A59, info), \ |
| 428 | INTEL_VGA_DEVICE(0x5A41, info), \ | 425 | INTEL_VGA_DEVICE(0x5A41, info), \ |
| 429 | INTEL_VGA_DEVICE(0x5A49, info), \ | 426 | INTEL_VGA_DEVICE(0x5A49, info), \ |
| 430 | INTEL_VGA_DEVICE(0x5A71, info), \ | 427 | INTEL_VGA_DEVICE(0x5A71, info), \ |
| 431 | INTEL_VGA_DEVICE(0x5A79, info) | 428 | INTEL_VGA_DEVICE(0x5A79, info), \ |
| 432 | 429 | INTEL_VGA_DEVICE(0x5A54, info), \ | |
| 433 | #define INTEL_CNL_IDS(info) \ | 430 | INTEL_VGA_DEVICE(0x5A5C, info), \ |
| 434 | INTEL_CNL_U_GT2_IDS(info), \ | 431 | INTEL_VGA_DEVICE(0x5A44, info) |
| 435 | INTEL_CNL_Y_GT2_IDS(info) | ||
| 436 | 432 | ||
| 437 | #endif /* _I915_PCIIDS_H */ | 433 | #endif /* _I915_PCIIDS_H */ |
