From: Herbert Xu <herbert@gondor.apana.org.au>
To: Tom Zanussi <tom.zanussi@linux.intel.com>
Cc: davem@davemloft.net, fenghua.yu@intel.com, vkoul@kernel.org,
dave.jiang@intel.com, tony.luck@intel.com,
wajdi.k.feghali@intel.com, james.guilford@intel.com,
kanchana.p.sridhar@intel.com, vinodh.gopal@intel.com,
giovanni.cabiddu@intel.com, linux-kernel@vger.kernel.org,
linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org
Subject: Re: [PATCH v9 00/14] crypto: Add Intel Analytics Accelerator (IAA) crypto compression driver
Date: Fri, 18 Aug 2023 16:58:34 +0800 [thread overview]
Message-ID: <ZN8yujTWN42vd2cF@gondor.apana.org.au> (raw)
In-Reply-To: <20230807203726.1682123-1-tom.zanussi@linux.intel.com>
On Mon, Aug 07, 2023 at 03:37:12PM -0500, Tom Zanussi wrote:
> Hi, this is v9 of the IAA crypto driver, incorporating feedback from
> v8.
>
> v9 changes:
>
> - Renamed drv_enable/disable_wq() to idxd_drv_enable/disable_wq()
> and exported it, changing all existing callers as well as the
> iaa_crypto driver.
>
> - While testing, ran into a use-after-free bug in the irq support
> flagged by KASAN so fixed that up in iaa_compress() (added missing
> disable_async check).
>
> - Also, while fixing the use-after-free bug, rearranged the out:
> part of iaa_desc_complete() to make it cleaner.
>
> - Also for the verify cases, reversed the dma mapping by adding and
> calling a new iaa_remap_for_verify() function, since verify
> basically does a decompress after reversing the src and dst
> buffers.
>
> - Added new Acked-by and Reviewed-by tags.
This adds a bunch of warnings for me:
../drivers/crypto/intel/iaa/iaa_crypto_main.c:2090:5: warning: no previous prototype for ‘wq_stats_show’ [-Wmissing-prototypes]
2090 | int wq_stats_show(struct seq_file *m, void *v)
| ^~~~~~~~~~~~~
../drivers/crypto/intel/iaa/iaa_crypto_main.c:2106:5: warning: no previous prototype for ‘iaa_crypto_stats_reset’ [-Wmissing-prototypes]
2106 | int iaa_crypto_stats_reset(void *data, u64 value)
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:38: warning: incorrect type in argument 1 (different base types)
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:38: expected unsigned long [usertype] size
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:38: got restricted gfp_t
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:58: warning: incorrect type in argument 2 (different base types)
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:58: expected restricted gfp_t [usertype] flags
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:58: got unsigned long
../drivers/crypto/intel/iaa/iaa_crypto_main.c:2090:5: warning: symbol 'wq_stats_show' was not declared. Should it be static?
../drivers/crypto/intel/iaa/iaa_crypto_main.c:2106:5: warning: symbol 'iaa_crypto_stats_reset' was not declared. Should it be static?
../drivers/crypto/intel/iaa/iaa_crypto_main.c:2028:13: warning: context imbalance in 'iaa_crypto_remove' - different lock contexts for basic block
../drivers/crypto/intel/iaa/iaa_crypto_comp_fixed.c:10:11: warning: symbol 'fixed_ll_sym' was not declared. Should it be static?
../drivers/crypto/intel/iaa/iaa_crypto_comp_fixed.c:49:11: warning: symbol 'fixed_d_sym' was not declared. Should it be static?
Please fix before resubmitting.
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2023-08-18 8:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-07 20:37 [PATCH v9 00/14] crypto: Add Intel Analytics Accelerator (IAA) crypto compression driver Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 01/14] dmaengine: idxd: add wq driver name support for accel-config user tool Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 02/14] dmaengine: idxd: add external module driver support for dsa_bus_type Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 03/14] dmaengine: idxd: Rename drv_enable/disable_wq to idxd_drv_enable/disable_wq, and export Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 04/14] dmaengine: idxd: Export descriptor management functions Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 05/14] dmaengine: idxd: Export wq resource " Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 06/14] dmaengine: idxd: Add wq private data accessors Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 07/14] dmaengine: idxd: add callback support for iaa crypto Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 08/14] crypto: iaa - Add IAA Compression Accelerator Documentation Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 09/14] crypto: iaa - Add Intel IAA Compression Accelerator crypto driver core Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 10/14] crypto: iaa - Add per-cpu workqueue table with rebalancing Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 11/14] crypto: iaa - Add compression mode management along with fixed mode Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 12/14] crypto: iaa - Add support for deflate-iaa compression algorithm Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 13/14] crypto: iaa - Add irq support for the crypto async interface Tom Zanussi
2023-08-07 20:37 ` [PATCH v9 14/14] crypto: iaa - Add IAA Compression Accelerator stats Tom Zanussi
2023-08-18 8:58 ` Herbert Xu [this message]
2023-08-18 19:56 ` [PATCH v9 00/14] crypto: Add Intel Analytics Accelerator (IAA) crypto compression driver Tom Zanussi
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=ZN8yujTWN42vd2cF@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=dave.jiang@intel.com \
--cc=davem@davemloft.net \
--cc=dmaengine@vger.kernel.org \
--cc=fenghua.yu@intel.com \
--cc=giovanni.cabiddu@intel.com \
--cc=james.guilford@intel.com \
--cc=kanchana.p.sridhar@intel.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tom.zanussi@linux.intel.com \
--cc=tony.luck@intel.com \
--cc=vinodh.gopal@intel.com \
--cc=vkoul@kernel.org \
--cc=wajdi.k.feghali@intel.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;
as well as URLs for NNTP newsgroup(s).