From patchwork Mon Nov 25 17:12:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 845356 Delivered-To: patch@linaro.org Received: by 2002:a5d:688e:0:b0:382:43a8:7b94 with SMTP id h14csp1313159wru; Mon, 25 Nov 2024 09:13:22 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVg/7Xw7YoPjKmysiJLox3gsaHJXl6hAfUtYvlv2vk5z4XH27iUS3/G2i7qe0ZZ/fTnWI3tMA==@linaro.org X-Google-Smtp-Source: AGHT+IESyVfxedHRYVSkkWjgosN+Me0cEqam2ZYdtA7veK36MkR6LNZDrBxB8vtqO6NEM3mkXunM X-Received: by 2002:a17:906:314f:b0:aa4:9ab1:196c with SMTP id a640c23a62f3a-aa50990b24emr1126503866b.9.1732554802484; Mon, 25 Nov 2024 09:13:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732554802; cv=none; d=google.com; s=arc-20240605; b=HkQ4KJ/V/SSJ8QpxC9DJ6i4rGUv7n89Cte4Vl8kYxRxtZl7G4kWUrYQg4X/Rjubf7t zVtT8wdbpK8O1YTqhRldxjBa4/FJalTTsCRlX/gI4fjJNJxQqUEEM+JZZbIzeO4xUOIK 19/v/4EK+DEm1OHmGJNdzMwQjaPvW+m3HkU36zUVwnvLK8uYBo2eW/ES869r6KKzpbwu Kyw5Ym9YLhOySJhScjcihcj1WYm3szvE6Y7QjeiGQ/P1yEfuw0TgnNZHs1/L40A03HXx sjugVI0xEsdiXxDJpgyE4bkmIl6HnEY45fRoVsVLIWYA9GSjXzDgybnCgy4Oq3+DX1MG zv2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=F331ANeodgGj+3Dj869WB+lkkCaNgcX65CXGAJzLS8Y=; fh=mp9q+KS2lHpcq8rctuSa4AEaPi1fVSUhrtkuqPhoCvU=; b=ODn1cMWqjVzH8RCOrIix+rPZWSlpTDC5W2FGAD9jtcCxOdXor0/PCdsa40a7Y4x0BY KZs6HTkP/3KVs48bPrN022MMDDET5uojf/S4N3/JBJJIfgWxlmwEsisIia3aioKxBsgU xJzhChYXLObR2h18iRirY+DRFvCQqc6moVsTsZNSonwYxscuZ88J++7NJr+PyHJugqwK yndWjNsRhSJMedAHN0sqGaTeeC5Ni1b8x63ZmYVril4gO/QkAEZ6NzWbf6uUZYBfeo+h +cSuoZ1knHFkt1gi+Tw3v0lLr7KS3dyah0mZ1olVZctaO2X6zp9FOVZJHNoqZO+bZH0o ZIsA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ilXX9Et+; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-aa50b5575b0si511694266b.591.2024.11.25.09.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2024 09:13:22 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ilXX9Et+; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9A1F389A5B; Mon, 25 Nov 2024 18:13:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ilXX9Et+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5910C89A5B; Mon, 25 Nov 2024 18:13:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 490DE89A53 for ; Mon, 25 Nov 2024 18:13:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=neil.armstrong@linaro.org Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-38232cebb0cso3614646f8f.1 for ; Mon, 25 Nov 2024 09:13:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732554786; x=1733159586; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=F331ANeodgGj+3Dj869WB+lkkCaNgcX65CXGAJzLS8Y=; b=ilXX9Et+QkG2hUM4jcy8ArxTzW9k6vkNtCi0gHp5cBDL/mMHoB66evpABj8h/C58Bx Z2s6ui5Rt8j5Bd9U4hQpxSxJEnwLdn8tVoWPEZ0KLt1zNJUc+tnDBFIPvCrBCWdTcTgT /Tyq7I9up+ZXk7HIUQWUQYaYLshntT1bIe2CWZuixNqENGMdnx12EoFoJIMn5axg9zbv 5Yn1ODMC9VkfJ3mLf0vBKOMR0Cpy8JZR1bZVqzfa7L7RIpRvg78ncXMqZOqTpQIGkDPs lO+FwIdZ5HNw+OiNkbBpgg2uGnbNkWOhh1q/3mCrAdYIFIdge5y9MofbVqqs6u5j+xy8 WzpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732554786; x=1733159586; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F331ANeodgGj+3Dj869WB+lkkCaNgcX65CXGAJzLS8Y=; b=LKEgn+9MEYQ9rgGQHDBcWPhU4fZvfftK5xEVrxnTWCpGuK3vAFXk9COs5C15EYeYXP cTss0OU8G5yqfy9b7Wwn6gO90J1MPWs+drtRJFUSbsniUlG+hx9dOLRjYcOrd5B7U8Nl V32V282/3nG6uBuJINCZsCNVY6KXGX+LA/JR5HE+YxG2/jCrcxONbzEC3W6HGKwuzF8M hQX7NOUk/3PJaWrJ3VfXB/egJrY85c8H+qQOw3do6vDFE+PJGChYvxE/G/ByhLPT6YcI Aop+GIIMywaBtot4lE4Q8mhcgHkbxvTVBRp09k8Dh/msbSFHKjlAt/N4mmf0GiCWf1WC dK1g== X-Gm-Message-State: AOJu0YzZFZI6OZVFVLH10tAKlFiPD+l4X7tlDP1Q4bUVZOMvef6z1hZ6 Pn5FSabrGwByskwerOTp/exRAhIFxwJGtxLrKVhv3BeMuzjLn0PW3J4FtAoSfWw= X-Gm-Gg: ASbGncuozuE9bLPAfXZVlMZRXTjMGowGgLfJosey/0tXsPTBaoYTQHFlDnSDEMM5d5M WnBPVSWayRuNiBHSoFysOIEyUxOcALieiosGBpkv6rAgsIj0rrBI6YN/kwH3omRd/+z8f2j01DD CV+rpf8ylRKLDDAZAhKy4XT7cQ4e6K/QdDW6S4mwu1FsgSF5ezBQ0vkqAdqHf6QknlmyaeN+dif DpU39saucTOI2Elfh9oAHtZt+4WEDmXuGm96W6KbbNoEWP999l3f8bG/bMBYH+WCfJA5o0= X-Received: by 2002:a5d:64ac:0:b0:381:d890:b4b6 with SMTP id ffacd0b85a97d-38260bd94f6mr12368877f8f.48.1732554780176; Mon, 25 Nov 2024 09:13:00 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fcff017sm10919419f8f.108.2024.11.25.09.12.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2024 09:12:59 -0800 (PST) From: Neil Armstrong Date: Mon, 25 Nov 2024 18:12:56 +0100 Subject: [PATCH 1/2] rng: msm: add support for newer Qualcomm hwrandom IPs MIME-Version: 1.0 Message-Id: <20241125-topic-sm8x50-rng-v1-1-52b72821c3e9@linaro.org> References: <20241125-topic-sm8x50-rng-v1-0-52b72821c3e9@linaro.org> In-Reply-To: <20241125-topic-sm8x50-rng-v1-0-52b72821c3e9@linaro.org> To: Robert Marko , Luka Perkov , Sughosh Ganu , Heinrich Schuchardt , Tom Rini , Caleb Connolly , Sumit Garg Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io, Neil Armstrong X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1820; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=eBg4Ydo4UCF/rdI47CkqU7I7R82YACn0mrqKh33uHJg=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBnRLAZDOs4YzDpAFqWAZRLAeXoUOmUPqZuaat6VKLd FJ3CJWmJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZ0SwGQAKCRB33NvayMhJ0TNdEA CmWnSWeaJRLu2VrF5HWhWqBjWU6VxqjcuBQMbUDi7qHExkI7dbQyyII/KPdXhrhFMZehvLvLxpIlRg hhy8hpt+Y+D0wlS4BtlKqRf3GJLo34cYmM00fYh1N+NH5BtHNHiKm13fyg6DpDvp9GWt5cxhRNS3gY c5lxz8K5eb9wHKeSo7M+uwJRexMUzrDmjWu894ckBUNIpPvQXDAoXcOp6TMC3xB0aHMkcUUQN+l2Vk raW08JnNEiq6TzUquI+sC+mGJj2GKrkddyf3xRD0WKDZ0sUdP38c7IyO9vXehnQq2kWlqhg7KzBH2i Dt1agwWF6mwWcKtfDbxQhLdIclRPTjcyxjZKpvBFofA+cO/8UMz6XECjB2+qw2OOVqQTIeFo8pFXrr hoJxzXDx3fHbiD0rvlYbE6jfq/He3wuEUaSfRrkkxNsXBkGDopJ5RAViPTA+VyzgNksre/U0dkMh7p Z0sKJHHhKI2MvSdQLPWq3eCnyu9VHiovkAPQk5n+I25lbgoRZUo7C322XPzSI5ZXcdNxGsNk3ziwoB aMXlmwKRui8XuONMgQc2zlCLEopAhR3G69P6AuN5IRCbG1bDCeccpJ14gSrMRHO3AdkMW4ioPPjuhy BiIUPMZU5l6nIDgeZZ4wiKkm0+ZT2Nb9iJ4HZuQaQwmhnkSpBr732I2hpAAA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On recent Qualcomm SoCs, the hardware random generator is initialized and handled by the firmware because shared between different Execution Environments (EE), thus the initialization step should be skipped. Also support the newer "TRNG" found on SM8550 and newer SoCs that has inbuilt NIST SP800 90B compliant entropic source. Signed-off-by: Neil Armstrong --- drivers/rng/msm_rng.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/rng/msm_rng.c b/drivers/rng/msm_rng.c index 658c153d3edb2590b0b470e3067da9aac76169ac..f790d3b60f99bfc04ecd9acdd21405a8c38c257a 100644 --- a/drivers/rng/msm_rng.c +++ b/drivers/rng/msm_rng.c @@ -34,6 +34,7 @@ struct msm_rng_priv { phys_addr_t base; struct clk clk; + bool skip_init; }; static int msm_rng_read(struct udevice *dev, void *data, size_t len) @@ -100,10 +101,15 @@ static int msm_rng_probe(struct udevice *dev) int ret; + priv->skip_init = (bool)dev_get_driver_data(dev); + priv->base = dev_read_addr(dev); if (priv->base == FDT_ADDR_T_NONE) return -EINVAL; + if (priv->skip_init) + return 0; + ret = clk_get_by_index(dev, 0, &priv->clk); if (ret) return ret; @@ -119,6 +125,9 @@ static int msm_rng_remove(struct udevice *dev) { struct msm_rng_priv *priv = dev_get_priv(dev); + if (priv->skip_init) + return 0; + return msm_rng_enable(priv, 0); } @@ -127,7 +136,9 @@ static const struct dm_rng_ops msm_rng_ops = { }; static const struct udevice_id msm_rng_match[] = { - { .compatible = "qcom,prng", }, + { .compatible = "qcom,prng", .data = (ulong)false }, + { .compatible = "qcom,prng-ee", .data = (ulong)true }, + { .compatible = "qcom,trng", .data = (ulong)true }, {}, }; From patchwork Mon Nov 25 17:12:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 845355 Delivered-To: patch@linaro.org Received: by 2002:a5d:688e:0:b0:382:43a8:7b94 with SMTP id h14csp1313053wru; Mon, 25 Nov 2024 09:13:13 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXc7opKSdLIIbMmufEebiFyDktQDAR+TCulMH3IOKXukGsTSGvvAELW5MRhIGS+NtvGf97wYA==@linaro.org X-Google-Smtp-Source: AGHT+IEjKLKFtapdoSELhMPvJu6qho3cZnbwc8B3u5EDKp+YL+z607Nq9qkP3/Srt0q2C8qiu4kS X-Received: by 2002:a05:6402:3486:b0:5cf:ac34:380a with SMTP id 4fb4d7f45d1cf-5d0207b2755mr8977844a12.29.1732554793563; Mon, 25 Nov 2024 09:13:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732554793; cv=none; d=google.com; s=arc-20240605; b=g7Ii4Z4yGP29B6F4RHHJ2WgB59d1QDklHZ5slZ7OL7//brmJgi5cd2n64gVftFI0ab VkljT9WHWv+WSCmH1/jUTj4fJw7PnGZshEYn5KIjkDyQC9/Ggs7LOQDrMj2SloalvWft R8vN1E9N95WR8mxvVDdqvs1cunh7PPMdGypnZpAnCsZoAF3g8G5UuxWIy33rKM4q6G1n NhaEf6Xho7XrO0IlldDLpE6uE77/gC9Wf2+NFFUOJafwJSl/vClkm3DZhjIUisGy0MRQ KFy0mmsp6eL0OIyhhOGdL9yA01n387ugCN3miE4OEguZoTL3bnsPx9kVMSL1ACvLh34q QqqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=mAeXDEtmKQtx/Y4UDIV53sYZdZn3U0huEcR0YJ+ZS28=; fh=mp9q+KS2lHpcq8rctuSa4AEaPi1fVSUhrtkuqPhoCvU=; b=F2Ssh6qZArV6mXvWizyTsn4w2J6NUTiMsZBitwIfNz6BymuryZC5jHj5iO3OmQjOxf 5iO0qulExT5S+zkFBNw3ZDjiKLC35eA9yzOloFPHD1QmXdakrwp4qsE4vaBp9EKN1S3p F6KgVkFYldk4IXhzcHkLwszy6ttTPXS8GBhKo7s/qm3kh/KlGn46KNlDPYrVqqkuZCKe 87QxbvMLRT5mIJ8Of07xapXrsIMr2JDMX/0nf+M1H64+3OFivQyrx7CYESd8lXssqVFY duQNdw7urmRwpbpTF77qxNUamKzZYteVXAaR/2M6nl38wCorwrNpXZyKvrKW5alFQEaO 7YLA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ri8xPTZd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5d06775c660si357813a12.303.2024.11.25.09.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2024 09:13:13 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ri8xPTZd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 49B2989559; Mon, 25 Nov 2024 18:13:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Ri8xPTZd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E62D789A1C; Mon, 25 Nov 2024 18:13:03 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D2090895A0 for ; Mon, 25 Nov 2024 18:13:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=neil.armstrong@linaro.org Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-53de035ea13so1572630e87.0 for ; Mon, 25 Nov 2024 09:13:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732554781; x=1733159581; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mAeXDEtmKQtx/Y4UDIV53sYZdZn3U0huEcR0YJ+ZS28=; b=Ri8xPTZdPmhIKZOS+eAsozYP7lZ4eBKSNHiAZv8bXhdURxVrWWr2OeleG2kRgCG8ku /0DHaOq4xAS+edC/pnx5sFnEQ0HJjfqCuXiveWZ9GhdDpLB2z2CiHq5pJGbIbgkZ3SyN 410xlrb0cgkhGgKpxZfq7Ttxy2JbHf/AGy6iQYrpLPYvscicAb8nmzsUeRuN1ix4q/Qo yAWgZFwHso3+xIWGGBdkbamX5CynIZpbjXMlE0weIxlObUV7fIop1WQv4EDdk45M8mQy ZS/d96Adjh3VNjxndeutdDXA8RZcQioG1j3xLYBKnVCwNUt1l4VV4+XWZ3iCPlDOxWQs hbVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732554781; x=1733159581; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mAeXDEtmKQtx/Y4UDIV53sYZdZn3U0huEcR0YJ+ZS28=; b=tvQIATJUfGcvSGhQVSBLEbEZEFsl+NUilgLUeTvUOSdTMq7mnSgIpZe1HBzxEst9VM LqQw5EdxT2Xk4N3VlOPGrP6ZwCpCs3AJuMb4daY45te836LrLDmuBfwr3biwFzN1X16I WXchv8m+yvOY1rWgaJSroXlQoQqL3YFez1G42fnr3wYe1RwR/06HwDEDciTPMMn8jOiT 4v5/4yCciW2DcDRROD+XDbFKJ8dsUkTcD8741feTBAX8AFoXL0nHoIpaa5v6jI9+ADTQ /fzRRCjytlTv36jKO9OmulWTfXTsbRuYttv6NwHuTAf0nIpOoswEqEzEMWbePr0SdY/u DsGg== X-Gm-Message-State: AOJu0Yx9l5f+Vb8OkhNM0Jr/Xs6P9Jh+pcsHK0leGJV3BIfA8/q7286C 4MSwBv/Hy1b4Hymo3GOTzBMCKZj3xYPo8Mag2/6xdhWURUiaaVXEQkc6zzM7ess= X-Gm-Gg: ASbGnctOwx4gncI/9hR8wvibr4CN8foKymFFb5pK88CSsqUveA/42JRRo/TSxD2jp3W 2MulJJr7WAhkQJ5oWB1Y/HGA7lHarEuQtB5hnMxCXHpLM43ZJfpRwVAEDTOBTSrHq0P9Uy6iBzn DgaKieM0V5jrtw2KxdaJiVOciHjjew9BEX10sA/3o+mYfYXaL8Mjh0gzfgOE8I2fxOKsdHkckYD CfwEUPs+yaKNRvX3oJGf4oi1aZ7hqFzv4OIZqaIfRj901RzlPnTxyDZBWT5yPoYfCQzboE= X-Received: by 2002:a05:6512:e83:b0:53d:df26:b782 with SMTP id 2adb3069b0e04-53ddf26b7cbmr3107640e87.31.1732554780990; Mon, 25 Nov 2024 09:13:00 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fcff017sm10919419f8f.108.2024.11.25.09.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2024 09:13:00 -0800 (PST) From: Neil Armstrong Date: Mon, 25 Nov 2024 18:12:57 +0100 Subject: [PATCH 2/2] configs: qcom_defconfig: enable RNG driver and command MIME-Version: 1.0 Message-Id: <20241125-topic-sm8x50-rng-v1-2-52b72821c3e9@linaro.org> References: <20241125-topic-sm8x50-rng-v1-0-52b72821c3e9@linaro.org> In-Reply-To: <20241125-topic-sm8x50-rng-v1-0-52b72821c3e9@linaro.org> To: Robert Marko , Luka Perkov , Sughosh Ganu , Heinrich Schuchardt , Tom Rini , Caleb Connolly , Sumit Garg Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io, Neil Armstrong X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=886; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=vJUMWPzm73V7xONpa/LBdHLuHJz/FIZN+BIAep3WR6k=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBnRLAaNHxCmx/v8Pl5nXeZALJ1WZOxv71MInIy+lQC TNPnw42JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZ0SwGgAKCRB33NvayMhJ0SexEA CcHpaURqF6VWqarEPsbUenYGAPA+EK1GJJxDPS89BXo8M7LPeQtqlqfNWI9zpb0UTJSFk86YFXBN28 Lx1vcCWEIDbK1IYOwqiSiqFJ3EM9c2/T9MRLpnDrmutnggmm6FmskGzIpHoipQlRk86dohcKQh0t6F RzVhGuMkYx+MtpIDh9M3yAWp3AW4inPjFs/2AQLDgTHyrxpsre9yegjRimNR2IRsmnqmVTdBEzx7jK EMR2z8mnrwWhdVlQ3ydd7pWikZRf+jA1ns0vTYPvbLa05GmtTwMrYqXCktctv6b3WGNivBCVPm1cML LCxtnYEMqBsgYuRg87oPLfCpBpLkp5n2TqVwO8kbThW5adLAMahNrioBYHkqhHtmuBZ+SGw0Rlj/7i z81E0xlPxUilVo2OwDI5gG+yR+CBY6A8saw7ZBqQXGJrKq3WXK3rtdc5thqS/uoEExYzcBNskC8XtE ignOld9UNJBqXKhrt0TmSS+qvafi/bHrQpQz8e5aSoYUMixeic5Re0PIpNEu2dssf5/KlLyuJECGrp yKQkCykE0eHIKO8kuwI62BaB26jVdpfRTKWNqbbk/w2caqdD1Xhls5qpHCZTWHRv8GO8ZTOLjEOVqD Cnnj0OkWvv2VZSh7AC7SvSUWdRdEzj5HxhRcnt6galN9n7N1PahrLxQvhD+A== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Enable the MSM RNG driver by default with the associated command, this will fill KASLR seed when booting Linux. Signed-off-by: Neil Armstrong --- configs/qcom_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index ea0dd3e58018c8bf08e4a455a47e29cf1bbd3c60..fa631ea4976a2c38494832b196c60fd127288cc4 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -34,6 +34,7 @@ CONFIG_CMD_UFS=y CONFIG_CMD_USB=y CONFIG_CMD_CAT=y CONFIG_CMD_BMP=y +CONFIG_CMD_RNG=y CONFIG_CMD_REGULATOR=y CONFIG_CMD_LOG=y CONFIG_OF_LIVE=y @@ -96,6 +97,8 @@ CONFIG_PMIC_QCOM=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y CONFIG_DM_REGULATOR_QCOM_RPMH=y +CONFIG_DM_RNG=y +CONFIG_RNG_MSM=y CONFIG_SCSI=y CONFIG_MSM_SERIAL=y CONFIG_MSM_GENI_SERIAL=y