Re: [PATCH] hwrng: ks-sa - fix runtime pm imbalance on error

2020-05-20 Thread Sverdlin, Alexander (Nokia - DE/Ulm)
Hello Dinghao, On Wed, 2020-05-20 at 21:29 +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a pairing decrement is needed > on the error handling path to keep the counter balanced. I believe, this is the wrong pl

Re: [PATCH] [v2] hwrng: ks-sa - Fix runtime PM imbalance on error

2020-05-28 Thread Sverdlin, Alexander (Nokia - DE/Ulm)
Hello Dinghao, On Thu, 2020-05-28 at 15:21 +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a pairing decrement is needed > on the error handling path to keep the counter balanced. > > Signed-off-by: Dinghao Liu

[PATCH] crypto: qat - Silence smp_processor_id() warning

2019-07-23 Thread Sverdlin, Alexander (Nokia - DE/Ulm)
From: Alexander Sverdlin It seems that smp_processor_id() is only used for a best-effort load-balancing, refer to qat_crypto_get_instance_node(). It's not feasible to disable preemption for the duration of the crypto requests. Therefore, just silence the warning. This commit is similar to e7a9b05

Re: [PATCH] crypto: qat - Silence smp_processor_id() warning

2019-07-25 Thread Sverdlin, Alexander (Nokia - DE/Ulm)
Hi! On 25/07/2019 15:26, Giovanni Cabiddu wrote: >> It seems that smp_processor_id() is only used for a best-effort >> load-balancing, refer to qat_crypto_get_instance_node(). It's not feasible >> to disable preemption for the duration of the crypto requests. Therefore, >> just silence the warning

Re: [PATCH] crypto: qat - Silence smp_processor_id() warning

2019-07-25 Thread Sverdlin, Alexander (Nokia - DE/Ulm)
Hi! On 25/07/2019 15:26, Giovanni Cabiddu wrote: >> It seems that smp_processor_id() is only used for a best-effort >> load-balancing, refer to qat_crypto_get_instance_node(). It's not feasible >> to disable preemption for the duration of the crypto requests. Therefore, >> just silence the warning