Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1457635

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

From Tomeu Vizoso <tomeu.vizoso@collabora.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 2/3] drm: Add API for capturing frame CRCs
Date 2016-08-08 11:20 +0200
Message-ID <s3OSZ-7Ux-13@gated-at.bofh.it> (permalink)
References <rXJsZ-6VO-1@gated-at.bofh.it> <rXJt0-6VO-17@gated-at.bofh.it> <s3gRp-2h2-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 6 August 2016 at 19:04, Daniel Stone <daniel@fooishbar.org> wrote:
> Hi Tomeu,
>
> On 22 July 2016 at 15:10, Tomeu Vizoso <tomeu.vizoso@collabora.com> wrote:
>> +/**
>> + * DOC: CRC ABI
>> + *
>> + * DRM device drivers can provide to userspace CRC information of each frame as
>> + * it reached a given hardware component (a "source").
>> + *
>> + * Userspace can control generation of CRCs in a given CRTC by writing to the
>
> s/can/must/
>
> Is it worth having 'auto' as a default source perhaps?

Yup, it's the case in v4, so you just cat the data file and start getting CRCs.

>> + * file dri/0/crtc-N/crc/control in debugfs, with N being the index of the CRTC.
>> + * Accepted values are source names (which are driver-specific) and the "none"
>> + * and "auto" keywords. "none" will disable CRC generation and "auto" will let
>> + * the driver select a default source of frame CRCs for this CRTC.
>
> Is it also worth having 'connector-%s' (named as per sysfs, e.g.
> connector-HDMI-A-0) as a standardised entry, for cloneable CRTCs which
> have CRC control on the connector rather than the CRTC?

My impression right now is that only "auto" makes sense as a
standardised entry, as any explicit sources are pretty much
hw-dependent so the tests will need knowledge about the hw anyway.

The IGT tests already try each connector in each CRTC when looking for
a setup that supports CRC capture (with the auto source).

Regards,

Tomeu

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v3 2/3] drm: Add API for capturing frame CRCs Daniel Stone <daniel@fooishbar.org> - 2016-08-06 23:00 +0200
  Re: [PATCH v3 2/3] drm: Add API for capturing frame CRCs Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2016-08-08 11:20 +0200

csiph-web