docs(debt): record that guest thread priorities are not applied to host threads #6750

Merged
LeandroLP23 merged 1 commit from upstream-pr/6750 into main 2026-10-17 03:46:01 +00:00
LeandroLP23 commented 2026-10-16 09:33:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-16T09:33:39Z.


What

The sched_get_priority_max, sched_get_priority_min entry in docs/dev/debt/libkernel.md started as a gap: SCHED_OTHER's range was unverified (570aac467). Three fixes then matched PS5 (firmware 13.60) measurements: 3ba4751f9, 5c6a9d22c and 143eb6aae. Each one rewrote the entry to describe the corrected behaviour instead of removing what it fixed. The entry now lists only behaviour that matches the console, so it no longer records any debt.

The gap that remains isn't written anywhere. Guest policies and priorities are stored in the thread and reported back (Pthread/src/Thread.cpp), but nothing passes them to the host. Outside the AGC driver's own APS5_THREAD_PRIORITY workers, core/ has no SetThreadPriority, sched_setscheduler or setpriority call, so every guest thread runs at the host's default priority.

This PR replaces the entry with one under Functional that states that gap. It keeps one line on what was measured, so the scope stays clear.

Tested

Documentation only. tools/check_conventions.py --base origin/main passes and git diff --check is clean.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4886365843 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6750). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-16T09:33:39Z. --- ### What The `sched_get_priority_max, sched_get_priority_min` entry in `docs/dev/debt/libkernel.md` started as a gap: `SCHED_OTHER`'s range was unverified (570aac467). Three fixes then matched PS5 (firmware 13.60) measurements: 3ba4751f9, 5c6a9d22c and 143eb6aae. Each one rewrote the entry to describe the corrected behaviour instead of removing what it fixed. The entry now lists only behaviour that matches the console, so it no longer records any debt. The gap that remains isn't written anywhere. Guest policies and priorities are stored in the thread and reported back (`Pthread/src/Thread.cpp`), but nothing passes them to the host. Outside the AGC driver's own `APS5_THREAD_PRIORITY` workers, `core/` has no `SetThreadPriority`, `sched_setscheduler` or `setpriority` call, so every guest thread runs at the host's default priority. This PR replaces the entry with one under Functional that states that gap. It keeps one line on what was measured, so the scope stays clear. ### Tested Documentation only. `tools/check_conventions.py --base origin/main` passes and `git diff --check` is clean. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code)
github-actions[bot] commented 2026-10-16 09:54:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T09:54:03Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 5021 docs/dev/debt/libkernel.md
PR 6222 docs/dev/debt/libkernel.md
PR 6228 docs/dev/debt/libkernel.md
PR 6487 docs/dev/debt/libkernel.md
PR 6510 docs/dev/debt/libkernel.md
PR 6710 docs/dev/debt/libkernel.md
PR 6836 docs/dev/debt/libkernel.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6212902471 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6750#issuecomment-6212902471). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T09:54:03Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `docs/dev/debt/libkernel.md` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `docs/dev/debt/libkernel.md` | | [PR 6228](https://www.github.com/boykopovar/AnyPS5/pull/6228) | `docs/dev/debt/libkernel.md` | | [PR 6487](https://www.github.com/boykopovar/AnyPS5/pull/6487) | `docs/dev/debt/libkernel.md` | | [PR 6510](https://www.github.com/boykopovar/AnyPS5/pull/6510) | `docs/dev/debt/libkernel.md` | | [PR 6710](https://www.github.com/boykopovar/AnyPS5/pull/6710) | `docs/dev/debt/libkernel.md` | | [PR 6836](https://www.github.com/boykopovar/AnyPS5/pull/6836) | `docs/dev/debt/libkernel.md` |
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6750
No description provided.