Skip to contentSkip to conversation

RFC: IOCTL to label BO in DRM Core

DISCUSSION Rohan Garg 3 participants 3 messages Sep 10, 2019 – Sep 12, 2019

lore
Share & tools
lore

Rohan Garg

author
#0 lore raw

Hi
I'm investigating a way to label BO's in panfrost, similar to how VC4 does it and realised that this could be something that's might be useful to all drivers.

With that in mind, would anyone be opposed to add a DRM_IOCTL_BO_SET_LABEL in DRM core that can be utilised by all drivers to label BO's?

Cheers
Rohan Garg

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw
Quoted 8 lines · Rohan Garg

[ Unknown signature status ]
Hi
I'm investigating a way to label BO's in panfrost, similar to how VC4 does it and realised that this could be something that's might be useful to all drivers.

With that in mind, would anyone be opposed to add a DRM_IOCTL_BO_SET_LABEL in DRM core that can be utilised by all drivers to label BO's?

I would love to see something shared. msm has an object labeling interface as well.

vc4's had some overengineering due to wanting to keep a bucketed-by-name usage list so we could dump that when we ran out of memory or from debugfs. I think something much simpler would be better.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 12 lines · Eric Anholt
Quoted 8 lines · Rohan Garg

[ Unknown signature status ]
Hi
I'm investigating a way to label BO's in panfrost, similar to how VC4 does it and realised that this could be something that's might be useful to all drivers.

With that in mind, would anyone be opposed to add a DRM_IOCTL_BO_SET_LABEL in DRM core that can be utilised by all drivers to label BO's?

Quoted 6 lines

I would love to see something shared. msm has an object labeling interface as well.

vc4's had some overengineering due to wanting to keep a bucketed-by-name usage list so we could dump that when we ran out of memory or from debugfs. I think something much simpler would be better.

I think there's even some patches floating to lift this to the dma-buf level (at least for output ind debugfs), but we'd still need a generic thing at the drm_gem_bo level. If we can subsume at least some of the existing ioctls (with a thin wrapper) to this new thing I'm all for it.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel