From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 812D728BABA for ; Wed, 23 Apr 2025 17:17:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745428644; cv=none; b=s6cQrR2FkXPiQR0ku4ENAbtf7kB0pIB2jFXsaZ6BEkob6YDXXpFvQQ97Qg57QwS+oFdUfy2Ka9Z0yY/xnnE4T1opyOiztCsXseRriTOi/n9GZYjXUOCzSpEqWszvSVk9N89tx+ssHOQx6evQLek5hzCqBI4WZAO3lUAjjYiXVPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745428644; c=relaxed/simple; bh=EiBhyUfzV2Z7UDyJtWT+jDVz3vG5z4pmjKVdd/tf4pw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oNhjfVrKFSeBk/r6bcx6ql+BH44IrWbOJd4UYX2XAk8r4AXmciOfNKPvXMb3+IjbhMNwB8Sib+WVnJO7m/8aJ3lKqVx5EY9fFKQCLFWukgimV1qP9iXiwQ2S8JbifiQ+KEdmP3d00xboGwkJ38vMJVlvMU0xF9H0EmivRL4bfOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=npaeDpuZ; arc=none smtp.client-ip=209.85.160.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="npaeDpuZ" Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-4766631a6a4so837481cf.2 for ; Wed, 23 Apr 2025 10:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1745428641; x=1746033441; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=dFsItIzcNoABKT1tTnR+L3KluEl/QW6UiWkd3yuS4gc=; b=npaeDpuZ5VPkOZqrigtgKEO3dCkGR0IX2y98q9Ii9PH6a4ySKU1Jl4WwtNJ6vivJox 7hEhKgYIFPYqeHFyrzJiO3d33Z8ckzVE0eaA8fEtLnT8cYn03BrtVZuBiETLqrfiK/nf gFTPKeLi7Cpt7+qx2b+ZjMHPmjzmah7oNakivA1lRSbQMUGY1if5wHCAKmZlpI9uAt6a Zy6Lvyyn98F2uzFdf2FiWobaepLTsF6ukZ61MMk+0nGEE0Blu0FjWpPxnQrpfafrFL4m rX9Cge4tjMFyn+s+tbrBkE7lZCL4t6Rs9j2pRiBe6X2c5Xq9grXs9D9XN/yfjfw31f4z 4q3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745428641; x=1746033441; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dFsItIzcNoABKT1tTnR+L3KluEl/QW6UiWkd3yuS4gc=; b=EvxNwibcC0uWoijW6e9PFlur0qE5LGK7I4oHFmN61ObWex8qGqYijnJT9uSlzb0s7u 3DYzQFmAFXDlawpMaifENTd//UcqRtGQxVUSULtbi59lMpvkw6ugKR1QkZ9Y6rCZV3z2 B+w0s3iNYAyEOsyyPXnxsx86CnP3Z0py5Tbqur+8Oz9PP1RGU3WpEENfdqDDPWhmWVyE gAw5tpL6C3IpJVUd5ykpCz6F87kugzqeIt2FeqsTjfi3HMk/7bfLB4CAke24OGBvzJDx kxuaeQl6+X5u3q8lhKwABTshz837EZiztgXomUjStskw85cE8x9Wd8tTDTfEZDrs7jfY 4lIg== X-Forwarded-Encrypted: i=1; AJvYcCXNpHowINoh1zgvD+gAOTP7jJXBEPFu/MxVaRt0bqGmBh1Z2XoomxZzq8ufa7pJzb5QFMRtPZNjTUOpNZA=@vger.kernel.org X-Gm-Message-State: AOJu0YxT1c/bDA5LpKvHf/y/rffBFYIDy7i521auaD2qt7ZwgoEq838U f67t7F8pBKG+Bcf3U9iVI1RJ/mvmOBLKzZeK1fHYcKmxD3o38BRnQ/7n4WjCKHI= X-Gm-Gg: ASbGncv1pg5Xxgnr8eHn4UQ21Ph85ek0c5hvWBUqswxy24J1mLO4w0HOUbkt3FCLgfP rSla/vKY94aWJe+jQAkxdSq0o4VvmoTJHAxy2TgKZkE15JPd6z2++pg/vOZx89Tr3D1pYJY99g3 vM40Zy5SAZEX8q5eDL/vf5jf39SPMKWAPziILJMk69APwy2Ua3nmwQeSoYocbpjeztq/rPo4/2j bt2+Bzapl0bBLHCDZwFRZg5bpD0Hs0DWi8H/haz2AXiiHrELjaRhLkRn3Nsjs5qDuoMxvhaH46T 9hE9fwUX4UcPKF4qnbWycdTdCtdQ9USt/XtVN7JLvy6f69w3JDuoijEqIud2K17uaBkMfI8WsjT 9LymIFg5vEAzMVywGpK8= X-Google-Smtp-Source: AGHT+IFtKlYmuMPWfMKQK8kh2VV5wwxeBA4j6ePEQHIEvAPMlC2NtpfOcLZrcYI7RZQRiXVuJwSHAw== X-Received: by 2002:ac8:7f51:0:b0:476:838c:b0ce with SMTP id d75a77b69052e-47e7607d5ddmr844071cf.13.1745428641397; Wed, 23 Apr 2025 10:17:21 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-167-219-86.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.167.219.86]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-47ae9cf9f29sm70808611cf.71.2025.04.23.10.17.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Apr 2025 10:17:20 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1u7diq-00000007LSZ-1iS9; Wed, 23 Apr 2025 14:17:20 -0300 Date: Wed, 23 Apr 2025 14:17:20 -0300 From: Jason Gunthorpe To: Leon Romanovsky Cc: Marek Szyprowski , Jens Axboe , Christoph Hellwig , Keith Busch , Leon Romanovsky , Jake Edge , Jonathan Corbet , Zhu Yanjun , Robin Murphy , Joerg Roedel , Will Deacon , Sagi Grimberg , Bjorn Helgaas , Logan Gunthorpe , Yishai Hadas , Shameer Kolothum , Kevin Tian , Alex Williamson , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Andrew Morton , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, Niklas Schnelle , Chuck Lever , Luis Chamberlain , Matthew Wilcox , Dan Williams , Kanchan Joshi , Chaitanya Kulkarni Subject: Re: [PATCH v9 10/24] mm/hmm: let users to tag specific PFN with DMA mapped bit Message-ID: <20250423171720.GL1213339@ziepe.ca> References: <0a7c1e06269eee12ff8912fe0da4b7692081fcde.1745394536.git.leon@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a7c1e06269eee12ff8912fe0da4b7692081fcde.1745394536.git.leon@kernel.org> On Wed, Apr 23, 2025 at 11:13:01AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Introduce new sticky flag (HMM_PFN_DMA_MAPPED), which isn't overwritten > by HMM range fault. Such flag allows users to tag specific PFNs with > information if this specific PFN was already DMA mapped. > > Tested-by: Jens Axboe > Reviewed-by: Christoph Hellwig > Signed-off-by: Leon Romanovsky > --- > include/linux/hmm.h | 17 +++++++++++++++ > mm/hmm.c | 51 ++++++++++++++++++++++++++++----------------- > 2 files changed, 49 insertions(+), 19 deletions(-) Reviewed-by: Jason Gunthorpe This would be part of the RDMA bits Jason