Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp73030pxv; Tue, 29 Jun 2021 23:51:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXn3XH23vSfzzA7oMBczU10pYFaEaZUu5YCvfmExAKXuAF7rOe25kHSade1Xji0bPJ+2SE X-Received: by 2002:a50:eb8c:: with SMTP id y12mr44743928edr.189.1625035862050; Tue, 29 Jun 2021 23:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625035862; cv=none; d=google.com; s=arc-20160816; b=hzWacHbbETpBdwjEVcZWsu2zTEGSDZ3/0Tcd97M7IwQU900CSx0fYWihPFRF7xGZNZ 3AF2oGoyJQCXsuU2PJ80Cn9eTgto+pz6c1JiF9VdT4eqF0FFn8JIc4gKHE2vAf2f1eln JMloEB9SIqxj8YNrvG7kZ2a58yYXjkZhZjo7dsKylHWwoMcpMZBShOET4vd/D0AZnojz 22h4dN6e/NPq2WFgs7SH90TPraQptVrtUD28U2fg+03icnBPY23+G0wbeAU6STiRUzpq XZgEzl/aM5c140t3p0mi9Kqt0n9UtBF89K7b1Rkx84v3nEZRCGhTipkoOJtfW+vzzbYN DqFQ== 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=b+svzs78j/62UsetKE/X8fy/L/Rti/5BS8qNFSo3AdY=; b=DQzgYO46ugOIUlBYwXHBINNIL0L+ks31Fbd9fwFkEOxN72WI8gljN6Ky2MUwRgNY2z ia1555ZW2rEof/MGa8PLG6p2UcoomIY8EiJOFdPgaUU27rnaq7wt+VmHQXiymhRrdx6g HMdX8hAlTw4THMmxmr9AQBEBWqxGtL3rIpMfIlG6HqeyJVbkgpYpUzR8bYZaMozghhIu Spa5D9xdF29nMNkZQhjx21rV2u88Vtu997SBYqro3avKk+GVgv/bclAvigYDFLwDCJrj wYrBrbsKsX47cGaKBFu3QMn2VeIv9TLT4qPvw8fT3EH4GQnmI36msJ6dN30mOhs5iBSz fRCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YvWJ06tp; 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 a9si19180693ejj.647.2021.06.29.23.50.38; Tue, 29 Jun 2021 23:51:02 -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=YvWJ06tp; 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 S232469AbhF3GwO (ORCPT + 99 others); Wed, 30 Jun 2021 02:52:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232018AbhF3GwO (ORCPT ); Wed, 30 Jun 2021 02:52:14 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF4BCC061766; Tue, 29 Jun 2021 23:49:45 -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=b+svzs78j/62UsetKE/X8fy/L/Rti/5BS8qNFSo3AdY=; b=YvWJ06tpNI/PQXlniltz4HwA3w qvb35mtIRc7zoasrxSW0mwsdp8zrl4IJSUR7/UExaPp/G8HsbZqhmZlr4ASbIIp59RN4JH3VQh7fp xHEDUrkCCy2uCHpgfbSjVyKOkg4PTOCvVF4Enjph0VlxcF4zTLWkTlRaISyXvZB/VwmOM3y+FpBoV 6qZoJl6WMlxndz8lCibcQIqcC5UECay58H2CbwSkj9LoPW1VLcWhEzsZrRfGx/73bje+xZPfyhKNH lVnlsQnRDYwDqRdQZanFGZ7dwRrA4fkXGgnVrpwNPbUCu1xejZSK9SK+jWBqCRn8QlyeNiYye6v4P Swb3eHsA==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lyU1x-0050Oj-1M; Wed, 30 Jun 2021 06:49:09 +0000 Date: Wed, 30 Jun 2021 07:49:05 +0100 From: Christoph Hellwig To: Jason Gunthorpe Cc: Alex Williamson , Jean-Philippe Brucker , "Tian, Kevin" , "Jiang, Dave" , "Raj, Ashok" , "kvm@vger.kernel.org" , Jonathan Corbet , David Woodhouse , Jason Wang , LKML , Kirti Wankhede , "iommu@lists.linux-foundation.org" , Paolo Bonzini , Robin Murphy , David Gibson Subject: Re: [RFC] /dev/ioasid uAPI proposal Message-ID: References: <30e5c597-b31c-56de-c75e-950c91947d8f@redhat.com> <20210604160336.GA414156@nvidia.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210607190802.GO1002214@nvidia.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 Mon, Jun 07, 2021 at 04:08:02PM -0300, Jason Gunthorpe wrote: > Compatibility is important, but when I look in the kernel code I see > very few places that call wbinvd(). Basically all DRM for something > relavent to qemu. > > That tells me that the vast majority of PCI devices do not generate > no-snoop traffic. Part of it is that we have no general API for it, because the DRM folks as usual just tarted piling up local hacks instead of introducing a proper API..