tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git arm/renesas head: bad78b13e3057b4bbfe769e21c213dca7c4d51de commit: bad78b13e3057b4bbfe769e21c213dca7c4d51de [1/1] iommu/ipmmu-vmsa: Drop LPAE Kconfig dependency config: arm-allmodconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout bad78b13e3057b4bbfe769e21c213dca7c4d51de # save the attached .config to linux build tree make.cross ARCH=arm
All warnings (new ones prefixed by >>):
drivers/iommu/ipmmu-vmsa.c: In function 'ipmmu_domain_init_context':
>> drivers/iommu/ipmmu-vmsa.c:336:2: warning: right shift count >= width of type
ipmmu_ctx_write(domain, IMTTUBR0, ttbr >> 32);
^
vim +336 drivers/iommu/ipmmu-vmsa.c
ff2ed96d Robin Murphy 2015-07-29 320 domain->cfg.iommu_dev =
domain->mmu->dev;
f20ed39f Laurent Pinchart 2015-01-20 321
f20ed39f Laurent Pinchart 2015-01-20 322 domain->iop =
alloc_io_pgtable_ops(ARM_32_LPAE_S1, &domain->cfg,
f20ed39f Laurent Pinchart 2015-01-20 323
domain);
f20ed39f Laurent Pinchart 2015-01-20 324 if (!domain->iop)
f20ed39f Laurent Pinchart 2015-01-20 325 return -EINVAL;
d25a2a16 Laurent Pinchart 2014-04-02 326
d25a2a16 Laurent Pinchart 2014-04-02 327 /*
d25a2a16 Laurent Pinchart 2014-04-02 328 * TODO: When adding support
for multiple contexts, find an unused
d25a2a16 Laurent Pinchart 2014-04-02 329 * context.
d25a2a16 Laurent Pinchart 2014-04-02 330 */
d25a2a16 Laurent Pinchart 2014-04-02 331 domain->context_id = 0;
d25a2a16 Laurent Pinchart 2014-04-02 332
d25a2a16 Laurent Pinchart 2014-04-02 333 /* TTBR0 */
f20ed39f Laurent Pinchart 2015-01-20 334 ttbr =
domain->cfg.arm_lpae_s1_cfg.ttbr[0];
d25a2a16 Laurent Pinchart 2014-04-02 335 ipmmu_ctx_write(domain,
IMTTLBR0, ttbr);
d25a2a16 Laurent Pinchart 2014-04-02 @336 ipmmu_ctx_write(domain,
IMTTUBR0, ttbr >> 32);
d25a2a16 Laurent Pinchart 2014-04-02 337
d25a2a16 Laurent Pinchart 2014-04-02 338 /*
d25a2a16 Laurent Pinchart 2014-04-02 339 * TTBCR
d25a2a16 Laurent Pinchart 2014-04-02 340 * We use long descriptors with
inner-shareable WBWA tables and allocate
d25a2a16 Laurent Pinchart 2014-04-02 341 * the whole 32-bit VA space to
TTBR0.
d25a2a16 Laurent Pinchart 2014-04-02 342 */
d25a2a16 Laurent Pinchart 2014-04-02 343 ipmmu_ctx_write(domain,
IMTTBCR, IMTTBCR_EAE |
d25a2a16 Laurent Pinchart 2014-04-02 344
IMTTBCR_SH0_INNER_SHAREABLE | IMTTBCR_ORGN0_WB_WA |
:::::: The code at line 336 was first introduced by commit
:::::: d25a2a16f0889de4a1cd8639896f35dc9465f6f5 iommu: Add driver for Renesas
VMSA-compatible IPMMU
:::::: TO: Laurent Pinchart <[email protected]>
:::::: CC: Joerg Roedel <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: Binary data
_______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
