Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7181915rwp; Tue, 18 Jul 2023 11:12:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlEYjjyCXvPm8zSxS+CuGJGjT8LT6Gdp0XT9nXx1YYOOOG8bAVEWOQJnS8N/ncWIVSO2OPq3 X-Received: by 2002:a05:6a20:729d:b0:134:a4e2:fbee with SMTP id o29-20020a056a20729d00b00134a4e2fbeemr140713pzk.3.1689703960630; Tue, 18 Jul 2023 11:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689703960; cv=none; d=google.com; s=arc-20160816; b=uFxuLNgJQHwjn7UiiY1VrVBRvdDZ50wOMbvo56GC7QroyU+tlcDJYMdhtyK7HhmqUT QVGT00+1IhQuDGQYaEdd7xppqgbYWDf88t2D2E8Wg3swxDYY+eqADpjpJOffMbH03B3r hoVJOIQqq0+IWxwiQwZFsmAU+WLxTfSv0xAddrdQvtlKcdLghwRVY0PEd2fqUS1sn96a ms6HyDtHhr8VMXTk5gLWAJawctyQsPTA3/2BPfkZd8vwZnHP2NArhi1CIFYDbLPFA+nP KH5yLPxG4yuEKReimxlf0W3UmKUP6L89srw5S7wXLRBr4BS4AaSeT/TwE5lRW8zOtaas wEdA== 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=nB+7M/shWYfxvBioBHI5C9STCuCcmiZVjh+lC9w0OQo=; fh=QayoXkpaBkdp0fqVg9v84OMCZpqGXMjB4tZLqZxXdZQ=; b=b5HGCTdcSfGSBuKGCIA1jBMqiXjewqi8LNHCA5g/JNE7alPCdOQB/9sCZTaSqtsSoW VdG5oeACkm3WYqRktF7136XFyIK/XYhsXTWUQURVu6O+fvjINkqLY5FOekkerD5q1cpm zBWvjJT/wWneYDue7c7Fsoya240K4UEoTvtGfvZBLmD3RyWqqIZIlpWAmEveiAxQJTUe tElkPvotb2YB+YTHXt6zet9P6y4Rplvpc2PdFBuUWCH54p37zkvs0Y47majR4yozIxhi oc3atCoRh3Na8T94+YMOhbrV4XWRmr5rjAu9ghyZnVx20yBQPrFbY3l2PEKPsv2fAbFm FCfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qvMH347t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u19-20020a63ef13000000b0055b76613808si1884185pgh.214.2023.07.18.11.12.27; Tue, 18 Jul 2023 11:12:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qvMH347t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231472AbjGRRQq (ORCPT + 99 others); Tue, 18 Jul 2023 13:16:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbjGRRQp (ORCPT ); Tue, 18 Jul 2023 13:16:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0412BBE for ; Tue, 18 Jul 2023 10:16:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8BFF06165C for ; Tue, 18 Jul 2023 17:16:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 897CDC433C7; Tue, 18 Jul 2023 17:16:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689700604; bh=hOS8hHZ69rZwffHsfBNU1mv9uSJBfqr7PZFO7Qzp4zc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qvMH347thgaPRQviAhGECvzPYxGLqqeaiSZq+AvaobsLnUSrRYYrfFU67IRwlV+fc VB2BSu88aYZWfVyp7WMlzq8KiHqASv6zNH6AG0fbYYIVoYGG6xD0r5oTifwWjkBZFg xFBBjw0dBOsysTgW9SlW6gYHXQHZK6wrw23yWJEbJtSWsbloanoD1+4HTemMc1iHxg jUYinyOQokWu22RrQxmyJQNknZROW5FVlvtYkC+W0zB15ccSXGjiCR5VqIbX6INhc1 Panipjui29c1zyyPdXIh6csBzxmi2XrGF0dI2fOXRkNkK6Zb073igSSZTBJssHQup4 9dNkl8kINr9BA== Date: Tue, 18 Jul 2023 18:16:39 +0100 From: Mark Brown To: Charles Keepax Cc: Richard Fitzgerald , Lee Jones , alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/11] mfd: wm5110: Update to use maple tree register cache Message-ID: References: <20230713-mfd-cirrus-maple-v1-0-16dacae402a8@kernel.org> <20230713-mfd-cirrus-maple-v1-8-16dacae402a8@kernel.org> <20230718154200.GG103419@ediswmail.ad.cirrus.com> <20230718170035.GH103419@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="s1vFkW2z8enz8TEJ" Content-Disposition: inline In-Reply-To: <20230718170035.GH103419@ediswmail.ad.cirrus.com> X-Cookie: Nothing happens. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 --s1vFkW2z8enz8TEJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 18, 2023 at 05:00:35PM +0000, Charles Keepax wrote: > On Tue, Jul 18, 2023 at 03:42:00PM +0000, Charles Keepax wrote: > > This one appears to cause me some issues, seems to get the IRQs > > into a weird state when doing compressed stream stuff. The > > issue seems to also require commit bfa0b38c1483 ("regmap: > > maple: Implement block sync for the maple tree cache") to be > > present. So it definitely seems to relate to the cache sync, > > but not sure if it is something todo with the device itself, > > or the maple tree stuff yet. > Ah... I think I see the regcache_sync sets async=true, but then > the maple tree code immediately deletes the buffer after calling > _regmap_raw_write. So its a racy use after free. > How would we feel about having the maple tree code, clear async > again? I was going to say, it must be a maple tree issue. I think we should push that async down into the rbtree code, that's probably also broken for other cache types if used in conjunction with slow buses... --s1vFkW2z8enz8TEJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmS2yPYACgkQJNaLcl1U h9Chbgf+IkhQ8KqyZmS/h4BdOV/WW+wNBQIFknq70iMrXrdCnF4wWE820V5uzfxT GI1fFTyCYgfvzjrf/SL+av9jBU10AsOaPq2lfXHuQDIH3PFPPayE3yNRSBIIAyyu an8AxQMPC1aP6G73M9e9rXD3R3I5XcMa5x74gc83LR/V4hPGfy1PW8kJlRJYLf71 srdqss69glOvET27EBCtho0eEYv1pH1KZIRXgPawBnJXnuaVzqw7Ppp61XPalERI udkzoZvz5mvGb7mfnnYNi9MwYjQf47ycu0qcPoG9VWQbTlaeUwKIXpPEF4/zoYBu Vb5Nsk+AtKwFkRtuDLF/NSu6BmHTyQ== =EAHj -----END PGP SIGNATURE----- --s1vFkW2z8enz8TEJ--