Improve eudebug test cleanup
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest5 patches 0 repliesNew
- v45 patches 5 repliesSuperseded
- v35 patches 0 repliesSuperseded
Changes in v5 from the cover letter
- move assertion and list entry creation out of critical section (Piotr)
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | tests/xe/xe_eudebug: Change pthread_join to pthread_timedjoin_nptests/ | +10 | 0 replies | |
| 2/5 | lib/xe/xe_eudebug: Modify toggle error handlinglib/ | +19 | 0 replies | |
| 3/5 | xe/xe_eudebug: Add reattach function and make plain connect privatelib/ lib/ tests/ | +48 | 0 replies | |
| 4/5 | lib/xe/xe_eudebug: Track active debugger sessions and close when disablinglib/ | +72 | 0 replies | |
| 5/5 | lib/xe/xe_eudebug: Get drm card sysfs pathlib/ | +36 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Piotr Rudnicki |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH i-g-t v5 0/5] Improve eudebug test cleanup
When there is a debugger fd open and an assert fails, there is a problem with environment cleanup. If enable_eudebug toggle was previously off, it is impossible to turn it off in case there is _any_ open debugger fd.
Keep track of all opened debugger fds in lib/xe_eudebug and close any leftover ones before attempting to restore enable_eudebug state.
Change pthread_join to pthread_timedjoin_np in discovery-race* and discoery-empty* tests to avoid hang before reaching cleanup.
Add retry mechanism in xe_eudebug_enable to allow the postclose handler to finish. Abort on unsuccessful cleanup to not leave the environment in potentially dirty state.
v2:
- Preserve skip behavior in xe_eudebug_enable
v3:
- Improve xe_eudebug_enable logging
- Move session tracking to lib/xe_eudebug
- Use timedjoin in discovery-empty*
v4:
- fix commit msg typo (Dominik)
- remove wrong 'debugger reconnected' log that was printed also for initial connection and change code reuse/organization for attach/reattach functions (Dominik)
v5:
- move assertion and list entry creation out of critical section (Piotr)
Christoph Manszewski (3):
xe/xe_eudebug: Add reattach function and make plain connect private lib/xe/xe_eudebug: Track active debugger sessions and close when
disabling
lib/xe/xe_eudebug: Get drm card sysfs path
Dominik Karol Piątkowski (2):
tests/xe/xe_eudebug: Change pthread_join to pthread_timedjoin_np lib/xe/xe_eudebug: Modify toggle error handling
lib/xe/xe_eudebug.c | 214 +++++++++++++++++++++++++------- lib/xe/xe_eudebug.h | 2 +- tests/intel/xe_eudebug.c | 13 +- tests/intel/xe_eudebug_online.c | 6 +- 4 files changed, 181 insertions(+), 54 deletions(-)
Signature · 1 line
2.47.1