From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
To: intel-xe@lists.freedesktop.org, shekhar.chauhan@intel.com,
harish.chegondi@intel.com
Cc: matthew.brost@intel.com
Subject: [PATCH v10 0/7] Cleanup OA stream on PCI unbind/remove
Date: Tue, 24 Nov 2026 12:11:51 -0800 [thread overview]
Message-ID: <20261124201150.405479-9-umesh.nerlige.ramappa@intel.com> (raw)
When an OA stream FD is open, removing the PCI device due to PCIe errors
or doing an unbind causes a NPD and system reboots. While OA registers a
fini handler with devm, the handler does not take into account active OA
connections.
Add code to quiesce OA connection on PCI remove/unbind.
v2 - v8: Sashiko Comments and other refactor
v9, v10: Incorporate comments from Sashiko and Shekhar
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Umesh Nerlige Ramappa (7):
drm/xe/oa: Ignore a HW tail pointer outside the OA buffer
drm/xe/oa: Use the drm device address_space for the OA stream fd
drm/xe: Reject vm_ops->access on BO mappings of an unplugged device
drm/xe/oa: Wait for in-flight OA batches before stream HW teardown
drm/xe/oa: Fence OA ioctls and mmap against device unplug and wedging
drm/xe/oa: Free the OA buffer and the stream after the stream destroy
drm/xe/oa: Quiesce OA streams on driver unbind and PCI reset
drivers/gpu/drm/xe/xe_bo.c | 15 +-
drivers/gpu/drm/xe/xe_oa.c | 309 ++++++++++++++++++++++++----
drivers/gpu/drm/xe/xe_oa_types.h | 3 +
drivers/gpu/drm/xe/xe_observation.c | 20 +-
4 files changed, 308 insertions(+), 39 deletions(-)
--
2.55.0
next reply other threads:[~2026-11-24 20:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 20:11 Umesh Nerlige Ramappa [this message]
2026-11-24 20:11 ` [PATCH v10 1/7] drm/xe/oa: Ignore a HW tail pointer outside the OA buffer Umesh Nerlige Ramappa
2026-11-24 20:11 ` [PATCH v10 2/7] drm/xe/oa: Use the drm device address_space for the OA stream fd Umesh Nerlige Ramappa
2026-11-24 20:11 ` [PATCH v10 3/7] drm/xe: Reject vm_ops->access on BO mappings of an unplugged device Umesh Nerlige Ramappa
2026-11-24 20:11 ` [PATCH v10 4/7] drm/xe/oa: Wait for in-flight OA batches before stream HW teardown Umesh Nerlige Ramappa
2026-11-24 20:22 ` sashiko-bot
2026-11-24 20:11 ` [PATCH v10 5/7] drm/xe/oa: Fence OA ioctls and mmap against device unplug and wedging Umesh Nerlige Ramappa
2026-11-24 20:35 ` sashiko-bot
2026-11-30 18:07 ` Umesh Nerlige Ramappa
2026-11-25 6:34 ` Shekhar Chauhan
2026-11-24 20:11 ` [PATCH v10 6/7] drm/xe/oa: Free the OA buffer and the stream after the stream destroy Umesh Nerlige Ramappa
2026-11-24 20:11 ` [PATCH v10 7/7] drm/xe/oa: Quiesce OA streams on driver unbind and PCI reset Umesh Nerlige Ramappa
2026-11-24 21:02 ` sashiko-bot
2026-11-25 6:36 ` Shekhar Chauhan
2026-11-24 21:29 ` ✓ CI.KUnit: success for Cleanup OA stream on PCI unbind/remove (rev10) Patchwork
2026-11-24 22:21 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-25 1:00 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-11-30 18:14 ` Umesh Nerlige Ramappa
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=20261124201150.405479-9-umesh.nerlige.ramappa@intel.com \
--to=umesh.nerlige.ramappa@intel.com \
--cc=harish.chegondi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@intel.com \
--cc=shekhar.chauhan@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.