Linux IOMMU Development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
	dri-devel@lists.freedesktop.org,
	iommu@lists.linux-foundation.org, linaro-mm-sig@lists.linaro.org,
	linux-kernel@vger.kernel.org
Cc: devel@driverdev.osuosl.org, kbuild-all@lists.01.org,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	David Airlie <airlied@linux.ie>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	linux-media@vger.kernel.org
Subject: Re: [PATCH v7 31/36] staging: tegra-vde: fix common struct sg_table related issues
Date: Sun, 21 Jun 2020 05:10:40 +0800	[thread overview]
Message-ID: <202006210509.LTEtGVBv%lkp@intel.com> (raw)
In-Reply-To: <20200619103636.11974-32-m.szyprowski@samsung.com>

[-- Attachment #1: Type: text/plain, Size: 2655 bytes --]

Hi Marek,

I love your patch! Yet something to improve:

[auto build test ERROR on next-20200618]
[also build test ERROR on v5.8-rc1]
[cannot apply to linuxtv-media/master staging/staging-testing drm-exynos/exynos-drm-next drm-intel/for-linux-next linus/master v5.8-rc1 v5.7 v5.7-rc7]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Marek-Szyprowski/DRM-fix-struct-sg_table-nents-vs-orig_nents-misuse/20200619-184302
base:    ce2cc8efd7a40cbd17841add878cb691d0ce0bba
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/staging/media/tegra-vde/iommu.c: In function 'tegra_vde_iommu_map':
>> drivers/staging/media/tegra-vde/iommu.c:39:9: error: implicit declaration of function 'iommu_map_sgtable'; did you mean 'dma_map_sgtable'? [-Werror=implicit-function-declaration]
      39 |  size = iommu_map_sgtable(vde->domain, addr, sgt,
         |         ^~~~~~~~~~~~~~~~~
         |         dma_map_sgtable
   cc1: some warnings being treated as errors

vim +39 drivers/staging/media/tegra-vde/iommu.c

    18	
    19	int tegra_vde_iommu_map(struct tegra_vde *vde,
    20				struct sg_table *sgt,
    21				struct iova **iovap,
    22				size_t size)
    23	{
    24		struct iova *iova;
    25		unsigned long shift;
    26		unsigned long end;
    27		dma_addr_t addr;
    28	
    29		end = vde->domain->geometry.aperture_end;
    30		size = iova_align(&vde->iova, size);
    31		shift = iova_shift(&vde->iova);
    32	
    33		iova = alloc_iova(&vde->iova, size >> shift, end >> shift, true);
    34		if (!iova)
    35			return -ENOMEM;
    36	
    37		addr = iova_dma_addr(&vde->iova, iova);
    38	
  > 39		size = iommu_map_sgtable(vde->domain, addr, sgt,
    40					 IOMMU_READ | IOMMU_WRITE);
    41		if (!size) {
    42			__free_iova(&vde->iova, iova);
    43			return -ENXIO;
    44		}
    45	
    46		*iovap = iova;
    47	
    48		return 0;
    49	}
    50	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 53670 bytes --]

[-- Attachment #3: Type: text/plain, Size: 156 bytes --]

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

  reply	other threads:[~2020-06-20 21:11 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20200619103652eucas1p203d684adff0faa672ff5c8d383b52f23@eucas1p2.samsung.com>
2020-06-19 10:36 ` [PATCH v7 00/36] DRM: fix struct sg_table nents vs. orig_nents misuse Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 01/36] drm: prime: add common helper to check scatterlist contiguity Marek Szyprowski
2020-07-07 14:30     ` Andrzej Hajda
2020-07-07 15:03       ` Andrzej Hajda
2020-06-19 10:36   ` [PATCH v7 02/36] drm: prime: use sgtable iterators in drm_prime_sg_to_page_addr_arrays() Marek Szyprowski
2020-07-07 14:41     ` Andrzej Hajda
2020-06-19 10:36   ` [PATCH v7 03/36] drm: core: fix common struct sg_table related issues Marek Szyprowski
2020-07-07 15:02     ` Andrzej Hajda
2020-06-19 10:36   ` [PATCH v7 04/36] drm: amdgpu: " Marek Szyprowski
2020-06-22 13:27     ` Christian König
2020-07-07 13:06       ` Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 05/36] drm: armada: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 06/36] drm: etnaviv: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 07/36] drm: exynos: use common helper for a scatterlist contiguity check Marek Szyprowski
2020-07-07  9:35     ` Andrzej Hajda
2020-07-07 15:04       ` Andrzej Hajda
2020-07-14  0:28     ` Inki Dae
2020-06-19 10:36   ` [PATCH v7 08/36] drm: exynos: fix common struct sg_table related issues Marek Szyprowski
2020-07-07  9:40     ` Andrzej Hajda
2020-07-07 15:05       ` Andrzej Hajda
2020-07-14  0:27     ` Inki Dae
2020-06-19 10:36   ` [PATCH v7 09/36] drm: i915: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 10/36] drm: lima: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 11/36] drm: mediatek: use common helper for a scatterlist contiguity check Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 12/36] drm: mediatek: use common helper for extracting pages array Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 13/36] drm: msm: fix common struct sg_table related issues Marek Szyprowski
2020-06-19 14:45     ` Rob Clark
2020-06-19 10:36   ` [PATCH v7 14/36] drm: omapdrm: use common helper for extracting pages array Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 15/36] drm: omapdrm: fix common struct sg_table related issues Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 16/36] drm: panfrost: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 17/36] drm: radeon: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 18/36] drm: rockchip: use common helper for a scatterlist contiguity check Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 19/36] drm: rockchip: fix common struct sg_table related issues Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 20/36] drm: tegra: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 21/36] drm: v3d: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 22/36] drm: virtio: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 23/36] drm: vmwgfx: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 24/36] drm: xen: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 25/36] xen: gntdev: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 26/36] drm: host1x: " Marek Szyprowski
2020-06-21 14:47     ` kernel test robot
2020-06-19 10:36   ` [PATCH v7 27/36] drm: rcar-du: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 28/36] dmabuf: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 29/36] staging: ion: remove dead code Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 30/36] staging: ion: fix common struct sg_table related issues Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 31/36] staging: tegra-vde: " Marek Szyprowski
2020-06-20 21:10     ` kernel test robot [this message]
2020-06-21  4:00     ` Dmitry Osipenko
2020-06-30 10:07       ` Marek Szyprowski
2020-07-01  1:45         ` Dmitry Osipenko
2020-06-19 10:36   ` [PATCH v7 32/36] misc: fastrpc: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 33/36] rapidio: " Marek Szyprowski
2020-06-21  1:23     ` kernel test robot
2020-06-23 15:46     ` [kbuild] " Dan Carpenter
2020-06-30  8:44     ` [PATCH v8] " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 34/36] samples: vfio-mdev/mbochs: " Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 35/36] media: pci: fix common ALSA DMA-mapping related codes Marek Szyprowski
2020-06-19 10:36   ` [PATCH v7 36/36] videobuf2: use sgtable-based scatterlist wrappers Marek Szyprowski
2020-06-30 10:45     ` [PATCH v8] " Marek Szyprowski
2020-06-30  8:49   ` [PATCH v7 00/36] DRM: fix struct sg_table nents vs. orig_nents misuse Marek Szyprowski

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=202006210509.LTEtGVBv%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=airlied@linux.ie \
    --cc=b.zolnierkie@samsung.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=iommu@lists.linux-foundation.org \
    --cc=jonathanh@nvidia.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linaro-mm-sig@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox