Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7203231rwb; Tue, 6 Dec 2022 02:35:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf4DmK8Sackdp/eLNgTX7NQk8uctmVkAgeqUatUZdQCFefY3s1gYCw2LESkxvt5XKbf17RiD X-Received: by 2002:a17:906:aacb:b0:7c0:89b3:b9da with SMTP id kt11-20020a170906aacb00b007c089b3b9damr26991502ejb.275.1670322954185; Tue, 06 Dec 2022 02:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670322954; cv=none; d=google.com; s=arc-20160816; b=rVwbzomT0h/dfC/5tDO9JBtaVKC95DwZKEZmERtBmUN+OKys6/Jdxfktf617q5xGVj YhZ2W1EnNj3lNAin82TM9wa0XLcqh3tpQQ+5rMlKrXYqpPEhXvclG+AF39C6xV7GkHN6 YDk2WfOKH+vfp8tLBBlKPml4zCpNypXnxY0Y0cSaL8NrfQSSSQJV+I/5FVj1jJPr1BQ0 gUfXNbs0rENqsZ8LgQqsQ0eEUaVP7hqYEH3n1daG4If0jOdLekSnJG5cwfZsTTCXRRj7 mhXV98uZ/d/wM6703yF/MyVWOOGEoiymy3HSDtPL4T9b++a5mgUo/oe3KV/d2jOduWmf OoPw== 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=UIqKmESuMi5X4yYpx5MEqTGxgrUcCgqrgZIUjEeojL0=; b=mnIM+AfgrPrw1va3BRsPpdpb38KxXXs3ACExzliKmE11LRErPOlVDbc+SjMWUNyoxC iSrGjkqyZgwP0VDKsdviRLHM5OrZ6EC5t8+aueXWGWcxRRBQ0f+3DmV8SqtAjo/bE3Ml k1JYRQNfmSquWeoSFcS+cFylNtyzAn/9pGJkv8K9hzQJhPL4brimZHh9NXH5SfOIWAYG AL1coAAyD4yQaHkQKME2nmDlGoLOhwybXuNqK+qB8KlBUUxyLKjwdoK1xAIc6SW2WxlF siqDiKZMtoGWmccfwm9e2IdOk8+sHNLjb8KUG8pNYtyw24ED55/7VuZgDL8PdqLaPGG9 whYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Onaw83Ta; 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 lt27-20020a170906fa9b00b007ae127c6c7asi2098263ejb.176.2022.12.06.02.35.34; Tue, 06 Dec 2022 02:35:54 -0800 (PST) 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=Onaw83Ta; 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 S234027AbiLFKI0 (ORCPT + 79 others); Tue, 6 Dec 2022 05:08:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233467AbiLFKH7 (ORCPT ); Tue, 6 Dec 2022 05:07:59 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3567B17897 for ; Tue, 6 Dec 2022 01:58:30 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DEF0FB818D7 for ; Tue, 6 Dec 2022 09:58:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D036C433C1; Tue, 6 Dec 2022 09:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670320707; bh=8eqYHz5ExDaNpGaZCWZ0BLnEDa7J4gSmHd03xoUp1Xk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Onaw83TaPGAyrDp68Tci0OAb6La21Jx+cUkzFLWP47/DJDgG/CWU/Hwp13UkjL3Ca Ve4Ej6GW43twSsoc2eiLyupj8YSiiBWgG4Jc2bG/AaMZ7Rd7bIwi31pd5GacpNiPPy f3Ol8d8W/ckIlCIl6ZJxCDLSygoYZHNoBHKpdUxt3SEKst3ck64OFyWi3GYZwd8ph5 v6NEN3gmj6Z1xUkVsyMVJwaRzcOm4iKjmhV4TQxPf/qv3dIRAJVtzNNkO02fvycCeK VzsBy6/r5XcS9h0sVukfbnGPvtDIe+Ba5/G5658Tofn0xT504L7zxRgKImuqRQ7i3F kdt9/cxyVuZfA== Date: Tue, 6 Dec 2022 09:58:21 +0000 From: Will Deacon To: Manivannan Sadhasivam Cc: Greg KH , Thorsten Leemhuis , Amit Pundir , Catalin Marinas , Sibi Sankar , Robin Murphy , andersson@kernel.org, sumit.semwal@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hch@lst.de Subject: Re: [PATCH] Revert "arm64: dma: Drop cache invalidation from arch_dma_prep_coherent()" Message-ID: <20221206095820.GB317@willie-the-truck> References: <20221202100357.GB29396@willie-the-truck> <92a148a3-a8ac-4065-123c-99b72ac3ebeb@leemhuis.info> <395ad6ef-eb54-ec7e-e131-714f23c84d7a@leemhuis.info> <20221202171437.GH5356@thinkpad> <20221205142402.GA31783@willie-the-truck> <20221206092152.GD15486@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221206092152.GD15486@thinkpad> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Tue, Dec 06, 2022 at 02:51:52PM +0530, Manivannan Sadhasivam wrote: > On Mon, Dec 05, 2022 at 02:24:03PM +0000, Will Deacon wrote: > > On Fri, Dec 02, 2022 at 10:44:37PM +0530, Manivannan Sadhasivam wrote: > > > On Fri, Dec 02, 2022 at 05:32:51PM +0100, Greg KH wrote: > > > > On Fri, Dec 02, 2022 at 05:27:24PM +0100, Thorsten Leemhuis wrote: > > > > > On 02.12.22 17:10, Greg KH wrote: > > > > > > On Fri, Dec 02, 2022 at 11:34:30AM +0100, Thorsten Leemhuis wrote: > > > > > >> On 02.12.22 11:03, Will Deacon wrote: > > > > > >>> On Fri, Dec 02, 2022 at 09:54:05AM +0100, Thorsten Leemhuis wrote: > > > > > >>>> On 02.12.22 09:26, Amit Pundir wrote: > > > > > >>>>> On Thu, 1 Dec 2022 at 23:15, Catalin Marinas wrote: > > > > > >>>>>> > > > > > >>>>>> On Thu, Dec 01, 2022 at 10:29:39AM +0100, Thorsten Leemhuis wrote: > > > > > >>>>>>> Has any progress been made to fix this regression? It afaics is not a > > > > > >>>>>>> release critical issue, but well, it still would be nice to get this > > > > > >>>>>>> fixed before 6.1 is released. > > > > > >>>>>> > > > > > >>>>>> The only (nearly) risk-free "fix" for 6.1 would be to revert the commit > > > > > >>>>>> that exposed the driver bug. It doesn't fix the actual bug, it only > > > > > >>>>>> makes it less likely to happen. > > > > > >>>>>> > > > > > >>>>>> I like the original commit removing the cache invalidation as it shows > > > > > >>>>>> drivers not behaving properly > > > > > >>>> > > > > > >>>> Yeah, I understand that, but I guess it's my job to ask at this point: > > > > > >>>> "is continuing to live with the old behavior for one or two more cycles" > > > > > >>>> that much of a problem"? > > > > > >>> > > > > > >>> That wouldn't be a problem. The problem is that I haven't see any efforts > > > > > >>> from the Qualcomm side to actually fix the drivers [...] > > > > > >> > > > > > >> Thx for sharing the details. I can fully understand your pain. But well, > > > > > >> in the end it looks to me like this commit it intentionally breaking > > > > > >> something that used to work -- which to my understanding of the "no > > > > > >> regression rule" is not okay, even if things only worked by chance and > > > > > >> not flawless. > > > > > > > > > > > > "no regressions" for userspace code, this is broken, out-of-tree driver > > > > > > code, right? > > > > > > > > > > If so: apologies. But that's not the impression I got, as Amit wrote "I > > > > > can reproduce this crash on vanilla v6.1-rc1 as well with no out-of-tree > > > > > drivers." here: > > > > > https://lore.kernel.org/linux-arm-kernel/CAMi1Hd3H2k1J8hJ6e-Miy5+nVDNzv6qQ3nN-9929B0GbHJkXEg@mail.gmail.com/ > > > > > > > > Ah, I missed that. > > > > > > > > Ok, what in-tree drivers are having problems being buggy? I can't seem > > > > to figure that out from that report at all. Does anyone know? > > > > > > > > > > It is the Qualcomm Q6V5_MSS remoteproc driver: > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/remoteproc/qcom_q6v5_mss.c > > > > > > Qualcomm is working on the fix but the patches are not ready yet. So if we can > > > get this patch reverted in the meantime, that would be helpful. > > > > It's good to hear that you're working to fix this, even if it's happening > > behind closed doors. Do you have a rough idea how soon you'll be able to > > post the remoteproc driver fixes? That would help us to figure out when > > to bring back the change if we were to revert it. > > > > Sibi is the one working on the fix. I believe he should be able to post the > patches within this week. Oh nice, that's a lot sooner than I expected! I'll send a revert out now, with a comment about where we're at. Will