From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hch-misc:dma-bypass 16/16] arch/powerpc//kernel/dma-iommu.c:109:17: error: 'struct dev_archdata' has no member named 'iommu_bypass'; did you mean 'iommu_domain'?
Date: Wed, 13 Nov 2019 17:40:52 +0800 [thread overview]
Message-ID: <201911131733.UeAzZLdM%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4272 bytes --]
tree: git://git.infradead.org/users/hch/misc.git dma-bypass
head: ae009177a236b4b93c63ac8fe32da3aeecc190c0
commit: ae009177a236b4b93c63ac8fe32da3aeecc190c0 [16/16] powerpc: use the generic dma_ops_bypass mode
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ae009177a236b4b93c63ac8fe32da3aeecc190c0
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/powerpc//kernel/dma-iommu.c: In function 'dma_iommu_dma_supported':
>> arch/powerpc//kernel/dma-iommu.c:109:17: error: 'struct dev_archdata' has no member named 'iommu_bypass'; did you mean 'iommu_domain'?
dev->archdata.iommu_bypass = true;
^~~~~~~~~~~~
iommu_domain
arch/powerpc//kernel/dma-iommu.c:127:16: error: 'struct dev_archdata' has no member named 'iommu_bypass'; did you mean 'iommu_domain'?
dev->archdata.iommu_bypass = false;
^~~~~~~~~~~~
iommu_domain
vim +109 arch/powerpc//kernel/dma-iommu.c
8617a5c5bc001e Christoph Hellwig 2019-02-13 102
8dd0e95206f7c3 Becky Bruce 2008-09-08 103 /* We support DMA to/from any memory page via the iommu */
817820b0226a13 Benjamin Herrenschmidt 2015-06-24 104 int dma_iommu_dma_supported(struct device *dev, u64 mask)
8dd0e95206f7c3 Becky Bruce 2008-09-08 105 {
738ef42e32fe95 Becky Bruce 2009-09-21 106 struct iommu_table *tbl = get_iommu_table_base(dev);
8dd0e95206f7c3 Becky Bruce 2008-09-08 107
8617a5c5bc001e Christoph Hellwig 2019-02-13 108 if (dev_is_pci(dev) && dma_iommu_bypass_supported(dev, mask)) {
8617a5c5bc001e Christoph Hellwig 2019-02-13 @109 dev->archdata.iommu_bypass = true;
8617a5c5bc001e Christoph Hellwig 2019-02-13 110 dev_dbg(dev, "iommu: 64-bit OK, using fixed ops\n");
8617a5c5bc001e Christoph Hellwig 2019-02-13 111 return 1;
8617a5c5bc001e Christoph Hellwig 2019-02-13 112 }
8617a5c5bc001e Christoph Hellwig 2019-02-13 113
4f7e0babbc7c46 Alexey Kardashevskiy 2019-07-18 114 if (!tbl) {
4f7e0babbc7c46 Alexey Kardashevskiy 2019-07-18 115 dev_err(dev, "Warning: IOMMU dma not supported: mask 0x%08llx, table unavailable\n", mask);
4f7e0babbc7c46 Alexey Kardashevskiy 2019-07-18 116 return 0;
4f7e0babbc7c46 Alexey Kardashevskiy 2019-07-18 117 }
4f7e0babbc7c46 Alexey Kardashevskiy 2019-07-18 118
d084775738b746 Alistair Popple 2013-12-09 119 if (tbl->it_offset > (mask >> tbl->it_page_shift)) {
4c374af5fdee4b Aaro Koskinen 2012-08-18 120 dev_info(dev, "Warning: IOMMU offset too big for device mask\n");
4c374af5fdee4b Aaro Koskinen 2012-08-18 121 dev_info(dev, "mask: 0x%08llx, table offset: 0x%08lx\n",
d084775738b746 Alistair Popple 2013-12-09 122 mask, tbl->it_offset << tbl->it_page_shift);
8dd0e95206f7c3 Becky Bruce 2008-09-08 123 return 0;
8617a5c5bc001e Christoph Hellwig 2019-02-13 124 }
8617a5c5bc001e Christoph Hellwig 2019-02-13 125
8617a5c5bc001e Christoph Hellwig 2019-02-13 126 dev_dbg(dev, "iommu: not 64-bit, using default ops\n");
8617a5c5bc001e Christoph Hellwig 2019-02-13 127 dev->archdata.iommu_bypass = false;
8dd0e95206f7c3 Becky Bruce 2008-09-08 128 return 1;
8dd0e95206f7c3 Becky Bruce 2008-09-08 129 }
8dd0e95206f7c3 Becky Bruce 2008-09-08 130
:::::: The code at line 109 was first introduced by commit
:::::: 8617a5c5bc001e52c40d6b2ece78e8f332039217 powerpc/dma: handle iommu bypass in dma_iommu_ops
:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 62900 bytes --]
reply other threads:[~2019-11-13 9:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201911131733.UeAzZLdM%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.