Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp80622pxb; Mon, 2 Nov 2020 14:39:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaQnZYeCD9kPrhCvh/lpRVVRrJsB0ntoXXwkHZwbmXqqmAh+Un0cFyoEcvm8nv4DY1pVv1 X-Received: by 2002:a17:906:2490:: with SMTP id e16mr17099273ejb.17.1604356742551; Mon, 02 Nov 2020 14:39:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604356742; cv=none; d=google.com; s=arc-20160816; b=Msg/GZzbbI1cQIivJSi+9wBIq5X0b7D5hCxa/PyvodY97WMBsGu2mLtz49/V/3a/E2 1rW5RJp39hW60ShU8CqYKXZJP961aMB5b7NTpSx5YZh4yR1BmJril/To9Hq4IGw3JDon 6vIh6xXEr6hJhQMYCVnXVBIjV01uQ5X5raaiNvgtT0cRKr2zGWmOq+ILm7X8vr4fJhXD TIiuATyDpo+Z8nEnTEH6aFeSvyiYjSgOf2k4JEVP0hwWA3TOs3PxlKGUKARVadIqG+gC WRniAePl3TzNMbIMb28JM+ZjVHBvo5Psp2/PPdAKLedM9SfG6Bp1Lnvi1TRvlFuYIuYm T8Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=giKh0EftA82tuJhV/2S7wBVQ3F/DRKViWRoogNmdeAs=; b=KsZhbBd+mTL5B79DGr1qPaiv12P/DMuZ7Ervq49GdLG0WL4FA4RtryVXtFABpG3hZ9 Ap9dSpMICxoRbqbMUkiS5fqIMZtcxTtpqj19t+v+9iYBpdJcZvMQqTI5dMEyXFfwNMwK gQ71H0TxSnhhnfGEPiZ7WDVj5t1R6GFEa4+eA76pfdBO0SUABOiD4F1Lfi69+lZbpe+B 6h89LGq1Ehdohx7r6WS2qYsb+iRfUl/iSAu6AVDAyzQ65ds7PuzncgK+rwgOZ41UwTPM CQi9+/twgdEzBi7rPgE8daWhudBELdQd39x9krtiGCY3Dl+/y+ZeqS0DLfJa/lOXHbid ptaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bMjC70YD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si11297125edy.196.2020.11.02.14.38.39; Mon, 02 Nov 2020 14:39:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bMjC70YD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726114AbgKBWfC (ORCPT + 99 others); Mon, 2 Nov 2020 17:35:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbgKBWfB (ORCPT ); Mon, 2 Nov 2020 17:35:01 -0500 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53E4DC061A47 for ; Mon, 2 Nov 2020 14:35:00 -0800 (PST) Received: by mail-ot1-x341.google.com with SMTP id k3so2318206otp.12 for ; Mon, 02 Nov 2020 14:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=giKh0EftA82tuJhV/2S7wBVQ3F/DRKViWRoogNmdeAs=; b=bMjC70YDFNzxoYlzw3H4miSI+md12fBuXXRV+rwrxZNgxWyRnMyTM+RWdzZ6Ttz749 qIIdxenAT6JyLXCwFjJitCGNE6NtAlVOcEEtfTUjNVkaVwsAoeI3RaqPS4D/rQ41mRK8 z3nwRyBpd8Ml+jwQDxOK/7nlBFt0Djs9ILL65ZgnvMynhhR27O398RD3vR5DnLjyu/Ie 0deUipDZvLwmfe+gEyooVVrypE5oA2lbHsfTFWrWkiEIJWAq+v5z3MAKaUgfd1hrZSN1 bHZcEhtLfdvM6dOu16hu7EtkxCguPo4OJbabmtS2AIJDZ6yMJDWAD2EOTlApdxVN4KJz 5jsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=giKh0EftA82tuJhV/2S7wBVQ3F/DRKViWRoogNmdeAs=; b=a0JXvRnAHL+TVTLZ2CSleAam44uSNLtpBhZga4DGYyJvTKSP9/eESwbQARmpLJqjGx 2PXcYk8jHt+FzE0VcxfG8YZQsSRB71ypb7+dooja0ctbAr0mrY4jCBoiNl8izwbWWd89 Z7dtRkrxmOELjpI8Eww4oEANvrmIghD5I6E4OlVaioZrL6emfulR9KtL79NbSrQBz3Pi xpIkz8LOfpU/n6xXGuHb874xj8SeMBdBeVYabyG/kZHSr69ox00k8xK+PTPezDOiyrli X9f1vjfQKR/NxRBNuNnxB84wS3GhELiXW5O4wpewRBsINboLu+rWm5qO+pjasrtFglvY vDRA== X-Gm-Message-State: AOAM532gIsogSVbPEUB7A0pvQid5QVaB8EN3Wm3mmInqkjpBck5F5csb 7WI6FcI5bBmVhzZoddWgj91DxQ== X-Received: by 2002:a9d:5d15:: with SMTP id b21mr13973004oti.25.1604356499596; Mon, 02 Nov 2020 14:34:59 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id b16sm3929519oti.4.2020.11.02.14.34.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 14:34:58 -0800 (PST) Date: Mon, 2 Nov 2020 16:34:57 -0600 From: Bjorn Andersson To: Srinivas Kandagatla Cc: Evan Green , Rob Herring , Douglas Anderson , Stephen Boyd , Andy Gross , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/4] nvmem: qfprom: Avoid untouchable regions Message-ID: <20201102223457.GA65067@builder.lan> References: <20201029002827.1729915-1-evgreen@chromium.org> <0a7d86ee-96b0-eff8-e315-ff65086661ee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a7d86ee-96b0-eff8-e315-ff65086661ee@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 02 Nov 09:58 CST 2020, Srinivas Kandagatla wrote: > > > On 29/10/2020 00:28, Evan Green wrote: > > Certain fuses are protected by the XPU such that the AP cannot > > access them. Attempting to do so causes an SError. Introduce an > > SoC-specific compatible string, and introduce support into the > > nvmem core to avoid accessing specified regions. Then use those > > new elements in the qfprom driver to avoid SErrors when usermode > > accesses certain registers. > > > > Changes in v3: > > - Fixed example (Doug and rob-bot) > > - Use min()/max() macros instead of defining my own (Doug) > > - Comment changes to indicate sorting (Doug) > > - Add function to validate keepouts are proper (Doug) > > > > Changes in v2: > > - Add other soc compatible strings (Doug) > > - Fix compatible string definition (Doug) > > - Introduced keepout regions into the core (Srini) > > - Use new core support in qfprom (Srini) > > > > Evan Green (4): > > dt-bindings: nvmem: Add soc qfprom compatible strings > > arm64: dts: qcom: sc7180: Add soc-specific qfprom compat string > > nvmem: core: Add support for keepout regions > > nvmem: qfprom: Don't touch certain fuses > > Except dts patch, I have applied all the patches, dts patch should go via > arm-soc tree! > And I've picked the dts patch. Thank you, Bjorn > > --srini > > > > > .../bindings/nvmem/qcom,qfprom.yaml | 17 +- > > arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 +- > > drivers/nvmem/core.c | 153 +++++++++++++++++- > > drivers/nvmem/qfprom.c | 30 ++++ > > include/linux/nvmem-provider.h | 17 ++ > > 5 files changed, 211 insertions(+), 8 deletions(-) > >