lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202111130154.GIzTpUau-lkp@intel.com>
Date:   Sat, 13 Nov 2021 01:12:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     Cai Huoqing <caihuoqing@...du.com>
Cc:     kbuild-all@...ts.01.org, Michael Ellerman <mpe@...erman.id.au>,
        Benjamin Herrenschmidt <benh@...nel.crashing.org>,
        Paul Mackerras <paulus@...ba.org>,
        Peter Huewe <peterhuewe@....de>,
        Jarkko Sakkinen <jarkko@...nel.org>,
        Jason Gunthorpe <jgg@...pe.ca>, linuxppc-dev@...ts.ozlabs.org,
        linux-integrity@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] tpm: ibmvtpm: Make use of dma_alloc_noncoherent()

Hi Cai,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on powerpc/next]
[also build test ERROR on v5.15 next-20211112]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Cai-Huoqing/tpm-ibmvtpm-Make-use-of-dma_alloc_noncoherent/20211012-112627
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc64-randconfig-r026-20211027 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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/0day-ci/linux/commit/8ef2c12d78e4782c08edad107067859612cdb39e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Cai-Huoqing/tpm-ibmvtpm-Make-use-of-dma_alloc_noncoherent/20211012-112627
        git checkout 8ef2c12d78e4782c08edad107067859612cdb39e
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   drivers/char/tpm/tpm_ibmvtpm.c: In function 'tpm_ibmvtpm_remove':
>> drivers/char/tpm/tpm_ibmvtpm.c:359:62: error: 'crq_q' undeclared (first use in this function)
     359 |         dma_free_noncoherent(ibmvtpm->dev, CRQ_RES_BUF_SIZE, crq_q->crq_addr,
         |                                                              ^~~~~
   drivers/char/tpm/tpm_ibmvtpm.c:359:62: note: each undeclared identifier is reported only once for each function it appears in
   drivers/char/tpm/tpm_ibmvtpm.c: In function 'tpm_ibmvtpm_probe':
>> drivers/char/tpm/tpm_ibmvtpm.c:690:51: error: 'struct ibmvtpm_crq_queue' has no member named 'crq_dma_handle'
     690 |                                              crq_q->crq_dma_handle, DMA_BIDIRECTIONAL);
         |                                                   ^~


vim +/crq_q +359 drivers/char/tpm/tpm_ibmvtpm.c

   336	
   337	/**
   338	 * tpm_ibmvtpm_remove - ibm vtpm remove entry point
   339	 * @vdev:	vio device struct
   340	 *
   341	 * Return: Always 0.
   342	 */
   343	static void tpm_ibmvtpm_remove(struct vio_dev *vdev)
   344	{
   345		struct tpm_chip *chip = dev_get_drvdata(&vdev->dev);
   346		struct ibmvtpm_dev *ibmvtpm = dev_get_drvdata(&chip->dev);
   347		int rc = 0;
   348	
   349		tpm_chip_unregister(chip);
   350	
   351		free_irq(vdev->irq, ibmvtpm);
   352	
   353		do {
   354			if (rc)
   355				msleep(100);
   356			rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address);
   357		} while (rc == H_BUSY || H_IS_LONG_BUSY(rc));
   358	
 > 359		dma_free_noncoherent(ibmvtpm->dev, CRQ_RES_BUF_SIZE, crq_q->crq_addr,
   360				     crq_q->crq_dma_handle, DMA_BIDIRECTIONAL);
   361	
   362		if (ibmvtpm->rtce_buf)
   363			dma_free_noncoherent(ibmvtpm->dev,
   364					     ibmvtpm->rtce_size, ibmvtpm->rtce_buf,
   365					     ibmvtpm->rtce_dma_handle, DMA_BIDIRECTIONAL);
   366	
   367		kfree(ibmvtpm);
   368		/* For tpm_ibmvtpm_get_desired_dma */
   369		dev_set_drvdata(&vdev->dev, NULL);
   370	}
   371	

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

Download attachment ".config.gz" of type "application/gzip" (41371 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ