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/amdgpu: Move XCP_INST_MASK amdgpu_xcp.h

Move the common macro for xcp manger to amdgpu_xcp.h

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Hawking Zhang and committed by
Alex Deucher
7cd88efd dcfe45bd

+3 -3
+3
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
··· 41 41 42 42 #define AMDGPU_XCP_OPS_KFD (1 << 0) 43 43 44 + #define XCP_INST_MASK(num_inst, xcp_id) \ 45 + (num_inst ? GENMASK(num_inst - 1, 0) << (xcp_id * num_inst) : 0) 46 + 44 47 struct amdgpu_fpriv; 45 48 46 49 enum AMDGPU_XCP_IP_BLOCK {
-3
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c
··· 31 31 #include "sdma_v4_4_2.h" 32 32 #include "amdgpu_ip.h" 33 33 34 - #define XCP_INST_MASK(num_inst, xcp_id) \ 35 - (num_inst ? GENMASK(num_inst - 1, 0) << (xcp_id * num_inst) : 0) 36 - 37 34 void aqua_vanjaram_doorbell_index_init(struct amdgpu_device *adev) 38 35 { 39 36 int i;