Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2275659ybt; Tue, 16 Jun 2020 01:32:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvJhL9RftITAZljo/pKZ+iWkpVIqlmHLrDpAxhdMVW/O/ZnfMfi2zBIIChPzENCLpRZxjv X-Received: by 2002:a17:906:924c:: with SMTP id c12mr1820359ejx.457.1592296364527; Tue, 16 Jun 2020 01:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592296364; cv=none; d=google.com; s=arc-20160816; b=wQ0FWsqvQfcFEJWp6PTBe2ufGcFiO1vikCIRIBPmAss9EBZ/2o0Vq7PwxalxXy2w1y LIkx0yEgeXYVTxIdNREqGhU21cKsqeqEHmQyFRrUbCFZtzrH1jx5PcfajG8atyBBuNJG nMja6gyDrsGrnl4W0ey6NnhC6X3eJTlt8Wl3VE8IKC+pPQpJ1AbWLj0eO1jFpIh4Cd9p 8Sz1bz3p+EyoaZzc2Dhmp883eyclrzAIxptzodUhy44pDjLXk8lOt5JUrxXX741OV3pw 34+qaZWcYsZbnXsb/sjwHwgiqJl9uXkNI34pqb4GOfWldSLylwBcDlm2JIMmvopkRMp/ 024w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8IjNpcb5GlLP8oh8x0KUTPeP/cupRlI8efPDAe078Wg=; b=yFRmvg4Yr7/mlto1V8kU4adRO9M8N3Ll/xCXpJl9kAWImw1yOvXWDp0Py2VXhWxCSX VNfRCzl9wDCtsAJfGQXOOX3aC0uoVGrZ8QZmgvjgPwggataGolcSSqs3p6MK8TXLGxEZ uDFUfWWp6P/fosqb/z2/Z4FChmqTmyblNnQtqUE/zQ6LOZVqkbebhNf+tV6e7DPhIdD7 E9gjhJcLtzavyIwYYeasoe95coeQqFJlHpZcBF/9+eDeh3Gpd8VDldQDE8ig11TFmGe+ 7dQpZ/CKsVjBoIsiC/JiJLidRI7V1w5IkzCcTxY4pWEZhsPIkyxVHnXCof2LYnnsne1C 0hZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n2zYcdJI; 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 t18si12053839edt.132.2020.06.16.01.32.22; Tue, 16 Jun 2020 01:32:44 -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=n2zYcdJI; 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 S1726899AbgFPI2d (ORCPT + 99 others); Tue, 16 Jun 2020 04:28:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgFPI2c (ORCPT ); Tue, 16 Jun 2020 04:28:32 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE0A1C05BD43 for ; Tue, 16 Jun 2020 01:28:31 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id dr13so20517923ejc.3 for ; Tue, 16 Jun 2020 01:28:31 -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=8IjNpcb5GlLP8oh8x0KUTPeP/cupRlI8efPDAe078Wg=; b=n2zYcdJI10LwDXrUDK71pELIpej3d4vK23sWHQIG+DTNiP7rBB2Ydlo3ni2NhqKlw0 qmgjqRyWrTNKRJqtcN54fNNbVchNxv0UCZ8UD6A5n0N9veGqYXg67ZE1JHCqEN7GwO5N bEzMy2pQBU1i7k0Z/9BJp4fSpA1uwPrI9uPISnm1l2c83I4urBxMP6qXHOXcm7LqT474 DkWGGV7iqbwvNUH1ffz861zJTpj+CcmYfrKxZNalIwc2nhiDZQK3HmY8x01t6j0g8Rzp 21hq2PicDxmT3+wENPx4ZJnox12QbkNo3+5pkq+RlLl6x1a38Mh53C7YsX6mxJYhTMLu rlFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8IjNpcb5GlLP8oh8x0KUTPeP/cupRlI8efPDAe078Wg=; b=fwYq5EQnKm71+91zxCqQ2TGBeJYAClgx91+F/A0WG/1TaTcJuVgSeycPzGjp2lBuOZ ZjUJykizoJa7w2xvH+yQvOJOlsQU1K6I3KIDVb30S0ZJ7VZotyGFcwf2CmwLhIr1Iwlj Vbf9Gxo0laWxYwECGK1XantwYZ8HqPHUdW7vdk0sDykLj4Z23wuVwihjpWO5X6OaxSMz CskseS1UKSAZMTjGhZ27KxeHXCDpMoLjn4CG8sTQ9r7zFV8Y/R+smBq25QxMATLbsH8i IE0pXi38hVRF+9qKCO5njZwkEna8G9dzjRtwtvSZ5F1UrplNAvAd9SrYOg8E3xJoktvC 8PEQ== X-Gm-Message-State: AOAM531CpzvHfIS9Kb2Gqb856BrOYa6v/NYaQUlW4QSLrrSdz/ykyef4 18L+A8Vyew8lnjQZ9E4SFzp1JA== X-Received: by 2002:a17:906:6b92:: with SMTP id l18mr1733654ejr.145.1592296110725; Tue, 16 Jun 2020 01:28:30 -0700 (PDT) Received: from myrica ([2001:171b:226e:c200:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id c4sm10680797ejz.104.2020.06.16.01.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 01:28:30 -0700 (PDT) Date: Tue, 16 Jun 2020 10:28:19 +0200 From: Jean-Philippe Brucker To: Fenghua Yu Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , David Woodhouse , Lu Baolu , Frederic Barrat , Andrew Donnellan , Felix Kuehling , Joerg Roedel , Dave Hansen , Tony Luck , Ashok Raj , Jacob Jun Pan , Dave Jiang , Yu-cheng Yu , Sohil Mehta , Ravi V Shankar , x86 , linux-kernel , amd-gfx , iommu@lists.linux-foundation.org, linuxppc-dev Subject: Re: [PATCH v2 08/12] mm: Define pasid in mm Message-ID: <20200616082819.GA590740@myrica> References: <1592008893-9388-1-git-send-email-fenghua.yu@intel.com> <1592008893-9388-9-git-send-email-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1592008893-9388-9-git-send-email-fenghua.yu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 12, 2020 at 05:41:29PM -0700, Fenghua Yu wrote: > diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h > index 64ede5f150dc..5778db3aa42d 100644 > --- a/include/linux/mm_types.h > +++ b/include/linux/mm_types.h > @@ -538,6 +538,10 @@ struct mm_struct { > atomic_long_t hugetlb_usage; > #endif > struct work_struct async_put_work; > + > +#ifdef CONFIG_PCI_PASID Non-PCI devices can also use a PASID (e.g. Arm's SubstreamID). How about CONFIG_IOMMU_SUPPORT? Thanks, Jean > + unsigned int pasid; > +#endif