Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp290169rwr; Thu, 4 May 2023 19:21:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ug524QlmGtxLA7tMxO2sXFgMzmwt3yImq9l4+/GJDrlNLpacpFIBgJWN5u5MQDvGUNNLi X-Received: by 2002:a05:6a21:3a8d:b0:ef:44da:9418 with SMTP id zv13-20020a056a213a8d00b000ef44da9418mr4687968pzb.17.1683253309834; Thu, 04 May 2023 19:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683253309; cv=none; d=google.com; s=arc-20160816; b=GwNtTU/Q6s55Io5iH+qhk13PFa9QKirEk0meJw+fEHy/Hrtiv2CM4woPTHVfBV69uy sWm2CNdZ56ifFLwrSY7GwfS2OEDxU2F/46QadtusdRyBzAtOw8sHxBLsZViDxHKZPgg+ p6M+OJ0tqOTzORmoforP84BLBFO07IoKwb7aEs5UJWEABzPHXgcuEaBnvpGKKOMi5YGe ifO8QgCAM5r4ujQeVEbvFKToLaef8IUJhzWO6Kn34SVWcB4pWVaCnrRsI9JkrsHP4vBD LcZW15NrasHXyaIriir3/tb2tOpAs0YW9GVhYOy/Kv8GcD+ap7oUJv5HO3smmmTj4KCt Duwg== 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=/MUN6QqyBLauAOHfVq8Bt0WzfAjAxIr8iAAEE0OWwaM=; b=JYs/0Qy6R9m//QgRa4onAPsJIPO7MMbvmFnevjagUqYSfF01w1YtD8maz+UNhBd0WY aGDt8fR6uITYZHsSPiGiXAQWLwmp3s2tNqovpfgIdWq+O3n5xVL0Barz778u4yQ9cGZY W3fIGI+6iP8mkLHyXKf6ldPfU6Y+qvBJ7UaujfbKBs8EHa14IafcnPK0K1eJZvEO6eKw iQqL399CYS/miqu5UcAVxes49wGvR8CEU6eP3WnmqrXrFM9rNKPGUKzX9lX+mN2k+9k0 dzLzvnp6yOWpwpcDLfDY2SA9yANmeC5GEQVtYZ1r1FKNc2amkL14CUwI4aYHUfzy4ok0 zogA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E4orQoeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g66-20020a625245000000b006434e20d01asi863120pfb.199.2023.05.04.19.21.09; Thu, 04 May 2023 19:21:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E4orQoeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229736AbjEECIT (ORCPT + 99 others); Thu, 4 May 2023 22:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjEECIR (ORCPT ); Thu, 4 May 2023 22:08:17 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5304E67 for ; Thu, 4 May 2023 19:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683252496; x=1714788496; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=mQQCDIZ9Afq+L3IFvslYxX++tsL66MbVRQZOEH3wFKE=; b=E4orQoeWmvogs89kRTF+QShrdRgqKikoOIEDMCT4eSeahvt+/q+ddr0f Z6zUdDoDkAkc3G7pj4fHGS44ZtRHc+WoTE3870OgI7HaJT3dS8ZiRghWh 66WevbnvUDNXaRW8siI3Syyix6veQEq9jxgLBfEJ9ROwGJ4lan1hI1+6Q H72SxUczCchmXCpVGjJpxYTbG8+/KJQ7Cr1TT4wK8SGczyiFqFHrltcPT nnxJpnuPxZRQU7XInMGgH+E5ELraK4lKhvweL3GVLPFybOap4KTcSCeUH 0wucg7qMMXsAclvCggkJLdYTVjJS2yEq0qVsDP032bLRxUH1Q2De17m4s w==; X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="414637362" X-IronPort-AV: E=Sophos;i="5.99,250,1677571200"; d="scan'208";a="414637362" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 19:08:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="762220576" X-IronPort-AV: E=Sophos;i="5.99,250,1677571200"; d="scan'208";a="762220576" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by fmsmga008.fm.intel.com with ESMTP; 04 May 2023 19:08:13 -0700 Message-ID: <025d1e25-9f4a-a54b-ac99-b46f032169c0@linux.intel.com> Date: Fri, 5 May 2023 10:07:51 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: baolu.lu@linux.intel.com, will@kernel.org, schnelle@linux.ibm.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] iommu: Add a capability for flush queue support Content-Language: en-US To: Robin Murphy , joro@8bytes.org, jgg@nvidia.com References: From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/5/23 5:10 AM, Robin Murphy wrote: > Passing a special type to domain_alloc to indirectly query whether flush > queues are a worthwhile optimisation with the given driver is a bit > clunky, and looking increasingly anachronistic. Let's put that into an > explicit capability instead. > > Signed-off-by: Robin Murphy Reviewed-by: Lu Baolu Best regards, baolu