Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1316280pxj; Fri, 4 Jun 2021 11:07:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydhu5R+RqMvJcxlsGsxyicZNy/ziyi0pZJ6OFD7vwsni1GTaOEEOYKdnBpjPx5/DHCRxfV X-Received: by 2002:a05:6402:781:: with SMTP id d1mr6344930edy.32.1622830029754; Fri, 04 Jun 2021 11:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622830029; cv=none; d=google.com; s=arc-20160816; b=SooGNMZmbHx+PX230wOLKhqOvU0HKLThQYNOJZnZs2oeJNFMVwU8MfIFbLdwRHZImz 2wd37S3JpykjZBXIdQWmZvL/rKmLf+sfpnJyV8+6VAWV/2L4d4s7T3IoqIs09IElloQT TPuvoKOCJcJxwr5JTWaYib5fC1XXtzgHDPwnOy8uyqSHxEaHY+kTKCVBOq++6OeBxR7O mmB0OLc8CiPrhqWYCznOhp/0vKlM0w2F0k1K4shp/QmHbEvi1choyYpJxSbVkFApwtcN /9N1fGmGSmM6WFzzXOFdvIwJyZUWbqIYotzsH204DHNkWeKjaomh0DviBJ5mLT+NlK+P 9N3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:ironport-sdr:ironport-sdr; bh=ob7ad6gWu3G9cKvG5vDpV/UeWst2G1K2LeLE87K0Sng=; b=MLcBNXq4b4ON4FFocicIom8TPRCzhYyOhJmr2ec+ulvTN/l2l7MRymxtFeIxZ1bM81 uaNAlmBD66+46IUQWsJ8IvLOHaRlzGYoObUDkYgoXUrej/GZVBdK1ZcVwpbJu+/1Vv1s 0InsuGBUxyHwQeDXK8V9m8UZGmFupsG+ka9QsxdRDCf97TA4T1d1lEMgNPvbYG2rIgLO +t52IUUO0ofy7i23+iNFsrzvz4lHuGl2cD2B5b6xqV2rwqd4hACt3PrBUAyZh5/yVXAO LOWA7ZyFsRjoql6tHbqHqreaZy2k9SUu49L9bot/bpA6ul9SVy0ktthU6twXovDI4llA Tp0Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si5292659ejb.149.2021.06.04.11.06.45; Fri, 04 Jun 2021 11:07:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230421AbhFDSEx (ORCPT + 99 others); Fri, 4 Jun 2021 14:04:53 -0400 Received: from mga02.intel.com ([134.134.136.20]:34015 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbhFDSEx (ORCPT ); Fri, 4 Jun 2021 14:04:53 -0400 IronPort-SDR: JUBX1t0ImtMmd05/sxkSjR7aBdOVVZz855pq8Dw/hLZJhCcjDIENNPkZJkQeI1hU8e6L/l24pc nj0rAlJ/ogeA== X-IronPort-AV: E=McAfee;i="6200,9189,10005"; a="191450655" X-IronPort-AV: E=Sophos;i="5.83,248,1616482800"; d="scan'208";a="191450655" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2021 11:03:06 -0700 IronPort-SDR: BdAVPp7uqcrplg6o63MK5a9r3KtzhxadSqzeiSmXahtASlrILQNHhYH7dc8lWoYEFI10n+IoI8 cbpPKxXHH9zg== X-IronPort-AV: E=Sophos;i="5.83,248,1616482800"; d="scan'208";a="439267249" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.199.155]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2021 11:03:06 -0700 Date: Fri, 4 Jun 2021 11:05:44 -0700 From: Jacob Pan To: Jason Gunthorpe Cc: Jason Wang , Shenming Lu , Lu Baolu , "Tian, Kevin" , LKML , Joerg Roedel , David Woodhouse , "iommu@lists.linux-foundation.org" , "kvm@vger.kernel.org" , "Alex Williamson (alex.williamson@redhat.com)" , Eric Auger , Jonathan Corbet , "Raj, Ashok" , "Liu, Yi L" , "Wu, Hao" , "Jiang, Dave" , Jean-Philippe Brucker , David Gibson , Kirti Wankhede , Robin Murphy , Zenghui Yu , "wanghaibin.wang@huawei.com" , jacob.jun.pan@linux.intel.com Subject: Re: [RFC] /dev/ioasid uAPI proposal Message-ID: <20210604110544.31e6d255@jacob-builder> In-Reply-To: <20210604162200.GA415775@nvidia.com> References: <01fe5034-42c8-6923-32f1-e287cc36bccc@linux.intel.com> <20210601173323.GN1002214@nvidia.com> <23a482f9-b88a-da98-3800-f3fd9ea85fbd@huawei.com> <20210603111914.653c4f61@jacob-builder> <1175ebd5-9d8e-2000-6d05-baa93e960915@redhat.com> <20210604092243.245bd0f4@jacob-builder> <20210604162200.GA415775@nvidia.com> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jason, On Fri, 4 Jun 2021 13:22:00 -0300, Jason Gunthorpe wrote: > > > > Yes, in that case we should support both. Give the device driver a > > chance to handle the IOPF if it can. > > Huh? > > The device driver does not "handle the IOPF" the device driver might > inject the IOPF. You are right, I got confused with the native case where device drivers can handle the fault, or do something about it. Thanks, Jacob