Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14323109rwb; Sun, 27 Nov 2022 22:26:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7RiWdqpSKKIR9ONWCfonV0m3dFumdvq3IpYqs5PP1eligwTiZljG3ZTtqp8cjWnuOfhZzg X-Received: by 2002:a50:ef04:0:b0:46b:a74:b3d5 with SMTP id m4-20020a50ef04000000b0046b0a74b3d5mr5928414eds.155.1669616767269; Sun, 27 Nov 2022 22:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669616767; cv=none; d=google.com; s=arc-20160816; b=vIi4ZwC5tm0IQ8Tn//CdXB6R3mgK7Cyg6OwuHPOgQdM3mK/x7ieXuQcZ2XJBbDObc6 68QRpWfPq50OrBx437Vayp/bBAeW4Aw4wvuxR1EK4J/CEsNyZWkEhNOrs8uvdUUuwWjV IQ0Nx1kvGDGYwJH6o1QEeHN26X4IlwR4T1DNjxIiroi2agKAmsKgKpKbN8D4WmWqixRb SJunjeKVkgBz7dcbDoaRPYQaZzV6/KWg+8rdVvRtqqzED8KNAqNJW+csdnDbiSWDnZfF eDTBx8LK3eBDi9ZxQk3LbgTFfE54YbnuRITRMRTzgZd0GAsfrJ2PQPn8S+LTpdRbIsUb NKLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=6uVfDZE1FJ/GzLAOAYLjDpQsaTA+Ts5f2k1W1GZOl9Y=; b=QMlzEqiZPnVeTXNNKhzxf1543KsPL7NPAUT+VaM0Rfg3680F21neOLqqehSfUvgLgU dSEVOGhC7S6WBoydyJ1jzA96Dl+yRVlCxAD+xMNu0BnlJqEpIxfkJIxx4lAiN0O3O2dA HrFCrq2K3xvG8FNjhX6w/bcNfx+3xMUBfTGKjOmq7hYX1weiBEU7b+3FGvfLvYYq5BDJ /wzdQ8zNEFw6toz4/kz32k5KsnsFu37uYJWxoR+Q9Dw8kqiKxMDQuO0im0XhynjLepDX +gkZF3zCAz3tvBP1uHE0lJOftuLfKOKMsdwCIIwflg0SsqYABjHs4LdEHrFhgAcxJKHP D60Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n28-20020a50935c000000b0045961c7dde9si9556823eda.63.2022.11.27.22.25.47; Sun, 27 Nov 2022 22:26:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229628AbiK1FoX (ORCPT + 84 others); Mon, 28 Nov 2022 00:44:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbiK1FoV (ORCPT ); Mon, 28 Nov 2022 00:44:21 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DC7B6170 for ; Sun, 27 Nov 2022 21:44:20 -0800 (PST) Received: from [2a02:8108:963f:de38:eca4:7d19:f9a2:22c5]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1ozWwB-0008Hk-HK; Mon, 28 Nov 2022 06:44:15 +0100 Message-ID: <6a5b523d-711b-d809-06b9-fdada64c9c65@leemhuis.info> Date: Mon, 28 Nov 2022 06:44:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH] Revert "arm64: dma: Drop cache invalidation from arch_dma_prep_coherent()" Content-Language: en-US, de-DE To: Manivannan Sadhasivam , catalin.marinas@arm.com, will@kernel.org Cc: robin.murphy@arm.com, amit.pundir@linaro.org, andersson@kernel.org, quic_sibis@quicinc.com, sumit.semwal@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20221114110329.68413-1-manivannan.sadhasivam@linaro.org> From: Thorsten Leemhuis In-Reply-To: <20221114110329.68413-1-manivannan.sadhasivam@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1669614260;845ae785; X-HE-SMSGID: 1ozWwB-0008Hk-HK X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 14.11.22 12:03, Manivannan Sadhasivam wrote: > This reverts commit c44094eee32f32f175aadc0efcac449d99b1bbf7. > > As reported by Amit [1], dropping cache invalidation from > arch_dma_prep_coherent() triggers a crash on the Qualcomm SM8250 platform > (most probably on other Qcom platforms too). The reason is, Qcom > qcom_q6v5_mss driver copies the firmware metadata and shares it with modem > for validation. The modem has a secure block (XPU) that will trigger a > whole system crash if the shared memory is accessed by the CPU while modem > is poking at it. > [...] > [1] https://lore.kernel.org/linux-arm-kernel/CAMi1Hd1VBCFhf7+EXWHQWcGy4k=tcyLa7RGiFdprtRnegSG0Mw@mail.gmail.com/ > I have Amit's report on the list of tracked regressions. I also noticed the proposed change "arm64: dts: qcom: sc8280xp: fix PCIe DMA coherency": https://lore.kernel.org/all/20221124142501.29314-1-johan+linaro@kernel.org/ I have no expertise in this area, but it looked somewhat related to my eyes, so please allow me to quickly ask: is that related or even supposed to fix Amit's regression? Ciao, Thorsten