Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp222923iob; Mon, 2 May 2022 17:41:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEONrL8yTo46bztfzl46HspYpbyuxLqQIPOX8LsC2Ei2yxE07/kdgW9d+jccU9TfGlf+EN X-Received: by 2002:a17:903:2352:b0:15e:5aad:af5c with SMTP id c18-20020a170903235200b0015e5aadaf5cmr14518165plh.116.1651538502490; Mon, 02 May 2022 17:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651538502; cv=none; d=google.com; s=arc-20160816; b=D7KyDTonkfCu6MY1vbmDAR8rgMWcLo7Ue+6Jz0zfL1ByMaEuLXdmkTmKgZtAIYPqwj ebdQ3RcfWDjphkwZkieeHRS8iWgklLuei8vU9i7caq4lnYnGZQG3B8gXayPo5jXYpsgh Xku71KU275v8BRbVa3M3+zlJ/iCHEqra7e75wp+CRLpQCrDn46nHE4Q1D+VyBBAGt4YY AJsCdcc2kaxCsjyr3f84+sS2tEiqKUDDpbQ4evQ9K3InCXljJnIrmWR1TPW45qE24/zn 7ZHRVYverBaYogkTsq6iHnAIdJRJhM2jMIdF9XVKQfnFTcs9SyPrK7ISsTyN8vuOjbcG 93GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=iJUduAU1oybVH0nzHezwu7T2XczpVELyeUEx8TRBvI4=; b=eNIw74YRHOgTFXKyQXB7jxaQGnZxbAi8z10uwIdC57l8LP6IsyLDtUBSuUn09L01sq IhVx5sOrxnHEoBvbhsf0KXjupmW6GzBvczP05J63E6QEKTqwuQhSvnxdAKIGu/NW8b5z riKr4VdSUpIzpGktTjkcG17uKeK+GhAOi9wGgEzWjNU4js/tVFjBN/BcOg/Lk6VvBS+Y WOjK0V9AUYbwZvnUxAtD4PGC15SiDa5xQD+buMi1H3ZwT04nRi+twAOQ4vFqzIHvpcx1 7U8IkypU/WiqpgI4gVvjP0ZB/Y8We1d+zv+9oBBsCVNg83XBPyki6ZCM6I9+dxBEgiKI zjEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ieqge3cD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 12-20020a17090a098c00b001d529ef74a5si617572pjo.83.2022.05.02.17.41.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:41:42 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ieqge3cD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0E9BD48E5B; Mon, 2 May 2022 17:31:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350113AbiD1Qi5 (ORCPT + 99 others); Thu, 28 Apr 2022 12:38:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350097AbiD1Qi4 (ORCPT ); Thu, 28 Apr 2022 12:38:56 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE398888E5 for ; Thu, 28 Apr 2022 09:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651163741; x=1682699741; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=rcuXjMkF8Ip+u/ASCnj8P5Cfp+tPtitJogFYRQ+vRQI=; b=Ieqge3cD1txlnLf43ldDIubkq3I5rjwrXh0jgK7YyJyHvsAI1jDfZhMb B/g8OOcOX8JsXYzMXGZqsoP9OFInVCloO3woMy0szNRIC7HyZrQAtly7d I4P4+tTiFZz9WQN50z2U0AJmtyzGmfTUi/C9jZdyzdMoFOJHlZvX/2SOs epcQLkuctpf/ue2YFZ8v4LBiG2cZ3yTFCm8jKzITGi+ONs9asmtNdRswT f8WZZpUFilrhY/95uUcVtc5OGOZHE1Xhrh2nymVLUDqu+gDGY704fQ4TC xWhPEmRAhNoVrOvQONH8CvpJUino1xuTAUgtVsPm3aIE5vJJtBLcvd+os Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10331"; a="266160097" X-IronPort-AV: E=Sophos;i="5.91,295,1647327600"; d="scan'208";a="266160097" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 09:35:24 -0700 X-IronPort-AV: E=Sophos;i="5.91,295,1647327600"; d="scan'208";a="559761235" Received: from mpoursae-mobl2.amr.corp.intel.com (HELO [10.212.0.84]) ([10.212.0.84]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 09:35:22 -0700 Message-ID: <7ad996df-28ca-0aee-be23-e75bcca8d136@intel.com> Date: Thu, 28 Apr 2022 09:35:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4 05/11] iommu/sva: Assign a PASID to mm on PASID allocation and free it on mm exit Content-Language: en-US To: Jean-Philippe Brucker Cc: Fenghua Yu , Jacob Pan , Tony Luck , Ashok Raj , Ravi V Shankar , Peter Zijlstra , robin.murphy@arm.com, Dave Hansen , x86 , linux-kernel , iommu , Ingo Molnar , Borislav Petkov , Andy Lutomirski , Josh Poimboeuf , zhangfei.gao@linaro.org, Thomas Gleixner , will@kernel.org References: <76ec6342-0d7c-7c7b-c132-2892e4048fa1@intel.com> <20220425083444.00af5674@jacob-builder> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/28/22 09:01, Jean-Philippe Brucker wrote: >> But, this misses an important point: even after the address space is >> gone, the PASID will still be programmed into a device. Device drivers >> might, for instance, still need to flush operations that are outstanding >> and need to use that PASID. They do this at ->release() time. > It's not really clear which release() this is. For us it's file descriptor > release() (not MMU notifier release(), which is how I initially understood > this sentence) OK, maybe that should be: "file->release() time" to make it more clear.