r535_gsp_copy_log(9)
π« r535_gsp_copy_log π«
okay so bestie, welcome to the Kernel API Manual, section 9 β this is r535_gsp_copy_log, and it's lowkey a little rescue mission for logs. let me tell you everything π«Ά
β¨ NAME β¨
r535_gsp_copy_log β preserve the logging buffers in a blob π
like, the whole point is saving the logs so they don't β¨vanishβ¨
π¦ SYNOPSIS π¦
int r535_gsp_copy_log (struct dentry *parent , const char *name , const
struct debugfs_blob_wrapper *s , struct debugfs_blob_wrapper *t );
yes that's the exact signature, no cap β return type is int, periodt π
πΈ ARGUMENTS πΈ
parentβ the top-level dentry for this GPU π (the big boss directory, essentially)nameβ name of debugfs entry to create β¨ (the label you're putting on the new thing)sβ original wrapper object to copy from π (the source, the og)tβ new wrapper object to copy to π (the destination, the fresh one)
π₯ DESCRIPTION π₯
okay so listen β when GSP shuts down, the nvkm_gsp object and all its memory is deleted π. like, gone gone. not me crying over freed memory π
so to preserve the logging buffers, the buffers need to be copied β but only if they actually have data. that's the vibe check right there: no data, no copy. we don't waste effort on empty buffers, fr fr. β¨
π SEE ALSO π
bestie these are the related links, all of them, i'm not skipping a single one:
- Kernel file
./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.cπ nvkm_gsp_mem_ctor(9)struct registry_list_entry(9)add_registry(9)build_registry(9)clean_registry(9)strip(9)r535_gsp_rpc_set_registry(9)r535_gsp_msg_run_cpu_sequencer(9)struct rpc_ucode_libos_print_v1e_08(9)r535_gsp_msg_libos_print(9)create_debugfs(9)r535_gsp_libos_debugfs_init(9)create_pte_array(9)r535_gsp_libos_init(9)nvkm_gsp_radix3_sg(9)r535_debugfs_shutdown(9)is_empty(9)r535_gsp_retain_logging(9)r535_gsp_libos_debugfs_fini(9)
that's a whole friend group honestly π§π
ngl, the moral of the story is: memory gets yeeted on GSP shutdown, so copy the log buffers first β but only when there's actually something in them. π
and that's a wrap, bestie! this page came from ./drivers/gpu/drm/nouveau/nvkm... (that's the source/version bit, don't @ me, it's truncated in the original too π) and it's dated October 2026. r535_gsp_copy_log(9) out β slay, happy debugging, mwah π
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms