From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7BF89ECAAD3 for ; Wed, 7 Sep 2022 09:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=v21k/mOwy/8O4GqyGGlpQosem2+YXZauYxLO/43aF+Y=; b=HR3xOV4N2jKJSO VObAbBnXQIm62w8FMBn8YWpQp2lttNibneF9RsEn3UY6IsF1c6/zUbfZdD6PtkYs7SdNp+EGkx1zb d43Dro1md8UIc/BO4nmCsoolTq1skcC8cffZca9Ct+SPpt4N7iXLhyTZQDiA9LWgtTCIviWqfUalz p5AQTEYzpP8OLgf1vl427T1w0Nn21IMCAEf6VY8+ee3nlcVi/i/+/yaDBaQfueedKPtFRdbKnafDO kqTEe3ovNt1v8It8Y42ywuc8ew1muHVAPfo8+sDuwrIGyP9a8LKaiM+BGDAXZX43mQzb+mRSPQvih sPV2PvkOXtOOflc12giQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVr7A-004ig2-Go; Wed, 07 Sep 2022 09:12:56 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVqz7-004dMg-Lg for linux-arm-kernel@lists.infradead.org; Wed, 07 Sep 2022 09:04:39 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id E4B206732D; Wed, 7 Sep 2022 11:04:34 +0200 (CEST) Date: Wed, 7 Sep 2022 11:04:34 +0200 From: Christoph Hellwig To: Catalin Marinas Cc: Will Deacon , linux-arm-kernel@lists.infradead.org, Mark Rutland , Robin Murphy , Christoph Hellwig , Ard Biesheuvel Subject: Re: [PATCH] arm64: dma: Drop cache invalidation from arch_dma_prep_coherent() Message-ID: <20220907090434.GB30704@lst.de> References: <20220823122111.17439-1-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220907_020438_058962_B415C79B X-CRM114-Status: GOOD ( 13.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 24, 2022 at 11:00:02PM +0100, Catalin Marinas wrote: > (I was wondering why not just invalidate without clean but it could be > that the allocated memory was zeroed and we want that to make it to the > PoC) The memory is zerod after arch_dma_prep_coherent. So a pure invalidate seems like the right thing to do here. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel