Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1795671rwb; Fri, 2 Dec 2022 00:57:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf5JMXaDKSrn9Ffzd74n/+w6tzfYAcWXyWKl64H+mBxj+7H2lcoz6cTQw+iqvaPAV72ePR27 X-Received: by 2002:a05:6402:528d:b0:468:dc9:ec08 with SMTP id en13-20020a056402528d00b004680dc9ec08mr48803893edb.17.1669971454092; Fri, 02 Dec 2022 00:57:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669971454; cv=none; d=google.com; s=arc-20160816; b=RkmnGqoI5KLAPhFWQUHq+HMOTZr4nk9bBrBKcdzhmWG6zZ8AxIgPGosmFvipXKRQg8 8BJUrhFDtK5jfAPrVl7T8IRATBEyv+jWIf5P5awQ1AFWZW46icl01q9VKKgnyquIK2HK IjhMEyOV6plnQWJKhjjxkhEhQSVt/Fa3JwsbdIhk4Fakn5J67dlujUtPqWxXH+Jq+i1y /hjOGIynyEnZLO2FjTUYgMX21EZ7I26dhQ1ubjCj0263neNNu4Y+K1zEbpThx0XLN9wM Z4+xknxZK2lIkBdTvG2CG6Qk2ZZAgKmkRr8kpo2C+CUh6ZRUrzmW4xknDPe5nXjHeO7z /hZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BX5+MEEseekCjj2jUHYbfIzY5jOJRklKg97H+PQks68=; b=j3drXYBRvP0/Os67gKGC5zhBP1tsOY5syvADMjZlZxp2kfEcmPGek2cUmCBl3w3YdH CRy+6mDiPkw753qkHJNsTDGXam94Vd/LtMeZyjmcM6hAm8C9QMG49nQlsmx/TnSvFIP7 SjnAtIf9Bf0wBQgPYtLF1EH6pHVMC7JZ6aTeINTe7kzdjhOM1r1GwruKIPJj9IIi3pew xvljVLHWV9JshWrKhaS2V14X5i1rcMGRXgzqdPR0gvM7Y12E4k0uiqfaOycPY3DS0idd unrsvELG/XtTpEvkIzVxj0J4hcxPYNqK32bIDuxLR507OTeDyDjHJf+dd4So7smwC79Q jPDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OVzPNFpe; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o24-20020a17090608d800b007aae0b30283si4859505eje.691.2022.12.02.00.57.13; Fri, 02 Dec 2022 00:57:34 -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=@linaro.org header.s=google header.b=OVzPNFpe; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232801AbiLBI36 (ORCPT + 82 others); Fri, 2 Dec 2022 03:29:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232727AbiLBI3M (ORCPT ); Fri, 2 Dec 2022 03:29:12 -0500 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D4A8A9CFF for ; Fri, 2 Dec 2022 00:26:40 -0800 (PST) Received: by mail-ot1-x32f.google.com with SMTP id t19-20020a9d7753000000b0066d77a3d474so2496866otl.10 for ; Fri, 02 Dec 2022 00:26:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BX5+MEEseekCjj2jUHYbfIzY5jOJRklKg97H+PQks68=; b=OVzPNFpeqRPpm2Sdd/f9dyIxjlS7vt9MVTzzyd6r85ie2ehKngICz0UrOwttda4ssx BJxvyqhN8GSxz3FBn0X6pjXStHnPNHsUzCCoB0KbriWxxpGcCCtix8XTe3yRvVm2EWfT GlX1NqmYmo1QZmC+7rJnfe4AsG0wOStcDnxaFs+hUSiuf3RuK8gTJaZrPexFvxitA15o gvqQgQRTyZn5vFZ+xzz03pfVHl5Ad8nPzubS5pfiE0n+5O7HohGLXb5qHyzVAufA0OLr 4f+B3ugzqjNitv3XTVblAQTjqFPltWnv1g5VKohanq46WaNNhJcLIOjIU7aVsPIegKvn AZdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BX5+MEEseekCjj2jUHYbfIzY5jOJRklKg97H+PQks68=; b=ug8Ue+ym8vbeT/nI7iYdIMknTqfYnGLRSaICSpbcU8YfhV3vO+4q0D4wEAfKoXfQPE RiiRRcQx4hJe4SXWwu7WzQ2aN32LbNEMlwKIzP423kD9gokbKeV2qeYL+rNA3e5JglFA 1QTUvbDPOB+ypVHH7cp4QLFWwytQ2yKSwzxQG/im0tXxg2wxCWUKBgpMYrzlRdD/Bq64 H4PfRTpKJR0/YlLV6pXxx7EHd7ED865BX+ZZW5wi1Id42RrefEEcnfiNb3Ebx6OeFibe FledngENWMlNY506gNQYi1P8yDB4/KImdTFVWbTxgA5sZJZkNRM3aPykhWuhlS39JJyb HhoQ== X-Gm-Message-State: ANoB5pmhXOMWN3yoItHi2rgqjCynVqTYI7+LdpHylcRwx55efrXdMsCs hqv0xuf8+UMeAf/Scy0IKGQ2DQbJ4CKjoa37d0YfEA== X-Received: by 2002:a05:6830:1007:b0:66e:7583:ab4c with SMTP id a7-20020a056830100700b0066e7583ab4cmr3395774otp.332.1669969599378; Fri, 02 Dec 2022 00:26:39 -0800 (PST) MIME-Version: 1.0 References: <20221114110329.68413-1-manivannan.sadhasivam@linaro.org> <20221114141109.GG30263@willie-the-truck> <1659929b-1372-cea6-5840-c58369a4252d@arm.com> <20221118105402.GA184726@thinkpad> <20221118123349.GC3697@willie-the-truck> <20221121064224.GB11945@thinkpad> <018517b8-0ae0-54f5-f342-dcf1b3330a13@quicinc.com> <6d637906-e1d5-c481-a73d-2b2b845e223b@leemhuis.info> In-Reply-To: From: Amit Pundir Date: Fri, 2 Dec 2022 13:56:03 +0530 Message-ID: Subject: Re: [PATCH] Revert "arm64: dma: Drop cache invalidation from arch_dma_prep_coherent()" To: Catalin Marinas Cc: Thorsten Leemhuis , Sibi Sankar , Manivannan Sadhasivam , Will Deacon , Robin Murphy , andersson@kernel.org, sumit.semwal@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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 but, as a workaround, we could add a > command line option to force back the old behaviour (defaulting to the > new one) until the driver is fixed. We use DB845c extensively for mainline and android-mainline[1] testing with AOSP, and it is broken for weeks now. So be it a temporary workaround or a proper driver fix in place, we'd really appreciate a quick fix here. I understand that the revert doesn't fix the actual driver bug, but we were very very lucky so far that we had never hit this issue before. So at this point I'll take the revert of the upstream commit as well, while a proper fix is being worked upon. Regards, Amit Pundir [1] https://android.googlesource.com/kernel/common/+/refs/heads/android-mainline > > -- > Catalin