From patchwork Fri Aug 11 20:50:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13533 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1361632vqi; Fri, 11 Aug 2023 14:19:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEONBy9jbkr26B+VW5qR2NHzULZ20vPksqp2yuQF+a38PYq1Wfhu8sH0B3bgpyFLbSoJgTW X-Received: by 2002:a05:6a21:66c6:b0:133:bf9a:dd16 with SMTP id ze6-20020a056a2166c600b00133bf9add16mr3373757pzb.35.1691788770227; Fri, 11 Aug 2023 14:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691788770; cv=none; d=google.com; s=arc-20160816; b=r7A4HkTxmnoZT77X8yl8ZK57kF5Q7BI/DNa2rJn9MNP2RDDn9VTB2eDn7n6RxnG879 gUN0vU8p7HmGyhXe/mqO7g8LJ9pa5GBR+mJfcWrf7iX/3FrKWxG4T/j882f//rT4g0G6 nedVdXkgVl9JgAYJWR81Q53r0DeagmtHjMwMSG3h9VW1wfG+4ytj5S9y0p6da4HdYkHc O9FXe2+9ELS2Jfn3aE+kz1xzpDCcgaygTrJKVvJwx4tavG2ZDIWEO14VRcZJ4Ewx84+I rkQVguVWBMUJ+ZqWSubmLDxzpJmHSnnWg8tThA9DDIfCTNAZaRd5Fvup0X/x/Ywheoft 16hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=3jqJojQwGIq+MbCn3Pj9qfGFrLvfGPKUQcVkXP9fboM=; fh=bUNWcrY0qdCVVd2HHVRe0BtoILtJb2B5/yQdhzM8huU=; b=RBLTovrEXqOpn/JhBG2fqii3wW8HFn/pn73BqZdyysCGbsFKsdADWtc5v0+j2DrBV6 d9//RIWNS6Ev3X8T7iGgFgB/QoBYqdmjhrnPlVHZ2Dg3b4fmxp6qc3FIjBH5x/Z9KNZS pctk9zyw8/eZGOL+rZro/Zq6XzlqrG6Xnd9UEmX2BzRpZG191SQfAJTmDuk0ZWzL96dE evJ5/kznthxR2iGX9st6B48YD7To2aI8FCoRS92CoX9KFloNVL8cCN1yEcligHN5L/lx JkVSEHxw0RMGyOXhXzH1Wi+Pf1noK7367WZc7SVRxNHQ6ew2+306yfcTrT0Kcih2w5AJ n59A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FoBWDVFK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a65678c000000b005649f501e33si3957846pgr.789.2023.08.11.14.19.17; Fri, 11 Aug 2023 14:19:30 -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; dkim=pass header.i=@linaro.org header.s=google header.b=FoBWDVFK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236119AbjHKUvC (ORCPT + 99 others); Fri, 11 Aug 2023 16:51:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233647AbjHKUvB (ORCPT ); Fri, 11 Aug 2023 16:51:01 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C9602D61 for ; Fri, 11 Aug 2023 13:51:00 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fe457ec6e7so3854490e87.3 for ; Fri, 11 Aug 2023 13:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691787058; x=1692391858; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=3jqJojQwGIq+MbCn3Pj9qfGFrLvfGPKUQcVkXP9fboM=; b=FoBWDVFKaSuMp8L5zWplC149YlqCLDO46D2o+bG3qHyrOIrUyanu9nfaBq5Z9u6OX+ Bu8wIpp27FYsMOBb/aNtjx3k120YqgfNF8w4wqV7nWka7och4jugEJP9w1WqK9AdjxlT /hOifF0TchdYcSXU4NdE1of49eaK2HxwUF4V7WZhrt+nhHPk6Nb5NzEPR6BZ39JJMt7R lY0PR/Ypkr8qmXT7glrlNwnDSuTNwODJ1smlmjYwW24+gW1VKRJBl/GvyGG7RvEXwnpj PofHeCdPETrCIXVBFyM6CRGFxfHWdcGypLFq+aUI+r5HJwt6BxqGQr/NkbR11YZaexbe BIbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691787058; x=1692391858; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3jqJojQwGIq+MbCn3Pj9qfGFrLvfGPKUQcVkXP9fboM=; b=RN7eyEWhULdWfj6QJVuuE1MmB3VbU5sIyNji4FwVKtPmCDAof/hXywJU+VWGuWDZal 32vQlFc5ZhUjocvK7bsuEgcrkxGDQpLqEOPO1ZY2/mfUoaByONnLXPV4RMylp572/auH fBrtZ0dtzJw9FjsgrO+r/7ShMnSqvFqByqBoXgl6iSeSe6p7rbuQLuP2SoTuMz9F2oK1 cj3On0OXRl/LDkvoxFPIVLxdPvdoNn+TNNC76v3QbrhzkVGk9uPDixRyFBJqDn/Sb6ch kir+xWA4/Chd7/n6oEaQEDZ2IfBAy3qTW8V0mhEK74Tna9oANJKgXGla8Yvkh8yA0Gb7 liDg== X-Gm-Message-State: AOJu0YxLVvX5/gR9tKRu4jC481jlJoRcB2NCSzcL10R7oaN5bdGwDzOj SYdwUqQXL0A1a+RV9fT0pMF8iA== X-Received: by 2002:a05:6512:3452:b0:4fe:15b5:a5f9 with SMTP id j18-20020a056512345200b004fe15b5a5f9mr2048837lfr.54.1691787058307; Fri, 11 Aug 2023 13:50:58 -0700 (PDT) Received: from [192.168.1.101] (abyj188.neoplus.adsl.tpnet.pl. [83.9.29.188]) by smtp.gmail.com with ESMTPSA id w26-20020a19c51a000000b004fb964d48e6sm858285lfe.95.2023.08.11.13.50.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 13:50:57 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH 0/3] Introduce PRNG on SM8450 Date: Fri, 11 Aug 2023 22:50:55 +0200 Message-Id: <20230811-topic-8450_prng-v1-0-01becceeb1ee@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAC+f1mQC/x2NWwrCQAwAr1LybSDbVl28iojsI20DJV2yKkLp3 V38nIFhdqhswhVu3Q7GH6myaQN36iAtQWdGyY2hp34g7xy+tiIJ/XimZzGd8RImIn8dchwztCq GyhgtaFpap+91bbIYT/L9b+6P4/gBWBV7FnYAAAA= To: Andy Gross , Bjorn Andersson , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691787056; l=888; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=achINi13s2oBouycijFvJmTS8jFnC3XtwNFEu/25/9I=; b=TsC/xrTi+lazROIHVs6x9cO4a9GqYA13OfLaqe0W1JMsaPXXxGezBGPM3CTF2/X4nRy1nnK3z YIZ4j8k9kj1CGBz8wPh0gQjRphAFSgXMOlp99Vur885oeRRtRbzjxEF X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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,URIBL_BLOCKED autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773969101258882067 X-GMAIL-MSGID: 1773969101258882067 SM8450's PRNG seems to be the same good ol' IP, except without a core clock. For a lack of a better idea on how to test it, /proc/crypto reports that the selftest has gone through.. Signed-off-by: Konrad Dybcio --- Konrad Dybcio (3): dt-bindings: crypto: qcom,prng: Add SM8450 crypto: qcom-rng: Make the core clock optional regardless of ACPI presence arm64: dts: qcom: sm8450: Add PRNG .../devicetree/bindings/crypto/qcom,prng.yaml | 24 +++++++++++++++++----- arch/arm64/boot/dts/qcom/sm8450.dtsi | 5 +++++ drivers/crypto/qcom-rng.c | 10 +++------ 3 files changed, 27 insertions(+), 12 deletions(-) --- base-commit: 21ef7b1e17d039053edaeaf41142423810572741 change-id: 20230811-topic-8450_prng-6af00873db4d Best regards,