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 B4ACAC021B8 for ; Wed, 26 Feb 2025 13:27:57 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:To:Subject:Cc: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3TEf2YOIeBC3pylZFo5pYmSOi8fXQvfKpvRJlKek5HM=; b=vKV+SSakZDjyLV gg9XFnlvPZ9WzjgzjTYcYf5rE1lNUrLbs2+mTCzXsxpI2B5e70N/t3npJ1mB0fLkINoIjeuJvRaFw KQsAsxmPdqq/4iUq3R+q3hENfQVsxWupbLXOtsIaSEqqwvP5QTkM84UduIqUhi6WgbtIONS6po8FJ VtL6yOabkH7Zsiwu/EF/MtXfb3GdI4ZkZK6Nj+R7ON7Hbsntl/eCi4Nj7Cahb6ecRaeH1Ec8nIv2O 6AvJLY2wsfVz8jMvYQcASM66r6rS6+Axe3zWAxkwH3bSQXYIWsXO/8DXbBXsBHy+QUupk0259lCJQ B+a6Kt9iD3OjZEXlGp9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tnHS4-00000003tlc-3uXG; Wed, 26 Feb 2025 13:27:52 +0000 Received: from mgamail.intel.com ([198.175.65.14]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tnGUO-00000003g1p-1lcP; Wed, 26 Feb 2025 12:26:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740572772; x=1772108772; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=4swnzxuk3Mp34U728sCFthX69jILu8ATPWa0zFUvrcM=; b=UA/zAxUE66fv200DReYCotc3lDV5/zz6WGRAJ6j3+78GYdCIxQ4FTfFe uOyBMp2kgFoGTP8vduYIJKRSDe5raaZYF2R5LPV58DHzUFDxf7+8v+dpB sRXzK8bdk65vrLzE0LmT+FXF0y0uYw6E6OEwklsIyGa6jjyY97q4HQg9B u2K0+jZYhPknGOnZ6cqvZYMzD2oaifD6c5qh9K1m+BJOkE1qoz8K2NANR 6VzTbT6zLZx/02EGoND/1/kOxvUqDhE5oGSAadCZyFVOXqzRy8AAPOLhq NifZT5TSBvw38B0BhLT2Y7nkScl+hXT346mNa1Dp6zwzno9UYN+AW1wiP g==; X-CSE-ConnectionGUID: gguFjKRpS6WCFR7K2w7rzA== X-CSE-MsgGUID: HkAtwu3iTAe5fcGKNYtF/w== X-IronPort-AV: E=McAfee;i="6700,10204,11357"; a="45195962" X-IronPort-AV: E=Sophos;i="6.13,317,1732608000"; d="scan'208";a="45195962" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2025 04:26:11 -0800 X-CSE-ConnectionGUID: 762ere5SQUeDKcp4Fzyz1A== X-CSE-MsgGUID: aMfDjXFLSPyglZBn67P2Rg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,317,1732608000"; d="scan'208";a="117177990" Received: from blu2-mobl.ccr.corp.intel.com (HELO [10.124.240.105]) ([10.124.240.105]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2025 04:26:03 -0800 Message-ID: <44963756-16e6-4a12-b2a8-2901b961342c@linux.intel.com> Date: Wed, 26 Feb 2025 20:26:01 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, Bagas Sanjaya , Joerg Roedel , Pasha Tatashin , patches@lists.linux.dev, David Rientjes , Matthew Wilcox Subject: Re: [PATCH v3 22/23] iommu/pages: Remove iommu_alloc_page_node() To: Jason Gunthorpe , Alim Akhtar , Alyssa Rosenzweig , Albert Ou , asahi@lists.linux.dev, David Woodhouse , Heiko Stuebner , iommu@lists.linux.dev, Jernej Skrabec , Jonathan Hunter , Joerg Roedel , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, Marek Szyprowski , Hector Martin , Palmer Dabbelt , Paul Walmsley , Robin Murphy , Samuel Holland , Suravee Suthikulpanit , Sven Peter , Thierry Reding , Tomasz Jeznach , Krishna Reddy , Chen-Yu Tsai , Will Deacon References: <22-v3-e797f4dc6918+93057-iommu_pages_jgg@nvidia.com> Content-Language: en-US From: Baolu Lu In-Reply-To: <22-v3-e797f4dc6918+93057-iommu_pages_jgg@nvidia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250226_042612_494231_BC35CC3F X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org On 2025/2/26 3:39, Jason Gunthorpe wrote: > Use iommu_alloc_pages_node_sz() instead. > > AMD and Intel are both using 4K pages for these structures since those > drivers only work on 4K PAGE_SIZE. > > riscv is also spec'd to use SZ_4K. > > Signed-off-by: Jason Gunthorpe > --- > drivers/iommu/amd/io_pgtable.c | 8 +++++--- > drivers/iommu/amd/io_pgtable_v2.c | 4 ++-- > drivers/iommu/amd/iommu.c | 2 +- > drivers/iommu/intel/iommu.c | 13 ++++++++----- > drivers/iommu/intel/pasid.c | 3 ++- > drivers/iommu/iommu-pages.h | 13 ------------- > drivers/iommu/riscv/iommu.c | 7 ++++--- > 7 files changed, 22 insertions(+), 28 deletions(-) For change in intel iommu driver, Reviewed-by: Lu Baolu _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip