* [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig
@ 2019-10-11 11:18 Zhou Wang
2019-10-11 11:25 ` Zhou Wang
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Zhou Wang @ 2019-10-11 11:18 UTC (permalink / raw)
To: Herbert Xu, David S. Miller; +Cc: linux-crypto, Zhou Wang
To avoid compile error in some platforms, select NEED_SG_DMA_LENGTH in
qm Kconfig.
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Reported-by: kbuild test robot <lkp@intel.com>
---
drivers/crypto/hisilicon/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/hisilicon/Kconfig b/drivers/crypto/hisilicon/Kconfig
index 82fb810d..a71f2bf 100644
--- a/drivers/crypto/hisilicon/Kconfig
+++ b/drivers/crypto/hisilicon/Kconfig
@@ -18,6 +18,7 @@ config CRYPTO_DEV_HISI_QM
tristate
depends on ARM64 || COMPILE_TEST
depends on PCI && PCI_MSI
+ select NEED_SG_DMA_LENGTH
help
HiSilicon accelerator engines use a common queue management
interface. Specific engine driver may use this module.
--
2.8.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig
2019-10-11 11:18 [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig Zhou Wang
@ 2019-10-11 11:25 ` Zhou Wang
2019-10-18 8:04 ` Herbert Xu
2019-10-24 13:22 ` Ard Biesheuvel
2 siblings, 0 replies; 7+ messages in thread
From: Zhou Wang @ 2019-10-11 11:25 UTC (permalink / raw)
To: Herbert Xu, David S. Miller; +Cc: linux-crypto
On 2019/10/11 19:18, Zhou Wang wrote:
> To avoid compile error in some platforms, select NEED_SG_DMA_LENGTH in
> qm Kconfig.
>
> Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
> Reported-by: kbuild test robot <lkp@intel.com>
sorry to make the head of this patch as 1/2, it should be "PATCH", there
is only one patch.
> ---
> drivers/crypto/hisilicon/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/crypto/hisilicon/Kconfig b/drivers/crypto/hisilicon/Kconfig
> index 82fb810d..a71f2bf 100644
> --- a/drivers/crypto/hisilicon/Kconfig
> +++ b/drivers/crypto/hisilicon/Kconfig
> @@ -18,6 +18,7 @@ config CRYPTO_DEV_HISI_QM
> tristate
> depends on ARM64 || COMPILE_TEST
> depends on PCI && PCI_MSI
> + select NEED_SG_DMA_LENGTH
> help
> HiSilicon accelerator engines use a common queue management
> interface. Specific engine driver may use this module.
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig
2019-10-11 11:18 [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig Zhou Wang
2019-10-11 11:25 ` Zhou Wang
@ 2019-10-18 8:04 ` Herbert Xu
2019-10-21 3:53 ` Zhou Wang
2019-10-24 13:22 ` Ard Biesheuvel
2 siblings, 1 reply; 7+ messages in thread
From: Herbert Xu @ 2019-10-18 8:04 UTC (permalink / raw)
To: Zhou Wang; +Cc: David S. Miller, linux-crypto
On Fri, Oct 11, 2019 at 07:18:10PM +0800, Zhou Wang wrote:
> To avoid compile error in some platforms, select NEED_SG_DMA_LENGTH in
> qm Kconfig.
>
> Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
> Reported-by: kbuild test robot <lkp@intel.com>
> ---
> drivers/crypto/hisilicon/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
Patch applied. 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig
2019-10-18 8:04 ` Herbert Xu
@ 2019-10-21 3:53 ` Zhou Wang
0 siblings, 0 replies; 7+ messages in thread
From: Zhou Wang @ 2019-10-21 3:53 UTC (permalink / raw)
To: Herbert Xu; +Cc: David S. Miller, linux-crypto
On 2019/10/18 16:04, Herbert Xu wrote:
> On Fri, Oct 11, 2019 at 07:18:10PM +0800, Zhou Wang wrote:
>> To avoid compile error in some platforms, select NEED_SG_DMA_LENGTH in
>> qm Kconfig.
>>
>> Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
>> Reported-by: kbuild test robot <lkp@intel.com>
>> ---
>> drivers/crypto/hisilicon/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>
> Patch applied. Thanks.
Thanks :)
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig
2019-10-11 11:18 [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig Zhou Wang
2019-10-11 11:25 ` Zhou Wang
2019-10-18 8:04 ` Herbert Xu
@ 2019-10-24 13:22 ` Ard Biesheuvel
2019-10-24 13:56 ` Herbert Xu
2 siblings, 1 reply; 7+ messages in thread
From: Ard Biesheuvel @ 2019-10-24 13:22 UTC (permalink / raw)
To: Zhou Wang
Cc: Herbert Xu, David S. Miller,
open list:HARDWARE RANDOM NUMBER GENERATOR CORE
On Fri, 11 Oct 2019 at 13:21, Zhou Wang <wangzhou1@hisilicon.com> wrote:
>
> To avoid compile error in some platforms, select NEED_SG_DMA_LENGTH in
> qm Kconfig.
>
> Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
> Reported-by: kbuild test robot <lkp@intel.com>
> ---
> drivers/crypto/hisilicon/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/crypto/hisilicon/Kconfig b/drivers/crypto/hisilicon/Kconfig
> index 82fb810d..a71f2bf 100644
> --- a/drivers/crypto/hisilicon/Kconfig
> +++ b/drivers/crypto/hisilicon/Kconfig
> @@ -18,6 +18,7 @@ config CRYPTO_DEV_HISI_QM
> tristate
> depends on ARM64 || COMPILE_TEST
> depends on PCI && PCI_MSI
> + select NEED_SG_DMA_LENGTH
> help
> HiSilicon accelerator engines use a common queue management
> interface. Specific engine driver may use this module.
CONFIG_NEED_SG_DMA_LENGTH shouldn't be set by an arbitrary driver -
the arch code will set this if needed, and if it doesn't, the
additional dma_length field shouldn't be expected to have a meaning.
If you are fixing a COMPILE_TEST failure, just add NEED_SG_DMA_LENGTH
as a dependency, or drop the COMPILE_TEST altogether (why was that
added in the first place?)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig
2019-10-24 13:22 ` Ard Biesheuvel
@ 2019-10-24 13:56 ` Herbert Xu
2019-10-25 1:00 ` Zhou Wang
0 siblings, 1 reply; 7+ messages in thread
From: Herbert Xu @ 2019-10-24 13:56 UTC (permalink / raw)
To: Ard Biesheuvel
Cc: Zhou Wang, David S. Miller,
open list:HARDWARE RANDOM NUMBER GENERATOR CORE
On Thu, Oct 24, 2019 at 03:22:50PM +0200, Ard Biesheuvel wrote:
>
> If you are fixing a COMPILE_TEST failure, just add NEED_SG_DMA_LENGTH
> as a dependency, or drop the COMPILE_TEST altogether (why was that
> added in the first place?)
Because we want to maximise compiler coverage so that build failures
can be caught at the earliest opportunity.
But a better fix would be to use
sg_dma_len(sg)
instead of
sg->dma_length
Cheers,
--
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig
2019-10-24 13:56 ` Herbert Xu
@ 2019-10-25 1:00 ` Zhou Wang
0 siblings, 0 replies; 7+ messages in thread
From: Zhou Wang @ 2019-10-25 1:00 UTC (permalink / raw)
To: Herbert Xu, Ard Biesheuvel
Cc: David S. Miller, open list:HARDWARE RANDOM NUMBER GENERATOR CORE
On 2019/10/24 21:56, Herbert Xu wrote:
> On Thu, Oct 24, 2019 at 03:22:50PM +0200, Ard Biesheuvel wrote:
>>
>> If you are fixing a COMPILE_TEST failure, just add NEED_SG_DMA_LENGTH
>> as a dependency, or drop the COMPILE_TEST altogether (why was that
>> added in the first place?)
>
> Because we want to maximise compiler coverage so that build failures
> can be caught at the earliest opportunity.
>
> But a better fix would be to use
>
> sg_dma_len(sg)
OK, will do by this. Thanks!
Best,
Zhou
>
> instead of
>
> sg->dma_length
>
> Cheers,
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-10-25 1:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-11 11:18 [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig Zhou Wang
2019-10-11 11:25 ` Zhou Wang
2019-10-18 8:04 ` Herbert Xu
2019-10-21 3:53 ` Zhou Wang
2019-10-24 13:22 ` Ard Biesheuvel
2019-10-24 13:56 ` Herbert Xu
2019-10-25 1:00 ` Zhou Wang
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.