tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: 0849b9f7453e685727c7dc47bb4f6fb76a7fb94d
commit: 46ca45044aa5891ff3c7cdfbdd2f034c05f00060 [13810/14339] UPSTREAM: drm/amdgpu:
Enable VCN for Beige Goby
config: x86_64-randconfig-m001-20210622 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:94 vcn_v3_0_early_init() warn: inconsistent
indenting
vim +94 drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
77
78 /**
79 * vcn_v3_0_early_init - set function pointers
80 *
81 * @handle: amdgpu_device pointer
82 *
83 * Set ring and irq function pointers
84 */
85 static int vcn_v3_0_early_init(void *handle)
86 {
87 struct amdgpu_device *adev = (struct amdgpu_device *)handle;
88
89 if (amdgpu_sriov_vf(adev)) {
90 adev->vcn.num_vcn_inst = VCN_INSTANCES_SIENNA_CICHLID;
91 adev->vcn.harvest_config = 0;
92 adev->vcn.num_enc_rings = 1;
93
94 if (adev->asic_type == CHIP_BEIGE_GOBY) {
95 adev->vcn.num_vcn_inst = 1;
96 adev->vcn.num_enc_rings = 0;
97 }
98
99 } else {
100 if (adev->asic_type == CHIP_SIENNA_CICHLID) {
101 u32 harvest;
102 int i;
103
104 adev->vcn.num_vcn_inst = VCN_INSTANCES_SIENNA_CICHLID;
105 for (i = 0; i < adev->vcn.num_vcn_inst; i++) {
106 harvest = RREG32_SOC15(VCN, i, mmCC_UVD_HARVESTING);
107 if (harvest & CC_UVD_HARVESTING__UVD_DISABLE_MASK)
108 adev->vcn.harvest_config |= 1 << i;
109 }
110
111 if (adev->vcn.harvest_config == (AMDGPU_VCN_HARVEST_VCN0 |
112 AMDGPU_VCN_HARVEST_VCN1))
113 /* both instances are harvested, disable the block */
114 return -ENOENT;
115 } else
116 adev->vcn.num_vcn_inst = 1;
117
118 if (adev->asic_type == CHIP_BEIGE_GOBY)
119 adev->vcn.num_enc_rings = 0;
120 else
121 adev->vcn.num_enc_rings = 2;
122 }
123
124 vcn_v3_0_set_dec_ring_funcs(adev);
125 vcn_v3_0_set_enc_ring_funcs(adev);
126 vcn_v3_0_set_irq_funcs(adev);
127
128 return 0;
129 }
130
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org