Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Timur Tabi <timur@codeaurora.org>
To: Stephen Boyd <swboyd@chromium.org>,
	Matt Mackall <mpm@selenic.com>,
	Stanimir Varbanov <stanimir.varbanov@linaro.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org,
	timur@kernel.org, vinod.koul@linaro.org
Subject: Re: [PATCH 1/2] hwrng: msm: add a spinlock and support for blocking reads
Date: Fri, 22 Jun 2018 16:17:24 -0500	[thread overview]
Message-ID: <2ad6d37c-66eb-c173-95bc-f838d03e6741@codeaurora.org> (raw)
In-Reply-To: <4bc0afe1-0189-88c0-40aa-23a312325635@codeaurora.org>

On 06/22/2018 01:03 PM, Timur Tabi wrote:
> 
>> Perhaps it's because you implemented the 'wait' functionality in this
>> driver? Before the patch there wasn't any sort of wait check so we would
>> bail out if there wasn't any data even if the caller requested that we
>> wait for randomness to be available.
> 
> No, my tests showed the race condition (or at least something that looks 
> like a race condition) even without the 'wait' feature.  I added support 
> for 'wait' only recently, but I've been working with the crypto people 
> for a month on everything else.

Looks like I was wrong.

I created some new tests to reproduce the problem, but I can't reproduce 
it any more.  I can only assume that what I saw as a race condition back 
then was something else entirely.

So all of the spinlock code needs to go.  It looks like at this point, 
if Vinod can add support for QCOM8160 to his patches, the only thing I 
can contribute is support for 'wait'.

-- 
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Technologies, Inc.  Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

      reply	other threads:[~2018-06-22 21:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-21 15:17 [PATCH 1/2] hwrng: msm: add a spinlock and support for blocking reads Timur Tabi
2018-06-21 15:17 ` [PATCH 2/2] hwrng: msm: add ACPI support Timur Tabi
2018-06-22  4:23   ` Vinod
2018-06-22  4:26     ` Timur Tabi
2018-06-22  4:44       ` Vinod
2018-06-22  4:46         ` Timur Tabi
2018-06-22  4:48           ` Vinod
2018-06-22  4:17 ` [PATCH 1/2] hwrng: msm: add a spinlock and support for blocking reads Vinod
2018-06-22  4:18   ` Timur Tabi
2018-06-22  4:24     ` Vinod
2018-06-22  4:28       ` Timur Tabi
2018-06-22  5:36 ` Stephen Boyd
2018-06-22 13:11   ` Timur Tabi
2018-06-22 15:38 ` Stanimir Varbanov
2018-06-22 15:41   ` Timur Tabi
2018-06-22 17:51     ` Stephen Boyd
2018-06-22 18:03       ` Timur Tabi
2018-06-22 21:17         ` Timur Tabi [this message]

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=2ad6d37c-66eb-c173-95bc-f838d03e6741@codeaurora.org \
    --to=timur@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=mpm@selenic.com \
    --cc=stanimir.varbanov@linaro.org \
    --cc=swboyd@chromium.org \
    --cc=timur@kernel.org \
    --cc=vinod.koul@linaro.org \
    /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