DSB enablement.
Subsystems (5)
v7 cover DSB enablement.
Display State Buffer (DSB) is hardware capability which allows driver to batch submit HW programming.
As part of initial enablement common api created which currently used to program gamma lut proramming.
Going forwad DSB support can be added for HDR and flip related operation.
HSDES: 1209978241
BSpec: 32020
v1: Initial version.
v2: Move intel_dsb files under display folder and fixed an issue.
v3: As per review comments from Chris and Jani,
- removed some unwanted code. (Chris)
- Used i915_gem_object_create_internal instead of _shmem. (Chris)
- cmd_buf_tail removed and can be derived through vma object. (Chris)
- Simplified and optimized code few places. (Chris)
- Called dsb-api directly in callsites instead going via I915_WRITE. (Jani)
v4: Addressed review commnets from Shashank.
v5: Addressed review commnets from Shashank and Jani.
v6: Addressed review commnets from Shashank.
v7: Addressed review commnets from Shashank and Jani.
Animesh Manna (10):
drm/i915/dsb: feature flag added for display state buffer. drm/i915/dsb: DSB context creation.
drm/i915/dsb: single register write function for DSB. drm/i915/dsb: Indexed register write function for DSB. drm/i915/dsb: Check DSB engine status. drm/i915/dsb: functions to enable/disable DSB engine. drm/i915/dsb: function to trigger workload execution of DSB. drm/i915/dsb: Enable gamma lut programming using DSB. drm/i915/dsb: Enable DSB for gen12.
drm/i915/dsb: Documentation for DSB.
Documentation/gpu/i915.rst | 9 + drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_color.c | 63 ++-- .../drm/i915/display/intel_display_types.h | 3 + drivers/gpu/drm/i915/display/intel_dsb.c | 334 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_dsb.h | 49 +++ drivers/gpu/drm/i915/i915_drv.h | 3 + drivers/gpu/drm/i915/i915_pci.c | 3 +- drivers/gpu/drm/i915/i915_reg.h | 10 + drivers/gpu/drm/i915/intel_device_info.h | 1 + 10 files changed, 453 insertions(+), 23 deletions(-) create mode 100644 drivers/gpu/drm/i915/display/intel_dsb.c create mode 100644 drivers/gpu/drm/i915/display/intel_dsb.h
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 1/10 drm/i915/dsb: feature flag added for display state buffer.
Display State Buffer(DSB) is a new hardware capability, introduced in GEN12 display. DSB allows a driver to batch-program display HW registers.
--- drivers/gpu/drm/i915/i915_drv.h | 2 ++ drivers/gpu/drm/i915/intel_device_info.h | 1 + 2 files changed, 3 insertions(+)
drivers/gpu/drm/i915/i915_drv.h +2 -0
@@ -1863,6 +1863,8 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) (BUILD_BUG_ON_ZERO (!__builtin_constant_p (n)) + \ INTEL_INFO(dev_priv)->gen == (n)) +#define HAS_DSB (dev_priv) (INTEL_INFO(dev_priv)->display.has_dsb) +/* * Return true if revision is in range [since,until] inclusive. *
drivers/gpu/drm/i915/intel_device_info.h +1 -0
@@ -135,6 +135,7 @@ enum intel_ppgtt_type {func (has_csr); \func (has_ddi); \func (has_dp_mst); \ +func (has_dsb); \func (has_fbc); \func (has_gmch); \func (has_hotplug); \
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 2/10 drm/i915/dsb: DSB context creation.
In reply to Animesh MannaThis patch adds a function, which will internally get the gem buffer for DSB engine. The GEM buffer is from global GTT, and is mapped into CPU domain, contains the data + opcode to be feed to DSB engine.
v1: Initial version.
v2:
- removed some unwanted code. (Chris)
- Used i915_gem_object_create_internal instead of _shmem. (Chris)
- cmd_buf_tail removed and can be derived through vma object. (Chris)
v3: vma realeased if i915_gem_object_pin_map() failed. (Shashank)
v4: for simplification and based on current usage added single dsb object in intel_crtc. (Shashank)
v5: seting NULL to cmd_buf moved outside of mutex in dsb-put(). (Shashank)
v6:
- refcount machanism added.
- Used atomic_add_return and atomic_dec_and_test instead of atomic_inc and atomic_dec. (Jani)
--- drivers/gpu/drm/i915/Makefile | 1 + .../drm/i915/display/intel_display_types.h | 3 + drivers/gpu/drm/i915/display/intel_dsb.c | 80 +++++++++++++++++++ drivers/gpu/drm/i915/display/intel_dsb.h | 31 +++++++ drivers/gpu/drm/i915/i915_drv.h | 1 + 5 files changed, 116 insertions(+) create mode 100644 drivers/gpu/drm/i915/display/intel_dsb.c create mode 100644 drivers/gpu/drm/i915/display/intel_dsb.h
drivers/gpu/drm/i915/Makefile +1 -0
@@ -172,6 +172,7 @@ i915-y += \ display/intel_display_power.o \ display/intel_dpio_phy.o \ display/intel_dpll_mgr.o \ + display/intel_dsb.o \ display/intel_fbc.o \ display/intel_fifo_underrun.o \ display/intel_frontbuffer.o \
drivers/gpu/drm/i915/display/intel_display_types.h +3 -0
@@ -1033,6 +1033,9 @@ struct intel_crtc {/* scalers available on this crtc */ int num_scalers; + +/* per pipe DSB related info */ +struct intel_dsb dsb; };struct intel_plane {
drivers/gpu/drm/i915/display/intel_dsb.c new file +80 -0
80 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_dsb.h new file +31 -0
@@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: MIT +* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef _INTEL_DSB_H +#define _INTEL_DSB_H + +struct intel_crtc ; +struct i915_vma ; + +enum dsb_id { +INVALID_DSB =-1 , +DSB1 , +DSB2 , +DSB3 , +MAX_DSB_PER_PIPE +}; + +struct intel_dsb { +atomic_t refcount; +enum dsb_id id; +u32 *cmd_buf; +struct i915_vma *vma; +}; + +struct intel_dsb * +intel_dsb_get (struct intel_crtc *crtc); +void intel_dsb_put (struct intel_dsb *dsb); + +#endif
drivers/gpu/drm/i915/i915_drv.h +1 -0
@@ -67,6 +67,7 @@#include "display/intel_display.h" #include "display/intel_display_power.h" #include "display/intel_dpll_mgr.h" +#include "display/intel_dsb.h" #include "display/intel_frontbuffer.h" #include "display/intel_gmbus.h" #include "display/intel_opregion.h"
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 3/10 drm/i915/dsb: single register write function for DSB.
In reply to Animesh MannaDSB support single register write through opcode 0x1. Generic api created which accumulate all single register write in a batch buffer and once DSB is triggered, it will program all the registers at the same time.
v1: Initial version.
v2: Unused macro removed and cosmetic changes done. (Shashank)
v3: set free_pos to zero in dsb-put() instead dsb-get() and a cosmetic change. (Shashank)
v4: macro of indexed-write is moved. (Shashank)
--- drivers/gpu/drm/i915/display/intel_dsb.c | 29 ++++++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_dsb.h | 9 ++++++++ 2 files changed, 38 insertions(+)
drivers/gpu/drm/i915/display/intel_dsb.c +29 -0
@@ -9,6 +9,12 @@#define DSB_BUF_SIZE (2 * PAGE_SIZE) +/* DSB opcodes. */ +#define DSB_OPCODE_SHIFT 24 +#define DSB_OPCODE_MMIO_WRITE 0x1 +#define DSB_BYTE_EN 0xF +#define DSB_BYTE_EN_SHIFT 20 +struct intel_dsb *intel_dsb_get (struct intel_crtc *crtc) {
@@ -76,5 +82,28 @@ void intel_dsb_put(struct intel_dsb *dsb)i915_vma_unpin_and_release (&dsb->vma,0 );mutex_unlock (&i915->drm.struct_mutex); dsb->cmd_buf =NULL ; + dsb->free_pos =0 ; + } +} + +void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val) +{ +struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +u32 *buf = dsb->cmd_buf; + +if (!buf) { +I915_WRITE (reg, val); +return ; + } + +if (WARN_ON (dsb->free_pos >=DSB_BUF_SIZE )) { +DRM_DEBUG_KMS ("DSB buffer overflow\n" ); +return ; } + + buf[dsb->free_pos++] = val; + buf[dsb->free_pos++] = (DSB_OPCODE_MMIO_WRITE <<DSB_OPCODE_SHIFT ) | + (DSB_BYTE_EN <<DSB_BYTE_EN_SHIFT ) | +i915_mmio_reg_offset (reg); }
drivers/gpu/drm/i915/display/intel_dsb.h +9 -0
@@ -6,6 +6,8 @@#ifndef _INTEL_DSB_H#define _INTEL_DSB_H +#include "i915_reg.h" +struct intel_crtc ;struct i915_vma ;
@@ -22,10 +24,17 @@ struct intel_dsb {enum dsb_id id;u32 *cmd_buf;struct i915_vma *vma; + +/* +* free_pos will point the first free entry position +* and help in calculating tail of command buffer. +*/ + int free_pos; };struct intel_dsb *intel_dsb_get (struct intel_crtc *crtc);void intel_dsb_put (struct intel_dsb *dsb); +void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val);#endif
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 4/10 drm/i915/dsb: Indexed register write function for DSB.
In reply to Animesh MannaDSB can program large set of data through indexed register write (opcode 0x9) in one shot. DSB feature can be used for bulk register programming e.g. gamma lut programming, HDR meta data programming.
v1: initial version.
v2: simplified code by using ALIGN(). (Chris)
v3: ascii table added as code comment. (Shashank)
v4: cosmetic changes done. (Shashank)
--- drivers/gpu/drm/i915/display/intel_dsb.c | 66 ++++++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_dsb.h | 8 +++ 2 files changed, 74 insertions(+)
drivers/gpu/drm/i915/display/intel_dsb.c +66 -0
@@ -12,8 +12,10 @@/* DSB opcodes. */ #define DSB_OPCODE_SHIFT 24#define DSB_OPCODE_MMIO_WRITE 0x1 +#define DSB_OPCODE_INDEXED_WRITE 0x9#define DSB_BYTE_EN 0xF#define DSB_BYTE_EN_SHIFT 20 +#define DSB_REG_VALUE_MASK 0xfffffstruct intel_dsb *intel_dsb_get (struct intel_crtc *crtc)
@@ -86,6 +88,70 @@ void intel_dsb_put(struct intel_dsb *dsb) } } +void intel_dsb_indexed_reg_write (struct intel_dsb *dsb,i915_reg_t reg, +u32 val) +{ +struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +u32 *buf = dsb->cmd_buf; +u32 reg_val; + +if (!buf) { +I915_WRITE (reg, val); +return ; + } + +if (WARN_ON (dsb->free_pos >=DSB_BUF_SIZE )) { +DRM_DEBUG_KMS ("DSB buffer overflow\n" ); +return ; + } + +/* +* For example the buffer will look like below for 3 dwords for auto +* increment register: +* +--------------------------------------------------------+ +* | size = 3 | offset &| value1 | value2 | value3 | zero | +* | | opcode | | | | | +* +--------------------------------------------------------+ +* + + + + + + + +* 0 4 8 12 16 20 24 +* Byte +* +* As every instruction is 8 byte aligned the index of dsb instruction +* will start always from even number while dealing with u32 array. If +* we are writing odd no of dwords, Zeros will be added in the end for +* padding. +*/ + reg_val = buf[dsb->ins_start_offset +1 ] &DSB_REG_VALUE_MASK ; +if (reg_val !=i915_mmio_reg_offset (reg)) { +/* Every instruction should be 8 byte aligned. */ + dsb->free_pos =ALIGN (dsb->free_pos,2 ); + + dsb->ins_start_offset = dsb->free_pos; + +/* Update the size. */ + buf[dsb->free_pos++] =1 ; + +/* Update the opcode and reg. */ + buf[dsb->free_pos++] = (DSB_OPCODE_INDEXED_WRITE << +DSB_OPCODE_SHIFT ) | +i915_mmio_reg_offset (reg); + +/* Update the value. */ + buf[dsb->free_pos++] = val; + }else { +/* Update the new value. */ + buf[dsb->free_pos++] = val; + +/* Update the size. */ + buf[dsb->ins_start_offset]++; + } + +/* if number of data words is odd, then the last dword should be 0.*/ +if (dsb->free_pos &0x1 ) + buf[dsb->free_pos] =0 ; +} +void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val) {struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb);
drivers/gpu/drm/i915/display/intel_dsb.h +8 -0
@@ -30,11 +30,19 @@ struct intel_dsb {* and help in calculating tail of command buffer. */ int free_pos; + +/* +* ins_start_offset will help to store start address +* of the dsb instuction of auto-increment register. +*/ + u32 ins_start_offset; };struct intel_dsb *intel_dsb_get (struct intel_crtc *crtc);void intel_dsb_put (struct intel_dsb *dsb);void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val); +void intel_dsb_indexed_reg_write (struct intel_dsb *dsb,i915_reg_t reg, +u32 val);#endif
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v7 04/10] drm/i915/dsb: Indexed register write function for DSB.
Quoted 64 lines · Animesh Manna
DSB can program large set of data through indexed register write (opcode
0x9) in one shot. DSB feature can be used for bulk register programming e.g. gamma lut programming, HDR meta data programming.v1: initial version.
v2: simplified code by usingALIGN(). (Chris)
v3: ascii table added as code comment. (Shashank)
v4: cosmetic changes done. (Shashank)Cc Shashank Sharma <[email protected]>Cc Imre Deak <[email protected]>Cc Jani Nikula <[email protected]>Cc Rodrigo Vivi <[email protected]>Reviewed-by Shashank Sharma <[email protected]>Signed-off-by Animesh Manna <[email protected]>--- drivers/gpu/drm/i915/display/intel_dsb.c | 66 ++++++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_dsb.h | 8 +++ 2 files changed, 74 insertions(+)drivers/gpu/drm/i915/display/intel_dsb.c +27
-0@@ -12,8 +12,10 @@/* DSB opcodes. */ #define DSB_OPCODE_SHIFT 24#define DSB_OPCODE_MMIO_WRITE 0x1 +#define DSB_OPCODE_INDEXED_WRITE 0x9#define DSB_BYTE_EN 0xF#define DSB_BYTE_EN_SHIFT 20 +#define DSB_REG_VALUE_MASK 0xfffffstruct intel_dsb *intel_dsb_get (struct intel_crtc *crtc)@@ -86,6 +88,70 @@ void intel_dsb_put(struct intel_dsb *dsb) } } +void intel_dsb_indexed_reg_write (struct intel_dsb *dsb,i915_reg_t reg, +u32 val) +{ +struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +u32 *buf = dsb->cmd_buf; +u32 reg_val; + +if (!buf) { +I915_WRITE (reg, val); +return ; + } + +if (WARN_ON (dsb->free_pos >=DSB_BUF_SIZE )) { +DRM_DEBUG_KMS ("DSB buffer overflow\n" ); +return ; + } + +/* +* For example the buffer will look like below for 3 dwords for auto +* increment register: +* +--------------------------------------------------------+ +* | size = 3 | offset &| value1 | value2 | value3 | zero | +* | | opcode | | | | | +* +--------------------------------------------------------+
drivers/gpu/drm/i915/display/intel_dsb.c void intel_dsb_put(struct intel_dsb *dsb) · line 125
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_dsb.c +10
-0+* + + + + + + + +* 0 4 8 12 16 20 24 +* Byte +* +* As every instruction is 8 byte aligned the index of dsb instruction +* will start always from even number while dealing with u32 array. If +* we are writing odd no of dwords, Zeros will be added in the end for +* padding. +*/ + reg_val = buf[dsb->ins_start_offset +1 ] &DSB_REG_VALUE_MASK ;
dsb->ins_start_offset is never reset anywhere.
Imagine you do:
intel_dsb_indexed_reg_write(dsb, FOO, 0);intel_dsb_indexed_reg_write(dsb, FOO, 0);intel_dsb_reg_write(dsb, BAR, 0);intel_dsb_indexed_reg_write(dsb, FOO, 0);
The last one will screw up the previous indexed writes.
BR,
Jani.
Quoted 56 lines
drivers/gpu/drm/i915/display/intel_dsb.c +29
-0+if (reg_val !=i915_mmio_reg_offset (reg)) { +/* Every instruction should be 8 byte aligned. */ + dsb->free_pos =ALIGN (dsb->free_pos,2 ); + + dsb->ins_start_offset = dsb->free_pos; + +/* Update the size. */ + buf[dsb->free_pos++] =1 ; + +/* Update the opcode and reg. */ + buf[dsb->free_pos++] = (DSB_OPCODE_INDEXED_WRITE << +DSB_OPCODE_SHIFT ) | +i915_mmio_reg_offset (reg); + +/* Update the value. */ + buf[dsb->free_pos++] = val; + }else { +/* Update the new value. */ + buf[dsb->free_pos++] = val; + +/* Update the size. */ + buf[dsb->ins_start_offset]++; + } + +/* if number of data words is odd, then the last dword should be 0.*/ +if (dsb->free_pos &0x1 ) + buf[dsb->free_pos] =0 ; +} +void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val) {struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb);drivers/gpu/drm/i915/display/intel_dsb.h +8
-0@@ -30,11 +30,19 @@ struct intel_dsb {* and help in calculating tail of command buffer. */ int free_pos; + +/* +* ins_start_offset will help to store start address +* of the dsb instuction of auto-increment register. +*/ + u32 ins_start_offset; };struct intel_dsb *intel_dsb_get (struct intel_crtc *crtc);void intel_dsb_put (struct intel_dsb *dsb);void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val); +void intel_dsb_indexed_reg_write (struct intel_dsb *dsb,i915_reg_t reg, +u32 val);#endif
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v7 04/10] drm/i915/dsb: Indexed register write function for DSB.
Quoted 90 lines · Jani Nikula
Quoted 64 lines · Animesh Manna
DSB can program large set of data through indexed register write (opcode
0x9) in one shot. DSB feature can be used for bulk register programming e.g. gamma lut programming, HDR meta data programming.v1: initial version.
v2: simplified code by usingALIGN(). (Chris)
v3: ascii table added as code comment. (Shashank)
v4: cosmetic changes done. (Shashank)Cc Shashank Sharma <[email protected]>Cc Imre Deak <[email protected]>Cc Jani Nikula <[email protected]>Cc Rodrigo Vivi <[email protected]>Reviewed-by Shashank Sharma <[email protected]>Signed-off-by Animesh Manna <[email protected]>--- drivers/gpu/drm/i915/display/intel_dsb.c | 66 ++++++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_dsb.h | 8 +++ 2 files changed, 74 insertions(+)drivers/gpu/drm/i915/display/intel_dsb.c +27
-0@@ -12,8 +12,10 @@/* DSB opcodes. */ #define DSB_OPCODE_SHIFT 24#define DSB_OPCODE_MMIO_WRITE 0x1 +#define DSB_OPCODE_INDEXED_WRITE 0x9#define DSB_BYTE_EN 0xF#define DSB_BYTE_EN_SHIFT 20 +#define DSB_REG_VALUE_MASK 0xfffffstruct intel_dsb *intel_dsb_get (struct intel_crtc *crtc)@@ -86,6 +88,70 @@ void intel_dsb_put(struct intel_dsb *dsb) } } +void intel_dsb_indexed_reg_write (struct intel_dsb *dsb,i915_reg_t reg, +u32 val) +{ +struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +u32 *buf = dsb->cmd_buf; +u32 reg_val; + +if (!buf) { +I915_WRITE (reg, val); +return ; + } + +if (WARN_ON (dsb->free_pos >=DSB_BUF_SIZE )) { +DRM_DEBUG_KMS ("DSB buffer overflow\n" ); +return ; + } + +/* +* For example the buffer will look like below for 3 dwords for auto +* increment register: +* +--------------------------------------------------------+ +* | size = 3 | offset &| value1 | value2 | value3 | zero | +* | | opcode | | | | | +* +--------------------------------------------------------+ drivers/gpu/drm/i915/display/intel_dsb.c void intel_dsb_put(struct intel_dsb *dsb) · line 125
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_dsb.c +10
-0+* + + + + + + + +* 0 4 8 12 16 20 24 +* Byte +* +* As every instruction is 8 byte aligned the index of dsb instruction +* will start always from even number while dealing with u32 array. If +* we are writing odd no of dwords, Zeros will be added in the end for +* padding. +*/ + reg_val = buf[dsb->ins_start_offset +1 ] &DSB_REG_VALUE_MASK ;
dsb->ins_start_offsetis never reset anywhere.Imagine you do:
intel_dsb_indexed_reg_write(dsb, FOO, 0);intel_dsb_indexed_reg_write(dsb, FOO, 0);intel_dsb_reg_write(dsb, BAR, 0);intel_dsb_indexed_reg_write(dsb, FOO, 0);The last one will screw up the previous indexed writes.
BR,
Jani.
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_dsb.c void intel_dsb_put(struct intel_dsb *dsb) · line 131
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_dsb.c +6
-0+if (reg_val !=i915_mmio_reg_offset (reg)) { +/* Every instruction should be 8 byte aligned. */ + dsb->free_pos =ALIGN (dsb->free_pos,2 ); + + dsb->ins_start_offset = dsb->free_pos; +
Not sure if I got your point correctly, but here is the ins_start_offset getting reset, with the new free_pos aligned with 2
- Shashank
Quoted 42 lines
Quoted 42 lines
drivers/gpu/drm/i915/display/intel_dsb.c +23
-0+/* Update the size. */ + buf[dsb->free_pos++] =1 ; + +/* Update the opcode and reg. */ + buf[dsb->free_pos++] = (DSB_OPCODE_INDEXED_WRITE << +DSB_OPCODE_SHIFT ) | +i915_mmio_reg_offset (reg); + +/* Update the value. */ + buf[dsb->free_pos++] = val; + }else { +/* Update the new value. */ + buf[dsb->free_pos++] = val; + +/* Update the size. */ + buf[dsb->ins_start_offset]++; + } + +/* if number of data words is odd, then the last dword should be 0.*/ +if (dsb->free_pos &0x1 ) + buf[dsb->free_pos] =0 ; +} +void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val) {struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb);drivers/gpu/drm/i915/display/intel_dsb.h +6
-0@@ -30,11 +30,19 @@ struct intel_dsb {* and help in calculating tail of command buffer. */ int free_pos; + +/* +* ins_start_offset will help to store start address +* of the dsb instuction of auto-increment register. +*/ +u32 ins_start_offset; };
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_dsb.h struct intel_dsb { · line 48
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_dsb.h +2
-0struct intel_dsb *intel_dsb_get (struct intel_crtc *crtc);void intel_dsb_put (struct intel_dsb *dsb);void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val); +void intel_dsb_indexed_reg_write (struct intel_dsb *dsb,i915_reg_t reg, +u32 val);#endif
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 5/10 drm/i915/dsb: Check DSB engine status.
In reply to Animesh MannaAs per bspec check for DSB status before programming any of its register. Inline function added to check the dsb status.
--- drivers/gpu/drm/i915/display/intel_dsb.c | 9 +++++++++ drivers/gpu/drm/i915/i915_reg.h | 7 +++++++ 2 files changed, 16 insertions(+)
drivers/gpu/drm/i915/display/intel_dsb.c +9 -0
@@ -17,6 +17,15 @@#define DSB_BYTE_EN_SHIFT 20#define DSB_REG_VALUE_MASK 0xfffff +static inline bool is_dsb_busy (struct intel_dsb *dsb) +{ +struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +enum pipe pipe = crtc->pipe; + +return DSB_STATUS &I915_READ (DSB_CTRL (pipe, dsb->id)); +} +struct intel_dsb *intel_dsb_get (struct intel_crtc *crtc) {
drivers/gpu/drm/i915/i915_reg.h +7 -0
@@ -11683,4 +11683,11 @@ enum skl_power_gate {#define PORT_TX_DFLEXDPCSSS (fia) _MMIO_FIA((fia), 0x00894)#define DP_PHY_MODE_STATUS_NOT_SAFE (tc_port) (1 << (tc_port)) +/* This register controls the Display State Buffer (DSB) engines. */ +#define _DSBSL_INSTANCE_BASE 0x70B00 +#define DSBSL_INSTANCE (pipe, id) (_DSBSL_INSTANCE_BASE + \ + (pipe) * 0x1000 + (id) * 100) +#define DSB_CTRL (pipe, id) _MMIO(DSBSL_INSTANCE(pipe, id) + 0x8) +#define DSB_STATUS (1 << 0) +#endif /* _I915_REG_H_ */
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 6/10 drm/i915/dsb: functions to enable/disable DSB engine.
In reply to Animesh MannaDSB will be used for performance improvement for some special scenario. DSB engine will be enabled based on need and after completion of its work will be disabled. Api added for enable/disable operation by using DSB_CTRL register.
v1: Initial version.
v2: POSTING_READ added after writing control register. (Shashank)
v3: cosmetic changes done. (Shashank)
--- drivers/gpu/drm/i915/display/intel_dsb.c | 40 ++++++++++++++++++++++++ drivers/gpu/drm/i915/i915_reg.h | 1 + 2 files changed, 41 insertions(+)
drivers/gpu/drm/i915/display/intel_dsb.c +40 -0
@@ -26,6 +26,46 @@ static inline bool is_dsb_busy(struct intel_dsb *dsb)return DSB_STATUS &I915_READ (DSB_CTRL (pipe, dsb->id)); } +static inline bool intel_dsb_enable_engine (struct intel_dsb *dsb) +{ +struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +enum pipe pipe = crtc->pipe; +u32 dsb_ctrl; + + dsb_ctrl =I915_READ (DSB_CTRL (pipe, dsb->id)); +if (DSB_STATUS & dsb_ctrl) { +DRM_DEBUG_KMS ("DSB engine is busy.\n" ); +return false; + } + + dsb_ctrl |=DSB_ENABLE ; +I915_WRITE (DSB_CTRL (pipe, dsb->id), dsb_ctrl); + +POSTING_READ (DSB_CTRL (pipe, dsb->id)); +return true; +} + +static inline bool intel_dsb_disable_engine (struct intel_dsb *dsb) +{ +struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +enum pipe pipe = crtc->pipe; +u32 dsb_ctrl; + + dsb_ctrl =I915_READ (DSB_CTRL (pipe, dsb->id)); +if (DSB_STATUS & dsb_ctrl) { +DRM_DEBUG_KMS ("DSB engine is busy.\n" ); +return false; + } + + dsb_ctrl &= ~DSB_ENABLE ; +I915_WRITE (DSB_CTRL (pipe, dsb->id), dsb_ctrl); + +POSTING_READ (DSB_CTRL (pipe, dsb->id)); +return true; +} +struct intel_dsb *intel_dsb_get (struct intel_crtc *crtc) {
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -11688,6 +11688,7 @@ enum skl_power_gate {#define DSBSL_INSTANCE (pipe, id) (_DSBSL_INSTANCE_BASE + \ (pipe) * 0x1000 + (id) * 100)#define DSB_CTRL (pipe, id) _MMIO(DSBSL_INSTANCE(pipe, id) + 0x8) +#define DSB_ENABLE (1 << 31)#define DSB_STATUS (1 << 0)#endif /* _I915_REG_H_ */
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 7/10 drm/i915/dsb: function to trigger workload execution of DSB.
In reply to Animesh MannaBatch buffer will be created through dsb-reg-write function which can have single/multiple request based on usecase and once the buffer is ready commit function will trigger the execution of the batch buffer. All the registers will be updated simultaneously.
v1: Initial version.
v2: Optimized code few places. (Chris)
v3: USed DRM_ERROR for dsb head/tail programming failure. (Shashank)
--- drivers/gpu/drm/i915/display/intel_dsb.c | 42 ++++++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_dsb.h | 1 + drivers/gpu/drm/i915/i915_reg.h | 2 ++ 3 files changed, 45 insertions(+)
drivers/gpu/drm/i915/display/intel_dsb.c +42 -0
@@ -222,3 +222,45 @@ void intel_dsb_reg_write(struct intel_dsb *dsb, i915_reg_t reg, u32 val) (DSB_BYTE_EN <<DSB_BYTE_EN_SHIFT ) |i915_mmio_reg_offset (reg); } + +void intel_dsb_commit (struct intel_dsb *dsb) +{ +struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb); +struct drm_device *dev = crtc->base.dev; +struct drm_i915_private *dev_priv =to_i915 (dev); +enum pipe pipe = crtc->pipe; +u32 tail; + +if (!dsb->free_pos) +return ; + +if (!intel_dsb_enable_engine (dsb)) + goto reset; + +if (is_dsb_busy (dsb)) { +DRM_ERROR ("HEAD_PTR write failed - dsb engine is busy.\n" ); + goto reset; + } +I915_WRITE (DSB_HEAD (pipe, dsb->id),i915_ggtt_offset (dsb->vma)); + + tail =ALIGN (dsb->free_pos *4 ,CACHELINE_BYTES ); +if (tail > dsb->free_pos *4 ) +memset (&dsb->cmd_buf[dsb->free_pos],0 , + (tail - dsb->free_pos *4 )); + +if (is_dsb_busy (dsb)) { +DRM_ERROR ("TAIL_PTR write failed - dsb engine is busy.\n" ); + goto reset; + } +DRM_DEBUG_KMS ("DSB execution started - head 0x%x, tail 0x%x\n" , +i915_ggtt_offset (dsb->vma), tail); +I915_WRITE (DSB_TAIL (pipe, dsb->id),i915_ggtt_offset (dsb->vma) + tail); +if (wait_for (!is_dsb_busy (dsb),1 )) { +DRM_ERROR ("Timed out waiting for DSB workload completion.\n" ); + goto reset; + } + +reset: + dsb->free_pos =0 ; +intel_dsb_disable_engine (dsb); +}
drivers/gpu/drm/i915/display/intel_dsb.h +1 -0
@@ -44,5 +44,6 @@ void intel_dsb_put(struct intel_dsb *dsb);void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val);void intel_dsb_indexed_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val); +void intel_dsb_commit (struct intel_dsb *dsb);#endif
drivers/gpu/drm/i915/i915_reg.h +2 -0
@@ -11687,6 +11687,8 @@ enum skl_power_gate {#define _DSBSL_INSTANCE_BASE 0x70B00#define DSBSL_INSTANCE (pipe, id) (_DSBSL_INSTANCE_BASE + \ (pipe) * 0x1000 + (id) * 100) +#define DSB_HEAD (pipe, id) _MMIO(DSBSL_INSTANCE(pipe, id) + 0x0) +#define DSB_TAIL (pipe, id) _MMIO(DSBSL_INSTANCE(pipe, id) + 0x4)#define DSB_CTRL (pipe, id) _MMIO(DSBSL_INSTANCE(pipe, id) + 0x8)#define DSB_ENABLE (1 << 31)#define DSB_STATUS (1 << 0)
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v7 07/10] drm/i915/dsb: function to trigger workload execution of DSB.
Quoted 86 lines · Animesh Manna
Batch buffer will be created through dsb-reg-write function which can have single/multiple request based on usecase and once the buffer is ready commit function will trigger the execution of the batch buffer. All the registers will be updated simultaneously.
v1: Initial version.
v2: Optimized code few places. (Chris)
v3: USedDRM_ERRORfor dsb head/tail programming failure. (Shashank)Cc Imre Deak <[email protected]>Cc Jani Nikula <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Shashank Sharma <[email protected]>Signed-off-by Animesh Manna <[email protected]>--- drivers/gpu/drm/i915/display/intel_dsb.c | 42 ++++++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_dsb.h | 1 + drivers/gpu/drm/i915/i915_reg.h | 2 ++ 3 files changed, 45 insertions(+)drivers/gpu/drm/i915/display/intel_dsb.c +42
-0@@ -222,3 +222,45 @@ void intel_dsb_reg_write(struct intel_dsb *dsb, i915_reg_t reg, u32 val) (DSB_BYTE_EN <<DSB_BYTE_EN_SHIFT ) |i915_mmio_reg_offset (reg); } + +void intel_dsb_commit (struct intel_dsb *dsb) +{ +struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb); +struct drm_device *dev = crtc->base.dev; +struct drm_i915_private *dev_priv =to_i915 (dev); +enum pipe pipe = crtc->pipe; +u32 tail; + +if (!dsb->free_pos) +return ; + +if (!intel_dsb_enable_engine (dsb)) + goto reset; + +if (is_dsb_busy (dsb)) { +DRM_ERROR ("HEAD_PTR write failed - dsb engine is busy.\n" ); + goto reset; + } +I915_WRITE (DSB_HEAD (pipe, dsb->id),i915_ggtt_offset (dsb->vma)); + + tail =ALIGN (dsb->free_pos *4 ,CACHELINE_BYTES ); +if (tail > dsb->free_pos *4 ) +memset (&dsb->cmd_buf[dsb->free_pos],0 , + (tail - dsb->free_pos *4 )); + +if (is_dsb_busy (dsb)) { +DRM_ERROR ("TAIL_PTR write failed - dsb engine is busy.\n" ); + goto reset; + } +DRM_DEBUG_KMS ("DSB execution started - head 0x%x, tail 0x%x\n" , +i915_ggtt_offset (dsb->vma), tail); +I915_WRITE (DSB_TAIL (pipe, dsb->id),i915_ggtt_offset (dsb->vma) + tail); +if (wait_for (!is_dsb_busy (dsb),1 )) { +DRM_ERROR ("Timed out waiting for DSB workload completion.\n" ); + goto reset; + } + +reset: + dsb->free_pos =0 ; +intel_dsb_disable_engine (dsb); +}drivers/gpu/drm/i915/display/intel_dsb.h +1
-0@@ -44,5 +44,6 @@ void intel_dsb_put(struct intel_dsb *dsb);void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val);void intel_dsb_indexed_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val); +void intel_dsb_commit (struct intel_dsb *dsb);#endif drivers/gpu/drm/i915/i915_reg.h +0
-0
drivers/gpu/drm/i915/i915_reg.h enum skl_power_gate { · line 11694
Quoted 8 lines
drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -11687,6 +11687,8 @@ enum skl_power_gate {#define _DSBSL_INSTANCE_BASE 0x70B00#define DSBSL_INSTANCE (pipe, id) (_DSBSL_INSTANCE_BASE + \ (pipe) * 0x1000 + (id) * 100) +#define DSB_HEAD (pipe, id) _MMIO(DSBSL_INSTANCE(pipe, id) + 0x0) +#define DSB_TAIL (pipe, id) _MMIO(DSBSL_INSTANCE(pipe, id) + 0x4)#define DSB_CTRL (pipe, id) _MMIO(DSBSL_INSTANCE(pipe, id) + 0x8)#define DSB_ENABLE (1 << 31)#define DSB_STATUS (1 << 0)
As discussed with Jani, I would expect some changes here, but we can do those in a staged manner. For now, LGTM,
Please feel free to use: Reviewed-by: Shashank Sharma <[email protected]>
Regards
Shashank
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 8/10 drm/i915/dsb: Enable gamma lut programming using DSB.
In reply to Animesh MannaGamma lut programming can be programmed using DSB where bulk register programming can be done using indexed register write which takes number of data and the mmio offset to be written.
Currently enabled for 12-bit gamma LUT which is enabled by default and later 8-bit/10-bit will be enabled in future based on need.
v1: Initial version.
v2: Directly call dsb-api at callsites. (Jani)
v3:
- modified the code as per single dsb instance per crtc. (Shashank)
- Added dsb get/put call in platform specific load_lut hook. (Jani)
- removed dsb pointer from dev_priv. (Jani)
v4: simplified code by dropping ref-count implementation. (Shashank)
--- drivers/gpu/drm/i915/display/intel_color.c | 63 ++++++++++++++-------- 1 file changed, 41 insertions(+), 22 deletions(-)
drivers/gpu/drm/i915/display/intel_color.c +41 -22
@@ -611,12 +611,13 @@ static void bdw_load_lut_10(struct intel_crtc *crtc,static void ivb_load_lut_ext_max (struct intel_crtc *crtc) {struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +struct intel_dsb *dsb =intel_dsb_get (crtc);enum pipe pipe = crtc->pipe;/* Program the max register to clamp values > 1.0. */ -I915_WRITE (PREC_PAL_EXT_GC_MAX (pipe,0 ),1 <<16 ); -I915_WRITE (PREC_PAL_EXT_GC_MAX (pipe,1 ),1 <<16 ); -I915_WRITE (PREC_PAL_EXT_GC_MAX (pipe,2 ),1 <<16 ); +intel_dsb_reg_write (dsb,PREC_PAL_EXT_GC_MAX (pipe,0 ),1 <<16 ); +intel_dsb_reg_write (dsb,PREC_PAL_EXT_GC_MAX (pipe,1 ),1 <<16 ); +intel_dsb_reg_write (dsb,PREC_PAL_EXT_GC_MAX (pipe,2 ),1 <<16 );/* * Program the gc max 2 register to clamp values > 1.0.
@@ -624,10 +625,15 @@ static void ivb_load_lut_ext_max(struct intel_crtc *crtc)* from 3.0 to 7.0 */ if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) { -I915_WRITE (PREC_PAL_EXT2_GC_MAX (pipe,0 ),1 <<16 ); -I915_WRITE (PREC_PAL_EXT2_GC_MAX (pipe,1 ),1 <<16 ); -I915_WRITE (PREC_PAL_EXT2_GC_MAX (pipe,2 ),1 <<16 ); +intel_dsb_reg_write (dsb,PREC_PAL_EXT2_GC_MAX (pipe,0 ), +1 <<16 ); +intel_dsb_reg_write (dsb,PREC_PAL_EXT2_GC_MAX (pipe,1 ), +1 <<16 ); +intel_dsb_reg_write (dsb,PREC_PAL_EXT2_GC_MAX (pipe,2 ), +1 <<16 ); } + +intel_dsb_put (dsb); }static void ivb_load_luts (const struct intel_crtc_state *crtc_state)
@@ -787,22 +793,23 @@ icl_load_gcmax(const struct intel_crtc_state *crtc_state, const struct drm_color_lut *color) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); -struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +struct intel_dsb *dsb =intel_dsb_get (crtc);enum pipe pipe = crtc->pipe;/* Fixme: LUT entries are 16 bit only, so we can prog 0xFFFF max */ -I915_WRITE (PREC_PAL_GC_MAX (pipe,0 ), color->red); -I915_WRITE (PREC_PAL_GC_MAX (pipe,1 ), color->green); -I915_WRITE (PREC_PAL_GC_MAX (pipe,2 ), color->blue); +intel_dsb_reg_write (dsb,PREC_PAL_GC_MAX (pipe,0 ), color->red); +intel_dsb_reg_write (dsb,PREC_PAL_GC_MAX (pipe,1 ), color->green); +intel_dsb_reg_write (dsb,PREC_PAL_GC_MAX (pipe,2 ), color->blue); +intel_dsb_put (dsb); }static void icl_program_gamma_superfine_segment (const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); -struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);const struct drm_property_blob *blob = crtc_state->base.gamma_lut;const struct drm_color_lut *lut = blob->data; +struct intel_dsb *dsb =intel_dsb_get (crtc);enum pipe pipe = crtc->pipe;u32 i;
@@ -813,26 +820,29 @@ icl_program_gamma_superfine_segment(const struct intel_crtc_state *crtc_state)* Superfine segment has 9 entries, corresponding to values * 0, 1/(8 * 128 * 256), 2/(8 * 128 * 256) .... 8/(8 * 128 * 256). */ -I915_WRITE (PREC_PAL_MULTI_SEG_INDEX (pipe),PAL_PREC_AUTO_INCREMENT ); +intel_dsb_reg_write (dsb,PREC_PAL_MULTI_SEG_INDEX (pipe), +PAL_PREC_AUTO_INCREMENT );for (i =0 ; i <9 ; i++) {const struct drm_color_lut *entry = &lut[i]; -I915_WRITE (PREC_PAL_MULTI_SEG_DATA (pipe), -ilk_lut_12p4_ldw (entry)); -I915_WRITE (PREC_PAL_MULTI_SEG_DATA (pipe), -ilk_lut_12p4_udw (entry)); +intel_dsb_indexed_reg_write (dsb,PREC_PAL_MULTI_SEG_DATA (pipe), +ilk_lut_12p4_ldw (entry)); +intel_dsb_indexed_reg_write (dsb,PREC_PAL_MULTI_SEG_DATA (pipe), +ilk_lut_12p4_udw (entry)); } + +intel_dsb_put (dsb); }static void icl_program_gamma_multi_segment (const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); -struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);const struct drm_property_blob *blob = crtc_state->base.gamma_lut;const struct drm_color_lut *lut = blob->data;const struct drm_color_lut *entry; +struct intel_dsb *dsb =intel_dsb_get (crtc);enum pipe pipe = crtc->pipe;u32 i;
@@ -847,11 +857,13 @@ icl_program_gamma_multi_segment(const struct intel_crtc_state *crtc_state)* PAL_PREC_INDEX[0] and PAL_PREC_INDEX[1] map to seg2[1], * with seg2[0] being unused by the hardware. */ -I915_WRITE (PREC_PAL_INDEX (pipe),PAL_PREC_AUTO_INCREMENT ); +intel_dsb_reg_write (dsb,PREC_PAL_INDEX (pipe),PAL_PREC_AUTO_INCREMENT );for (i =1 ; i <257 ; i++) { entry = &lut[i *8 ]; -I915_WRITE (PREC_PAL_DATA (pipe),ilk_lut_12p4_ldw (entry)); -I915_WRITE (PREC_PAL_DATA (pipe),ilk_lut_12p4_udw (entry)); +intel_dsb_indexed_reg_write (dsb,PREC_PAL_DATA (pipe), +ilk_lut_12p4_ldw (entry)); +intel_dsb_indexed_reg_write (dsb,PREC_PAL_DATA (pipe), +ilk_lut_12p4_udw (entry)); }/*
@@ -868,20 +880,24 @@ icl_program_gamma_multi_segment(const struct intel_crtc_state *crtc_state)*/ for (i =0 ; i <256 ; i++) { entry = &lut[i *8 *128 ]; -I915_WRITE (PREC_PAL_DATA (pipe),ilk_lut_12p4_ldw (entry)); -I915_WRITE (PREC_PAL_DATA (pipe),ilk_lut_12p4_udw (entry)); +intel_dsb_indexed_reg_write (dsb,PREC_PAL_DATA (pipe), +ilk_lut_12p4_ldw (entry)); +intel_dsb_indexed_reg_write (dsb,PREC_PAL_DATA (pipe), +ilk_lut_12p4_udw (entry)); }/* The last entry in the LUT is to be programmed in GCMAX */ entry = &lut[256 *8 *128 ];icl_load_gcmax (crtc_state, entry);ivb_load_lut_ext_max (crtc); +intel_dsb_put (dsb); }static void icl_load_luts (const struct intel_crtc_state *crtc_state) {const struct drm_property_blob *gamma_lut = crtc_state->base.gamma_lut;struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct intel_dsb *dsb =intel_dsb_get (crtc);if (crtc_state->base.degamma_lut)glk_load_degamma_lut (crtc_state);
@@ -900,6 +916,9 @@ static void icl_load_luts(const struct intel_crtc_state *crtc_state)bdw_load_lut_10 (crtc, gamma_lut,PAL_PREC_INDEX_VALUE (0 ));ivb_load_lut_ext_max (crtc); } + +intel_dsb_commit (dsb); +intel_dsb_put (dsb); }static u32 chv_cgm_degamma_ldw (const struct drm_color_lut *color)
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 9/10 drm/i915/dsb: Enable DSB for gen12.
In reply to Animesh MannaEnabling DSB by setting 1 to has_dsb flag for gen12.
--- drivers/gpu/drm/i915/i915_pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_pci.c +2 -1
@@ -787,7 +787,8 @@ static const struct intel_device_info intel_elkhartlake_info = { [TRANSCODER_DSI_0] = TRANSCODER_DSI0_OFFSET, \ [TRANSCODER_DSI_1 ] =TRANSCODER_DSI1_OFFSET , \ }, \ - .has_global_mocs = 1 + .has_global_mocs = 1, \ + .display.has_dsb = 1static const struct intel_device_info intel_tigerlake_12_info = {GEN12_FEATURES ,
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 10/10 drm/i915/dsb: Documentation for DSB.
In reply to Animesh MannaAdded docbook info regarding Display State Buffer(DSB) which is added from gen12 onwards to batch submit display HW programming.
v1: Initial version as RFC.
--- Documentation/gpu/i915.rst | 9 ++++ drivers/gpu/drm/i915/display/intel_dsb.c | 68 ++++++++++++++++++++++++ 2 files changed, 77 insertions(+)
Documentation/gpu/i915.rst +9 -0
@@ -246,6 +246,15 @@ Display PLLs .. kernel-doc:: drivers/gpu/drm/i915/display/intel_dpll_mgr.h :internal: +Display State Buffer +-------------------- + +.. kernel-doc:: drivers/gpu/drm/i915/display/intel_dsb.c + :doc: DSB + +.. kernel-doc:: drivers/gpu/drm/i915/display/intel_dsb.c + :internal: + Memory Management and Command Submission ========================================
drivers/gpu/drm/i915/display/intel_dsb.c +68 -0
104 lines not on this page · raw message
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v7 10/10] drm/i915/dsb: Documentation for DSB.
Quoted 63 lines · Animesh Manna
Added docbook info regarding Display State Buffer(DSB) which is added from gen12 onwards to batch submit display HW programming.
v1: Initial version as RFC.
Cc Jani Nikula <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Shashank Sharma <[email protected]>Signed-off-by Animesh Manna <[email protected]>--- Documentation/gpu/i915.rst | 9 ++++ drivers/gpu/drm/i915/display/intel_dsb.c | 68 ++++++++++++++++++++++++ 2 files changed, 77 insertions(+)Documentation/gpu/i915.rst +9
-0@@ -246,6 +246,15 @@ Display PLLs .. kernel-doc:: drivers/gpu/drm/i915/display/intel_dpll_mgr.h :internal: +Display State Buffer +-------------------- + +.. kernel-doc:: drivers/gpu/drm/i915/display/intel_dsb.c + :doc: DSB + +.. kernel-doc:: drivers/gpu/drm/i915/display/intel_dsb.c + :internal: + Memory Management and Command Submission ========================================drivers/gpu/drm/i915/display/intel_dsb.c +17
-0@@ -9,6 +9,23 @@#define DSB_BUF_SIZE (2 * PAGE_SIZE) +/** +* DOC: DSB +* +* A DSB (Display State Buffer) is a queue of MMIO instructions in the memory +* which can be offloaded to DSB HW in Display Controller. DSB HW is a DMA +* engine that can be programmed to download the DSB from memory. +* It allows driver to batch submit display HW programming. This helps to +* reduce loading time and CPU activity, thereby making the context switch +* faster. DSB Support added from Gen12 Intel graphics based platform. +* +* DSB's can access only the pipe, plane, and transcoder Data Island Packet +* registers. +* +* DSB HW can support only register writes (both indexed and direct MMIO +* writes). There are no registers reads possible with DSB HW engine. +*/ +/* DSB opcodes. */ #define DSB_OPCODE_SHIFT 24#define DSB_OPCODE_MMIO_WRITE 0x1
drivers/gpu/drm/i915/display/intel_dsb.c static inline bool intel_dsb_disable_engine(struct intel_dsb *dsb) · line 87
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_dsb.c +2
-0@@ -66,6 +83,17 @@ static inline bool intel_dsb_disable_engine(struct intel_dsb *dsb)return true; } +/** +* intel_dsb_get() - Allocate dsb context and return a dsb instance.
we are using 'dsb' and 'DSB' both. Please use one of these, and make it uniform across the doc. I will prefer DSB (expect function names of course :))
drivers/gpu/drm/i915/display/intel_dsb.c static inline bool intel_dsb_disable_engine(struct intel_dsb *dsb) · line 91
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_dsb.c +4
-0+* @crtc: intel_crtc structure to get pipe info. +* +* This function will give handle of the DSB instance which +* user want to operate on.
Little re-arrangement: This function provides handle of a DSB instance, for the further DSB operations.
drivers/gpu/drm/i915/display/intel_dsb.c static inline bool intel_dsb_disable_engine(struct intel_dsb *dsb) · line 93
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_dsb.c +2
-0+* +* Return : address of Intel_dsb instance requested for.
Returns:
drivers/gpu/drm/i915/display/intel_dsb.c static inline bool intel_dsb_disable_engine(struct intel_dsb *dsb) · line 94
Quoted 1 line
drivers/gpu/drm/i915/display/intel_dsb.c +1
-0+* In failure case, the dsb instance will not have any command buffer.
Failure: Returns the same DSB instance, but without a command buffer.
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_dsb.c +2
-0+*/ +struct intel_dsb *intel_dsb_get (struct intel_crtc *crtc) {
drivers/gpu/drm/i915/display/intel_dsb.c intel_dsb_get(struct intel_crtc *crtc) · line 152
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_dsb.c +6
-0@@ -116,6 +144,14 @@ intel_dsb_get(struct intel_crtc *crtc)return dsb; } +/** +* intel_dsb_put() - To destroy DSB context. +* @dsb: intel_dsb structure. +* +* This function is used to destroy the dsb-context by doing unpin +* and release the vma object.
This function destroys the DSB context allocated by a dsb_get(), by unpinning and releasing the VMA object associated with it.
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_dsb.c +2
-0+*/ +void intel_dsb_put (struct intel_dsb *dsb) {struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb);@@ -137,6 +173,19 @@ void intel_dsb_put(struct intel_dsb *dsb) } }
drivers/gpu/drm/i915/display/intel_dsb.c void intel_dsb_put(struct intel_dsb *dsb) · line 184
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_dsb.c +9
-0+/** +* intel_dsb_indexed_reg_write() -Write to the dsb context for auto +* increment register. +* @dsb: intel_dsb structure. +* @reg: register address. +* @val: value. +* +* This function is used for auto-increment register and intel_dsb_reg_write() +* is used for normal register.
I am not able to get the message out of this line. why are we adding the description of intel_dsb_reg_write() here ?
Please keep this simple and explain only function under description.
Quoted 31 lines
During command buffer overflow, a warning
+ * is thrown and rest all erroneous condition register programming is done
+ * through mmio write.
+ */drivers/gpu/drm/i915/display/intel_dsb.c +13
-0+void intel_dsb_indexed_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val) {@@ -201,6 +250,18 @@ void intel_dsb_indexed_reg_write(struct intel_dsb *dsb, i915_reg_t reg, buf[dsb->free_pos] =0 ; } +/** +* intel_dsb_reg_write() -Write to the dsb context for normal +* register. +* @dsb: intel_dsb structure. +* @reg: register address. +* @val: value. +* +* This function is used for writing register-value pair in command +* buffer of DSB. During command buffer overflow, a warning +* is thrown and rest all erroneous condition register programming is done +* through mmio write. +*/ void intel_dsb_reg_write (struct intel_dsb *dsb,i915_reg_t reg,u32 val) {struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb);@@ -223,6 +284,13 @@ void intel_dsb_reg_write(struct intel_dsb *dsb, i915_reg_t reg, u32 val)i915_mmio_reg_offset (reg); }
drivers/gpu/drm/i915/display/intel_dsb.c void intel_dsb_reg_write(struct intel_dsb *dsb, i915_reg_t reg, u32 val) · line 296
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_dsb.c +7
-0+/** +* intel_dsb_commit() - Trigger workload execution of DSB. +* @dsb: intel_dsb structure. +* +* This function is used to do actual write to hardware using DSB. +* On errors, fall back to MMIO. Also this function help to reset the context. +*/ void intel_dsb_commit (struct intel_dsb *dsb) {struct intel_crtc *crtc =container_of (dsb,typeof (*crtc), dsb);
With the comments above fixed, Please feel free to use:
Regards
Shashank
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for DSB enablement. (rev7)
In reply to Animesh Manna== Series Details ==
== Series Details ==
Series: DSB enablement. (rev7)
URL : https://patchwork.freedesktop.org/series/63013/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 580c8790ff0a drm/i915/dsb: feature flag added for display state buffer. ecc216eec06f drm/i915/dsb: DSB context creation. -:63: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #63: new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 134 lines checked c616e1a45300 drm/i915/dsb: single register write function for DSB. ed02ef84c099 drm/i915/dsb: Indexed register write function for DSB. d26bfef37694 drm/i915/dsb: Check DSB engine status. 2e35f5ecac31 drm/i915/dsb: functions to enable/disable DSB engine. 06fb6ddd28bc drm/i915/dsb: function to trigger workload execution of DSB. 7e47a79b9912 drm/i915/dsb: Enable gamma lut programming using DSB. 435153df9256 drm/i915/dsb: Enable DSB for gen12.a8b450e503fd drm/i915/dsb: Documentation for DSB.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.SPARSE: warning for DSB enablement. (rev7)
In reply to Animesh Manna== Series Details ==
== Series Details ==
Series: DSB enablement. (rev7)
URL : https://patchwork.freedesktop.org/series/63013/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.6.0 Commit: drm/i915/dsb: feature flag added for display state buffer. Okay!
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for DSB enablement. (rev7)
In reply to Animesh Manna== Series Details ==
== Series Details ==
Series: DSB enablement. (rev7)
URL : https://patchwork.freedesktop.org/series/63013/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6912 -> Patchwork_14439
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/
Known issues
------------
Here are the changes found in Patchwork_14439 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s4-devices:
- fi-blb-e6850: [PASS][1] -> [INCOMPLETE][2] ([fdo#107718])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/fi-blb-e6850/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/fi-blb-e6850/igt@[email protected]
* igt@vgem_basic@dmabuf-fence:
- fi-icl-u3: [PASS][3] -> [DMESG-WARN][4] ([fdo#107724])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/fi-icl-u3/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_switch@legacy-render:
- fi-icl-u2: [INCOMPLETE][5] ([fdo#107713] / [fdo#111381]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/fi-icl-u2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/fi-icl-u2/igt@[email protected]
* igt@i915_module_load@reload-no-display:
- fi-icl-u3: [DMESG-WARN][7] ([fdo#107724]) -> [PASS][8] +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/fi-icl-u3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/fi-icl-u3/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [DMESG-WARN][9] ([fdo#102614]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/fi-hsw-peppy/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/fi-hsw-peppy/igt@[email protected]
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#111381]: https://bugs.freedesktop.org/show_bug.cgi?id=111381
Participating hosts (52 -> 46)
------------------------------
Additional (3): fi-icl-u4 fi-icl-dsi fi-snb-2600
Missing (9): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-gdg-551 fi-icl-y fi-skl-lmem fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6912 -> Patchwork_14439
CI-20190529: 20190529
CI_DRM_6912: d56f646357b583974f9d83e08dbbefadbb52ce6b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5190: 0e9510b83502af3e230870df2d66d4f68918d3a4 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14439: a8b450e503fd8f1622f5ed1d69ba1fbe95b8b092 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
a8b450e503fd drm/i915/dsb: Documentation for DSB. 435153df9256 drm/i915/dsb: Enable DSB for gen12.7e47a79b9912 drm/i915/dsb: Enable gamma lut programming using DSB. 06fb6ddd28bc drm/i915/dsb: function to trigger workload execution of DSB. 2e35f5ecac31 drm/i915/dsb: functions to enable/disable DSB engine. d26bfef37694 drm/i915/dsb: Check DSB engine status. ed02ef84c099 drm/i915/dsb: Indexed register write function for DSB. c616e1a45300 drm/i915/dsb: single register write function for DSB. ecc216eec06f drm/i915/dsb: DSB context creation.580c8790ff0a drm/i915/dsb: feature flag added for display state buffer.
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for DSB enablement. (rev7)
In reply to Animesh Manna== Series Details ==
== Series Details ==
Series: DSB enablement. (rev7)
URL : https://patchwork.freedesktop.org/series/63013/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6912_full -> Patchwork_14439_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_14439_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_balancer@smoke:
- shard-iclb: [PASS][1] -> [SKIP][2] ([fdo#110854])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb7/igt@[email protected]
* igt@gem_exec_schedule@preempt-queue-bsd1:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#109276]) +23 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb8/igt@[email protected]
* igt@gem_exec_schedule@preemptive-hang-bsd:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#111325]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb7/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb2/igt@[email protected]
* igt@gem_workarounds@suspend-resume-context:
- shard-apl: [PASS][7] -> [DMESG-WARN][8] ([fdo#108566]) +6 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-apl2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-apl4/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress:
- shard-iclb: [PASS][9] -> [INCOMPLETE][10] ([fdo#107713] / [fdo#108840])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb7/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb2/igt@[email protected]
* igt@kms_color@pipe-c-ctm-green-to-red:
- shard-skl: [PASS][11] -> [FAIL][12] ([fdo#107201])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-skl4/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-skl4/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-256x256-offscreen:
- shard-skl: [PASS][13] -> [FAIL][14] ([fdo#103232]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-skl2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-skl8/igt@[email protected]
* igt@kms_fbcon_fbt@psr-suspend:
- shard-skl: [PASS][15] -> [INCOMPLETE][16] ([fdo#104108])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-skl2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-skl8/igt@[email protected]
* igt@kms_flip@2x-flip-vs-modeset-vs-hang-interruptible:
- shard-hsw: [PASS][17] -> [INCOMPLETE][18] ([fdo#103540])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-hsw7/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-hsw4/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank:
- shard-glk: [PASS][19] -> [FAIL][20] ([fdo#105363])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-glk5/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-glk5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-pwrite:
- shard-iclb: [PASS][21] -> [FAIL][22] ([fdo#103167]) +6 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb6/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb6/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-indfb-msflip-blt:
- shard-skl: [PASS][23] -> [FAIL][24] ([fdo#103167])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-skl2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-skl8/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-kbl: [PASS][25] -> [FAIL][26] ([fdo#103375])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-kbl4/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-kbl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: [PASS][27] -> [FAIL][28] ([fdo#108145]) +2 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-skl6/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-skl3/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-iclb: [PASS][29] -> [FAIL][30] ([fdo#103166])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb7/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb4/igt@[email protected]
* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [PASS][31] -> [SKIP][32] ([fdo#109642] / [fdo#111068])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb2/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb6/igt@[email protected]
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [PASS][33] -> [SKIP][34] ([fdo#109441]) +3 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb1/igt@kms_psr@psr2_no_drrs.html
#### Possible fixes ####
* igt@gem_eio@reset-stress:
- shard-snb: [FAIL][35] ([fdo#109661]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-snb5/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-snb5/igt@[email protected]
* igt@gem_exec_schedule@reorder-wide-bsd:
- shard-iclb: [SKIP][37] ([fdo#111325]) -> [PASS][38] +6 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb1/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb7/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-kbl: [SKIP][39] ([fdo#109271]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-kbl2/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-kbl7/igt@[email protected]
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [DMESG-WARN][41] ([fdo#108566]) -> [PASS][42] +6 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-apl3/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-apl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-64x21-random:
- shard-apl: [INCOMPLETE][43] ([fdo#103927]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-apl7/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-apl6/igt@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible:
- shard-skl: [FAIL][45] ([fdo#100368]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-skl9/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-skl10/igt@[email protected]
* igt@kms_flip@plain-flip-ts-check-interruptible:
- shard-glk: [FAIL][47] ([fdo#100368]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-glk7/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-glk1/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [FAIL][49] ([fdo#103167]) -> [PASS][50] +6 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb2/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb1/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-wc:
- shard-skl: [FAIL][51] ([fdo#103167]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-skl10/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-wc.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-skl4/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-wc.html
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: [FAIL][53] ([fdo#108145]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-skl8/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-skl6/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: [FAIL][55] ([fdo#103166]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb4/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb3/igt@[email protected]
* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [SKIP][57] ([fdo#109441]) -> [PASS][58] +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb7/igt@kms_psr@psr2_cursor_render.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
* igt@kms_setmode@basic:
- shard-kbl: [FAIL][59] ([fdo#99912]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-kbl7/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-kbl2/igt@[email protected]
* igt@prime_busy@hang-bsd2:
- shard-iclb: [SKIP][61] ([fdo#109276]) -> [PASS][62] +14 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb8/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb1/igt@[email protected]
* igt@tools_test@tools_test:
- shard-skl: [SKIP][63] ([fdo#109271]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-skl4/igt@tools_test@tools_test.html
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-skl4/igt@tools_test@tools_test.html
#### Warnings ####
* igt@gem_ctx_isolation@vcs1-nonpriv:
- shard-iclb: [FAIL][65] ([fdo#111329]) -> [SKIP][66] ([fdo#109276])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb2/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb6/igt@[email protected]
* igt@gem_mocs_settings@mocs-rc6-bsd2:
- shard-iclb: [SKIP][67] ([fdo#109276]) -> [FAIL][68] ([fdo#111330])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb8/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb1/igt@[email protected]
* igt@gem_mocs_settings@mocs-settings-bsd2:
- shard-iclb: [FAIL][69] ([fdo#111330]) -> [SKIP][70] ([fdo#109276]) +1 similar issue
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6912/shard-iclb2/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14439/shard-iclb6/igt@[email protected]
[fdo#100368]: https://bugs.freedesktop.org/show_bug.cgi?id=100368
[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#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#107201]: https://bugs.freedesktop.org/show_bug.cgi?id=107201
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108840]: https://bugs.freedesktop.org/show_bug.cgi?id=108840
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#109661]: https://bugs.freedesktop.org/show_bug.cgi?id=109661
[fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6912 -> Patchwork_14439
CI-20190529: 20190529
CI_DRM_6912: d56f646357b583974f9d83e08dbbefadbb52ce6b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5190: 0e9510b83502af3e230870df2d66d4f68918d3a4 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14439: a8b450e503fd8f1622f5ed1d69ba1fbe95b8b092 @ 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_14439/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx