intel_gt_mcr_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… intel_gt_mcr_lock(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” section 9, and today’s main character is intel_gt_mcr_lock. she’s here to acquire the MCR steering lock, and honestly? iconic behavior. ✨


🌸 NAME 🌸

intel_gt_mcr_lock β€” Acquire MCR steering lock πŸŽ€


✨ SYNOPSIS ✨

void intel_gt_mcr_lock (struct intel_gt *gt , unsigned long *flags );

🫢 ARGUMENTS 🫢

  • gt β€” GT structure
  • flags β€” storage to save IRQ flags to

πŸ’– DESCRIPTION πŸ’–

Performs locking to protect the steering for the duration of an MCR operation. no cap, that’s the whole vibe: lock it down so the steering stays protected while the MCR operation does its thing. πŸ’…

On MTL and beyond, a hardware lock will also be taken to serialize access not only for the driver, but also for external hardware and firmware agents. so yeah, it’s not just a driver-only situation β€” external hardware and firmware agents are in the group chat too. πŸ”₯


πŸ¦‹ CONTEXT πŸ¦‹

Takes gt->mcr_lock.

uncore->lock should not be held when this function is called β€” like, seriously, do not hold it β€” although it may be acquired after this function call. πŸ’€


🌈 SEE ALSO 🌈

go read these next, bestie, they’re all part of the same lore:


this lil page lives under ./drivers/gpu/drm/i915/gt and is dated October 2026. mwah, love that for us. πŸ’‹πŸŽ€

πŸ“¦ where this page comes from