From: Jani Nikula <jani.nikula@linux.intel.com>
To: Simon Ser <contact@emersion.fr>, Alan Liu <HaoPing.Liu@amd.com>
Cc: wayne.lin@amd.com, dri-devel@lists.freedesktop.org, lili.gong@amd.com
Subject: Re: [PATCH 0/7] Secure display with new CRTC properties
Date: Thu, 25 May 2023 11:50:54 +0300 [thread overview]
Message-ID: <87cz2okd5d.fsf@intel.com> (raw)
In-Reply-To: <sNSf9ou1krQ0UJcBpR8Lr5KKfdOBllnwV5x6jNoCT8h9T-zSA2x0ouGg_RMKDACyrgm_MXIvh-kgpCJ4taEa1V3OyfWYekbSDPMX3KswZGw=@emersion.fr>
On Wed, 24 May 2023, Simon Ser <contact@emersion.fr> wrote:
> On Tuesday, May 16th, 2023 at 07:39, Alan Liu <HaoPing.Liu@amd.com> wrote:
>
>> To address this problem, since modern display control hardware is able to
>> calculate the CRC checksum of the display content, we are thinking of a
>> feature to let userspace specify a region of interest (ROI) on display, and
>> we can utilize the hardware to calculate the CRC checksum as frames scanned
>> out, and finally, provide the checksum for userspace for validation purpose.
>> In this case, since the icons themselves are often fixed over static
>> backgrounds, the CRC of the ROI pixels can be known in advance. So one of the
>> usage of ROI and corresponding CRC result is that as users know the CRC
>> checksum of the tell-tales in advance, at runtime they can retrieve the CRC
>> value from kernel for validation as frames are scanned out.
>>
>> We implement this feature and call it secure display.
>
> I's strongly advise *not* using the word "secure" here. "Secure" is over-loaded
> with so many different meanings, as a result it's super-unclear what a KMS
> property name "SECURE_FOO" would do. As an example, some people use "secure" to
> refer to Digital Restrictions Management. Something like "CHECKSUM_REGION"
> would much better describe the feature you want to implement IMHO.
Agreed.
On naming, I also think "ROI" is confusing. Nobody's going to know what
it means without looking it up. I think just "region" is much better,
and "of interest" goes without saying. (Why would you specify a region
unless it was "of interest"?)
> Also, please note that IGT already extracts CRCs for testing purposes. Maybe
> there's an opportunity to use the same uAPI here.
It's debugfs, so probably not suitable for uAPI, but there's already a
bunch of crtc infrastructure in drm level to make that happen. Would
seem odd to add two different ways to gather CRCs with no common code.
Just checking, we're talking about CRCs computed at some stage of the
display pipeline in the source, not on the sink, right?
What's the algorithm for the CRCs? Vendor specific? Is the idea that the
userspace is able to compute it and compare, or snapshot multiple CRCs
from kernel and compare them against each other? If the former, then I
assume the userspace is going to be vendor specific too.
What about limitations in the dimensions/location of the region? What
about future compatibility, e.g. if you're interested in *a* region,
surely you might be interested in multiple regions in the future...?
(Not saying this should be implemented now, but would be nice to have
some vague idea how to extend this.)
BR,
Jani.
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2023-05-25 8:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-16 5:39 [PATCH 0/7] Secure display with new CRTC properties Alan Liu
2023-05-16 5:39 ` [PATCH 1/7] drm/amd/display: Add new blob properties for secure display ROI Alan Liu
2023-05-16 5:39 ` [PATCH 2/7] drm/amd/display: Implement set/get functions for secure display ROI properties Alan Liu
2023-05-16 5:39 ` [PATCH 3/7] drm/amd/display: Add new blob properties for secure display CRC Alan Liu
2023-05-16 5:39 ` [PATCH 4/7] drm/amd/display: Implement set/get functions for secure display CRC properties Alan Liu
2023-05-16 5:39 ` [PATCH 5/7] drm/amd/display: Processing secure display new ROI update in atomic commit Alan Liu
2023-05-16 5:39 ` [PATCH 6/7] drm/amd/display: Implement the retrieval of secure display CRC data Alan Liu
2023-05-16 5:39 ` [PATCH 7/7] drm/amd/display: Block the requests for secure display ROI/CRC until data ready Alan Liu
2023-05-24 14:49 ` [PATCH 0/7] Secure display with new CRTC properties Simon Ser
2023-05-25 8:50 ` Jani Nikula [this message]
2023-06-09 9:50 ` Liu, HaoPing (Alan)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cz2okd5d.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=HaoPing.Liu@amd.com \
--cc=contact@emersion.fr \
--cc=dri-devel@lists.freedesktop.org \
--cc=lili.gong@amd.com \
--cc=wayne.lin@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.