Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5667973rwb; Mon, 14 Nov 2022 07:54:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gq2U2bOwwyqB1K2E1/L3PZKkRqT/8KEoYJQE62gw/DdQXIBMJPOvUS2ii5tOvyhgPWgV+ X-Received: by 2002:a63:fc04:0:b0:476:7fb0:916f with SMTP id j4-20020a63fc04000000b004767fb0916fmr4821851pgi.209.1668441299418; Mon, 14 Nov 2022 07:54:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668441299; cv=none; d=google.com; s=arc-20160816; b=Xqgpp2eSzj6baPW0feqHFyFOWVxHOkdx0Z2Q3xYl62YeD0HN7MWz6rgdXdIms4bvfM 87xGQPWnDhLhg74F8teNzfgS9IhFkC5h2SKp/pFyg9P1wcT92ZSYNYk9w+r1zcTfo7bi STTMK1j7Ss/aFHD6DQTwdBAOaLSjYCdt3nbmNCP/McpOow6P/J8mbSHQepXOPpQvO9sP U0lCJCX0acFxBgo1k9Y2cv9eONdnkl2Et5EFRPgno0Q883R2XPITBrnBm+E0rDhnoLLN 5KDTFPF4wt5YRQZYBhgLbY0suSTAMdx89n1Rd5eWku5W1Dtb3IieNkjFPlKPinjr/K44 6bDw== 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; bh=lcJ2bWpS0VrO0qXP6nKxK2IqSM0nvkPtRtmQ4ulfvSc=; b=v68o5hQa0gRNWMlK3KND+ywto5TGRfIlt6LQyheBBbcoLkJmVl4fUaCGlJygk/GnBN VJk5naSUxDaTDjaNAoYe5Rp6FnMQnVzPHpgGEBysAZNVbAsL97Oz4hz7qZaqrc+oVo8T GRRMDCI0gCcfbD9BY2fXzRDEWE5pk+mDXVUSn/yvVJQV2CGpu2lvfkFY6/8uR7wv7N0x cF6IUMjLOJYW+XpyZN8ifcvWF48hPGO0C6ar91VnNiJgxdg3w0bd2tNXyGHfQJuCT0Y4 HKyCHyO4LdF0GfM0DhgWMUxL9oDqTqXqw3DqDJ2IgSfO3zlWguh3k0ISLFS40sDivBsG EJzw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a17090a648200b00215e3cdaa35si13690382pjj.134.2022.11.14.07.54.47; Mon, 14 Nov 2022 07:54:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236995AbiKNOyh (ORCPT + 87 others); Mon, 14 Nov 2022 09:54:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236785AbiKNOyf (ORCPT ); Mon, 14 Nov 2022 09:54:35 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BCFA2669 for ; Mon, 14 Nov 2022 06:54:34 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 177A9611CE for ; Mon, 14 Nov 2022 14:54:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA0E2C433D6; Mon, 14 Nov 2022 14:54:31 +0000 (UTC) Date: Mon, 14 Nov 2022 14:54:28 +0000 From: Catalin Marinas To: Will Deacon Cc: Manivannan Sadhasivam , Amit Pundir , Robin Murphy , Bjorn Andersson , Sibi Sankar , Linus Torvalds , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov Subject: Re: [GIT PULL] arm64 updates for 6.1-rc1 Message-ID: References: <20221005144116.2256580-1-catalin.marinas@arm.com> <20221111173952.GB5393@thinkpad> <20221111191820.GC5393@thinkpad> <20221114140903.GF30263@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221114140903.GF30263@willie-the-truck> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 Mon, Nov 14, 2022 at 02:09:04PM +0000, Will Deacon wrote: > On Sat, Nov 12, 2022 at 12:48:20AM +0530, Manivannan Sadhasivam wrote: > > I digged a little further and found that the crash was due to the secure > > processor (XPU) violation. It happens because, CPU tried acccessing the memory > > after sharing it with the modem for firmware metadata validation. [...] > > Sibi tried fixing this problem earlier by using a hack in the remoteproc driver > > [1], but I guess that got negated due to c44094eee32f? > > Performing a clean rather than a clean+invalidate when the buffer is > allocated (which is what is achieved by c44094eee32f) shouldn't affect > this afaict. I agree. The DMA_ATTR_NO_KERNEL_MAPPING used in the qcom_q6v5_mss fix only ensures that there is no non-cacheable DMA mapping but we still have the kernel linear map in place that may be accessed speculatively by the CPU at any point. I can't tell why the clean+inval makes any difference but I suspect it's a matter of time before you'd hit similar conditions again (maybe not at boot). -- Catalin