Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1712747iog; Sat, 25 Jun 2022 17:45:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uQAEMlRsA7X5oiYEdKFP1FRz9mjfFyXIN/LoYIuyVQTFhQI7p8dMt9DW8ekvBjErKIphae X-Received: by 2002:a05:6402:348e:b0:435:a912:355f with SMTP id v14-20020a056402348e00b00435a912355fmr7802763edc.326.1656204357193; Sat, 25 Jun 2022 17:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656204357; cv=none; d=google.com; s=arc-20160816; b=gnscI7PSihVmUr8ORRqVbYSkT7TO1Eod0hh9e7NCcOQ6Vip5GBa+gDjCij1fe6boo6 qooFZy91rzH7Vk7pjw0sHpK+DKn+jE7Cb8Mt0ftC6UVT3jUfKIkt+lfxWP4IU+mWJtnF HTex1+RWKaBfOU8QKZfaVFv+cGfz3kcoGtgw3n/I4eePLrVbuqTyt67ETSYfe9hv3DLL XIMRl2S6qSLIOp7m22afsvMdDrWnYWoYnpdZ2JvApaFqdPVfCu4Y54tszu/h6yKyqwk5 eOHYt5vEjT45S0xzdbR9rTiVYMPKIp6ztb34HAwCOJ9qEdNslILOeLesofGuJcfv/W7u bnlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:to:from; bh=FP3U02hXDZeRQQ35rUMxn2pmet7wvUF00j37Q2Rb66w=; b=qDK5D+JsbuTVGiAsNofz5lAOgqJPmpLUrbb/IqYkPYKrnfP/8PZeWD83E9ckp3D4BJ pl+yUi3OGOW/cI3gQT99Qgw8qqqevTDBD/4Soot4rSZyAsK+I1ID4eQ7xd7vK9u7pdh+ 7oFkrDLI08fCxQ5ioTfHQAtUGyc++hMq5WW8KS6wS35Wa2OsczP0TeNvAKLJlUXswJYC xtSzTHhEbCv8KjEckHT9ZYMGsjtotyI0ndP9yK4ZV65LIrDZgmeQ9foqao9dx0qQG2+h 9FC+jM0AXM9t2hsVvJPzOO4a4m05VRFwly7P8aKtGUjKf3vjFBXl8zpGmTqodcdZROKc epuA== 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 l1-20020a50d6c1000000b0042df786609asi8763957edj.262.2022.06.25.17.45.33; Sat, 25 Jun 2022 17:45:57 -0700 (PDT) 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 S233705AbiFZA26 (ORCPT + 99 others); Sat, 25 Jun 2022 20:28:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233605AbiFZA24 (ORCPT ); Sat, 25 Jun 2022 20:28:56 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B28AF13F0B; Sat, 25 Jun 2022 17:28:54 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4LVsD22mHNz4xZB; Sun, 26 Jun 2022 10:28:50 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , stable , "Jason A. Donenfeld" , linuxppc-dev@lists.ozlabs.org, Michael Ellerman , LKML In-Reply-To: <20220621140849.127227-1-Jason@zx2c4.com> References: <20220620124531.78075-1-Jason@zx2c4.com> <20220621140849.127227-1-Jason@zx2c4.com> Subject: Re: [PATCH v5] powerpc/powernv: wire up rng during setup_arch Message-Id: <165620330450.1934578.17474382204617879607.b4-ty@ellerman.id.au> Date: Sun, 26 Jun 2022 10:28:24 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,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 Tue, 21 Jun 2022 16:08:49 +0200, Jason A. Donenfeld wrote: > The platform's RNG must be available before random_init() in order to be > useful for initial seeding, which in turn means that it needs to be > called from setup_arch(), rather than from an init call. Fortunately, > each platform already has a setup_arch function pointer, which means we > can wire it up that way. Complicating things, however, is that POWER8 > systems need some per-cpu state and kmalloc, which isn't available at > this stage. So we split things up into an early phase and a later > opportunistic phase. This commit also removes some noisy log messages > that don't add much. > > [...] Applied to powerpc/fixes. [1/1] powerpc/powernv: wire up rng during setup_arch https://git.kernel.org/powerpc/c/f3eac426657d985b97c92fa5f7ae1d43f04721f3 cheers