search for: create_debugfs

Displaying 4 results from an estimated 4 matches for "create_debugfs".

2024 Oct 29
1
[PATCH 2/2] [v8] drm/nouveau: expose GSP-RM logging buffers via debugfs
.../** > > + * create_debufgs - create a blob debugfs entry > > + * @name: filename > > + * @parent: parent > > + * @blob: blob > > + * > > + * Creates a debugfs entry for a logging buffer with the name 'name'. > > + */ > > +static struct dentry *create_debugfs(struct nvkm_gsp *gsp, const char *name, > > + struct debugfs_blob_wrapper *blob) > > +{ > > + struct dentry *dir; > > I think `dir` is confusing, what about `dent` or `entry`? Here's a count of the most popular names for this type: 10 struct dentry *ddir...
2024 Oct 30
1
[PATCH 2/2] [v9] drm/nouveau: expose GSP-RM logging buffers via debugfs
...off-by: Timur Tabi <ttabi at nvidia.com> --- v9: - rebased to drm-misc-next - move nvkm_gsp logging dentries into debugfs struct - add gsp_logging_debugfs_root and always create the root dentry - remove root struct in r535.c, along with mutex code - rename dir to dent - add missing calls to create_debugfs helper - r535_gsp_copy_log was not calling i_size_write drivers/gpu/drm/nouveau/include/nvif/log.h | 53 +++ .../gpu/drm/nouveau/include/nvkm/subdev/gsp.h | 20 + drivers/gpu/drm/nouveau/nouveau_drm.c | 45 ++ .../gpu/drm/nouveau/nvkm/subdev/gsp/r535.c | 444 +++++++++++++++++- 4...
2024 Oct 03
1
[PATCH 2/2] [v8] drm/nouveau: expose GSP-RM logging buffers via debugfs
...+ > + return 0; > +} > + > +/** > + * create_debufgs - create a blob debugfs entry > + * @name: filename > + * @parent: parent > + * @blob: blob > + * > + * Creates a debugfs entry for a logging buffer with the name 'name'. > + */ > +static struct dentry *create_debugfs(struct nvkm_gsp *gsp, const char *name, > + struct debugfs_blob_wrapper *blob) > +{ > + struct dentry *dir; I think `dir` is confusing, what about `dent` or `entry`? > + > + dir = debugfs_create_blob(name, 0444, gsp->dir, blob); > + if (IS_ERR(dir)) { > + nvkm_err...
2024 Sep 10
1
[PATCH 1/2] [v2] drm/nouveau: retain device pointer in nvkm_gsp_mem object
Store the struct device pointer used to allocate the DMA buffer in the nvkm_gsp_mem object. This allows nvkm_gsp_mem_dtor() to release the buffer without needing the nvkm_gsp. This is needed so that we can retain DMA buffers even after the nvkm_gsp object is deleted. Signed-off-by: Timur Tabi <ttabi at nvidia.com> --- .../gpu/drm/nouveau/include/nvkm/subdev/gsp.h | 1 +