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

drm/amdgpu: continue cleaning up sid.h and si_enums.h

Remove more duplicated defines and move some in sid.h for coherence with
CIK.

Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Alexandre Demers and committed by
Alex Deucher
160d3d39 3470f80b

+14 -92
+1 -89
drivers/gpu/drm/amd/amdgpu/si_enums.h
··· 23 23 #ifndef SI_ENUMS_H 24 24 #define SI_ENUMS_H 25 25 26 - #define VBLANK_ACK (1 << 4) 27 - #define VLINE_ACK (1 << 4) 28 - 29 - #define CURSOR_WIDTH 64 30 - #define CURSOR_HEIGHT 64 31 - 32 26 #define PRIORITY_MARK_MASK 0x7fff 33 27 #define PRIORITY_OFF (1 << 16) 34 28 #define PRIORITY_ALWAYS_ON (1 << 20) 35 29 36 - #define GRPH_ENDIAN_NONE 0 37 - #define GRPH_ENDIAN_8IN16 1 38 - #define GRPH_ENDIAN_8IN32 2 39 - #define GRPH_ENDIAN_8IN64 3 40 - #define GRPH_RED_CROSSBAR(x) (((x) & 0x3) << 4) 41 - #define GRPH_RED_SEL_R 0 42 - #define GRPH_RED_SEL_G 1 43 - #define GRPH_RED_SEL_B 2 44 - #define GRPH_RED_SEL_A 3 45 - #define GRPH_GREEN_CROSSBAR(x) (((x) & 0x3) << 6) 46 - #define GRPH_GREEN_SEL_G 0 47 - #define GRPH_GREEN_SEL_B 1 48 - #define GRPH_GREEN_SEL_A 2 49 - #define GRPH_GREEN_SEL_R 3 50 - #define GRPH_BLUE_CROSSBAR(x) (((x) & 0x3) << 8) 51 - #define GRPH_BLUE_SEL_B 0 52 - #define GRPH_BLUE_SEL_A 1 53 - #define GRPH_BLUE_SEL_R 2 54 - #define GRPH_BLUE_SEL_G 3 55 - #define GRPH_ALPHA_CROSSBAR(x) (((x) & 0x3) << 10) 56 - #define GRPH_ALPHA_SEL_A 0 57 - #define GRPH_ALPHA_SEL_R 1 58 - #define GRPH_ALPHA_SEL_G 2 59 - #define GRPH_ALPHA_SEL_B 3 60 - 61 - #define GRPH_DEPTH_8BPP 0 62 - #define GRPH_DEPTH_16BPP 1 63 - #define GRPH_DEPTH_32BPP 2 64 - 65 - #define GRPH_FORMAT_INDEXED 0 66 - #define GRPH_FORMAT_ARGB1555 0 67 - #define GRPH_FORMAT_ARGB565 1 68 - #define GRPH_FORMAT_ARGB4444 2 69 - #define GRPH_FORMAT_AI88 3 70 - #define GRPH_FORMAT_MONO16 4 71 - #define GRPH_FORMAT_BGRA5551 5 72 - #define GRPH_FORMAT_ARGB8888 0 73 - #define GRPH_FORMAT_ARGB2101010 1 74 - #define GRPH_FORMAT_32BPP_DIG 2 75 - #define GRPH_FORMAT_8B_ARGB2101010 3 76 - #define GRPH_FORMAT_BGRA1010102 4 77 - #define GRPH_FORMAT_8B_BGRA1010102 5 78 - #define GRPH_FORMAT_RGB111110 6 79 - #define GRPH_FORMAT_BGR101111 7 80 - 81 - #define GRPH_ARRAY_LINEAR_GENERAL 0 82 - #define GRPH_ARRAY_LINEAR_ALIGNED 1 83 - #define GRPH_ARRAY_1D_TILED_THIN1 2 84 - #define GRPH_ARRAY_2D_TILED_THIN1 4 85 - 86 - #define CURSOR_EN (1 << 0) 87 - #define CURSOR_MODE(x) (((x) & 0x3) << 8) 88 - #define CURSOR_MONO 0 89 - #define CURSOR_24_1 1 90 - #define CURSOR_24_8_PRE_MULT 2 91 - #define CURSOR_24_8_UNPRE_MULT 3 92 - #define CURSOR_2X_MAGNIFY (1 << 16) 93 - #define CURSOR_FORCE_MC_ON (1 << 20) 94 - #define CURSOR_URGENT_CONTROL(x) (((x) & 0x7) << 24) 95 - #define CURSOR_URGENT_ALWAYS 0 96 - #define CURSOR_URGENT_1_8 1 97 - #define CURSOR_URGENT_1_4 2 98 - #define CURSOR_URGENT_3_8 3 99 - #define CURSOR_URGENT_1_2 4 100 - #define CURSOR_UPDATE_PENDING (1 << 0) 101 - #define CURSOR_UPDATE_TAKEN (1 << 1) 102 - #define CURSOR_UPDATE_LOCK (1 << 16) 103 - #define CURSOR_DISABLE_MULTIPLE_UPDATE (1 << 24) 104 - 105 - 106 - #define ES_AND_GS_AUTO 3 107 - #define RADEON_PACKET_TYPE3 3 108 - #define CE_PARTITION_BASE 3 109 - #define BUF_SWAP_32BIT (2 << 16) 110 - 111 30 #define GFX_POWER_STATUS (1 << 1) 112 31 #define GFX_CLOCK_STATUS (1 << 2) 113 32 #define GFX_LS_STATUS (1 << 3) 114 - #define RLC_BUSY_STATUS (1 << 0) 115 33 34 + #define RLC_BUSY_STATUS (1 << 0) 116 35 #define RLC_PUD(x) ((x) << 0) 117 36 #define RLC_PUD_MASK (0xff << 0) 118 37 #define RLC_PDD(x) ((x) << 8) ··· 40 121 #define RLC_TTPD_MASK (0xff << 16) 41 122 #define RLC_MSD(x) ((x) << 24) 42 123 #define RLC_MSD_MASK (0xff << 24) 43 - #define WRITE_DATA_ENGINE_SEL(x) ((x) << 30) 44 - #define WRITE_DATA_DST_SEL(x) ((x) << 8) 45 - #define EVENT_TYPE(x) ((x) << 0) 46 - #define EVENT_INDEX(x) ((x) << 8) 47 - #define WAIT_REG_MEM_MEM_SPACE(x) ((x) << 4) 48 - #define WAIT_REG_MEM_FUNCTION(x) ((x) << 0) 49 - #define WAIT_REG_MEM_ENGINE(x) ((x) << 8) 50 124 51 125 #define RLC_SAVE_AND_RESTORE_STARTING_OFFSET 0x90 52 126 #define RLC_CLEAR_STATE_DESCRIPTOR_OFFSET 0x3D
+13 -3
drivers/gpu/drm/amd/amdgpu/sid.h
··· 1592 1592 #define DMA_PACKET_POLL_REG_MEM 0xe 1593 1593 #define DMA_PACKET_NOP 0xf 1594 1594 1595 + /* VCE */ 1595 1596 #define VCE_STATUS 0x20004 1596 1597 #define VCE_VCPU_CNTL 0x20014 1597 1598 #define VCE_CLK_EN (1 << 0) ··· 1786 1785 #define EVERGREEN_VIEWPORT_SIZE 0x1b5d 1787 1786 #define EVERGREEN_DESKTOP_HEIGHT 0x1ac1 1788 1787 1788 + #define GRPH_ARRAY_LINEAR_GENERAL 0 1789 + #define GRPH_ARRAY_LINEAR_ALIGNED 1 1790 + #define GRPH_ARRAY_1D_TILED_THIN1 2 1791 + #define GRPH_ARRAY_2D_TILED_THIN1 4 1792 + 1793 + #define ES_AND_GS_AUTO 3 1794 + #define BUF_SWAP_32BIT (2 << 16) 1795 + 1789 1796 /* CUR blocks at 0x6998, 0x7598, 0x10198, 0x10d98, 0x11998, 0x12598 */ 1790 1797 #define EVERGREEN_CUR_CONTROL 0x1a66 1791 1798 # define EVERGREEN_CURSOR_EN (1 << 0) ··· 1908 1899 #define GRPH_FORMAT_RGB111110 6 1909 1900 #define GRPH_FORMAT_BGR101111 7 1910 1901 1911 - #define ES_AND_GS_AUTO 3 1912 - #define BUF_SWAP_32BIT (2 << 16) 1913 - 1902 + #define GRPH_ENDIAN_NONE 0 1903 + #define GRPH_ENDIAN_8IN16 1 1904 + #define GRPH_ENDIAN_8IN32 2 1905 + #define GRPH_ENDIAN_8IN64 3 1914 1906 #define GRPH_RED_SEL_R 0 1915 1907 #define GRPH_RED_SEL_G 1 1916 1908 #define GRPH_RED_SEL_B 2