Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3694403pxb; Mon, 24 Jan 2022 15:34:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCMvIBK9Akhzz0Y2E7oAvsN2p9M/aigPo3inJtKxX9pwbIB+MxeH+7w3R08S3VQ7TH+Aru X-Received: by 2002:a17:90a:f413:: with SMTP id ch19mr610641pjb.19.1643067267862; Mon, 24 Jan 2022 15:34:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067267; cv=none; d=google.com; s=arc-20160816; b=CD5gOGKsPIfyaVYHHfefo51hFXbbYqya4Q50EQsGmph4q0A7pUT3pdGcwMsZ/AKcyU qAOk6m7hdCrgqMM2Izyqu3OImToh7oLtM7bH9gqQOWqv2FraANKhdrOhWHOeJaMS4pND 9qyYOI8dnfgGi0KkOHPaZDsaRKmwMEZ9KcPMu4qRqq08atQb7VUadr6PsXam+m3B7QTC X9BywfHgpCSSANYAQt1lk55a1dtsfetCsjyzuhuC1hUFDScRPnmSLvIDqOF3OY3U0/ds VjdfS2o1KQ7H5voiYLxlfoXBU1o06yLyJnHy30tJlg6Fvs8pIOjaT6GfrV+dent/YgLQ F+pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=Ewg7Dhv9g66Ay9i+CemB/iAHIgq8aLwWkreYxw8kj/g=; b=hWnyJjephlrwwFdoUnjBwlQ42mZrD13Ec0LCMGf7qZjew7cEPhpo+qvIcVpZ4E5hie eY0Ml39ihWzGSPSV3LyNWQn3J7oPG+j/QfjZ4zh/1DZHmyWdLmxBm/JXv9pGhWyja5bm EG72AaC3zilW510ZLv1nMr37qFL6Fc3a8jC/ixISkuUrbjUZKkW6ukEIm7Yxty+G/L4H K00h2iNtOq6/w21Q700+FJkrOQDoLJm3Dl4xJQGdIBXhgaI9XU/AOisPpZ4VRNahYjR8 RPRu6p++aTcE3ryExNCi9ru0hbtFThxOxPy0uFXawP0PF3lODCtbbXWB19VYDh5o5SBZ RUsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=lKXSQDPR; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si12312144pls.380.2022.01.24.15.34.16; Mon, 24 Jan 2022 15:34:27 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=lKXSQDPR; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1850159AbiAXX1d (ORCPT + 99 others); Mon, 24 Jan 2022 18:27:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1588113AbiAXWb3 (ORCPT ); Mon, 24 Jan 2022 17:31:29 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 683A7C047CD4 for ; Mon, 24 Jan 2022 12:55:58 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1643057757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ewg7Dhv9g66Ay9i+CemB/iAHIgq8aLwWkreYxw8kj/g=; b=lKXSQDPRwtX3JbI5kY4OS0NvZR/TtL6HQvc1pAby9EDjOYmhD5/59olQqxj2uLie0QcmXD 122jSktPVHZZZXrwOHEgRzWf0nL0CBHeDPrSnDDr8HDOszOc/HBm5rmP9RF+gXhBjXTn5t BOt4I8USw4ZZZYWMNLOZPfxrxIWpgrJJfyajfFitSwYv2H6JgoZMgt5ENKQsfH3WtPxwrh X891rpgKH/dqXmcZFOicjJ/6jhZv/n7K819/xU9XoTJJJG0UmRxK0IBf2I1GcI+nlIFdYZ hcAXac4/1ZFqNnIiV/DS6ITtBOgFtesQaRMiqKByg+iV2ltmyDTXH+IW24cw5w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1643057757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ewg7Dhv9g66Ay9i+CemB/iAHIgq8aLwWkreYxw8kj/g=; b=G3ENNrBjyqKPwM/QWySmB1I+RO6YHoUmLNztYTPsSSISUX2jBvJ6FDZadlS6OF25uukxWG XkpauCr0fKJ7TtCA== To: Fenghua Yu Cc: Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Dave Hansen , Tony Luck , Lu Baolu , Joerg Roedel , Josh Poimboeuf , Jacob Pan , Ashok Raj , Ravi V Shankar , iommu@lists.linux-foundation.org, x86 , linux-kernel Subject: Re: [PATCH v2 05/11] iommu/sva: Assign a PASID to mm on PASID allocation and free it on mm exit In-Reply-To: References: <20211217220136.2762116-1-fenghua.yu@intel.com> <20211217220136.2762116-6-fenghua.yu@intel.com> <87ee4w6g1n.ffs@tglx> <87bl006fdb.ffs@tglx> Date: Mon, 24 Jan 2022 21:55:56 +0100 Message-ID: <878rv46eg3.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 24 2022 at 12:52, Fenghua Yu wrote: > On Mon, Jan 24, 2022 at 09:36:00PM +0100, Thomas Gleixner wrote: >> On Mon, Jan 24 2022 at 21:21, Thomas Gleixner wrote: > Ah. This patch should remove ioasid_get(). So I will change this patch > as follows: > > 1. Remove ioasid_get() because it's not used any more when IOASID's > refcount is set to 1 once the IOASID is allocated and is freed on mm exit. > 2. Change mm_pasid_get() to mm_pasid_set(). Yes. Just resend this one. No need to post the full queue again. Thanks, tglx