Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4292147pxb; Thu, 14 Oct 2021 02:18:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOONCxZUuZ9VufaXjoz9rMiK/llLKJ9L+mD55Dr4MWbcBJ1wb7HLGarTaoXLFIct+0u/04 X-Received: by 2002:a63:1656:: with SMTP id 22mr3415939pgw.20.1634203132801; Thu, 14 Oct 2021 02:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634203132; cv=none; d=google.com; s=arc-20160816; b=SsnYX8mf5SUvBUe6FC9868Ax2vLI6C+nm3gDLFpc4k1HF5C/GgxbzDhtBhg+fGI3YO wcJc/mrOM0jhBoy92d5k3BetHmPF6ki/kyjZuhIP7VrAMxUdnvmCqrvZsC3uGLgiHEMy AlzS4ePtuGW+ifCT8qIp2GvhQ94BPRkWB0H32HbfroWc767iV/YeExx6b7IHfkB7Sc7r bk8+FueypD39iJcIiEz33OUmbO2yM1aYshJmrJA17HI2+rK7PnTWme6PZ3jPE0ubFL6G ic0eFj1iIj0fndXtgYG5oC15zGq1XMztdp25KR3RZqpxiE9GTOchPJf7F4TByVyFp2fN CQVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FrgyuWuLBh+n7WKszWkjTNYtblIyVmh6I5CBKj1hWB8=; b=hLzWCBAgqFt2Kfb9dBsTYsIUOdysj5aSySkM6QxaHzH2N0CrlTkNc9Ol5ict5BCGJ1 g5Ai97jQS3IZQLKnCu0h6oUB+zkzCK1ZzjkUYmYys/uizDerC+RvoeichkqFnK9QjVaw 7JfPCVqLsioMMF+fuD8EH22YVn8vjTcakVJaTGG2j/z5rInuH/8IVjjhND39++8uAfF9 hr4ondN+FqbEXJGiuLjik5vmAiYqo3r9ufAOUDYesABF5I+L9GPVKQVa8D/tAPyLA5vV qUTIhcaYM3JfVG88np9zK9tXi6Ipeyb2tqXLzkoWKIkBHzk69kreH6TMFvo5DFaMG2BC gsQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TsyMUaXW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi7si2682912plb.71.2021.10.14.02.18.39; Thu, 14 Oct 2021 02:18:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TsyMUaXW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbhJNJTL (ORCPT + 99 others); Thu, 14 Oct 2021 05:19:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbhJNJTK (ORCPT ); Thu, 14 Oct 2021 05:19:10 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 799C1C061746 for ; Thu, 14 Oct 2021 02:17:05 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id o20so17335377wro.3 for ; Thu, 14 Oct 2021 02:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FrgyuWuLBh+n7WKszWkjTNYtblIyVmh6I5CBKj1hWB8=; b=TsyMUaXWrwrpOlM9MWYA18WinOqWNt4plrRIGzrMB0OM7Do6UEo+nrDybRA61Q3fkx uMilZDmdCFpgn2qwq7SvKR7R/+yQRL9zG3DT0A6CNLPFNunAZ1iBnl7u7AkFh7hwRaVl bswPMUvbcmRxrjF1LcwqdxOGNl+o/yb67ode4ZMQUso6ruWO70TNh6Z5OO5D7NIpBLs+ VKlcobhOy61G/syI0EvJUO3EmPST/CXD/UjTefKE04jRTiGpeZvCHRhYgaeWiVoy9NTG IDkJ2avypEJgRksjI+UL1wBztVRQj8JqFRAUY+9/oZBCyPWqeJEJyfYOkvb3i5YemDPk F2UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FrgyuWuLBh+n7WKszWkjTNYtblIyVmh6I5CBKj1hWB8=; b=ZyriB8d+EO2fmKVAEBzpTL/GzFqhmbycfXNI0Rg8vz3+U9+Ydojg8MHXtV1njhU7rX kb2/fM1ytTL9TyYWuVXJzql9SWJHsijsr2fNbtQI8FX6a41wxHK2pV3HkhHUg8WCxkOJ gkSDHZ8KbgvHKPzfNqg1fL+CSBRZbzGHcMxt4qi+aB2OTOBTI6kNSaL3VBVOk+7zddQa M+STRylIlMQSJhLTsnN1srPklNV0kxrM67Sd5GqbLcLmzf7uJC0SCe+yao3dJoExi4S6 RwFJpaxgtubdaF1CndIZl1KOKOQGBcF5bQcip6tdHvHX8o6eCfA0jqzc0vxs12JoZWFA Vi5A== X-Gm-Message-State: AOAM53108OKe1m2I+rKlzZjY4SKk/RLSrNlrpyqGo091fxHEyf2t29Rb dXyywVXpE3w88VJm4DU/kb6GicVPi9I0Kg== X-Received: by 2002:a5d:58ec:: with SMTP id f12mr5266196wrd.24.1634203023719; Thu, 14 Oct 2021 02:17:03 -0700 (PDT) Received: from myrica (cpc92880-cmbg19-2-0-cust679.5-4.cable.virginm.net. [82.27.106.168]) by smtp.gmail.com with ESMTPSA id m36sm1815815wms.6.2021.10.14.02.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 02:17:02 -0700 (PDT) Date: Thu, 14 Oct 2021 10:16:41 +0100 From: Jean-Philippe Brucker To: "Tian, Kevin" Cc: Jason Gunthorpe , "kvm@vger.kernel.org" , "jasowang@redhat.com" , "kwankhede@nvidia.com" , "hch@lst.de" , "Jiang, Dave" , "Raj, Ashok" , "corbet@lwn.net" , "parav@mellanox.com" , Alex Williamson , "lkml@metux.net" , "david@gibson.dropbear.id.au" , "dwmw2@infradead.org" , "Tian, Jun J" , "linux-kernel@vger.kernel.org" , "lushenming@huawei.com" , "pbonzini@redhat.com" , "robin.murphy@arm.com" Subject: Re: [RFC 10/20] iommu/iommufd: Add IOMMU_DEVICE_GET_INFO Message-ID: References: <20210923112716.GE964074@nvidia.com> <20210923122220.GL964074@nvidia.com> <20210929123630.GS964074@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 14, 2021 at 08:01:49AM +0000, Tian, Kevin wrote: > > From: Jean-Philippe Brucker > > Sent: Thursday, September 30, 2021 6:33 PM > > > > The PTE flags define whether the memory access is cache-coherent or not. > > * WB is cacheable (short for write-back cacheable. Doesn't matter here > > what OI or RWA mean.) > > * NC is non-cacheable. > > > > | Normal PCI access | No_snoop PCI access > > -------+-------------------+------------------- > > PTE WB | Cacheable | Non-cacheable > > PTE NC | Non-cacheable | Non-cacheable > > This implies that PCI no-snoop supersedes PTE flags when it's supported > by the system? > Yes, no way for the SMMU to ignore no-snoop, as far as I can see Thanks, Jean