Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3025637rdb; Wed, 15 Nov 2023 19:29:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFejj9vgJ4GoQptCWkbBKRVwBTM9tZjOnzsUAdt70mxkjf4ll/NfXknAr6kIrKeoMvYyhv2 X-Received: by 2002:a05:6a20:729c:b0:17e:1f9a:91f5 with SMTP id o28-20020a056a20729c00b0017e1f9a91f5mr17998237pzk.44.1700105398156; Wed, 15 Nov 2023 19:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700105398; cv=none; d=google.com; s=arc-20160816; b=MnepSKIX5iBry0yAwqg5X7AiIzfINdfdCGO+pU/e1QxgoJJtsjScBjXyFZ7k2JbAXu mCDivPql39+9iHoyRMyPJNM0R3vFv67TZfab1agSC/NXzkOeOeLfnL/8w4uKVR8+QqjA X13sytdvpovsx5EHsOsWxmaod5bXR4EoB4U564lqPi2x1rrrgdHp4KA/cviAs5ygzIxQ 4zLHsLVDgBIaZHDCLj76olIM6Jf4Op0gBoeS5cOLwntF7oHzQC3flvUzM4WkSGY+ujca kG2UGhzHdWVdg6GZ5ZI/NI0d2VNuAZvXslmdxhpuHAGwjBray9R1Kx3nM64Xo2kl7pO5 dABQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=0fq1KXzd9L0MTJzSm746rkC5yV5KpwrTiFX4b/U7B2I=; fh=TVibWF85LnPLzNJ9WuDZofsqNQ0017MGiYBvX2LAmps=; b=rok06XVd1rknkvKebiy1U9/ZtKoV7RcviBYzF26gLLHoGIocdzhmyW5zqRtDcHvCLk mfC3d/lRIlrFpRT4F77fDG6kwT/0hgspgF7/PWN9xBrqQD6/GeyXGCXEh7ZkUbq4h1/m u/5T7B2e3BKrZhRC4AWEHVuWHLzOqzwK6CY65jvyCwzATUTGOBFvs0id/cCuvnBP3oHV uI6fAG5Xxju3rtZe5y2nJSIM+hbaGT9b4GPM1BrSko3tu5h3FO4LK/xu54YM/AX9ptew 6wJqxzyy85x/oM8BTvi1YM6iFPpmr1rszQEM6zuYl4iOuzqr6Q3baTPEzyyoDv32xw+W +kGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jxTa5LVA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h10-20020a170902f54a00b001bf0916b665si12107512plf.393.2023.11.15.19.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 19:29:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jxTa5LVA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id F12DA8022698; Wed, 15 Nov 2023 19:29:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344761AbjKPD3n (ORCPT + 99 others); Wed, 15 Nov 2023 22:29:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230440AbjKPD3m (ORCPT ); Wed, 15 Nov 2023 22:29:42 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C0B5199 for ; Wed, 15 Nov 2023 19:29:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700105377; x=1731641377; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=e7Vj3hzUi2owuqUml83r8SMkIgCZDOcihonf5G65bzo=; b=jxTa5LVAtU3/gIt6Vji4M2uaQSgab54eKzficy/vK1/gQ3aDJ39iJ7lA NP1snlI6ZsqdYtuXnCqxjUTEVEmgOgHgwEeczoYT5A0QO1fheJ1qMF0BS 0BkhWm1cTKWayr6uLiJtbuMgzsUGg970ftiOo4XnMsEW+C6qfB2GUyJ+r 1i7kfOjvmGzj3NA1bF2/zUWEjR/UZX79+VyRUFsg9vsLegY07c4VRsBKN 5cyP5UOkgTMyrfp1aSi50PriEDheKGglyFDWocpG2PoXtd2nvGpKKpkPx yQQAgD//o03iDuBlIF9l6FfDhCuenPkkhL/G40G9Rx++CYz0I7gJuMrm3 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="4132795" X-IronPort-AV: E=Sophos;i="6.03,307,1694761200"; d="scan'208";a="4132795" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2023 19:29:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="765180796" X-IronPort-AV: E=Sophos;i="6.03,307,1694761200"; d="scan'208";a="765180796" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by orsmga002.jf.intel.com with ESMTP; 15 Nov 2023 19:29:14 -0800 Message-ID: Date: Thu, 16 Nov 2023 11:25:01 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 3/4] iommu/vt-d: Remove unused vcmd interfaces Content-Language: en-US To: "Tian, Kevin" , Joerg Roedel , Will Deacon , Robin Murphy , Jason Gunthorpe References: <20231116015048.29675-1-baolu.lu@linux.intel.com> <20231116015048.29675-4-baolu.lu@linux.intel.com> From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 19:29:56 -0800 (PST) On 11/16/23 11:21 AM, Tian, Kevin wrote: >> From: Lu Baolu >> Sent: Thursday, November 16, 2023 9:51 AM >> >> Commit 99b5726b4423 ("iommu: Remove ioasid infrastructure") has >> removed >> ioasid allocation interfaces from the iommu subsystem. As a result, these >> vcmd interfaces have become obsolete. Remove them to avoid dead code. >> >> Signed-off-by: Lu Baolu > > it's a surprise to see some remaining vcmd bits not removed. > > with a grep actually there are more (mostly in the header files): > > drivers/iommu/intel/debugfs.c: IOMMU_REGSET_ENTRY(VCMD), > drivers/iommu/intel/pasid.h:#define VCMD_CMD_ALLOC 0x1 > drivers/iommu/intel/pasid.h:#define VCMD_CMD_FREE 0x2 > drivers/iommu/intel/pasid.h:#define VCMD_VRSP_IP 0x1 > drivers/iommu/intel/pasid.h:#define VCMD_VRSP_SC(e) (((e) & 0xff) >> 1) > drivers/iommu/intel/pasid.h:#define VCMD_VRSP_SC_SUCCESS 0 > drivers/iommu/intel/pasid.h:#define VCMD_VRSP_SC_NO_PASID_AVAIL 16 > drivers/iommu/intel/pasid.h:#define VCMD_VRSP_SC_INVALID_PASID 16 > drivers/iommu/intel/pasid.h:#define VCMD_VRSP_RESULT_PASID(e) (((e) >> 16) & 0xfffff) > drivers/iommu/intel/pasid.h:#define VCMD_CMD_OPERAND(e) ((e) << 16) > drivers/iommu/intel/iommu.h:#define DMAR_VCMD_REG 0xe00 /* Virtual command register */ > > Yeah! I will also remove these bits. Thanks! Best regards, baolu