[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHmME9o0MKz3zA3BejM7h7PBOEXFxER626z_VnQMvKBA3m3prg@mail.gmail.com>
Date: Sat, 25 Jun 2022 02:40:01 +0200
From: "Jason A. Donenfeld" <Jason@...c4.com>
To: Gregory Erwin <gregerwin256@...il.com>,
Toke Høiland-Jørgensen <toke@...hat.com>,
Kalle Valo <kvalo@...nel.org>
Cc: linux-wireless <linux-wireless@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Rui Salvaterra <rsalvaterra@...il.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
stable <stable@...r.kernel.org>
Subject: Re: [PATCH v2] ath9k: sleep for less time when unregistering hwrng
Hi Gregory,
On Sat, Jun 25, 2022 at 2:13 AM Gregory Erwin <gregerwin256@...il.com> wrote:
> This patch is working as you described. Trying to read from /dev/hwrng
> consistently blocks for only 1.3s before returning an IO error. The longest
> that I observed 'ip link set wlan0 down' to block was also about 1.3s,
> and that was immediately after 'cat /dev/hwrng'. Additionally, the longest
> duration that I observed for wiphy_suspend() to return was just under 100ms.
>
> Tested-by: Gregory Erwin <gregerwin256@...il.com>
Great, thanks for testing. I think that barring more invasive changes
to the hwrng subsystem, a heuristic approach like this is the best
we're going to do inside the ath9k driver itself.
So Toke/Kalle - can you queue this up?
Jason
Powered by blists - more mailing lists