Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5558048pxb; Mon, 14 Feb 2022 01:52:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMBUx6FDpH+7VEBZ4+ColEPdsQlc9XmlcZFKv+TO2ZDOuKGekeitu5x6C7sTTJJCpy25SW X-Received: by 2002:a17:903:32ca:: with SMTP id i10mr5728904plr.18.1644832363040; Mon, 14 Feb 2022 01:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644832363; cv=none; d=google.com; s=arc-20160816; b=FtTE7t+rMSE0n7MeBqcjLSLyBRhH34230CSmmJwM0BcPqqrSG7yBmyDIujVkRlU+35 25/u+ouxoFw6dCxL+3s9MZvSrsRfmcFhiAdaBuNVkdfIEjUP5nZ/xw3OCiWmDAOFak0r QrWAp8va9bC4j1EPTNSMKFi6JdTrvYXYCkE7wch22REsSVGPtuBCEGd9yEZhjLGYDDXk gahnXwVRBOAlNJOPphifjVIAzW6pzstZ2Upd9WO77IkpcLhJwGs6CE2Wtl4wMaUmVyt/ HhSKIq2wMIhmg5DLS9fNEFkPnkQAwQg8OExRSJ2bUNMSL8C4znIcO/WhfX/jVcgATu/8 gBSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=N3lrdNS4/5r2vNuUeoDZGdmR2Xdy9dXX1c1PwBQbMxM=; b=twtUROLdWBRogptigc/KLDYyOhaWyQdV9ElgvFaGog8O+f3GPehWOEj7WsNPsoU1mR yE8QxvxlM3iM+dSbWKI5YKQb4aUf9+WbRkK9t/M5m9ycDWLLSyG+O4wJdLMW3Y7v94D9 ksPQ8mukN/9vj2BJu+6D42g9+HDvN2LCMO8C9W4nigA6U/DXIq295Fyu625lOd7RcwPV urzGDOVxmqtA0x/cAgK93VZlRo/P0mQgnnVttvCmRpWuBzRWVurMGJRpHh3FGVPyoAbJ 7jM+EF9sS1tNivoFHCh+kG9hTOBqj+JwXnhUzBqJnP8L55mDZSk6+5dRutv23j12yab3 Uarg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 10si29656387pgb.73.2022.02.14.01.52.29; Mon, 14 Feb 2022 01:52:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232371AbiBLXNk (ORCPT + 99 others); Sat, 12 Feb 2022 18:13:40 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbiBLXNj (ORCPT ); Sat, 12 Feb 2022 18:13:39 -0500 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 969255F8CE for ; Sat, 12 Feb 2022 15:13:34 -0800 (PST) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 5036892009C; Sun, 13 Feb 2022 00:13:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 4182F92009B; Sat, 12 Feb 2022 23:13:33 +0000 (GMT) Date: Sat, 12 Feb 2022 23:13:33 +0000 (GMT) From: "Maciej W. Rozycki" To: Joshua Kinard cc: "Jason A. Donenfeld" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, Thomas Bogendoerfer , linux-mips@vger.kernel.org, Dominik Brodowski , Eric Biggers , Ard Biesheuvel , Arnd Bergmann , Thomas Gleixner , Andy Lutomirski , Kees Cook , Lennart Poettering , Linus Torvalds , Greg Kroah-Hartman , Theodore Ts'o , Ralf Baechle Subject: Re: [PATCH RFC v0] random: block in /dev/urandom In-Reply-To: Message-ID: References: <20220211210757.612595-1-Jason@zx2c4.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Sat, 12 Feb 2022, Joshua Kinard wrote: > # grep -r "PRID_IMP_R6000" * > arch/mips/include/asm/cpu.h:70:#define PRID_IMP_R6000 0x0300 > /* Same as R3000A */ > arch/mips/include/asm/cpu.h:72:#define PRID_IMP_R6000A 0x0600 > arch/mips/include/asm/timex.h:94: else if (likely(imp != > PRID_IMP_R6000 && imp != PRID_IMP_R6000A)) > > I'd say it's better to remove the check and simplify the conditional to > eliminate this corner case. Maybe keep the #defines around for > documentation, but even that may not be necessary for CPUs that likely don't > exist anymore. IIRC Ralf used to have a working R6k machine, but I have no idea what has happened to it. No port of Linux has been made for that system though, that's for sure. Maciej