Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3502237pxb; Mon, 4 Apr 2022 19:02:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypXY4ZU9uOS+o/eNJrPH+L3hFs7lhHG6eCmT+VHhUCD9PtKiwCRjr1Z3EK5IFplJfPavDm X-Received: by 2002:a17:902:f149:b0:156:87ad:4698 with SMTP id d9-20020a170902f14900b0015687ad4698mr1198664plb.5.1649124171596; Mon, 04 Apr 2022 19:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649124171; cv=none; d=google.com; s=arc-20160816; b=btH61B2E5g0nc7a0RvKRC/f2WJQ0lOgi3fz6RfLVrnnxLU2CQtPITtsGWAEHLVtbvT EIPLMHM/4yxxHpuixUKlAUkkSY8gY11DCeA2dQRObCC8ZLDF+9330YoT2D9r9GZNs18H rx3RcIoUcCf6u2Rhg1lljR7mTRLS6D/7wYRCfve+FxsGT4ptj+CK6ZaFWrISFa7gRYol Zvme+bjpMuVM1jkxS665epnx1KxI26BRLMaVmnsrI1ZPIR/xbV4sOzrf23TqYOjcr7jW VV/K+5L5Nr+H6b/b8Vv4R3U0T9aDscRUUQhtbDjdSVT/EBUqhs3I8ww10sjEpHuKMEnI hRZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lUtU6fovprcNyU8Y1c5J7kq3b8pT6Rjfc47KnhOXBoI=; b=sENwbEoYLH5J/lCtkwHDMD4e9N/5jNDJ173hn3JMVdV6d6JmBUghAqBU1bPr78SR1r fVn9dGVUftt6do7u6EeyVjUz7cP7xasSfz7Wh3M/4cqZawfrPsdk5ALAEePMT+JjmZ/+ zBxwoXJ5Gk+gbS50E0XF8o9gdyLTM7pXUZ8BxHPU4bSeptjred9t9oVODcoNd3TX+Two t64MeH/N5MomRhnBf9zWmEzEAUM8dolGMKmyLeRvSbKMjwHhXCCT7ZYYqvJCCPoMjAPo C2Iz7AkG5Qa2Bs/5wki9U1PPVdFEmqnOMkvI/6QoBBP2yjNUV6gN9IrPnTc5CJ+ZDYhR j2XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RHUGPEqH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r16-20020a170902ea5000b00153b2d16652si10985403plg.602.2022.04.04.19.02.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:02:51 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RHUGPEqH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A6E102013F0; Mon, 4 Apr 2022 17:26:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244414AbiDDI5N (ORCPT + 99 others); Mon, 4 Apr 2022 04:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242532AbiDDI5L (ORCPT ); Mon, 4 Apr 2022 04:57:11 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 635813BA54 for ; Mon, 4 Apr 2022 01:55:15 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id p189so5448301wmp.3 for ; Mon, 04 Apr 2022 01:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=lUtU6fovprcNyU8Y1c5J7kq3b8pT6Rjfc47KnhOXBoI=; b=RHUGPEqH2vO1GCWIwBsXQ/rdcfZ2iOPrSik7Hu+hOnJuB2rcYDk95AoriX5wAdhlVA P6gCr4MuT08lsPPRyLfq1bTlpXf+hdtoltiXIAsHaDGj3Fbft8Zj0IYojM6AY54pkL59 jF9Vto+9NlDL8Z/5uA+INTUNEROcsyxmpqWvVbZ7helagYJdfnzcuisDfhDqxHxO1kpm W6Iy6mf2bITEDPeR8PlsF7+I2mMDt0A8jdOOKyJ5kXYaZs+K1NEnYs0n5BZuVriTlW2W brwMY20WpJl/Yihc+srXdgr6e4DuUb6ryiE7QegZrOgAWKYaEp809jszFTJCeqKw/44S ShUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=lUtU6fovprcNyU8Y1c5J7kq3b8pT6Rjfc47KnhOXBoI=; b=h8YM1SdjvI5fUuMuz/tWiU9tqdy0CWTANbhSdnf1kasphqF8tTkiPhKdsh/jJXCvfz uUwXvlnJHX7Ivhw+5/IVjKJfV31rkEWj/Fki3JxyquPyWbllp8l+rP3kP1YKhD7/VEIc 7kH+aLV3gK53tbXeVph/gVJv8PwbK90dXOEH5fETisVxOCpp98wsgF+PLJLoplCn2tK4 bJKZlnO7f7ApoxKI3Gp/XL+FQkcPNeZaovQ9+UdAcAugG+drFf8vWNzMPU8fpof6+ZwI /8ipx//Fu7z+1Iohqcowtw0o6dJ4BHxNgCsAGy/AUIz3U0AJY3OJqNzf8G6hjGeOK0Vb LZbQ== X-Gm-Message-State: AOAM530IyajD4GrEeWgxy0C9w0TBDaCkVTzQmCeytL4ACb/grSWY+dCV +BKRLJAbLG/zOOeIad7fJhsojg== X-Received: by 2002:a7b:cf12:0:b0:38e:6b0e:a41d with SMTP id l18-20020a7bcf12000000b0038e6b0ea41dmr7381564wmg.8.1649062513971; Mon, 04 Apr 2022 01:55:13 -0700 (PDT) Received: from [192.168.0.173] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id r4-20020a1c2b04000000b0038a0e15ee13sm17080424wmr.8.2022.04.04.01.55.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Apr 2022 01:55:13 -0700 (PDT) Message-ID: <26af9701-267d-5a23-8688-24608617d3f6@linaro.org> Date: Mon, 4 Apr 2022 10:55:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 2/2] dt-bindings: mfd: syscon: Add support for regmap fast-io Content-Language: en-US To: AngeloGioacchino Del Regno , lee.jones@linaro.org Cc: robh+dt@kernel.org, krzk+dt@kernel.org, arnd@arndb.de, matthias.bgg@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, nfraprado@collabora.com, kernel@collabora.com References: <20220401135048.23245-1-angelogioacchino.delregno@collabora.com> <20220401135048.23245-3-angelogioacchino.delregno@collabora.com> <8588a941-6d3e-9e14-cb21-d7af29b4b2bd@linaro.org> <7775eb70-692f-3f1b-f226-f7e0fad47e37@collabora.com> From: Krzysztof Kozlowski In-Reply-To: <7775eb70-692f-3f1b-f226-f7e0fad47e37@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 On 04/04/2022 10:40, AngeloGioacchino Del Regno wrote: > Il 02/04/22 13:38, Krzysztof Kozlowski ha scritto: >> On 01/04/2022 15:50, AngeloGioacchino Del Regno wrote: >>> The syscon driver now enables the .fast_io regmap configuration when >>> the 'fast-io' property is found in a syscon node. >>> >>> Keeping in mind that, in regmap, fast_io is checked only if we are >>> not using hardware spinlocks, allow the fast-io property only if >>> there is no hwlocks reference (and vice-versa). >> >> I have doubts you need a property for this. "fast" is subjective in >> terms of hardware, so this looks more like a software property, not >> hardware. >> >> I think most of MMIOs inside a SoC are considered fast. Usually also the >> syscon/regmap consumer knows which regmap it gets, so knows that it is >> fast or not. >> > > Hello Krzysztof, > > well yes, this property is changing how software behaves - specifically, > as you've correctly understood, what regmap does. > > It's true that most of MMIOs inside a SoC are considered fast.. the word "most" is > the exact reason why I haven't proposed simply hardcoding '.fast_io = true' in > syscon, or in regmap-mmio... > There are too many different SoCs around, and I didn't want to end up breaking > anything (even if it should be unlikely, since MMIO is fast by principle). What I am proposing, is the regmap consumer knows whether access is fast or not, so it could call get_regmap() or syscon_regmap_lookup_by_phandle() with appropriate argument. Even if we stay with a DT property, I am not sure if this is an attribute of syscon but rather of a bus. Best regards, Krzysztof