From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E6F01D935C for ; Wed, 29 Jan 2025 11:58:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738151892; cv=none; b=gRH3bNpbqowMa0FmXB3JBBZ1p8oJNFUqa7ZbQgqiL1wGSGdnYPVvjExOPW16YsrlWwUC6kWqv+9f1VFAiVEAsKFhYIo1Z5dWVsTOFDhdzcqmLtxbUsSYLOLNUcd6GXjUaR3tr/msIlfgwlIfKUDsew0vzPB0SojeaMlPTBgnRo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738151892; c=relaxed/simple; bh=iEPqXBJKpnaRKCZN4FWo6CByl3Jpq5LrjGBC9uGdjnw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ZAsVx6Z8F5EQjeDSyXiWhWcqZyZ7zs1FggzPixeIjO8aK8bmN0/HHMFUOV7WqOt+kpNCwhWkd1M26jFG4vbtHJA4upFQWVGMhDX7gViD5+sCcggoprak1yikpmxlGokJRSmeK4sSUBBAaH5vCM4g2uMj3hswhLsV0I8H9Oralok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=C8GHqXxv; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="C8GHqXxv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1738151890; 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: content-transfer-encoding:content-transfer-encoding; bh=d2VUZOG2JXQGulr/59KbaCbJaaQXiPGDaZBI3uCTMkc=; b=C8GHqXxvh9m6XP65QzBd/cy7+m0KiBA96+newtDXdmdSJ1CZFnLHWZEqusn24EvR00vcOm hcnx5wSBAiJ3SLExyevkQpAIZgYKaTklSnVTimLyyqcwfFFMvKTT4t9SXcpz1LQsuaxVT/ QdVyhOjfJnGm3M8AinIQQtdPvIfx9Xg= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-61-PkbM18GePj-EH_gRiXKV4w-1; Wed, 29 Jan 2025 06:58:08 -0500 X-MC-Unique: PkbM18GePj-EH_gRiXKV4w-1 X-Mimecast-MFC-AGG-ID: PkbM18GePj-EH_gRiXKV4w Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-385e00ebb16so2353967f8f.3 for ; Wed, 29 Jan 2025 03:58:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738151887; x=1738756687; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d2VUZOG2JXQGulr/59KbaCbJaaQXiPGDaZBI3uCTMkc=; b=GQVPhOezOmdkTzC/zszXsYb4Sd+HW/sDxbeRk4xG1CNMjt+pGjEokWBKfNpTilf7Hb eZDVvfG1umcyjgCytToLF1UEC3MY/wz7LvmBdGVpj8aw05R6D0pdzh+cittJH/quKdcP d6pDqNxXRT3T3Q1kvjtiDxmE4TIjPWQ1sViWi/PWLGec0Pscaz3ibnZ7xt7lpGcIepmY lyeUGgb1tIZJ2KSgQ6lutQSL6CFWIq7dLVTHIsqOhSY7ul7i1fh3uMC8wjq4WHI0Lu5B hXZKafd0IWPvXHBasnpxqQcXdAD8qfBiVmW3UzY4WRrTF38oKEJY9pDRSjoHZgyNIDD6 zpVw== X-Gm-Message-State: AOJu0YzoipuJ8dTllXmHazqL3DQtC2aBTEL9uF+BrUMbgeMeEi3DRGOb asC7RXCL2b3nqufGY5AlvYReT+8hz799+hlm687YOw9mdIbpCjM/Pxg+PguImclTV8WTJNX0Dp4 AoO2hUdT5KgPYQ6t8jDNnrOIh+PNQOa9IGJthflFrd1zES8DbzkVn8E434jPaVDWWORHl707OB2 RCVpNK/zqokECHAOjaZwZ+o3H9zMGotEDfIT9aPsi5Tts2 X-Gm-Gg: ASbGncu8EpqJuh1/wrhkmpf4ob/oOM6e4u2BkyiBZczkqb4IYWAVxeETWBy4k5dhVU3 zKMODUvBlZDdSQyQZOgrN5K9d2fX5lRPT4PbB2GMjWUkrDsR8RZTdiQOayUPbAsYMyntYa+UHr9 RWqW4fwakf+Aph3jcUbWK2Is0ALnUo/oXH46BNEldQjRq3t7etDK5y6p7ukXorWqS0pt7Dtp5Sb pzYJlGK9uKR3DoYnQVaxMLc70+e0MSmETp3vKdXPG8CasqdFMmawr9Er6gWqr+2ISs0fOLmuIXr j8hI062KFbvvOoLK6/MynVECWGmOgtCKJSLw6s6hQoONdJk4WGRU9IpmzqoZ/jS43Q== X-Received: by 2002:a5d:5f4a:0:b0:385:df84:8496 with SMTP id ffacd0b85a97d-38c5194ca26mr2531101f8f.3.1738151887155; Wed, 29 Jan 2025 03:58:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7JXtANqVSB26MQ84y3Q20UL5y0GbKL9q7LZjVMoQlUkfabdqXk/TfkO91TOMW4G3rYudCgA== X-Received: by 2002:a5d:5f4a:0:b0:385:df84:8496 with SMTP id ffacd0b85a97d-38c5194ca26mr2531049f8f.3.1738151886670; Wed, 29 Jan 2025 03:58:06 -0800 (PST) Received: from localhost (p200300cbc7053b0064b867195794bf13.dip0.t-ipconnect.de. [2003:cb:c705:3b00:64b8:6719:5794:bf13]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-38c2a1bad87sm16858323f8f.74.2025.01.29.03.58.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jan 2025 03:58:05 -0800 (PST) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-doc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mm@kvack.org, nouveau@lists.freedesktop.org, David Hildenbrand , Andrew Morton , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Jonathan Corbet , Alex Shi , Yanteng Si , Karol Herbst , Lyude Paul , Danilo Krummrich , David Airlie , Simona Vetter , "Liam R. Howlett" , Lorenzo Stoakes , Vlastimil Babka , Jann Horn , Pasha Tatashin , Peter Xu , Alistair Popple , Jason Gunthorpe Subject: [PATCH v1 0/4] mm: cleanups for device-exclusive entries (hmm) Date: Wed, 29 Jan 2025 12:57:58 +0100 Message-ID: <20250129115803.2084769-1-david@redhat.com> X-Mailer: git-send-email 2.48.1 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=UTF-8 Content-Transfer-Encoding: 8bit This is a follow-up to [1], performing some related cleanups. There are more cleanups to be had, but I'll have to focus on some other stuff next. I might come back to that once I'm stuck on (annoyed by :) ) other things. Cc: Andrew Morton Cc: "Jérôme Glisse" Cc: Jonathan Corbet Cc: Alex Shi Cc: Yanteng Si Cc: Karol Herbst Cc: Lyude Paul Cc: Danilo Krummrich Cc: David Airlie Cc: Simona Vetter Cc: "Liam R. Howlett" Cc: Lorenzo Stoakes Cc: Vlastimil Babka Cc: Jann Horn Cc: Pasha Tatashin Cc: Peter Xu Cc: Alistair Popple Cc: Jason Gunthorpe [1] https://lkml.kernel.org/r/20250129115411.2077152-1-david@redhat.com David Hildenbrand (4): lib/test_hmm: make dmirror_atomic_map() consume a single page mm/mmu_notifier: drop owner from MMU_NOTIFY_EXCLUSIVE mm/memory: pass folio and pte to restore_exclusive_pte() mm/memory: document restore_exclusive_pte() drivers/gpu/drm/nouveau/nouveau_svm.c | 6 +-- include/linux/mmu_notifier.h | 4 +- include/linux/rmap.h | 2 +- lib/test_hmm.c | 35 ++++++----------- mm/memory.c | 54 +++++++++++++++++++-------- mm/rmap.c | 3 +- 6 files changed, 54 insertions(+), 50 deletions(-) -- 2.48.1