From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8329E9381D for ; Mon, 13 Apr 2026 05:55:05 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fvGpJ0RwMz2yjV; Mon, 13 Apr 2026 15:55:04 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=78.133.224.34 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776059703; cv=none; b=h73My/5x6/qvXAVkWB9R6o5d4qy0OFVhcHdRmS2SNrupcHAweQfLj+3boboIcb3g/W4vRTkgf3nmgPhhrHOfmT7ZfU8a85mKNc6bokJ+fhDFqzWcPR/ixBL6cj8nT1riPNpZjNk9wkY6GpbMEuVOxeDZmy8eFAku4oZJiu5C2EtnU+Xx/kPo3FFkbTNwmqd8aX1bEQ1OFr0DMRqcWRIU3d9doToPHh+PPRJ2ajvivOeOHZNihnkcx8C+PT8c5jeCFj8yXDm3nWGz/Ek1+bh/vv1PcpFVAumZV/iu6WOPnLYhSXYsDnGP49lDPL8iMhiiwatQITWdVHV40Vs2Nv7sIg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776059703; c=relaxed/relaxed; bh=Sl2okSSer0UQJVmm+gu+avWeu7+IMVxq4F8/vWo19rI=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=j6LxxUBUztLWtTQj6UF3DBmNvFeyA3iAoK34BUt7m+cqHsw6dp1Ej6ZdlUKlyL4KOBnptvDYGdlBBQLVzP4800xy1WnV75hwl95brwMReyZRfOvRVkIBX2k0C1EhFOfy47WGmPCttL6uBFE/apAGSlxAbPyA0hSqIl5/qQJ9d64E1HfQbiFussL8+zd7+0hb9tzOZIrVCFAkgUY6ViM2F9ErJFRBhNcAsSNjCJZgqXAmZRwoWKhffO1RpJ/n7DlypA43gGYBiQpE8vTkuddyYTbyueM5uUlI/l9HnmqBh8FKk8IrywUgZrZ93eE918AiqALrMm8k/HtlXRMI0QSipg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk; spf=none (client-ip=78.133.224.34; helo=angie.orcam.me.uk; envelope-from=macro@orcam.me.uk; receiver=lists.ozlabs.org) smtp.mailfrom=orcam.me.uk Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=orcam.me.uk (client-ip=78.133.224.34; helo=angie.orcam.me.uk; envelope-from=macro@orcam.me.uk; receiver=lists.ozlabs.org) X-Greylist: delayed 425 seconds by postgrey-1.37 at boromir; Mon, 13 Apr 2026 15:55:02 AEST Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lists.ozlabs.org (Postfix) with ESMTP id 4fvGpG5Ycqz2xTh for ; Mon, 13 Apr 2026 15:55:02 +1000 (AEST) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 2FA4892009C; Mon, 13 Apr 2026 07:47:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 283D292009B; Mon, 13 Apr 2026 06:47:45 +0100 (BST) Date: Mon, 13 Apr 2026 06:47:45 +0100 (BST) From: "Maciej W. Rozycki" To: Thomas Gleixner cc: LKML , Arnd Bergmann , x86@kernel.org, Lu Baolu , iommu@lists.linux.dev, Michael Grzeschik , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, Herbert Xu , linux-crypto@vger.kernel.org, Vlastimil Babka , linux-mm@kvack.org, David Woodhouse , Bernie Thompson , linux-fbdev@vger.kernel.org, Theodore Tso , linux-ext4@vger.kernel.org, Andrew Morton , Uladzislau Rezki , Marco Elver , Dmitry Vyukov , kasan-dev@googlegroups.com, Andrey Ryabinin , Thomas Sailer , linux-hams@vger.kernel.org, "Jason A. Donenfeld" , Richard Henderson , linux-alpha@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, Catalin Marinas , Huacai Chen , loongarch@lists.linux.dev, Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, Dinh Nguyen , Jonas Bonn , linux-openrisc@vger.kernel.org, Helge Deller , linux-parisc@vger.kernel.org, Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Paul Walmsley , linux-riscv@lists.infradead.org, Heiko Carstens , linux-s390@vger.kernel.org, "David S. Miller" , sparclinux@vger.kernel.org Subject: Re: [patch 28/38] mips: Select ARCH_HAS_RANDOM_ENTROPY In-Reply-To: <20260410120319.462206386@kernel.org> Message-ID: References: <20260410120044.031381086@kernel.org> <20260410120319.462206386@kernel.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Fri, 10 Apr 2026, Thomas Gleixner wrote: > The only solution for now is to uninline random_get_entropy(). Fix up all > other dependencies on the content of asm/timex.h in those files which > really depend on it. Oh dear! I'd yet have to fully evaluate the consequences, but offhand this has clearly turned what compiles to a single CPU instruction on the vast majority of MIPS platforms into an expensive function call, possibly also changing the caller from a leaf to a nested function with all the associated execution penalty. Is there no other way? Cf. commit 06947aaaf9bf ("MIPS: Implement random_get_entropy with CP0 Random"). Maciej