Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp563460rdh; Thu, 26 Oct 2023 09:26:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGa68kk03+V2ykjBxTEaM+9kWqy8+6D8I6iumDfTLQ0cfCtKcm9okLCHV/gx1wl/7fvyrjo X-Received: by 2002:a1f:fe42:0:b0:48d:13e5:1376 with SMTP id l63-20020a1ffe42000000b0048d13e51376mr330093vki.10.1698337610843; Thu, 26 Oct 2023 09:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698337610; cv=none; d=google.com; s=arc-20160816; b=WMU1MLVR2LLXKwzlrJu34HRjgFay31CS+y2dHu0yC8M+/gBgP0XZbwNGiq43rsk6xC rBCyjKUig3AfD84cMOKoZe6TOaxF3/pZMbFBrJmfbxRkLM3km7ifLsNVzjKcQg9N0+2d rZAXJPI4GB4CcBVUd32nLMeOzRtxFDTJTniYwXm0v1ho7XgYa3ekcq+6rOjBOsYDSGc4 RbD0kaDCmUZLzTz0HuOwTeWAh2X32G7A7K15xm/GU6HifxmPPAhzCNab5RhBMz3wn5rO rI/xxc9vDxZ+5VrhQaXSiQoJTerRDp/ggYgv8YbUAyTF31Hq1hlzjY8VAe9AUs25v2iB Btog== 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=YhIOe17rBsFx92icu86i0z8h7wfkdHRNvVBDLAsxWVY=; fh=wCjS1fuDonDN4Ysefc3DUXoNEr2GN5GrfbsxocAg9ik=; b=EX1fkxrJSg6GzddH+5wnQ9+2pQeDMmZ3RpiW/oUgFDvuNG7zD8ETucRYRT0eiK5BUh 56427OLqho+2ZpWkwytNp0jdx8Mi3/XQ5/JERc/xMs4a4Ji/xP/Cy/wmmuN5FY34o9m+ h2FTCuWOVWOCMNFm5Wi/T1/+WFP1SRNthh3G/1BN1xYRwFmvrDh9rkN4vhJBdeTsxSsF dgsKRnrhozezRrLET0Qh2O5cKDXxWa0TK5o9MO91GTBR8TGqFemVe2W0wMBNnq01mc0f 7Sv9Ww6uy1JgLVzAiTV0ZEeHWzXBB+h3hjU5P4kEVx7lEe2dv/1GrZTRlrG8NWXkAa+5 4l8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cTNSNlCf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h9-20020a0cf8c9000000b0066d1f324166si9594504qvo.215.2023.10.26.09.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 09:26:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cTNSNlCf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2B3E680D6A1A; Thu, 26 Oct 2023 09:25:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231180AbjJZQWS (ORCPT + 99 others); Thu, 26 Oct 2023 12:22:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjJZQWR (ORCPT ); Thu, 26 Oct 2023 12:22:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B0C493; Thu, 26 Oct 2023 09:22:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAAF8C433C8; Thu, 26 Oct 2023 16:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698337335; bh=YhIOe17rBsFx92icu86i0z8h7wfkdHRNvVBDLAsxWVY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cTNSNlCfcnhyCI9TLmB+NXrgO0wicfjUSdnLkqipoCS7XXEMtLBfjTb8aewSuJChO gnf74nrYeJcsbkqGWZVrN5iwz16vR7JtBceENBBGQqYBTDkE1umpU187es+YFRi00a iRf2q/l+7czaovZnHyxyk4/US7/8ISmRGtUHHa/dL5v6Vxdl3zsU9gj0jy94L0XnhE Yx16s5x9xsyfERkPGoSUPXjsEBCATOkMl2F0xFAr5jU+U9DtOYZiFfU+360YAusFRQ jij93bRcX4V7fzvTmut8uNU5GgQ3sG+kseQ8vwx1dI4BkNxePth0GDAlVBmfkC5EQ+ 8KsaZ4z8TV4Xw== Date: Thu, 26 Oct 2023 17:22:11 +0100 From: Mark Brown To: Hector Martin , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org Subject: Re: [PATCH] regmap: Ensure range selector registers are updated after cache sync Message-ID: <66c2f5d4-23de-4faf-a816-919516927f94@sirena.org.uk> References: <20231026-regmap-fix-selector-sync-v1-1-633ded82770d@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yV82cCzg5Dy/7U2I" Content-Disposition: inline In-Reply-To: <20231026-regmap-fix-selector-sync-v1-1-633ded82770d@kernel.org> X-Cookie: I'm also against BODY-SURFING!! X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 26 Oct 2023 09:25:43 -0700 (PDT) --yV82cCzg5Dy/7U2I Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 26, 2023 at 04:49:19PM +0100, Mark Brown wrote: > When we sync the register cache we do so with the cache bypassed in order > to avoid overhead from writing the synced values back into the cache. If > the regmap has ranges and the selector register for those ranges is in a > register which is cached this has the unfortunate side effect of meaning > that the physical and cached copies of the selector register can be out of > sync after a cache sync. The cache will have whatever the selector was when > the sync started and the hardware will have the selector for the register > that was synced last. Given the nearness to the release I've dropped this into my CI and am intending to just apply it as soon as that's done in the hopes that it hits tomorrow's -next and gets a bit more coverage, it would be great if you could confirm if this fixes the systems where you saw the original issue. --yV82cCzg5Dy/7U2I Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmU6kjMACgkQJNaLcl1U h9CEYQf/Q5ULTgilPiDhR27I79FYeKwJKoonfpkYACVHM8Bg3ARdRNNVH0f1MSOH WhcTfUdcMXzSdG4pPadQ+ah06DEJxF4iDAqL3AE2uNrxCx1o5qaWNFtUAyc7XAzo ts2i3VU8CoqvtxtPf7V9I3QX/ah24O4x9TCbT5w2Hgf6wrObBBtHKBsH+ySG1ure 4nYIaFJVgHie/xv8vubBQckPi67fXS/vk/Si/dTPrdbpCZkYs6wyuRDeigPbtmDR 492txYn87M30vK6imwm/0UM8ECAlYbDyfY+yN0rAanOWNerbXoVV4CVBiGlf3h8N FlIV8R77ikrSVbxSpvjL95IyyfesSw== =DxNy -----END PGP SIGNATURE----- --yV82cCzg5Dy/7U2I--