drm/i915: Organize most GPU features by platform
Subsystems (4)
v4 cover drm/i915: Organize most GPU features by platform
- organize most GPU features so that they are easy to group by platforms. It seems some of the ground work was already done for Gen7 features.
- make most of these GPU features now a device_info flag also based on previous work done by others. The idea is here is to have a central place where to add new features, now it should also be possible to see what the supported features are for a given platform by dumping of the struct definitions. The list of the features that were converted to a device_info flag include: PSR, RUNTIME_PM, CORE_RING_FREQ, CSR, GUC, RESOURCE_STREAMER, RC6,
RC6p, DP_MST, GMBUS_IRQ, FW_BLC, HW_CONTEXTS, LOGICAL_RING_CONTEXTS, L3_DPF, HWS_NEEDS_PHYSICAL and GMCH_DISPLAY.
- Changes since v3
* Improve the commit message for GENX_FEATURES macro (GEN6,GEN5,GEN4,GEN3,and GEN2)
- drm/i915: Introduce GEN6_FEATURES for device info
- drm/i915: Introduce GEN5_FEATURES for device info
- drm/i915: Introduce GEN4_FEATURES for device info
- drm/i915: Introduce GEN3_FEATURES for device info
- drm/i915: Introduce GEN2_FEATURES for device info
* Split removal of runtime PM for SNB into a separate patch in case it needs to be reverted
- drm/i915: Remove runtime PM for SNB
* Fix the way HAS_LLC() was getting invoked
- Get rid of HAS_CORE_RING_FREQ
Carlos Santa (22):
drm/i915: Move HAS_PSR definition to platform struct definition drm/i915: Remove .is_mobile field from platform struct drm/i915: Introduce GEN6_FEATURES for device info drm/i915: Move HAS_RUNTIME_PM definition to platform drm/i915: Remove runtime PM for SNB
drm/i915: Get rid of HAS_CORE_RING_FREQ
drm/i915 Move HAS_CSR definition to platform definition drm/i915: Move HAS_RESOURCE_STREAMER definition to platform definition drm/i915: Move HAS_RC6 definition to platform definition drm/i915: Move HAS_RC6p definition to platform definition drm/i915: Move HAS_DP_MST definition to platform definition drm/i915: Introduce GEN5_FEATURES for device info drm/i915: Move HAS_GMBUS_IRQ definition to platform definition drm/i915: Introduce GEN4_FEATURES for device info drm/i915: Introduce GEN3_FEATURES for device info drm/i915: Introduce GEN2_FEATURES for device info drm/i915: Move HAS_HW_CONTEXTS definition to platform drm/i915: Move HAS_LOGICAL_RING_CONTEXTS definition to platform drm/i915: Move HAS_L3_DPF definition to platform definition drm/i915: Move HAS_GMCH_DISPLAY definition to platform drm/i915: Make HWS_NEEDS_PHYSICAL the exception
drm/i915: Move HAS_GUC definition to platform definition
arch/x86/kernel/early-quirks.c | 9 +- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 57 +++---- drivers/gpu/drm/i915/i915_gpu_error.c | 2 +- drivers/gpu/drm/i915/i915_pci.c | 285 +++++++++++++++++--------------- drivers/gpu/drm/i915/intel_ringbuffer.c | 20 +-- include/drm/i915_pciids.h | 38 ++--- 7 files changed, 209 insertions(+), 204 deletions(-)
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 1/22 drm/i915: Move HAS_PSR definition to platform struct definition
[patch series] Moving all GPU features to the platform struct definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definition
--- drivers/gpu/drm/i915/i915_drv.h | 5 ++--- drivers/gpu/drm/i915/i915_pci.c | 5 ++++- 2 files changed, 6 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -3
@@ -646,6 +646,7 @@ struct intel_csr { func(is_kabylake) sep \ func(is_preliminary) sep \ func(has_fbc) sep \ + func(has_psr) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2780,9 +2781,7 @@ struct drm_i915_cmd_table {#define HAS_DDI (dev) (INTEL_INFO(dev)->has_ddi)#define HAS_FPGA_DBG_UNCLAIMED (dev) (INTEL_INFO(dev)->has_fpga_dbg) -#define HAS_PSR (dev) (IS_HASWELL(dev) || IS_BROADWELL(dev) || \ - IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev) || \ - IS_SKYLAKE(dev) || IS_KABYLAKE(dev)) +#define HAS_PSR (dev) (INTEL_INFO(dev)->has_psr)#define HAS_RUNTIME_PM (dev) (IS_GEN6(dev) || IS_HASWELL(dev) || \ IS_BROADWELL(dev) || IS_VALLEYVIEW(dev) || \ IS_CHERRYVIEW(dev) || IS_SKYLAKE(dev) || \
drivers/gpu/drm/i915/i915_pci.c +4 -1
@@ -243,6 +243,7 @@ static const struct intel_device_info intel_ivybridge_q_info = {#define VLV_FEATURES \ .gen = 7, .num_pipes = 2, \ + .has_psr = 1, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .display_mmio_offset = VLV_DISPLAY_BASE, \
@@ -264,7 +265,8 @@ static const struct intel_device_info intel_valleyview_d_info = { GEN7_FEATURES, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \ .has_ddi = 1, \ - .has_fpga_dbg = 1 + .has_fpga_dbg = 1, \ + .has_psr = 1static const struct intel_device_info intel_haswell_d_info = {HSW_FEATURES ,
@@ -312,6 +314,7 @@ static const struct intel_device_info intel_cherryview_info = { .need_gfx_hws = 1, .has_hotplug = 1, .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, .is_cherryview = 1, + .has_psr = 1, .display_mmio_offset =VLV_DISPLAY_BASE ,GEN_CHV_PIPEOFFSETS , CURSOR_OFFSETS,
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 2/22 drm/i915: Remove .is_mobile field from platform struct
In reply to Carlos SantaAs recommended by Ville Syrjala removing .is_mobile field from the platform struct definition for vlv and hsw+ GPUs as there's no need to make the distinction in later hardware anymore. Keep it for older GPUs as it is still needed for ilk-ivb.
--- arch/x86/kernel/early-quirks.c | 9 +++------ drivers/gpu/drm/i915/i915_pci.c | 45 ++++++++--------------------------------- include/drm/i915_pciids.h | 38 +++++++++++++--------------------- 3 files changed, 25 insertions(+), 67 deletions(-)
arch/x86/kernel/early-quirks.c +3 -6
@@ -507,8 +507,7 @@ static const struct pci_device_id intel_early_ids[] __initconst = {INTEL_I915GM_IDS (&gen3_early_ops),INTEL_I945G_IDS (&gen3_early_ops),INTEL_I945GM_IDS (&gen3_early_ops), -INTEL_VLV_M_IDS (&gen6_early_ops), -INTEL_VLV_D_IDS (&gen6_early_ops), +INTEL_VLV_IDS (&gen6_early_ops),INTEL_PINEVIEW_IDS (&gen3_early_ops),INTEL_I965G_IDS (&gen3_early_ops), INTEL_G33_IDS(&gen3_early_ops),
@@ -521,10 +520,8 @@ static const struct pci_device_id intel_early_ids[] __initconst = {INTEL_SNB_M_IDS (&gen6_early_ops),INTEL_IVB_M_IDS (&gen6_early_ops),INTEL_IVB_D_IDS (&gen6_early_ops), -INTEL_HSW_D_IDS (&gen6_early_ops), -INTEL_HSW_M_IDS (&gen6_early_ops), -INTEL_BDW_M_IDS (&gen8_early_ops), -INTEL_BDW_D_IDS (&gen8_early_ops), +INTEL_HSW_IDS (&gen6_early_ops), +INTEL_BDW_IDS (&gen8_early_ops),INTEL_CHV_IDS (&chv_early_ops),INTEL_SKL_IDS (&gen9_early_ops), INTEL_BXT_IDS(&gen9_early_ops),
drivers/gpu/drm/i915/i915_pci.c +8 -37
82 lines not on this page · raw message
include/drm/i915_pciids.h +14 -24
@@ -134,7 +134,7 @@#define INTEL_IVB_Q_IDS (info) \ INTEL_QUANTA_VGA_DEVICE(info)/* Quanta transcode */ -#define INTEL_HSW_D_IDS (info) \ +#define INTEL_HSW_IDS (info) \ INTEL_VGA_DEVICE(0x0402, info),/* GT1 desktop */ \INTEL_VGA_DEVICE (0x0412 , info),/* GT2 desktop */ \ INTEL_VGA_DEVICE(0x0422, info), /* GT3 desktop */ \
@@ -179,9 +179,7 @@INTEL_VGA_DEVICE (0x0D2B , info),/* CRW GT3 reserved */ \INTEL_VGA_DEVICE (0x0D0E , info),/* CRW GT1 reserved */ \INTEL_VGA_DEVICE (0x0D1E , info),/* CRW GT2 reserved */ \ - INTEL_VGA_DEVICE(0x0D2E, info) /* CRW GT3 reserved */ \ - -#define INTEL_HSW_M_IDS (info) \ +INTEL_VGA_DEVICE (0x0D2E , info),/* CRW GT3 reserved */ \INTEL_VGA_DEVICE (0x0406 , info),/* GT1 mobile */ \INTEL_VGA_DEVICE (0x0416 , info),/* GT2 mobile */ \ INTEL_VGA_DEVICE(0x0426, info), /* GT2 mobile */ \
@@ -198,17 +196,15 @@INTEL_VGA_DEVICE (0x0D16 , info),/* CRW GT2 mobile */ \ INTEL_VGA_DEVICE(0x0D26, info) /* CRW GT3 mobile */ -#define INTEL_VLV_M_IDS (info) \ +#define INTEL_VLV_IDS (info) \ INTEL_VGA_DEVICE(0x0f30, info), \ INTEL_VGA_DEVICE(0x0f31, info), \ INTEL_VGA_DEVICE(0x0f32, info), \ INTEL_VGA_DEVICE(0x0f33, info), \ - INTEL_VGA_DEVICE(0x0157, info) - -#define INTEL_VLV_D_IDS (info) \ + INTEL_VGA_DEVICE(0x0157, info), \ INTEL_VGA_DEVICE(0x0155, info) -#define INTEL_BDW_GT12M_IDS (info) \ +#define INTEL_BDW_GT12_IDS (info) \ INTEL_VGA_DEVICE(0x1602, info),/* GT1 ULT */ \INTEL_VGA_DEVICE (0x1606 , info),/* GT1 ULT */ \ INTEL_VGA_DEVICE(0x160B, info), /* GT1 Iris */ \
@@ -216,21 +212,17 @@INTEL_VGA_DEVICE (0x1612 , info),/* GT2 Halo */ \INTEL_VGA_DEVICE (0x1616 , info),/* GT2 ULT */ \INTEL_VGA_DEVICE (0x161B , info),/* GT2 ULT */ \ - INTEL_VGA_DEVICE(0x161E, info) /* GT2 ULX */ - -#define INTEL_BDW_GT12D_IDS (info) \ +INTEL_VGA_DEVICE (0x161E , info),/* GT2 ULX */ \INTEL_VGA_DEVICE (0x160A , info),/* GT1 Server */ \INTEL_VGA_DEVICE (0x160D , info),/* GT1 Workstation */ \INTEL_VGA_DEVICE (0x161A , info),/* GT2 Server */ \ INTEL_VGA_DEVICE(0x161D, info) /* GT2 Workstation */ -#define INTEL_BDW_GT3M_IDS (info) \ +#define INTEL_BDW_GT3_IDS(info) \INTEL_VGA_DEVICE (0x1622 , info),/* ULT */ \INTEL_VGA_DEVICE (0x1626 , info),/* ULT */ \INTEL_VGA_DEVICE (0x162B , info),/* Iris */ \ - INTEL_VGA_DEVICE(0x162E, info) /* ULX */ - -#define INTEL_BDW_GT3D_IDS (info) \ +INTEL_VGA_DEVICE (0x162E , info),/* ULX */ \INTEL_VGA_DEVICE (0x162A , info),/* Server */ \INTEL_VGA_DEVICE (0x162D , info)/* Workstation */
@@ -244,14 +236,12 @@INTEL_VGA_DEVICE (0x163A , info),/* Server */ \ INTEL_VGA_DEVICE(0x163D, info) /* Workstation */ -#define INTEL_BDW_M_IDS (info) \ - INTEL_BDW_GT12M_IDS(info), \ - INTEL_BDW_GT3M_IDS(info), \ - INTEL_BDW_RSVDM_IDS(info) - -#define INTEL_BDW_D_IDS (info) \ - INTEL_BDW_GT12D_IDS(info), \ - INTEL_BDW_GT3D_IDS(info), \ +#define INTEL_BDW_IDS (info) \ + INTEL_BDW_GT12_IDS(info), \ + INTEL_BDW_GT3_IDS(info), \ + INTEL_BDW_RSVDM_IDS(info), \ + INTEL_BDW_GT12_IDS(info), \ + INTEL_BDW_GT3_IDS(info), \ INTEL_BDW_RSVDD_IDS(info)#define INTEL_CHV_IDS (info) \
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 3/22 drm/i915: Introduce GEN6_FEATURES for device info
In reply to Carlos SantaIntroducing a GEN6_FEAUTRES macro to simplify the struct definitions by platforms given that most of the features are common. Inspired by the GEN7_FEATURES macro done by Ben W. and others.
Use it for snb.
--- drivers/gpu/drm/i915/i915_pci.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/i915_pci.c +12 -14
@@ -195,24 +195,22 @@ static const struct intel_device_info intel_ironlake_m_info = { CURSOR_OFFSETS, }; +#define GEN6_FEATURES \ + .gen = 6, .num_pipes = 2, \ + .need_gfx_hws = 1, .has_hotplug = 1, \ + .has_fbc = 1, \ + .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ + .has_llc = 1, \ + GEN_DEFAULT_PIPEOFFSETS, \ + CURSOR_OFFSETS +static const struct intel_device_info intel_sandybridge_d_info = { - .gen =6 , .num_pipes =2 , - .need_gfx_hws =1 , .has_hotplug =1 , - .has_fbc =1 , - .ring_mask =RENDER_RING |BSD_RING |BLT_RING , - .has_llc =1 , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , +GEN6_FEATURES , };static const struct intel_device_info intel_sandybridge_m_info = { - .gen =6 , .is_mobile =1 , .num_pipes =2 , - .need_gfx_hws =1 , .has_hotplug =1 , - .has_fbc =1 , - .ring_mask =RENDER_RING |BSD_RING |BLT_RING , - .has_llc =1 , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , +GEN6_FEATURES , + .is_mobile =1 , };#define GEN7_FEATURES \
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 4/22 drm/i915: Move HAS_RUNTIME_PM definition to platform
In reply to Carlos SantaMoving all GPU features to the platform struct definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 6 ++---- drivers/gpu/drm/i915/i915_pci.c | 7 ++++++- 2 files changed, 8 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -4
@@ -647,6 +647,7 @@ struct intel_csr { func(is_preliminary) sep \ func(has_fbc) sep \ func(has_psr) sep \ + func(has_runtime_pm) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2782,10 +2783,7 @@ struct drm_i915_cmd_table {#define HAS_DDI (dev) (INTEL_INFO(dev)->has_ddi)#define HAS_FPGA_DBG_UNCLAIMED (dev) (INTEL_INFO(dev)->has_fpga_dbg)#define HAS_PSR (dev) (INTEL_INFO(dev)->has_psr) -#define HAS_RUNTIME_PM (dev) (IS_GEN6(dev) || IS_HASWELL(dev) || \ - IS_BROADWELL(dev) || IS_VALLEYVIEW(dev) || \ - IS_CHERRYVIEW(dev) || IS_SKYLAKE(dev) || \ - IS_KABYLAKE(dev) || IS_BROXTON(dev)) +#define HAS_RUNTIME_PM (dev) (INTEL_INFO(dev)->has_runtime_pm)#define HAS_RC6 (dev) (INTEL_INFO(dev)->gen >= 6)#define HAS_RC6p (dev) (IS_GEN6(dev) || IS_IVYBRIDGE(dev))
drivers/gpu/drm/i915/i915_pci.c +6 -1
@@ -199,6 +199,7 @@ static const struct intel_device_info intel_ironlake_m_info = { .gen = 6, .num_pipes = 2, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .has_fbc = 1, \ + .has_runtime_pm = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc =1 , \ GEN_DEFAULT_PIPEOFFSETS, \
@@ -242,6 +243,7 @@ static const struct intel_device_info intel_ivybridge_q_info = {#define VLV_FEATURES \ .gen = 7, .num_pipes = 2, \ .has_psr = 1, \ + .has_runtime_pm = 1, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .display_mmio_offset = VLV_DISPLAY_BASE, \
@@ -258,7 +260,8 @@ static const struct intel_device_info intel_valleyview_info = { .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \ .has_ddi = 1, \ .has_fpga_dbg = 1, \ - .has_psr = 1 + .has_psr = 1, \ + .has_runtime_pm = 1 static const struct intel_device_info intel_haswell_info = {HSW_FEATURES ,
@@ -288,6 +291,7 @@ static const struct intel_device_info intel_cherryview_info = { .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, .is_cherryview = 1, .has_psr = 1, + .has_runtime_pm = 1, .display_mmio_offset =VLV_DISPLAY_BASE ,GEN_CHV_PIPEOFFSETS , CURSOR_OFFSETS,
@@ -316,6 +320,7 @@ static const struct intel_device_info intel_broxton_info = { .has_ddi = 1, .has_fpga_dbg = 1, .has_fbc = 1, + .has_runtime_pm = 1, .has_pooled_eu =0 ,GEN_DEFAULT_PIPEOFFSETS , IVB_CURSOR_OFFSETS,
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v4 04/22] drm/i915: Move HAS_RUNTIME_PM definition to platform
Quoted 89 lines · Carlos Santa
Moving all GPU features to the platform struct definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitionsSigned-off-by Carlos Santa <[email protected]>Reviewed-by Rodrigo Vivi <[email protected]>--- drivers/gpu/drm/i915/i915_drv.h | 6 ++---- drivers/gpu/drm/i915/i915_pci.c | 7 ++++++- 2 files changed, 8 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/i915_drv.h +2
-4@@ -647,6 +647,7 @@ struct intel_csr { func(is_preliminary) sep \ func(has_fbc) sep \ func(has_psr) sep \ + func(has_runtime_pm) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \@@ -2782,10 +2783,7 @@ struct drm_i915_cmd_table {#define HAS_DDI (dev) (INTEL_INFO(dev)->has_ddi)#define HAS_FPGA_DBG_UNCLAIMED (dev) (INTEL_INFO(dev)->has_fpga_dbg)#define HAS_PSR (dev) (INTEL_INFO(dev)->has_psr) -#define HAS_RUNTIME_PM (dev) (IS_GEN6(dev) || IS_HASWELL(dev) || \ - IS_BROADWELL(dev) || IS_VALLEYVIEW(dev) || \ - IS_CHERRYVIEW(dev) || IS_SKYLAKE(dev) || \ - IS_KABYLAKE(dev) || IS_BROXTON(dev)) +#define HAS_RUNTIME_PM (dev) (INTEL_INFO(dev)->has_runtime_pm)#define HAS_RC6 (dev) (INTEL_INFO(dev)->gen >= 6)#define HAS_RC6p (dev) (IS_GEN6(dev) || IS_IVYBRIDGE(dev))drivers/gpu/drm/i915/i915_pci.c +6
-1@@ -199,6 +199,7 @@ static const struct intel_device_info intel_ironlake_m_info = { .gen = 6, .num_pipes = 2, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .has_fbc = 1, \ + .has_runtime_pm = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc =1 , \ GEN_DEFAULT_PIPEOFFSETS, \@@ -242,6 +243,7 @@ static const struct intel_device_info intel_ivybridge_q_info = {#define VLV_FEATURES \ .gen = 7, .num_pipes = 2, \ .has_psr = 1, \ + .has_runtime_pm = 1, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .display_mmio_offset = VLV_DISPLAY_BASE, \@@ -258,7 +260,8 @@ static const struct intel_device_info intel_valleyview_info = { .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \ .has_ddi = 1, \ .has_fpga_dbg = 1, \ - .has_psr = 1 + .has_psr = 1, \ + .has_runtime_pm = 1 static const struct intel_device_info intel_haswell_info = {HSW_FEATURES ,@@ -288,6 +291,7 @@ static const struct intel_device_info intel_cherryview_info = { .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, .is_cherryview = 1, .has_psr = 1, + .has_runtime_pm = 1, .display_mmio_offset =VLV_DISPLAY_BASE ,GEN_CHV_PIPEOFFSETS , CURSOR_OFFSETS,@@ -316,6 +320,7 @@ static const struct intel_device_info intel_broxton_info = { .has_ddi = 1, .has_fpga_dbg = 1, .has_fbc = 1, + .has_runtime_pm = 1, .has_pooled_eu =0 ,GEN_DEFAULT_PIPEOFFSETS , IVB_CURSOR_OFFSETS,Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 5/22 drm/i915: Remove runtime PM for SNB
In reply to Carlos SantaRemove runtime PM support for SNB as it breaks hotplug support. Feedback from V. Syrjala.
--- drivers/gpu/drm/i915/i915_pci.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/i915/i915_pci.c +0 -1
@@ -199,7 +199,6 @@ static const struct intel_device_info intel_ironlake_m_info = { .gen = 6, .num_pipes = 2, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .has_fbc = 1, \ - .has_runtime_pm = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc =1 , \ GEN_DEFAULT_PIPEOFFSETS, \
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v4 05/22] drm/i915: Remove runtime PM for SNB
Quoted 27 lines · Carlos Santa
Remove runtime PM support for SNB as it breaks hotplug support. Feedback from V. Syrjala.
Signed-off-by Carlos Santa <[email protected]>--- drivers/gpu/drm/i915/i915_pci.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/i915/i915_pci.c +0
-1@@ -199,7 +199,6 @@ static const struct intel_device_info intel_ironlake_m_info = { .gen = 6, .num_pipes = 2, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .has_fbc = 1, \ - .has_runtime_pm = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc =1 , \ GEN_DEFAULT_PIPEOFFSETS, \Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 6/22 drm/i915: Get rid of HAS_CORE_RING_FREQ
In reply to Carlos SantaNo need for HAS_CORE_RING_FREQ as that flag is actually the same as .has_llc. Feedback from V. Syrjala.
--- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +1 -1
@@ -1812,7 +1812,7 @@ static int i915_ring_freq_table(struct seq_file *m, void *unused)int gpu_freq, ia_freq;unsigned int max_gpu_freq, min_gpu_freq; -if (!HAS_CORE_RING_FREQ (dev)) { +if (!HAS_LLC (dev_priv)) {seq_puts (m,"unsupported on this chipset\n" );return 0 ; }
drivers/gpu/drm/i915/i915_drv.h +0 -4
@@ -2801,10 +2801,6 @@ struct drm_i915_cmd_table {#define HAS_RESOURCE_STREAMER (dev) (IS_HASWELL(dev) || \ INTEL_INFO(dev)->gen >= 8) -#define HAS_CORE_RING_FREQ (dev) (INTEL_INFO(dev)->gen >= 6 && \ - !IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) && \ - !IS_BROXTON(dev)) -#define HAS_POOLED_EU (dev) (INTEL_INFO(dev)->has_pooled_eu)#define INTEL_PCH_DEVICE_ID_MASK 0xff00
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v4 06/22] drm/i915: Get rid of HAS_CORE_RING_FREQ
Quoted 44 lines · Carlos Santa
No need for
HAS_CORE_RING_FREQas that flag is actually the same as .has_llc. Feedback from V. Syrjala.Signed-off-by Carlos Santa <[email protected]>--- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-)drivers/gpu/drm/i915/i915_debugfs.c +1
-1@@ -1812,7 +1812,7 @@ static int i915_ring_freq_table(struct seq_file *m, void *unused)int gpu_freq, ia_freq;unsigned int max_gpu_freq, min_gpu_freq; -if (!HAS_CORE_RING_FREQ (dev)) { +if (!HAS_LLC (dev_priv)) {seq_puts (m,"unsupported on this chipset\n" );return 0 ; }drivers/gpu/drm/i915/i915_drv.h +0
-4@@ -2801,10 +2801,6 @@ struct drm_i915_cmd_table {#define HAS_RESOURCE_STREAMER (dev) (IS_HASWELL(dev) || \ INTEL_INFO(dev)->gen >= 8) -#define HAS_CORE_RING_FREQ (dev) (INTEL_INFO(dev)->gen >= 6 && \ - !IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev) && \ - !IS_BROXTON(dev)) -#define HAS_POOLED_EU (dev) (INTEL_INFO(dev)->has_pooled_eu)#define INTEL_PCH_DEVICE_ID_MASK 0xff00Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 7/22 drm/i915 Move HAS_CSR definition to platform definition
In reply to Carlos SantaMoving all GPU features to the platform struct definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- drivers/gpu/drm/i915/i915_pci.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +2 -1
@@ -648,6 +648,7 @@ struct intel_csr { func(has_fbc) sep \ func(has_psr) sep \ func(has_runtime_pm) sep \ + func(has_csr) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2787,7 +2788,7 @@ struct drm_i915_cmd_table {#define HAS_RC6 (dev) (INTEL_INFO(dev)->gen >= 6)#define HAS_RC6p (dev) (IS_GEN6(dev) || IS_IVYBRIDGE(dev)) -#define HAS_CSR (dev) (IS_GEN9(dev)) +#define HAS_CSR (dev) (INTEL_INFO(dev)->has_csr)/* * For now, anything with a GuC requires uCode loading, and then supports
drivers/gpu/drm/i915/i915_pci.c +5 -0
@@ -301,12 +301,14 @@ static const struct intel_device_info intel_skylake_info = { BDW_FEATURES, .is_skylake = 1, .gen = 9, + .has_csr = 1, };static const struct intel_device_info intel_skylake_gt3_info = {BDW_FEATURES , .is_skylake =1 , .gen =9 , + .has_csr =1 , .ring_mask =RENDER_RING |BSD_RING |BLT_RING |VEBOX_RING |BSD2_RING , };
@@ -321,6 +323,7 @@ static const struct intel_device_info intel_broxton_info = { .has_fbc = 1, .has_runtime_pm = 1, .has_pooled_eu = 0, + .has_csr =1 ,GEN_DEFAULT_PIPEOFFSETS ,IVB_CURSOR_OFFSETS , BDW_COLORS,
@@ -330,12 +333,14 @@ static const struct intel_device_info intel_kabylake_info = { BDW_FEATURES, .is_kabylake = 1, .gen = 9, + .has_csr = 1, };static const struct intel_device_info intel_kabylake_gt3_info = {BDW_FEATURES , .is_kabylake =1 , .gen =9 , + .has_csr =1 , .ring_mask =RENDER_RING |BSD_RING |BLT_RING |VEBOX_RING |BSD2_RING , };
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 8/22 drm/i915: Move HAS_RESOURCE_STREAMER definition to platform definition
In reply to Carlos SantaMoving all GPU features to the platform struct definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_pci.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -2
@@ -649,6 +649,7 @@ struct intel_csr { func(has_psr) sep \ func(has_runtime_pm) sep \ func(has_csr) sep \ + func(has_resource_streamer) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2799,8 +2800,7 @@ struct drm_i915_cmd_table {#define HAS_GUC_UCODE (dev) (HAS_GUC(dev))#define HAS_GUC_SCHED (dev) (HAS_GUC(dev)) -#define HAS_RESOURCE_STREAMER (dev) (IS_HASWELL(dev) || \ - INTEL_INFO(dev)->gen >= 8) +#define HAS_RESOURCE_STREAMER (dev) (INTEL_INFO(dev)->has_resource_streamer)#define HAS_POOLED_EU (dev) (INTEL_INFO(dev)->has_pooled_eu)
drivers/gpu/drm/i915/i915_pci.c +3 -0
@@ -260,6 +260,7 @@ static const struct intel_device_info intel_valleyview_info = { .has_ddi = 1, \ .has_fpga_dbg = 1, \ .has_psr = 1, \ + .has_resource_streamer = 1, \ .has_runtime_pm = 1 static const struct intel_device_info intel_haswell_info = {
@@ -291,6 +292,7 @@ static const struct intel_device_info intel_cherryview_info = { .is_cherryview = 1, .has_psr = 1, .has_runtime_pm = 1, + .has_resource_streamer = 1, .display_mmio_offset =VLV_DISPLAY_BASE ,GEN_CHV_PIPEOFFSETS , CURSOR_OFFSETS,
@@ -324,6 +326,7 @@ static const struct intel_device_info intel_broxton_info = { .has_runtime_pm = 1, .has_pooled_eu = 0, .has_csr = 1, + .has_resource_streamer =1 ,GEN_DEFAULT_PIPEOFFSETS ,IVB_CURSOR_OFFSETS , BDW_COLORS,
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 9/22 drm/i915: Move HAS_RC6 definition to platform definition
In reply to Carlos SantaMoving all GPU features to the platform struct definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- drivers/gpu/drm/i915/i915_pci.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +2 -1
@@ -650,6 +650,7 @@ struct intel_csr { func(has_runtime_pm) sep \ func(has_csr) sep \ func(has_resource_streamer) sep \ + func(has_rc6) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2786,7 +2787,7 @@ struct drm_i915_cmd_table {#define HAS_FPGA_DBG_UNCLAIMED (dev) (INTEL_INFO(dev)->has_fpga_dbg)#define HAS_PSR (dev) (INTEL_INFO(dev)->has_psr)#define HAS_RUNTIME_PM (dev) (INTEL_INFO(dev)->has_runtime_pm) -#define HAS_RC6 (dev) (INTEL_INFO(dev)->gen >= 6) +#define HAS_RC6 (dev) (INTEL_INFO(dev)->has_rc6)#define HAS_RC6p (dev) (IS_GEN6(dev) || IS_IVYBRIDGE(dev))#define HAS_CSR (dev) (INTEL_INFO(dev)->has_csr)
drivers/gpu/drm/i915/i915_pci.c +5 -0
@@ -201,6 +201,7 @@ static const struct intel_device_info intel_ironlake_m_info = { .has_fbc = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc = 1, \ + .has_rc6 =1 , \GEN_DEFAULT_PIPEOFFSETS , \CURSOR_OFFSETS
@@ -219,6 +220,7 @@ static const struct intel_device_info intel_sandybridge_m_info = { .has_fbc = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc = 1, \ + .has_rc6 =1 , \GEN_DEFAULT_PIPEOFFSETS , \IVB_CURSOR_OFFSETS
@@ -243,6 +245,7 @@ static const struct intel_device_info intel_ivybridge_q_info = { .gen = 7, .num_pipes = 2, \ .has_psr = 1, \ .has_runtime_pm = 1, \ + .has_rc6 = 1, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .display_mmio_offset = VLV_DISPLAY_BASE, \
@@ -293,6 +296,7 @@ static const struct intel_device_info intel_cherryview_info = { .has_psr = 1, .has_runtime_pm = 1, .has_resource_streamer = 1, + .has_rc6 = 1, .display_mmio_offset =VLV_DISPLAY_BASE ,GEN_CHV_PIPEOFFSETS , CURSOR_OFFSETS,
@@ -327,6 +331,7 @@ static const struct intel_device_info intel_broxton_info = { .has_pooled_eu = 0, .has_csr = 1, .has_resource_streamer = 1, + .has_rc6 =1 ,GEN_DEFAULT_PIPEOFFSETS ,IVB_CURSOR_OFFSETS , BDW_COLORS,
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 10/22 drm/i915: Move HAS_RC6p definition to platform definition
In reply to Carlos SantaMoving all GPU features to the platform struct definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- drivers/gpu/drm/i915/i915_pci.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +2 -1
@@ -651,6 +651,7 @@ struct intel_csr { func(has_csr) sep \ func(has_resource_streamer) sep \ func(has_rc6) sep \ + func(has_rc6p) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2788,7 +2789,7 @@ struct drm_i915_cmd_table {#define HAS_PSR (dev) (INTEL_INFO(dev)->has_psr)#define HAS_RUNTIME_PM (dev) (INTEL_INFO(dev)->has_runtime_pm)#define HAS_RC6 (dev) (INTEL_INFO(dev)->has_rc6) -#define HAS_RC6p (dev) (IS_GEN6(dev) || IS_IVYBRIDGE(dev)) +#define HAS_RC6p (dev) (INTEL_INFO(dev)->has_rc6p)#define HAS_CSR (dev) (INTEL_INFO(dev)->has_csr)
drivers/gpu/drm/i915/i915_pci.c +3 -0
@@ -202,6 +202,7 @@ static const struct intel_device_info intel_ironlake_m_info = { .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc = 1, \ .has_rc6 = 1, \ + .has_rc6p =1 , \GEN_DEFAULT_PIPEOFFSETS , \CURSOR_OFFSETS
@@ -221,6 +222,7 @@ static const struct intel_device_info intel_sandybridge_m_info = { .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc = 1, \ .has_rc6 = 1, \ + .has_rc6p =1 , \GEN_DEFAULT_PIPEOFFSETS , \IVB_CURSOR_OFFSETS
@@ -264,6 +266,7 @@ static const struct intel_device_info intel_valleyview_info = { .has_fpga_dbg = 1, \ .has_psr = 1, \ .has_resource_streamer = 1, \ + .has_rc6p = 0 /* RC6p removed-by HSW */, \ .has_runtime_pm = 1 static const struct intel_device_info intel_haswell_info = {
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v4 10/22] drm/i915: Move HAS_RC6p definition to platform definition
Quoted 67 lines · Carlos Santa
Moving all GPU features to the platform struct definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitionsSigned-off-by Carlos Santa <[email protected]>--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- drivers/gpu/drm/i915/i915_pci.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/i915_drv.h +2
-1@@ -651,6 +651,7 @@ struct intel_csr { func(has_csr) sep \ func(has_resource_streamer) sep \ func(has_rc6) sep \ + func(has_rc6p) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \@@ -2788,7 +2789,7 @@ struct drm_i915_cmd_table {#define HAS_PSR (dev) (INTEL_INFO(dev)->has_psr)#define HAS_RUNTIME_PM (dev) (INTEL_INFO(dev)->has_runtime_pm)#define HAS_RC6 (dev) (INTEL_INFO(dev)->has_rc6) -#define HAS_RC6p (dev) (IS_GEN6(dev) || IS_IVYBRIDGE(dev)) +#define HAS_RC6p (dev) (INTEL_INFO(dev)->has_rc6p)#define HAS_CSR (dev) (INTEL_INFO(dev)->has_csr)drivers/gpu/drm/i915/i915_pci.c +3
-0@@ -202,6 +202,7 @@ static const struct intel_device_info intel_ironlake_m_info = { .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc = 1, \ .has_rc6 = 1, \ + .has_rc6p =1 , \GEN_DEFAULT_PIPEOFFSETS , \CURSOR_OFFSETS @@ -221,6 +222,7 @@ static const struct intel_device_info intel_sandybridge_m_info = { .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc = 1, \ .has_rc6 = 1, \ + .has_rc6p =1 , \GEN_DEFAULT_PIPEOFFSETS , \IVB_CURSOR_OFFSETS @@ -264,6 +266,7 @@ static const struct intel_device_info intel_valleyview_info = { .has_fpga_dbg = 1, \ .has_psr = 1, \ .has_resource_streamer = 1, \ + .has_rc6p = 0 /* RC6p removed-by HSW */, \ .has_runtime_pm = 1 static const struct intel_device_info intel_haswell_info = {Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 11/22 drm/i915: Move HAS_DP_MST definition to platform definition
In reply to Carlos SantaMoving all GPU features to the platform struct definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_pci.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -2
@@ -652,6 +652,7 @@ struct intel_csr { func(has_resource_streamer) sep \ func(has_rc6) sep \ func(has_rc6p) sep \ + func(has_dp_mst) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2781,8 +2782,7 @@ struct drm_i915_cmd_table {#define HAS_IPS (dev) (IS_HSW_ULT(dev) || IS_BROADWELL(dev)) -#define HAS_DP_MST (dev) (IS_HASWELL(dev) || IS_BROADWELL(dev) || \ - INTEL_INFO(dev)->gen >= 9) +#define HAS_DP_MST (dev) (INTEL_INFO(dev)->has_dp_mst)#define HAS_DDI (dev) (INTEL_INFO(dev)->has_ddi)#define HAS_FPGA_DBG_UNCLAIMED (dev) (INTEL_INFO(dev)->has_fpga_dbg)
drivers/gpu/drm/i915/i915_pci.c +2 -0
@@ -266,6 +266,7 @@ static const struct intel_device_info intel_valleyview_info = { .has_fpga_dbg = 1, \ .has_psr = 1, \ .has_resource_streamer = 1, \ + .has_dp_mst = 1, \ .has_rc6p =0 /* RC6p removed-by HSW */ , \ .has_runtime_pm = 1
@@ -335,6 +336,7 @@ static const struct intel_device_info intel_broxton_info = { .has_csr = 1, .has_resource_streamer = 1, .has_rc6 = 1, + .has_dp_mst =1 ,GEN_DEFAULT_PIPEOFFSETS ,IVB_CURSOR_OFFSETS , BDW_COLORS,
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 12/22 drm/i915: Introduce GEN5_FEATURES for device info
In reply to Carlos SantaIntroducing a GEN5_FEATURES macro to simplify the struct definitions by platforms given that most of the features are common. Inspired by the GEN7_FEATURES macro done by Ben W. and others.
Use it for ilk.
--- drivers/gpu/drm/i915/i915_pci.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/i915_pci.c +10 -11
@@ -178,21 +178,20 @@ static const struct intel_device_info intel_pineview_info = { CURSOR_OFFSETS, }; +#define GEN5_FEATURES \ + .gen = 5, .num_pipes = 2, \ + .need_gfx_hws = 1, .has_hotplug = 1, \ + .ring_mask = RENDER_RING | BSD_RING, \ + GEN_DEFAULT_PIPEOFFSETS, \ + CURSOR_OFFSETS +static const struct intel_device_info intel_ironlake_d_info = { - .gen =5 , .num_pipes =2 , - .need_gfx_hws =1 , .has_hotplug =1 , - .ring_mask =RENDER_RING |BSD_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , +GEN5_FEATURES , };static const struct intel_device_info intel_ironlake_m_info = { - .gen =5 , .is_mobile =1 , .num_pipes =2 , - .need_gfx_hws =1 , .has_hotplug =1 , - .has_fbc =1 , - .ring_mask =RENDER_RING |BSD_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , +GEN5_FEATURES , + .is_mobile =1 , };#define GEN6_FEATURES \
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 13/22 drm/i915: Move HAS_GMBUS_IRQ definition to platform definition
In reply to Carlos SantaMoving all GPU features to the platform struct definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- drivers/gpu/drm/i915/i915_pci.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +2 -1
@@ -653,6 +653,7 @@ struct intel_csr { func(has_rc6) sep \ func(has_rc6p) sep \ func(has_dp_mst) sep \ + func(has_gmbus_irq) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2766,7 +2767,7 @@ struct drm_i915_cmd_table {* interrupt source and so prevents the other device from working properly. */ #define HAS_AUX_IRQ (dev) (INTEL_INFO(dev)->gen >= 5) -#define HAS_GMBUS_IRQ (dev) (INTEL_INFO(dev)->gen >= 5) +#define HAS_GMBUS_IRQ (dev) (INTEL_INFO(dev)->has_gmbus_irq)/* With the 945 and later, Y tiling got adjusted so that it was 32 128-byte * rows, which changed the alignment requirements and fence programming.
drivers/gpu/drm/i915/i915_pci.c +6 -0
@@ -181,6 +181,7 @@ static const struct intel_device_info intel_pineview_info = {#define GEN5_FEATURES \ .gen = 5, .num_pipes = 2, \ .need_gfx_hws = 1, .has_hotplug = 1, \ + .has_gmbus_irq = 1, \ .ring_mask = RENDER_RING | BSD_RING, \ GEN_DEFAULT_PIPEOFFSETS, \ CURSOR_OFFSETS
@@ -202,6 +203,7 @@ static const struct intel_device_info intel_ironlake_m_info = { .has_llc = 1, \ .has_rc6 = 1, \ .has_rc6p = 1, \ + .has_gmbus_irq =1 , \GEN_DEFAULT_PIPEOFFSETS , \CURSOR_OFFSETS
@@ -222,6 +224,7 @@ static const struct intel_device_info intel_sandybridge_m_info = { .has_llc = 1, \ .has_rc6 = 1, \ .has_rc6p = 1, \ + .has_gmbus_irq =1 , \GEN_DEFAULT_PIPEOFFSETS , \IVB_CURSOR_OFFSETS
@@ -247,6 +250,7 @@ static const struct intel_device_info intel_ivybridge_q_info = { .has_psr = 1, \ .has_runtime_pm = 1, \ .has_rc6 = 1, \ + .has_gmbus_irq = 1, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .display_mmio_offset = VLV_DISPLAY_BASE, \
@@ -300,6 +304,7 @@ static const struct intel_device_info intel_cherryview_info = { .has_runtime_pm = 1, .has_resource_streamer = 1, .has_rc6 = 1, + .has_gmbus_irq = 1, .display_mmio_offset =VLV_DISPLAY_BASE ,GEN_CHV_PIPEOFFSETS , CURSOR_OFFSETS,
@@ -336,6 +341,7 @@ static const struct intel_device_info intel_broxton_info = { .has_resource_streamer = 1, .has_rc6 = 1, .has_dp_mst = 1, + .has_gmbus_irq =1 ,GEN_DEFAULT_PIPEOFFSETS ,IVB_CURSOR_OFFSETS , BDW_COLORS,
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 14/22 drm/i915: Introduce GEN4_FEATURES for device info
In reply to Carlos SantaIntroducing a GEN4_FEATURES macro to simplify the struct definitions by platforms given that most of the features are common. Inspired by the GEN7_FEATURES macro done by Ben W. and others.
Use it for i965g, i965gm, g45 and gm45.
--- drivers/gpu/drm/i915/i915_pci.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-)
drivers/gpu/drm/i915/i915_pci.c +18 -18
@@ -123,23 +123,25 @@ static const struct intel_device_info intel_i945gm_info = { CURSOR_OFFSETS, }; +#define GEN4_FEATURES \ + .gen = 4, .num_pipes = 2, \ + .has_hotplug = 1, \ + .ring_mask = RENDER_RING, \ + GEN_DEFAULT_PIPEOFFSETS, \ + CURSOR_OFFSETS +static const struct intel_device_info intel_i965g_info = { - .gen =4 , .is_broadwater =1 , .num_pipes =2 , - .has_hotplug =1 , +GEN4_FEATURES , + .is_broadwater =1 , .has_overlay =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };static const struct intel_device_info intel_i965gm_info = { - .gen =4 , .is_crestline =1 , .num_pipes =2 , - .is_mobile =1 , .has_fbc =1 , .has_hotplug =1 , +GEN4_FEATURES , + .is_crestline =1 , + .is_mobile =1 , .has_fbc =1 , .has_overlay =1 , .supports_tv =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };static const struct intel_device_info intel_g33_info = {
@@ -152,21 +154,19 @@ static const struct intel_device_info intel_g33_info = { };static const struct intel_device_info intel_g45_info = { - .gen =4 , .is_g4x =1 , .need_gfx_hws =1 , .num_pipes =2 , - .has_pipe_cxsr =1 , .has_hotplug =1 , +GEN4_FEATURES , + .is_g4x =1 , .need_gfx_hws =1 , + .has_pipe_cxsr =1 , .ring_mask =RENDER_RING |BSD_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };static const struct intel_device_info intel_gm45_info = { - .gen =4 , .is_g4x =1 , .num_pipes =2 , +GEN4_FEATURES , + .is_g4x =1 , .is_mobile =1 , .need_gfx_hws =1 , .has_fbc =1 , - .has_pipe_cxsr =1 , .has_hotplug =1 , + .has_pipe_cxsr =1 , .supports_tv =1 , .ring_mask =RENDER_RING |BSD_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };static const struct intel_device_info intel_pineview_info = {
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 15/22 drm/i915: Introduce GEN3_FEATURES for device info
In reply to Carlos SantaIntroducing a GEN3_FEATURES macro to simplify the struct definitions by platforms given that most of the features are common. Inspired by the GEN7_FEATURES macro done by Ben W. and others.
Use it for i915g, i915gm, i945g, i945gm, g33 and pnv.
--- drivers/gpu/drm/i915/i915_pci.c | 42 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 24 deletions(-)
drivers/gpu/drm/i915/i915_pci.c +18 -24
@@ -88,39 +88,37 @@ static const struct intel_device_info intel_i865g_info = { CURSOR_OFFSETS, }; +#define GEN3_FEATURES \ + .gen = 3, .num_pipes = 2, \ + .ring_mask = RENDER_RING, \ + GEN_DEFAULT_PIPEOFFSETS, \ + CURSOR_OFFSETS +static const struct intel_device_info intel_i915g_info = { - .gen =3 , .is_i915g =1 , .cursor_needs_physical =1 , .num_pipes =2 , +GEN3_FEATURES , + .is_i915g =1 , .cursor_needs_physical =1 , .has_overlay =1 , .overlay_needs_physical =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };static const struct intel_device_info intel_i915gm_info = { - .gen =3 , .is_mobile =1 , .num_pipes =2 , +GEN3_FEATURES , + .is_mobile =1 , .cursor_needs_physical =1 , .has_overlay =1 , .overlay_needs_physical =1 , .supports_tv =1 , .has_fbc =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };static const struct intel_device_info intel_i945g_info = { - .gen =3 , .has_hotplug =1 , .cursor_needs_physical =1 , .num_pipes =2 , +GEN3_FEATURES , + .has_hotplug =1 , .cursor_needs_physical =1 , .has_overlay =1 , .overlay_needs_physical =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };static const struct intel_device_info intel_i945gm_info = { - .gen =3 , .is_i945gm =1 , .is_mobile =1 , .num_pipes =2 , +GEN3_FEATURES , + .is_i945gm =1 , .is_mobile =1 , .has_hotplug =1 , .cursor_needs_physical =1 , .has_overlay =1 , .overlay_needs_physical =1 , .supports_tv =1 , .has_fbc =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };#define GEN4_FEATURES \
@@ -145,12 +143,10 @@ static const struct intel_device_info intel_i965gm_info = { };static const struct intel_device_info intel_g33_info = { - .gen =3 , .is_g33 =1 , .num_pipes =2 , +GEN3_FEATURES , + .is_g33 =1 , .need_gfx_hws =1 , .has_hotplug =1 , .has_overlay =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };static const struct intel_device_info intel_g45_info = {
@@ -170,12 +166,10 @@ static const struct intel_device_info intel_gm45_info = { };static const struct intel_device_info intel_pineview_info = { - .gen =3 , .is_g33 =1 , .is_pineview =1 , .is_mobile =1 , .num_pipes =2 , +GEN3_FEATURES , + .is_g33 =1 , .is_pineview =1 , .is_mobile =1 , .need_gfx_hws =1 , .has_hotplug =1 , .has_overlay =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };#define GEN5_FEATURES \
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 16/22 drm/i915: Introduce GEN2_FEATURES for device info
In reply to Carlos SantaIntroducing a GEN2_FEATURES macro to simplify the struct definitions by platforms given that most of the features are common. Inspired by the GEN7_FEATURES macro done by Ben W. and others.
Use it for 830, 845g, i85x, i865g.
--- drivers/gpu/drm/i915/i915_pci.c | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-)
drivers/gpu/drm/i915/i915_pci.c +15 -20
@@ -54,38 +54,33 @@#define CHV_COLORS \ .color = { .degamma_lut_size = 65, .gamma_lut_size = 257 } +#define GEN2_FEATURES \ + .gen = 2, .num_pipes = 1, \ + .has_overlay = 1, .overlay_needs_physical = 1, \ + .ring_mask = RENDER_RING, \ + GEN_DEFAULT_PIPEOFFSETS, \ + CURSOR_OFFSETS +static const struct intel_device_info intel_i830_info = { - .gen =2 , .is_mobile =1 , .cursor_needs_physical =1 , .num_pipes =2 , - .has_overlay =1 , .overlay_needs_physical =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , +GEN2_FEATURES , + .is_mobile =1 , .cursor_needs_physical =1 , + .num_pipes =2 ,/* legal, last one wins */ };static const struct intel_device_info intel_845g_info = { - .gen =2 , .num_pipes =1 , - .has_overlay =1 , .overlay_needs_physical =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , +GEN2_FEATURES , };static const struct intel_device_info intel_i85x_info = { - .gen =2 , .is_i85x =1 , .is_mobile =1 , .num_pipes =2 , +GEN2_FEATURES , + .is_i85x =1 , .is_mobile =1 , + .num_pipes =2 ,/* legal, last one wins */ .cursor_needs_physical =1 , - .has_overlay =1 , .overlay_needs_physical =1 , .has_fbc =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , };static const struct intel_device_info intel_i865g_info = { - .gen =2 , .num_pipes =1 , - .has_overlay =1 , .overlay_needs_physical =1 , - .ring_mask =RENDER_RING , -GEN_DEFAULT_PIPEOFFSETS , -CURSOR_OFFSETS , +GEN2_FEATURES , };#define GEN3_FEATURES \
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 17/22 drm/i915: Move HAS_HW_CONTEXTS definition to platform
In reply to Carlos SantaMoving all GPU features to the platform definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- drivers/gpu/drm/i915/i915_pci.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +2 -1
@@ -654,6 +654,7 @@ struct intel_csr { func(has_rc6p) sep \ func(has_dp_mst) sep \ func(has_gmbus_irq) sep \ + func(has_hw_contexts) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2742,7 +2743,7 @@ struct drm_i915_cmd_table { HAS_EDRAM(dev))#define I915_NEED_GFX_HWS (dev) (INTEL_INFO(dev)->need_gfx_hws) -#define HAS_HW_CONTEXTS (dev) (INTEL_INFO(dev)->gen >= 6) +#define HAS_HW_CONTEXTS (dev) (INTEL_INFO(dev)->has_hw_contexts)#define HAS_LOGICAL_RING_CONTEXTS (dev) (INTEL_INFO(dev)->gen >= 8)#define USES_PPGTT (dev) (i915.enable_ppgtt)#define USES_FULL_PPGTT (dev) (i915.enable_ppgtt >= 2)
drivers/gpu/drm/i915/i915_pci.c +5 -0
@@ -193,6 +193,7 @@ static const struct intel_device_info intel_ironlake_m_info = { .has_rc6 = 1, \ .has_rc6p = 1, \ .has_gmbus_irq = 1, \ + .has_hw_contexts =1 , \GEN_DEFAULT_PIPEOFFSETS , \CURSOR_OFFSETS
@@ -214,6 +215,7 @@ static const struct intel_device_info intel_sandybridge_m_info = { .has_rc6 = 1, \ .has_rc6p = 1, \ .has_gmbus_irq = 1, \ + .has_hw_contexts =1 , \GEN_DEFAULT_PIPEOFFSETS , \IVB_CURSOR_OFFSETS
@@ -240,6 +242,7 @@ static const struct intel_device_info intel_ivybridge_q_info = { .has_runtime_pm = 1, \ .has_rc6 = 1, \ .has_gmbus_irq = 1, \ + .has_hw_contexts = 1, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .display_mmio_offset = VLV_DISPLAY_BASE, \
@@ -294,6 +297,7 @@ static const struct intel_device_info intel_cherryview_info = { .has_resource_streamer = 1, .has_rc6 = 1, .has_gmbus_irq = 1, + .has_hw_contexts = 1, .display_mmio_offset =VLV_DISPLAY_BASE ,GEN_CHV_PIPEOFFSETS , CURSOR_OFFSETS,
@@ -331,6 +335,7 @@ static const struct intel_device_info intel_broxton_info = { .has_rc6 = 1, .has_dp_mst = 1, .has_gmbus_irq = 1, + .has_hw_contexts =1 ,GEN_DEFAULT_PIPEOFFSETS ,IVB_CURSOR_OFFSETS , BDW_COLORS,
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 18/22 drm/i915: Move HAS_LOGICAL_RING_CONTEXTS definition to platform
In reply to Carlos SantaMoving all GPU features to the platform definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- drivers/gpu/drm/i915/i915_pci.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -1
@@ -655,6 +655,7 @@ struct intel_csr { func(has_dp_mst) sep \ func(has_gmbus_irq) sep \ func(has_hw_contexts) sep \ + func(has_logical_ring_contexts) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2744,7 +2745,7 @@ struct drm_i915_cmd_table {#define I915_NEED_GFX_HWS (dev) (INTEL_INFO(dev)->need_gfx_hws)#define HAS_HW_CONTEXTS (dev) (INTEL_INFO(dev)->has_hw_contexts) -#define HAS_LOGICAL_RING_CONTEXTS (dev) (INTEL_INFO(dev)->gen >= 8) +#define HAS_LOGICAL_RING_CONTEXTS (dev) (INTEL_INFO(dev)->has_logical_ring_contexts)#define USES_PPGTT (dev) (i915.enable_ppgtt)#define USES_FULL_PPGTT (dev) (i915.enable_ppgtt >= 2)#define USES_FULL_48BIT_PPGTT (dev) (i915.enable_ppgtt == 3)
drivers/gpu/drm/i915/i915_pci.c +4 -1
@@ -272,7 +272,8 @@ static const struct intel_device_info intel_haswell_info = {#define BDW_FEATURES \ HSW_FEATURES, \ - BDW_COLORS + BDW_COLORS, \ + .has_logical_ring_contexts = 1static const struct intel_device_info intel_broadwell_info = {BDW_FEATURES ,
@@ -298,6 +299,7 @@ static const struct intel_device_info intel_cherryview_info = { .has_rc6 = 1, .has_gmbus_irq = 1, .has_hw_contexts = 1, + .has_logical_ring_contexts = 1, .display_mmio_offset =VLV_DISPLAY_BASE ,GEN_CHV_PIPEOFFSETS , CURSOR_OFFSETS,
@@ -336,6 +338,7 @@ static const struct intel_device_info intel_broxton_info = { .has_dp_mst = 1, .has_gmbus_irq = 1, .has_hw_contexts = 1, + .has_logical_ring_contexts =1 ,GEN_DEFAULT_PIPEOFFSETS ,IVB_CURSOR_OFFSETS , BDW_COLORS,
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 19/22 drm/i915: Move HAS_L3_DPF definition to platform definition
In reply to Carlos SantaMoving all GPU features to the platform definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- drivers/gpu/drm/i915/i915_pci.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +2 -1
@@ -656,6 +656,7 @@ struct intel_csr { func(has_gmbus_irq) sep \ func(has_hw_contexts) sep \ func(has_logical_ring_contexts) sep \ + func(has_l3_dpf) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2837,7 +2838,7 @@ struct drm_i915_cmd_table { IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev))/* DPF == dynamic parity feature */ -#define HAS_L3_DPF (dev) (IS_IVYBRIDGE(dev) || IS_HASWELL(dev)) +#define HAS_L3_DPF (dev) (INTEL_INFO(dev)->has_l3_dpf)#define NUM_L3_SLICES (dev) (IS_HSW_GT3(dev) ? 2 : HAS_L3_DPF(dev))#define GT_FREQUENCY_MULTIPLIER 50
drivers/gpu/drm/i915/i915_pci.c +4 -0
@@ -222,18 +222,21 @@ static const struct intel_device_info intel_sandybridge_m_info = {static const struct intel_device_info intel_ivybridge_d_info = {GEN7_FEATURES , .is_ivybridge =1 , + .has_l3_dpf =1 , };static const struct intel_device_info intel_ivybridge_m_info = {GEN7_FEATURES , .is_ivybridge =1 , .is_mobile =1 , + .has_l3_dpf =1 , };static const struct intel_device_info intel_ivybridge_q_info = {GEN7_FEATURES , .is_ivybridge =1 , .num_pipes =0 ,/* legal, last one wins */ + .has_l3_dpf =1 , };#define VLV_FEATURES \
@@ -268,6 +271,7 @@ static const struct intel_device_info intel_valleyview_info = {static const struct intel_device_info intel_haswell_info = {HSW_FEATURES , .is_haswell =1 , + .has_l3_dpf =1 , };#define BDW_FEATURES \
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 20/22 drm/i915: Move HAS_GMCH_DISPLAY definition to platform
In reply to Carlos SantaMoving all GPU features to the platform definition allows for
- standard place when adding new features from new platforms
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_pci.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -2
@@ -657,6 +657,7 @@ struct intel_csr { func(has_hw_contexts) sep \ func(has_logical_ring_contexts) sep \ func(has_l3_dpf) sep \ + func(has_gmch_display) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2834,8 +2835,7 @@ struct drm_i915_cmd_table {#define HAS_PCH_NOP (dev) (INTEL_PCH_TYPE(dev) == PCH_NOP)#define HAS_PCH_SPLIT (dev) (INTEL_PCH_TYPE(dev) != PCH_NONE) -#define HAS_GMCH_DISPLAY (dev) (INTEL_INFO(dev)->gen < 5 || \ - IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev)) +#define HAS_GMCH_DISPLAY (dev) (INTEL_INFO(dev)->has_gmch_display)/* DPF == dynamic parity feature */ #define HAS_L3_DPF (dev) (INTEL_INFO(dev)->has_l3_dpf)
drivers/gpu/drm/i915/i915_pci.c +5 -0
@@ -57,6 +57,7 @@#define GEN2_FEATURES \ .gen = 2, .num_pipes = 1, \ .has_overlay = 1, .overlay_needs_physical = 1, \ + .has_gmch_display = 1, \ .ring_mask = RENDER_RING, \ GEN_DEFAULT_PIPEOFFSETS, \ CURSOR_OFFSETS
@@ -85,6 +86,7 @@ static const struct intel_device_info intel_i865g_info = {#define GEN3_FEATURES \ .gen = 3, .num_pipes = 2, \ + .has_gmch_display = 1, \ .ring_mask = RENDER_RING, \ GEN_DEFAULT_PIPEOFFSETS, \ CURSOR_OFFSETS
@@ -119,6 +121,7 @@ static const struct intel_device_info intel_i945gm_info = {#define GEN4_FEATURES \ .gen = 4, .num_pipes = 2, \ .has_hotplug = 1, \ + .has_gmch_display = 1, \ .ring_mask = RENDER_RING, \ GEN_DEFAULT_PIPEOFFSETS, \ CURSOR_OFFSETS
@@ -246,6 +249,7 @@ static const struct intel_device_info intel_ivybridge_q_info = { .has_rc6 = 1, \ .has_gmbus_irq = 1, \ .has_hw_contexts = 1, \ + .has_gmch_display = 1, \ .need_gfx_hws = 1, .has_hotplug = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .display_mmio_offset = VLV_DISPLAY_BASE, \
@@ -304,6 +308,7 @@ static const struct intel_device_info intel_cherryview_info = { .has_gmbus_irq = 1, .has_hw_contexts = 1, .has_logical_ring_contexts = 1, + .has_gmch_display = 1, .display_mmio_offset =VLV_DISPLAY_BASE ,GEN_CHV_PIPEOFFSETS , CURSOR_OFFSETS,
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 21/22 drm/i915: Make HWS_NEEDS_PHYSICAL the exception
In reply to Carlos SantaMake the .hws_needs_physical the exception by switching the flag on earlier platforms since they are fewer to support. Remove the flag on later GPUs hardware since they all use GTT hws by default.
Switch the logic as well in the driver to reflect this change
--- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_gpu_error.c | 2 +- drivers/gpu/drm/i915/i915_pci.c | 27 +++++++++++++++++---------- drivers/gpu/drm/i915/intel_ringbuffer.c | 20 ++++++++++---------- 4 files changed, 30 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -2
@@ -631,7 +631,7 @@ struct intel_csr { func(is_i915g) sep \ func(is_i945gm) sep \ func(is_g33) sep \ - func(need_gfx_hws) sep \ + func(hws_needs_physical) sep \ func(is_g4x) sep \ func(is_pineview) sep \ func(is_broadwater) sep \
@@ -2744,7 +2744,7 @@ struct drm_i915_cmd_table {#define HAS_EDRAM (dev) (!!(__I915__(dev)->edram_cap & EDRAM_ENABLED))#define HAS_WT (dev) ((IS_HASWELL(dev) || IS_BROADWELL(dev)) && \ HAS_EDRAM(dev)) -#define I915_NEED_GFX_HWS (dev) (INTEL_INFO(dev)->need_gfx_hws) +#define HWS_NEEDS_PHYSICAL (dev) (INTEL_INFO(dev)->hws_needs_physical)#define HAS_HW_CONTEXTS (dev) (INTEL_INFO(dev)->has_hw_contexts)#define HAS_LOGICAL_RING_CONTEXTS (dev) (INTEL_INFO(dev)->has_logical_ring_contexts)
drivers/gpu/drm/i915/i915_gpu_error.c +1 -1
@@ -1009,7 +1009,7 @@ static void error_record_engine_registers(struct drm_i915_error_state *error,if (INTEL_GEN (dev_priv) >2 ) ee->mode =I915_READ_MODE (engine); -if (I915_NEED_GFX_HWS (dev_priv)) { +if (!HWS_NEEDS_PHYSICAL (dev_priv)) {i915_reg_t mmio;if (IS_GEN7 (dev_priv)) {
drivers/gpu/drm/i915/i915_pci.c +17 -10
@@ -58,6 +58,7 @@ .gen = 2, .num_pipes = 1, \ .has_overlay = 1, .overlay_needs_physical = 1, \ .has_gmch_display = 1, \ + .hws_needs_physical = 1, \ .ring_mask =RENDER_RING , \GEN_DEFAULT_PIPEOFFSETS , \CURSOR_OFFSETS
@@ -95,6 +96,7 @@ static const struct intel_device_info intel_i915g_info = { GEN3_FEATURES, .is_i915g = 1, .cursor_needs_physical = 1, .has_overlay = 1, .overlay_needs_physical = 1, + .hws_needs_physical = 1, };static const struct intel_device_info intel_i915gm_info = {GEN3_FEATURES ,
@@ -103,11 +105,13 @@ static const struct intel_device_info intel_i915gm_info = { .has_overlay = 1, .overlay_needs_physical = 1, .supports_tv = 1, .has_fbc = 1, + .hws_needs_physical = 1, };static const struct intel_device_info intel_i945g_info = {GEN3_FEATURES , .has_hotplug =1 , .cursor_needs_physical =1 , .has_overlay =1 , .overlay_needs_physical =1 , + .hws_needs_physical =1 , };static const struct intel_device_info intel_i945gm_info = {GEN3_FEATURES ,
@@ -116,6 +120,7 @@ static const struct intel_device_info intel_i945gm_info = { .has_overlay = 1, .overlay_needs_physical = 1, .supports_tv = 1, .has_fbc = 1, + .hws_needs_physical = 1, };#define GEN4_FEATURES \
@@ -130,6 +135,7 @@ static const struct intel_device_info intel_i965g_info = { GEN4_FEATURES, .is_broadwater = 1, .has_overlay = 1, + .hws_needs_physical = 1, };static const struct intel_device_info intel_i965gm_info = {
@@ -138,18 +144,19 @@ static const struct intel_device_info intel_i965gm_info = { .is_mobile = 1, .has_fbc = 1, .has_overlay = 1, .supports_tv = 1, + .hws_needs_physical = 1, };static const struct intel_device_info intel_g33_info = {GEN3_FEATURES , .is_g33 =1 , - .need_gfx_hws =1 , .has_hotplug =1 , + .has_hotplug =1 , .has_overlay =1 , };static const struct intel_device_info intel_g45_info = {GEN4_FEATURES , - .is_g4x =1 , .need_gfx_hws =1 , + .is_g4x =1 , .has_pipe_cxsr =1 , .ring_mask =RENDER_RING |BSD_RING , };
@@ -157,7 +164,7 @@ static const struct intel_device_info intel_g45_info = {static const struct intel_device_info intel_gm45_info = {GEN4_FEATURES , .is_g4x =1 , - .is_mobile =1 , .need_gfx_hws =1 , .has_fbc =1 , + .is_mobile =1 , .has_fbc =1 , .has_pipe_cxsr =1 , .supports_tv =1 , .ring_mask =RENDER_RING |BSD_RING ,
@@ -166,13 +173,13 @@ static const struct intel_device_info intel_gm45_info = {static const struct intel_device_info intel_pineview_info = {GEN3_FEATURES , .is_g33 =1 , .is_pineview =1 , .is_mobile =1 , - .need_gfx_hws =1 , .has_hotplug =1 , + .has_hotplug =1 , .has_overlay =1 , };#define GEN5_FEATURES \ .gen = 5, .num_pipes = 2, \ - .need_gfx_hws = 1, .has_hotplug = 1, \ + .has_hotplug = 1, \ .has_gmbus_irq = 1, \ .ring_mask = RENDER_RING | BSD_RING, \ GEN_DEFAULT_PIPEOFFSETS, \
@@ -189,7 +196,7 @@ static const struct intel_device_info intel_ironlake_m_info = {#define GEN6_FEATURES \ .gen = 6, .num_pipes = 2, \ - .need_gfx_hws = 1, .has_hotplug = 1, \ + .has_hotplug = 1, \ .has_fbc = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc = 1, \
@@ -211,7 +218,7 @@ static const struct intel_device_info intel_sandybridge_m_info = {#define GEN7_FEATURES \ .gen = 7, .num_pipes = 3, \ - .need_gfx_hws = 1, .has_hotplug = 1, \ + .has_hotplug = 1, \ .has_fbc = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .has_llc = 1, \
@@ -250,7 +257,7 @@ static const struct intel_device_info intel_ivybridge_q_info = { .has_gmbus_irq = 1, \ .has_hw_contexts = 1, \ .has_gmch_display = 1, \ - .need_gfx_hws = 1, .has_hotplug = 1, \ + .has_hotplug = 1, \ .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ .display_mmio_offset =VLV_DISPLAY_BASE , \ GEN_DEFAULT_PIPEOFFSETS, \
@@ -298,7 +305,7 @@ static const struct intel_device_info intel_broadwell_gt3_info = {static const struct intel_device_info intel_cherryview_info = { .gen =8 , .num_pipes =3 , - .need_gfx_hws =1 , .has_hotplug =1 , + .has_hotplug =1 , .ring_mask =RENDER_RING |BSD_RING |BLT_RING |VEBOX_RING , .is_cherryview =1 , .has_psr =1 ,
@@ -333,7 +340,7 @@ static const struct intel_device_info intel_skylake_gt3_info = {static const struct intel_device_info intel_broxton_info = { .is_broxton =1 , .gen =9 , - .need_gfx_hws =1 , .has_hotplug =1 , + .has_hotplug =1 , .ring_mask =RENDER_RING |BSD_RING |BLT_RING |VEBOX_RING , .num_pipes =3 , .has_ddi =1 ,
drivers/gpu/drm/i915/intel_ringbuffer.c +10 -10
@@ -559,10 +559,10 @@ static int init_ring_common(struct intel_engine_cs *engine) } } -if (I915_NEED_GFX_HWS (dev_priv)) -intel_ring_setup_status_page (engine); -else +if (HWS_NEEDS_PHYSICAL (dev_priv))ring_setup_phys_status_page (engine); +else +intel_ring_setup_status_page (engine);/* Enforce ordering by reading HEAD register back */ I915_READ_HEAD (engine);
@@ -2107,13 +2107,13 @@ static int intel_init_ring_buffer(struct intel_engine_cs *engine) goto error; } -if (I915_NEED_GFX_HWS (dev_priv)) { - ret =init_status_page (engine); +if (HWS_NEEDS_PHYSICAL (dev_priv)) { +WARN_ON (engine->id !=RCS ); + ret =init_phys_status_page (engine);if (ret) goto error; }else { -WARN_ON (engine->id !=RCS ); - ret =init_phys_status_page (engine); + ret =init_status_page (engine);if (ret) goto error; }
@@ -2153,11 +2153,11 @@ void intel_engine_cleanup(struct intel_engine_cs *engine)if (engine->cleanup) engine->cleanup (engine); -if (I915_NEED_GFX_HWS (dev_priv)) { -cleanup_status_page (engine); - }else { +if (HWS_NEEDS_PHYSICAL (dev_priv)) {WARN_ON (engine->id !=RCS );cleanup_phys_status_page (engine); + }else { +cleanup_status_page (engine); }intel_engine_cleanup_common (engine);
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 22/22 drm/i915: Move HAS_GUC definition to platform definition
In reply to Carlos SantaMoving all GPU features to the platform definition allows for
- standard place when adding new features from new platform
- possible to see supported features when dumping struct definitions
--- drivers/gpu/drm/i915/i915_drv.h | 3 ++- drivers/gpu/drm/i915/i915_pci.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +2 -1
@@ -658,6 +658,7 @@ struct intel_csr { func(has_logical_ring_contexts) sep \ func(has_l3_dpf) sep \ func(has_gmch_display) sep \ + func(has_guc) sep \ func(has_pipe_cxsr) sep \ func(has_hotplug) sep \ func(cursor_needs_physical) sep \
@@ -2803,7 +2804,7 @@ struct drm_i915_cmd_table {* command submission once loaded. But these are logically independent * properties, so we have separate macros to test them. */ -#define HAS_GUC (dev) (IS_GEN9(dev)) +#define HAS_GUC (dev) (INTEL_INFO(dev)->has_guc)#define HAS_GUC_UCODE (dev) (HAS_GUC(dev))#define HAS_GUC_SCHED (dev) (HAS_GUC(dev))
drivers/gpu/drm/i915/i915_pci.c +5 -0
@@ -327,6 +327,7 @@ static const struct intel_device_info intel_skylake_info = { .is_skylake = 1, .gen = 9, .has_csr = 1, + .has_guc = 1, };static const struct intel_device_info intel_skylake_gt3_info = {
@@ -334,6 +335,7 @@ static const struct intel_device_info intel_skylake_gt3_info = { .is_skylake = 1, .gen = 9, .has_csr = 1, + .has_guc = 1, .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING, };
@@ -355,6 +357,7 @@ static const struct intel_device_info intel_broxton_info = { .has_gmbus_irq = 1, .has_hw_contexts = 1, .has_logical_ring_contexts = 1, + .has_guc =1 ,GEN_DEFAULT_PIPEOFFSETS ,IVB_CURSOR_OFFSETS , BDW_COLORS,
@@ -365,6 +368,7 @@ static const struct intel_device_info intel_kabylake_info = { .is_kabylake = 1, .gen = 9, .has_csr = 1, + .has_guc = 1, };static const struct intel_device_info intel_kabylake_gt3_info = {
@@ -372,6 +376,7 @@ static const struct intel_device_info intel_kabylake_gt3_info = { .is_kabylake = 1, .gen = 9, .has_csr = 1, + .has_guc = 1, .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING, };
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Ro.CI.BAT: failure for drm/i915: Organize most GPU features by platform (rev4)
In reply to Carlos Santa== Series Details ==
== Series Details ==
Series: drm/i915: Organize most GPU features by platform (rev4)
URL : https://patchwork.freedesktop.org/series/10102/
State : failure
== Summary ==
Series 10102v4 drm/i915: Organize most GPU features by platform
http://patchwork.freedesktop.org/api/1.0/series/10102/revisions/4/mbox
Test kms_cursor_legacy:
Subgroup basic-flip-vs-cursor-legacy:
pass -> FAIL (ro-skl3-i5-6260u)
Subgroup basic-flip-vs-cursor-varying-size:
pass -> FAIL (ro-byt-n2820)
Test kms_flip:
Subgroup basic-flip-vs-wf_vblank:
pass -> FAIL (ro-bdw-i7-5600u)
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
skip -> DMESG-WARN (ro-bdw-i5-5250u)
Subgroup suspend-read-crc-pipe-c:
skip -> DMESG-WARN (ro-bdw-i5-5250u)
Test pm_rpm:
Subgroup basic-pci-d3-state:
pass -> SKIP (fi-snb-i7-2600)
Subgroup basic-rte:
pass -> SKIP (fi-snb-i7-2600)fi-kbl-qkkr total:244 pass:186 dwarn:29 dfail:0 fail:3 skip:26 fi-skl-i7-6700k total:244 pass:208 dwarn:4 dfail:2 fail:2 skip:28 fi-snb-i7-2600 total:244 pass:200 dwarn:0 dfail:0 fail:0 skip:44 ro-bdw-i5-5250u total:240 pass:219 dwarn:3 dfail:0 fail:1 skip:17 ro-bdw-i7-5557U total:240 pass:220 dwarn:2 dfail:0 fail:0 skip:18 ro-bdw-i7-5600u total:240 pass:206 dwarn:0 dfail:0 fail:2 skip:32 ro-bsw-n3050 total:240 pass:194 dwarn:0 dfail:0 fail:4 skip:42 ro-byt-n2820 total:240 pass:197 dwarn:0 dfail:0 fail:3 skip:40 ro-hsw-i3-4010u total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26 ro-hsw-i7-4770r total:240 pass:185 dwarn:0 dfail:0 fail:0 skip:55 ro-ilk1-i5-650 total:235 pass:174 dwarn:0 dfail:0 fail:1 skip:60 ro-ivb-i7-3770 total:240 pass:205 dwarn:0 dfail:0 fail:0 skip:35 ro-ivb2-i7-3770 total:240 pass:209 dwarn:0 dfail:0 fail:0 skip:31 ro-skl3-i5-6260u total:240 pass:222 dwarn:0 dfail:0 fail:4 skip:14
Results at /archive/results/CI_IGT_test/RO_Patchwork_1911/
e45fdef drm-intel-nightly: 2016y-08m-17d-13h-26m-04s UTC integration manifest d108011 drm/i915: Move HAS_GUC definition to platform definition f253ce5 drm/i915: Make HWS_NEEDS_PHYSICAL the exception
30b8810 drm/i915: Move HAS_GMCH_DISPLAY definition to platform daa89de drm/i915: Move HAS_L3_DPF definition to platform definition 4d083cc drm/i915: Move HAS_LOGICAL_RING_CONTEXTS definition to platform 767b07a drm/i915: Move HAS_HW_CONTEXTS definition to platform ea4e5b9 drm/i915: Introduce GEN2_FEATURES for device info
f6a359c drm/i915: Introduce GEN3_FEATURES for device info
4bf5701 drm/i915: Introduce GEN4_FEATURES for device info
8d03144 drm/i915: Move HAS_GMBUS_IRQ definition to platform definition 2e4920d drm/i915: Introduce GEN5_FEATURES for device info
804bd8d drm/i915: Move HAS_DP_MST definition to platform definition ab1e292 drm/i915: Move HAS_RC6p definition to platform definition 596b5bc drm/i915: Move HAS_RC6 definition to platform definition 3804537 drm/i915: Move HAS_RESOURCE_STREAMER definition to platform definition 27590b0 drm/i915 Move HAS_CSR definition to platform definition 0d72dd8 drm/i915: Get rid of HAS_CORE_RING_FREQ
8924dea drm/i915: Remove runtime PM for SNB
f709955 drm/i915: Move HAS_RUNTIME_PM definition to platform f383ee6 drm/i915: Introduce GEN6_FEATURES for device info
39e3765 drm/i915: Remove .is_mobile field from platform struct 2eacad3 drm/i915: Move HAS_PSR definition to platform struct definition
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
All patches reviewed and merged to dinq last week. Thanks for the patches and sorry by the delayed update.
Quoted 67 lines · Carlos Santa
- organize most GPU features so that they are easy to group by platforms. It seems some of the ground work was already done for Gen7 features.
- make most of these GPU features now a
device_infoflag also based on previous work done by others. The idea is here is to have a central place where to add new features, now it should also be possible to see what the supported features are for a given platform by dumping of the struct definitions. The list of the features that were converted to adevice_infoflag include: PSR,RUNTIME_PM,CORE_RING_FREQ, CSR, GUC,RESOURCE_STREAMER, RC6,
RC6p,DP_MST,GMBUS_IRQ,FW_BLC,HW_CONTEXTS,LOGICAL_RING_CONTEXTS,L3_DPF,HWS_NEEDS_PHYSICALandGMCH_DISPLAY.- Changes since v3
* Improve the commit message for
GENX_FEATURESmacro (GEN6,GEN5,GEN4,GEN3,and GEN2)
- drm/i915: IntroduceGEN6_FEATURESfor device info
- drm/i915: IntroduceGEN5_FEATURESfor device info
- drm/i915: IntroduceGEN4_FEATURESfor device info
- drm/i915: IntroduceGEN3_FEATURESfor device info
- drm/i915: IntroduceGEN2_FEATURESfor device info* Split removal of runtime PM for SNB into a separate patch in case it needs to be reverted
- drm/i915: Remove runtime PM for SNB* Fix the way
HAS_LLC()was getting invoked
- Get rid ofHAS_CORE_RING_FREQCarlos Santa (22):
drm/i915: MoveHAS_PSRdefinition to platform struct definition drm/i915: Remove .is_mobile field from platform struct drm/i915: IntroduceGEN6_FEATURESfor device info drm/i915: MoveHAS_RUNTIME_PMdefinition to platform drm/i915: Remove runtime PM for SNB
drm/i915: Get rid ofHAS_CORE_RING_FREQ
drm/i915 MoveHAS_CSRdefinition to platform definition drm/i915: MoveHAS_RESOURCE_STREAMERdefinition to platform definition drm/i915: MoveHAS_RC6definition to platform definition drm/i915: MoveHAS_RC6pdefinition to platform definition drm/i915: MoveHAS_DP_MSTdefinition to platform definition drm/i915: IntroduceGEN5_FEATURESfor device info drm/i915: MoveHAS_GMBUS_IRQdefinition to platform definition drm/i915: IntroduceGEN4_FEATURESfor device info drm/i915: IntroduceGEN3_FEATURESfor device info drm/i915: IntroduceGEN2_FEATURESfor device info drm/i915: MoveHAS_HW_CONTEXTSdefinition to platform drm/i915: MoveHAS_LOGICAL_RING_CONTEXTSdefinition to platform drm/i915: MoveHAS_L3_DPFdefinition to platform definition drm/i915: MoveHAS_GMCH_DISPLAYdefinition to platform drm/i915: MakeHWS_NEEDS_PHYSICALthe exception
drm/i915: MoveHAS_GUCdefinition to platform definitionarch/x86/kernel/early-quirks.c | 9 +- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 57 +++---- drivers/gpu/drm/i915/i915_gpu_error.c | 2 +- drivers/gpu/drm/i915/i915_pci.c | 285 +++++++++++++++++--------------- drivers/gpu/drm/i915/intel_ringbuffer.c | 20 +-- include/drm/i915_pciids.h | 38 ++--- 7 files changed, 209 insertions(+), 204 deletions(-)--
1.9.1_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Rodrigo Vivi Blog: http://blog.vivi.eng.br _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx