[PATCH v2 2/3] drm: Add API for capturing frame CRCs

2016-07-12 Thread Daniel Vetter
On Thu, Jul 07, 2016 at 06:41:26PM +0300, Ville Syrjälä wrote: > On Thu, Jul 07, 2016 at 05:06:08PM +0200, Tomeu Vizoso wrote: > > +static int crtc_crc_release(struct inode *inode, struct file *filep) > > +{ > > + struct drm_crtc *crtc = filep->f_inode->i_private; > > + struct drm_crtc_crc *c

[PATCH v2 2/3] drm: Add API for capturing frame CRCs

2016-07-07 Thread Ville Syrjälä
On Thu, Jul 07, 2016 at 05:06:08PM +0200, Tomeu Vizoso wrote: > Adds files and directories to debugfs for controlling and reading frame > CRCs, per CRTC: > > dri/0/crtc-0/crc > dri/0/crtc-0/crc/control > dri/0/crtc-0/crc/data > > Drivers can implement the set_crc_source callback() in drm_crtc_fun

[PATCH v2 2/3] drm: Add API for capturing frame CRCs

2016-07-07 Thread Tomeu Vizoso
Adds files and directories to debugfs for controlling and reading frame CRCs, per CRTC: dri/0/crtc-0/crc dri/0/crtc-0/crc/control dri/0/crtc-0/crc/data Drivers can implement the set_crc_source callback() in drm_crtc_funcs to start and stop generating frame CRCs and can add entries to the output b