drm/i915: Make 48bit full ppgtt configuration generic (v10)
PATCH 1/3 drm/i915: Make 48bit full ppgtt configuration generic (v10)
48 bit ppgtt device configuration is really just extended address range full ppgtt and may actually be something other than 48 bits.
Change HAS_FULL_48BIT_PPGTT() to HAS_4LVL_PPGTT() to better describe that a 4 level walk table extended range PPGTT is being used. Add a new device info field that specifies the number of bits to prepare for cases where the range is not 32 or 48 bits. Also rename other functions and comments from 48bit to 4-level.
Making use of the device info address range for gen6 highlights simularities in the gen6 and gen8 code paths so move the common code in to a common function.
v2: Keep HAS_FULL_PPGTT() unchanged (Chris)
v3: Simplify condition in gen8_ppgtt_create() (Chris)
Remove unnecessary line coninuations (Bob)
Rename functions/defines/comments from 48bit to 4lvl (Rodrigo/Bob)
v4: Rename FULL_4LVL_PPGTT to simply 4LVL_PPGTT (Rodrigo)
Be explised in setting vm.total to 1ULL << 32 (Rodrigo) Gen 7 is 31 bits, not 32 (Chris)
v5: Mock device is 64b(63b) not 48b (Chris)
v6: Rebase to latest drm-tip (Bob)
v7: Combine common code for gen6/gen8 ppgtt create (Chris)
Improve comment on device info field (Chris)
v8: gvt is actually full ppgtt (both 3-lvl and 4-lvl) so name cap
define appropriately (Chris)
v9: rebase on latest
v10: fix missed vgpu change of FULL_48BIT to FULL in CAPS define (Bob)
--- drivers/gpu/drm/i915/gvt/vgpu.c | 2 +- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 130 ++++++++---------- drivers/gpu/drm/i915/i915_gem_gtt.h | 4 +- drivers/gpu/drm/i915/i915_pci.c | 6 + drivers/gpu/drm/i915/i915_pvinfo.h | 2 +- drivers/gpu/drm/i915/i915_vgpu.c | 4 +- drivers/gpu/drm/i915/i915_vgpu.h | 2 +- drivers/gpu/drm/i915/intel_device_info.c | 1 + drivers/gpu/drm/i915/intel_device_info.h | 3 + drivers/gpu/drm/i915/intel_lrc.c | 6 +- drivers/gpu/drm/i915/selftests/huge_pages.c | 8 +- .../gpu/drm/i915/selftests/mock_gem_device.c | 2 + 15 files changed, 85 insertions(+), 91 deletions(-)
drivers/gpu/drm/i915/gvt/vgpu.c +1 -1
@@ -44,7 +44,7 @@ void populate_pvinfo_page(struct intel_vgpu *vgpu)vgpu_vreg_t (vgpu,vgtif_reg (display_ready)) =0 ;vgpu_vreg_t (vgpu,vgtif_reg (vgt_id)) = vgpu->id; -vgpu_vreg_t (vgpu,vgtif_reg (vgt_caps)) =VGT_CAPS_FULL_48BIT_PPGTT ; +vgpu_vreg_t (vgpu,vgtif_reg (vgt_caps)) =VGT_CAPS_FULL_PPGTT ;vgpu_vreg_t (vgpu,vgtif_reg (vgt_caps)) |=VGT_CAPS_HWSP_EMULATION ;vgpu_vreg_t (vgpu,vgtif_reg (vgt_caps)) |=VGT_CAPS_HUGE_GTT ;
drivers/gpu/drm/i915/i915_drv.c +1 -1
@@ -1367,7 +1367,7 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)if (HAS_PPGTT (dev_priv)) {if (intel_vgpu_active (dev_priv) && - !intel_vgpu_has_full_48bit_ppgtt (dev_priv)) { + !intel_vgpu_has_4lvl_ppgtt (dev_priv)) {i915_report_error (dev_priv,"incompatible vGPU found, support for isolated ppGTT required\n" );return -ENXIO ;
drivers/gpu/drm/i915/i915_drv.h +1 -1
@@ -2587,7 +2587,7 @@ intel_info(const struct drm_i915_private *dev_priv) (INTEL_PPGTT(dev_priv) != INTEL_PPGTT_NONE)#define HAS_FULL_PPGTT (dev_priv) \ (INTEL_PPGTT(dev_priv) >= INTEL_PPGTT_FULL) -#define HAS_FULL_48BIT_PPGTT (dev_priv) \ +#define HAS_4LVL_PPGTT (dev_priv) \ (INTEL_PPGTT(dev_priv) >= INTEL_PPGTT_FULL_4LVL)#define HAS_PAGE_SIZES (dev_priv, sizes) ({ \
drivers/gpu/drm/i915/i915_gem_context.c +1 -1
@@ -307,7 +307,7 @@ static u32 default_desc_template(const struct drm_i915_private *i915, desc =GEN8_CTX_VALID |GEN8_CTX_PRIVILEGE ; address_mode =INTEL_LEGACY_32B_CONTEXT ; -if (ppgtt &&i915_vm_is_48bit (&ppgtt->vm)) +if (ppgtt &&i915_vm_is_4lvl (&ppgtt->vm)) address_mode =INTEL_LEGACY_64B_CONTEXT ; desc |= address_mode <<GEN8_CTX_ADDRESSING_MODE_SHIFT ;
drivers/gpu/drm/i915/i915_gem_gtt.c +56 -74
204 lines not on this page · raw message
drivers/gpu/drm/i915/i915_gem_gtt.h +2 -2
@@ -365,7 +365,7 @@ struct i915_address_space {#define i915_is_ggtt (vm) ((vm)->is_ggtt)static inline bool -i915_vm_is_48bit (const struct i915_address_space *vm) +i915_vm_is_4lvl (const struct i915_address_space *vm) {return (vm->total -1 ) >>32 ; }
@@ -507,7 +507,7 @@ static inline u32 gen6_pde_index(u32 addr)static inline unsigned int i915_pdpes_per_pdp (const struct i915_address_space *vm) { -if (i915_vm_is_48bit (vm)) +if (i915_vm_is_4lvl (vm))return GEN8_PML4ES_PER_PML4 ;return GEN8_3LVL_PDPES ;
drivers/gpu/drm/i915/i915_pci.c +6 -0
@@ -250,6 +250,7 @@ static const struct intel_device_info intel_ironlake_m_info = { .has_rc6 = 1, \ .has_rc6p = 1, \ .ppgtt = INTEL_PPGTT_ALIASING, \ + .ppgtt_bits =31 , \GEN_DEFAULT_PIPEOFFSETS , \GEN_DEFAULT_PAGE_SIZES , \CURSOR_OFFSETS
@@ -295,6 +296,7 @@ static const struct intel_device_info intel_sandybridge_m_gt2_info = { .has_rc6 = 1, \ .has_rc6p = 1, \ .ppgtt = INTEL_PPGTT_FULL, \ + .ppgtt_bits =31 , \GEN_DEFAULT_PIPEOFFSETS , \GEN_DEFAULT_PAGE_SIZES , \IVB_CURSOR_OFFSETS
@@ -348,6 +350,7 @@ static const struct intel_device_info intel_valleyview_info = { .has_gmch_display = 1, .has_hotplug = 1, .ppgtt = INTEL_PPGTT_FULL, + .ppgtt_bits = 31, .has_snoop = true, .has_coherent_ggtt = false, .ring_mask = RENDER_RING | BSD_RING | BLT_RING,
@@ -395,6 +398,7 @@ static const struct intel_device_info intel_haswell_gt3_info = { I915_GTT_PAGE_SIZE_2M, \ .has_logical_ring_contexts = 1, \ .ppgtt = INTEL_PPGTT_FULL_4LVL, \ + .ppgtt_bits = 48, \ .has_64bit_reloc =1 , \ .has_reset_engine = 1
@@ -439,6 +443,7 @@ static const struct intel_device_info intel_cherryview_info = { .has_logical_ring_contexts = 1, .has_gmch_display = 1, .ppgtt = INTEL_PPGTT_FULL, + .ppgtt_bits = 32, .has_reset_engine = 1, .has_snoop = true, .has_coherent_ggtt = false,
@@ -515,6 +520,7 @@ static const struct intel_device_info intel_skylake_gt4_info = { .has_logical_ring_preemption = 1, \ .has_guc = 1, \ .ppgtt = INTEL_PPGTT_FULL_4LVL, \ + .ppgtt_bits = 48, \ .has_reset_engine = 1, \ .has_snoop = true, \ .has_coherent_ggtt = false, \
drivers/gpu/drm/i915/i915_pvinfo.h +1 -1
@@ -52,7 +52,7 @@ enum vgt_g2v_type {/* * VGT capabilities type */ -#define VGT_CAPS_FULL_48BIT_PPGTT BIT(2) +#define VGT_CAPS_FULL_PPGTT BIT(2)#define VGT_CAPS_HWSP_EMULATION BIT(3)#define VGT_CAPS_HUGE_GTT BIT(4)
drivers/gpu/drm/i915/i915_vgpu.c +2 -2
@@ -81,9 +81,9 @@ void i915_check_vgpu(struct drm_i915_private *dev_priv)DRM_INFO ("Virtual GPU for Intel GVT-g detected.\n" ); } -bool intel_vgpu_has_full_48bit_ppgtt (struct drm_i915_private *dev_priv) +bool intel_vgpu_has_4lvl_ppgtt (struct drm_i915_private *dev_priv) { -return dev_priv->vgpu.caps &VGT_CAPS_FULL_48BIT_PPGTT ; +return dev_priv->vgpu.caps &VGT_CAPS_FULL_PPGTT ; }struct _balloon_info_ {
drivers/gpu/drm/i915/i915_vgpu.h +1 -1
@@ -28,7 +28,7 @@void i915_check_vgpu (struct drm_i915_private *dev_priv); -bool intel_vgpu_has_full_48bit_ppgtt (struct drm_i915_private *dev_priv); +bool intel_vgpu_has_4lvl_ppgtt (struct drm_i915_private *dev_priv);static inline bool intel_vgpu_has_hwsp_emulation (struct drm_i915_private *dev_priv)
drivers/gpu/drm/i915/intel_device_info.c +1 -0
@@ -122,6 +122,7 @@ void intel_device_info_dump(const struct intel_device_info *info, info->gen);intel_device_info_dump_flags (info, p); +drm_printf (p,"ppgttbits=0x%02x\n" , info->ppgtt_bits); } void intel_device_info_dump_topology(const struct sseu_dev_info *sseu,
drivers/gpu/drm/i915/intel_device_info.h +3 -0
@@ -192,6 +192,9 @@ struct intel_device_info {u16 degamma_lut_size;u16 gamma_lut_size; } color; + +/* Full PPGTT address range size */ +int ppgtt_bits; };struct intel_driver_caps {
drivers/gpu/drm/i915/intel_lrc.c +3 -3
@@ -385,7 +385,7 @@ static u64 execlists_update_context(struct i915_request *rq)* PML4 is allocated during ppgtt init, so this is not needed * in 48-bit mode. */ -if (!i915_vm_is_48bit (&ppgtt->vm)) +if (!i915_vm_is_4lvl (&ppgtt->vm))execlists_update_context_pdps (ppgtt, reg_state);return ce->lrc_desc;
@@ -1866,7 +1866,7 @@ static int gen8_emit_bb_start(struct i915_request *rq,* not idle). PML4 is allocated during ppgtt init so this is * not needed in 48-bit.*/ if ((intel_engine_flag (rq->engine) & rq->gem_context->ppgtt->pd_dirty_rings) && - !i915_vm_is_48bit (&rq->gem_context->ppgtt->vm) && + !i915_vm_is_4lvl (&rq->gem_context->ppgtt->vm) && !intel_vgpu_active (rq->i915)) { ret =intel_logical_ring_emit_pdps (rq);if (ret)
@@ -2538,7 +2538,7 @@ static void execlists_init_reg_state(u32 *regs,CTX_REG (regs,CTX_PDP0_UDW ,GEN8_RING_PDP_UDW (engine,0 ),0 );CTX_REG (regs,CTX_PDP0_LDW ,GEN8_RING_PDP_LDW (engine,0 ),0 ); -if (i915_vm_is_48bit (&ctx->ppgtt->vm)) { +if (i915_vm_is_4lvl (&ctx->ppgtt->vm)) {/* 64b PPGTT (48bit canonical) * PDP0_DESCRIPTOR contains the base address to PML4 and * other PDP Descriptors are ignored.
drivers/gpu/drm/i915/selftests/huge_pages.c +4 -4
@@ -1450,8 +1450,8 @@ static int igt_ppgtt_pin_update(void *arg)* huge-gtt-pages. */ -if (!HAS_FULL_48BIT_PPGTT (dev_priv)) { -pr_info ("48b PPGTT not supported, skipping\n" ); +if (!HAS_4LVL_PPGTT (dev_priv)) { +pr_info ("Extended range PPGTT not supported, skipping\n" );return 0 ; }
@@ -1723,8 +1723,8 @@ int i915_gem_huge_page_mock_selftests(void) goto out_unlock; } -if (!i915_vm_is_48bit (&ppgtt->vm)) { -pr_err ("failed to create 48b PPGTT\n" ); +if (!i915_vm_is_4lvl (&ppgtt->vm)) { +pr_err ("failed to create extended PPGTT\n" ); err = -EINVAL ; goto out_close; }
drivers/gpu/drm/i915/selftests/mock_gem_device.c +2 -0
@@ -181,6 +181,8 @@ struct drm_i915_private *mock_gem_device(void)I915_GTT_PAGE_SIZE_64K |I915_GTT_PAGE_SIZE_2M ; +mkwrite_device_info (i915)->ppgtt_bits =63 ; +mock_uncore_init (i915);i915_gem_init__mm (i915);
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/3 drm/i915: Remove HAS_4LVL_PPGTT
We no longer need to differentiate between 4LVL and FULL ppgtt as the number of bits in the address range provides that information now.
--- drivers/gpu/drm/i915/i915_drv.h | 2 -- drivers/gpu/drm/i915/i915_pci.c | 4 ++-- drivers/gpu/drm/i915/intel_device_info.h | 1 - drivers/gpu/drm/i915/selftests/huge_pages.c | 4 ++-- 4 files changed, 4 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +0 -2
@@ -2587,8 +2587,6 @@ intel_info(const struct drm_i915_private *dev_priv) (INTEL_PPGTT(dev_priv) != INTEL_PPGTT_NONE)#define HAS_FULL_PPGTT (dev_priv) \ (INTEL_PPGTT(dev_priv) >= INTEL_PPGTT_FULL) -#define HAS_4LVL_PPGTT (dev_priv) \ - (INTEL_PPGTT(dev_priv) >= INTEL_PPGTT_FULL_4LVL)#define HAS_PAGE_SIZES (dev_priv, sizes) ({ \ GEM_BUG_ON((sizes) == 0); \
drivers/gpu/drm/i915/i915_pci.c +2 -2
@@ -397,7 +397,7 @@ static const struct intel_device_info intel_haswell_gt3_info = { .page_sizes = I915_GTT_PAGE_SIZE_4K | \ I915_GTT_PAGE_SIZE_2M, \ .has_logical_ring_contexts = 1, \ - .ppgtt = INTEL_PPGTT_FULL_4LVL, \ + .ppgtt = INTEL_PPGTT_FULL, \ .ppgtt_bits = 48, \ .has_64bit_reloc =1 , \ .has_reset_engine = 1
@@ -519,7 +519,7 @@ static const struct intel_device_info intel_skylake_gt4_info = { .has_logical_ring_contexts = 1, \ .has_logical_ring_preemption = 1, \ .has_guc = 1, \ - .ppgtt = INTEL_PPGTT_FULL_4LVL, \ + .ppgtt = INTEL_PPGTT_FULL, \ .ppgtt_bits = 48, \ .has_reset_engine = 1, \ .has_snoop = true, \
drivers/gpu/drm/i915/intel_device_info.h +0 -1
@@ -80,7 +80,6 @@ enum intel_ppgtt {INTEL_PPGTT_NONE =I915_GEM_PPGTT_NONE ,INTEL_PPGTT_ALIASING =I915_GEM_PPGTT_ALIASING , INTEL_PPGTT_FULL = I915_GEM_PPGTT_FULL, - INTEL_PPGTT_FULL_4LVL, };#define DEV_INFO_FOR_EACH_FLAG (func) \
drivers/gpu/drm/i915/selftests/huge_pages.c +2 -2
@@ -1450,7 +1450,7 @@ static int igt_ppgtt_pin_update(void *arg)* huge-gtt-pages. */ -if (!HAS_4LVL_PPGTT (dev_priv)) { +if (INTEL_INFO (dev_priv)->ppgtt_bits <=32 ) {pr_info ("Extended range PPGTT not supported, skipping\n" );return 0 ; }
@@ -1711,7 +1711,7 @@ int i915_gem_huge_page_mock_selftests(void)return -ENOMEM ;/* Pretend to be a device which supports the 48b PPGTT */ -mkwrite_device_info (dev_priv)->ppgtt =INTEL_PPGTT_FULL_4LVL ; +mkwrite_device_info (dev_priv)->ppgtt =INTEL_PPGTT_FULL ; pdev = dev_priv->drm.pdev;dma_coerce_mask_and_coherent (&pdev->dev,DMA_BIT_MASK (39 ));
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/3 drm/i915: Remove HAS_FULL_PPGTT and device_info.ppgtt enum (v2)
In reply to Bob PaauweWith the address range being specified for each platform, we can use that instead of the .ppgtt enum to handle the differences between 3 level and 4 level PPGTT. In most cases, we really only care if the platform supports PPGTT or not. Because of this, we can now remove the HAS_FULL_PPGTT macro and the device info ppgtt field.
Aliasing PPGTT used by GEN 6 is a bit of an exception. For those cases, it makes just as much sense to check if we're running on GEN 6 as it does to check a device info flag.
v2: Reword the commit message to make it correct wrt aliasing ppgtt (Chris)
--- drivers/gpu/drm/i915/i915_drv.c | 7 ++++++- drivers/gpu/drm/i915/i915_drv.h | 8 +++++--- drivers/gpu/drm/i915/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +- drivers/gpu/drm/i915/i915_pci.c | 6 ------ drivers/gpu/drm/i915/intel_device_info.c | 2 +- drivers/gpu/drm/i915/intel_device_info.h | 9 +-------- drivers/gpu/drm/i915/selftests/huge_pages.c | 4 ++-- drivers/gpu/drm/i915/selftests/i915_gem_evict.c | 2 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 2 +- 10 files changed, 19 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +6 -1
@@ -345,7 +345,12 @@ static int i915_getparam_ioctl(struct drm_device *dev, void *data, value =HAS_WT (dev_priv);break ;case I915_PARAM_HAS_ALIASING_PPGTT : - value =min_t (int,INTEL_PPGTT (dev_priv),I915_GEM_PPGTT_FULL ); +if (INTEL_GEN (dev_priv) <6 ) + value =I915_GEM_PPGTT_NONE ; +else if (IS_GEN6 (dev_priv)) + value =I915_GEM_PPGTT_ALIASING ; +else + value =I915_GEM_PPGTT_FULL ;break ;case I915_PARAM_HAS_SEMAPHORES : value =HAS_LEGACY_SEMAPHORES (dev_priv);
drivers/gpu/drm/i915/i915_drv.h +5 -3
@@ -2582,11 +2582,13 @@ intel_info(const struct drm_i915_private *dev_priv)#define HAS_EXECLISTS (dev_priv) HAS_LOGICAL_RING_CONTEXTS(dev_priv) -#define INTEL_PPGTT (dev_priv) (INTEL_INFO(dev_priv)->ppgtt) +#define INTEL_PPGTT_BITS (dev_priv) (INTEL_INFO(dev_priv)->ppgtt_bits)#define HAS_PPGTT (dev_priv) \ - (INTEL_PPGTT(dev_priv) != INTEL_PPGTT_NONE) + (INTEL_PPGTT_BITS(dev_priv) != 0) +/* #define HAS_FULL_PPGTT(dev_priv) \ - (INTEL_PPGTT(dev_priv) >= INTEL_PPGTT_FULL) +(INTEL_PPGTT_BITS(dev_priv) >= 31) +*/ #define HAS_PAGE_SIZES (dev_priv, sizes) ({ \ GEM_BUG_ON((sizes) == 0); \
drivers/gpu/drm/i915/i915_gem_context.c +1 -1
@@ -414,7 +414,7 @@ i915_gem_create_context(struct drm_i915_private *dev_priv,if (IS_ERR (ctx))return ctx; -if (HAS_FULL_PPGTT (dev_priv)) { +if (INTEL_GEN (dev_priv) >6 ) {struct i915_hw_ppgtt *ppgtt; ppgtt =i915_ppgtt_create (dev_priv, file_priv);
drivers/gpu/drm/i915/i915_gem_gtt.c +1 -1
@@ -2877,7 +2877,7 @@ int i915_gem_init_ggtt(struct drm_i915_private *dev_priv)/* And finally clear the reserved guard page */ ggtt->vm.clear_range (&ggtt->vm, ggtt->vm.total -PAGE_SIZE ,PAGE_SIZE ); -if (INTEL_PPGTT (dev_priv) ==INTEL_PPGTT_ALIASING ) { +if (IS_GEN6 (dev_priv)) { ret =i915_gem_init_aliasing_ppgtt (dev_priv);if (ret) goto err;
drivers/gpu/drm/i915/i915_pci.c +0 -6
@@ -249,7 +249,6 @@ static const struct intel_device_info intel_ironlake_m_info = { .has_llc = 1, \ .has_rc6 = 1, \ .has_rc6p = 1, \ - .ppgtt = INTEL_PPGTT_ALIASING, \ .ppgtt_bits =31 , \GEN_DEFAULT_PIPEOFFSETS , \ GEN_DEFAULT_PAGE_SIZES, \
@@ -295,7 +294,6 @@ static const struct intel_device_info intel_sandybridge_m_gt2_info = { .has_llc = 1, \ .has_rc6 = 1, \ .has_rc6p = 1, \ - .ppgtt = INTEL_PPGTT_FULL, \ .ppgtt_bits =31 , \GEN_DEFAULT_PIPEOFFSETS , \ GEN_DEFAULT_PAGE_SIZES, \
@@ -349,7 +347,6 @@ static const struct intel_device_info intel_valleyview_info = { .has_rc6 = 1, .has_gmch_display = 1, .has_hotplug = 1, - .ppgtt = INTEL_PPGTT_FULL, .ppgtt_bits = 31, .has_snoop = true, .has_coherent_ggtt = false,
@@ -397,7 +394,6 @@ static const struct intel_device_info intel_haswell_gt3_info = { .page_sizes = I915_GTT_PAGE_SIZE_4K | \ I915_GTT_PAGE_SIZE_2M, \ .has_logical_ring_contexts = 1, \ - .ppgtt = INTEL_PPGTT_FULL, \ .ppgtt_bits = 48, \ .has_64bit_reloc =1 , \ .has_reset_engine = 1
@@ -442,7 +438,6 @@ static const struct intel_device_info intel_cherryview_info = { .has_rc6 = 1, .has_logical_ring_contexts = 1, .has_gmch_display = 1, - .ppgtt = INTEL_PPGTT_FULL, .ppgtt_bits = 32, .has_reset_engine = 1, .has_snoop = true,
@@ -519,7 +514,6 @@ static const struct intel_device_info intel_skylake_gt4_info = { .has_logical_ring_contexts = 1, \ .has_logical_ring_preemption = 1, \ .has_guc = 1, \ - .ppgtt = INTEL_PPGTT_FULL, \ .ppgtt_bits = 48, \ .has_reset_engine = 1, \ .has_snoop = true, \
drivers/gpu/drm/i915/intel_device_info.c +1 -1
@@ -857,7 +857,7 @@ void intel_device_info_runtime_init(struct intel_device_info *info)if (IS_GEN6 (dev_priv) &&intel_vtd_active ()) {DRM_INFO ("Disabling ppGTT for VT-d support\n" ); - info->ppgtt =INTEL_PPGTT_NONE ; + info->ppgtt_bits =0 ; }/* Initialize command stream timestamp frequency */
drivers/gpu/drm/i915/intel_device_info.h +1 -8
@@ -76,12 +76,6 @@ enum intel_platform { INTEL_MAX_PLATFORMS }; -enum intel_ppgtt { -INTEL_PPGTT_NONE =I915_GEM_PPGTT_NONE , -INTEL_PPGTT_ALIASING =I915_GEM_PPGTT_ALIASING , -INTEL_PPGTT_FULL =I915_GEM_PPGTT_FULL , -}; -#define DEV_INFO_FOR_EACH_FLAG (func) \ func(is_mobile); \ func(is_lp); \
@@ -159,7 +153,6 @@ struct intel_device_info {enum intel_platform platform;u32 platform_mask; -enum intel_ppgtt ppgtt;unsigned int page_sizes;/* page sizes supported by the HW */ u32 display_mmio_offset;
@@ -192,7 +185,7 @@ struct intel_device_info {u16 gamma_lut_size; } color; -/* Full PPGTT address range size */ +/* PPGTT address range size in number of bits */ int ppgtt_bits; };
drivers/gpu/drm/i915/selftests/huge_pages.c +2 -2
@@ -1710,8 +1710,8 @@ int i915_gem_huge_page_mock_selftests(void)if (!dev_priv)return -ENOMEM ; -/* Pretend to be a device which supports the 48b PPGTT */ -mkwrite_device_info (dev_priv)->ppgtt =INTEL_PPGTT_FULL ; +/* Pretend to be a device which supports the 63b PPGTT */ +mkwrite_device_info (dev_priv)->ppgtt_bits =63 ; pdev = dev_priv->drm.pdev;dma_coerce_mask_and_coherent (&pdev->dev,DMA_BIT_MASK (39 ));
drivers/gpu/drm/i915/selftests/i915_gem_evict.c +1 -1
@@ -351,7 +351,7 @@ static int igt_evict_contexts(void *arg)* where the GTT space of the request is separate from the GGTT * allocation required to build the request. */ -if (!HAS_FULL_PPGTT (i915)) +if (INTEL_GEN (i915) <=6 )return 0 ;mutex_lock (&i915->drm.struct_mutex);
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +1 -1
@@ -1001,7 +1001,7 @@ static int exercise_ppgtt(struct drm_i915_private *dev_priv,IGT_TIMEOUT (end_time);int err; -if (!HAS_FULL_PPGTT (dev_priv)) +if (INTEL_GEN (dev_priv) <=6 )return 0 ; file =mock_file (dev_priv);
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.SPARSE: warning for series starting with [1/3,CI] drm/i915: Make 48bit full ppgtt configuration generic (v10)
In reply to Bob Paauwe== Series Details ==
== Series Details ==
Series: series starting with [1/3,CI] drm/i915: Make 48bit full ppgtt configuration generic (v10)
URL : https://patchwork.freedesktop.org/series/52309/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: Make 48bit full ppgtt configuration generic (v10) -./include/linux/slab.h:332:43: warning: dubious: x & !y
Commit: drm/i915: Remove HAS_4LVL_PPGTT -drivers/gpu/drm/i915/selftests/../i915_drv.h:3714:16: warning: expression using sizeof(void) +drivers/gpu/drm/i915/selftests/../i915_drv.h:3712:16: warning: expression using sizeof(void)
Commit: drm/i915: Remove HAS_FULL_PPGTT and device_info.ppgtt enum (v2) -O:drivers/gpu/drm/i915/i915_drv.c:348:25: warning: expression using sizeof(void) -drivers/gpu/drm/i915/selftests/../i915_drv.h:3712:16: warning: expression using sizeof(void) +drivers/gpu/drm/i915/selftests/../i915_drv.h:3714:16: warning: expression using sizeof(void)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [1/3,CI] drm/i915: Make 48bit full ppgtt configuration generic (v10)
In reply to Bob Paauwe== Series Details ==
== Series Details ==
Series: series starting with [1/3,CI] drm/i915: Make 48bit full ppgtt configuration generic (v10)
URL : https://patchwork.freedesktop.org/series/52309/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_5116 -> Patchwork_10798 =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_10798 need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_10798, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/52309/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_10798:
=== IGT changes ===
==== Warnings ====
igt@drv_selftest@live_guc:
fi-skl-iommu: SKIP -> PASS +1== Known issues ==
Here are the changes found in Patchwork_10798 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@drv_selftest@live_coherency:
fi-gdg-551: PASS -> DMESG-FAIL (fdo#107164)
igt@gem_ctx_create@basic-files:
fi-icl-u2: PASS -> DMESG-WARN (fdo#107724)
igt@kms_chamelium@dp-crc-fast:
fi-kbl-7500u: PASS -> DMESG-FAIL (fdo#103841)
igt@kms_flip@basic-flip-vs-modeset:
fi-hsw-4770r: PASS -> DMESG-WARN (fdo#105602)
igt@kms_frontbuffer_tracking@basic:
fi-byt-clapper: PASS -> FAIL (fdo#103167)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
fi-byt-clapper: PASS -> FAIL (fdo#103191, fdo#107362)
==== Possible fixes ====
igt@drv_selftest@live_hangcheck:
fi-skl-iommu: INCOMPLETE (fdo#108602) -> PASS
igt@drv_selftest@live_hugepages:
fi-skl-6700k2: INCOMPLETE -> PASS
igt@kms_chamelium@common-hpd-after-suspend:
fi-skl-6700k2: TIMEOUT -> PASS
igt@kms_flip@basic-plain-flip:
fi-ilk-650: DMESG-WARN (fdo#106387) -> PASS
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
fi-byt-clapper: FAIL (fdo#103191, fdo#107362) -> PASS
==== Warnings ====
igt@drv_selftest@live_contexts:
fi-icl-u2: DMESG-FAIL (fdo#108569) -> INCOMPLETE (fdo#108315) fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#103841 https://bugs.freedesktop.org/show_bug.cgi?id=103841
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#106387 https://bugs.freedesktop.org/show_bug.cgi?id=106387
fdo#107164 https://bugs.freedesktop.org/show_bug.cgi?id=107164
fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
fdo#107724 https://bugs.freedesktop.org/show_bug.cgi?id=107724
fdo#108315 https://bugs.freedesktop.org/show_bug.cgi?id=108315
fdo#108569 https://bugs.freedesktop.org/show_bug.cgi?id=108569
fdo#108602 https://bugs.freedesktop.org/show_bug.cgi?id=108602
== Participating hosts (51 -> 47) ==
Additional (1): fi-glk-j4005
Missing (5): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600
== Build changes ==
* Linux: CI_DRM_5116 -> Patchwork_10798
CI_DRM_5116: ade66f7f60026c1c7e68a12ce07d5d4000afce13 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4714: cab148ca3ec904a94d0cd43476cf7e1f8663f906 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10798: 1242657587d47333de7bb643658756071a55a6a6 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
1242657587d4 drm/i915: Remove HAS_FULL_PPGTT and device_info.ppgtt enum (v2) cc724d430f0f drm/i915: Remove HAS_4LVL_PPGTTf162ec34469f drm/i915: Make 48bit full ppgtt configuration generic (v10)
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10798/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for series starting with [1/3,CI] drm/i915: Make 48bit full ppgtt configuration generic (v10)
In reply to Bob Paauwe== Series Details ==
== Series Details ==
Series: series starting with [1/3,CI] drm/i915: Make 48bit full ppgtt configuration generic (v10)
URL : https://patchwork.freedesktop.org/series/52309/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_5116_full -> Patchwork_10798_full =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_10798_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_10798_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_10798_full:
=== IGT changes ===
==== Warnings ====
igt@kms_atomic_interruptible@universal-setplane-cursor:
shard-snb: SKIP -> PASS +2
igt@pm_rc6_residency@rc6-accuracy:
shard-kbl: PASS -> SKIP== Known issues ==
Here are the changes found in Patchwork_10798_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_exec_schedule@pi-ringfull-blt:
shard-skl: NOTRUN -> FAIL (fdo#103158)
igt@gem_render_copy_redux@normal:
shard-kbl: PASS -> INCOMPLETE (fdo#103665, fdo#106650)
igt@kms_atomic_transition@1x-modeset-transitions-nonblocking:
shard-skl: NOTRUN -> FAIL (fdo#108228, fdo#108470)
igt@kms_available_modes_crc@available_mode_test_crc:
shard-snb: NOTRUN -> FAIL (fdo#106641)
igt@kms_busy@extended-modeset-hang-newfb-render-a:
shard-snb: NOTRUN -> DMESG-WARN (fdo#107956)
igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-a:
shard-skl: NOTRUN -> DMESG-WARN (fdo#107956) +1
igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-c:
shard-glk: NOTRUN -> DMESG-WARN (fdo#107956)
igt@kms_cursor_crc@cursor-256x256-onscreen:
shard-skl: PASS -> FAIL (fdo#103232)
igt@kms_cursor_crc@cursor-64x21-sliding:
shard-skl: NOTRUN -> FAIL (fdo#103232) +2
igt@kms_flip@flip-vs-expired-vblank:
shard-glk: PASS -> FAIL (fdo#102887, fdo#105363)
igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-mmap-cpu:
shard-skl: PASS -> FAIL (fdo#105682)
igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw:
shard-skl: NOTRUN -> FAIL (fdo#105682)
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-pwrite:
shard-glk: PASS -> FAIL (fdo#103167)
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-render:
shard-apl: PASS -> FAIL (fdo#103167)
igt@kms_frontbuffer_tracking@fbc-rgb565-draw-render:
shard-skl: NOTRUN -> FAIL (fdo#103167) +3
igt@kms_frontbuffer_tracking@fbcpsr-1p-rte:
shard-skl: PASS -> FAIL (fdo#105682, fdo#103167)
igt@kms_frontbuffer_tracking@psr-1p-primscrn-indfb-msflip-blt:
shard-skl: PASS -> FAIL (fdo#103167)
igt@kms_plane@pixel-format-pipe-b-planes:
shard-skl: NOTRUN -> DMESG-WARN (fdo#106885) +2
igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
shard-skl: PASS -> FAIL (fdo#107815, fdo#108145)
igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
shard-skl: NOTRUN -> FAIL (fdo#107815, fdo#108145) +1
igt@kms_plane_alpha_blend@pipe-b-alpha-opaque-fb:
shard-glk: NOTRUN -> FAIL (fdo#108145)
igt@kms_plane_alpha_blend@pipe-b-alpha-transparant-fb:
shard-skl: NOTRUN -> FAIL (fdo#108145) +1
igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
shard-skl: PASS -> FAIL (fdo#107815) +1
igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
shard-apl: PASS -> FAIL (fdo#103166) +1
igt@kms_plane_multiple@atomic-pipe-a-tiling-yf:
shard-glk: PASS -> FAIL (fdo#103166)
igt@kms_rotation_crc@primary-rotation-90:
shard-skl: NOTRUN -> FAIL (fdo#103925, fdo#107815)
igt@kms_setmode@basic:
shard-snb: NOTRUN -> FAIL (fdo#99912)
igt@kms_vblank@pipe-c-ts-continuation-dpms-suspend:
shard-skl: PASS -> INCOMPLETE (fdo#104108, fdo#107773)
igt@perf_pmu@busy-start-vcs0:
shard-apl: PASS -> DMESG-WARN (fdo#103558, fdo#105602)
igt@pm_rpm@system-suspend:
shard-skl: PASS -> INCOMPLETE (fdo#107807, fdo#104108)
==== Possible fixes ====
igt@gem_ppgtt@blt-vs-render-ctx0:
shard-skl: TIMEOUT (fdo#108039) -> PASS
igt@kms_cursor_crc@cursor-64x64-suspend:
shard-skl: INCOMPLETE (fdo#104108) -> PASS +1
igt@kms_flip@flip-vs-expired-vblank-interruptible:
shard-glk: FAIL (fdo#105363) -> PASS
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-cpu:
shard-apl: FAIL (fdo#103167) -> PASS +1
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-onoff:
shard-glk: FAIL (fdo#103167) -> PASS +1
igt@kms_plane@plane-panning-bottom-right-pipe-b-planes:
shard-skl: FAIL (fdo#103166) -> PASS
igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
shard-glk: FAIL (fdo#108145) -> PASS
igt@perf@blocking:
shard-hsw: FAIL (fdo#102252) -> PASS
igt@pm_rpm@cursor-dpms:
shard-skl: INCOMPLETE (fdo#107807) -> PASS +2
igt@pm_rpm@gem-execbuf:
shard-skl: INCOMPLETE (fdo#107807, fdo#107803) -> PASS
igt@pm_rpm@modeset-non-lpsp-stress-no-wait:
shard-skl: INCOMPLETE (fdo#107807) -> SKIP fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103158 https://bugs.freedesktop.org/show_bug.cgi?id=103158
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103232 https://bugs.freedesktop.org/show_bug.cgi?id=103232
fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#104108 https://bugs.freedesktop.org/show_bug.cgi?id=104108
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#105682 https://bugs.freedesktop.org/show_bug.cgi?id=105682
fdo#106641 https://bugs.freedesktop.org/show_bug.cgi?id=106641
fdo#106650 https://bugs.freedesktop.org/show_bug.cgi?id=106650
fdo#106885 https://bugs.freedesktop.org/show_bug.cgi?id=106885
fdo#107773 https://bugs.freedesktop.org/show_bug.cgi?id=107773
fdo#107803 https://bugs.freedesktop.org/show_bug.cgi?id=107803
fdo#107807 https://bugs.freedesktop.org/show_bug.cgi?id=107807
fdo#107815 https://bugs.freedesktop.org/show_bug.cgi?id=107815
fdo#107956 https://bugs.freedesktop.org/show_bug.cgi?id=107956
fdo#108039 https://bugs.freedesktop.org/show_bug.cgi?id=108039
fdo#108145 https://bugs.freedesktop.org/show_bug.cgi?id=108145
fdo#108228 https://bugs.freedesktop.org/show_bug.cgi?id=108228
fdo#108470 https://bugs.freedesktop.org/show_bug.cgi?id=108470
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
== Participating hosts (6 -> 6) ==
No changes in participating hosts
== Build changes ==
* Linux: CI_DRM_5116 -> Patchwork_10798
CI_DRM_5116: ade66f7f60026c1c7e68a12ce07d5d4000afce13 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4714: cab148ca3ec904a94d0cd43476cf7e1f8663f906 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10798: 1242657587d47333de7bb643658756071a55a6a6 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10798/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx