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 989BDCE7A91 for ; Mon, 25 Sep 2023 02:30:48 +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=y4LZVHDf0gegj71LttKlb/W4C9iyLjppyTKF3GhlPeo=; b=p/ds5FKms/mKGY vqh4ztEk+CGOidyBXRQnH8EYW+UjhDIL+ylY0JCdxGh/QqqgFVqOM7QD3a6xLvCEsCPALFLIYVPOt t60CpnJN2vDIWnIFbKnxV3860e4AUO3UHKcltftfilDjPj0Vh6cK1/JcVLNw4eRxphz4GESS91JV9 V7NF9cvUmpbdKHzscdU//bOhl25P7rqly4j8rOniI4I5sYIh2mrJdc/0eJkwOpvjpkEDKKhObCDoW 3JbDm7hjjbc2QN+doS5aOJkEDQCynGgUYUUi37OaAJDVc9dyNS1f9/71lIMWPnkR3x4hW1nWA7Ikf Wh0Xo35EfOZsS2g3S4RA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qkbMY-00D9zs-1G; Mon, 25 Sep 2023 02:30:18 +0000 Received: from mgamail.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qkbMV-00D9yg-1e for linux-arm-kernel@lists.infradead.org; Mon, 25 Sep 2023 02:30:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695609015; x=1727145015; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=38lEStwphX64OpE2A2DbRTLCtqjQh1vzpQGGTEpXLCk=; b=nRdjH2JMUjRmbDjIN3a7v0l5XovMXCgIJzhPrn4Iik5TA2cPV+ihbGwX Q20OV2F1fF9YIGk/6wHPRLF1VsOb0Q8wxnUQNQ8BZN0TyiQ+XGK5HYH5n 3wQtZtkrIIRNUHmp+ktaLS19IfUmxOSCewqq+xAEew+TQ3Ac0w6UUICjh PgbQzID7RgcLr2uTmQC8Kt+A51V9w1s6o/Scsp/pTD2DxWhr4rByDt5TB w1cMAfPWYwkh4EbLXoiC7WGki/QpiUnikC+j4wXApKURYwgC1poA1WwA0 3pxMUiP6+sZDwcWxEY6IRc0bDsS3DeqKhC50WcOnkYmGTmz4SDYJpHd89 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="380026688" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="380026688" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2023 19:30:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="741746070" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="741746070" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by orsmga007.jf.intel.com with ESMTP; 24 Sep 2023 19:30:08 -0700 Message-ID: <4c3bc724-e162-98d7-1ecd-0ed8950bbb34@linux.intel.com> Date: Mon, 25 Sep 2023 10:26:54 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Cc: baolu.lu@linux.intel.com Subject: Re: [PATCH 1/8] iommu: Move IOMMU_DOMAIN_BLOCKED global statics to ops->blocked_domain Content-Language: en-US To: Jason Gunthorpe , Alyssa Rosenzweig , asahi@lists.linux.dev, Christophe Leroy , David Woodhouse , iommu@lists.linux.dev, Joerg Roedel , Kevin Tian , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Hector Martin , Michael Ellerman , Nicholas Piggin , Robin Murphy , Sven Peter , Will Deacon References: <1-v1-8060f06462cc+c0a39-dart_paging_jgg@nvidia.com> From: Baolu Lu In-Reply-To: <1-v1-8060f06462cc+c0a39-dart_paging_jgg@nvidia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230924_193015_601457_918AC7C7 X-CRM114-Status: GOOD ( 12.89 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 9/23/23 1:07 AM, Jason Gunthorpe wrote: > Following the pattern of identity domains, just assign the BLOCKED domain > global statics to a value in ops. Update the core code to use the global > static directly. > > Update powerpc to use the new scheme and remove its empty domain_alloc > callback. > > Signed-off-by: Jason Gunthorpe > --- > arch/powerpc/kernel/iommu.c | 9 +-------- > drivers/iommu/iommu.c | 2 ++ > include/linux/iommu.h | 3 +++ > 3 files changed, 6 insertions(+), 8 deletions(-) Reviewed-by: Lu Baolu Best regards, baolu _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel