Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/intel: add shared step.h and switch i915 to use it

As the first step towards using shared definitions for step name
enumerations, add shared include/drm/intel/step.h and switch i915 to use
it.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://patch.msgid.link/e76412a316ddff44dc46633d80e9caa5df54ed6b.1773663208.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+64 -55
+2 -55
drivers/gpu/drm/i915/intel_step.h
··· 8 8 9 9 #include <linux/types.h> 10 10 11 + #include <drm/intel/step.h> 12 + 11 13 struct drm_i915_private; 12 14 13 15 struct intel_step_info { ··· 19 17 */ 20 18 u8 graphics_step; /* Represents the compute tile on Xe_HPC */ 21 19 u8 media_step; 22 - }; 23 - 24 - #define STEP_ENUM_VAL(name) STEP_##name, 25 - 26 - #define STEP_NAME_LIST(func) \ 27 - func(A0) \ 28 - func(A1) \ 29 - func(A2) \ 30 - func(A3) \ 31 - func(B0) \ 32 - func(B1) \ 33 - func(B2) \ 34 - func(B3) \ 35 - func(C0) \ 36 - func(C1) \ 37 - func(C2) \ 38 - func(C3) \ 39 - func(D0) \ 40 - func(D1) \ 41 - func(D2) \ 42 - func(D3) \ 43 - func(E0) \ 44 - func(E1) \ 45 - func(E2) \ 46 - func(E3) \ 47 - func(F0) \ 48 - func(F1) \ 49 - func(F2) \ 50 - func(F3) \ 51 - func(G0) \ 52 - func(G1) \ 53 - func(G2) \ 54 - func(G3) \ 55 - func(H0) \ 56 - func(H1) \ 57 - func(H2) \ 58 - func(H3) \ 59 - func(I0) \ 60 - func(I1) \ 61 - func(I2) \ 62 - func(I3) \ 63 - func(J0) \ 64 - func(J1) \ 65 - func(J2) \ 66 - func(J3) 67 - 68 - /* 69 - * Symbolic steppings that do not match the hardware. These are valid both as gt 70 - * and display steppings as symbolic names. 71 - */ 72 - enum intel_step { 73 - STEP_NONE = 0, 74 - STEP_NAME_LIST(STEP_ENUM_VAL) 75 - STEP_FUTURE, 76 - STEP_FOREVER, 77 20 }; 78 21 79 22 void intel_step_init(struct drm_i915_private *i915);
+62
include/drm/intel/step.h
··· 1 + /* SPDX-License-Identifier: MIT */ 2 + /* Copyright © 2026 Intel Corporation */ 3 + 4 + #ifndef __STEP_H__ 5 + #define __STEP_H__ 6 + 7 + #define STEP_ENUM_VAL(name) STEP_##name, 8 + 9 + #define STEP_NAME_LIST(func) \ 10 + func(A0) \ 11 + func(A1) \ 12 + func(A2) \ 13 + func(A3) \ 14 + func(B0) \ 15 + func(B1) \ 16 + func(B2) \ 17 + func(B3) \ 18 + func(C0) \ 19 + func(C1) \ 20 + func(C2) \ 21 + func(C3) \ 22 + func(D0) \ 23 + func(D1) \ 24 + func(D2) \ 25 + func(D3) \ 26 + func(E0) \ 27 + func(E1) \ 28 + func(E2) \ 29 + func(E3) \ 30 + func(F0) \ 31 + func(F1) \ 32 + func(F2) \ 33 + func(F3) \ 34 + func(G0) \ 35 + func(G1) \ 36 + func(G2) \ 37 + func(G3) \ 38 + func(H0) \ 39 + func(H1) \ 40 + func(H2) \ 41 + func(H3) \ 42 + func(I0) \ 43 + func(I1) \ 44 + func(I2) \ 45 + func(I3) \ 46 + func(J0) \ 47 + func(J1) \ 48 + func(J2) \ 49 + func(J3) 50 + 51 + /* 52 + * Symbolic steppings that do not match the hardware. These are valid both as gt 53 + * and display steppings as symbolic names. 54 + */ 55 + enum intel_step { 56 + STEP_NONE = 0, 57 + STEP_NAME_LIST(STEP_ENUM_VAL) 58 + STEP_FUTURE, 59 + STEP_FOREVER, 60 + }; 61 + 62 + #endif /* __STEP_H__ */