Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp946663imi; Fri, 22 Jul 2022 13:15:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s3YBx+EUvJCS8OxF3mOmg3TBz1AbJuVAvTOQzxgnczaqlX7EWUvyZYz+LUHLlyc5FZS8b+ X-Received: by 2002:a17:907:2718:b0:72b:6b65:37dc with SMTP id w24-20020a170907271800b0072b6b6537dcmr1191725ejk.425.1658520937630; Fri, 22 Jul 2022 13:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658520937; cv=none; d=google.com; s=arc-20160816; b=Ri4tsj1uIX59XlWH1GE7PbyOkrCnl7w7I2fxyhGyyDzMdZxDny/3p0/9IuER+4hAn3 eR+GiVidr+6aGxfRAwIawnyehm3aIm3q2T6OVNk0HPIysuUhWH9FQ8itEpRla3Ei5l3A 8wjeEP9/Tjfr96OROQuMpvvhIun90S06Sm0A2+p/dxg9oKCNoGXMbOZm9ZbvIglnwyUa gznPHFQCHwwOwgZdXHgCHSyLxITc4bE3UjIOxb2p7ldA8muV8W0PiymG0BpqqnuEl9Il FVzN5spQzk5rrfsiaCHT8giGKOYY0dXHaguqDZe/5xWha1dMTIoxUC9SQI/4C2i7hSeb KN7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cbr6WT7XpEi62xrPCOkJlIx4PWAKKP3fq1AArMiGhbc=; b=kQF9g6SrF29gLU6MhsQr2wsaU8YXEIyKccxKazFqqyNxsdgrawK37vskQxuQNUyxk4 qFu+90ZDBox8GXgYSMdvsjaz3Sa8DE20bLXEESn1sGxZEJOO14OcCOkmLc4nT2ZA1mmV KeGt101eEQjPi7sZ0RV/GK28aRlOMVCkJADtnHezkdyA74RgObIaIWIRSRC5765luKmG SnDy0zJoQk9WpYjSJqxmZLfIT7+q9az/dULmZmXjM4AtQfJ1z8zdpE5rqASxcPmbKYrZ t3xUdWzn+b50ENUeBOVz7RI/srB0JXDEfrfG+A2XRpYZ+uPlFj2TZeOq5en/6u0TrjHN UnHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=GSUj12W7; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di17-20020a170906731100b0072f1dd96738si7354011ejc.140.2022.07.22.13.15.20; Fri, 22 Jul 2022 13:15:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=GSUj12W7; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236592AbiGVUN3 (ORCPT + 65 others); Fri, 22 Jul 2022 16:13:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230388AbiGVUN2 (ORCPT ); Fri, 22 Jul 2022 16:13:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7734A9BB3; Fri, 22 Jul 2022 13:13:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 88D6BB82A1E; Fri, 22 Jul 2022 20:13:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D761FC341C7; Fri, 22 Jul 2022 20:13:24 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="GSUj12W7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1658520802; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cbr6WT7XpEi62xrPCOkJlIx4PWAKKP3fq1AArMiGhbc=; b=GSUj12W70DJwjt1BJXyOY5N1UabSgk9H7Orc5/eJs/grd3SKWKvb1TeNn2QyYMcnJUO1kv /h3jGhXIVSKkwylb6CvonbaUMFK6ArWpkW9dM4mFkvNVhJjzwoqntsgOPr7d4NH6mbRLhw eJaHXMnFSWhnWRyJ+rUaeU7FMN4Wbe4= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 6d4ec7e3 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 22 Jul 2022 20:13:22 +0000 (UTC) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-31e1ecea074so58646847b3.8; Fri, 22 Jul 2022 13:13:22 -0700 (PDT) X-Gm-Message-State: AJIora8xTShtpi1mr5lLv0pwfYXfScOV7jyKnr0EwykWoZEk2PQzd9oe TuS3RVtm9rUNMMuBufn2qXWPhBW8/4UUBx2SePA= X-Received: by 2002:a81:ac11:0:b0:31e:5698:323a with SMTP id k17-20020a81ac11000000b0031e5698323amr1366450ywh.79.1658520800763; Fri, 22 Jul 2022 13:13:20 -0700 (PDT) MIME-Version: 1.0 References: <20220719201108.264322-1-Jason@zx2c4.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Fri, 22 Jul 2022 22:13:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v10] ath9k: let sleep be interrupted when unregistering hwrng To: Valentin Schneider Cc: linux-wireless , Kalle Valo , Rui Salvaterra , "Eric W . Biederman" , stable , Gregory Erwin , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Herbert Xu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Valentin, On Fri, Jul 22, 2022 at 10:09 PM Valentin Schneider wrote: > I had initially convinced myself this would be somewhat involved, but > writing the above I thought maybe not... The below is applied on top of > your v10, would you be able to test whether it actually works? > It does however mean patching up any sleeping hwrng (a quick search tells > me there are more, e.g. npcm-rng does readb_poll_timeout()) I'm not able to test this easily, no (I don't own any hardware), and I'm not going to put in the effort to rewrite/audit every sleeping hwrng. That's not a good use of time, given the numerous other problems the framework has (briefly discussed with Eric). Instead, maybe at some point I'll look into overhauling all of this so that none of this will be required anyway. So I think v10 is my final submission on this. But if you'd like to attempt more comprehensive changes throughout the tree on all the drivers and do something large, I guess you can do that independently (since you mentioned your thing works on top of v10). And this way v10 still exists to fix the actual bug that's currently reeking havoc. On the other hand, maybe don't bother, and we can look into fixing the whole rats nest properly in some months when I'm more motivated to jump into hwrng. Jason