tree:
https://github.com/omap-audio/linux-audio peter/linux-next-wip
head: c02be942bf9f1f7fec284cf3b1266741e5964140
commit: 7e4a26181ab91aeb561a52a2ea28b62f1078a261 [24/85] dmaengine: ti: k3-udma: Add
support for burst_size configuration for mem2mem
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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
#
https://github.com/omap-audio/linux-audio/commit/7e4a26181ab91aeb561a52a2...
git remote add omap-audio
https://github.com/omap-audio/linux-audio
git fetch --no-tags omap-audio peter/linux-next-wip
git checkout 7e4a26181ab91aeb561a52a2ea28b62f1078a261
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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 >>):
drivers/dma/ti/k3-udma.c: In function 'udma_get_copy_align':
> drivers/dma/ti/k3-udma.c:5125:10: warning: variable
'burst_size' set but not used [-Wunused-but-set-variable]
5125 | u8
tpl, burst_size;
| ^~~~~~~~~~
vim +/burst_size +5125 drivers/dma/ti/k3-udma.c
5121
5122 static enum dmaengine_alignment udma_get_copy_align(struct udma_dev *ud)
5123 {
5124 const struct udma_match_data *match_data = ud->match_data;
5125 u8 tpl, burst_size;
5126
5127 if (!match_data->enable_memcpy_support)
5128 return DMAENGINE_ALIGN_8_BYTES;
5129
5130 /* Get the highest TPL level the device supports for memcpy */
5131 if (ud->bchan_cnt) {
5132 tpl = udma_get_chan_tpl_index(&ud->bchan_tpl, 0);
5133 } else if (ud->tchan_cnt) {
5134 tpl = udma_get_chan_tpl_index(&ud->tchan_tpl, 0);
5135 } else {
5136 return DMAENGINE_ALIGN_8_BYTES;
5137 }
5138
5139 burst_size = match_data->burst_size[tpl];
5140
5141 switch (match_data->burst_size[tpl]) {
5142 case TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_256_BYTES:
5143 return DMAENGINE_ALIGN_256_BYTES;
5144 case TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_128_BYTES:
5145 return DMAENGINE_ALIGN_128_BYTES;
5146 case TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_64_BYTES:
5147 fallthrough;
5148 default:
5149 return DMAENGINE_ALIGN_64_BYTES;
5150 }
5151 }
5152
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org