public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
	"DRM XE List" <intel-xe@lists.freedesktop.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>,
	Randy Dunlap <rdunlap@infradead.org>
Subject: linux-next: manual merge of the drm-xe tree with the mm-hotfixes tree
Date: Wed, 11 Mar 2026 12:18:55 +0000	[thread overview]
Message-ID: <abFdr2hYWR-WSPvw@sirena.org.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 2622 bytes --]

Hi all,

Today's linux-next merge of the drm-xe tree got a conflict in:

  include/linux/mmu_notifier.h

between commit:

  599b4e290c876 ("mm/mmu_notifier: clean up mmu_notifier.h kernel-doc")

from the mm-hotfixes tree and commit:

  7aba71dbc4164 ("mm/mmu_notifier: Allow two-pass struct mmu_interval_notifiers")

from the drm-xe tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

diff --cc include/linux/mmu_notifier.h
index 3705d350c8633,b60673a8e0bbb..0000000000000
--- a/include/linux/mmu_notifier.h
+++ b/include/linux/mmu_notifier.h
@@@ -233,8 -233,33 +233,33 @@@ struct mmu_notifier 
  	unsigned int users;
  };
  
+ /**
+  * struct mmu_interval_notifier_finish - mmu_interval_notifier two-pass abstraction
+  * @link: Lockless list link for the notifiers pending pass list
+  * @notifier: The mmu_interval_notifier for which the finish pass is called.
+  *
+  * Allocate, typically using GFP_NOWAIT in the interval notifier's start pass.
+  * Note that with a large number of notifiers implementing two passes,
+  * allocation with GFP_NOWAIT will become increasingly likely to fail, so consider
+  * implementing a small pool instead of using kmalloc() allocations.
+  *
+  * If the implementation needs to pass data between the start and the finish passes,
+  * the recommended way is to embed struct mmu_interval_notifier_finish into a larger
+  * structure that also contains the data needed to be shared. Keep in mind that
+  * a notifier callback can be invoked in parallel, and each invocation needs its
+  * own struct mmu_interval_notifier_finish.
+  *
+  * If allocation fails, then the &mmu_interval_notifier_ops->invalidate_start op
+  * needs to implements the full notifier functionality. Please refer to its
+  * documentation.
+  */
+ struct mmu_interval_notifier_finish {
+ 	struct llist_node link;
+ 	struct mmu_interval_notifier *notifier;
+ };
+ 
  /**
 - * struct mmu_interval_notifier_ops
 + * struct mmu_interval_notifier_ops - callback for range notification
   * @invalidate: Upon return the caller must stop using any SPTEs within this
   *              range. This function can sleep. Return false only if sleeping
   *              was required but mmu_notifier_range_blockable(range) is false.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

                 reply	other threads:[~2026-03-11 12:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=abFdr2hYWR-WSPvw@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=thomas.hellstrom@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox