Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1498710pxv; Fri, 23 Jul 2021 09:44:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPNM6GBk1c/RKvd0UV9D09BYiR1aRDNL0s6yjUnzQp9l+CMfhVC7sn/K43wdwWiaaZOBQv X-Received: by 2002:a17:906:808:: with SMTP id e8mr5327742ejd.265.1627058653478; Fri, 23 Jul 2021 09:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627058653; cv=none; d=google.com; s=arc-20160816; b=UxJOA0gkdYK4FNsOCw+1d/QOXWfPTB/uhIc8StSWEQGJHtf/rRjDvOMklLkm63s1/0 LwVrCTokVnapG2AAIo0KnAT7IUKXh6qlpVOepaekcbMitYaxe8YJi0jHMV+0kgcpkI7F obrf4xO84gZusrD1eT7ERQlfV7PRNJKq0x/BowhJhDinhK1aXShMi/lrGrIa/R1vb4uP MQNBzPG/wiWYGnOg17QinXaay9gZ2sfxmtAaNiG0w7QdCkqW+FZqOBdqC9Wp/pIYhSr1 6Ba4cwhRbLHgs+izeg3G/9KWBSw6uGJtMp8Tv78KintrcdqEigkDSmkfsGCt2dTMmDW1 68lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=4Qmt15RYEVqp2+42Xmn5M6L0KkWhd5FLEyieIa0fiV4=; b=ZIdd6DNp+7J9EXDzi74RpM1timtJjINe4Td4DNnhyvUUKGYHCPDET4nYAwOPttV4BL HnL4Zvj0Sjb4lUUFGcB1Kry045/mLwCDts/P3oJHc1n+Nd8FWb3y8TVelyH1qHLsmVJE TkF4ErqcLx8UBtFFwytnsnkBM+/ACgve7x8+YM7ZCJ4IFxVyovrd4zyiZ5YUwQ4MfX7G pNtSb69JJbJ044bTeMsDg8h0TI0ku1a6mSjuBoPDE3pkcPRFfipq8lvUrmZo8P+dtRpW Ij3PoMJ8veZkVXq5fAXSzRtpUfSzOZLZAcKCOUqlkIrmXQZqaMZ/azq3vM93AqfkgYR3 4Fhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LxWV7PlH; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw8si33661794ejb.409.2021.07.23.09.43.49; Fri, 23 Jul 2021 09:44:13 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=LxWV7PlH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbhGWQBd (ORCPT + 99 others); Fri, 23 Jul 2021 12:01:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:33908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbhGWQBc (ORCPT ); Fri, 23 Jul 2021 12:01:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D20CE60200; Fri, 23 Jul 2021 16:42:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627058525; bh=4Qmt15RYEVqp2+42Xmn5M6L0KkWhd5FLEyieIa0fiV4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LxWV7PlH9BkxxUPMZQ93co+cX02FoTXqRziatQ1DcGavDumGXrC+E0dldCnzBd9bb OI/l3IHefOtZuWvGfctW7PHlb7qqeu+2J6mkSWvGiYggPDvLuf6Uji5dKO3kq3PiYO y3bdg+1adnv3sJuKjuw/qfBptyXHbRbalOG/NcoYtdTe23H/Fr9LhwSWkoOgLk8289 +6ETWdlxurlYodKq51UGL/lwMnOvuyhhSg8Pi9m8DY+D41ZhH2I++cbxZcLUN+lcfW hVE6bhnl9WcfDuIrNfDnMbEe5KzjsnpAA+1KlSeEyvtL2SjK1pgURI24Dp/mPwGksi bMhceDiSjzIDQ== Date: Fri, 23 Jul 2021 17:41:58 +0100 From: Mark Brown To: Arnd Bergmann Cc: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Lee Jones , Rob Herring , Greg Kroah-Hartman , "Rafael J. Wysocki" , DTML , Linux Kernel Mailing List , Peng Fan , Sudeep Holla , Alexandre Belloni Subject: Re: [PATCH 2/3] syscon: add support for "syscon-smc" compatible Message-ID: <20210723164158.GJ5221@sirena.org.uk> References: <20210723135239.388325-1-clement.leger@bootlin.com> <20210723135239.388325-3-clement.leger@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vkEkAx9hr54EJ73W" Content-Disposition: inline In-Reply-To: X-Cookie: Integrity has no need for rules. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --vkEkAx9hr54EJ73W Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jul 23, 2021 at 06:07:44PM +0200, Arnd Bergmann wrote: > There is also a problem with locking: In the case that both firmware and > kernel have to access registers within a syscon area, you may need to > have a semaphore to protect an atomic sequence of accesses, but since > the interface only provides a single register load/store, there is no way for > a kernel driver to serialize against a firmware-internal driver. The standard solution to this for the read/modify/write case would be to expose an explicit update_bits() operation (some hardware does this for concurrency and/or bus bandwidth/latency reasons), though that doesn't help with larger or multi-register sequences (and to be clear as I've been saying I don't think we should do this at all). --vkEkAx9hr54EJ73W Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmD68VUACgkQJNaLcl1U h9CCLgf9G9jujb81HUy6yEF0B7MlJ4Te7jORS1PzOCwsTVNfQ5Zo0j/Necd8XI4i RB33uzw+tW7NYUxNXAmJ0V/0GYws8KlEDMPDWbL7cd9vzWrGweJg5Deo6gfvBcnb I71TpTqz1YlQZ6KqyFSif3TCKiS5NJFd3JBcBRYl7w+Zrx0dgFpPRolKzvL75ulv MUdmb7aBvC/zNs7OapFR1coxL9HdglYxtmaEg8SpaEOqv8m9e2SnBGDLve5Ip9P0 7v2WBEwtU7Xr1A8d65Re6CgiW0s5GYQNZf242pwR4P+X2el05pwrFZOskgnbDH8q 18Ef/NWjldvS8QoB8tWPPzKm33ZrhQ== =Zx6D -----END PGP SIGNATURE----- --vkEkAx9hr54EJ73W--