drm/i915: Extend GEN renames to the rest of the driver
Subsystems (4)
cover drm/i915: Extend GEN renames to the rest of the driver
Like was done for the display part that parted ways with INTEL_GEN(), replacing with DISPLAY_VER(), do a similar conversion for the rest of the driver.
v2: Remove .ko that was incorrectly added as part of patch 11, making it very big and not going through the mailing list. Sorry for those in CC who received it.
Lucas De Marchi (12):
drm/i915: rename display.version to display.ver drm/i915: add macros for graphics and media versions drm/i915/gt: replace gen use in intel_engine_cs drm/i915/selftests: replace unused mask with simple version drm/i915/selftests: eliminate use of gen_mask drm/i915: finish removal of gen_mask
drm/i915: eliminate remaining uses of intel_device_info->gen drm/i915: finish removal of gen from intel_device_info drm/i915: add media and display versions to device_info print drm/i915/display: use DISPLAY_VER() on remaining users drm/i915: replace IS_GEN and friends with IS_GRAPHICS_VER drm/i915: split dgfx features from gen 12
drivers/gpu/drm/i915/display/intel_audio.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_context.c | 6 +- .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 33 +++---- .../gpu/drm/i915/gem/i915_gem_object_blt.c | 8 +- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 16 ++-- drivers/gpu/drm/i915/gem/i915_gem_tiling.c | 12 +-- .../i915/gem/selftests/i915_gem_client_blt.c | 10 +- .../i915/gem/selftests/i915_gem_coherency.c | 4 +- .../drm/i915/gem/selftests/i915_gem_context.c | 16 ++-- .../drm/i915/gem/selftests/i915_gem_mman.c | 14 +-- .../drm/i915/gem/selftests/igt_gem_utils.c | 10 +- drivers/gpu/drm/i915/gt/debugfs_gt_pm.c | 38 ++++---- drivers/gpu/drm/i915/gt/gen2_engine_cs.c | 2 +- drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 2 +- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 2 +- drivers/gpu/drm/i915/gt/intel_context_sseu.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 94 +++++++++---------- .../drm/i915/gt/intel_execlists_submission.c | 18 ++-- drivers/gpu/drm/i915/gt/intel_ggtt.c | 18 ++-- drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c | 34 +++---- drivers/gpu/drm/i915/gt/intel_gt.c | 27 +++--- .../gpu/drm/i915/gt/intel_gt_clock_utils.c | 12 +-- drivers/gpu/drm/i915/gt/intel_gt_irq.c | 6 +- drivers/gpu/drm/i915/gt/intel_gt_pm_irq.c | 10 +- drivers/gpu/drm/i915/gt/intel_gtt.c | 14 +-- drivers/gpu/drm/i915/gt/intel_llc.c | 6 +- drivers/gpu/drm/i915/gt/intel_lrc.c | 46 ++++----- drivers/gpu/drm/i915/gt/intel_mocs.c | 8 +- drivers/gpu/drm/i915/gt/intel_ppgtt.c | 6 +- drivers/gpu/drm/i915/gt/intel_rc6.c | 16 ++-- drivers/gpu/drm/i915/gt/intel_renderstate.c | 2 +- drivers/gpu/drm/i915/gt/intel_reset.c | 12 +-- .../gpu/drm/i915/gt/intel_ring_submission.c | 64 ++++++------- drivers/gpu/drm/i915/gt/intel_rps.c | 60 ++++++------ drivers/gpu/drm/i915/gt/intel_sseu.c | 14 +-- drivers/gpu/drm/i915/gt/intel_workarounds.c | 66 ++++++------- drivers/gpu/drm/i915/gt/selftest_engine_cs.c | 24 ++--- drivers/gpu/drm/i915/gt/selftest_engine_pm.c | 2 +- drivers/gpu/drm/i915/gt/selftest_execlists.c | 4 +- drivers/gpu/drm/i915/gt/selftest_gt_pm.c | 8 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 8 +- drivers/gpu/drm/i915/gt/selftest_llc.c | 4 +- drivers/gpu/drm/i915/gt/selftest_lrc.c | 8 +- drivers/gpu/drm/i915/gt/selftest_mocs.c | 2 +- drivers/gpu/drm/i915/gt/selftest_rc6.c | 4 +- .../drm/i915/gt/selftest_ring_submission.c | 6 +- drivers/gpu/drm/i915/gt/selftest_rps.c | 16 ++-- drivers/gpu/drm/i915/gt/selftest_timeline.c | 6 +- .../gpu/drm/i915/gt/selftest_workarounds.c | 18 ++-- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 4 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 2 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 10 +- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 4 +- drivers/gpu/drm/i915/gvt/cmd_parser.c | 8 +- drivers/gpu/drm/i915/gvt/dmabuf.c | 2 +- drivers/gpu/drm/i915/gvt/fb_decoder.c | 10 +- drivers/gpu/drm/i915/gvt/gtt.c | 4 +- drivers/gpu/drm/i915/gvt/handlers.c | 6 +- drivers/gpu/drm/i915/gvt/interrupt.c | 2 +- drivers/gpu/drm/i915/gvt/mmio_context.c | 10 +- drivers/gpu/drm/i915/gvt/scheduler.c | 4 +- drivers/gpu/drm/i915/gvt/vgpu.c | 4 +- drivers/gpu/drm/i915/i915_cmd_parser.c | 10 +- drivers/gpu/drm/i915/i915_debugfs.c | 32 +++---- drivers/gpu/drm/i915/i915_drv.c | 24 +++-- drivers/gpu/drm/i915/i915_drv.h | 40 +++++--- drivers/gpu/drm/i915/i915_gem.c | 4 +- drivers/gpu/drm/i915/i915_gpu_error.c | 80 ++++++++-------- drivers/gpu/drm/i915/i915_irq.c | 34 +++---- drivers/gpu/drm/i915/i915_pci.c | 13 ++- drivers/gpu/drm/i915/i915_perf.c | 44 ++++----- drivers/gpu/drm/i915/i915_pmu.c | 8 +- drivers/gpu/drm/i915/i915_request.c | 4 +- drivers/gpu/drm/i915/i915_suspend.c | 16 ++-- drivers/gpu/drm/i915/i915_sysfs.c | 2 +- drivers/gpu/drm/i915/i915_vgpu.c | 2 +- drivers/gpu/drm/i915/intel_device_info.c | 26 ++--- drivers/gpu/drm/i915/intel_device_info.h | 6 +- drivers/gpu/drm/i915/intel_dram.c | 14 +-- drivers/gpu/drm/i915/intel_pch.c | 10 +- drivers/gpu/drm/i915/intel_pm.c | 14 +-- drivers/gpu/drm/i915/intel_sideband.c | 2 +- drivers/gpu/drm/i915/intel_uncore.c | 34 +++---- drivers/gpu/drm/i915/intel_wopcm.c | 10 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 4 +- drivers/gpu/drm/i915/selftests/i915_perf.c | 6 +- drivers/gpu/drm/i915/selftests/i915_request.c | 8 +- drivers/gpu/drm/i915/selftests/igt_spinner.c | 12 +-- drivers/gpu/drm/i915/selftests/intel_uncore.c | 10 +- .../gpu/drm/i915/selftests/mock_gem_device.c | 2 +- 92 files changed, 692 insertions(+), 673 deletions(-)
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/12 drm/i915: rename display.version to display.ver
The macro we use to check is called DISPLAY_VER(). While using this macro and the new ones being added in following changes I made the mistake multiple times when mixing both "ver" and "version". Although it's usually better to prefer the complete name, the shorhand DISPLAY_VER() / GRAPHICS_VER / MEDIA_VER are clear and cause less visual polution.
Another issue is when copying the variable to other places. "display.version" would be copied to a "display_version" variable which is long and would make people abbreviate as "version", or "display_ver". In the first case it's not always clear what version refers to, and in the second case it just hints it should be the name in the first place.
So, in the same way use used "gen" rather than "generation", use "ver" instead of "version".
--- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_pci.c | 4 ++-- drivers/gpu/drm/i915/intel_device_info.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +1 -1
@@ -1237,7 +1237,7 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen)#define INTEL_DEVID (dev_priv) (RUNTIME_INFO(dev_priv)->device_id) -#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.version) +#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.ver)#define IS_DISPLAY_RANGE (i915, from, until) \ (DISPLAY_VER(i915) >= (from) && DISPLAY_VER(i915) <= (until))#define IS_DISPLAY_VER (i915, v) (DISPLAY_VER(i915) == (v))
drivers/gpu/drm/i915/i915_pci.c +2 -2
@@ -36,7 +36,7 @@#include "i915_selftest.h" #define PLATFORM (x) .platform = (x) -#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.version = (x) +#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.ver = (x)#define I845_PIPE_OFFSETS \ .pipe_offsets = { \
@@ -723,7 +723,7 @@ static const struct intel_device_info bxt_info = {static const struct intel_device_info glk_info = {GEN9_LP_FEATURES ,PLATFORM (INTEL_GEMINILAKE ), - .display.version =10 , + .display.ver =10 , .ddb_size =1024 ,GLK_COLORS , };
drivers/gpu/drm/i915/intel_device_info.h +1 -1
@@ -189,7 +189,7 @@ struct intel_device_info {#undef DEFINE_FLAGstruct { -u8 version; +u8 ver;#define DEFINE_FLAG (name) u8 name:1DEV_INFO_DISPLAY_FOR_EACH_FLAG (DEFINE_FLAG);
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 01/12] drm/i915: rename display.version to display.ver
Quoted 7 lines · Lucas De Marchi
The macro we use to check is called
DISPLAY_VER(). While using this macro and the new ones being added in following changes I made the mistake multiple times when mixing both "ver" and "version". Although it's usually better to prefer the complete name, the shorhandDISPLAY_VER()/GRAPHICS_VER/MEDIA_VERare clear and cause less visual polution.
Quoted 9 lines
Another issue is when copying the variable to other places. "display.version" would be copied to a "
display_version" variable which is long and would make people abbreviate as "version", or "display_ver". In the first case it's not always clear what version refers to, and in the second case it just hints it should be the name in the first place.So, in the same way use used "gen" rather than "generation", use "ver" instead of "version".
Quoted 68 lines
Signed-off-by Lucas De Marchi <[email protected]>---
drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_pci.c | 4 ++-- drivers/gpu/drm/i915/intel_device_info.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_drv.h +0
-0@@ -1237,7 +1237,7 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) #define INTEL_GEN(dev_priv) (INTEL_INFO(dev_priv)->gen) #define INTEL_DEVID(dev_priv) (RUNTIME_INFO(dev_priv)->device_id)drivers/gpu/drm/i915/i915_drv.h +1
-1-#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.version) +#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.ver)#define
IS_DISPLAY_RANGE(i915, from, until)\
(DISPLAY_VER(i915)>= (from) &&DISPLAY_VER(i915)<= (until)) #defineIS_DISPLAY_VER(i915, v)(DISPLAY_VER(i915)== (v))drivers/gpu/drm/i915/i915_pci.c +0
-0@@ -36,7 +36,7 @@ #include "i915_selftest.h"#define PLATFORM(x) .platform = (x)
drivers/gpu/drm/i915/i915_pci.c +1
-1-#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.version = (x) +#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.ver = (x)#define
I845_PIPE_OFFSETS\
.pipe_offsets = { \drivers/gpu/drm/i915/i915_pci.c +1
-1@@ -723,7 +723,7 @@ static const struct intel_device_info bxt_info = { static const struct intel_device_info glk_info = { GEN9_LP_FEATURES, PLATFORM(INTEL_GEMINILAKE), - .display.version =10 , + .display.ver =10 , .ddb_size = 1024, GLK_COLORS, };drivers/gpu/drm/i915/intel_device_info.h +0
-0@@ -189,7 +189,7 @@ struct intel_device_info { #undef DEFINE_FLAGstruct {
drivers/gpu/drm/i915/intel_device_info.h +1
-1-u8 version; +u8 ver;
Quoted 2 lines
#define
DEFINE_FLAG(name)u8 name:1DEV_INFO_DISPLAY_FOR_EACH_FLAG(DEFINE_FLAG);
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 01/12] drm/i915: rename display.version to display.ver
In reply to Lucas De MarchiQuoted 7 lines · Lucas De Marchi
The macro we use to check is called
DISPLAY_VER(). While using this macro and the new ones being added in following changes I made the mistake multiple times when mixing both "ver" and "version". Although it's usually better to prefer the complete name, the shorhandDISPLAY_VER()/GRAPHICS_VER/MEDIA_VERare clear and cause less visual polution.
Quoted 8 lines
Another issue is when copying the variable to other places. "display.version" would be copied to a "
display_version" variable which is long and would make people abbreviate as "version", or "display_ver". In the first case it's not always clear what version refers to, and in the second case it just hints it should be the name in the first place.So, in the same way use used "gen" rather than "generation", use "ver" instead of "version".
I'm indifferent on "ver" versus "version" but Jani suggested using the full word "version" when we were first adding this, so you should probably get an ack from him.
Matt
Quoted 59 lines
Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_pci.c | 4 ++-- drivers/gpu/drm/i915/intel_device_info.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_drv.h +1
-1@@ -1237,7 +1237,7 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen)#define INTEL_DEVID (dev_priv) (RUNTIME_INFO(dev_priv)->device_id) -#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.version) +#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.ver)#define IS_DISPLAY_RANGE (i915, from, until) \ (DISPLAY_VER(i915) >= (from) && DISPLAY_VER(i915) <= (until))#define IS_DISPLAY_VER (i915, v) (DISPLAY_VER(i915) == (v))drivers/gpu/drm/i915/i915_pci.c +2
-2@@ -36,7 +36,7 @@#include "i915_selftest.h" #define PLATFORM (x) .platform = (x) -#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.version = (x) +#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.ver = (x)#define I845_PIPE_OFFSETS \ .pipe_offsets = { \@@ -723,7 +723,7 @@ static const struct intel_device_info bxt_info = {static const struct intel_device_info glk_info = {GEN9_LP_FEATURES ,PLATFORM (INTEL_GEMINILAKE ), - .display.version =10 , + .display.ver =10 , .ddb_size =1024 ,GLK_COLORS , };drivers/gpu/drm/i915/intel_device_info.h +1
-1@@ -189,7 +189,7 @@ struct intel_device_info {#undef DEFINE_FLAGstruct { -u8 version; +u8 ver;#define DEFINE_FLAG (name) u8 name:1DEV_INFO_DISPLAY_FOR_EACH_FLAG (DEFINE_FLAG);Signature · 1 line
2.31.1
Signature · 9 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 01/12] drm/i915: rename display.version to display.ver
Quoted 14 lines · Matt Roper
Quoted 13 lines · Lucas De Marchi
The macro we use to check is called
DISPLAY_VER(). While using this macro and the new ones being added in following changes I made the mistake multiple times when mixing both "ver" and "version". Although it's usually better to prefer the complete name, the shorhandDISPLAY_VER()/GRAPHICS_VER/MEDIA_VERare clear and cause less visual polution.Another issue is when copying the variable to other places. "display.version" would be copied to a "
display_version" variable which is long and would make people abbreviate as "version", or "display_ver". In the first case it's not always clear what version refers to, and in the second case it just hints it should be the name in the first place.
Quoted 6 lines
Quoted 2 lines
So, in the same way use used "gen" rather than "generation", use "ver" instead of "version".
I'm indifferent on "ver" versus "version" but Jani suggested using the full word "version" when we were first adding this, so you should probably get an ack from him.
For display version there were precious few places where we actually needed to refer to it, so I thought the longer version was better for clarity.
I realize graphics_ver is used much more (although not necessarily in reference to intel_device_info) and it may get tedious to use the longer version. And it's better to have all of them unified.
Quoted 63 lines
Matt
Quoted 59 lines
Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_pci.c | 4 ++-- drivers/gpu/drm/i915/intel_device_info.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_drv.h +1
-1@@ -1237,7 +1237,7 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen)#define INTEL_DEVID (dev_priv) (RUNTIME_INFO(dev_priv)->device_id) -#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.version) +#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.ver)#define IS_DISPLAY_RANGE (i915, from, until) \ (DISPLAY_VER(i915) >= (from) && DISPLAY_VER(i915) <= (until))#define IS_DISPLAY_VER (i915, v) (DISPLAY_VER(i915) == (v))drivers/gpu/drm/i915/i915_pci.c +2
-2@@ -36,7 +36,7 @@#include "i915_selftest.h" #define PLATFORM (x) .platform = (x) -#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.version = (x) +#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.ver = (x)#define I845_PIPE_OFFSETS \ .pipe_offsets = { \@@ -723,7 +723,7 @@ static const struct intel_device_info bxt_info = {static const struct intel_device_info glk_info = {GEN9_LP_FEATURES ,PLATFORM (INTEL_GEMINILAKE ), - .display.version =10 , + .display.ver =10 , .ddb_size =1024 ,GLK_COLORS , };drivers/gpu/drm/i915/intel_device_info.h +1
-1@@ -189,7 +189,7 @@ struct intel_device_info {#undef DEFINE_FLAGstruct { -u8 version; +u8 ver;#define DEFINE_FLAG (name) u8 name:1DEV_INFO_DISPLAY_FOR_EACH_FLAG (DEFINE_FLAG);Signature · 1 line
2.31.1
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/12 drm/i915: add macros for graphics and media versions
In reply to Lucas De MarchiLike it was done in
commit 01eb15c9165e ("drm/i915: Add DISPLAY_VER() and related macros") add the correspondent macros for graphics and media. Going forward we will prefer checking the versions for the specific IPs (graphics, media and display) rather than grouping everything under a "gen" version.
For consistency and to make the maintenance easier, it'd be preferred not to mix the *GEN* macros with the new ones. For older platforms we can simply consider that the previous "gen" number will extend to all 3 IPs. Then we can start replacing its use in the driver. Right now this replacement is not done and only the infrastructure is put in place. We also leave gen and gen_mask inside struct intel_device_info while it's still being used throughout the code.
--- drivers/gpu/drm/i915/i915_drv.h | 17 ++++++++++++++++- drivers/gpu/drm/i915/i915_pci.c | 7 ++++++- drivers/gpu/drm/i915/intel_device_info.h | 3 +++ 3 files changed, 25 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +16 -1
@@ -1234,9 +1234,24 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)#define RUNTIME_INFO (dev_priv) (&(dev_priv)->__runtime)#define DRIVER_CAPS (dev_priv) (&(dev_priv)->caps) -#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen)#define INTEL_DEVID (dev_priv) (RUNTIME_INFO(dev_priv)->device_id) +/* +* Deprecated: this will be replaced by individual IP checks: +* GRAPHICS_VER(), MEDIA_VER and DISPLAY_VER() +*/ +#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen) + +#define GRAPHICS_VER (i915) (INTEL_INFO(i915)->graphics_ver) +#define IS_GRAPHICS_RANGE (i915, from, until) \ + (GRAPHICS_VER(i915) >= (from) && GRAPHICS_VER(i915) <= (until)) +#define IS_GRAPHICS_VER (i915, v) (GRAPHICS_VER(i915) == (v)) + +#define MEDIA_VER (i915) (INTEL_INFO(i915)->media_ver) +#define IS_MEDIA_RANGE (i915, from, until) \ + (MEDIA_VER(i915) >= (from) && MEDIA_VER(i915) <= (until)) +#define IS_MEDIA_VER (i915, v) (MEDIA_VER(i915) == (v)) +#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.ver)#define IS_DISPLAY_RANGE (i915, from, until) \ (DISPLAY_VER(i915) >= (from) && DISPLAY_VER(i915) <= (until))
drivers/gpu/drm/i915/i915_pci.c +6 -1
@@ -36,7 +36,12 @@#include "i915_selftest.h" #define PLATFORM (x) .platform = (x) -#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.ver = (x) +#define GEN (x) \ + .gen_mask = BIT((x) - 1), \ + .gen = (x), \ + .graphics_ver = (x), \ + .media_ver = (x), \ + .display.ver = (x)#define I845_PIPE_OFFSETS \ .pipe_offsets = { \
drivers/gpu/drm/i915/intel_device_info.h +3 -0
@@ -162,6 +162,9 @@ enum intel_ppgtt_type {struct intel_device_info {u16 gen_mask; +u8 graphics_ver; +u8 media_ver; +u8 gen;u8 gt;/* GT number, 0 if undefined */ intel_engine_mask_t platform_engine_mask;/* Engines supported by the HW */
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 02/12] drm/i915: add macros for graphics and media versions
Quoted 6 lines · Lucas De Marchi
Like it was done in
commit01eb15c9165e("drm/i915: AddDISPLAY_VER()and related macros") add the correspondent macros for graphics and media. Going forward we will prefer checking the versions for the specific IPs (graphics, media and display) rather than grouping everything under a "gen" version.
Quoted 7 lines
For consistency and to make the maintenance easier, it'd be preferred not to mix the *GEN* macros with the new ones. For older platforms we can simply consider that the previous "gen" number will extend to all 3 IPs. Then we can start replacing its use in the driver. Right now this replacement is not done and only the infrastructure is put in place. We also leave gen and
gen_maskinside structintel_device_infowhile it's still being used throughout the code.
Quoted 82 lines
Signed-off-by Lucas De Marchi <[email protected]>---
drivers/gpu/drm/i915/i915_drv.h | 17 ++++++++++++++++- drivers/gpu/drm/i915/i915_pci.c | 7 ++++++- drivers/gpu/drm/i915/intel_device_info.h | 3 +++ 3 files changed, 25 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_drv.h +0
-0@@ -1234,9 +1234,24 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) #define RUNTIME_INFO(dev_priv) (&(dev_priv)->__runtime) #define DRIVER_CAPS(dev_priv) (&(dev_priv)->caps)-#define
INTEL_GEN(dev_priv)(INTEL_INFO(dev_priv)->gen)
#defineINTEL_DEVID(dev_priv)(RUNTIME_INFO(dev_priv)->device_id)drivers/gpu/drm/i915/i915_drv.h +16
-0+/* +* Deprecated: this will be replaced by individual IP checks: +* GRAPHICS_VER(), MEDIA_VER and DISPLAY_VER() +*/ +#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen) + +#define GRAPHICS_VER (i915) (INTEL_INFO(i915)->graphics_ver) +#define IS_GRAPHICS_RANGE (i915, from, until) \ + (GRAPHICS_VER(i915) >= (from) && GRAPHICS_VER(i915) <= (until)) +#define IS_GRAPHICS_VER (i915, v) (GRAPHICS_VER(i915) == (v)) + +#define MEDIA_VER (i915) (INTEL_INFO(i915)->media_ver) +#define IS_MEDIA_RANGE (i915, from, until) \ + (MEDIA_VER(i915) >= (from) && MEDIA_VER(i915) <= (until)) +#define IS_MEDIA_VER (i915, v) (MEDIA_VER(i915) == (v)) +#define
DISPLAY_VER(i915)(INTEL_INFO(i915)->display.ver)
#defineIS_DISPLAY_RANGE(i915, from, until)\
(DISPLAY_VER(i915)>= (from) &&DISPLAY_VER(i915)<= (until))drivers/gpu/drm/i915/i915_pci.c +0
-0@@ -36,7 +36,12 @@ #include "i915_selftest.h"#define PLATFORM(x) .platform = (x)
drivers/gpu/drm/i915/i915_pci.c +6
-1-#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.ver = (x) +#define GEN (x) \ + .gen_mask = BIT((x) - 1), \ + .gen = (x), \ + .graphics_ver = (x), \ + .media_ver = (x), \ + .display.ver = (x)#define
I845_PIPE_OFFSETS\
.pipe_offsets = { \drivers/gpu/drm/i915/intel_device_info.h +0
-0@@ -162,6 +162,9 @@ enum intel_ppgtt_type { struct intel_device_info { u16 gen_mask;drivers/gpu/drm/i915/intel_device_info.h +3
-0+u8 graphics_ver; +u8 media_ver; +
Quoted 3 lines
u8 gen;
u8 gt; /* GT number, 0 if undefined */
intel_engine_mask_tplatform_engine_mask; /* Engines supported by the HW */
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 02/12] drm/i915: add macros for graphics and media versions
In reply to Lucas De MarchiQuoted 40 lines · Lucas De Marchi
Like it was done in
commit01eb15c9165e("drm/i915: AddDISPLAY_VER()and related macros") add the correspondent macros for graphics and media. Going forward we will prefer checking the versions for the specific IPs (graphics, media and display) rather than grouping everything under a "gen" version.For consistency and to make the maintenance easier, it'd be preferred not to mix the *GEN* macros with the new ones. For older platforms we can simply consider that the previous "gen" number will extend to all 3 IPs. Then we can start replacing its use in the driver. Right now this replacement is not done and only the infrastructure is put in place. We also leave gen and
gen_maskinside structintel_device_infowhile it's still being used throughout the code.Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/i915_drv.h | 17 ++++++++++++++++- drivers/gpu/drm/i915/i915_pci.c | 7 ++++++- drivers/gpu/drm/i915/intel_device_info.h | 3 +++ 3 files changed, 25 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_drv.h +8
-1@@ -1234,9 +1234,24 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)#define RUNTIME_INFO (dev_priv) (&(dev_priv)->__runtime)#define DRIVER_CAPS (dev_priv) (&(dev_priv)->caps) -#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen)#define INTEL_DEVID (dev_priv) (RUNTIME_INFO(dev_priv)->device_id) +/* +* Deprecated: this will be replaced by individual IP checks: +* GRAPHICS_VER(), MEDIA_VER and DISPLAY_VER() +*/ +#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen) + +#define GRAPHICS_VER (i915) (INTEL_INFO(i915)->graphics_ver) +#define IS_GRAPHICS_RANGE (i915, from, until) \
drivers/gpu/drm/i915/i915_drv.h static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) · line 1256
Quoted 10 lines
drivers/gpu/drm/i915/i915_drv.h +8
-0+ (GRAPHICS_VER(i915) >= (from) && GRAPHICS_VER(i915) <= (until)) +#define IS_GRAPHICS_VER (i915, v) (GRAPHICS_VER(i915) == (v)) + +#define MEDIA_VER (i915) (INTEL_INFO(i915)->media_ver) +#define IS_MEDIA_RANGE (i915, from, until) \ + (MEDIA_VER(i915) >= (from) && MEDIA_VER(i915) <= (until)) +#define IS_MEDIA_VER (i915, v) (MEDIA_VER(i915) == (v)) +#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.ver)#define IS_DISPLAY_RANGE (i915, from, until) \
Why is naming so hard?!
I am seriously wondering if IS_GRAPHICS_RANGE() and friends can be misleading. What range? IS_GRAPHICS_VER_RANGE() is more accurate, but is it too long?
Am I worrying over nothing?
BR,
Jani.
Quoted 33 lines
drivers/gpu/drm/i915/i915_drv.h +0
-0(DISPLAY_VER (i915) >= (from ) &&DISPLAY_VER (i915) <= (until))drivers/gpu/drm/i915/i915_pci.c +6
-1@@ -36,7 +36,12 @@#include "i915_selftest.h" #define PLATFORM (x) .platform = (x) -#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.ver = (x) +#define GEN (x) \ + .gen_mask = BIT((x) - 1), \ + .gen = (x), \ + .graphics_ver = (x), \ + .media_ver = (x), \ + .display.ver = (x)#define I845_PIPE_OFFSETS \ .pipe_offsets = { \drivers/gpu/drm/i915/intel_device_info.h +3
-0@@ -162,6 +162,9 @@ enum intel_ppgtt_type {struct intel_device_info {u16 gen_mask; +u8 graphics_ver; +u8 media_ver; +u8 gen;u8 gt;/* GT number, 0 if undefined */ intel_engine_mask_t platform_engine_mask;/* Engines supported by the HW */
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 02/12] drm/i915: add macros for graphics and media versions
Quoted 33 lines · Jani Nikula
Quoted 32 lines · Lucas De Marchi
Like it was done in
commit01eb15c9165e("drm/i915: AddDISPLAY_VER()and related macros") add the correspondent macros for graphics and media. Going forward we will prefer checking the versions for the specific IPs (graphics, media and display) rather than grouping everything under a "gen" version.For consistency and to make the maintenance easier, it'd be preferred not to mix the *GEN* macros with the new ones. For older platforms we can simply consider that the previous "gen" number will extend to all 3 IPs. Then we can start replacing its use in the driver. Right now this replacement is not done and only the infrastructure is put in place. We also leave gen and
gen_maskinside structintel_device_infowhile it's still being used throughout the code.Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/i915_drv.h | 17 ++++++++++++++++- drivers/gpu/drm/i915/i915_pci.c | 7 ++++++- drivers/gpu/drm/i915/intel_device_info.h | 3 +++ 3 files changed, 25 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_drv.h +0
-1@@ -1234,9 +1234,24 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)#define RUNTIME_INFO (dev_priv) (&(dev_priv)->__runtime)#define DRIVER_CAPS (dev_priv) (&(dev_priv)->caps) -#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen)#define INTEL_DEVID (dev_priv) (RUNTIME_INFO(dev_priv)->device_id)
Quoted 15 lines
Quoted 5 lines
drivers/gpu/drm/i915/i915_drv.h +5
-0+/* +* Deprecated: this will be replaced by individual IP checks: +* GRAPHICS_VER(), MEDIA_VER and DISPLAY_VER() +*/ +#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen)drivers/gpu/drm/i915/i915_drv.h static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) · line 1253
Quoted 10 lines
drivers/gpu/drm/i915/i915_drv.h +10
-0+ +#define GRAPHICS_VER (i915) (INTEL_INFO(i915)->graphics_ver) +#define IS_GRAPHICS_RANGE (i915, from, until) \ + (GRAPHICS_VER(i915) >= (from) && GRAPHICS_VER(i915) <= (until)) +#define IS_GRAPHICS_VER (i915, v) (GRAPHICS_VER(i915) == (v)) + +#define MEDIA_VER (i915) (INTEL_INFO(i915)->media_ver) +#define IS_MEDIA_RANGE (i915, from, until) \ + (MEDIA_VER(i915) >= (from) && MEDIA_VER(i915) <= (until)) +#define IS_MEDIA_VER (i915, v) (MEDIA_VER(i915) == (v))
Btw, if we're ditching .gen_mask, the original reason (i.e. bit masking) for having the IS_GEN() macro goes away. Maybe we should just ditch the IS_GRAPHICS_VER(), IS_MEDIA_VER() and IS_DISPLAY_VER() macros, and move to GRAPHICS_VER() == V and friends instead?
I know we already added IS_DISPLAY_VER(). Actually 150+ instances of it. However, we have 500+ usages of DISPLAY_VER() with various comparisons. Why should "==" be special, when it no longer uses masking?
I argued for keeping the _RANGE() variant to simplify range conditions. I still stand by that. But the reason is readability.
...
And if we indeed removed IS_GRAPHICS_VER(i915, V)... could we make it IS_GRAPHICS_VER(i915, from, until) instead? Too confusing? Maybe.
But I'd like to seriously consider dropping, or rather not adding, the single-version IS_GRAPHICS_VER() and IS_MEDIA_VER() checks, and converting the IS_DISPLAY_VER() ones too.
Thoughts?
BR,
Jani.
Quoted 49 lines
drivers/gpu/drm/i915/i915_drv.h static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) · line 1256
Quoted 3 lines
drivers/gpu/drm/i915/i915_drv.h +1
-0+#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.ver)#define IS_DISPLAY_RANGE (i915, from, until) \Why is naming so hard?!
I am seriously wondering if
IS_GRAPHICS_RANGE()and friends can be misleading. What range?IS_GRAPHICS_VER_RANGE()is more accurate, but is it too long?Am I worrying over nothing?
BR,
Jani.Quoted 33 lines
drivers/gpu/drm/i915/i915_drv.h +0
-0(DISPLAY_VER (i915) >= (from ) &&DISPLAY_VER (i915) <= (until))drivers/gpu/drm/i915/i915_pci.c +6
-1@@ -36,7 +36,12 @@#include "i915_selftest.h" #define PLATFORM (x) .platform = (x) -#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.ver = (x) +#define GEN (x) \ + .gen_mask = BIT((x) - 1), \ + .gen = (x), \ + .graphics_ver = (x), \ + .media_ver = (x), \ + .display.ver = (x)#define I845_PIPE_OFFSETS \ .pipe_offsets = { \drivers/gpu/drm/i915/intel_device_info.h +3
-0@@ -162,6 +162,9 @@ enum intel_ppgtt_type {struct intel_device_info {u16 gen_mask; +u8 graphics_ver; +u8 media_ver; +u8 gen;u8 gt;/* GT number, 0 if undefined */ intel_engine_mask_t platform_engine_mask;/* Engines supported by the HW */
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: [Intel-gfx] [PATCH 02/12] drm/i915: add macros for graphics and media versions
Quoted 44 lines · Jani Nikula
Quoted 43 lines · Jani Nikula
Quoted 42 lines · Lucas De Marchi
Like it was done in
commit01eb15c9165e("drm/i915: AddDISPLAY_VER()and related macros") add the correspondent macros for graphics and media. Going forward we will prefer checking the versions for the specific IPs (graphics, media and display) rather than grouping everything under a "gen" version.For consistency and to make the maintenance easier, it'd be preferred not to mix the *GEN* macros with the new ones. For older platforms we can simply consider that the previous "gen" number will extend to all 3 IPs. Then we can start replacing its use in the driver. Right now this replacement is not done and only the infrastructure is put in place. We also leave gen and
gen_maskinside structintel_device_infowhile it's still being used throughout the code.Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/i915_drv.h | 17 ++++++++++++++++- drivers/gpu/drm/i915/i915_pci.c | 7 ++++++- drivers/gpu/drm/i915/intel_device_info.h | 3 +++ 3 files changed, 25 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_drv.h +10
-1@@ -1234,9 +1234,24 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)#define RUNTIME_INFO (dev_priv) (&(dev_priv)->__runtime)#define DRIVER_CAPS (dev_priv) (&(dev_priv)->caps) -#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen)#define INTEL_DEVID (dev_priv) (RUNTIME_INFO(dev_priv)->device_id) +/* +* Deprecated: this will be replaced by individual IP checks: +* GRAPHICS_VER(), MEDIA_VER and DISPLAY_VER() +*/ +#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen) + +#define GRAPHICS_VER (i915) (INTEL_INFO(i915)->graphics_ver) +#define IS_GRAPHICS_RANGE (i915, from, until) \ + (GRAPHICS_VER(i915) >= (from) && GRAPHICS_VER(i915) <= (until)) +#define IS_GRAPHICS_VER (i915, v) (GRAPHICS_VER(i915) == (v))
Quoted 8 lines
Quoted 5 lines
drivers/gpu/drm/i915/i915_drv.h static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) · line 1253
Quoted 5 lines
drivers/gpu/drm/i915/i915_drv.h +5
-0+ +#define MEDIA_VER (i915) (INTEL_INFO(i915)->media_ver) +#define IS_MEDIA_RANGE (i915, from, until) \ + (MEDIA_VER(i915) >= (from) && MEDIA_VER(i915) <= (until)) +#define IS_MEDIA_VER (i915, v) (MEDIA_VER(i915) == (v))Btw, if we're ditching .gen_mask, the original reason (i.e. bit masking) for having the
IS_GEN()macro goes away. Maybe we should just ditch the
humn... I don't follow where gen_mask is connected to IS_GEN. It is connected to the use of IS_GEN_RANGE() mostly. In theory the compiler could shortcut if (IS_GEN(i915, 10) || IS_GEN(i915, 11) etc to do a single ADD. In practice those are often surrounded by additional checks that makes this impossible. If they were following one another, then we should probably convert them to IS_GEN_RANGE() anyway.
On some quick greps I can't find a single place in the code base where that is actually useful. We have some uses like:
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1442: return engine->class != VIDEO_DECODE_CLASS || !IS_GEN(engine->i915, 6);
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2335: if (!IS_GEN(rq->engine->i915, 7) || rq->engine->id != RCS0) {
drivers/gpu/drm/i915/gem/i915_gem_stolen.c:150: if (!r && !IS_GEN(i915, 3)) {
drivers/gpu/drm/i915/gt/gen2_engine_cs.c:77: if (IS_G4X(rq->engine->i915) || IS_GEN(rq->engine->i915, 5))drivers/gpu/drm/i915/gt/intel_ggtt.c:109: if (IS_GEN(i915, 5) && IS_MOBILE(i915))
Maybe this is the only one:
drivers/gpu/drm/i915/i915_cmd_parser.c:949: if (!IS_GEN(engine->i915, 7) && !(IS_GEN(engine->i915, 9) &&drivers/gpu/drm/i915/i915_cmd_parser.c-950- engine->class == COPY_ENGINE_CLASS))
which could be done by the compiler as the equivalent of
mask = ~(0x80 | 0x200) if ((gen & mask) && engine->class == COPY_ENGINE_CLASS)
... not worth keeping for that reason IMO
Quoted 7 lines
IS_GRAPHICS_VER(),IS_MEDIA_VER()andIS_DISPLAY_VER()macros, and move toGRAPHICS_VER()== V and friends instead?I know we already added
IS_DISPLAY_VER(). Actually 150+ instances of it. However, we have 500+ usages ofDISPLAY_VER()with various comparisons. Why should "==" be special, when it no longer uses masking?
Quoted 7 lines
I argued for keeping the
_RANGE()variant to simplify range conditions. I still stand by that. But the reason is readability....
And if we indeed removed
IS_GRAPHICS_VER(i915, V)... could we make itIS_GRAPHICS_VER(i915, from, until)instead? Too confusing? Maybe.
I think that is reasonable. A long time ago when we were adding the *_RANGE variants I was even proposing having some macro magic to have them as IS_GEN(i915, x), IS_GEN(i915, x, y). So I may be biased, but I like having a IS_GRAPHICS_VER(i915, x, y) and ditch "RANGE" from the macro names. Some minor adjustements to patch 11 and the removal of the new defines should be sufficient.
Btw, I also don't see much problem with the current scheme in this version.... The missing "_VER" in the RANGE variants doesn't bother me much.
Anyway, if nobody chimes in opposing to this direction, next version will be:
1) IS_*_RANGE() -> IS_*
2) ditch IS_*_VER() and use direct == comparison.
thanks
Lucas De Marchi
Quoted 58 lines
But I'd like to seriously consider dropping, or rather not adding, the single-version
IS_GRAPHICS_VER()andIS_MEDIA_VER()checks, and converting theIS_DISPLAY_VER()ones too.Thoughts?
BR,
Jani.Quoted 43 lines
drivers/gpu/drm/i915/i915_drv.h static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) · line 1256
Quoted 3 lines
drivers/gpu/drm/i915/i915_drv.h +1
-0+#define DISPLAY_VER (i915) (INTEL_INFO(i915)->display.ver)#define IS_DISPLAY_RANGE (i915, from, until) \Why is naming so hard?!
I am seriously wondering if
IS_GRAPHICS_RANGE()and friends can be misleading. What range?IS_GRAPHICS_VER_RANGE()is more accurate, but is it too long?Am I worrying over nothing?
BR,
Jani.Quoted 27 lines
drivers/gpu/drm/i915/i915_drv.h +0
-0(DISPLAY_VER (i915) >= (from ) &&DISPLAY_VER (i915) <= (until))drivers/gpu/drm/i915/i915_pci.c +6
-1@@ -36,7 +36,12 @@#include "i915_selftest.h" #define PLATFORM (x) .platform = (x) -#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1), .display.ver = (x) +#define GEN (x) \ + .gen_mask = BIT((x) - 1), \ + .gen = (x), \ + .graphics_ver = (x), \ + .media_ver = (x), \ + .display.ver = (x)#define I845_PIPE_OFFSETS \ .pipe_offsets = { \drivers/gpu/drm/i915/intel_device_info.h +0
-0@@ -162,6 +162,9 @@ enum intel_ppgtt_type {struct intel_device_info {u16 gen_mask;
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/intel_device_info.h +3
-0+u8 graphics_ver; +u8 media_ver; +u8 gen;u8 gt;/* GT number, 0 if undefined */ intel_engine_mask_t platform_engine_mask;/* Engines supported by the HW */ Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/12 drm/i915/gt: replace gen use in intel_engine_cs
In reply to Lucas De MarchiStart using the new fields graphics_version for the previous gen checks. Here we rename the "gen" field and replace the comparisons using it to start using the new GRAPHICS_VER(). Other uses of INTEL_GEN() were left as is for automatic conversion later.
--- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 40 ++++++++++---------- drivers/gpu/drm/i915/gt/selftest_engine_cs.c | 18 ++++----- 2 files changed, 29 insertions(+), 29 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_cs.c +20 -20
@@ -45,9 +45,9 @@ struct engine_info {unsigned int hw_id;u8 class;u8 instance; -/* mmio bases table *must* be sorted in reverse gen order */ +/* mmio bases table *must* be sorted in reverse graphics_ver order */ struct engine_mmio_base { -u32 gen :8 ; +u32 graphics_ver :8 ;u32 base :24 ; } mmio_bases[MAX_MMIO_BASES ]; };
@@ -58,7 +58,7 @@ static const struct engine_info intel_engines[] = { .class = RENDER_CLASS, .instance = 0, .mmio_bases = { - { .gen = 1, .base = RENDER_RING_BASE } + { .graphics_ver = 1, .base = RENDER_RING_BASE } }, }, [BCS0] = {
@@ -66,7 +66,7 @@ static const struct engine_info intel_engines[] = { .class = COPY_ENGINE_CLASS, .instance = 0, .mmio_bases = { - { .gen = 6, .base = BLT_RING_BASE } + { .graphics_ver = 6, .base = BLT_RING_BASE } }, }, [VCS0] = {
@@ -74,9 +74,9 @@ static const struct engine_info intel_engines[] = { .class = VIDEO_DECODE_CLASS, .instance = 0, .mmio_bases = { - { .gen = 11, .base = GEN11_BSD_RING_BASE }, - { .gen = 6, .base = GEN6_BSD_RING_BASE }, - { .gen = 4, .base = BSD_RING_BASE } + { .graphics_ver = 11, .base = GEN11_BSD_RING_BASE }, + { .graphics_ver = 6, .base = GEN6_BSD_RING_BASE }, + { .graphics_ver = 4, .base = BSD_RING_BASE } }, }, [VCS1] = {
@@ -84,8 +84,8 @@ static const struct engine_info intel_engines[] = { .class = VIDEO_DECODE_CLASS, .instance = 1, .mmio_bases = { - { .gen = 11, .base = GEN11_BSD2_RING_BASE }, - { .gen = 8, .base = GEN8_BSD2_RING_BASE } + { .graphics_ver = 11, .base = GEN11_BSD2_RING_BASE }, + { .graphics_ver = 8, .base = GEN8_BSD2_RING_BASE } }, }, [VCS2] = {
@@ -93,7 +93,7 @@ static const struct engine_info intel_engines[] = { .class = VIDEO_DECODE_CLASS, .instance = 2, .mmio_bases = { - { .gen = 11, .base = GEN11_BSD3_RING_BASE } + { .graphics_ver = 11, .base = GEN11_BSD3_RING_BASE } }, }, [VCS3] = {
@@ -101,7 +101,7 @@ static const struct engine_info intel_engines[] = { .class = VIDEO_DECODE_CLASS, .instance = 3, .mmio_bases = { - { .gen = 11, .base = GEN11_BSD4_RING_BASE } + { .graphics_ver = 11, .base = GEN11_BSD4_RING_BASE } }, }, [VECS0] = {
@@ -109,8 +109,8 @@ static const struct engine_info intel_engines[] = { .class = VIDEO_ENHANCEMENT_CLASS, .instance = 0, .mmio_bases = { - { .gen = 11, .base = GEN11_VEBOX_RING_BASE }, - { .gen = 7, .base = VEBOX_RING_BASE } + { .graphics_ver = 11, .base = GEN11_VEBOX_RING_BASE }, + { .graphics_ver = 7, .base = VEBOX_RING_BASE } }, }, [VECS1] = {
@@ -118,7 +118,7 @@ static const struct engine_info intel_engines[] = { .class = VIDEO_ENHANCEMENT_CLASS, .instance = 1, .mmio_bases = { - { .gen = 11, .base = GEN11_VEBOX2_RING_BASE } + { .graphics_ver = 11, .base = GEN11_VEBOX2_RING_BASE } }, }, };
@@ -146,9 +146,9 @@ u32 intel_engine_context_size(struct intel_gt *gt, u8 class)switch (class) {case RENDER_CLASS : -switch (INTEL_GEN (gt->i915)) { +switch (GRAPHICS_VER (gt->i915)) {default : -MISSING_CASE (INTEL_GEN (gt->i915)); +MISSING_CASE (GRAPHICS_VER (gt->i915));return DEFAULT_LR_CONTEXT_RENDER_SIZE ;case 12 :case 11 :
@@ -184,8 +184,8 @@ u32 intel_engine_context_size(struct intel_gt *gt, u8 class)*/ cxt_size =intel_uncore_read (uncore,CXT_SIZE ) +1 ;drm_dbg (>->i915->drm, -"gen%d CXT_SIZE = %d bytes [0x%08x]\n" , -INTEL_GEN (gt->i915), cxt_size *64 , +"graphics_ver = %d CXT_SIZE = %d bytes [0x%08x]\n" , +GRAPHICS_VER (gt->i915), cxt_size *64 , cxt_size -1 );return round_up (cxt_size *64 ,PAGE_SIZE );case 3 :
@@ -201,7 +201,7 @@ u32 intel_engine_context_size(struct intel_gt *gt, u8 class)case VIDEO_DECODE_CLASS :case VIDEO_ENHANCEMENT_CLASS :case COPY_ENGINE_CLASS : -if (INTEL_GEN (gt->i915) <8 ) +if (GRAPHICS_VER (gt->i915) <8 )return 0 ;return GEN8_LR_CONTEXT_OTHER_SIZE ; }
@@ -213,7 +213,7 @@ static u32 __engine_mmio_base(struct drm_i915_private *i915,int i;for (i =0 ; i <MAX_MMIO_BASES ; i++) -if (INTEL_GEN (i915) >= bases[i].gen) +if (GRAPHICS_VER (i915) >= bases[i].graphics_ver)break ;GEM_BUG_ON (i ==MAX_MMIO_BASES );
drivers/gpu/drm/i915/gt/selftest_engine_cs.c +9 -9
@@ -376,34 +376,34 @@ static int intel_mmio_bases_check(void *arg)u8 prev =U8_MAX ;for (j =0 ; j <MAX_MMIO_BASES ; j++) { -u8 gen = info->mmio_bases[j].gen; +u8 ver = info->mmio_bases[j].graphics_ver;u32 base = info->mmio_bases[j].base; -if (gen >= prev) { -pr_err ("%s(%s, class:%d, instance:%d): mmio base for gen %x is before the one for gen %x\n" , +if (ver >= prev) { +pr_err ("%s(%s, class:%d, instance:%d): mmio base for graphics ver %u is before the one for ver %u\n" , __func__,intel_engine_class_repr (info->class), info->class, info->instance, - prev, gen); + prev, ver);return -EINVAL ; } -if (gen ==0 ) +if (ver ==0 )break ;if (!base) { -pr_err ("%s(%s, class:%d, instance:%d): invalid mmio base (%x) for gen %x at entry %u\n" , +pr_err ("%s(%s, class:%d, instance:%d): invalid mmio base (%x) for graphics ver %u at entry %u\n" , __func__,intel_engine_class_repr (info->class), info->class, info->instance, - base, gen, j); + base, ver, j);return -EINVAL ; } - prev = gen; + prev = ver; } - pr_debug("%s: min gen supported for %s%d is %d\n", + pr_debug("%s: min graphics version supported for %s%d is %u\n", __func__, intel_engine_class_repr(info->class), info->instance,
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/12 drm/i915/selftests: replace unused mask with simple version
In reply to Lucas De MarchiSince its introduction 2 years ago, we never used the mask to span more than one gen. Replace gen_mask a single number and start using the new GRAPHICS_VER().
--- drivers/gpu/drm/i915/gt/selftest_workarounds.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gt/selftest_workarounds.c +5 -5
@@ -927,7 +927,7 @@ static int scrub_whitelisted_registers(struct intel_context *ce)struct regmask {i915_reg_t reg; -unsigned long gen_mask; +u8 graphics_ver; }; static bool find_reg(struct drm_i915_private *i915,
@@ -938,7 +938,7 @@ static bool find_reg(struct drm_i915_private *i915,u32 offset =i915_mmio_reg_offset (reg);while (count--) { -if (INTEL_INFO (i915)->gen_mask & tbl->gen_mask && +if (GRAPHICS_VER (i915) == tbl->graphics_ver &&i915_mmio_reg_offset (tbl->reg) == offset)return true; tbl++;
@@ -951,8 +951,8 @@ static bool pardon_reg(struct drm_i915_private *i915, i915_reg_t reg) {/* Alas, we must pardon some whitelists. Mistakes already made */ static const struct regmask pardon[] = { - {GEN9_CTX_PREEMPT_REG ,INTEL_GEN_MASK (9 ,9 ) }, - {GEN8_L3SQCREG4 ,INTEL_GEN_MASK (9 ,9 ) }, + {GEN9_CTX_PREEMPT_REG ,9 }, + {GEN8_L3SQCREG4 ,9 }, };return find_reg (i915, reg, pardon,ARRAY_SIZE (pardon));
@@ -974,7 +974,7 @@ static bool writeonly_reg(struct drm_i915_private *i915, i915_reg_t reg) {/* Some registers do not seem to behave and our writes unreadable */ static const struct regmask wo[] = { - {GEN9_SLICE_COMMON_ECO_CHICKEN1 ,INTEL_GEN_MASK (9 ,9 ) }, + {GEN9_SLICE_COMMON_ECO_CHICKEN1 ,9 }, };return find_reg (i915, reg, wo,ARRAY_SIZE (wo));
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/12 drm/i915/selftests: eliminate use of gen_mask
In reply to Lucas De MarchiRemove the remaining uses of INTEL_GEN_MASK() and the correspondent gen_mask in struct intel_device_info. This will allow the removal of gen_mask later since it's incompatible with the new per-IP versioning scheme.
--- drivers/gpu/drm/i915/intel_uncore.c | 8 +++++--- drivers/gpu/drm/i915/selftests/intel_uncore.c | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/intel_uncore.c +5 -3
@@ -2008,12 +2008,14 @@ void intel_uncore_fini_mmio(struct intel_uncore *uncore)static const struct reg_whitelist {i915_reg_t offset_ldw;i915_reg_t offset_udw; -u16 gen_mask; +u8 min_graphics_ver; +u8 max_graphics_ver;u8 size; } reg_read_whitelist[] = { { .offset_ldw =RING_TIMESTAMP (RENDER_RING_BASE ), .offset_udw =RING_TIMESTAMP_UDW (RENDER_RING_BASE ), - .gen_mask =INTEL_GEN_MASK (4 ,12 ), + .min_graphics_ver =4 , + .max_graphics_ver =12 , .size =8 } };
@@ -2038,7 +2040,7 @@ int i915_reg_read_ioctl(struct drm_device *dev,GEM_BUG_ON (entry->size >8 );GEM_BUG_ON (entry_offset & (entry->size -1 )); -if (INTEL_INFO (i915)->gen_mask & entry->gen_mask && +if (IS_GRAPHICS_RANGE (i915, entry->min_graphics_ver, entry->max_graphics_ver) && entry_offset == (reg->offset & -entry->size))break ; entry++;
drivers/gpu/drm/i915/selftests/intel_uncore.c +5 -3
@@ -125,17 +125,19 @@ static int live_forcewake_ops(void *arg) {static const struct reg {const char *name; +u8 min_graphics_ver; +u8 max_graphics_ver;unsigned long platforms;unsigned int offset; } registers[] = { {"RING_START" , -INTEL_GEN_MASK (6 ,7 ), +6 ,7 ,0x38 , }, {"RING_MI_MODE" , -INTEL_GEN_MASK (8 ,BITS_PER_LONG ), +8 ,U8_MAX ,0x9c , } };
@@ -170,7 +172,7 @@ static int live_forcewake_ops(void *arg)/* We have to pick carefully to get the exact behaviour we need */ for (r = registers; r->name; r++) -if (r->platforms &INTEL_INFO (gt->i915)->gen_mask) +if (IS_GRAPHICS_RANGE (gt->i915, r->min_graphics_ver, r->max_graphics_ver))break ;if (!r->name) { pr_debug("Forcewaked register not known for %s; skipping\n",
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 6/12 drm/i915: finish removal of gen_mask
In reply to Lucas De MarchiNow that it's not used anywhere, remove it from struct intel_device_info. To allow a period in which code will be converted to the new macro, keep IS_GEN_RANGE() around, just redefining it to use the new fields. The size advantage from IS_GEN_RANGE() using a mask is not that big as it has pretty limited use througout the driver:
text data bss dec hex filename
2758497 95965 6496 2860958 2ba79e drivers/gpu/drm/i915/i915.ko.old 2758586 95953 6496 2861035 2ba7eb drivers/gpu/drm/i915/i915.ko.new
--- drivers/gpu/drm/i915/i915_drv.c | 2 -- drivers/gpu/drm/i915/i915_drv.h | 13 ++++--------- drivers/gpu/drm/i915/i915_pci.c | 1 - drivers/gpu/drm/i915/intel_device_info.h | 2 -- 4 files changed, 4 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +0 -2
@@ -768,8 +768,6 @@ i915_driver_create(struct pci_dev *pdev, const struct pci_device_id *ent)memcpy (device_info, match_info,sizeof (*device_info));RUNTIME_INFO (i915)->device_id = pdev->device; -BUG_ON (device_info->gen >BITS_PER_TYPE (device_info->gen_mask)); -return i915; }
drivers/gpu/drm/i915/i915_drv.h +4 -9
@@ -1241,6 +1241,10 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)* GRAPHICS_VER(), MEDIA_VER and DISPLAY_VER() */ #define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen) +/* +* Deprecated: use IS_GRAPHICS_RANGE() +*/ +#define IS_GEN_RANGE (dev_priv, s, e) IS_GRAPHICS_RANGE(dev_priv, (s), (e))#define GRAPHICS_VER (i915) (INTEL_INFO(i915)->graphics_ver)#define IS_GRAPHICS_RANGE (i915, from, until) \
@@ -1260,15 +1264,6 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)#define REVID_FOREVER 0xff#define INTEL_REVID (dev_priv) (to_pci_dev((dev_priv)->drm.dev)->revision) -#define INTEL_GEN_MASK (s, e) ( \ - BUILD_BUG_ON_ZERO(!__builtin_constant_p(s)) + \ - BUILD_BUG_ON_ZERO(!__builtin_constant_p(e)) + \ - GENMASK((e) - 1, (s) - 1)) - -/* Returns true if Gen is in inclusive range [Start, End] */ -#define IS_GEN_RANGE (dev_priv, s, e) \ - (!!(INTEL_INFO(dev_priv)->gen_mask & INTEL_GEN_MASK((s), (e)))) -#define IS_GEN (dev_priv, n) \ (BUILD_BUG_ON_ZERO(!__builtin_constant_p(n)) + \ INTEL_INFO(dev_priv)->gen == (n))
drivers/gpu/drm/i915/i915_pci.c +0 -1
@@ -37,7 +37,6 @@#define PLATFORM (x) .platform = (x)#define GEN (x) \ - .gen_mask = BIT((x) - 1), \ .gen = (x), \ .graphics_ver = (x), \ .media_ver = (x), \
drivers/gpu/drm/i915/intel_device_info.h +0 -2
@@ -160,8 +160,6 @@ enum intel_ppgtt_type {func (supports_tv);struct intel_device_info { -u16 gen_mask; -u8 graphics_ver;u8 media_ver;
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 7/12 drm/i915: eliminate remaining uses of intel_device_info->gen
In reply to Lucas De MarchiReplace gen with the new graphics_ver value and use GRAPHICS_VER() in those places.
--- .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 22 +++++++++---------- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/intel_device_info.c | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +11 -11
@@ -274,7 +274,7 @@ struct i915_execbuffer {struct drm_mm_node node;/** temporary GTT binding */ unsigned long vaddr;/** Current kmap address */ unsigned long page;/** Currently mapped page index */ -unsigned int gen;/** Cached value of INTEL_GEN */ +unsigned int graphics_ver;/** Cached value of GRAPHICS_VER */ bool use_64bit_reloc : 1; bool has_llc : 1; bool has_fence : 1;
@@ -1049,10 +1049,10 @@ static void reloc_cache_init(struct reloc_cache *cache, cache->page =-1 ; cache->vaddr =0 ;/* Must be a variable in the struct to allow GCC to unroll. */ - cache->gen =INTEL_GEN (i915); + cache->graphics_ver =GRAPHICS_VER (i915); cache->has_llc =HAS_LLC (i915); cache->use_64bit_reloc =HAS_64BIT_RELOC (i915); - cache->has_fence = cache->gen <4 ; + cache->has_fence = cache->graphics_ver <4 ; cache->needs_unfenced =INTEL_INFO (i915)->unfenced_needs_alignment; cache->node.flags =0 ;reloc_cache_clear (cache);
@@ -1402,7 +1402,7 @@ static int __reloc_gpu_alloc(struct i915_execbuffer *eb, err = eb->engine->emit_bb_start (rq, batch->node.start,PAGE_SIZE , - cache->gen >5 ?0 :I915_DISPATCH_SECURE ); + cache->graphics_ver >5 ?0 :I915_DISPATCH_SECURE );if (err) goto skip_request;
@@ -1503,14 +1503,14 @@ static int __reloc_entry_gpu(struct i915_execbuffer *eb, u64 offset, u64 target_addr) { -const unsigned int gen = eb->reloc_cache.gen; +const unsigned int ver = eb->reloc_cache.graphics_ver;unsigned int len;u32 *batch;u64 addr; -if (gen >=8 ) +if (ver >=8 ) len = offset &7 ?8 :5 ; -else if (gen >=4 ) +else if (ver >=4 ) len =4 ;else len =3 ;
@@ -1522,7 +1522,7 @@ static int __reloc_entry_gpu(struct i915_execbuffer *eb,return false; addr =gen8_canonical_addr (vma->node.start + offset); -if (gen >=8 ) { +if (ver >=8 ) {if (offset &7 ) { *batch++ =MI_STORE_DWORD_IMM_GEN4 ; *batch++ =lower_32_bits (addr);
@@ -1542,7 +1542,7 @@ static int __reloc_entry_gpu(struct i915_execbuffer *eb, *batch++ =lower_32_bits (target_addr); *batch++ =upper_32_bits (target_addr); } - }else if (gen >=6 ) { + }else if (ver >=6 ) { *batch++ =MI_STORE_DWORD_IMM_GEN4 ; *batch++ =0 ; *batch++ = addr;
@@ -1552,12 +1552,12 @@ static int __reloc_entry_gpu(struct i915_execbuffer *eb, *batch++ =0 ; *batch++ =vma_phys_addr (vma, offset); *batch++ = target_addr; - }else if (gen >=4 ) { + }else if (ver >=4 ) { *batch++ =MI_STORE_DWORD_IMM_GEN4 |MI_USE_GGTT ; *batch++ =0 ; *batch++ = addr; *batch++ = target_addr; - }else if (gen >=3 && + }else if (ver >=3 && !(IS_I915G (eb->i915) ||IS_I915GM (eb->i915))) { *batch++ =MI_STORE_DWORD_IMM |MI_MEM_VIRTUAL ; *batch++ = addr;
drivers/gpu/drm/i915/i915_drv.c +1 -1
@@ -794,7 +794,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)return PTR_ERR (i915);/* Disable nuclear pageflip by default on pre-ILK */ -if (!i915->params.nuclear_pageflip && match_info->gen <5 ) +if (!i915->params.nuclear_pageflip && match_info->graphics_ver <5 ) i915->drm.driver_features &= ~DRIVER_ATOMIC ;/*
drivers/gpu/drm/i915/intel_device_info.c +1 -1
@@ -95,7 +95,7 @@ static const char *iommu_name(void)void intel_device_info_print_static (const struct intel_device_info *info,struct drm_printer *p) { -drm_printf (p,"gen: %d\n" , info->gen); +drm_printf (p,"graphics_ver: %u\n" , info->graphics_ver);drm_printf (p,"gt: %d\n" , info->gt);drm_printf (p,"iommu: %s\n" ,iommu_name ());drm_printf (p,"memory-regions: %x\n" , info->memory_regions);
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 8/12 drm/i915: finish removal of gen from intel_device_info
In reply to Lucas De MarchiNow that it's not being used anymore, finish its removal. Like for gen_mask, we replace INTEL_GEN() and IS_GEN() macros to use the new field.
--- drivers/gpu/drm/i915/i915_drv.h | 10 +++++----- drivers/gpu/drm/i915/i915_pci.c | 1 - drivers/gpu/drm/i915/intel_device_info.h | 1 - drivers/gpu/drm/i915/selftests/mock_gem_device.c | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +5 -5
@@ -1240,11 +1240,15 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)* Deprecated: this will be replaced by individual IP checks: * GRAPHICS_VER(), MEDIA_VER and DISPLAY_VER() */ -#define INTEL_GEN (dev_priv) (INTEL_INFO(dev_priv)->gen) +#define INTEL_GEN (dev_priv) GRAPHICS_VER(dev_priv)/* * Deprecated: use IS_GRAPHICS_RANGE() */ #define IS_GEN_RANGE (dev_priv, s, e) IS_GRAPHICS_RANGE(dev_priv, (s), (e)) +/* +* Deprecated: use IS_GRAPHICS_VER() +*/ +#define IS_GEN (dev_priv, n) IS_GRAPHICS_VER(dev_priv, (n))#define GRAPHICS_VER (i915) (INTEL_INFO(i915)->graphics_ver)#define IS_GRAPHICS_RANGE (i915, from, until) \
@@ -1264,10 +1268,6 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)#define REVID_FOREVER 0xff#define INTEL_REVID (dev_priv) (to_pci_dev((dev_priv)->drm.dev)->revision) -#define IS_GEN (dev_priv, n) \ - (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)/*
drivers/gpu/drm/i915/i915_pci.c +0 -1
@@ -37,7 +37,6 @@#define PLATFORM (x) .platform = (x)#define GEN (x) \ - .gen = (x), \ .graphics_ver = (x), \ .media_ver = (x), \ .display.ver = (x)
drivers/gpu/drm/i915/intel_device_info.h +0 -1
@@ -163,7 +163,6 @@ struct intel_device_info {u8 graphics_ver;u8 media_ver; -u8 gen;u8 gt;/* GT number, 0 if undefined */ intel_engine_mask_t platform_engine_mask;/* Engines supported by the HW */
drivers/gpu/drm/i915/selftests/mock_gem_device.c +1 -1
@@ -162,7 +162,7 @@ struct drm_i915_private *mock_gem_device(void)/* Using the global GTT may ask questions about KMS users, so prepare */ drm_mode_config_init (&i915->drm); -mkwrite_device_info (i915)->gen =-1 ; +mkwrite_device_info (i915)->graphics_ver =-1 ;mkwrite_device_info (i915)->page_sizes = I915_GTT_PAGE_SIZE_4K |
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 9/12 drm/i915: add media and display versions to device_info print
In reply to Lucas De MarchiSince we are now converting from a single gen version to graphics_ver, media_ver and display_ver, add the last 2 when printing the device info.
--- drivers/gpu/drm/i915/intel_device_info.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/intel_device_info.c +2 -0
@@ -96,6 +96,8 @@ void intel_device_info_print_static(const struct intel_device_info *info, struct drm_printer *p) {drm_printf (p,"graphics_ver: %u\n" , info->graphics_ver); +drm_printf (p,"media_ver: %u\n" , info->media_ver); +drm_printf (p,"display_ver: %u\n" , info->display.ver);drm_printf (p,"gt: %d\n" , info->gt);drm_printf (p,"iommu: %s\n" ,iommu_name ());drm_printf (p,"memory-regions: %x\n" , info->memory_regions);
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 10/12 drm/i915/display: use DISPLAY_VER() on remaining users
In reply to Lucas De MarchiCommit 989634fb49ad ("drm/i915/audio: set HDA link parameters in driver") added INTEL_GEN() in the display code, where it should actually be using DISPLAY_VER(). Switch to the new macro.
--- drivers/gpu/drm/i915/display/intel_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_audio.c +1 -1
@@ -1309,7 +1309,7 @@ static void i915_audio_component_init(struct drm_i915_private *dev_priv)if (DISPLAY_VER (dev_priv) >=9 ) { aud_freq_init =intel_de_read (dev_priv,AUD_FREQ_CNTRL ); -if (INTEL_GEN (dev_priv) >=12 ) +if (DISPLAY_VER (dev_priv) >=12 ) aud_freq =AUD_FREQ_GEN12 ;else aud_freq = aud_freq_init;
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 11/12 drm/i915: replace IS_GEN and friends with IS_GRAPHICS_VER
In reply to Lucas De MarchiThis was done by the following semantic patch:
@@ expression dev_priv, E; @@
- INTEL_GEN(dev_priv) == E
+ IS_GRAPHICS_VER(dev_priv, E)
@@ expression dev_priv; @@
- INTEL_GEN(dev_priv)
+ GRAPHICS_VER(dev_priv)
@@ expression dev_priv; expression E; @@
- IS_GEN(dev_priv, E)
+ IS_GRAPHICS_VER(dev_priv, E)
@@
expression dev_priv;
expression from, until;
@@
- IS_GEN_RANGE(dev_priv, from, until)
+ IS_GRAPHICS_RANGE(dev_priv, from, until)
@def@
expression E;
identifier id =~ "^gen$";
@@
- id = GRAPHICS_VER(E)
+ ver = GRAPHICS_VER(E)
@@
identifier def.id;
@@
- id
+ ver
It also takes care of renaming the variable we assign to GRAPHICS_VER() so to use "ver" rather than "gen".
Although now we have some places that could be checking for MEDIA_VER() instead of GRAPHICS_VER(), it's not something that can be done in an automated manner: it needs a deep inspection of what the code is doing and possibly some refactor to separate MEDIA_VER(). For all the current platforms GRAPHICS_VER and MEDIA_VER are the same, so leave this for when it makes sense.
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 6 +- .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 11 +-- .../gpu/drm/i915/gem/i915_gem_object_blt.c | 8 +- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 16 ++-- drivers/gpu/drm/i915/gem/i915_gem_tiling.c | 12 +-- .../i915/gem/selftests/i915_gem_client_blt.c | 10 +-- .../i915/gem/selftests/i915_gem_coherency.c | 4 +- .../drm/i915/gem/selftests/i915_gem_context.c | 16 ++-- .../drm/i915/gem/selftests/i915_gem_mman.c | 14 ++-- .../drm/i915/gem/selftests/igt_gem_utils.c | 10 +-- drivers/gpu/drm/i915/gt/debugfs_gt_pm.c | 38 ++++----- drivers/gpu/drm/i915/gt/gen2_engine_cs.c | 2 +- drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 2 +- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 2 +- drivers/gpu/drm/i915/gt/intel_context_sseu.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 54 ++++++------- .../drm/i915/gt/intel_execlists_submission.c | 18 ++--- drivers/gpu/drm/i915/gt/intel_ggtt.c | 18 ++--- drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c | 34 ++++---- drivers/gpu/drm/i915/gt/intel_gt.c | 27 ++++--- .../gpu/drm/i915/gt/intel_gt_clock_utils.c | 12 +-- drivers/gpu/drm/i915/gt/intel_gt_irq.c | 6 +- drivers/gpu/drm/i915/gt/intel_gt_pm_irq.c | 10 +-- drivers/gpu/drm/i915/gt/intel_gtt.c | 14 ++-- drivers/gpu/drm/i915/gt/intel_llc.c | 6 +- drivers/gpu/drm/i915/gt/intel_lrc.c | 46 +++++------ drivers/gpu/drm/i915/gt/intel_mocs.c | 8 +- drivers/gpu/drm/i915/gt/intel_ppgtt.c | 6 +- drivers/gpu/drm/i915/gt/intel_rc6.c | 16 ++-- drivers/gpu/drm/i915/gt/intel_renderstate.c | 2 +- drivers/gpu/drm/i915/gt/intel_reset.c | 12 +-- .../gpu/drm/i915/gt/intel_ring_submission.c | 64 +++++++-------- drivers/gpu/drm/i915/gt/intel_rps.c | 60 +++++++------- drivers/gpu/drm/i915/gt/intel_sseu.c | 14 ++-- drivers/gpu/drm/i915/gt/intel_workarounds.c | 66 +++++++-------- drivers/gpu/drm/i915/gt/selftest_engine_cs.c | 6 +- drivers/gpu/drm/i915/gt/selftest_engine_pm.c | 2 +- drivers/gpu/drm/i915/gt/selftest_execlists.c | 4 +- drivers/gpu/drm/i915/gt/selftest_gt_pm.c | 8 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 8 +- drivers/gpu/drm/i915/gt/selftest_llc.c | 4 +- drivers/gpu/drm/i915/gt/selftest_lrc.c | 8 +- drivers/gpu/drm/i915/gt/selftest_mocs.c | 2 +- drivers/gpu/drm/i915/gt/selftest_rc6.c | 4 +- .../drm/i915/gt/selftest_ring_submission.c | 6 +- drivers/gpu/drm/i915/gt/selftest_rps.c | 16 ++-- drivers/gpu/drm/i915/gt/selftest_timeline.c | 6 +- .../gpu/drm/i915/gt/selftest_workarounds.c | 8 +- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 4 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 2 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 10 +-- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 4 +- drivers/gpu/drm/i915/gvt/cmd_parser.c | 8 +- drivers/gpu/drm/i915/gvt/dmabuf.c | 2 +- drivers/gpu/drm/i915/gvt/fb_decoder.c | 10 +-- drivers/gpu/drm/i915/gvt/gtt.c | 4 +- drivers/gpu/drm/i915/gvt/handlers.c | 6 +- drivers/gpu/drm/i915/gvt/interrupt.c | 2 +- drivers/gpu/drm/i915/gvt/mmio_context.c | 10 +-- drivers/gpu/drm/i915/gvt/scheduler.c | 4 +- drivers/gpu/drm/i915/gvt/vgpu.c | 4 +- drivers/gpu/drm/i915/i915_cmd_parser.c | 10 +-- drivers/gpu/drm/i915/i915_debugfs.c | 32 ++++---- drivers/gpu/drm/i915/i915_drv.c | 20 ++--- drivers/gpu/drm/i915/i915_gem.c | 4 +- drivers/gpu/drm/i915/i915_gpu_error.c | 80 +++++++++---------- drivers/gpu/drm/i915/i915_irq.c | 34 ++++---- drivers/gpu/drm/i915/i915_perf.c | 44 +++++----- drivers/gpu/drm/i915/i915_pmu.c | 8 +- drivers/gpu/drm/i915/i915_request.c | 4 +- drivers/gpu/drm/i915/i915_suspend.c | 16 ++-- drivers/gpu/drm/i915/i915_sysfs.c | 2 +- drivers/gpu/drm/i915/i915_vgpu.c | 2 +- drivers/gpu/drm/i915/intel_device_info.c | 22 ++--- drivers/gpu/drm/i915/intel_dram.c | 14 ++-- drivers/gpu/drm/i915/intel_pch.c | 10 +-- drivers/gpu/drm/i915/intel_pm.c | 14 ++-- drivers/gpu/drm/i915/intel_sideband.c | 2 +- drivers/gpu/drm/i915/intel_uncore.c | 26 +++--- drivers/gpu/drm/i915/intel_wopcm.c | 10 +-- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 4 +- drivers/gpu/drm/i915/selftests/i915_perf.c | 6 +- drivers/gpu/drm/i915/selftests/i915_request.c | 8 +- drivers/gpu/drm/i915/selftests/igt_spinner.c | 12 +-- drivers/gpu/drm/i915/selftests/intel_uncore.c | 2 +- 87 files changed, 595 insertions(+), 593 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +3 -3
@@ -1191,7 +1191,7 @@ static void set_ppgtt_barrier(void *data) {struct i915_address_space *old = data; -if (INTEL_GEN (old->i915) <8 ) +if (GRAPHICS_VER (old->i915) <8 )gen6_ppgtt_unpin_all (i915_vm_to_ppgtt (old));i915_vm_close (old);
@@ -1437,7 +1437,7 @@ i915_gem_user_to_context_sseu(struct intel_gt *gt, context->max_eus_per_subslice = user->max_eus_per_subslice;/* Part specific restrictions. */ -if (IS_GEN (i915,11 )) { +if (IS_GRAPHICS_VER (i915,11 )) {unsigned int hw_s =hweight8 (device->slice_mask);unsigned int hw_ss_per_s =hweight8 (device->subslice_mask[0 ]);unsigned int req_s =hweight8 (context->slice_mask);
@@ -1504,7 +1504,7 @@ static int set_sseu(struct i915_gem_context *ctx,if (args->size <sizeof (user_sseu))return -EINVAL ; -if (!IS_GEN (i915,11 )) +if (!IS_GRAPHICS_VER (i915,11 ))return -ENODEV ; if (copy_from_user(&user_sseu, u64_to_user_ptr(args->value),
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +6 -5
@@ -500,7 +500,7 @@ eb_validate_vma(struct i915_execbuffer *eb,* also covers all platforms with local memory. */ if (entry->relocation_count && -INTEL_GEN (eb->i915) >=12 && !IS_TIGERLAKE (eb->i915)) +GRAPHICS_VER (eb->i915) >=12 && !IS_TIGERLAKE (eb->i915))return -EINVAL ;if (unlikely (entry->flags & eb->invalid_flags))
@@ -1439,7 +1439,8 @@ static int __reloc_gpu_alloc(struct i915_execbuffer *eb,static bool reloc_can_use_engine (const struct intel_engine_cs *engine) { -return engine->class !=VIDEO_DECODE_CLASS || !IS_GEN (engine->i915,6 ); +return engine->class !=VIDEO_DECODE_CLASS || !IS_GRAPHICS_VER (engine->i915, +6 ); } static u32 *reloc_gpu(struct i915_execbuffer *eb,
@@ -1671,7 +1672,7 @@ eb_relocate_entry(struct i915_execbuffer *eb,* batchbuffers. */ if (reloc->write_domain ==I915_GEM_DOMAIN_INSTRUCTION && -IS_GEN (eb->i915,6 )) { +IS_GRAPHICS_VER (eb->i915,6 )) { err =i915_vma_bind (target->vma, target->vma->obj->cache_level,PIN_GLOBAL ,NULL );
@@ -2332,7 +2333,7 @@ static int i915_reset_gen7_sol_offsets(struct i915_request *rq)u32 *cs;int i; -if (!IS_GEN (rq->engine->i915,7 ) || rq->engine->id !=RCS0 ) { +if (!IS_GRAPHICS_VER (rq->engine->i915,7 ) || rq->engine->id !=RCS0 ) {drm_dbg (&rq->engine->i915->drm,"sol reset is gen7/rcs only\n" );return -EINVAL ; }
@@ -3375,7 +3376,7 @@ i915_gem_do_execbuffer(struct drm_device *dev, eb.batch_flags =0 ;if (args->flags &I915_EXEC_SECURE ) { -if (INTEL_GEN (i915) >=11 ) +if (GRAPHICS_VER (i915) >=11 )return -ENODEV ;/* Return -EPERM to trigger fallback code on old binaries. */
drivers/gpu/drm/i915/gem/i915_gem_object_blt.c +4 -4
@@ -72,7 +72,7 @@ struct i915_vma *intel_emit_vma_fill_blt(struct intel_context *ce,GEM_BUG_ON (size >>PAGE_SHIFT >S16_MAX ); -if (INTEL_GEN (i915) >=8 ) { +if (GRAPHICS_VER (i915) >=8 ) { *cmd++ =XY_COLOR_BLT_CMD |BLT_WRITE_RGBA | (7 -2 ); *cmd++ =BLT_DEPTH_32 |BLT_ROP_COLOR_COPY |PAGE_SIZE ; *cmd++ =0 ;
@@ -232,7 +232,7 @@ static bool wa_1209644611_applies(struct drm_i915_private *i915, u32 size) {u32 height = size >>PAGE_SHIFT ; -if (!IS_GEN (i915,11 )) +if (!IS_GRAPHICS_VER (i915,11 ))return false;return height %4 ==3 && height <=8 ;
@@ -297,7 +297,7 @@ struct i915_vma *intel_emit_vma_copy_blt(struct intel_context *ce, size =min_t (u64, rem, block_size);GEM_BUG_ON (size >>PAGE_SHIFT >S16_MAX ); -if (INTEL_GEN (i915) >=9 && +if (GRAPHICS_VER (i915) >=9 && !wa_1209644611_applies (i915, size)) { *cmd++ =GEN9_XY_FAST_COPY_BLT_CMD | (10 -2 ); *cmd++ =BLT_DEPTH_32 |PAGE_SIZE ;
@@ -309,7 +309,7 @@ struct i915_vma *intel_emit_vma_copy_blt(struct intel_context *ce, *cmd++ =PAGE_SIZE ; *cmd++ =lower_32_bits (src_offset); *cmd++ =upper_32_bits (src_offset); - }else if (INTEL_GEN (i915) >=8 ) { + }else if (GRAPHICS_VER (i915) >=8 ) { *cmd++ =XY_SRC_COPY_BLT_CMD |BLT_WRITE_RGBA | (10 -2 ); *cmd++ =BLT_DEPTH_32 |BLT_ROP_SRC_COPY |PAGE_SIZE ; *cmd++ =0 ;
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +8 -8
@@ -37,7 +37,7 @@ int i915_gem_stolen_insert_node_in_range(struct drm_i915_private *i915,return -ENODEV ;/* WaSkipStolenMemoryFirstPage:bdw+ */ -if (INTEL_GEN (i915) >=8 && start <4096 ) +if (GRAPHICS_VER (i915) >=8 && start <4096 ) start =4096 ;mutex_lock (&i915->mm.stolen_lock);
@@ -83,14 +83,14 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,*/ /* Make sure we don't clobber the GTT if it's within stolen memory */ -if (INTEL_GEN (i915) <=4 && +if (GRAPHICS_VER (i915) <=4 && !IS_G33 (i915) && !IS_PINEVIEW (i915) && !IS_G4X (i915)) {struct resource stolen[2 ] = {*dsm, *dsm};struct resource ggtt_res;resource_size_t ggtt_start; ggtt_start =intel_uncore_read (uncore,PGTBL_CTL ); -if (IS_GEN (i915,4 )) +if (IS_GRAPHICS_VER (i915,4 )) ggtt_start = (ggtt_start &PGTBL_ADDRESS_LO_MASK ) | (ggtt_start &PGTBL_ADDRESS_HI_MASK ) <<28 ;else
@@ -147,7 +147,7 @@ static int i915_adjust_stolen(struct drm_i915_private *i915,* GEN3 firmware likes to smash pci bridges into the stolen * range. Apparently this works. */ -if (!r && !IS_GEN (i915,3 )) { +if (!r && !IS_GRAPHICS_VER (i915,3 )) {drm_err (&i915->drm,"conflict detected with stolen region: %pR\n" , dsm);
@@ -188,7 +188,7 @@ static void g4x_get_stolen_reserved(struct drm_i915_private *i915,* Whether ILK really reuses the ELK register for this is unclear. * Let's see if we catch anyone with this supposedly enabled on ILK. */ -drm_WARN (&i915->drm,IS_GEN (i915,5 ), +drm_WARN (&i915->drm,IS_GRAPHICS_VER (i915,5 ),"ILK stolen reserved found? 0x%08x\n" , reg_val);
@@ -389,7 +389,7 @@ static int i915_gem_init_stolen(struct drm_i915_private *i915)return 0 ; } -if (intel_vtd_active () &&INTEL_GEN (i915) <8 ) { +if (intel_vtd_active () &&GRAPHICS_VER (i915) <8 ) {drm_notice (&i915->drm,"%s, disabling use of stolen memory\n" ,"DMAR active" );
@@ -411,7 +411,7 @@ static int i915_gem_init_stolen(struct drm_i915_private *i915) reserved_base = stolen_top; reserved_size =0 ; -switch (INTEL_GEN (i915)) { +switch (GRAPHICS_VER (i915)) {case 2 :case 3 :break ;
@@ -446,7 +446,7 @@ static int i915_gem_init_stolen(struct drm_i915_private *i915) &reserved_base, &reserved_size);break ;default : -MISSING_CASE (INTEL_GEN (i915)); +MISSING_CASE (GRAPHICS_VER (i915)); fallthrough;case 11 :case 12 :
drivers/gpu/drm/i915/gem/i915_gem_tiling.c +6 -6
@@ -62,14 +62,14 @@ u32 i915_gem_fence_size(struct drm_i915_private *i915,GEM_BUG_ON (!stride); -if (INTEL_GEN (i915) >=4 ) { +if (GRAPHICS_VER (i915) >=4 ) { stride *=i915_gem_tile_height (tiling);GEM_BUG_ON (!IS_ALIGNED (stride,I965_FENCE_PAGE ));return roundup (size, stride); }/* Previous chips need a power-of-two fence region when tiling */ -if (IS_GEN (i915,3 )) +if (IS_GRAPHICS_VER (i915,3 )) ggtt_size =1024 *1024 ;else ggtt_size =512 *1024 ;
@@ -102,7 +102,7 @@ u32 i915_gem_fence_alignment(struct drm_i915_private *i915, u32 size,if (tiling ==I915_TILING_NONE )return I915_GTT_MIN_ALIGNMENT ; -if (INTEL_GEN (i915) >=4 ) +if (GRAPHICS_VER (i915) >=4 )return I965_FENCE_PAGE ;/*
@@ -130,10 +130,10 @@ i915_tiling_ok(struct drm_i915_gem_object *obj,/* check maximum stride & object size */ /* i965+ stores the end address of the gtt mapping in the fence * reg, so dont bother to check the size */ -if (INTEL_GEN (i915) >=7 ) { +if (GRAPHICS_VER (i915) >=7 ) {if (stride /128 >GEN7_FENCE_MAX_PITCH_VAL )return false; - }else if (INTEL_GEN (i915) >=4 ) { + }else if (GRAPHICS_VER (i915) >=4 ) {if (stride /128 >I965_FENCE_MAX_PITCH_VAL )return false; }else {
@@ -144,7 +144,7 @@ i915_tiling_ok(struct drm_i915_gem_object *obj,return false; } -if (IS_GEN (i915,2 ) || +if (IS_GRAPHICS_VER (i915,2 ) || (tiling ==I915_TILING_Y &&HAS_128_BYTE_Y_TILING (i915))) tile_width =128 ;else
drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c +5 -5
@@ -152,8 +152,8 @@ static int prepare_blit(const struct tiled_blits *t,struct blit_buffer *src, struct drm_i915_gem_object *batch) { - const int gen = INTEL_GEN(to_i915(batch->base.dev)); -bool use_64b_reloc = gen >=8 ; + const int ver = GRAPHICS_VER(to_i915(batch->base.dev)); +bool use_64b_reloc = ver >=8 ;u32 src_pitch, dst_pitch;u32 cmd, *cs;
@@ -171,7 +171,7 @@ static int prepare_blit(const struct tiled_blits *t, *cs++ = cmd; cmd =MI_FLUSH_DW ; -if (gen >=8 ) +if (ver >=8 ) cmd++; *cs++ = cmd; *cs++ =0 ;
@@ -179,7 +179,7 @@ static int prepare_blit(const struct tiled_blits *t, *cs++ =0 ; cmd =XY_SRC_COPY_BLT_CMD |BLT_WRITE_RGBA | (8 -2 ); -if (gen >=8 ) +if (ver >=8 ) cmd +=2 ; src_pitch = t->width *4 ;
@@ -666,7 +666,7 @@ static int igt_client_tiled_blits(void *arg)int inst =0 ;/* Test requires explicit BLT tiling controls */ -if (INTEL_GEN (i915) <4 ) +if (GRAPHICS_VER (i915) <4 )return 0 ;if (bad_swizzling (i915))/* Requires sane (sub-page) swizzling */
drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c +2 -2
@@ -221,12 +221,12 @@ static int gpu_set(struct context *ctx, unsigned long offset, u32 v) goto out_rq; } -if (INTEL_GEN (ctx->engine->i915) >=8 ) { +if (GRAPHICS_VER (ctx->engine->i915) >=8 ) { *cs++ =MI_STORE_DWORD_IMM_GEN4 |1 <<22 ; *cs++ =lower_32_bits (i915_ggtt_offset (vma) + offset); *cs++ =upper_32_bits (i915_ggtt_offset (vma) + offset); *cs++ = v; - }else if (INTEL_GEN (ctx->engine->i915) >=4 ) { + }else if (GRAPHICS_VER (ctx->engine->i915) >=4 ) { *cs++ =MI_STORE_DWORD_IMM_GEN4 |MI_USE_GGTT ; *cs++ =0 ; *cs++ =i915_ggtt_offset (vma) + offset;
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +8 -8
@@ -897,7 +897,7 @@ static int rpcs_query_batch(struct drm_i915_gem_object *rpcs, struct i915_vma *v {u32 *cmd; -GEM_BUG_ON (INTEL_GEN (vma->vm->i915) <8 ); +GEM_BUG_ON (GRAPHICS_VER (vma->vm->i915) <8 ); cmd =i915_gem_object_pin_map (rpcs,I915_MAP_WB );if (IS_ERR (cmd))
@@ -932,7 +932,7 @@ emit_rpcs_query(struct drm_i915_gem_object *obj,GEM_BUG_ON (!intel_engine_can_store_dword (ce->engine)); -if (INTEL_GEN (i915) <8 ) +if (GRAPHICS_VER (i915) <8 )return -EINVAL ; vma =i915_vma_instance (obj, ce->vm,NULL );
@@ -1100,7 +1100,7 @@ __read_slice_count(struct intel_context *ce,return ret; } -if (INTEL_GEN (ce->engine->i915) >=11 ) { +if (GRAPHICS_VER (ce->engine->i915) >=11 ) { s_mask =GEN11_RPCS_S_CNT_MASK ; s_shift =GEN11_RPCS_S_CNT_SHIFT ; }else {
@@ -1229,7 +1229,7 @@ __igt_ctx_sseu(struct drm_i915_private *i915,int inst =0 ;int ret =0 ; -if (INTEL_GEN (i915) <9 ) +if (GRAPHICS_VER (i915) <9 )return 0 ;if (flags &TEST_RESET )
@@ -1518,7 +1518,7 @@ static int write_to_scratch(struct i915_gem_context *ctx, } *cmd++ =MI_STORE_DWORD_IMM_GEN4 ; -if (INTEL_GEN (i915) >=8 ) { +if (GRAPHICS_VER (i915) >=8 ) { *cmd++ =lower_32_bits (offset); *cmd++ =upper_32_bits (offset); }else {
@@ -1608,7 +1608,7 @@ static int read_from_scratch(struct i915_gem_context *ctx,if (IS_ERR (obj))return PTR_ERR (obj); -if (INTEL_GEN (i915) >=8 ) { +if (GRAPHICS_VER (i915) >=8 ) {const u32 GPR0 = engine->mmio_base +0x600 ; vm =i915_gem_context_get_vm_rcu (ctx);
@@ -1783,7 +1783,7 @@ static int igt_vm_isolation(void *arg)u32 expected;int err; -if (INTEL_GEN (i915) <7 ) +if (GRAPHICS_VER (i915) <7 )return 0 ;/*
@@ -1837,7 +1837,7 @@ static int igt_vm_isolation(void *arg)continue ;/* Not all engines have their own GPR! */ -if (INTEL_GEN (i915) <8 && engine->class !=RENDER_CLASS ) +if (GRAPHICS_VER (i915) <8 && engine->class !=RENDER_CLASS )continue ;while (!__igt_timeout (end_time,NULL )) {
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c +7 -7
@@ -273,7 +273,7 @@ static int check_partial_mappings(struct drm_i915_gem_object *obj,static unsigned int setup_tile_size (struct tile *tile,struct drm_i915_private *i915) { -if (INTEL_GEN (i915) <=2 ) { +if (GRAPHICS_VER (i915) <=2 ) { tile->height =16 ; tile->width =128 ; tile->size =11 ;
@@ -288,9 +288,9 @@ setup_tile_size(struct tile *tile, struct drm_i915_private *i915) tile->size =12 ; } -if (INTEL_GEN (i915) <4 ) +if (GRAPHICS_VER (i915) <4 )return 8192 / tile->width; -else if (INTEL_GEN (i915) <7 ) +else if (GRAPHICS_VER (i915) <7 )return 128 *I965_FENCE_MAX_PITCH_VAL / tile->width;else return 128 *GEN7_FENCE_MAX_PITCH_VAL / tile->width;
@@ -386,7 +386,7 @@ static int igt_partial_tiling(void *arg)if (err) goto out_unlock; -if (pitch >2 &&INTEL_GEN (i915) >=4 ) { +if (pitch >2 &&GRAPHICS_VER (i915) >=4 ) { tile.stride = tile.width * (pitch -1 ); err =check_partial_mappings (obj, &tile, end);if (err == -EINTR )
@@ -395,7 +395,7 @@ static int igt_partial_tiling(void *arg) goto out_unlock; } -if (pitch < max_pitch &&INTEL_GEN (i915) >=4 ) { +if (pitch < max_pitch &&GRAPHICS_VER (i915) >=4 ) { tile.stride = tile.width * (pitch +1 ); err =check_partial_mappings (obj, &tile, end);if (err == -EINTR )
@@ -405,7 +405,7 @@ static int igt_partial_tiling(void *arg) } } -if (INTEL_GEN (i915) >=4 ) { +if (GRAPHICS_VER (i915) >=4 ) {for_each_prime_number (pitch, max_pitch) { tile.stride = tile.width * pitch; err =check_partial_mappings (obj, &tile, end);
@@ -501,7 +501,7 @@ static int igt_smoke_tiling(void *arg) tile.stride =i915_prandom_u32_max_state (max_pitch, &prng); tile.stride = (1 + tile.stride) * tile.width; -if (INTEL_GEN (i915) <4 ) +if (GRAPHICS_VER (i915) <4 ) tile.stride =rounddown_pow_of_two (tile.stride); }
drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.c +5 -5
@@ -44,7 +44,7 @@ igt_emit_store_dw(struct i915_vma *vma, u32 val) {struct drm_i915_gem_object *obj; -const int gen =INTEL_GEN (vma->vm->i915); +const int ver =GRAPHICS_VER (vma->vm->i915);unsigned long n, size;u32 *cmd;int err;
@@ -65,14 +65,14 @@ igt_emit_store_dw(struct i915_vma *vma, offset += vma->node.start;for (n =0 ; n < count; n++) { -if (gen >=8 ) { +if (ver >=8 ) { *cmd++ =MI_STORE_DWORD_IMM_GEN4 ; *cmd++ =lower_32_bits (offset); *cmd++ =upper_32_bits (offset); *cmd++ = val; - }else if (gen >=4 ) { + }else if (ver >=4 ) { *cmd++ =MI_STORE_DWORD_IMM_GEN4 | - (gen <6 ?MI_USE_GGTT :0 ); + (ver <6 ?MI_USE_GGTT :0 ); *cmd++ =0 ; *cmd++ = offset; *cmd++ = val;
@@ -146,7 +146,7 @@ int igt_gpu_fill_dw(struct intel_context *ce, goto skip_request; flags =0 ; -if (INTEL_GEN (ce->vm->i915) <=5 ) +if (GRAPHICS_VER (ce->vm->i915) <=5 ) flags |=I915_DISPATCH_SECURE ; err = rq->engine->emit_bb_start(rq,
drivers/gpu/drm/i915/gt/debugfs_gt_pm.c +19 -19
@@ -85,14 +85,14 @@ static int gen6_drpc(struct seq_file *m) gt_core_status =intel_uncore_read_fw (uncore,GEN6_GT_CORE_STATUS ); rcctl1 =intel_uncore_read (uncore,GEN6_RC_CONTROL ); -if (INTEL_GEN (i915) >=9 ) { +if (GRAPHICS_VER (i915) >=9 ) { gen9_powergate_enable =intel_uncore_read (uncore,GEN9_PG_ENABLE ); gen9_powergate_status =intel_uncore_read (uncore,GEN9_PWRGT_DOMAIN_STATUS ); } -if (INTEL_GEN (i915) <=7 ) +if (GRAPHICS_VER (i915) <=7 )sandybridge_pcode_read (i915,GEN6_PCODE_READ_RC6VIDS , &rc6vids,NULL );
@@ -100,7 +100,7 @@ static int gen6_drpc(struct seq_file *m) yesno(rcctl1 & GEN6_RC_CTL_RC1e_ENABLE));seq_printf (m,"RC6 Enabled: %s\n" ,yesno (rcctl1 &GEN6_RC_CTL_RC6_ENABLE )); -if (INTEL_GEN (i915) >=9 ) { +if (GRAPHICS_VER (i915) >=9 ) {seq_printf (m,"Render Well Gating Enabled: %s\n" ,yesno (gen9_powergate_enable &GEN9_RENDER_PG_ENABLE )); seq_printf(m, "Media Well Gating Enabled: %s\n",
@@ -134,7 +134,7 @@ static int gen6_drpc(struct seq_file *m)seq_printf (m,"Core Power Down: %s\n" ,yesno (gt_core_status &GEN6_CORE_CPD_STATE_MASK )); -if (INTEL_GEN (i915) >=9 ) { +if (GRAPHICS_VER (i915) >=9 ) {seq_printf (m,"Render Power Well: %s\n" , (gen9_powergate_status &GEN9_PWRGT_RENDER_STATUS_MASK ) ?"Up" :"Down" );
@@ -150,7 +150,7 @@ static int gen6_drpc(struct seq_file *m)print_rc6_res (m,"RC6+ residency since boot:" , GEN6_GT_GFX_RC6p);print_rc6_res (m,"RC6++ residency since boot:" , GEN6_GT_GFX_RC6pp); -if (INTEL_GEN (i915) <=7 ) { +if (GRAPHICS_VER (i915) <=7 ) {seq_printf (m,"RC6 voltage: %dmV\n" ,GEN6_DECODE_RC6_VID (((rc6vids >>0 ) &0xff ))); seq_printf(m, "RC6+ voltage: %dmV\n",
@@ -250,7 +250,7 @@ static int frequency_show(struct seq_file *m, void *unused) wakeref =intel_runtime_pm_get (uncore->rpm); -if (IS_GEN (i915,5 )) { +if (IS_GRAPHICS_VER (i915,5 )) {u16 rgvswctl =intel_uncore_read16 (uncore,MEMSWCTL );u16 rgvstat =intel_uncore_read16 (uncore,MEMSTAT_ILK );
@@ -296,7 +296,7 @@ static int frequency_show(struct seq_file *m, void *unused)seq_printf (m,"efficient (RPe) frequency: %d MHz\n" ,intel_gpu_freq (rps, rps->efficient_freq)); - }else if (INTEL_GEN (i915) >=6 ) { + }else if (GRAPHICS_VER (i915) >=6 ) {u32 rp_state_limits;u32 gt_perf_status;u32 rp_state_cap;
@@ -321,7 +321,7 @@ static int frequency_show(struct seq_file *m, void *unused)intel_uncore_forcewake_get (uncore,FORCEWAKE_ALL ); reqf =intel_uncore_read (uncore,GEN6_RPNSWREQ ); -if (INTEL_GEN (i915) >=9 ) { +if (GRAPHICS_VER (i915) >=9 ) { reqf >>=23 ; }else { reqf &= ~GEN6_TURBO_DISABLE ;
@@ -354,7 +354,7 @@ static int frequency_show(struct seq_file *m, void *unused)intel_uncore_forcewake_put (uncore,FORCEWAKE_ALL ); -if (INTEL_GEN (i915) >=11 ) { +if (GRAPHICS_VER (i915) >=11 ) { pm_ier =intel_uncore_read (uncore,GEN11_GPM_WGBOXPERF_INTR_ENABLE ); pm_imr =intel_uncore_read (uncore,GEN11_GPM_WGBOXPERF_INTR_MASK );/*
@@ -363,7 +363,7 @@ static int frequency_show(struct seq_file *m, void *unused)*/ pm_isr =0 ; pm_iir =0 ; - }else if (INTEL_GEN (i915) >=8 ) { + }else if (GRAPHICS_VER (i915) >=8 ) { pm_ier =intel_uncore_read (uncore,GEN8_GT_IER (2 )); pm_imr =intel_uncore_read (uncore,GEN8_GT_IMR (2 )); pm_isr =intel_uncore_read (uncore,GEN8_GT_ISR (2 ));
@@ -386,14 +386,14 @@ static int frequency_show(struct seq_file *m, void *unused)seq_printf (m,"PM IER=0x%08x IMR=0x%08x, MASK=0x%08x\n" , pm_ier, pm_imr, pm_mask); -if (INTEL_GEN (i915) <=10 ) +if (GRAPHICS_VER (i915) <=10 )seq_printf (m,"PM ISR=0x%08x IIR=0x%08x\n" , pm_isr, pm_iir);seq_printf (m,"pm_intrmsk_mbz: 0x%08x\n" , rps->pm_intrmsk_mbz);seq_printf (m,"GT_PERF_STATUS: 0x%08x\n" , gt_perf_status);seq_printf (m,"Render p-state ratio: %d\n" , - (gt_perf_status & (INTEL_GEN (i915) >=9 ?0x1ff00 :0xff00 )) >>8 ); + (gt_perf_status & (GRAPHICS_VER (i915) >=9 ?0x1ff00 :0xff00 )) >>8 );seq_printf (m,"Render p-state VID: %d\n" , gt_perf_status &0xff ); seq_printf(m, "Render p-state limit: %d\n",
@@ -437,20 +437,20 @@ static int frequency_show(struct seq_file *m, void *unused) max_freq = (IS_GEN9_LP (i915) ? rp_state_cap >>0 : rp_state_cap >>16 ) &0xff ; max_freq *= (IS_GEN9_BC (i915) || -INTEL_GEN (i915) >=10 ?GEN9_FREQ_SCALER :1 ); +GRAPHICS_VER (i915) >=10 ?GEN9_FREQ_SCALER :1 );seq_printf (m,"Lowest (RPN) frequency: %dMHz\n" ,intel_gpu_freq (rps, max_freq)); max_freq = (rp_state_cap &0xff00 ) >>8 ; max_freq *= (IS_GEN9_BC (i915) || -INTEL_GEN (i915) >=10 ?GEN9_FREQ_SCALER :1 ); +GRAPHICS_VER (i915) >=10 ?GEN9_FREQ_SCALER :1 );seq_printf (m,"Nominal (RP1) frequency: %dMHz\n" ,intel_gpu_freq (rps, max_freq)); max_freq = (IS_GEN9_LP (i915) ? rp_state_cap >>16 : rp_state_cap >>0 ) &0xff ; max_freq *= (IS_GEN9_BC (i915) || -INTEL_GEN (i915) >=10 ?GEN9_FREQ_SCALER :1 ); +GRAPHICS_VER (i915) >=10 ?GEN9_FREQ_SCALER :1 );seq_printf (m,"Max non-overclocked (RP0) frequency: %dMHz\n" ,intel_gpu_freq (rps, max_freq)); seq_printf(m, "Max overclocked frequency: %dMHz\n",
@@ -488,7 +488,7 @@ static int llc_show(struct seq_file *m, void *data) {struct intel_gt *gt = m->private;struct drm_i915_private *i915 = gt->i915; -const bool edram =INTEL_GEN (i915) >8 ; +const bool edram =GRAPHICS_VER (i915) >8 ;struct intel_rps *rps = >->rps;unsigned int max_gpu_freq, min_gpu_freq;intel_wakeref_t wakeref;
@@ -500,7 +500,7 @@ static int llc_show(struct seq_file *m, void *data) min_gpu_freq = rps->min_freq; max_gpu_freq = rps->max_freq; -if (IS_GEN9_BC (i915) ||INTEL_GEN (i915) >=10 ) { +if (IS_GEN9_BC (i915) ||GRAPHICS_VER (i915) >=10 ) {/* Convert GT frequency to 50 HZ units */ min_gpu_freq /=GEN9_FREQ_SCALER ; max_gpu_freq /=GEN9_FREQ_SCALER ;
@@ -518,7 +518,7 @@ static int llc_show(struct seq_file *m, void *data)intel_gpu_freq (rps, (gpu_freq * (IS_GEN9_BC (i915) || -INTEL_GEN (i915) >=10 ? +GRAPHICS_VER (i915) >=10 ?GEN9_FREQ_SCALER :1 ))), ((ia_freq >>0 ) &0xff ) *100 , ((ia_freq >> 8) & 0xff) * 100);
@@ -580,7 +580,7 @@ static int rps_boost_show(struct seq_file *m, void *data)seq_printf (m,"Wait boosts: %d\n" ,READ_ONCE (rps->boosts)); -if (INTEL_GEN (i915) >=6 &&intel_rps_is_active (rps)) { +if (GRAPHICS_VER (i915) >=6 &&intel_rps_is_active (rps)) {struct intel_uncore *uncore = gt->uncore;u32 rpup, rpupei;u32 rpdown, rpdownei;
drivers/gpu/drm/i915/gt/gen2_engine_cs.c +1 -1
@@ -74,7 +74,7 @@ int gen4_emit_flush_rcs(struct i915_request *rq, u32 mode) cmd =MI_FLUSH ;if (mode &EMIT_INVALIDATE ) { cmd |=MI_EXE_FLUSH ; -if (IS_G4X (rq->engine->i915) ||IS_GEN (rq->engine->i915,5 )) +if (IS_G4X (rq->engine->i915) ||IS_GRAPHICS_VER (rq->engine->i915,5 )) cmd |=MI_INVALIDATE_ISP ; }
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +1 -1
@@ -38,7 +38,7 @@ int gen8_emit_flush_rcs(struct i915_request *rq, u32 mode)* On GEN9: before VF_CACHE_INVALIDATE we need to emit a NULL * pipe control. */ -if (IS_GEN (rq->engine->i915,9 )) +if (IS_GRAPHICS_VER (rq->engine->i915,9 )) vf_flush_wa = true;/* WaForGAMHang:kbl */
drivers/gpu/drm/i915/gt/gen8_ppgtt.c +1 -1
@@ -716,7 +716,7 @@ struct i915_ppgtt *gen8_ppgtt_create(struct intel_gt *gt)* * Gen12 has inherited the same read-only fault issue from gen11. */ - ppgtt->vm.has_read_only = !IS_GEN_RANGE (gt->i915,11 ,12 ); + ppgtt->vm.has_read_only = !IS_GRAPHICS_RANGE (gt->i915,11 ,12 ); ppgtt->vm.alloc_pt_dma = alloc_pt_dma;
drivers/gpu/drm/i915/gt/intel_context_sseu.c +1 -1
@@ -76,7 +76,7 @@ intel_context_reconfigure_sseu(struct intel_context *ce, {int ret; -GEM_BUG_ON (INTEL_GEN (ce->engine->i915) <8 ); +GEM_BUG_ON (GRAPHICS_VER (ce->engine->i915) <8 ); ret =intel_context_lock_pinned (ce);if (ret)
drivers/gpu/drm/i915/gt/intel_engine_cs.c +27 -27
187 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_execlists_submission.c +9 -9
@@ -1847,7 +1847,7 @@ process_csb(struct intel_engine_cs *engine, struct i915_request **inactive)ENGINE_TRACE (engine,"csb[%d]: status=0x%08x:0x%08x\n" , head,upper_32_bits (csb),lower_32_bits (csb)); -if (INTEL_GEN (engine->i915) >=12 ) +if (GRAPHICS_VER (engine->i915) >=12 ) promote =gen12_csb_parse (csb);else promote =gen8_csb_parse (csb);
@@ -2733,7 +2733,7 @@ static void enable_execlists(struct intel_engine_cs *engine)intel_engine_set_hwsp_writemask (engine, ~0u );/* HWSTAM */ -if (INTEL_GEN (engine->i915) >=11 ) +if (GRAPHICS_VER (engine->i915) >=11 ) mode =_MASKED_BIT_ENABLE (GEN11_GFX_DISABLE_LEGACY_MODE );else mode =_MASKED_BIT_ENABLE (GFX_RUN_LIST_ENABLE );
@@ -3064,7 +3064,7 @@ static void execlists_park(struct intel_engine_cs *engine)static bool can_preempt (struct intel_engine_cs *engine) { -if (INTEL_GEN (engine->i915) >8 ) +if (GRAPHICS_VER (engine->i915) >8 )return true;/* GPGPU on bdw requires extra w/a; not implemented */
@@ -3132,13 +3132,13 @@ logical_ring_default_vfuncs(struct intel_engine_cs *engine) engine->emit_flush = gen8_emit_flush_xcs; engine->emit_init_breadcrumb = gen8_emit_init_breadcrumb; engine->emit_fini_breadcrumb = gen8_emit_fini_breadcrumb_xcs; -if (INTEL_GEN (engine->i915) >=12 ) { +if (GRAPHICS_VER (engine->i915) >=12 ) { engine->emit_fini_breadcrumb = gen12_emit_fini_breadcrumb_xcs; engine->emit_flush = gen12_emit_flush_xcs; } engine->set_default_submission = execlists_set_default_submission; -if (INTEL_GEN (engine->i915) <11 ) { +if (GRAPHICS_VER (engine->i915) <11 ) { engine->irq_enable = gen8_logical_ring_enable_irq; engine->irq_disable = gen8_logical_ring_disable_irq; }else {
@@ -3155,7 +3155,7 @@ static void logical_ring_default_irqs(struct intel_engine_cs *engine) {unsigned int shift =0 ; -if (INTEL_GEN (engine->i915) <11 ) { +if (GRAPHICS_VER (engine->i915) <11 ) {const u8 irq_shifts[] = { [RCS0 ] =GEN8_RCS_IRQ_SHIFT , [BCS0] = GEN8_BCS_IRQ_SHIFT,
@@ -3175,7 +3175,7 @@ static void logical_ring_default_irqs(struct intel_engine_cs *engine)static void rcs_submission_override (struct intel_engine_cs *engine) { -switch (INTEL_GEN (engine->i915)) { +switch (GRAPHICS_VER (engine->i915)) {case 12 : engine->emit_flush = gen12_emit_flush_rcs; engine->emit_fini_breadcrumb = gen12_emit_fini_breadcrumb_rcs;
@@ -3226,13 +3226,13 @@ int intel_execlists_submission_setup(struct intel_engine_cs *engine) execlists->csb_write = &engine->status_page.addr[intel_hws_csb_write_index (i915)]; -if (INTEL_GEN (i915) <11 ) +if (GRAPHICS_VER (i915) <11 ) execlists->csb_size =GEN8_CSB_ENTRIES ;else execlists->csb_size =GEN11_CSB_ENTRIES ; engine->context_tag =GENMASK (BITS_PER_LONG -2 ,0 ); -if (INTEL_GEN (engine->i915) >=11 ) { +if (GRAPHICS_VER (engine->i915) >=11 ) { execlists->ccid |= engine->instance << (GEN11_ENGINE_INSTANCE_SHIFT -32 ); execlists->ccid |= engine->class << (GEN11_ENGINE_CLASS_SHIFT -32 ); }
drivers/gpu/drm/i915/gt/intel_ggtt.c +9 -9
@@ -106,10 +106,10 @@ static bool needs_idle_maps(struct drm_i915_private *i915)if (!intel_vtd_active ())return false; -if (IS_GEN (i915,5 ) &&IS_MOBILE (i915)) +if (IS_GRAPHICS_VER (i915,5 ) &&IS_MOBILE (i915))return true; -if (IS_GEN (i915,12 )) +if (IS_GRAPHICS_VER (i915,12 ))return true;/* XXX DMAR fault reason 7 */ return false;
@@ -175,7 +175,7 @@ static void guc_ggtt_invalidate(struct i915_ggtt *ggtt)gen8_ggtt_invalidate (ggtt); -if (INTEL_GEN (i915) >=12 ) +if (GRAPHICS_VER (i915) >=12 )intel_uncore_write_fw (uncore,GEN12_GUC_TLB_INV_CR ,GEN12_GUC_TLB_INV_CR_INVALIDATE );else
@@ -819,7 +819,7 @@ static int ggtt_probe_common(struct i915_ggtt *ggtt, u64 size)* resort to an uncached mapping. The WC issue is easily caught by the * readback check when writing GTT PTE entries. */ -if (IS_GEN9_LP (i915) ||INTEL_GEN (i915) >=10 ) +if (IS_GEN9_LP (i915) ||GRAPHICS_VER (i915) >=10 ) ggtt->gsm =ioremap (phys_addr, size);else ggtt->gsm =ioremap_wc (phys_addr, size);
@@ -1062,7 +1062,7 @@ static int gen6_gmch_probe(struct i915_ggtt *ggtt) ggtt->vm.pte_encode = hsw_pte_encode; else if (IS_VALLEYVIEW(i915)) ggtt->vm.pte_encode = byt_pte_encode; - else if (INTEL_GEN(i915) >= 7) + else if (GRAPHICS_VER(i915) >= 7) ggtt->vm.pte_encode = ivb_pte_encode; else ggtt->vm.pte_encode = snb_pte_encode;
@@ -1134,9 +1134,9 @@ static int ggtt_probe_hw(struct i915_ggtt *ggtt, struct intel_gt *gt) ggtt->vm.dma = i915->drm.dev;dma_resv_init (&ggtt->vm.resv); -if (INTEL_GEN (i915) <=5 ) +if (GRAPHICS_VER (i915) <=5 ) ret =i915_gmch_probe (ggtt); -else if (INTEL_GEN (i915) <8 ) +else if (GRAPHICS_VER (i915) <8 ) ret =gen6_gmch_probe (ggtt);else ret =gen8_gmch_probe (ggtt);
@@ -1193,7 +1193,7 @@ int i915_ggtt_probe_hw(struct drm_i915_private *i915)int i915_ggtt_enable_hw (struct drm_i915_private *i915) { -if (INTEL_GEN (i915) <6 && !intel_enable_gtt ()) +if (GRAPHICS_VER (i915) <6 && !intel_enable_gtt ())return -EIO ;return 0 ;
@@ -1258,7 +1258,7 @@ void i915_ggtt_resume(struct i915_ggtt *ggtt)if (flush)wbinvd_on_all_cpus (); -if (INTEL_GEN (ggtt->vm.i915) >=8 ) +if (GRAPHICS_VER (ggtt->vm.i915) >=8 )setup_private_pat (ggtt->vm.gt->uncore);intel_ggtt_restore_fences (ggtt);
drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c +17 -17
@@ -56,7 +56,7 @@ static void i965_write_fence_reg(struct i915_fence_reg *fence)int fence_pitch_shift;u64 val; -if (INTEL_GEN (fence_to_i915 (fence)) >=6 ) { +if (GRAPHICS_VER (fence_to_i915 (fence)) >=6 ) { fence_reg_lo =FENCE_REG_GEN6_LO (fence->id); fence_reg_hi =FENCE_REG_GEN6_HI (fence->id); fence_pitch_shift =GEN6_FENCE_PITCH_SHIFT ;
@@ -173,9 +173,9 @@ static void fence_write(struct i915_fence_reg *fence)* and explicitly managed for internal users. */ -if (IS_GEN (i915,2 )) +if (IS_GRAPHICS_VER (i915,2 ))i830_write_fence_reg (fence); -else if (IS_GEN (i915,3 )) +else if (IS_GRAPHICS_VER (i915,3 ))i915_write_fence_reg (fence);else i965_write_fence_reg (fence);
@@ -188,7 +188,7 @@ static void fence_write(struct i915_fence_reg *fence)static bool gpu_uses_fence_registers (struct i915_fence_reg *fence) { -return INTEL_GEN (fence_to_i915 (fence)) <4 ; +return GRAPHICS_VER (fence_to_i915 (fence)) <4 ; } static int fence_update(struct i915_fence_reg *fence,
@@ -569,7 +569,7 @@ static void detect_bit_6_swizzle(struct i915_ggtt *ggtt)u32 swizzle_x =I915_BIT_6_SWIZZLE_UNKNOWN ;u32 swizzle_y =I915_BIT_6_SWIZZLE_UNKNOWN ; -if (INTEL_GEN (i915) >=8 ||IS_VALLEYVIEW (i915)) { +if (GRAPHICS_VER (i915) >=8 ||IS_VALLEYVIEW (i915)) {/* * On BDW+, swizzling is not used. We leave the CPU memory * controller in charge of optimizing memory accesses without
@@ -579,7 +579,7 @@ static void detect_bit_6_swizzle(struct i915_ggtt *ggtt)*/ swizzle_x =I915_BIT_6_SWIZZLE_NONE ; swizzle_y =I915_BIT_6_SWIZZLE_NONE ; - }else if (INTEL_GEN (i915) >=6 ) { + }else if (GRAPHICS_VER (i915) >=6 ) {if (i915->preserve_bios_swizzle) {if (intel_uncore_read (uncore,DISP_ARB_CTL ) &DISP_TILE_SURFACE_SWIZZLING ) {
@@ -611,14 +611,14 @@ static void detect_bit_6_swizzle(struct i915_ggtt *ggtt) swizzle_y =I915_BIT_6_SWIZZLE_NONE ; } } - }else if (IS_GEN (i915,5 )) { + }else if (IS_GRAPHICS_VER (i915,5 )) {/* * On Ironlake whatever DRAM config, GPU always do * same swizzling setup. */ swizzle_x =I915_BIT_6_SWIZZLE_9_10 ; swizzle_y =I915_BIT_6_SWIZZLE_9 ; - }else if (IS_GEN (i915,2 )) { + }else if (IS_GRAPHICS_VER (i915,2 )) {/* * As far as we know, the 865 doesn't have these bit 6 * swizzling issues.
@@ -697,7 +697,7 @@ static void detect_bit_6_swizzle(struct i915_ggtt *ggtt) }/* check for L-shaped memory aka modified enhanced addressing */ -if (IS_GEN (i915,4 ) && +if (IS_GRAPHICS_VER (i915,4 ) && !(intel_uncore_read (uncore,DCC2 ) &DCC2_MODIFIED_ENHANCED_DISABLE )) { swizzle_x =I915_BIT_6_SWIZZLE_UNKNOWN ; swizzle_y =I915_BIT_6_SWIZZLE_UNKNOWN ;
@@ -844,10 +844,10 @@ void intel_ggtt_init_fences(struct i915_ggtt *ggtt)if (!i915_ggtt_has_aperture (ggtt)) num_fences =0 ; -else if (INTEL_GEN (i915) >=7 && +else if (GRAPHICS_VER (i915) >=7 && !(IS_VALLEYVIEW (i915) ||IS_CHERRYVIEW (i915))) num_fences =32 ; -else if (INTEL_GEN (i915) >=4 || +else if (GRAPHICS_VER (i915) >=4 ||IS_I945G (i915) ||IS_I945GM (i915) ||IS_G33 (i915) ||IS_PINEVIEW (i915)) num_fences =16 ;
@@ -895,29 +895,29 @@ void intel_gt_init_swizzling(struct intel_gt *gt)struct drm_i915_private *i915 = gt->i915;struct intel_uncore *uncore = gt->uncore; -if (INTEL_GEN (i915) <5 || +if (GRAPHICS_VER (i915) <5 || i915->ggtt.bit_6_swizzle_x ==I915_BIT_6_SWIZZLE_NONE )return ;intel_uncore_rmw (uncore,DISP_ARB_CTL ,0 ,DISP_TILE_SURFACE_SWIZZLING ); -if (IS_GEN (i915,5 )) +if (IS_GRAPHICS_VER (i915,5 ))return ;intel_uncore_rmw (uncore,TILECTL ,0 ,TILECTL_SWZCTL ); -if (IS_GEN (i915,6 )) +if (IS_GRAPHICS_VER (i915,6 ))intel_uncore_write (uncore,ARB_MODE ,_MASKED_BIT_ENABLE (ARB_MODE_SWIZZLE_SNB )); -else if (IS_GEN (i915,7 )) +else if (IS_GRAPHICS_VER (i915,7 ))intel_uncore_write (uncore,ARB_MODE ,_MASKED_BIT_ENABLE (ARB_MODE_SWIZZLE_IVB )); -else if (IS_GEN (i915,8 )) +else if (IS_GRAPHICS_VER (i915,8 ))intel_uncore_write (uncore,GAMTARBMODE ,_MASKED_BIT_ENABLE (ARB_MODE_SWIZZLE_BDW ));else -MISSING_CASE (INTEL_GEN (i915)); +MISSING_CASE (GRAPHICS_VER (i915)); }
drivers/gpu/drm/i915/gt/intel_gt.c +14 -13
@@ -115,10 +115,10 @@ static void init_unused_rings(struct intel_gt *gt)init_unused_ring (gt,SRB1_BASE );init_unused_ring (gt,SRB2_BASE );init_unused_ring (gt,SRB3_BASE ); - }else if (IS_GEN (i915,2 )) { + }else if (IS_GRAPHICS_VER (i915,2 )) {init_unused_ring (gt,SRB0_BASE );init_unused_ring (gt,SRB1_BASE ); - }else if (IS_GEN (i915,3 )) { + }else if (IS_GRAPHICS_VER (i915,3 )) {init_unused_ring (gt,PRB1_BASE );init_unused_ring (gt,PRB2_BASE ); }
@@ -135,7 +135,7 @@ int intel_gt_init_hw(struct intel_gt *gt)/* Double layer security blanket, see i915_gem_init() */ intel_uncore_forcewake_get (uncore,FORCEWAKE_ALL ); -if (HAS_EDRAM (i915) &&INTEL_GEN (i915) <9 ) +if (HAS_EDRAM (i915) &&GRAPHICS_VER (i915) <9 )intel_uncore_rmw (uncore,HSW_IDICR ,0 ,IDIHASHMSK (0xf ));if (IS_HASWELL (i915))
@@ -208,10 +208,10 @@ intel_gt_clear_error_registers(struct intel_gt *gt,struct intel_uncore *uncore = gt->uncore;u32 eir; -if (!IS_GEN (i915,2 )) +if (!IS_GRAPHICS_VER (i915,2 ))clear_register (uncore,PGTBL_ER ); -if (INTEL_GEN (i915) <4 ) +if (GRAPHICS_VER (i915) <4 )clear_register (uncore,IPEIR (RENDER_RING_BASE ));else clear_register (uncore,IPEIR_I965 );
@@ -229,13 +229,13 @@ intel_gt_clear_error_registers(struct intel_gt *gt, I915_MASTER_ERROR_INTERRUPT); } -if (INTEL_GEN (i915) >=12 ) { +if (GRAPHICS_VER (i915) >=12 ) {rmw_clear (uncore,GEN12_RING_FAULT_REG ,RING_FAULT_VALID );intel_uncore_posting_read (uncore,GEN12_RING_FAULT_REG ); - }else if (INTEL_GEN (i915) >=8 ) { + }else if (GRAPHICS_VER (i915) >=8 ) {rmw_clear (uncore,GEN8_RING_FAULT_REG ,RING_FAULT_VALID );intel_uncore_posting_read (uncore,GEN8_RING_FAULT_REG ); - }else if (INTEL_GEN (i915) >=6 ) { + }else if (GRAPHICS_VER (i915) >=6 ) {struct intel_engine_cs *engine;enum intel_engine_id id;
@@ -273,7 +273,7 @@ static void gen8_check_faults(struct intel_gt *gt)i915_reg_t fault_reg, fault_data0_reg, fault_data1_reg;u32 fault; -if (INTEL_GEN (gt->i915) >=12 ) { +if (GRAPHICS_VER (gt->i915) >=12 ) { fault_reg =GEN12_RING_FAULT_REG ; fault_data0_reg =GEN12_FAULT_TLB_DATA0 ; fault_data1_reg =GEN12_FAULT_TLB_DATA1 ;
@@ -313,9 +313,9 @@ void intel_gt_check_and_clear_faults(struct intel_gt *gt)struct drm_i915_private *i915 = gt->i915;/* From GEN8 onwards we only have one 'All Engine Fault Register' */ -if (INTEL_GEN (i915) >=8 ) +if (GRAPHICS_VER (i915) >=8 )gen8_check_faults (gt); -else if (INTEL_GEN (i915) >=6 ) +else if (GRAPHICS_VER (i915) >=6 )gen6_check_faults (gt);else return ;
@@ -367,7 +367,7 @@ void intel_gt_flush_ggtt_writes(struct intel_gt *gt)void intel_gt_chipset_flush (struct intel_gt *gt) {wmb (); -if (INTEL_GEN (gt->i915) <6 ) +if (GRAPHICS_VER (gt->i915) <6 )intel_gtt_chipset_flush (); }
@@ -591,7 +591,8 @@ int intel_gt_init(struct intel_gt *gt)*/ intel_uncore_forcewake_get (gt->uncore,FORCEWAKE_ALL ); - err =intel_gt_init_scratch (gt,IS_GEN (gt->i915,2 ) ?SZ_256K :SZ_4K ); + err =intel_gt_init_scratch (gt, +IS_GRAPHICS_VER (gt->i915,2 ) ?SZ_256K :SZ_4K );if (err) goto out_fw;
drivers/gpu/drm/i915/gt/intel_gt_clock_utils.c +6 -6
@@ -76,7 +76,7 @@ static u32 read_clock_frequency(struct intel_uncore *uncore)u32 f19_2_mhz =19200000 ;u32 f24_mhz =24000000 ; -if (INTEL_GEN (uncore->i915) <=4 ) { +if (GRAPHICS_VER (uncore->i915) <=4 ) {/* * PRMs say: *
@@ -85,7 +85,7 @@ static u32 read_clock_frequency(struct intel_uncore *uncore)* (“CLKCFG”) MCHBAR register) */ return RUNTIME_INFO (uncore->i915)->rawclk_freq *1000 /16 ; - }else if (INTEL_GEN (uncore->i915) <=8 ) { + }else if (GRAPHICS_VER (uncore->i915) <=8 ) {/* * PRMs say: *
@@ -94,7 +94,7 @@ static u32 read_clock_frequency(struct intel_uncore *uncore)* rolling over every 1.5 hours). */ return f12_5_mhz; - }else if (INTEL_GEN (uncore->i915) <=9 ) { + }else if (GRAPHICS_VER (uncore->i915) <=9 ) {u32 ctc_reg =intel_uncore_read (uncore,CTC_MODE );u32 freq =0 ;
@@ -113,7 +113,7 @@ static u32 read_clock_frequency(struct intel_uncore *uncore) }return freq; - }else if (INTEL_GEN (uncore->i915) <=12 ) { + }else if (GRAPHICS_VER (uncore->i915) <=12 ) {u32 ctc_reg =intel_uncore_read (uncore,CTC_MODE );u32 freq =0 ;
@@ -128,7 +128,7 @@ static u32 read_clock_frequency(struct intel_uncore *uncore) }else {u32 c0 =intel_uncore_read (uncore,RPM_CONFIG0 ); -if (INTEL_GEN (uncore->i915) <=10 ) +if (GRAPHICS_VER (uncore->i915) <=10 ) freq =gen10_get_crystal_clock_freq (uncore, c0);else freq =gen11_get_crystal_clock_freq (uncore, c0);
@@ -211,7 +211,7 @@ u64 intel_gt_ns_to_pm_interval(const struct intel_gt *gt, u64 ns)* frozen machine. */ val =div_u64_roundup (intel_gt_ns_to_clock_interval (gt, ns),16 ); -if (IS_GEN (gt->i915,6 )) +if (IS_GRAPHICS_VER (gt->i915,6 )) val =div_u64_roundup (val,25 ) *25 ;return val;
drivers/gpu/drm/i915/gt/intel_gt_irq.c +3 -3
@@ -429,7 +429,7 @@ void gen5_gt_irq_reset(struct intel_gt *gt)struct intel_uncore *uncore = gt->uncore;GEN3_IRQ_RESET (uncore,GT ); -if (INTEL_GEN (gt->i915) >=6 ) +if (GRAPHICS_VER (gt->i915) >=6 )GEN3_IRQ_RESET (uncore,GEN6_PM ); }
@@ -447,14 +447,14 @@ void gen5_gt_irq_postinstall(struct intel_gt *gt) } gt_irqs |=GT_RENDER_USER_INTERRUPT ; -if (IS_GEN (gt->i915,5 )) +if (IS_GRAPHICS_VER (gt->i915,5 )) gt_irqs |=ILK_BSD_USER_INTERRUPT ;else gt_irqs |=GT_BLT_USER_INTERRUPT |GT_BSD_USER_INTERRUPT ;GEN3_IRQ_INIT (uncore,GT , gt->gt_imr, gt_irqs); -if (INTEL_GEN (gt->i915) >=6 ) { +if (GRAPHICS_VER (gt->i915) >=6 ) {/* * RPS interrupts will get enabled/disabled on demand when RPS * itself is enabled/disabled.
drivers/gpu/drm/i915/gt/intel_gt_pm_irq.c +5 -5
@@ -16,10 +16,10 @@ static void write_pm_imr(struct intel_gt *gt)u32 mask = gt->pm_imr;i915_reg_t reg; -if (INTEL_GEN (i915) >=11 ) { +if (GRAPHICS_VER (i915) >=11 ) { reg =GEN11_GPM_WGBOXPERF_INTR_MASK ; mask <<=16 ;/* pm is in upper half */ - }else if (INTEL_GEN (i915) >=8 ) { + }else if (GRAPHICS_VER (i915) >=8 ) { reg =GEN8_GT_IMR (2 ); }else { reg =GEN6_PMIMR ;
@@ -61,7 +61,7 @@ void gen6_gt_pm_mask_irq(struct intel_gt *gt, u32 mask)void gen6_gt_pm_reset_iir (struct intel_gt *gt,u32 reset_mask) {struct intel_uncore *uncore = gt->uncore; -i915_reg_t reg =INTEL_GEN (gt->i915) >=8 ?GEN8_GT_IIR (2 ) :GEN6_PMIIR ; +i915_reg_t reg =GRAPHICS_VER (gt->i915) >=8 ?GEN8_GT_IIR (2 ) :GEN6_PMIIR ;lockdep_assert_held (>->irq_lock);
@@ -77,10 +77,10 @@ static void write_pm_ier(struct intel_gt *gt)u32 mask = gt->pm_ier;i915_reg_t reg; -if (INTEL_GEN (i915) >=11 ) { +if (GRAPHICS_VER (i915) >=11 ) { reg =GEN11_GPM_WGBOXPERF_INTR_ENABLE ; mask <<=16 ;/* pm is in upper half */ - }else if (INTEL_GEN (i915) >=8 ) { + }else if (GRAPHICS_VER (i915) >=8 ) { reg =GEN8_GT_IER (2 ); }else { reg =GEN6_PMIER ;
drivers/gpu/drm/i915/gt/intel_gtt.c +7 -7
@@ -292,7 +292,7 @@ void gtt_write_workarounds(struct intel_gt *gt)intel_uncore_write (uncore,GEN8_L3_LRA_1_GPGPU ,GEN9_L3_LRA_1_GPGPU_DEFAULT_VALUE_BXT ); - else if (INTEL_GEN(i915) >= 9 && INTEL_GEN(i915) <= 11) + else if (GRAPHICS_VER(i915) >= 9 && GRAPHICS_VER(i915) <= 11) intel_uncore_write(uncore, GEN8_L3_LRA_1_GPGPU, GEN9_L3_LRA_1_GPGPU_DEFAULT_VALUE_SKL);
@@ -309,13 +309,13 @@ void gtt_write_workarounds(struct intel_gt *gt)* driver. */ if (HAS_PAGE_SIZES (i915,I915_GTT_PAGE_SIZE_64K ) && -INTEL_GEN (i915) <=10 ) +GRAPHICS_VER (i915) <=10 )intel_uncore_rmw (uncore,GEN8_GAMW_ECO_DEV_RW_IA ,0 ,GAMW_ECO_ENABLE_64K_IPS_FIELD ); -if (IS_GEN_RANGE (i915,8 ,11 )) { +if (IS_GRAPHICS_RANGE (i915,8 ,11 )) {bool can_use_gtt_cache = true;/*
@@ -397,7 +397,7 @@ static void bdw_setup_private_ppat(struct intel_uncore *uncore)GEN8_PPAT (7 ,GEN8_PPAT_WB |GEN8_PPAT_LLCELLC |GEN8_PPAT_AGE (3 ));/* for scanout with eLLC */ -if (INTEL_GEN (i915) >=9 ) +if (GRAPHICS_VER (i915) >=9 ) pat |=GEN8_PPAT (2 ,GEN8_PPAT_WB |GEN8_PPAT_ELLC_OVERRIDE );else pat |=GEN8_PPAT (2 ,GEN8_PPAT_WT |GEN8_PPAT_LLCELLC );
@@ -446,11 +446,11 @@ void setup_private_pat(struct intel_uncore *uncore) {struct drm_i915_private *i915 = uncore->i915; -GEM_BUG_ON (INTEL_GEN (i915) <8 ); +GEM_BUG_ON (GRAPHICS_VER (i915) <8 ); -if (INTEL_GEN (i915) >=12 ) +if (GRAPHICS_VER (i915) >=12 )tgl_setup_private_ppat (uncore); -else if (INTEL_GEN (i915) >=10 ) +else if (GRAPHICS_VER (i915) >=10 )cnl_setup_private_ppat (uncore);else if (IS_CHERRYVIEW (i915) ||IS_GEN9_LP (i915))chv_setup_private_ppat (uncore);
drivers/gpu/drm/i915/gt/intel_llc.c +3 -3
@@ -64,7 +64,7 @@ static bool get_ia_constants(struct intel_llc *llc, consts->min_gpu_freq = rps->min_freq; consts->max_gpu_freq = rps->max_freq; -if (INTEL_GEN (i915) >=9 ) { +if (GRAPHICS_VER (i915) >=9 ) {/* Convert GT frequency to 50 HZ units */ consts->min_gpu_freq /=GEN9_FREQ_SCALER ; consts->max_gpu_freq /=GEN9_FREQ_SCALER ;
@@ -83,13 +83,13 @@ static void calc_ia_freq(struct intel_llc *llc,const int diff = consts->max_gpu_freq - gpu_freq;unsigned int ia_freq =0 , ring_freq =0 ; -if (INTEL_GEN (i915) >=9 ) { +if (GRAPHICS_VER (i915) >=9 ) {/* * ring_freq = 2 * GT. ring_freq is in 100MHz units * No floor required for ring frequency on SKL. */ ring_freq = gpu_freq; - }else if (INTEL_GEN (i915) >=8 ) { + }else if (GRAPHICS_VER (i915) >=8 ) {/* max(2 * GT, DDR). NB: GT is 50MHz units */ ring_freq =max (consts->min_ring_freq, gpu_freq); }else if (IS_HASWELL (i915)) {
drivers/gpu/drm/i915/gt/intel_lrc.c +23 -23
139 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_mocs.c +4 -4
@@ -344,11 +344,11 @@ static unsigned int get_mocs_settings(const struct drm_i915_private *i915, table->size =ARRAY_SIZE (dg1_mocs_table); table->table = dg1_mocs_table; table->n_entries =GEN9_NUM_MOCS_ENTRIES ; - }else if (INTEL_GEN (i915) >=12 ) { + }else if (GRAPHICS_VER (i915) >=12 ) { table->size =ARRAY_SIZE (tgl_mocs_table); table->table = tgl_mocs_table; table->n_entries =GEN9_NUM_MOCS_ENTRIES ; - }else if (IS_GEN (i915,11 )) { + }else if (IS_GRAPHICS_VER (i915,11 )) { table->size =ARRAY_SIZE (icl_mocs_table); table->table = icl_mocs_table; table->n_entries =GEN9_NUM_MOCS_ENTRIES ;
@@ -361,7 +361,7 @@ static unsigned int get_mocs_settings(const struct drm_i915_private *i915, table->n_entries =GEN9_NUM_MOCS_ENTRIES ; table->table = broxton_mocs_table; }else { -drm_WARN_ONCE (&i915->drm,INTEL_GEN (i915) >=9 , +drm_WARN_ONCE (&i915->drm,GRAPHICS_VER (i915) >=9 ,"Platform that should have a MOCS table does not.\n" );return 0 ; }
@@ -370,7 +370,7 @@ static unsigned int get_mocs_settings(const struct drm_i915_private *i915,return 0 ;/* WaDisableSkipCaching:skl,bxt,kbl,glk */ -if (IS_GEN (i915,9 )) { +if (IS_GRAPHICS_VER (i915,9 )) {int i;for (i =0 ; i < table->size; i++)
drivers/gpu/drm/i915/gt/intel_ppgtt.c +3 -3
@@ -147,9 +147,9 @@ int i915_ppgtt_init_hw(struct intel_gt *gt)gtt_write_workarounds (gt); -if (IS_GEN (i915,6 )) +if (IS_GRAPHICS_VER (i915,6 ))gen6_ppgtt_enable (gt); -else if (IS_GEN (i915,7 )) +else if (IS_GRAPHICS_VER (i915,7 ))gen7_ppgtt_enable (gt);return 0 ;
@@ -158,7 +158,7 @@ int i915_ppgtt_init_hw(struct intel_gt *gt)static struct i915_ppgtt *__ppgtt_create (struct intel_gt *gt) { -if (INTEL_GEN (gt->i915) <8 ) +if (GRAPHICS_VER (gt->i915) <8 )return gen6_ppgtt_create (gt);else return gen8_ppgtt_create (gt);
drivers/gpu/drm/i915/gt/intel_rc6.c +8 -8
@@ -109,7 +109,7 @@ static void gen11_rc6_enable(struct intel_rc6 *rc6)GEN9_MEDIA_PG_ENABLE |GEN11_MEDIA_SAMPLER_PG_ENABLE ; -if (INTEL_GEN (gt->i915) >=12 ) { +if (GRAPHICS_VER (gt->i915) >=12 ) {for (i =0 ; i <I915_MAX_VCS ; i++)if (HAS_ENGINE (gt,_VCS (i))) pg_enable |= (VDN_HCP_POWERGATE_ENABLE(i) |
@@ -126,7 +126,7 @@ static void gen9_rc6_enable(struct intel_rc6 *rc6)enum intel_engine_id id;/* 2b: Program RC6 thresholds.*/ -if (INTEL_GEN (rc6_to_i915 (rc6)) >=10 ) { +if (GRAPHICS_VER (rc6_to_i915 (rc6)) >=10 ) {set (uncore,GEN6_RC6_WAKE_RATE_LIMIT ,54 <<16 |85 );set (uncore,GEN10_MEDIA_WAKE_RATE_LIMIT ,150 ); }else if (IS_SKYLAKE (rc6_to_i915 (rc6))) {
@@ -249,9 +249,9 @@ static void gen6_rc6_enable(struct intel_rc6 *rc6) rc6vids =0 ; ret =sandybridge_pcode_read (i915,GEN6_PCODE_READ_RC6VIDS , &rc6vids,NULL ); -if (IS_GEN (i915,6 ) && ret) { +if (IS_GRAPHICS_VER (i915,6 ) && ret) {drm_dbg (&i915->drm,"Couldn't check for BIOS workaround\n" ); - }else if (IS_GEN (i915,6 ) && + }else if (IS_GRAPHICS_VER (i915,6 ) && (GEN6_DECODE_RC6_VID (rc6vids &0xff ) <450 )) { drm_dbg(&i915->drm, "You should update your BIOS. Correcting minimum rc6 voltage (%dmV->%dmV)\n",
@@ -515,7 +515,7 @@ static void __intel_rc6_disable(struct intel_rc6 *rc6)struct intel_uncore *uncore =rc6_to_uncore (rc6);intel_uncore_forcewake_get (uncore,FORCEWAKE_ALL ); -if (INTEL_GEN (i915) >=9 ) +if (GRAPHICS_VER (i915) >=9 )set (uncore,GEN9_PG_ENABLE ,0 );set (uncore,GEN6_RC_CONTROL ,0 );set (uncore,GEN6_RC_STATE ,0 );
@@ -575,13 +575,13 @@ void intel_rc6_enable(struct intel_rc6 *rc6)chv_rc6_enable (rc6); else if (IS_VALLEYVIEW(i915)) vlv_rc6_enable(rc6); - else if (INTEL_GEN(i915) >= 11) + else if (GRAPHICS_VER(i915) >= 11) gen11_rc6_enable(rc6); - else if (INTEL_GEN(i915) >= 9) + else if (GRAPHICS_VER(i915) >= 9) gen9_rc6_enable(rc6); else if (IS_BROADWELL(i915)) gen8_rc6_enable(rc6); - else if (INTEL_GEN(i915) >= 6) + else if (GRAPHICS_VER(i915) >= 6) gen6_rc6_enable(rc6); rc6->manual = rc6->ctl_enable &GEN6_RC_CTL_RC6_ENABLE ;
drivers/gpu/drm/i915/gt/intel_renderstate.c +1 -1
@@ -15,7 +15,7 @@ render_state_get_rodata(const struct intel_engine_cs *engine)if (engine->class !=RENDER_CLASS )return NULL ; -switch (INTEL_GEN (engine->i915)) { +switch (GRAPHICS_VER (engine->i915)) {case 6 :return &gen6_null_state;case 7 :
drivers/gpu/drm/i915/gt/intel_reset.c +6 -6
@@ -565,7 +565,7 @@ static int gen8_reset_engines(struct intel_gt *gt,*/ } -if (INTEL_GEN (gt->i915) >=11 ) +if (GRAPHICS_VER (gt->i915) >=11 ) ret =gen11_reset_engines (gt, engine_mask, retry);else ret =gen6_reset_engines (gt, engine_mask, retry);
@@ -594,17 +594,17 @@ static reset_func intel_get_gpu_reset(const struct intel_gt *gt)if (is_mock_gt (gt))return mock_reset; -else if (INTEL_GEN (i915) >=8 ) +else if (GRAPHICS_VER (i915) >=8 )return gen8_reset_engines; -else if (INTEL_GEN (i915) >=6 ) +else if (GRAPHICS_VER (i915) >=6 )return gen6_reset_engines; -else if (INTEL_GEN (i915) >=5 ) +else if (GRAPHICS_VER (i915) >=5 )return ilk_do_reset;else if (IS_G4X (i915))return g4x_do_reset;else if (IS_G33 (i915) ||IS_PINEVIEW (i915))return g33_do_reset; -else if (INTEL_GEN (i915) >=3 ) +else if (GRAPHICS_VER (i915) >=3 )return i915_do_reset;else return NULL ;
@@ -656,7 +656,7 @@ bool intel_has_reset_engine(const struct intel_gt *gt)int intel_reset_guc (struct intel_gt *gt) {u32 guc_domain = -INTEL_GEN (gt->i915) >=11 ?GEN11_GRDOM_GUC :GEN9_GRDOM_GUC ; +GRAPHICS_VER (gt->i915) >=11 ?GEN11_GRDOM_GUC :GEN9_GRDOM_GUC ;int ret;GEM_BUG_ON (!HAS_GT_UC (gt->i915));
drivers/gpu/drm/i915/gt/intel_ring_submission.c +32 -32
216 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_rps.c +30 -30
220 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_sseu.c +7 -7
@@ -590,13 +590,13 @@ void intel_sseu_info_init(struct intel_gt *gt)cherryview_sseu_info_init (gt); else if (IS_BROADWELL(i915)) bdw_sseu_info_init(gt); - else if (IS_GEN(i915, 9)) + else if (IS_GRAPHICS_VER(i915, 9)) gen9_sseu_info_init(gt); - else if (IS_GEN(i915, 10)) + else if (IS_GRAPHICS_VER(i915, 10)) gen10_sseu_info_init(gt); - else if (IS_GEN(i915, 11)) + else if (IS_GRAPHICS_VER(i915, 11)) gen11_sseu_info_init(gt); - else if (INTEL_GEN(i915) >= 12) + else if (GRAPHICS_VER(i915) >= 12) gen12_sseu_info_init(gt); }
@@ -613,7 +613,7 @@ u32 intel_sseu_make_rpcs(struct intel_gt *gt,* No explicit RPCS request is needed to ensure full * slice/subslice/EU enablement prior to Gen9. */ -if (INTEL_GEN (i915) <9 ) +if (GRAPHICS_VER (i915) <9 )return 0 ;/*
@@ -651,7 +651,7 @@ u32 intel_sseu_make_rpcs(struct intel_gt *gt,* subslices are enabled, or a count between one and four on the first * slice. */ -if (IS_GEN (i915,11 ) && +if (IS_GRAPHICS_VER (i915,11 ) && slices ==1 && subslices >min_t (u8,4 ,hweight8 (sseu->subslice_mask[0 ]) /2 )) {GEM_BUG_ON (subslices &1 );
@@ -669,7 +669,7 @@ u32 intel_sseu_make_rpcs(struct intel_gt *gt,if (sseu->has_slice_pg) {u32 mask, val = slices; -if (INTEL_GEN (i915) >=11 ) { +if (GRAPHICS_VER (i915) >=11 ) { mask =GEN11_RPCS_S_CNT_MASK ; val <<=GEN11_RPCS_S_CNT_SHIFT ; }else {
drivers/gpu/drm/i915/gt/intel_workarounds.c +33 -33
209 lines not on this page · raw message
drivers/gpu/drm/i915/gt/selftest_engine_cs.c +3 -3
@@ -52,7 +52,7 @@ static int write_timestamp(struct i915_request *rq, int slot)return PTR_ERR (cs); cmd =MI_STORE_REGISTER_MEM |MI_USE_GGTT ; -if (INTEL_GEN (rq->engine->i915) >=8 ) +if (GRAPHICS_VER (rq->engine->i915) >=8 ) cmd++; *cs++ = cmd; *cs++ =i915_mmio_reg_offset (RING_TIMESTAMP (rq->engine->mmio_base));
@@ -125,7 +125,7 @@ static int perf_mi_bb_start(void *arg)enum intel_engine_id id;int err =0 ; -if (INTEL_GEN (gt->i915) <7 )/* for per-engine CS_TIMESTAMP */ +if (GRAPHICS_VER (gt->i915) <7 )/* for per-engine CS_TIMESTAMP */ return 0 ;perf_begin (gt);
@@ -249,7 +249,7 @@ static int perf_mi_noop(void *arg)enum intel_engine_id id;int err =0 ; -if (INTEL_GEN (gt->i915) <7 )/* for per-engine CS_TIMESTAMP */ +if (GRAPHICS_VER (gt->i915) <7 )/* for per-engine CS_TIMESTAMP */ return 0 ;perf_begin (gt);
drivers/gpu/drm/i915/gt/selftest_engine_pm.c +1 -1
@@ -198,7 +198,7 @@ static int live_engine_timestamps(void *arg)* the same CS clock. */ -if (INTEL_GEN (gt->i915) <8 ) +if (GRAPHICS_VER (gt->i915) <8 )return 0 ;for_each_engine (engine, gt, id) {
drivers/gpu/drm/i915/gt/selftest_execlists.c +2 -2
@@ -3269,7 +3269,7 @@ static int live_preempt_user(void *arg)if (!intel_engine_has_preemption (engine))continue ; -if (IS_GEN (gt->i915,8 ) && engine->class !=RENDER_CLASS ) +if (IS_GRAPHICS_VER (gt->i915,8 ) && engine->class !=RENDER_CLASS )continue ;/* we need per-context GPR */ if (igt_live_test_begin (&t, gt->i915, __func__, engine->name)) {
@@ -4293,7 +4293,7 @@ static int live_virtual_preserved(void *arg)return 0 ;/* As we use CS_GPR we cannot run before they existed on all engines. */ -if (INTEL_GEN (gt->i915) <9 ) +if (GRAPHICS_VER (gt->i915) <9 )return 0 ;for (class =0 ; class <=MAX_ENGINE_CLASS ; class++) {
drivers/gpu/drm/i915/gt/selftest_gt_pm.c +4 -4
@@ -74,10 +74,10 @@ static int live_gt_clocks(void *arg)return 0 ; } -if (INTEL_GEN (gt->i915) <4 )/* Any CS_TIMESTAMP? */ +if (GRAPHICS_VER (gt->i915) <4 )/* Any CS_TIMESTAMP? */ return 0 ; -if (IS_GEN (gt->i915,5 )) +if (IS_GRAPHICS_VER (gt->i915,5 ))/* * XXX CS_TIMESTAMP low dword is dysfunctional? *
@@ -86,7 +86,7 @@ static int live_gt_clocks(void *arg)*/ return 0 ; -if (IS_GEN (gt->i915,4 )) +if (IS_GRAPHICS_VER (gt->i915,4 ))/* * XXX CS_TIMESTAMP appears gibberish *
@@ -105,7 +105,7 @@ static int live_gt_clocks(void *arg)u64 time;u64 dt; -if (INTEL_GEN (engine->i915) <7 && engine->id !=RCS0 ) +if (GRAPHICS_VER (engine->i915) <7 && engine->id !=RCS0 )continue ;measure_clocks (engine, &cycles, &dt);
drivers/gpu/drm/i915/gt/selftest_hangcheck.c +4 -4
@@ -180,7 +180,7 @@ hang_create_request(struct hang *h, struct intel_engine_cs *engine) goto cancel_rq; batch = h->batch; -if (INTEL_GEN (gt->i915) >=8 ) { +if (GRAPHICS_VER (gt->i915) >=8 ) { *batch++ =MI_STORE_DWORD_IMM_GEN4 ; *batch++ =lower_32_bits (hws_address (hws, rq)); *batch++ =upper_32_bits (hws_address (hws, rq));
@@ -194,7 +194,7 @@ hang_create_request(struct hang *h, struct intel_engine_cs *engine) *batch++ =MI_BATCH_BUFFER_START |1 <<8 |1 ; *batch++ =lower_32_bits (vma->node.start); *batch++ =upper_32_bits (vma->node.start); - }else if (INTEL_GEN (gt->i915) >=6 ) { + }else if (GRAPHICS_VER (gt->i915) >=6 ) { *batch++ =MI_STORE_DWORD_IMM_GEN4 ; *batch++ =0 ; *batch++ =lower_32_bits (hws_address (hws, rq));
@@ -207,7 +207,7 @@ hang_create_request(struct hang *h, struct intel_engine_cs *engine) *batch++ =MI_NOOP ; *batch++ =MI_BATCH_BUFFER_START |1 <<8 ; *batch++ =lower_32_bits (vma->node.start); - }else if (INTEL_GEN (gt->i915) >=4 ) { + }else if (GRAPHICS_VER (gt->i915) >=4 ) { *batch++ =MI_STORE_DWORD_IMM_GEN4 |MI_USE_GGTT ; *batch++ =0 ; *batch++ =lower_32_bits (hws_address (hws, rq));
@@ -243,7 +243,7 @@ hang_create_request(struct hang *h, struct intel_engine_cs *engine) } flags =0 ; -if (INTEL_GEN (gt->i915) <=5 ) +if (GRAPHICS_VER (gt->i915) <=5 ) flags |=I915_DISPATCH_SECURE ; err = rq->engine->emit_bb_start (rq, vma->node.start,PAGE_SIZE , flags);
drivers/gpu/drm/i915/gt/selftest_llc.c +2 -2
@@ -44,7 +44,7 @@ static int gen6_verify_ring_freq(struct intel_llc *llc)if (found != ia_freq) {pr_err ("Min freq table(%d/[%d, %d]):%dMHz did not match expected CPU freq, found %d, expected %d\n" , gpu_freq, consts.min_gpu_freq, consts.max_gpu_freq, -intel_gpu_freq (rps, gpu_freq * (INTEL_GEN (i915) >=9 ?GEN9_FREQ_SCALER :1 )), +intel_gpu_freq (rps, gpu_freq * (GRAPHICS_VER (i915) >=9 ?GEN9_FREQ_SCALER :1 )), found, ia_freq); err = -EINVAL ;break ;
@@ -54,7 +54,7 @@ static int gen6_verify_ring_freq(struct intel_llc *llc)if (found != ring_freq) {pr_err ("Min freq table(%d/[%d, %d]):%dMHz did not match expected ring freq, found %d, expected %d\n" , gpu_freq, consts.min_gpu_freq, consts.max_gpu_freq, -intel_gpu_freq (rps, gpu_freq * (INTEL_GEN (i915) >=9 ?GEN9_FREQ_SCALER :1 )), +intel_gpu_freq (rps, gpu_freq * (GRAPHICS_VER (i915) >=9 ?GEN9_FREQ_SCALER :1 )), found, ring_freq); err = -EINVAL ;break ;
drivers/gpu/drm/i915/gt/selftest_lrc.c +4 -4
@@ -584,7 +584,7 @@ static int __live_lrc_gpr(struct intel_engine_cs *engine,int err;int n; -if (INTEL_GEN (engine->i915) <9 && engine->class !=RENDER_CLASS ) +if (GRAPHICS_VER (engine->i915) <9 && engine->class !=RENDER_CLASS )return 0 ;/* GPR only on rcs0 for gen8 */ err =gpr_make_dirty (engine->kernel_context);
@@ -1387,10 +1387,10 @@ static int __lrc_isolation(struct intel_engine_cs *engine, u32 poison)static bool skip_isolation (const struct intel_engine_cs *engine) { -if (engine->class ==COPY_ENGINE_CLASS &&INTEL_GEN (engine->i915) ==9 ) +if (engine->class ==COPY_ENGINE_CLASS &&IS_GRAPHICS_VER (engine->i915,9 ))return true; -if (engine->class ==RENDER_CLASS &&INTEL_GEN (engine->i915) ==11 ) +if (engine->class ==RENDER_CLASS &&IS_GRAPHICS_VER (engine->i915,11 ))return true;return false;
@@ -1549,7 +1549,7 @@ static int __live_lrc_indirect_ctx_bb(struct intel_engine_cs *engine)/* We use the already reserved extra page in context state */ if (!a->wa_bb_page) {GEM_BUG_ON (b->wa_bb_page); -GEM_BUG_ON (INTEL_GEN (engine->i915) ==12 ); +GEM_BUG_ON (IS_GRAPHICS_VER (engine->i915,12 )); goto unpin_b; }
drivers/gpu/drm/i915/gt/selftest_mocs.c +1 -1
@@ -183,7 +183,7 @@ static bool mcr_range(struct drm_i915_private *i915, u32 offset)* which only controls CPU initiated MMIO. Routing does not * work for CS access so we cannot verify them on this path. */ -return INTEL_GEN (i915) >=8 && offset >=0xb000 && offset <=0xb4ff ; +return GRAPHICS_VER (i915) >=8 && offset >=0xb000 && offset <=0xb4ff ; } static int check_l3cc_table(struct intel_engine_cs *engine,
drivers/gpu/drm/i915/gt/selftest_rc6.c +2 -2
@@ -132,7 +132,7 @@ static const u32 *__live_rc6_ctx(struct intel_context *ce) } cmd =MI_STORE_REGISTER_MEM |MI_USE_GGTT ; -if (INTEL_GEN (rq->engine->i915) >=8 ) +if (GRAPHICS_VER (rq->engine->i915) >=8 ) cmd++; *cs++ = cmd;
@@ -185,7 +185,7 @@ int live_rc6_ctx_wa(void *arg)int err =0 ;/* A read of CTX_INFO upsets rc6. Poke the bear! */ -if (INTEL_GEN (gt->i915) <8 ) +if (GRAPHICS_VER (gt->i915) <8 )return 0 ; engines =randomised_engines (gt, &prng, &count);
drivers/gpu/drm/i915/gt/selftest_ring_submission.c +3 -3
@@ -41,10 +41,10 @@ static struct i915_vma *create_wally(struct intel_engine_cs *engine)return ERR_CAST (cs); } -if (INTEL_GEN (engine->i915) >=6 ) { +if (GRAPHICS_VER (engine->i915) >=6 ) { *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ =0 ; - }else if (INTEL_GEN (engine->i915) >=4 ) { + }else if (GRAPHICS_VER (engine->i915) >=4 ) { *cs++ =MI_STORE_DWORD_IMM_GEN4 |MI_USE_GGTT ; *cs++ =0 ; }else {
@@ -266,7 +266,7 @@ static int live_ctx_switch_wa(void *arg)if (!intel_engine_can_store_dword (engine))continue ; -if (IS_GEN_RANGE (gt->i915,4 ,5 )) +if (IS_GRAPHICS_RANGE (gt->i915,4 ,5 ))continue ;/* MI_STORE_DWORD is privileged! */ saved_wa =fetch_and_zero (&engine->wa_ctx.vma);
drivers/gpu/drm/i915/gt/selftest_rps.c +8 -8
@@ -204,7 +204,7 @@ static void show_pstate_limits(struct intel_rps *rps)i915_mmio_reg_offset (BXT_RP_STATE_CAP ),intel_uncore_read (rps_to_uncore (rps), BXT_RP_STATE_CAP)); - }else if (IS_GEN (i915,9 )) { + }else if (IS_GRAPHICS_VER (i915,9 )) { pr_info("P_STATE_LIMITS[%x]: 0x%08x\n", i915_mmio_reg_offset(GEN9_RP_STATE_LIMITS), intel_uncore_read(rps_to_uncore(rps),
@@ -222,7 +222,7 @@ int live_rps_clock_interval(void *arg)struct igt_spinner spin;int err =0 ; -if (!intel_rps_is_enabled (rps) ||INTEL_GEN (gt->i915) <6 ) +if (!intel_rps_is_enabled (rps) ||GRAPHICS_VER (gt->i915) <6 )return 0 ;if (igt_spinner_init (&spin, gt))
@@ -506,7 +506,7 @@ static void show_pcu_config(struct intel_rps *rps) min_gpu_freq = rps->min_freq; max_gpu_freq = rps->max_freq; -if (INTEL_GEN (i915) >=9 ) { +if (GRAPHICS_VER (i915) >=9 ) {/* Convert GT frequency to 50 HZ units */ min_gpu_freq /=GEN9_FREQ_SCALER ; max_gpu_freq /=GEN9_FREQ_SCALER ;
@@ -614,7 +614,7 @@ int live_rps_frequency_cs(void *arg)if (!intel_rps_is_enabled (rps))return 0 ; -if (INTEL_GEN (gt->i915) <8 )/* for CS simplicity */ +if (GRAPHICS_VER (gt->i915) <8 )/* for CS simplicity */ return 0 ;if (CPU_LATENCY >=0 )
@@ -755,7 +755,7 @@ int live_rps_frequency_srm(void *arg)if (!intel_rps_is_enabled (rps))return 0 ; -if (INTEL_GEN (gt->i915) <8 )/* for CS simplicity */ +if (GRAPHICS_VER (gt->i915) <8 )/* for CS simplicity */ return 0 ;if (CPU_LATENCY >=0 )
@@ -1031,7 +1031,7 @@ int live_rps_interrupt(void *arg)* First, let's check whether or not we are receiving interrupts. */ -if (!intel_rps_has_interrupts (rps) ||INTEL_GEN (gt->i915) <6 ) +if (!intel_rps_has_interrupts (rps) ||GRAPHICS_VER (gt->i915) <6 )return 0 ;intel_gt_pm_get (gt);
@@ -1136,7 +1136,7 @@ int live_rps_power(void *arg)* that theory. */ -if (!intel_rps_is_enabled (rps) ||INTEL_GEN (gt->i915) <6 ) +if (!intel_rps_is_enabled (rps) ||GRAPHICS_VER (gt->i915) <6 )return 0 ;if (!librapl_energy_uJ ())
@@ -1240,7 +1240,7 @@ int live_rps_dynamic(void *arg)* moving parts into dynamic reclocking based on load. */ -if (!intel_rps_is_enabled (rps) ||INTEL_GEN (gt->i915) <6 ) +if (!intel_rps_is_enabled (rps) ||GRAPHICS_VER (gt->i915) <6 )return 0 ;if (igt_spinner_init (&spin, gt))
drivers/gpu/drm/i915/gt/selftest_timeline.c +3 -3
@@ -457,12 +457,12 @@ static int emit_ggtt_store_dw(struct i915_request *rq, u32 addr, u32 value)if (IS_ERR (cs))return PTR_ERR (cs); -if (INTEL_GEN (rq->engine->i915) >=8 ) { +if (GRAPHICS_VER (rq->engine->i915) >=8 ) { *cs++ =MI_STORE_DWORD_IMM_GEN4 |MI_USE_GGTT ; *cs++ = addr; *cs++ =0 ; *cs++ = value; - }else if (INTEL_GEN (rq->engine->i915) >=4 ) { + }else if (GRAPHICS_VER (rq->engine->i915) >=4 ) { *cs++ =MI_STORE_DWORD_IMM_GEN4 |MI_USE_GGTT ; *cs++ =0 ; *cs++ = addr;
@@ -992,7 +992,7 @@ static int live_hwsp_read(void *arg)* even across multiple wraps. */ -if (INTEL_GEN (gt->i915) <8 )/* CS convenience [SRM/LRM] */ +if (GRAPHICS_VER (gt->i915) <8 )/* CS convenience [SRM/LRM] */ return 0 ; tl =intel_timeline_create (gt);
drivers/gpu/drm/i915/gt/selftest_workarounds.c +4 -4
@@ -145,7 +145,7 @@ read_nonprivs(struct intel_context *ce) goto err_req; srm =MI_STORE_REGISTER_MEM |MI_SRM_LRM_GLOBAL_GTT ; -if (INTEL_GEN (engine->i915) >=8 ) +if (GRAPHICS_VER (engine->i915) >=8 ) srm++; cs =intel_ring_begin (rq,4 *RING_MAX_NONPRIV_SLOTS );
@@ -546,7 +546,7 @@ static int check_dirty_whitelist(struct intel_context *ce) srm =MI_STORE_REGISTER_MEM ; lrm =MI_LOAD_REGISTER_MEM ; -if (INTEL_GEN (engine->i915) >=8 ) +if (GRAPHICS_VER (engine->i915) >=8 ) lrm++, srm++; pr_debug("%s: Writing garbage to %x\n",
@@ -749,7 +749,7 @@ static int live_dirty_whitelist(void *arg)/* Can the user write to the whitelisted registers? */ -if (INTEL_GEN (gt->i915) <7 )/* minimum requirement for LRI, SRM, LRM */ +if (GRAPHICS_VER (gt->i915) <7 )/* minimum requirement for LRI, SRM, LRM */ return 0 ;for_each_engine (engine, gt, id) {
@@ -829,7 +829,7 @@ static int read_whitelisted_registers(struct intel_context *ce, goto err_req; srm =MI_STORE_REGISTER_MEM ; -if (INTEL_GEN (engine->i915) >=8 ) +if (GRAPHICS_VER (engine->i915) >=8 ) srm++; cs =intel_ring_begin (rq,4 * engine->whitelist.count);
drivers/gpu/drm/i915/gt/uc/intel_guc.c +2 -2
@@ -60,7 +60,7 @@ void intel_guc_init_send_regs(struct intel_guc *guc)enum forcewake_domains fw_domains =0 ;unsigned int i; -if (INTEL_GEN (gt->i915) >=11 ) { +if (GRAPHICS_VER (gt->i915) >=11 ) { guc->send_regs.base =i915_mmio_reg_offset (GEN11_SOFT_SCRATCH (0 )); guc->send_regs.count =GEN11_SOFT_SCRATCH_COUNT ;
@@ -176,7 +176,7 @@ void intel_guc_init_early(struct intel_guc *guc)mutex_init (&guc->send_mutex);spin_lock_init (&guc->irq_lock); -if (INTEL_GEN (i915) >=11 ) { +if (GRAPHICS_VER (i915) >=11 ) { guc->notify_reg =GEN11_GUC_HOST_INTERRUPT ; guc->interrupts.reset = gen11_reset_guc_interrupts; guc->interrupts.enable = gen11_enable_guc_interrupts;
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +1 -1
@@ -162,7 +162,7 @@ static void __guc_ads_init(struct intel_guc *guc) blob->system_info.generic_gt_sysinfo[GUC_GENERIC_GT_SYSINFO_VDBOX_SFC_SUPPORT_MASK ] = gt->info.vdbox_sfc_access; -if (INTEL_GEN (i915) >=12 && !IS_DGFX (i915)) { +if (GRAPHICS_VER (i915) >=12 && !IS_DGFX (i915)) {u32 distdbreg =intel_uncore_read (gt->uncore,GEN12_DIST_DBS_POPULATED ); blob->system_info.generic_gt_sysinfo[GUC_GENERIC_GT_SYSINFO_DOORBELL_COUNT_PER_SQIDI] =
drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c +1 -1
@@ -30,7 +30,7 @@ static void guc_prepare_xfer(struct intel_uncore *uncore)else intel_uncore_write (uncore,GEN9_GT_PM_CONFIG ,GT_DOORBELL_ENABLE ); -if (IS_GEN (uncore->i915,9 )) { +if (IS_GRAPHICS_VER (uncore->i915,9 )) {/* DOP Clock Gating Enable for GuC clocks */ intel_uncore_rmw (uncore,GEN7_MISCCPCTL ,0 ,GEN8_DOP_CLOCK_GATE_GUC_ENABLE );
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5 -5
@@ -429,7 +429,7 @@ static void guc_interrupts_capture(struct intel_gt *gt)u32 irqs =GT_CONTEXT_SWITCH_INTERRUPT ;u32 dmask = irqs <<16 | irqs; -GEM_BUG_ON (INTEL_GEN (gt->i915) <11 ); +GEM_BUG_ON (GRAPHICS_VER (gt->i915) <11 );/* Don't handle the ctx switch interrupt in GuC submission mode */ intel_uncore_rmw (uncore,GEN11_RENDER_COPY_INTR_ENABLE , dmask,0 );
@@ -442,7 +442,7 @@ static void guc_interrupts_release(struct intel_gt *gt)u32 irqs =GT_CONTEXT_SWITCH_INTERRUPT ;u32 dmask = irqs <<16 | irqs; -GEM_BUG_ON (INTEL_GEN (gt->i915) <11 ); +GEM_BUG_ON (GRAPHICS_VER (gt->i915) <11 );/* Handle ctx switch interrupts again */ intel_uncore_rmw (uncore,GEN11_RENDER_COPY_INTR_ENABLE ,0 , dmask);
@@ -661,7 +661,7 @@ static void guc_default_vfuncs(struct intel_engine_cs *engine) engine->emit_flush = gen8_emit_flush_xcs; engine->emit_init_breadcrumb = gen8_emit_init_breadcrumb; engine->emit_fini_breadcrumb = gen8_emit_fini_breadcrumb_xcs; -if (INTEL_GEN (engine->i915) >=12 ) { +if (GRAPHICS_VER (engine->i915) >=12 ) { engine->emit_fini_breadcrumb = gen12_emit_fini_breadcrumb_xcs; engine->emit_flush = gen12_emit_flush_xcs; }
@@ -670,7 +670,7 @@ static void guc_default_vfuncs(struct intel_engine_cs *engine)static void rcs_submission_override (struct intel_engine_cs *engine) { -switch (INTEL_GEN (engine->i915)) { +switch (GRAPHICS_VER (engine->i915)) {case 12 : engine->emit_flush = gen12_emit_flush_rcs; engine->emit_fini_breadcrumb = gen12_emit_fini_breadcrumb_rcs;
@@ -699,7 +699,7 @@ int intel_guc_submission_setup(struct intel_engine_cs *engine)* The setup relies on several assumptions (e.g. irqs always enabled) * that are only valid on gen11+ */ -GEM_BUG_ON (INTEL_GEN (i915) <11 ); +GEM_BUG_ON (GRAPHICS_VER (i915) <11 );tasklet_setup (&engine->execlists.tasklet, guc_submission_tasklet);
drivers/gpu/drm/i915/gt/uc/intel_huc.c +1 -1
@@ -43,7 +43,7 @@ void intel_huc_init_early(struct intel_huc *huc)intel_uc_fw_init_early (&huc->fw,INTEL_UC_FW_TYPE_HUC ); -if (INTEL_GEN (i915) >=11 ) { +if (GRAPHICS_VER (i915) >=11 ) { huc->status.reg =GEN11_HUC_KERNEL_LOAD_INFO ; huc->status.mask =HUC_LOAD_SUCCESSFUL ; huc->status.value =HUC_LOAD_SUCCESSFUL ;
drivers/gpu/drm/i915/gt/uc/intel_uc.c +2 -2
@@ -23,7 +23,7 @@ static void uc_expand_default_options(struct intel_uc *uc)return ;/* Don't enable GuC/HuC on pre-Gen12 */ -if (INTEL_GEN (i915) <12 ) { +if (GRAPHICS_VER (i915) <12 ) { i915->params.enable_guc =0 ;return ; }
@@ -467,7 +467,7 @@ static int __uc_init_hw(struct intel_uc *uc)/* WaEnableuKernelHeaderValidFix:skl */ /* WaEnableGuCBootHashCheckNotSet:skl,bxt,kbl */ -if (IS_GEN (i915,9 )) +if (IS_GRAPHICS_VER (i915,9 )) attempts =3 ;else attempts =1 ;
drivers/gpu/drm/i915/gvt/cmd_parser.c +4 -4
@@ -1004,7 +1004,7 @@ static int cmd_reg_handler(struct parser_exec_state *s,* update reg values in it into vregs, so LRIs in workload with * inhibit context will restore with correct values */ -if (IS_GEN (s->engine->i915,9 ) && +if (IS_GRAPHICS_VER (s->engine->i915,9 ) &&intel_gvt_mmio_is_sr_in_ctx (gvt, offset) && !strncmp (cmd,"lri" ,3 )) { intel_gvt_hypervisor_read_gpa(s->vgpu,
@@ -1388,7 +1388,7 @@ static int gen8_check_mi_display_flip(struct parser_exec_state *s,if (!info->async_flip)return 0 ; -if (INTEL_GEN (s->engine->i915) >=9 ) { +if (GRAPHICS_VER (s->engine->i915) >=9 ) { stride =vgpu_vreg_t (s->vgpu, info->stride_reg) &GENMASK (9 ,0 ); tile = (vgpu_vreg_t (s->vgpu, info->ctrl_reg) &GENMASK (12 ,10 )) >>10 ;
@@ -1416,7 +1416,7 @@ static int gen8_update_plane_mmio_from_mi_display_flip(set_mask_bits (&vgpu_vreg_t (vgpu, info->surf_reg),GENMASK (31 ,12 ), info->surf_val <<12 ); -if (INTEL_GEN (dev_priv) >=9 ) { +if (GRAPHICS_VER (dev_priv) >=9 ) {set_mask_bits (&vgpu_vreg_t (vgpu, info->stride_reg),GENMASK (9 ,0 ), info->stride_val); set_mask_bits(&vgpu_vreg_t(vgpu, info->ctrl_reg), GENMASK(12, 10),
@@ -1444,7 +1444,7 @@ static int decode_mi_display_flip(struct parser_exec_state *s, {if (IS_BROADWELL (s->engine->i915))return gen8_decode_mi_display_flip (s, info); -if (INTEL_GEN (s->engine->i915) >=9 ) +if (GRAPHICS_VER (s->engine->i915) >=9 )return skl_decode_mi_display_flip (s, info);return -ENODEV ;
drivers/gpu/drm/i915/gvt/dmabuf.c +1 -1
@@ -223,7 +223,7 @@ static struct drm_i915_gem_object *vgpu_create_gem(struct drm_device *dev, obj->read_domains =I915_GEM_DOMAIN_GTT ; obj->write_domain =0 ; -if (INTEL_GEN (dev_priv) >=9 ) { +if (GRAPHICS_VER (dev_priv) >=9 ) {unsigned int tiling_mode =0 ;unsigned int stride =0 ;
drivers/gpu/drm/i915/gvt/fb_decoder.c +5 -5
@@ -151,7 +151,7 @@ static u32 intel_vgpu_get_stride(struct intel_vgpu *vgpu, int pipe,u32 stride_reg =vgpu_vreg_t (vgpu,DSPSTRIDE (pipe)) & stride_mask;u32 stride = stride_reg; -if (INTEL_GEN (dev_priv) >=9 ) { +if (GRAPHICS_VER (dev_priv) >=9 ) {switch (tiled) {case PLANE_CTL_TILED_LINEAR : stride = stride_reg *64 ;
@@ -215,7 +215,7 @@ int intel_vgpu_decode_primary_plane(struct intel_vgpu *vgpu,if (!plane->enabled)return -ENODEV ; -if (INTEL_GEN (dev_priv) >=9 ) { +if (GRAPHICS_VER (dev_priv) >=9 ) { plane->tiled = val &PLANE_CTL_TILED_MASK ; fmt = skl_format_to_drm( val & PLANE_CTL_FORMAT_MASK,
@@ -256,9 +256,9 @@ int intel_vgpu_decode_primary_plane(struct intel_vgpu *vgpu, } plane->stride =intel_vgpu_get_stride (vgpu, pipe, plane->tiled, - (INTEL_GEN (dev_priv) >=9 ) ? - (_PRI_PLANE_STRIDE_MASK >>6 ) : - _PRI_PLANE_STRIDE_MASK, plane->bpp); + (GRAPHICS_VER (dev_priv) >=9 ) ? + (_PRI_PLANE_STRIDE_MASK >>6 ) : + _PRI_PLANE_STRIDE_MASK, plane->bpp); plane->width = (vgpu_vreg_t (vgpu,PIPESRC (pipe)) & _PIPE_H_SRCSZ_MASK) >> _PIPE_H_SRCSZ_SHIFT;
drivers/gpu/drm/i915/gvt/gtt.c +2 -2
@@ -1061,12 +1061,12 @@ static bool vgpu_ips_enabled(struct intel_vgpu *vgpu) {struct drm_i915_private *dev_priv = vgpu->gvt->gt->i915; -if (INTEL_GEN (dev_priv) ==9 ||INTEL_GEN (dev_priv) ==10 ) { +if (IS_GRAPHICS_VER (dev_priv,9 ) ||IS_GRAPHICS_VER (dev_priv,10 )) {u32 ips =vgpu_vreg_t (vgpu,GEN8_GAMW_ECO_DEV_RW_IA ) &GAMW_ECO_ENABLE_64K_IPS_FIELD ;return ips ==GAMW_ECO_ENABLE_64K_IPS_FIELD ; - }else if (INTEL_GEN (dev_priv) >=11 ) { + }else if (GRAPHICS_VER (dev_priv) >=11 ) {/* 64K paging only controlled by IPS bit in PTE now. */ return true; }else
drivers/gpu/drm/i915/gvt/handlers.c +3 -3
@@ -220,7 +220,7 @@ static int gamw_echo_dev_rw_ia_write(struct intel_vgpu *vgpu, {u32 ips = (*(u32 *)p_data) &GAMW_ECO_ENABLE_64K_IPS_FIELD ; -if (INTEL_GEN (vgpu->gvt->gt->i915) <=10 ) { +if (GRAPHICS_VER (vgpu->gvt->gt->i915) <=10 ) {if (ips ==GAMW_ECO_ENABLE_64K_IPS_FIELD )gvt_dbg_core ("vgpu%d: ips enabled\n" , vgpu->id);else if (!ips)
@@ -286,7 +286,7 @@ static int mul_force_wake_write(struct intel_vgpu *vgpu, old =vgpu_vreg (vgpu, offset); new =CALC_MODE_MASK_REG (old, *(u32 *)p_data); -if (INTEL_GEN (vgpu->gvt->gt->i915) >=9 ) { +if (GRAPHICS_VER (vgpu->gvt->gt->i915) >=9 ) {switch (offset) {case FORCEWAKE_RENDER_GEN9_REG : ack_reg_offset =FORCEWAKE_ACK_RENDER_GEN9_REG ;
@@ -1174,7 +1174,7 @@ static int dp_aux_ch_ctl_mmio_write(struct intel_vgpu *vgpu,write_vreg (vgpu, offset, p_data, bytes); data =vgpu_vreg (vgpu, offset); -if ((INTEL_GEN (vgpu->gvt->gt->i915) >=9 ) +if ((GRAPHICS_VER (vgpu->gvt->gt->i915) >=9 ) && offset !=_REG_SKL_DP_AUX_CH_CTL (port_index)) {/* SKL DPB/C/D aux ctl register changed */ return 0 ;
drivers/gpu/drm/i915/gvt/interrupt.c +1 -1
@@ -585,7 +585,7 @@ static void gen8_init_irq(SET_BIT_INFO (irq,4 ,PRIMARY_C_FLIP_DONE ,INTEL_GVT_IRQ_INFO_DE_PIPE_C );SET_BIT_INFO (irq,5 ,SPRITE_C_FLIP_DONE ,INTEL_GVT_IRQ_INFO_DE_PIPE_C ); - }else if (INTEL_GEN (gvt->gt->i915) >=9 ) { + }else if (GRAPHICS_VER (gvt->gt->i915) >=9 ) {SET_BIT_INFO (irq,25 ,AUX_CHANNEL_B ,INTEL_GVT_IRQ_INFO_DE_PORT );SET_BIT_INFO (irq,26 ,AUX_CHANNEL_C ,INTEL_GVT_IRQ_INFO_DE_PORT );SET_BIT_INFO (irq,27 ,AUX_CHANNEL_D ,INTEL_GVT_IRQ_INFO_DE_PORT );
drivers/gpu/drm/i915/gvt/mmio_context.c +5 -5
@@ -373,7 +373,7 @@ static void handle_tlb_pending_event(struct intel_vgpu *vgpu,*/ fw =intel_uncore_forcewake_for_reg (uncore, reg,FW_REG_READ |FW_REG_WRITE ); -if (engine->id ==RCS0 &&INTEL_GEN (engine->i915) >=9 ) +if (engine->id ==RCS0 &&GRAPHICS_VER (engine->i915) >=9 ) fw |=FORCEWAKE_RENDER ;intel_uncore_forcewake_get (uncore, fw);
@@ -409,7 +409,7 @@ static void switch_mocs(struct intel_vgpu *pre, struct intel_vgpu *next,if (drm_WARN_ON (&engine->i915->drm, engine->id >=ARRAY_SIZE (regs)))return ; -if (engine->id ==RCS0 &&IS_GEN (engine->i915,9 )) +if (engine->id ==RCS0 &&IS_GRAPHICS_VER (engine->i915,9 ))return ;if (!pre && !gen9_render_mocs.initialized)
@@ -474,7 +474,7 @@ static void switch_mmio(struct intel_vgpu *pre,struct engine_mmio *mmio;u32 old_v, new_v; -if (INTEL_GEN (engine->i915) >=9 ) +if (GRAPHICS_VER (engine->i915) >=9 )switch_mocs (pre, next, engine); for (mmio = engine->i915->gvt->engine_mmio_list.mmio;
@@ -486,7 +486,7 @@ static void switch_mmio(struct intel_vgpu *pre,* state image on gen9, it's initialized by lri command and * save or restore with context together. */ -if (IS_GEN (engine->i915,9 ) && mmio->in_context) +if (IS_GRAPHICS_VER (engine->i915,9 ) && mmio->in_context)continue ;// save
@@ -580,7 +580,7 @@ void intel_gvt_init_engine_mmio_context(struct intel_gvt *gvt) {struct engine_mmio *mmio; -if (INTEL_GEN (gvt->gt->i915) >=9 ) { +if (GRAPHICS_VER (gvt->gt->i915) >=9 ) { gvt->engine_mmio_list.mmio = gen9_engine_mmio_list; gvt->engine_mmio_list.tlb_mmio_offset_list = gen8_tlb_mmio_offset_list; gvt->engine_mmio_list.tlb_mmio_offset_list_cnt =ARRAY_SIZE (gen8_tlb_mmio_offset_list);
drivers/gpu/drm/i915/gvt/scheduler.c +2 -2
@@ -364,7 +364,7 @@ static int copy_workload_to_ring_buffer(struct intel_vgpu_workload *workload)u32 *cs;int err; -if (IS_GEN (req->engine->i915,9 ) &&is_inhibit_context (req->context)) +if (IS_GRAPHICS_VER (req->engine->i915,9 ) &&is_inhibit_context (req->context))intel_vgpu_restore_inhibit_context (vgpu, req);/*
@@ -1148,7 +1148,7 @@ static void complete_current_workload(struct intel_gvt *gvt, int ring_id)static int workload_thread (void *arg) {struct intel_engine_cs *engine = arg; -const bool need_force_wake =INTEL_GEN (engine->i915) >=9 ; +const bool need_force_wake =GRAPHICS_VER (engine->i915) >=9 ;struct intel_gvt *gvt = engine->i915->gvt;struct intel_gvt_workload_scheduler *scheduler = &gvt->scheduler;struct intel_vgpu_workload *workload =NULL ;
drivers/gpu/drm/i915/gvt/vgpu.c +2 -2
@@ -149,10 +149,10 @@ int intel_gvt_init_vgpu_types(struct intel_gvt *gvt) gvt->types[i].avail_instance =min (low_avail / vgpu_types[i].low_mm, high_avail / vgpu_types[i].high_mm); -if (IS_GEN (gvt->gt->i915,8 )) +if (IS_GRAPHICS_VER (gvt->gt->i915,8 ))sprintf (gvt->types[i].name,"GVTg_V4_%s" , vgpu_types[i].name); -else if (IS_GEN (gvt->gt->i915,9 )) +else if (IS_GRAPHICS_VER (gvt->gt->i915,9 ))sprintf (gvt->types[i].name,"GVTg_V5_%s" , vgpu_types[i].name);
drivers/gpu/drm/i915/i915_cmd_parser.c +5 -5
@@ -946,8 +946,8 @@ int intel_engine_init_cmd_parser(struct intel_engine_cs *engine)int cmd_table_count;int ret; -if (!IS_GEN (engine->i915,7 ) && !(IS_GEN (engine->i915,9 ) && - engine->class ==COPY_ENGINE_CLASS )) +if (!IS_GRAPHICS_VER (engine->i915,7 ) && !(IS_GRAPHICS_VER (engine->i915,9 ) && + engine->class ==COPY_ENGINE_CLASS ))return 0 ;switch (engine->class) {
@@ -977,7 +977,7 @@ int intel_engine_init_cmd_parser(struct intel_engine_cs *engine)break ;case COPY_ENGINE_CLASS : engine->get_cmd_length_mask = gen7_blt_get_cmd_length_mask; -if (IS_GEN (engine->i915,9 )) { +if (IS_GRAPHICS_VER (engine->i915,9 )) { cmd_tables = gen9_blt_cmd_table; cmd_table_count =ARRAY_SIZE (gen9_blt_cmd_table); engine->get_cmd_length_mask =
@@ -993,7 +993,7 @@ int intel_engine_init_cmd_parser(struct intel_engine_cs *engine) cmd_table_count =ARRAY_SIZE (gen7_blt_cmd_table); } -if (IS_GEN (engine->i915,9 )) { +if (IS_GRAPHICS_VER (engine->i915,9 )) { engine->reg_tables = gen9_blt_reg_tables; engine->reg_table_count =ARRAY_SIZE (gen9_blt_reg_tables);
@@ -1521,7 +1521,7 @@ int intel_engine_cmd_parser(struct intel_engine_cs *engine,if (IS_HASWELL (engine->i915)) flags =MI_BATCH_NON_SECURE_HSW ; -GEM_BUG_ON (!IS_GEN_RANGE (engine->i915,6 ,7 )); +GEM_BUG_ON (!IS_GRAPHICS_RANGE (engine->i915,6 ,7 ));__gen6_emit_bb_start (batch_end, batch_addr, flags);
drivers/gpu/drm/i915/i915_debugfs.c +16 -16
@@ -350,7 +350,7 @@ static int i915_frequency_info(struct seq_file *m, void *unused) wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm); -if (IS_GEN (dev_priv,5 )) { +if (IS_GRAPHICS_VER (dev_priv,5 )) {u16 rgvswctl =intel_uncore_read16 (uncore,MEMSWCTL );u16 rgvstat =intel_uncore_read16 (uncore,MEMSTAT_ILK );
@@ -397,7 +397,7 @@ static int i915_frequency_info(struct seq_file *m, void *unused)seq_printf (m,"efficient (RPe) frequency: %d MHz\n" ,intel_gpu_freq (rps, rps->efficient_freq)); - }else if (INTEL_GEN (dev_priv) >=6 ) { + }else if (GRAPHICS_VER (dev_priv) >=6 ) {u32 rp_state_limits;u32 gt_perf_status;u32 rp_state_cap;
@@ -421,7 +421,7 @@ static int i915_frequency_info(struct seq_file *m, void *unused)intel_uncore_forcewake_get (&dev_priv->uncore,FORCEWAKE_ALL ); reqf =intel_uncore_read (&dev_priv->uncore,GEN6_RPNSWREQ ); -if (INTEL_GEN (dev_priv) >=9 ) +if (GRAPHICS_VER (dev_priv) >=9 ) reqf >>=23 ;else { reqf &= ~GEN6_TURBO_DISABLE ;
@@ -447,7 +447,7 @@ static int i915_frequency_info(struct seq_file *m, void *unused)intel_uncore_forcewake_put (&dev_priv->uncore,FORCEWAKE_ALL ); -if (INTEL_GEN (dev_priv) >=11 ) { +if (GRAPHICS_VER (dev_priv) >=11 ) { pm_ier =intel_uncore_read (&dev_priv->uncore,GEN11_GPM_WGBOXPERF_INTR_ENABLE ); pm_imr =intel_uncore_read (&dev_priv->uncore,GEN11_GPM_WGBOXPERF_INTR_MASK );/*
@@ -456,7 +456,7 @@ static int i915_frequency_info(struct seq_file *m, void *unused)*/ pm_isr =0 ; pm_iir =0 ; - }else if (INTEL_GEN (dev_priv) >=8 ) { + }else if (GRAPHICS_VER (dev_priv) >=8 ) { pm_ier =intel_uncore_read (&dev_priv->uncore,GEN8_GT_IER (2 )); pm_imr =intel_uncore_read (&dev_priv->uncore,GEN8_GT_IMR (2 )); pm_isr =intel_uncore_read (&dev_priv->uncore,GEN8_GT_ISR (2 ));
@@ -479,14 +479,14 @@ static int i915_frequency_info(struct seq_file *m, void *unused)seq_printf (m,"PM IER=0x%08x IMR=0x%08x, MASK=0x%08x\n" , pm_ier, pm_imr, pm_mask); -if (INTEL_GEN (dev_priv) <=10 ) +if (GRAPHICS_VER (dev_priv) <=10 )seq_printf (m,"PM ISR=0x%08x IIR=0x%08x\n" , pm_isr, pm_iir);seq_printf (m,"pm_intrmsk_mbz: 0x%08x\n" , rps->pm_intrmsk_mbz);seq_printf (m,"GT_PERF_STATUS: 0x%08x\n" , gt_perf_status);seq_printf (m,"Render p-state ratio: %d\n" , - (gt_perf_status & (INTEL_GEN (dev_priv) >=9 ?0x1ff00 :0xff00 )) >>8 ); + (gt_perf_status & (GRAPHICS_VER (dev_priv) >=9 ?0x1ff00 :0xff00 )) >>8 );seq_printf (m,"Render p-state VID: %d\n" , gt_perf_status &0xff ); seq_printf(m, "Render p-state limit: %d\n",
@@ -527,20 +527,20 @@ static int i915_frequency_info(struct seq_file *m, void *unused) max_freq = (IS_GEN9_LP (dev_priv) ? rp_state_cap >>0 : rp_state_cap >>16 ) &0xff ; max_freq *= (IS_GEN9_BC (dev_priv) || -INTEL_GEN (dev_priv) >=10 ?GEN9_FREQ_SCALER :1 ); +GRAPHICS_VER (dev_priv) >=10 ?GEN9_FREQ_SCALER :1 );seq_printf (m,"Lowest (RPN) frequency: %dMHz\n" ,intel_gpu_freq (rps, max_freq)); max_freq = (rp_state_cap &0xff00 ) >>8 ; max_freq *= (IS_GEN9_BC (dev_priv) || -INTEL_GEN (dev_priv) >=10 ?GEN9_FREQ_SCALER :1 ); +GRAPHICS_VER (dev_priv) >=10 ?GEN9_FREQ_SCALER :1 );seq_printf (m,"Nominal (RP1) frequency: %dMHz\n" ,intel_gpu_freq (rps, max_freq)); max_freq = (IS_GEN9_LP (dev_priv) ? rp_state_cap >>16 : rp_state_cap >>0 ) &0xff ; max_freq *= (IS_GEN9_BC (dev_priv) || -INTEL_GEN (dev_priv) >=10 ?GEN9_FREQ_SCALER :1 ); +GRAPHICS_VER (dev_priv) >=10 ?GEN9_FREQ_SCALER :1 );seq_printf (m,"Max non-overclocked (RP0) frequency: %dMHz\n" ,intel_gpu_freq (rps, max_freq)); seq_printf(m, "Max overclocked frequency: %dMHz\n",
@@ -611,12 +611,12 @@ static int i915_swizzle_info(struct seq_file *m, void *data)seq_puts (m,"L-shaped memory detected\n" );/* On BDW+, swizzling is not used. See detect_bit_6_swizzle() */ -if (INTEL_GEN (dev_priv) >=8 ||IS_VALLEYVIEW (dev_priv)) +if (GRAPHICS_VER (dev_priv) >=8 ||IS_VALLEYVIEW (dev_priv))return 0 ; wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm); -if (IS_GEN_RANGE (dev_priv,3 ,4 )) { +if (IS_GRAPHICS_RANGE (dev_priv,3 ,4 )) {seq_printf (m,"DDC = 0x%08x\n" ,intel_uncore_read (uncore,DCC )); seq_printf(m, "DDC2 = 0x%08x\n",
@@ -625,7 +625,7 @@ static int i915_swizzle_info(struct seq_file *m, void *data) intel_uncore_read16(uncore, C0DRB3));seq_printf (m,"C1DRB3 = 0x%04x\n" ,intel_uncore_read16 (uncore,C1DRB3 )); - }else if (INTEL_GEN (dev_priv) >=6 ) { + }else if (GRAPHICS_VER (dev_priv) >=6 ) {seq_printf (m,"MAD_DIMM_C0 = 0x%08x\n" ,intel_uncore_read (uncore,MAD_DIMM_C0 )); seq_printf(m, "MAD_DIMM_C1 = 0x%08x\n",
@@ -634,7 +634,7 @@ static int i915_swizzle_info(struct seq_file *m, void *data) intel_uncore_read(uncore, MAD_DIMM_C2));seq_printf (m,"TILECTL = 0x%08x\n" ,intel_uncore_read (uncore,TILECTL )); -if (INTEL_GEN (dev_priv) >=8 ) +if (GRAPHICS_VER (dev_priv) >=8 )seq_printf (m,"GAMTARBMODE = 0x%08x\n" ,intel_uncore_read (uncore,GAMTARBMODE ));else
@@ -945,7 +945,7 @@ static int i915_forcewake_open(struct inode *inode, struct file *file)atomic_inc (>->user_wakeref);intel_gt_pm_get (gt); -if (INTEL_GEN (i915) >=6 ) +if (GRAPHICS_VER (i915) >=6 )intel_uncore_forcewake_user_get (gt->uncore);return 0 ;
@@ -956,7 +956,7 @@ static int i915_forcewake_release(struct inode *inode, struct file *file)struct drm_i915_private *i915 = inode->i_private;struct intel_gt *gt = &i915->gt; -if (INTEL_GEN (i915) >=6 ) +if (GRAPHICS_VER (i915) >=6 )intel_uncore_forcewake_user_put (&i915->uncore);intel_gt_pm_put (gt);atomic_dec (>->user_wakeref);
drivers/gpu/drm/i915/i915_drv.c +10 -10
@@ -105,12 +105,12 @@ static int i915_get_bridge_dev(struct drm_i915_private *dev_priv)static int intel_alloc_mchbar_resource (struct drm_i915_private *dev_priv) { -int reg =INTEL_GEN (dev_priv) >=4 ?MCHBAR_I965 :MCHBAR_I915 ; +int reg =GRAPHICS_VER (dev_priv) >=4 ?MCHBAR_I965 :MCHBAR_I915 ;u32 temp_lo, temp_hi =0 ;
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/i915_gpu_error.c +40 -40
80 lines not on this page · raw message
drivers/gpu/drm/i915/i915_perf.c +22 -22
44 lines not on this page · raw message
drivers/gpu/drm/i915/intel_device_info.c +11 -11
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/selftests/i915_perf.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/selftests/i915_request.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/selftests/igt_spinner.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/selftests/intel_uncore.c +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Part of the diff is not shown here. View the raw message.
PATCH 12/12 drm/i915: split dgfx features from gen 12
In reply to Lucas De MarchiMake them independent so we can use DGFX_FEATURES more generically. For future platforms that do not use the GEN nomenclature we will define graphics, media and display separately, so we avoid setting graphics_ver with the GEN() macro.
--- drivers/gpu/drm/i915/i915_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/i915_pci.c +3 -3
@@ -907,8 +907,7 @@ static const struct intel_device_info rkl_info = { BIT(RCS0) | BIT(BCS0) | BIT(VECS0) | BIT(VCS0), }; -#define GEN12_DGFX_FEATURES \ - GEN12_FEATURES, \ +#define DGFX_FEATURES \ .memory_regions = REGION_SMEM | REGION_LMEM, \ .has_master_unit_irq = 1, \ .has_llc = 0, \
@@ -916,7 +915,8 @@ static const struct intel_device_info rkl_info = { .is_dgfx = 1 static const struct intel_device_info dg1_info __maybe_unused = { -GEN12_DGFX_FEATURES , +GEN12_FEATURES , +DGFX_FEATURES ,PLATFORM (INTEL_DG1 ), .pipe_mask =BIT (PIPE_A ) |BIT (PIPE_B ) |BIT (PIPE_C ) |BIT (PIPE_D ), .require_force_probe =1 ,
Signature · 6 lines
2.31.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Extend GEN renames to the rest of the driver (rev2)
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: drm/i915: Extend GEN renames to the rest of the driver (rev2)
URL : https://patchwork.freedesktop.org/series/88825/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 80f2d9b2707c drm/i915: rename display.version to display.ver -:46: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'x' - possible side-effects? #46: FILE: drivers/gpu/drm/i915/i915_pci.c:39: +#define GEN(x) .gen = (x), .gen_mask = BIT((x) - 1), .display.ver = (x)
total: 0 errors, 0 warnings, 1 checks, 32 lines checkedee9f103524db drm/i915: add macros for graphics and media versions -:40: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'i915' - possible side-effects? #40: FILE: drivers/gpu/drm/i915/i915_drv.h:1246:
+#define IS_GRAPHICS_RANGE(i915, from, until) \
+ (GRAPHICS_VER(i915) >= (from) && GRAPHICS_VER(i915) <= (until))
-:45: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'i915' - possible side-effects? #45: FILE: drivers/gpu/drm/i915/i915_drv.h:1251:
+#define IS_MEDIA_RANGE(i915, from, until) \
+ (MEDIA_VER(i915) >= (from) && MEDIA_VER(i915) <= (until))
-:61: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'x' - possible side-effects? #61: FILE: drivers/gpu/drm/i915/i915_pci.c:39:
+#define GEN(x) \
+ .gen_mask = BIT((x) - 1), \
+ .gen = (x), \
+ .graphics_ver = (x), \
+ .media_ver = (x), \
+ .display.ver = (x)
total: 0 errors, 0 warnings, 3 checks, 47 lines checked 6f23787ecba4 drm/i915/gt: replace gen use in intel_engine_cs fe5e3e94c2b1 drm/i915/selftests: replace unused mask with simple version e5492f832b05 drm/i915/selftests: eliminate use of gen_mask cfbe5560528d drm/i915: finish removal of gen_mask87f338a98fc3 drm/i915: eliminate remaining uses of intel_device_info->gen bb6756e3a46d drm/i915: finish removal of gen from intel_device_info b857f06983f3 drm/i915: add media and display versions to device_info print 3a85bfab0b35 drm/i915/display: use DISPLAY_VER() on remaining users 38c8ca70a088 drm/i915: replace IS_GEN and friends with IS_GRAPHICS_VER -:2809: WARNING:LONG_LINE: line length of 112 exceeds 100 columns #2809: FILE: drivers/gpu/drm/i915/gt/selftest_llc.c:47:
+ intel_gpu_freq(rps, gpu_freq * (GRAPHICS_VER(i915) >= 9 ? GEN9_FREQ_SCALER : 1)),
-:2818: WARNING:LONG_LINE: line length of 112 exceeds 100 columns #2818: FILE: drivers/gpu/drm/i915/gt/selftest_llc.c:57:
+ intel_gpu_freq(rps, gpu_freq * (GRAPHICS_VER(i915) >= 9 ? GEN9_FREQ_SCALER : 1)),
-:3537: WARNING:LONG_LINE: line length of 101 exceeds 100 columns #3537: FILE: drivers/gpu/drm/i915/i915_debugfs.c:489:
+ (gt_perf_status & (GRAPHICS_VER(dev_priv) >= 9 ? 0x1ff00 : 0xff00)) >> 8);
total: 0 errors, 3 warnings, 0 checks, 4187 lines checked e1b404b9b972 drm/i915: split dgfx features from gen 12
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Extend GEN renames to the rest of the driver (rev2)
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: drm/i915: Extend GEN renames to the rest of the driver (rev2)
URL : https://patchwork.freedesktop.org/series/88825/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. - +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_reset.c:1329:5: warning: context imbalance in 'intel_gt_reset_trylock' - different lock contexts for basic block +drivers/gpu/drm/i915/gt/intel_ring_submission.c:1203:24: warning: Using plain integer as NULL pointer +drivers/gpu/drm/i915/gvt/mmio.c:295:23: warning: memcpy with byte count of 279040 +drivers/gpu/drm/i915/i915_perf.c:1434:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/i915_perf.c:1488:15: warning: memset with byte count of 16777216 +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write8' - different lock contexts for basic block
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.DOCS: warning for drm/i915: Extend GEN renames to the rest of the driver (rev2)
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: drm/i915: Extend GEN renames to the rest of the driver (rev2)
URL : https://patchwork.freedesktop.org/series/88825/
State : warning
== Summary ==
$ make htmldocs 2>&1 > /dev/null | grep i915 ./drivers/gpu/drm/i915/gem/i915_gem_shrinker.c:102: warning: Function parameter or member 'ww' not described in 'i915_gem_shrink' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Excess function parameter 'trampoline' description in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Function parameter or member 'jump_whitelist' not described in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Function parameter or member 'shadow_map' not described in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Function parameter or member 'batch_map' not described in 'intel_engine_cmd_parser' ./drivers/gpu/drm/i915/i915_cmd_parser.c:1420: warning: Excess function parameter 'trampoline' description in 'intel_engine_cmd_parser'
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Extend GEN renames to the rest of the driver (rev2)
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: drm/i915: Extend GEN renames to the rest of the driver (rev2)
URL : https://patchwork.freedesktop.org/series/88825/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_9934 -> Patchwork_19900
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/index.html
Known issues
------------
Here are the changes found in Patchwork_19900 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@sync-fork-compute0:
- fi-tgl-y: NOTRUN -> [SKIP][1] ([fdo#109315] / [i915#2575]) +3 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/fi-tgl-y/igt@amdgpu/[email protected]
- fi-kbl-soraka: NOTRUN -> [SKIP][2] ([fdo#109271]) +6 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/fi-kbl-soraka/igt@amdgpu/[email protected]
* igt@fbdev@write:
- fi-tgl-y: [PASS][3] -> [DMESG-WARN][4] ([i915#402]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/fi-tgl-y/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/fi-tgl-y/igt@[email protected]
#### Possible fixes ####
* igt@debugfs_test@read_all_entries:
- fi-tgl-y: [DMESG-WARN][5] ([i915#1982] / [i915#402]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/fi-tgl-y/igt@debugfs_test@read_all_entries.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/fi-tgl-y/igt@debugfs_test@read_all_entries.html
* igt@gem_render_linear_blits@basic:
- fi-tgl-y: [DMESG-WARN][7] ([i915#402]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/fi-tgl-y/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/fi-tgl-y/igt@[email protected]
* igt@i915_module_load@reload:
- fi-tgl-y: [DMESG-WARN][9] ([i915#1982] / [k.org#205379]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/fi-tgl-y/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/fi-tgl-y/igt@[email protected]
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[k.org#205379]: https://bugzilla.kernel.org/show_bug.cgi?id=205379
Participating hosts (44 -> 40)
------------------------------
Missing (4): fi-ilk-m540 fi-bsw-cyan fi-bdw-samus fi-hsw-4200u
Build changes
-------------
* Linux: CI_DRM_9934 -> Patchwork_19900
CI-20190529: 20190529
CI_DRM_9934: 0607d7e72c8069ea03f991499b45791120a85036 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6061: 4aa7cd3ac664af4a7ca87d3fa8ed44208e4b0fa5 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_19900: e1b404b9b97278525c0ce19e10c4e1d88a95f07d @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
e1b404b9b972 drm/i915: split dgfx features from gen 12 38c8ca70a088 drm/i915: replace IS_GEN and friends with IS_GRAPHICS_VER 3a85bfab0b35 drm/i915/display: use DISPLAY_VER() on remaining users b857f06983f3 drm/i915: add media and display versions to device_info print bb6756e3a46d drm/i915: finish removal of gen from intel_device_info 87f338a98fc3 drm/i915: eliminate remaining uses of intel_device_info->gen cfbe5560528d drm/i915: finish removal of gen_maske5492f832b05 drm/i915/selftests: eliminate use of gen_mask fe5e3e94c2b1 drm/i915/selftests: replace unused mask with simple version 6f23787ecba4 drm/i915/gt: replace gen use in intel_engine_cs ee9f103524db drm/i915: add macros for graphics and media versions 80f2d9b2707c drm/i915: rename display.version to display.ver
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915: Extend GEN renames to the rest of the driver (rev2)
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: drm/i915: Extend GEN renames to the rest of the driver (rev2)
URL : https://patchwork.freedesktop.org/series/88825/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_9934_full -> Patchwork_19900_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_19900_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_19900_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_19900_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_plane@plane-position-covered-pipe-c-planes:
- shard-iclb: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-iclb3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb5/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_19900_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_persistence@legacy-engines-hostile-preempt:
- shard-snb: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#1099]) +3 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-snb5/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [PASS][4] -> [FAIL][5] ([i915#2846])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-glk2/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-glk7/igt@[email protected]
* igt@gem_exec_fair@basic-none@vecs0:
- shard-iclb: NOTRUN -> [FAIL][6] ([i915#2842]) +3 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@gem_exec_fair@[email protected]
- shard-kbl: NOTRUN -> [FAIL][7] ([i915#2842])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@bcs0:
- shard-tglb: [PASS][8] -> [FAIL][9] ([i915#2842]) +2 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-tglb8/igt@gem_exec_fair@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-tglb2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_params@no-vebox:
- shard-skl: NOTRUN -> [SKIP][10] ([fdo#109271]) +106 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl1/igt@[email protected]
* igt@gem_exec_reloc@basic-wide-active@rcs0:
- shard-kbl: NOTRUN -> [FAIL][11] ([i915#2389]) +4 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl7/igt@gem_exec_reloc@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-kbl: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#2190])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl6/igt@[email protected]
* igt@gem_render_copy@x-tiled-to-vebox-y-tiled:
- shard-iclb: NOTRUN -> [SKIP][13] ([i915#768])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@gem_softpin@noreloc-s3:
- shard-glk: [PASS][14] -> [INCOMPLETE][15] ([i915#2199] / [i915#2405])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-glk4/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-glk1/igt@[email protected]
* igt@gem_userptr_blits@coherency-sync:
- shard-iclb: NOTRUN -> [SKIP][16] ([fdo#109290])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@gen9_exec_parse@basic-rejected-ctx-param:
- shard-iclb: NOTRUN -> [SKIP][17] ([fdo#112306])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@gen9_exec_parse@bb-large:
- shard-kbl: NOTRUN -> [FAIL][18] ([i915#3296])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl7/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-dp:
- shard-kbl: NOTRUN -> [SKIP][19] ([fdo#109271] / [i915#1937])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl6/igt@i915_pm_lpsp@[email protected]
* igt@i915_query@query-topology-unsupported:
- shard-iclb: NOTRUN -> [SKIP][20] ([fdo#109302])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- shard-snb: [PASS][21] -> [INCOMPLETE][22] ([i915#2782])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-snb2/igt@i915_selftest@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-snb7/igt@i915_selftest@[email protected]
* igt@i915_suspend@fence-restore-untiled:
- shard-skl: [PASS][23] -> [INCOMPLETE][24] ([i915#146] / [i915#198])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl4/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl5/igt@[email protected]
* igt@kms_big_fb@linear-32bpp-rotate-90:
- shard-iclb: NOTRUN -> [SKIP][25] ([fdo#110725] / [fdo#111614])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@kms_big_fb@yf-tiled-64bpp-rotate-90:
- shard-iclb: NOTRUN -> [SKIP][26] ([fdo#110723])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@kms_chamelium@dp-mode-timings:
- shard-iclb: NOTRUN -> [SKIP][27] ([fdo#109284] / [fdo#111827]) +4 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@kms_chamelium@hdmi-audio-edid:
- shard-kbl: NOTRUN -> [SKIP][28] ([fdo#109271] / [fdo#111827]) +12 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl1/igt@[email protected]
* igt@kms_chamelium@vga-hpd:
- shard-skl: NOTRUN -> [SKIP][29] ([fdo#109271] / [fdo#111827]) +10 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl7/igt@[email protected]
* igt@kms_color_chamelium@pipe-c-ctm-max:
- shard-apl: NOTRUN -> [SKIP][30] ([fdo#109271] / [fdo#111827]) +2 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-apl6/igt@[email protected]
* igt@kms_color_chamelium@pipe-c-ctm-red-to-blue:
- shard-snb: NOTRUN -> [SKIP][31] ([fdo#109271] / [fdo#111827]) +12 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-snb2/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][32] ([i915#1319])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-apl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-512x512-random:
- shard-apl: NOTRUN -> [SKIP][33] ([fdo#109271]) +39 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-apl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-suspend:
- shard-kbl: NOTRUN -> [SKIP][34] ([fdo#109271]) +122 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl6/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size:
- shard-iclb: NOTRUN -> [SKIP][35] ([fdo#109274] / [fdo#109278])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@flip-vs-cursor-busy-crc-atomic:
- shard-skl: NOTRUN -> [FAIL][36] ([i915#2346])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl2/igt@[email protected]
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: NOTRUN -> [SKIP][37] ([fdo#109349])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-mmap-gtt-untiled:
- shard-glk: [PASS][38] -> [FAIL][39] ([i915#52] / [i915#54]) +2 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-glk6/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-glk8/igt@[email protected]
* igt@kms_flip@2x-blocking-absolute-wf_vblank:
- shard-iclb: NOTRUN -> [SKIP][40] ([fdo#109274])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@kms_flip@2x-blocking-absolute-wf_vblank.html
* igt@kms_flip@2x-plain-flip-ts-check-interruptible:
- shard-tglb: NOTRUN -> [SKIP][41] ([fdo#111825]) +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-tglb1/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1:
- shard-skl: [PASS][42] -> [FAIL][43] ([i915#79])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl4/igt@kms_flip@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl5/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check@c-edp1:
- shard-skl: [PASS][44] -> [FAIL][45] ([i915#2122])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl8/igt@kms_flip@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl10/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-kbl: NOTRUN -> [SKIP][46] ([fdo#109271] / [i915#2672])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl7/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile:
- shard-apl: NOTRUN -> [FAIL][47] ([i915#2641])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-apl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-indfb-pgflip-blt:
- shard-iclb: NOTRUN -> [SKIP][48] ([fdo#109280]) +6 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-apl: [PASS][49] -> [DMESG-WARN][50] ([i915#180])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-apl2/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-apl8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render:
- shard-snb: NOTRUN -> [SKIP][51] ([fdo#109271]) +212 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-snb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
* igt@kms_hdr@bpc-switch:
- shard-skl: [PASS][52] -> [FAIL][53] ([i915#1188])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl4/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl4/igt@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-skl: NOTRUN -> [FAIL][54] ([i915#1188])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl2/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-d:
- shard-kbl: NOTRUN -> [SKIP][55] ([fdo#109271] / [i915#533]) +1 similar issue
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl2/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-d:
- shard-skl: NOTRUN -> [SKIP][56] ([fdo#109271] / [i915#533]) +2 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl5/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes:
- shard-apl: [PASS][57] -> [DMESG-WARN][58] ([i915#180] / [i915#533])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-apl2/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-apl1/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-kbl: [PASS][59] -> [DMESG-WARN][60] ([i915#180]) +3 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl2/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl7/igt@[email protected]
- shard-skl: [PASS][61] -> [INCOMPLETE][62] ([i915#198] / [i915#1982])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl6/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-transparent-fb:
- shard-kbl: NOTRUN -> [FAIL][63] ([i915#265])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: [PASS][64] -> [FAIL][65] ([fdo#108145] / [i915#265])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl1/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
- shard-skl: NOTRUN -> [FAIL][66] ([fdo#108145] / [i915#265])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-opaque-fb:
- shard-kbl: NOTRUN -> [FAIL][67] ([fdo#108145] / [i915#265])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl1/igt@[email protected]
* igt@kms_psr2_sf@cursor-plane-update-sf:
- shard-apl: NOTRUN -> [SKIP][68] ([fdo#109271] / [i915#658])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-apl6/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-3:
- shard-skl: NOTRUN -> [SKIP][69] ([fdo#109271] / [i915#658]) +1 similar issue
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl4/igt@[email protected]
* igt@kms_psr2_sf@plane-move-sf-dmg-area-3:
- shard-iclb: NOTRUN -> [SKIP][70] ([i915#658])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-5:
- shard-kbl: NOTRUN -> [SKIP][71] ([fdo#109271] / [i915#658]) +2 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl7/igt@[email protected]
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [PASS][72] -> [SKIP][73] ([fdo#109441]) +1 similar issue
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb5/igt@kms_psr@psr2_no_drrs.html
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: NOTRUN -> [SKIP][74] ([fdo#109441])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_vblank@pipe-d-ts-continuation-modeset-rpm:
- shard-iclb: NOTRUN -> [SKIP][75] ([fdo#109278]) +6 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@nouveau_crc@pipe-d-ctx-flip-skip-current-frame:
- shard-iclb: NOTRUN -> [SKIP][76] ([fdo#109278] / [i915#2530])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@perf@polling-small-buf:
- shard-skl: [PASS][77] -> [FAIL][78] ([i915#1722])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl7/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl1/igt@[email protected]
* igt@prime_udl:
- shard-iclb: NOTRUN -> [SKIP][79] ([fdo#109291])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@prime_udl.html
* igt@sysfs_clients@create:
- shard-skl: NOTRUN -> [SKIP][80] ([fdo#109271] / [i915#2994])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl2/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][81] ([i915#2994])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
* igt@sysfs_clients@recycle:
- shard-apl: NOTRUN -> [SKIP][82] ([fdo#109271] / [i915#2994])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-apl6/igt@[email protected]
* igt@sysfs_clients@sema-10:
- shard-kbl: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#2994]) +1 similar issue
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl7/igt@[email protected]
#### Possible fixes ####
* igt@gem_create@create-clear:
- shard-glk: [FAIL][84] ([i915#1888] / [i915#3160]) -> [PASS][85]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-glk6/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-glk8/igt@[email protected]
* igt@gem_ctx_isolation@preservation-s3@vecs0:
- shard-skl: [INCOMPLETE][86] ([i915#198]) -> [PASS][87]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl10/igt@gem_ctx_isolation@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl7/igt@gem_ctx_isolation@[email protected]
* igt@gem_ctx_ringsize@active@bcs0:
- shard-skl: [INCOMPLETE][88] ([i915#3316]) -> [PASS][89]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl1/igt@gem_ctx_ringsize@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl7/igt@gem_ctx_ringsize@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-kbl: [FAIL][90] ([i915#2846]) -> [PASS][91]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl3/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl6/igt@[email protected]
* igt@gem_exec_fair@basic-pace@vcs0:
- shard-kbl: [SKIP][92] ([fdo#109271]) -> [PASS][93]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl6/igt@gem_exec_fair@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl4/igt@gem_exec_fair@[email protected]
- shard-tglb: [FAIL][94] ([i915#2842]) -> [PASS][95]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-tglb8/igt@gem_exec_fair@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-tglb2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: [FAIL][96] ([i915#2842]) -> [PASS][97] +1 similar issue
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-glk3/igt@gem_exec_fair@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-glk7/igt@gem_exec_fair@[email protected]
* igt@gem_mmap_gtt@cpuset-big-copy-xy:
- shard-iclb: [FAIL][98] ([i915#307]) -> [PASS][99]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-iclb7/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb1/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-suspend:
- shard-skl: [INCOMPLETE][100] ([i915#2405] / [i915#300]) -> [PASS][101]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl9/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl4/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-iclb: [INCOMPLETE][102] ([i915#1185]) -> [PASS][103]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-iclb3/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb6/igt@[email protected]
- shard-kbl: [INCOMPLETE][104] ([i915#155] / [i915#180] / [i915#636]) -> [PASS][105]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl7/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl2/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-kbl: [DMESG-WARN][106] ([i915#180]) -> [PASS][107] +8 similar issues
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl6/igt@kms_flip@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl4/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible@c-edp1:
- shard-skl: [FAIL][108] ([i915#2122]) -> [PASS][109]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl2/igt@kms_flip@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl2/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@psr-suspend:
- shard-skl: [INCOMPLETE][110] ([i915#123]) -> [PASS][111]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl8/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl5/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [FAIL][112] ([fdo#108145] / [i915#265]) -> [PASS][113]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl7/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl1/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-4:
- shard-tglb: [DMESG-WARN][114] ([i915#402]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-tglb3/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-tglb5/igt@[email protected]
* igt@kms_psr@psr2_sprite_mmap_cpu:
- shard-iclb: [SKIP][116] ([fdo#109441]) -> [PASS][117] +1 similar issue
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-iclb7/igt@kms_psr@psr2_sprite_mmap_cpu.html
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_cpu.html
* igt@perf@polling-parameterized:
- shard-skl: [FAIL][118] ([i915#1542]) -> [PASS][119]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl6/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl8/igt@[email protected]
* igt@sysfs_heartbeat_interval@mixed@bcs0:
- shard-skl: [FAIL][120] ([i915#1731]) -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-skl5/igt@sysfs_heartbeat_interval@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-skl2/igt@sysfs_heartbeat_interval@[email protected]
#### Warnings ####
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][122] ([i915#1804] / [i915#2684]) -> [WARN][123] ([i915#2681] / [i915#2684])
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-iclb7/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb1/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][124] ([i915#2684]) -> [WARN][125] ([i915#2681] / [i915#2684])
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-iclb2/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb8/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-1:
- shard-iclb: [SKIP][126] ([i915#2920]) -> [SKIP][127] ([i915#658]) +1 similar issue
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-iclb2/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb5/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-3:
- shard-iclb: [SKIP][128] ([i915#658]) -> [SKIP][129] ([i915#2920])
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-iclb7/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-iclb2/igt@[email protected]
* igt@perf_pmu@rc6-suspend:
- shard-kbl: [INCOMPLETE][130] ([i915#155] / [i915#794]) -> [INCOMPLETE][131] ([i915#794])
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl3/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl3/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][132], [FAIL][133], [FAIL][134], [FAIL][135], [FAIL][136], [FAIL][137], [FAIL][138], [FAIL][139], [FAIL][140]) ([fdo#109271] / [i915#180] / [i915#1814] / [i915#2505] / [i915#3002] / [i915#92]) -> ([FAIL][141], [FAIL][142], [FAIL][143], [FAIL][144], [FAIL][145], [FAIL][146], [FAIL][147]) ([i915#180] / [i915#1814] / [i915#2505] / [i915#3002] / [i915#602])
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl6/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl7/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl1/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl7/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl7/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl7/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl6/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl7/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9934/shard-kbl6/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl7/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl7/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl6/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl6/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl7/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl6/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/shard-kbl2/igt@[email protected]
- shard-apl: ([FAIL][148], [FAIL][149]) ([i915#3002]) -> ([FAIL][150], [FAIL][151], [FAIL][152]) ([fdo#109271] / [i915#1814] / [i915#3002] / [i915#62])
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_99
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19900/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx