[PATCH 0/2] drm/nouveau/clk: fix RAM error handling and pstate desync in nvkm_pstate_prog
Francesco Magazzu <[email protected]> Mon, 27 Jul 2026 17:28:19 +0200
| Newsgroups | org.freedesktop.lists.nouveau,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Follow-up to "[PATCH v2 0/4] drm/nouveau: fix list cursor use after loop in the clk pstate paths" ([email protected]). Sashiko AI review flagged three pre-existing issues while reviewing patch 2/4 of that series; the third (clk->func->prog()'s error being clobbered by nvkm_volt_set_id() in nvkm_cstate_prog()) is already fixed by patch 4/4 of that series. These two patches address the other two: 1. nvkm_pstate_prog() drops the RAM reclock error and falls through to core clock programming anyway. 2. nvkm_pstate_prog() commits clk->pstate to the new state before the hardware transition has actually succeeded. Francesco Magazzu (2): drm/nouveau/clk: don't ignore RAM clock programming errors in nvkm_pstate_prog drm/nouveau/clk: only update clk->pstate after hardware programming succeeds nvkm/subdev/clk/base.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) -- 2.55.0