drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:327:5: warning: no previous prototype for 'kgd_gfx_v9_hiq_mqd_load'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 35cd89d5a658dc26687a7a6909d35fee19a6b173 drm/amdkfd: use kiq to load the mqd of hiq queue for gfx v9 (v6)
date: 5 months ago
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 35cd89d5a658dc26687a7a6909d35fee19a6b173
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:55:5: warning: no previous prototype for 'kgd_gfx_v9_get_tile_config' [-Wmissing-prototypes]
55 | int kgd_gfx_v9_get_tile_config(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:120:6: warning: no previous prototype for 'kgd_gfx_v9_program_sh_mem_settings' [-Wmissing-prototypes]
120 | void kgd_gfx_v9_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:137:5: warning: no previous prototype for 'kgd_gfx_v9_set_pasid_vmid_mapping' [-Wmissing-prototypes]
137 | int kgd_gfx_v9_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:198:5: warning: no previous prototype for 'kgd_gfx_v9_init_interrupts' [-Wmissing-prototypes]
198 | int kgd_gfx_v9_init_interrupts(struct kgd_dev *kgd, uint32_t pipe_id)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:247:5: warning: no previous prototype for 'kgd_gfx_v9_hqd_load' [-Wmissing-prototypes]
247 | int kgd_gfx_v9_hqd_load(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id,
| ^~~~~~~~~~~~~~~~~~~
<< from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:24:
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:327:5: warning: no previous prototype for 'kgd_gfx_v9_hiq_mqd_load' [-Wmissing-prototypes]
327 | int kgd_gfx_v9_hiq_mqd_load(struct kgd_dev *kgd, void *mqd,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:380:5: warning: no previous prototype for 'kgd_gfx_v9_hqd_dump' [-Wmissing-prototypes]
380 | int kgd_gfx_v9_hqd_dump(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:514:6: warning: no previous prototype for 'kgd_gfx_v9_hqd_is_occupied' [-Wmissing-prototypes]
514 | bool kgd_gfx_v9_hqd_is_occupied(struct kgd_dev *kgd, uint64_t queue_address,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:555:5: warning: no previous prototype for 'kgd_gfx_v9_hqd_destroy' [-Wmissing-prototypes]
555 | int kgd_gfx_v9_hqd_destroy(struct kgd_dev *kgd, void *mqd,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:645:6: warning: no previous prototype for 'kgd_gfx_v9_get_atc_vmid_pasid_mapping_info' [-Wmissing-prototypes]
645 | bool kgd_gfx_v9_get_atc_vmid_pasid_mapping_info(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:658:5: warning: no previous prototype for 'kgd_gfx_v9_address_watch_disable' [-Wmissing-prototypes]
658 | int kgd_gfx_v9_address_watch_disable(struct kgd_dev *kgd)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:663:5: warning: no previous prototype for 'kgd_gfx_v9_address_watch_execute' [-Wmissing-prototypes]
663 | int kgd_gfx_v9_address_watch_execute(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:672:5: warning: no previous prototype for 'kgd_gfx_v9_wave_control_execute' [-Wmissing-prototypes]
672 | int kgd_gfx_v9_wave_control_execute(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:697:10: warning: no previous prototype for 'kgd_gfx_v9_address_watch_get_offset' [-Wmissing-prototypes]
697 | uint32_t kgd_gfx_v9_address_watch_get_offset(struct kgd_dev *kgd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:24:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +/kgd_gfx_v9_hiq_mqd_load +327 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
326
> 327 int kgd_gfx_v9_hiq_mqd_load(struct kgd_dev *kgd, void *mqd,
328 uint32_t pipe_id, uint32_t queue_id,
329 uint32_t doorbell_off)
330 {
331 struct amdgpu_device *adev = get_amdgpu_device(kgd);
332 struct amdgpu_ring *kiq_ring = &adev->gfx.kiq.ring;
333 struct v9_mqd *m;
334 uint32_t mec, pipe;
335 int r;
336
337 m = get_mqd(mqd);
338
339 acquire_queue(kgd, pipe_id, queue_id);
340
341 mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1;
342 pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec);
343
344 pr_debug("kfd: set HIQ, mec:%d, pipe:%d, queue:%d.\n",
345 mec, pipe, queue_id);
346
347 spin_lock(&adev->gfx.kiq.ring_lock);
348 r = amdgpu_ring_alloc(kiq_ring, 7);
349 if (r) {
350 pr_err("Failed to alloc KIQ (%d).\n", r);
351 goto out_unlock;
352 }
353
354 amdgpu_ring_write(kiq_ring, PACKET3(PACKET3_MAP_QUEUES, 5));
355 amdgpu_ring_write(kiq_ring,
356 PACKET3_MAP_QUEUES_QUEUE_SEL(0) | /* Queue_Sel */
357 PACKET3_MAP_QUEUES_VMID(m->cp_hqd_vmid) | /* VMID */
358 PACKET3_MAP_QUEUES_QUEUE(queue_id) |
359 PACKET3_MAP_QUEUES_PIPE(pipe) |
360 PACKET3_MAP_QUEUES_ME((mec - 1)) |
361 PACKET3_MAP_QUEUES_QUEUE_TYPE(0) | /*queue_type: normal compute queue */
362 PACKET3_MAP_QUEUES_ALLOC_FORMAT(0) | /* alloc format: all_on_one_pipe */
363 PACKET3_MAP_QUEUES_ENGINE_SEL(1) | /* engine_sel: hiq */
364 PACKET3_MAP_QUEUES_NUM_QUEUES(1)); /* num_queues: must be 1 */
365 amdgpu_ring_write(kiq_ring,
366 PACKET3_MAP_QUEUES_DOORBELL_OFFSET(doorbell_off));
367 amdgpu_ring_write(kiq_ring, m->cp_mqd_base_addr_lo);
368 amdgpu_ring_write(kiq_ring, m->cp_mqd_base_addr_hi);
369 amdgpu_ring_write(kiq_ring, m->cp_hqd_pq_wptr_poll_addr_lo);
370 amdgpu_ring_write(kiq_ring, m->cp_hqd_pq_wptr_poll_addr_hi);
371 amdgpu_ring_commit(kiq_ring);
372
373 out_unlock:
374 spin_unlock(&adev->gfx.kiq.ring_lock);
375 release_queue(kgd);
376
377 return r;
378 }
379
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[jirislaby:devel 61/76] drivers/video/console/sticon.c:341:16: error: initialization of 'u16 COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile Next README arch block certs crypto drivers fs include init ipc kernel lib localversion-next mm net samples scripts security sound tools usr virt vc_data long unsigned int, int int {aka 'short unsigned int COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile Next README arch block certs crypto drivers fs inc
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: bf8fd3c80f466d63067fd6a6f31ef0fbb332c20c
commit: 444af40fdc3639563d3eeddd0ac50448c273102f [61/76] tty: vt, con_getxy works with u16 *
config: parisc-defconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 444af40fdc3639563d3eeddd0ac50448c273102f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/video/console/sticon.c:341:16: error: initialization of 'u16 * (*)(struct vc_data *, long unsigned int, int *, int *)' {aka 'short unsigned int * (*)(struct vc_data *, long unsigned int, int *, int *)'} from incompatible pointer type 'u16 * (*)(struct vc_data *, u16 *, int *, int *)' {aka 'short unsigned int * (*)(struct vc_data *, short unsigned int *, int *, int *)'} [-Werror=incompatible-pointer-types]
341 | .con_getxy = sticon_getxy,
| ^~~~~~~~~~~~
drivers/video/console/sticon.c:341:16: note: (near initialization for 'sti_con.con_getxy')
cc1: some warnings being treated as errors
vim +341 drivers/video/console/sticon.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 323
d95159cf1b12e8 Helge Deller 2006-12-08 324 static const struct consw sti_con = {
^1da177e4c3f41 Linus Torvalds 2005-04-16 325 .owner = THIS_MODULE,
^1da177e4c3f41 Linus Torvalds 2005-04-16 326 .con_startup = sticon_startup,
^1da177e4c3f41 Linus Torvalds 2005-04-16 327 .con_init = sticon_init,
^1da177e4c3f41 Linus Torvalds 2005-04-16 328 .con_deinit = sticon_deinit,
^1da177e4c3f41 Linus Torvalds 2005-04-16 329 .con_clear = sticon_clear,
^1da177e4c3f41 Linus Torvalds 2005-04-16 330 .con_putc = sticon_putc,
^1da177e4c3f41 Linus Torvalds 2005-04-16 331 .con_putcs = sticon_putcs,
^1da177e4c3f41 Linus Torvalds 2005-04-16 332 .con_cursor = sticon_cursor,
^1da177e4c3f41 Linus Torvalds 2005-04-16 333 .con_scroll = sticon_scroll,
^1da177e4c3f41 Linus Torvalds 2005-04-16 334 .con_switch = sticon_switch,
^1da177e4c3f41 Linus Torvalds 2005-04-16 335 .con_blank = sticon_blank,
^1da177e4c3f41 Linus Torvalds 2005-04-16 336 .con_set_origin = sticon_set_origin,
^1da177e4c3f41 Linus Torvalds 2005-04-16 337 .con_save_screen = sticon_save_screen,
^1da177e4c3f41 Linus Torvalds 2005-04-16 338 .con_build_attr = sticon_build_attr,
^1da177e4c3f41 Linus Torvalds 2005-04-16 339 .con_invert_region = sticon_invert_region,
^1da177e4c3f41 Linus Torvalds 2005-04-16 340 .con_screen_pos = sticon_screen_pos,
^1da177e4c3f41 Linus Torvalds 2005-04-16 @341 .con_getxy = sticon_getxy,
^1da177e4c3f41 Linus Torvalds 2005-04-16 342 };
^1da177e4c3f41 Linus Torvalds 2005-04-16 343
^1da177e4c3f41 Linus Torvalds 2005-04-16 344
^1da177e4c3f41 Linus Torvalds 2005-04-16 345
:::::: The code at line 341 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[linux-next:master 888/2089] drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:122:25: sparse: sparse: cast to restricted __le32
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fcb9628fd1227a5f11d87171cb1b8b5c414d9d9
commit: 0d9283c1695a556c479c4cec9635d0e8aca72d3c [888/2089] drm/amdgpu: add VCN3.0 support for Sienna_Cichlid
config: i386-randconfig-s001-20200617 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-6-g78f577f8-dirty
git checkout 0d9283c1695a556c479c4cec9635d0e8aca72d3c
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:122:25: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:122:25: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:122:25: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:128:33: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:128:33: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:128:33: sparse: sparse: cast to restricted __le32
vim +122 drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
98
99 /**
100 * vcn_v3_0_sw_init - sw init for VCN block
101 *
102 * @handle: amdgpu_device pointer
103 *
104 * Load firmware and sw initialization
105 */
106 static int vcn_v3_0_sw_init(void *handle)
107 {
108 struct amdgpu_ring *ring;
109 int i, j, r;
110 struct amdgpu_device *adev = (struct amdgpu_device *)handle;
111
112 r = amdgpu_vcn_sw_init(adev);
113 if (r)
114 return r;
115
116 if (adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) {
117 const struct common_firmware_header *hdr;
118 hdr = (const struct common_firmware_header *)adev->vcn.fw->data;
119 adev->firmware.ucode[AMDGPU_UCODE_ID_VCN].ucode_id = AMDGPU_UCODE_ID_VCN;
120 adev->firmware.ucode[AMDGPU_UCODE_ID_VCN].fw = adev->vcn.fw;
121 adev->firmware.fw_size +=
> 122 ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
123
124 if (adev->vcn.num_vcn_inst == VCN_INSTANCES_SIENNA_CICHLID) {
125 adev->firmware.ucode[AMDGPU_UCODE_ID_VCN1].ucode_id = AMDGPU_UCODE_ID_VCN1;
126 adev->firmware.ucode[AMDGPU_UCODE_ID_VCN1].fw = adev->vcn.fw;
127 adev->firmware.fw_size +=
128 ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
129 }
130 DRM_INFO("PSP loading VCN firmware\n");
131 }
132
133 r = amdgpu_vcn_resume(adev);
134 if (r)
135 return r;
136
137 for (i = 0; i < adev->vcn.num_vcn_inst; i++) {
138 if (adev->vcn.harvest_config & (1 << i))
139 continue;
140
141 adev->vcn.internal.context_id = mmUVD_CONTEXT_ID_INTERNAL_OFFSET;
142 adev->vcn.internal.ib_vmid = mmUVD_LMI_RBC_IB_VMID_INTERNAL_OFFSET;
143 adev->vcn.internal.ib_bar_low = mmUVD_LMI_RBC_IB_64BIT_BAR_LOW_INTERNAL_OFFSET;
144 adev->vcn.internal.ib_bar_high = mmUVD_LMI_RBC_IB_64BIT_BAR_HIGH_INTERNAL_OFFSET;
145 adev->vcn.internal.ib_size = mmUVD_RBC_IB_SIZE_INTERNAL_OFFSET;
146 adev->vcn.internal.gp_scratch8 = mmUVD_GP_SCRATCH8_INTERNAL_OFFSET;
147
148 adev->vcn.internal.scratch9 = mmUVD_SCRATCH9_INTERNAL_OFFSET;
149 adev->vcn.inst[i].external.scratch9 = SOC15_REG_OFFSET(VCN, i, mmUVD_SCRATCH9);
150 adev->vcn.internal.data0 = mmUVD_GPCOM_VCPU_DATA0_INTERNAL_OFFSET;
151 adev->vcn.inst[i].external.data0 = SOC15_REG_OFFSET(VCN, i, mmUVD_GPCOM_VCPU_DATA0);
152 adev->vcn.internal.data1 = mmUVD_GPCOM_VCPU_DATA1_INTERNAL_OFFSET;
153 adev->vcn.inst[i].external.data1 = SOC15_REG_OFFSET(VCN, i, mmUVD_GPCOM_VCPU_DATA1);
154 adev->vcn.internal.cmd = mmUVD_GPCOM_VCPU_CMD_INTERNAL_OFFSET;
155 adev->vcn.inst[i].external.cmd = SOC15_REG_OFFSET(VCN, i, mmUVD_GPCOM_VCPU_CMD);
156 adev->vcn.internal.nop = mmUVD_NO_OP_INTERNAL_OFFSET;
157 adev->vcn.inst[i].external.nop = SOC15_REG_OFFSET(VCN, i, mmUVD_NO_OP);
158
159 /* VCN DEC TRAP */
160 r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[i],
161 VCN_2_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->vcn.inst[i].irq);
162 if (r)
163 return r;
164
165 ring = &adev->vcn.inst[i].ring_dec;
166 ring->use_doorbell = true;
167 ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 8 * i;
168 sprintf(ring->name, "vcn_dec_%d", i);
169 r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[i].irq, 0,
170 AMDGPU_RING_PRIO_DEFAULT);
171 if (r)
172 return r;
173
174 for (j = 0; j < adev->vcn.num_enc_rings; ++j) {
175 /* VCN ENC TRAP */
176 r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[i],
177 j + VCN_2_0__SRCID__UVD_ENC_GENERAL_PURPOSE, &adev->vcn.inst[i].irq);
178 if (r)
179 return r;
180
181 ring = &adev->vcn.inst[i].ring_enc[j];
182 ring->use_doorbell = true;
183 ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 2 + j + 8 * i;
184 sprintf(ring->name, "vcn_enc_%d.%d", i, j);
185 r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[i].irq, 0,
186 AMDGPU_RING_PRIO_DEFAULT);
187 if (r)
188 return r;
189 }
190 }
191
192 return 0;
193 }
194
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH 2/5] Huawei BMA: Adding Huawei BMA driver: host_cdev_drv
by kernel test robot
Hi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.8-rc1 next-20200616]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/yunaixin03610-163-com/Adding-Hua...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a5dc8300df75e8b8384b4c82225f1e4a0b4d9b55
:::::: branch date: 23 hours ago
:::::: commit date: 23 hours ago
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/huawei/bma/edma_drv/bma_pci.c:443:2: warning: Redundant assignment of 'ent' to itself. [selfAssignment]
UNUSED(ent);
^
>> drivers/net/ethernet/huawei/bma/edma_drv/bma_pci.c:492:2: warning: Redundant assignment of 'pdev' to itself. [selfAssignment]
UNUSED(pdev);
^
>> drivers/net/ethernet/huawei/bma/edma_drv/bma_pci.c:493:2: warning: Redundant assignment of 'state' to itself. [selfAssignment]
UNUSED(state);
^
drivers/net/ethernet/huawei/bma/edma_drv/bma_pci.c:500:2: warning: Redundant assignment of 'pdev' to itself. [selfAssignment]
UNUSED(pdev);
^
>> drivers/net/ethernet/huawei/bma/edma_drv/bma_pci.c:149:3: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned]
REGION_DIR_INPUT + (region & REGION_INDEX_MASK));
^
drivers/net/ethernet/huawei/bma/edma_drv/bma_pci.c:158:55: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned]
(void)pci_write_config_dword(pdev, ATU_REGION_CTRL2, REGION_ENABLE);
^
--
>> drivers/net/ethernet/huawei/bma/edma_drv/edma_host.c:63:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
len += sprintf(buf + len, "lost_count :%dn",
^
drivers/net/ethernet/huawei/bma/edma_drv/edma_host.c:65:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
len += sprintf(buf + len, "b2h_int :%dn",
^
drivers/net/ethernet/huawei/bma/edma_drv/edma_host.c:67:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
len += sprintf(buf + len, "h2b_int :%dn",
^
drivers/net/ethernet/huawei/bma/edma_drv/edma_host.c:69:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
len += sprintf(buf + len, "dma_count :%dn",
^
drivers/net/ethernet/huawei/bma/edma_drv/edma_host.c:71:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
len += sprintf(buf + len, "recv_bytes :%dn",
^
drivers/net/ethernet/huawei/bma/edma_drv/edma_host.c:73:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
len += sprintf(buf + len, "send_bytes :%dn",
^
drivers/net/ethernet/huawei/bma/edma_drv/edma_host.c:75:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
len += sprintf(buf + len, "recv_pkgs :%dn",
^
drivers/net/ethernet/huawei/bma/edma_drv/edma_host.c:77:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
len += sprintf(buf + len, "send_pkgs :%dn",
^
drivers/net/ethernet/huawei/bma/edma_drv/edma_host.c:79:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
len += sprintf(buf + len, "drop_pkgs :%dn",
^
drivers/net/ethernet/huawei/bma/edma_drv/edma_host.c:81:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
len += sprintf(buf + len, "fail_count :%dn",
^
>> drivers/net/ethernet/huawei/bma/cdev_drv/bma_cdev.c:326:21: warning: Checking if unsigned variable 'count' is less than zero. [unsignedLessThanZero]
if (!data || count <= 0)
^
drivers/net/ethernet/huawei/bma/cdev_drv/bma_cdev.c:346:21: warning: Checking if unsigned variable 'count' is less than zero. [unsignedLessThanZero]
if (!data || count <= 0)
^
# https://github.com/0day-ci/linux/commit/d0965c4179b69ddd204c1f795f0d6ac08...
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout d0965c4179b69ddd204c1f795f0d6ac080c657af
vim +122 drivers/net/ethernet/huawei/bma/cdev_drv/bma_cdev.c
d0965c4179b69d yunaixin 2020-06-15 92
d0965c4179b69d yunaixin 2020-06-15 93 static int cdev_param_get_statics(char *buf, const struct kernel_param *kp)
d0965c4179b69d yunaixin 2020-06-15 94 {
d0965c4179b69d yunaixin 2020-06-15 95 int len = 0;
d0965c4179b69d yunaixin 2020-06-15 96 int i = 0;
d0965c4179b69d yunaixin 2020-06-15 97 __kernel_time_t running_time = 0;
d0965c4179b69d yunaixin 2020-06-15 98
d0965c4179b69d yunaixin 2020-06-15 99 if (!buf)
d0965c4179b69d yunaixin 2020-06-15 100 return 0;
d0965c4179b69d yunaixin 2020-06-15 101
d0965c4179b69d yunaixin 2020-06-15 102 GET_SYS_SECONDS(running_time);
d0965c4179b69d yunaixin 2020-06-15 103 running_time -= g_cdev_set.init_time;
d0965c4179b69d yunaixin 2020-06-15 104 len += sprintf(buf + len,
d0965c4179b69d yunaixin 2020-06-15 105 "============================CDEV_DRIVER_INFO=======================\n");
d0965c4179b69d yunaixin 2020-06-15 106 len += sprintf(buf + len, "version :%s\n", CDEV_VERSION);
d0965c4179b69d yunaixin 2020-06-15 107
d0965c4179b69d yunaixin 2020-06-15 108 len += sprintf(buf + len, "running_time :%luD %02lu:%02lu:%02lu\n",
d0965c4179b69d yunaixin 2020-06-15 109 running_time / (SECONDS_PER_DAY),
d0965c4179b69d yunaixin 2020-06-15 110 running_time % (SECONDS_PER_DAY) / SECONDS_PER_HOUR,
d0965c4179b69d yunaixin 2020-06-15 111 running_time % SECONDS_PER_HOUR / SECONDS_PER_MINUTE,
d0965c4179b69d yunaixin 2020-06-15 112 running_time % SECONDS_PER_MINUTE);
d0965c4179b69d yunaixin 2020-06-15 113
d0965c4179b69d yunaixin 2020-06-15 114 for (i = 0; i < g_cdev_set.dev_num; i++) {
d0965c4179b69d yunaixin 2020-06-15 115 len += sprintf(buf + len,
d0965c4179b69d yunaixin 2020-06-15 116 "===================================================\n");
d0965c4179b69d yunaixin 2020-06-15 117 len += sprintf(buf + len, "name :%s\n",
d0965c4179b69d yunaixin 2020-06-15 118 g_cdev_set.dev_list[i].dev_name);
d0965c4179b69d yunaixin 2020-06-15 119 len +=
d0965c4179b69d yunaixin 2020-06-15 120 sprintf(buf + len, "dev_id :%08x\n",
d0965c4179b69d yunaixin 2020-06-15 121 g_cdev_set.dev_list[i].dev_id);
d0965c4179b69d yunaixin 2020-06-15 @122 len += sprintf(buf + len, "type :%u\n",
d0965c4179b69d yunaixin 2020-06-15 123 g_cdev_set.dev_list[i].type);
d0965c4179b69d yunaixin 2020-06-15 124 len += sprintf(buf + len, "status :%s\n",
d0965c4179b69d yunaixin 2020-06-15 125 g_cdev_set.dev_list[i].s.open_status ==
d0965c4179b69d yunaixin 2020-06-15 126 1 ? "open" : "close");
d0965c4179b69d yunaixin 2020-06-15 127 len += sprintf(buf + len, "send_pkgs :%u\n",
d0965c4179b69d yunaixin 2020-06-15 128 g_cdev_set.dev_list[i].s.send_pkgs);
d0965c4179b69d yunaixin 2020-06-15 129 len +=
d0965c4179b69d yunaixin 2020-06-15 130 sprintf(buf + len, "send_bytes:%u\n",
d0965c4179b69d yunaixin 2020-06-15 131 g_cdev_set.dev_list[i].s.send_bytes);
d0965c4179b69d yunaixin 2020-06-15 132 len += sprintf(buf + len, "send_failed_count:%u\n",
d0965c4179b69d yunaixin 2020-06-15 133 g_cdev_set.dev_list[i].s.send_failed_count);
d0965c4179b69d yunaixin 2020-06-15 134 len += sprintf(buf + len, "recv_pkgs :%u\n",
d0965c4179b69d yunaixin 2020-06-15 135 g_cdev_set.dev_list[i].s.recv_pkgs);
d0965c4179b69d yunaixin 2020-06-15 136 len += sprintf(buf + len, "recv_bytes:%u\n",
d0965c4179b69d yunaixin 2020-06-15 137 g_cdev_set.dev_list[i].s.recv_bytes);
d0965c4179b69d yunaixin 2020-06-15 138 len += sprintf(buf + len, "recv_failed_count:%u\n",
d0965c4179b69d yunaixin 2020-06-15 139 g_cdev_set.dev_list[i].s.recv_failed_count);
d0965c4179b69d yunaixin 2020-06-15 140 }
d0965c4179b69d yunaixin 2020-06-15 141
d0965c4179b69d yunaixin 2020-06-15 142 return len;
d0965c4179b69d yunaixin 2020-06-15 143 }
d0965c4179b69d yunaixin 2020-06-15 144 module_param_call(statistics, NULL, cdev_param_get_statics, &debug, 0444);
d0965c4179b69d yunaixin 2020-06-15 145 MODULE_PARM_DESC(statistics, "Statistics info of cdev driver,readonly");
d0965c4179b69d yunaixin 2020-06-15 146
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH v2] mac80211: mesh: add mesh_param "mesh_nolearn" to skip path discovery
by kernel test robot
Hi "Linus,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on mac80211-next/master]
[also build test WARNING on mac80211/master v5.8-rc1 next-20200616]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Linus-L-ssing/mac80211-mesh-add-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master
:::::: branch date: 4 hours ago
:::::: commit date: 4 hours ago
config: arm64-randconfig-s031-20200615 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-3-g55607964-dirty
# save the attached .config to linux build tree
make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> net/wireless/nl80211.c:7099:9: sparse: sparse: macro "FILL_IN_MESH_PARAM_IF_SET" passed 8 arguments, but takes just 6
net/wireless/nl80211.c:7099:9: sparse: sparse: undefined identifier 'FILL_IN_MESH_PARAM_IF_SET'
# https://github.com/0day-ci/linux/commit/d86bcd2b4a9457a527e9c5dd610ad12c0...
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout d86bcd2b4a9457a527e9c5dd610ad12c07d386a4
vim +/FILL_IN_MESH_PARAM_IF_SET +7099 net/wireless/nl80211.c
bd90fdcc5fbd99 Johannes Berg 2010-12-03 6979
24bdd9f4c9af75 Javier Cardona 2010-12-16 6980 if (!info->attrs[NL80211_ATTR_MESH_CONFIG])
93da9cc17c5ae8 colin(a)cozybit.com 2008-10-21 6981 return -EINVAL;
8cb081746c031f Johannes Berg 2019-04-26 6982 if (nla_parse_nested_deprecated(tb, NL80211_MESHCONF_ATTR_MAX, info->attrs[NL80211_ATTR_MESH_CONFIG], nl80211_meshconf_params_policy, info->extack))
93da9cc17c5ae8 colin(a)cozybit.com 2008-10-21 6983 return -EINVAL;
93da9cc17c5ae8 colin(a)cozybit.com 2008-10-21 6984
93da9cc17c5ae8 colin(a)cozybit.com 2008-10-21 6985 /* This makes sure that there aren't more than 32 mesh config
93da9cc17c5ae8 colin(a)cozybit.com 2008-10-21 6986 * parameters (otherwise our bitfield scheme would not work.) */
93da9cc17c5ae8 colin(a)cozybit.com 2008-10-21 6987 BUILD_BUG_ON(NL80211_MESHCONF_ATTR_MAX > 32);
93da9cc17c5ae8 colin(a)cozybit.com 2008-10-21 6988
93da9cc17c5ae8 colin(a)cozybit.com 2008-10-21 6989 /* Fill in the params struct */
ab0d76f6823cc3 Johannes Berg 2018-10-02 6990 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshRetryTimeout, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 6991 NL80211_MESHCONF_RETRY_TIMEOUT, nla_get_u16);
ab0d76f6823cc3 Johannes Berg 2018-10-02 6992 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshConfirmTimeout, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 6993 NL80211_MESHCONF_CONFIRM_TIMEOUT,
ab0d76f6823cc3 Johannes Berg 2018-10-02 6994 nla_get_u16);
ab0d76f6823cc3 Johannes Berg 2018-10-02 6995 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHoldingTimeout, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 6996 NL80211_MESHCONF_HOLDING_TIMEOUT,
ab0d76f6823cc3 Johannes Berg 2018-10-02 6997 nla_get_u16);
ab0d76f6823cc3 Johannes Berg 2018-10-02 6998 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshMaxPeerLinks, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 6999 NL80211_MESHCONF_MAX_PEER_LINKS,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7000 nla_get_u16);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7001 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshMaxRetries, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7002 NL80211_MESHCONF_MAX_RETRIES, nla_get_u8);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7003 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshTTL, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7004 NL80211_MESHCONF_TTL, nla_get_u8);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7005 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, element_ttl, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7006 NL80211_MESHCONF_ELEMENT_TTL, nla_get_u8);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7007 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, auto_open_plinks, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7008 NL80211_MESHCONF_AUTO_OPEN_PLINKS,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7009 nla_get_u8);
ea54fba20985b7 Marco Porsch 2013-01-07 7010 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshNbrOffsetMaxNeighbor,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7011 mask,
a4f606ea73d56d Chun-Yeow Yeoh 2012-06-11 7012 NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7013 nla_get_u32);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7014 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPmaxPREQretries, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7015 NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7016 nla_get_u8);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7017 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, path_refresh_time, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7018 NL80211_MESHCONF_PATH_REFRESH_TIME,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7019 nla_get_u32);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7020 if (mask & BIT(NL80211_MESHCONF_PATH_REFRESH_TIME) &&
ab0d76f6823cc3 Johannes Berg 2018-10-02 7021 (cfg->path_refresh_time < 1 || cfg->path_refresh_time > 65535))
ab0d76f6823cc3 Johannes Berg 2018-10-02 7022 return -EINVAL;
ab0d76f6823cc3 Johannes Berg 2018-10-02 7023 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, min_discovery_timeout, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7024 NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7025 nla_get_u16);
ea54fba20985b7 Marco Porsch 2013-01-07 7026 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPactivePathTimeout,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7027 mask,
a4f606ea73d56d Chun-Yeow Yeoh 2012-06-11 7028 NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7029 nla_get_u32);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7030 if (mask & BIT(NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT) &&
ab0d76f6823cc3 Johannes Berg 2018-10-02 7031 (cfg->dot11MeshHWMPactivePathTimeout < 1 ||
ab0d76f6823cc3 Johannes Berg 2018-10-02 7032 cfg->dot11MeshHWMPactivePathTimeout > 65535))
ab0d76f6823cc3 Johannes Berg 2018-10-02 7033 return -EINVAL;
ab0d76f6823cc3 Johannes Berg 2018-10-02 7034 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPpreqMinInterval, mask,
ea54fba20985b7 Marco Porsch 2013-01-07 7035 NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7036 nla_get_u16);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7037 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPperrMinInterval, mask,
ea54fba20985b7 Marco Porsch 2013-01-07 7038 NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7039 nla_get_u16);
93da9cc17c5ae8 colin(a)cozybit.com 2008-10-21 7040 FILL_IN_MESH_PARAM_IF_SET(tb, cfg,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7041 dot11MeshHWMPnetDiameterTraversalTime, mask,
a4f606ea73d56d Chun-Yeow Yeoh 2012-06-11 7042 NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7043 nla_get_u16);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7044 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPRootMode, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7045 NL80211_MESHCONF_HWMP_ROOTMODE, nla_get_u8);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7046 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPRannInterval, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7047 NL80211_MESHCONF_HWMP_RANN_INTERVAL,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7048 nla_get_u16);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7049 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshGateAnnouncementProtocol,
ea54fba20985b7 Marco Porsch 2013-01-07 7050 mask, NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7051 nla_get_u8);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7052 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshForwarding, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7053 NL80211_MESHCONF_FORWARDING, nla_get_u8);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7054 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, rssi_threshold, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7055 NL80211_MESHCONF_RSSI_THRESHOLD,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7056 nla_get_s32);
01d66fbd5b18ac Bob Copeland 2018-10-25 7057 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshConnectedToMeshGate, mask,
01d66fbd5b18ac Bob Copeland 2018-10-25 7058 NL80211_MESHCONF_CONNECTED_TO_GATE,
01d66fbd5b18ac Bob Copeland 2018-10-25 7059 nla_get_u8);
9757235f451c27 Masashi Honma 2016-08-03 7060 /*
9757235f451c27 Masashi Honma 2016-08-03 7061 * Check HT operation mode based on
188f60ab8e787f Bob Copeland 2018-06-24 7062 * IEEE 802.11-2016 9.4.2.57 HT Operation element.
9757235f451c27 Masashi Honma 2016-08-03 7063 */
9757235f451c27 Masashi Honma 2016-08-03 7064 if (tb[NL80211_MESHCONF_HT_OPMODE]) {
9757235f451c27 Masashi Honma 2016-08-03 7065 ht_opmode = nla_get_u16(tb[NL80211_MESHCONF_HT_OPMODE]);
9757235f451c27 Masashi Honma 2016-08-03 7066
9757235f451c27 Masashi Honma 2016-08-03 7067 if (ht_opmode & ~(IEEE80211_HT_OP_MODE_PROTECTION |
9757235f451c27 Masashi Honma 2016-08-03 7068 IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT |
9757235f451c27 Masashi Honma 2016-08-03 7069 IEEE80211_HT_OP_MODE_NON_HT_STA_PRSNT))
9757235f451c27 Masashi Honma 2016-08-03 7070 return -EINVAL;
9757235f451c27 Masashi Honma 2016-08-03 7071
188f60ab8e787f Bob Copeland 2018-06-24 7072 /* NON_HT_STA bit is reserved, but some programs set it */
188f60ab8e787f Bob Copeland 2018-06-24 7073 ht_opmode &= ~IEEE80211_HT_OP_MODE_NON_HT_STA_PRSNT;
9757235f451c27 Masashi Honma 2016-08-03 7074
9757235f451c27 Masashi Honma 2016-08-03 7075 cfg->ht_opmode = ht_opmode;
fd551bac479585 Masashi Honma 2017-01-26 7076 mask |= (1 << (NL80211_MESHCONF_HT_OPMODE - 1));
9757235f451c27 Masashi Honma 2016-08-03 7077 }
728b19e5fb9bbe Chun-Yeow Yeoh 2012-06-14 7078 FILL_IN_MESH_PARAM_IF_SET(tb, cfg,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7079 dot11MeshHWMPactivePathToRootTimeout, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7080 NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7081 nla_get_u32);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7082 if (mask & BIT(NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT) &&
ab0d76f6823cc3 Johannes Berg 2018-10-02 7083 (cfg->dot11MeshHWMPactivePathToRootTimeout < 1 ||
ab0d76f6823cc3 Johannes Berg 2018-10-02 7084 cfg->dot11MeshHWMPactivePathToRootTimeout > 65535))
ab0d76f6823cc3 Johannes Berg 2018-10-02 7085 return -EINVAL;
ab0d76f6823cc3 Johannes Berg 2018-10-02 7086 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMProotInterval, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7087 NL80211_MESHCONF_HWMP_ROOT_INTERVAL,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7088 nla_get_u16);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7089 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPconfirmationInterval,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7090 mask,
728b19e5fb9bbe Chun-Yeow Yeoh 2012-06-14 7091 NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7092 nla_get_u16);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7093 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, power_mode, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7094 NL80211_MESHCONF_POWER_MODE, nla_get_u32);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7095 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshAwakeWindowDuration, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7096 NL80211_MESHCONF_AWAKE_WINDOW, nla_get_u16);
ab0d76f6823cc3 Johannes Berg 2018-10-02 7097 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, plink_timeout, mask,
ab0d76f6823cc3 Johannes Berg 2018-10-02 7098 NL80211_MESHCONF_PLINK_TIMEOUT, nla_get_u32);
d86bcd2b4a9457 Linus Lüssing 2020-06-16 @7099 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshNolearn, 0, 1,
d86bcd2b4a9457 Linus Lüssing 2020-06-16 7100 mask, NL80211_MESHCONF_NOLEARN,
d86bcd2b4a9457 Linus Lüssing 2020-06-16 7101 nl80211_check_bool);
bd90fdcc5fbd99 Johannes Berg 2010-12-03 7102 if (mask_out)
bd90fdcc5fbd99 Johannes Berg 2010-12-03 7103 *mask_out = mask;
c80d545da3f7c0 Javier Cardona 2010-12-16 7104
bd90fdcc5fbd99 Johannes Berg 2010-12-03 7105 return 0;
bd90fdcc5fbd99 Johannes Berg 2010-12-03 7106
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:89:6: warning: no previous prototype for 'amdgpu_ras_get_error_query_ready'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 61380faa4b4cc577df8a7ff5db5859bac6b351f7 drm/amdgpu: disable ras query and iject during gpu reset
date: 3 months ago
config: ia64-randconfig-r012-20200617 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 61380faa4b4cc577df8a7ff5db5859bac6b351f7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:89:6: warning: no previous prototype for 'amdgpu_ras_get_error_query_ready' [-Wmissing-prototypes]
89 | bool amdgpu_ras_get_error_query_ready(struct amdgpu_device *adev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:823:5: warning: no previous prototype for 'amdgpu_ras_error_cure' [-Wmissing-prototypes]
823 | int amdgpu_ras_error_cure(struct amdgpu_device *adev,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:31:
drivers/gpu/drm/amd/amdgpu/amdgpu.h:177:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
177 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:31:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +/amdgpu_ras_get_error_query_ready +89 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
88
> 89 bool amdgpu_ras_get_error_query_ready(struct amdgpu_device *adev)
90 {
91 if (adev)
92 return amdgpu_ras_get_context(adev)->error_query_ready;
93
94 return false;
95 }
96
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[jirislaby:devel 52/76] WARNING: modpost: vmlinux.o(.text.unlikely+0x7a4): Section mismatch in reference from the variable $L95 to the variable .init.data:l1parity
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: bf8fd3c80f466d63067fd6a6f31ef0fbb332c20c
commit: 4ec87cb7efaeec51cc6867baadb16b484f88a938 [52/76] include condition in the BUG_ON/WARN_ON output
config: mips-malta_qemu_32r6_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 4ec87cb7efaeec51cc6867baadb16b484f88a938
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x7a4): Section mismatch in reference from the variable $L95 to the variable .init.data:l1parity
The function $L95() references
the variable __initdata l1parity.
This is often because $L95 lacks a __initdata
annotation or the annotation of l1parity is wrong.
--
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x83c): Section mismatch in reference from the variable $L98 to the variable .init.data:l1parity
The function $L98() references
the variable __initdata l1parity.
This is often because $L98 lacks a __initdata
annotation or the annotation of l1parity is wrong.
--
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x850): Section mismatch in reference from the variable $L98 to the variable .init.data:l2parity
The function $L98() references
the variable __initdata l2parity.
This is often because $L98 lacks a __initdata
annotation or the annotation of l2parity is wrong.
--
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x878): Section mismatch in reference from the variable $L104 to the variable .init.data:l2parity
The function $L104() references
the variable __initdata l2parity.
This is often because $L104 lacks a __initdata
annotation or the annotation of l2parity is wrong.
--
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x8e8): Section mismatch in reference from the variable $L109 to the variable .init.data:l1parity
The function $L109() references
the variable __initdata l1parity.
This is often because $L109 lacks a __initdata
annotation or the annotation of l1parity is wrong.
--
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x6e0): Section mismatch in reference from the variable $L88 to the variable .init.data:l2parity
The function $L88() references
the variable __initdata l2parity.
This is often because $L88 lacks a __initdata
annotation or the annotation of l2parity is wrong.
--
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x6ec): Section mismatch in reference from the variable $L89 to the variable .init.data:l1parity
The function $L89() references
the variable __initdata l1parity.
This is often because $L89 lacks a __initdata
annotation or the annotation of l1parity is wrong.
--
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x704): Section mismatch in reference from the variable $L91 to the variable .init.data:l1parity
The function $L91() references
the variable __initdata l1parity.
This is often because $L91 lacks a __initdata
annotation or the annotation of l1parity is wrong.
--
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x73c): Section mismatch in reference from the variable $L92 to the variable .init.data:l2parity
The function $L92() references
the variable __initdata l2parity.
This is often because $L92 lacks a __initdata
annotation or the annotation of l2parity is wrong.
--
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x76c): Section mismatch in reference from the variable $L94 to the variable .init.data:l2parity
The function $L94() references
the variable __initdata l2parity.
This is often because $L94 lacks a __initdata
annotation or the annotation of l2parity is wrong.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[linux-stable-rc:linux-5.6.y 1567/1864] drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2623:29: warning: variable 'stream_status' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.6.y
head: b60e06c9887321691c8d341e86c085ed3a6a4138
commit: 5fc20b04d12c0827dbf498532e8a736a1f88ad6f [1567/1864] drm/amd/display: Split program front end part that occur outside lock
config: i386-randconfig-s001-20200617 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-6-g78f577f8-dirty
git checkout 5fc20b04d12c0827dbf498532e8a736a1f88ad6f
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:72:6: warning: no previous prototype for 'print_microsec' [-Wmissing-prototypes]
72 | void print_microsec(struct dc_context *dc_ctx,
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:126:6: warning: no previous prototype for 'dcn10_log_hubbub_state' [-Wmissing-prototypes]
126 | void dcn10_log_hubbub_state(struct dc *dc, struct dc_log_buffer_ctx *log_ctx)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:1878:6: warning: no previous prototype for 'dcn10_program_pte_vm' [-Wmissing-prototypes]
1878 | void dcn10_program_pte_vm(struct dce_hwseq *hws, struct hubp *hubp)
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c: In function 'dcn10_post_unlock_program_front_end':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2623:29: warning: variable 'stream_status' set but not used [-Wunused-but-set-variable]
2623 | struct dc_stream_status *stream_status = NULL;
| ^~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:85,
from drivers/gpu/drm/amd/amdgpu/../display/dc/basics/dc_common.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:28:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/basics/dc_common.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:28:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:27:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +/stream_status +2623 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c
2608
2609 void dcn10_post_unlock_program_front_end(
2610 struct dc *dc,
2611 struct dc_state *context)
2612 {
2613 int i, j;
2614
2615 DC_LOGGER_INIT(dc->ctx->logger);
2616
2617 for (i = 0; i < dc->res_pool->pipe_count; i++) {
2618 struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i];
2619
2620 if (!pipe_ctx->top_pipe &&
2621 !pipe_ctx->prev_odm_pipe &&
2622 pipe_ctx->stream) {
> 2623 struct dc_stream_status *stream_status = NULL;
2624 struct timing_generator *tg = pipe_ctx->stream_res.tg;
2625
2626 for (j = 0; j < context->stream_count; j++) {
2627 if (pipe_ctx->stream == context->streams[j])
2628 stream_status = &context->stream_status[j];
2629 }
2630
2631 if (context->stream_status[i].plane_count == 0)
2632 false_optc_underflow_wa(dc, pipe_ctx->stream, tg);
2633 }
2634 }
2635
2636 for (i = 0; i < dc->res_pool->pipe_count; i++)
2637 if (context->res_ctx.pipe_ctx[i].update_flags.bits.disable)
2638 dc->hwss.disable_plane(dc, &dc->current_state->res_ctx.pipe_ctx[i]);
2639
2640 for (i = 0; i < dc->res_pool->pipe_count; i++)
2641 if (context->res_ctx.pipe_ctx[i].update_flags.bits.disable) {
2642 dc->hwss.optimize_bandwidth(dc, context);
2643 break;
2644 }
2645
2646 if (dc->hwseq->wa.DEGVIDCN10_254)
2647 hubbub1_wm_change_req_wa(dc->res_pool->hubbub);
2648 }
2649
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_init.c:108:20: warning: initialized field overwritten
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 78c7738211e027f122ada3f59c2c5e8a83ee3c59 drm/amd/display: cleanup of function pointer tables
date: 7 months ago
config: i386-randconfig-s001-20200617 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-6-g78f577f8-dirty
git checkout 78c7738211e027f122ada3f59c2c5e8a83ee3c59
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_init.c:108:20: warning: initialized field overwritten [-Woverride-init]
108 | .dsc_pg_control = dcn20_dsc_pg_control,
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_init.c:108:20: note: (near initialization for 'dcn21_funcs.dsc_pg_control')
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_init.c:123:6: warning: no previous prototype for 'dcn21_hw_sequencer_construct' [-Wmissing-prototypes]
123 | void dcn21_hw_sequencer_construct(struct dc *dc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_init.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:34,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_init.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +108 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_init.c
30
31 static const struct hw_sequencer_funcs dcn21_funcs = {
32 .program_gamut_remap = dcn10_program_gamut_remap,
33 .init_hw = dcn10_init_hw,
34 .init_pipes = dcn10_init_pipes,
35 .apply_ctx_to_hw = dce110_apply_ctx_to_hw,
36 .apply_ctx_for_surface = NULL,
37 .program_front_end_for_ctx = dcn20_program_front_end_for_ctx,
38 .update_plane_addr = dcn20_update_plane_addr,
39 .plane_atomic_disconnect = dcn10_plane_atomic_disconnect,
40 .update_dchub = dcn10_update_dchub,
41 .update_mpcc = dcn20_update_mpcc,
42 .update_pending_status = dcn10_update_pending_status,
43 .set_input_transfer_func = dcn20_set_input_transfer_func,
44 .set_output_transfer_func = dcn20_set_output_transfer_func,
45 .program_output_csc = dcn20_program_output_csc,
46 .power_down = dce110_power_down,
47 .enable_accelerated_mode = dce110_enable_accelerated_mode,
48 .enable_timing_synchronization = dcn10_enable_timing_synchronization,
49 .enable_per_frame_crtc_position_reset = dcn10_enable_per_frame_crtc_position_reset,
50 .update_info_frame = dce110_update_info_frame,
51 .send_immediate_sdp_message = dcn10_send_immediate_sdp_message,
52 .enable_stream = dcn20_enable_stream,
53 .disable_stream = dce110_disable_stream,
54 .unblank_stream = dcn20_unblank_stream,
55 .blank_stream = dce110_blank_stream,
56 .enable_audio_stream = dce110_enable_audio_stream,
57 .disable_audio_stream = dce110_disable_audio_stream,
58 .enable_display_power_gating = dcn10_dummy_display_power_gating,
59 .disable_plane = dcn20_disable_plane,
60 .blank_pixel_data = dcn20_blank_pixel_data,
61 .pipe_control_lock = dcn20_pipe_control_lock,
62 .pipe_control_lock_global = dcn20_pipe_control_lock_global,
63 .prepare_bandwidth = dcn20_prepare_bandwidth,
64 .optimize_bandwidth = dcn20_optimize_bandwidth,
65 .update_bandwidth = dcn20_update_bandwidth,
66 .reset_hw_ctx_wrap = dcn20_reset_hw_ctx_wrap,
67 .enable_stream_timing = dcn20_enable_stream_timing,
68 .set_drr = dcn10_set_drr,
69 .get_position = dcn10_get_position,
70 .set_static_screen_control = dcn10_set_static_screen_control,
71 .setup_stereo = dcn10_setup_stereo,
72 .set_avmute = dce110_set_avmute,
73 .log_hw_state = dcn10_log_hw_state,
74 .get_hw_state = dcn10_get_hw_state,
75 .clear_status_bits = dcn10_clear_status_bits,
76 .wait_for_mpcc_disconnect = dcn10_wait_for_mpcc_disconnect,
77 .edp_backlight_control = dce110_edp_backlight_control,
78 .edp_power_control = dce110_edp_power_control,
79 .edp_wait_for_hpd_ready = dce110_edp_wait_for_hpd_ready,
80 .set_cursor_position = dcn10_set_cursor_position,
81 .set_cursor_attribute = dcn10_set_cursor_attribute,
82 .set_cursor_sdr_white_level = dcn10_set_cursor_sdr_white_level,
83 .disable_stream_gating = dcn20_disable_stream_gating,
84 .enable_stream_gating = dcn20_enable_stream_gating,
85 .setup_periodic_interrupt = dcn10_setup_periodic_interrupt,
86 .setup_vupdate_interrupt = dcn20_setup_vupdate_interrupt,
87 .set_clock = dcn10_set_clock,
88 .get_clock = dcn10_get_clock,
89 .did_underflow_occur = dcn10_did_underflow_occur,
90 .init_blank = dcn20_init_blank,
91 .disable_vga = dcn20_disable_vga,
92 .bios_golden_init = dcn10_bios_golden_init,
93 .plane_atomic_disable = dcn20_plane_atomic_disable,
94 .plane_atomic_power_down = dcn10_plane_atomic_power_down,
95 .enable_power_gating_plane = dcn20_enable_power_gating_plane,
96 .dpp_pg_control = dcn20_dpp_pg_control,
97 .hubp_pg_control = dcn20_hubp_pg_control,
98 .dsc_pg_control = NULL,
99 .program_triplebuffer = dcn20_program_triple_buffer,
100 .enable_writeback = dcn20_enable_writeback,
101 .disable_writeback = dcn20_disable_writeback,
102 .update_odm = dcn20_update_odm,
103 .dmdata_status_done = dcn20_dmdata_status_done,
104 .program_dmdata_engine = dcn20_program_dmdata_engine,
105 .init_sys_ctx = dcn21_init_sys_ctx,
106 .init_vm_ctx = dcn20_init_vm_ctx,
107 .set_flip_control_gsl = dcn20_set_flip_control_gsl,
> 108 .dsc_pg_control = dcn20_dsc_pg_control,
109 .get_surface_visual_confirm_color = dcn10_get_surface_visual_confirm_color,
110 .get_hdr_visual_confirm_color = dcn10_get_hdr_visual_confirm_color,
111 .set_hdr_multiplier = dcn10_set_hdr_multiplier,
112 .verify_allow_pstate_change_high = dcn10_verify_allow_pstate_change_high,
113 .s0i3_golden_init_wa = dcn21_s0i3_golden_init_wa,
114 .optimize_pwr_state = dcn21_optimize_pwr_state,
115 .exit_optimized_pwr_state = dcn21_exit_optimized_pwr_state,
116 .wait_for_blank_complete = dcn20_wait_for_blank_complete,
117 .dccg_init = dcn20_dccg_init,
118 .set_blend_lut = dcn20_set_blend_lut,
119 .set_shaper_3dlut = dcn20_set_shaper_3dlut,
120 .get_vupdate_offset_from_vsync = dcn10_get_vupdate_offset_from_vsync,
121 };
122
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months