diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2018-11-07 15:35:52 -0700 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2018-12-11 13:06:59 -0500 |
commit | 0815d7749a68527adabe2ac40d49f6fc0800eae5 (patch) | |
tree | c25b7564d054a0d176b280974eff796d9dbc88e0 /drivers/gpu/drm/msm/dsi/dsi_host.c | |
parent | 7ad0e8cf6317825d2b7fc52a9000fb16461c2857 (diff) | |
download | linux-0815d7749a68527adabe2ac40d49f6fc0800eae5.tar.gz linux-0815d7749a68527adabe2ac40d49f6fc0800eae5.tar.bz2 linux-0815d7749a68527adabe2ac40d49f6fc0800eae5.zip |
drm/msm: Add a name field for gem objects
For debugging purposes it is useful to assign descriptions
to buffers so that we know what they are used for. Add
a field to the buffer object and use that to name the various
kernel side allocations which ends up looking like like this
in /d/dri/X/gem:
flags id ref offset kaddr size madv name
00040000: I 0 ( 1) 00000000 0000000070b79eca 00004096 memptrs
vmas: [gpu: 01000000,mapped,inuse=1]
00020000: I 0 ( 1) 00000000 0000000031ed4074 00032768 ring0
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/dsi/dsi_host.c')
-rw-r--r-- | drivers/gpu/drm/msm/dsi/dsi_host.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 3b7092e1dcc7..38e481d2d606 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1083,6 +1083,8 @@ int dsi_tx_buf_alloc_6g(struct msm_dsi_host *msm_host, int size) return PTR_ERR(data); } + msm_gem_object_set_name(msm_host->tx_gem_obj, "tx_gem"); + msm_host->tx_size = msm_host->tx_gem_obj->size; return 0; |