Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp75841pxv; Tue, 29 Jun 2021 23:57:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNnBVYq4kh1QjSVOeYx/pnCFnDl7ovshffc6Vyfm1Q8cF6PXoOGCY8MY1rVJHP4obUhhs2 X-Received: by 2002:a02:cb8d:: with SMTP id u13mr7639685jap.19.1625036223441; Tue, 29 Jun 2021 23:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625036223; cv=none; d=google.com; s=arc-20160816; b=HthXS3OmeqSUE83oeP7MGr49q7eq10qrBOIal4P6NK6ujoKlySTcaa0TBmpEUJskdq G1eVS/j3hoF5wEBdLsq2e+x/N9tP0BMX/yh48xUouAhOtlFQ8EZ0NEFKBOOnrVyNpmGL Ahpz+n/IrPFRDIzQeiGShGtcjNKxeiWfF7ZxscESJvcle8OggO1tw+nXa7kHHqhySpYx MLRClCPmbZymBr54aTiNr41P40NGVWarJFUUnnd1RhDwm2LI1LdGeKKH5bT+1z3Id5am oAMOeVYQfceVb7tenPkC92TgDROzkGcRAnBpu/iG0fDItELJWbTvJsRAjYsiXmZ86s/0 qvHA== 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=f/Ss2iSM2QGOE0K5ddDAmgJLDWuc6gafnUUbn6I+ywE=; b=YkztJh3oTUvgz3yeze/lfSCsENAWxd/q697VRC56y46TnLFHvR6nK62pY/VGWcGhF4 AzfolYQfCbTpu0m2WfFag7m/3EjBwsUDEaFvICW0KuzhdUGRHPxE7Fm0E2ZU8G7cUxvW 6kUY2UDlJDBsEqtg/1GcebtJ9NOUZu6J0Haja2esawPGdOHGf3VsleBbMVguDgZ/Y1F2 xHu6YyUbFxJyVImiQwL4q3xOQWuKSq0Njcup7Bdqt81zOK+dRjmKxJ8L0qB3c80pXwHi HagQEFlbANBYePmo2hY2t2qrTkAevowUbH3qQrUHMBYaX8BhH0qWWGP8R0XbUBRhH07T BzWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EjtYVsIF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si28371929ila.16.2021.06.29.23.56.51; Tue, 29 Jun 2021 23:57:03 -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=@infradead.org header.s=casper.20170209 header.b=EjtYVsIF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232653AbhF3G5V (ORCPT + 99 others); Wed, 30 Jun 2021 02:57:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232453AbhF3G5S (ORCPT ); Wed, 30 Jun 2021 02:57:18 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96221C061766; Tue, 29 Jun 2021 23:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=f/Ss2iSM2QGOE0K5ddDAmgJLDWuc6gafnUUbn6I+ywE=; b=EjtYVsIFXW62/EkGI7hOZiVxWu WtQ1QOiJ+kE2LqSAajX/iny/lZxgDgpw4Lqlm87T+L3KdMUw9xtCm/qbkjnNm+n9HchMjHUuhlxdz w2OPufXyWbuv31Dot4DIGelHWZHewJ/p/raVKncRixUUmP7uchkRq1HvqmlhbTVJgHVFLODbv/YHA RNDQhV6qzSdLYF0g40BOD2Ta0/YGu2gzi83bR6eLmhaerMvfLzmNz8rtyEcmJ8Yhva1wvB3sNhoIm 1xB1suxXnDYbBmr21iG+4XFobuyQO+ec3qti7Yrj8KfMA7I5Z33WvXyyfut+u94vA1XrYQhuXZ2+W lhuwYjjA==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lyU6N-0050fY-DH; Wed, 30 Jun 2021 06:53:46 +0000 Date: Wed, 30 Jun 2021 07:53:39 +0100 From: Christoph Hellwig To: Jason Wang Cc: Alex Williamson , Jason Gunthorpe , Jean-Philippe Brucker , "Tian, Kevin" , "Jiang, Dave" , "Raj, Ashok" , "kvm@vger.kernel.org" , Jonathan Corbet , David Woodhouse , LKML , Kirti Wankhede , "iommu@lists.linux-foundation.org" , Paolo Bonzini , Robin Murphy , David Gibson Subject: Re: [RFC] /dev/ioasid uAPI proposal Message-ID: References: <2c62b5c7-582a-c710-0436-4ac5e8fd8b39@redhat.com> <20210604172207.GT1002214@nvidia.com> <20210604152918.57d0d369.alex.williamson@redhat.com> <20210604230108.GB1002214@nvidia.com> <20210607094148.7e2341fc.alex.williamson@redhat.com> <20210607181858.GM1002214@nvidia.com> <20210607125946.056aafa2.alex.williamson@redhat.com> <20210607190802.GO1002214@nvidia.com> <20210607134128.58c2ea31.alex.williamson@redhat.com> <12631cf3-4ef8-7c38-73bb-649d57c0226b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12631cf3-4ef8-7c38-73bb-649d57c0226b@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 09:20:29AM +0800, Jason Wang wrote: > " > > 6.2.17 _CCA (Cache Coherency Attribute) The _CCA object returns whether or > not a bus-master device supports hardware managed cache coherency. Expected > values are 0 to indicate it is not supported, and 1 to indicate that it is > supported. All other values are reserved. > > ... > > On Intel platforms, if the _CCA object is not supplied, the OSPM will assume > the devices are hardware cache coherent. > > " _CCA is mostly used on arm/arm64 platforms to figure out if a device needs non-coherent DMA handling in the DMA API or not. It is not related to the NoSnoop TLPs that override the setting for an otherwise coherent device.