Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1157061rdb; Fri, 1 Dec 2023 08:22:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnWdPEF0YqILuUmtffcJIijF1Te6yw+GJ+b1O8mXmbHOfegIBARJzWGUhgOvECEFMTi2lT X-Received: by 2002:a05:6a00:1590:b0:6cc:b448:3652 with SMTP id u16-20020a056a00159000b006ccb4483652mr22319082pfk.19.1701447727989; Fri, 01 Dec 2023 08:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701447727; cv=none; d=google.com; s=arc-20160816; b=Dl68j6077Uj+NTssdx64+o9r88OaB+6SEbcK+BAUlNTQ7iLZ6xYy0g+Ws9URjgN454 +Dr3us9e+HF7E4kfPghbzfpTC2Wbf/vwPkRNbpYqvWa1pQd6+qXGbUqsIepArcZgP9nU nZcUrzVuNIR6RPag7yntaY2u3T43IczO/Qy1yNLTdTkpp/h+wBk9lPDkGihBvrnpeoD7 AovIstfQTdp7ZipZ9VnynXjUs0k4VN7okT9SkE+F73RpsqxHOQtdT6MHgcTsKd/FqOlB 8j+gph7Xxp3gQPeHGwGYFgtyo57FZQ7Gkit1LqknGIwW6ayXGBEI84/VOChJC3mVRt1N YvSg== 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=v4HOyTEQ/sEdLnzN7nTemV1KfLVROHfOjNURw7BKwRQ=; fh=FOlImt52ZoW0EFkllxD1N18cl005+Y2xq8xJDE6OJjw=; b=npEwuqE9+QKSW4oX4ctUa2pnxr/T4nvrc5rUYXIoc8M3r+onR9MoofyIASrvXakZyG id63v+NK33GPe0v0HstSrLqJnNbqwAnTo3WFNlvSOn99EfKPafQHlPyz+O4oF0Sp4Hj9 EgO27T+dLraaEXvWKyu4v26NWK97aRZilNCwI2Igmm/YOf9PVixCsJuZ2PXnC+SbxPxO UXS8m7y6qZIWrF9zc/IzOCQMJqWVb+NuV/JsuF9ug039LgFZ9W/Rk1ps+5WbGsZVNcfA mrzWmo+K8BloT/K8A6V24HvEySXlbM0HoCjloa1f0e+jNeBf0bKtUysvE0RFEwHDZoCn ZzkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QDXJugR2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id m23-20020a63f617000000b005bdd6196f4asi3492472pgh.392.2023.12.01.08.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 08:22:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QDXJugR2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 158A380E073B; Fri, 1 Dec 2023 08:21:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378170AbjLAQVn (ORCPT + 99 others); Fri, 1 Dec 2023 11:21:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378351AbjLAQVl (ORCPT ); Fri, 1 Dec 2023 11:21:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 225D0196 for ; Fri, 1 Dec 2023 08:21:47 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80714C433C7; Fri, 1 Dec 2023 16:21:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701447706; bh=OxaoKaXIZz97QSlVLuylRvJDT+kPyPJndjvasxIdAOg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QDXJugR2UvAVEwMYL/EPAs2rufs3M/7pGlG8EQSqI6FAMEcAIv0Wt6nAJOO6ZugUG nJ4cyQhFMkZpc85ygbt+1eGdiJN0M41Qww1VuD3X+o6mIH6KfxwX2X2Wd2Q3Zni86q /BKZDvlXPEwabj30PiI/oV/WMgpGUsGtH/tsOxL4KtcntPjpYnc45hcmq7uZTSVDUw btH/KJ1xqiFfS+PzLMQRXHbqDtvna/8HrxgDqnzOFozmyLVZn9sgly7F99tJkUhRJ+ wFt9K/FEF97FJL2fk2E/6x2zx5OKULAQcbpdjKp3Ed/Fa2w82MbMQ9nsLiCqdhLnjZ 8WyoXFGg5Mpwg== Date: Fri, 1 Dec 2023 16:21:42 +0000 From: Mark Brown To: Jan =?iso-8859-1?Q?Kundr=E1t?= Cc: Cosmin Tanislav , linux-serial@vger.kernel.org, Andy Shevchenko , linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty: max310x: work around regmap->regcache data corruption Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="S1ok82JjTyGj+vog" Content-Disposition: inline In-Reply-To: X-Cookie: The early worm gets the late bird. X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 08:21:57 -0800 (PST) --S1ok82JjTyGj+vog Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 01, 2023 at 03:51:51PM +0100, Jan Kundr=E1t wrote: > The TL;DR summary is that the regmap_noinc_write spills over the data > that are correctly written to the HW also to the following registers in > the regcache. As a result, regcache then contains user-controlled > garbage which will be used later for bit updates on unrelated registers. > I was investigating a regression that happened somewhere between 5.12.4 > (plus 14 of our patches) and v6.5.9 (plus 7 of our patches). Our Can you reproduce this with current kernels? That's not even an up to date v6.5 - we're up to v6.5.13 now from the looks of things including one upstream fix that looks potentially relevant. The most direct thing would be to write a kunit test demonstrating the issue with current mainline. If things are already fine with mainline then you'd need to talk to the stable maintainers about what they've chosen to backport. =20 --S1ok82JjTyGj+vog Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmVqCBUACgkQJNaLcl1U h9DTMgf/Ymn+p9dkuv6cArGpPGkvboMvHFC62w1huJaKWI3nH93Z9cDd+E123d3o /fM635v3qV5OyCkBS5z78OPA0rZC8hG4Ka5pFPngedNCZ7L7SLi21I9gb3403XQ6 7sCqIyTNVol59GEvalXc5bq6w585qESs2yWZmUKdLQHlUm+JfoGL4EbD85PpMrS9 xcaAUuH5LvnD4i+s4azhDbs5nOaentmWUFXZN5i/AcMOGCZyZESlJ4NOStVzgt6h Q8jMV43gEu4POF1IpCuHUKzi7YJcyn+5+c8kkPXiaSMa2je6SRbymhbdISorfKFh PrU+aJEMDjL2HN8reaaaZaXrAqfcNA== =pihy -----END PGP SIGNATURE----- --S1ok82JjTyGj+vog--