Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2830382lqt; Tue, 23 Apr 2024 02:59:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3r80sRvHjC+LMFR3NhxYeovl41KMTw9Ax4qnufUbFndUOq0sfVKGrWDBg7vjL62wnJ1wBgL2L9m8kiYvQag13Rq4romBlnOF9apO4sQ== X-Google-Smtp-Source: AGHT+IFStLGURwn+iJYEALE1g94Ww7j5WN9PLeuBSVy3KLkmPwMvxkq3s00BjOhg4aZBzqSWTS4j X-Received: by 2002:a05:6808:288c:b0:3c8:2ae6:4b1b with SMTP id eu12-20020a056808288c00b003c82ae64b1bmr7068963oib.35.1713866386263; Tue, 23 Apr 2024 02:59:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713866386; cv=pass; d=google.com; s=arc-20160816; b=oG9QjzjMSNAtBbvlGaHdr9sWsQNe0u1V5mOdTBrRP3FiuH1SJ8fIm/4U4O+TYdmwF4 OJxf+XC4vRpRz21G0CeiN99v5DE4Ra9l7OvrNR6VvxK/2TTFMqRjofybWqu5cM8POAsE j6qxm0rtPRS7GhZm+1uPezcwCQMhu+kLViFbPCuSMk15JcIgVDkCKY0Z0UEj3/ZviThS /Xw+i6nKVIcbtWzNA1d8RZAedQW9z0mc88sozncHZQ0cms2/1AD09sXZP3jWq14NWlUl 5oPDqFrOaEcNzn4vX8fLWpNJq5HiDAMnDfyzMDKzOyL03NpM7l/Km3VDFEhd5uo0qns4 ZENA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=wkZ+WNUoSXLO5lSFjuderlm7jFEUYZCp08OJuQR+EFw=; fh=rzF5SYNIQO4uZQxMSfKnNCdqKa8tGqOlze1UMNsePZc=; b=MgMnb5fNkt9Rwf3puTVlgXIavIQGDneJnv4qrbbEmxLkn7YipvMD/PCc79DCbdKtz8 qo1cng8Q41DgJArUrjaG1c1KgsCrNZaEsI+mkBjCCttpf/Ho2sGQghosJbq0peWPjB2S 2YLYg23d7w3lW1BUEPU/XCErP8o6X5AcfuwNAqQiUBNzcJhVMkM1iMvNkrbdc7GFqe7d 0sKVt3M0Mdnj/FZJ+W/tiEO71Lfq4q4+B20d3WVC2cnYU+xexv4jqgRmxUyYppct0UPA uvtMS6TjNOeV/FtTQ2LJ97JHFAbJV2Rr1ybC9s8AVHmkouRuEphGBb5FKZH4amojg5u3 lArQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-154821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g2-20020a631102000000b005c220a94525si9107679pgl.90.2024.04.23.02.59.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 02:59:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-154821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 386CDB2277B for ; Tue, 23 Apr 2024 09:58:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D40965FB9C; Tue, 23 Apr 2024 09:58:05 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4973C2AD11; Tue, 23 Apr 2024 09:58:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713866285; cv=none; b=GWioU3hQ4ivevS/+jVZov1Tea+9FCiy/+Tt+Y/I0P2clOutgV2yaXpnpws+FN7htgfcpwEqSJHeE0zEmcnqiXTbqDV7eU+Y5+05Fj1FRn56dPWE6aooB5q71vBBOIGpZuRBr0uzNtrQZIIXVho7Dw4pS0gPggpUutiEqIkQQPAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713866285; c=relaxed/simple; bh=TxdC6K1s4nq8pWJ5ttI5RCLM4q04ots0J9FKSFbKtNs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rcY5JSkdavZ9Z2jPZjfNbKr6Uw/ylluIJF3UbHBQsm4yG4M7sMmzw63nQfqHbOKViRB2649ycEgVzsXNUEAeAuNZ/+dae7Ml3BtfZ122EchU4m3MWOhPoI6YscM5KWoBhrDAHsOs5hMaIPjRwCpTlZMu3DZYFq4hLYbQwpPk+Bw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95F87C116B1; Tue, 23 Apr 2024 09:57:58 +0000 (UTC) Date: Tue, 23 Apr 2024 10:57:56 +0100 From: Catalin Marinas To: Robin Murphy Cc: Joerg Roedel , Christoph Hellwig , Vineet Gupta , Russell King , Will Deacon , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Paul Walmsley , Palmer Dabbelt , Albert Ou , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Suravee Suthikulpanit , David Woodhouse , Lu Baolu , Niklas Schnelle , Matthew Rosato , Gerald Schaefer , Jean-Philippe Brucker , Rob Herring , Frank Rowand , Marek Szyprowski , Jason Gunthorpe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, Jason Gunthorpe Subject: Re: [PATCH v4 6/7] iommu/dma: Centralise iommu_setup_dma_ops() Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Apr 19, 2024 at 05:54:45PM +0100, Robin Murphy wrote: > diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c > index 61886e43e3a1..313d8938a2f0 100644 > --- a/arch/arm64/mm/dma-mapping.c > +++ b/arch/arm64/mm/dma-mapping.c > @@ -58,8 +58,6 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, > ARCH_DMA_MINALIGN, cls); > > dev->dma_coherent = coherent; > - if (device_iommu_mapped(dev)) > - iommu_setup_dma_ops(dev, dma_base, dma_base + size - 1); > > xen_setup_dma_ops(dev); > } In case you need an ack for the arm64 changes: Acked-by: Catalin Marinas