tree:
https://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git
for-5.10/firmware
head: 23d31e4703d73f8d28a78ac7a2d36db834069624
commit: 23d31e4703d73f8d28a78ac7a2d36db834069624 [1/1] firmware: tegra: Enable BPMP
support on Tegra234
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
git checkout 23d31e4703d73f8d28a78ac7a2d36db834069624
# 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 errors (new ones prefixed by >>):
drivers/mailbox/tegra-hsp.c: In function 'tegra_hsp_doorbell_startup':
> drivers/mailbox/tegra-hsp.c:332:6: error: implicit declaration of
function 'tegra_is_silicon' [-Werror=implicit-function-declaration]
332
| if (tegra_is_silicon() && !tegra_hsp_doorbell_can_ring(db))
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
#
https://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git/c...
git remote add arm-tegra
https://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git
git fetch --no-tags arm-tegra for-5.10/firmware
git checkout 23d31e4703d73f8d28a78ac7a2d36db834069624
vim +/tegra_is_silicon +332 drivers/mailbox/tegra-hsp.c
307
308 static int tegra_hsp_doorbell_startup(struct mbox_chan *chan)
309 {
310 struct tegra_hsp_doorbell *db = chan->con_priv;
311 struct tegra_hsp *hsp = db->channel.hsp;
312 struct tegra_hsp_doorbell *ccplex;
313 unsigned long flags;
314 u32 value;
315
316 if (db->master >= chan->mbox->num_chans) {
317 dev_err(chan->mbox->dev,
318 "invalid master ID %u for HSP channel\n",
319 db->master);
320 return -EINVAL;
321 }
322
323 ccplex = tegra_hsp_doorbell_get(hsp, TEGRA_HSP_DB_MASTER_CCPLEX);
324 if (!ccplex)
325 return -ENODEV;
326
327 /*
328 * On simulation platforms the BPMP hasn't had a chance yet to mark
329 * the doorbell as ringable by the CCPLEX, so we want to skip extra
330 * checks here.
331 */
332 if (tegra_is_silicon() &&
!tegra_hsp_doorbell_can_ring(db))
333 return -ENODEV;
334
335 spin_lock_irqsave(&hsp->lock, flags);
336
337 value = tegra_hsp_channel_readl(&ccplex->channel, HSP_DB_ENABLE);
338 value |= BIT(db->master);
339 tegra_hsp_channel_writel(&ccplex->channel, value, HSP_DB_ENABLE);
340
341 spin_unlock_irqrestore(&hsp->lock, flags);
342
343 return 0;
344 }
345
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org