From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH 4/4] Enable Driver compilation in crypto Kconfig and Makefile file
Date: Sun, 10 Mar 2024 23:40:45 +0800 [thread overview]
Message-ID: <202403102334.sx5j7Rch-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20240305112831.3380896-5-pavitrakumarm@vayavyalabs.com>
References: <20240305112831.3380896-5-pavitrakumarm@vayavyalabs.com>
TO: Pavitrakumar M <pavitrakumarm@vayavyalabs.com>
TO: herbert@gondor.apana.org.au
TO: linux-crypto@vger.kernel.org
CC: Ruud.Derwig@synopsys.com
CC: manjunath.hadli@vayavyalabs.com
CC: Pavitrakumar M <pavitrakumarm@vayavyalabs.com>
Hi Pavitrakumar,
kernel test robot noticed the following build warnings:
[auto build test WARNING on herbert-cryptodev-2.6/master]
[also build test WARNING on herbert-crypto-2.6/master linus/master v6.8-rc7 next-20240308]
[cannot apply to xilinx-xlnx/master]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Pavitrakumar-M/Add-SPAcc-driver-to-Linux-kernel/20240305-193337
base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
patch link: https://lore.kernel.org/r/20240305112831.3380896-5-pavitrakumarm%40vayavyalabs.com
patch subject: [PATCH 4/4] Enable Driver compilation in crypto Kconfig and Makefile file
:::::: branch date: 5 days ago
:::::: commit date: 5 days ago
config: powerpc-randconfig-r071-20240308 (https://download.01.org/0day-ci/archive/20240310/202403102334.sx5j7Rch-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 13.2.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202403102334.sx5j7Rch-lkp@intel.com/
smatch warnings:
drivers/crypto/dwc-spacc/spacc_hal.c:320 pdu_ddt_init() warn: curly braces intended?
vim +320 drivers/crypto/dwc-spacc/spacc_hal.c
6ad822cec22644 Pavitrakumar M 2024-03-05 284
6ad822cec22644 Pavitrakumar M 2024-03-05 285 int pdu_ddt_init(struct pdu_ddt *ddt, unsigned long limit)
6ad822cec22644 Pavitrakumar M 2024-03-05 286 {
6ad822cec22644 Pavitrakumar M 2024-03-05 287 /* set the MSB if we want to use an ATOMIC
6ad822cec22644 Pavitrakumar M 2024-03-05 288 * allocation required for top half processing
6ad822cec22644 Pavitrakumar M 2024-03-05 289 */
6ad822cec22644 Pavitrakumar M 2024-03-05 290 int flag = (limit & 0x80000000);
6ad822cec22644 Pavitrakumar M 2024-03-05 291
6ad822cec22644 Pavitrakumar M 2024-03-05 292 limit &= 0x7FFFFFFF;
6ad822cec22644 Pavitrakumar M 2024-03-05 293
6ad822cec22644 Pavitrakumar M 2024-03-05 294 if (limit + 1 >= SIZE_MAX / 8) {
6ad822cec22644 Pavitrakumar M 2024-03-05 295 /* Too big to even compute DDT size */
6ad822cec22644 Pavitrakumar M 2024-03-05 296 return -1;
6ad822cec22644 Pavitrakumar M 2024-03-05 297 } else if (limit > PDU_MAX_DDT) {
6ad822cec22644 Pavitrakumar M 2024-03-05 298 size_t len = 8 * ((size_t)limit + 1);
6ad822cec22644 Pavitrakumar M 2024-03-05 299
6ad822cec22644 Pavitrakumar M 2024-03-05 300 ddt->virt = dma_alloc_coherent(ddt_device, len, &ddt->phys,
6ad822cec22644 Pavitrakumar M 2024-03-05 301 flag ? GFP_ATOMIC : GFP_KERNEL);
6ad822cec22644 Pavitrakumar M 2024-03-05 302 } else if (limit > 16) {
6ad822cec22644 Pavitrakumar M 2024-03-05 303 ddt->virt = dma_pool_alloc(ddt_pool, flag ? GFP_ATOMIC :
6ad822cec22644 Pavitrakumar M 2024-03-05 304 GFP_KERNEL, &ddt->phys);
6ad822cec22644 Pavitrakumar M 2024-03-05 305 } else if (limit > 4) {
6ad822cec22644 Pavitrakumar M 2024-03-05 306 ddt->virt = dma_pool_alloc(ddt16_pool, flag ? GFP_ATOMIC :
6ad822cec22644 Pavitrakumar M 2024-03-05 307 GFP_KERNEL, &ddt->phys);
6ad822cec22644 Pavitrakumar M 2024-03-05 308 } else {
6ad822cec22644 Pavitrakumar M 2024-03-05 309 ddt->virt = dma_pool_alloc(ddt4_pool, flag ? GFP_ATOMIC :
6ad822cec22644 Pavitrakumar M 2024-03-05 310 GFP_KERNEL, &ddt->phys);
6ad822cec22644 Pavitrakumar M 2024-03-05 311 }
6ad822cec22644 Pavitrakumar M 2024-03-05 312 ddt->idx = 0;
6ad822cec22644 Pavitrakumar M 2024-03-05 313 ddt->len = 0;
6ad822cec22644 Pavitrakumar M 2024-03-05 314 ddt->limit = limit;
6ad822cec22644 Pavitrakumar M 2024-03-05 315
6ad822cec22644 Pavitrakumar M 2024-03-05 316 if (!ddt->virt)
6ad822cec22644 Pavitrakumar M 2024-03-05 317 return -1;
6ad822cec22644 Pavitrakumar M 2024-03-05 318
6ad822cec22644 Pavitrakumar M 2024-03-05 319 #ifdef CONFIG_CRYPTO_DEV_SPACC_DEBUG_TRACE_DDT
6ad822cec22644 Pavitrakumar M 2024-03-05 @320 pr_debug(" DDT[%.8lx]: allocated %lu fragments\n",
6ad822cec22644 Pavitrakumar M 2024-03-05 321 (unsigned long)ddt->phys, limit);
6ad822cec22644 Pavitrakumar M 2024-03-05 322 #endif
6ad822cec22644 Pavitrakumar M 2024-03-05 323
6ad822cec22644 Pavitrakumar M 2024-03-05 324 return 0;
6ad822cec22644 Pavitrakumar M 2024-03-05 325 }
6ad822cec22644 Pavitrakumar M 2024-03-05 326
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-03-10 15:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-10 15:40 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-13 5:08 [PATCH 4/4] Enable Driver compilation in crypto Kconfig and Makefile file kernel test robot
2024-03-11 2:38 kernel test robot
2024-03-07 14:17 kernel test robot
2024-03-05 11:28 [PATCH 0/4] Add spacc crypto driver support Pavitrakumar M
2024-03-05 11:28 ` [PATCH 4/4] Enable Driver compilation in crypto Kconfig and Makefile file Pavitrakumar M
2024-03-06 4:08 ` kernel test robot
2024-03-06 6:43 ` kernel test robot
2024-03-06 6:43 ` kernel test robot
2024-03-06 7:26 ` kernel test robot
2024-03-07 14:24 ` Dan Carpenter
2024-03-11 7:40 ` Dan Carpenter
2024-03-13 10:43 ` kernel test robot
2023-11-14 13:42 kernel test robot
2023-11-15 2:00 ` kernel test robot
2023-11-14 11:45 kernel test robot
2023-11-15 1:58 ` kernel test robot
2023-11-14 10:40 kernel test robot
2023-11-15 1:57 ` kernel test robot
2023-11-14 5:05 [PATCH 0/4] Add crypto spacc driver to support cipher, hash and aead Pavitrakumar M
2023-11-14 5:05 ` [PATCH 4/4] Enable Driver compilation in crypto Kconfig and Makefile file Pavitrakumar M
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=202403102334.sx5j7Rch-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/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.