Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Teres Alexis, Alan Previn" <alan.previn.teres.alexis@intel.com>
To: "Kandpal, Suraj" <suraj.kandpal@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Cc: "Nikula, Jani" <jani.nikula@intel.com>
Subject: Re: [Intel-gfx] [PATCH v4 6/7] drm/i915/mtl: Add function to send command to GSC CS
Date: Wed, 28 Dec 2022 00:15:48 +0000	[thread overview]
Message-ID: <5ecf490305ec486090f99aba14f2ad11e05af3e4.camel@intel.com> (raw)
In-Reply-To: <MWHPR11MB1741AA9388D6A5B361FF04DDE3E99@MWHPR11MB1741.namprd11.prod.outlook.com>

I've send offline email to clear up session cleanup behavior for hdcp (maybe its a PXP-only thing). But still wanna pursue a bit more on below portion:

On Fri, 2022-12-23 at 09:07 +0000, Kandpal, Suraj wrote:
> > 
> > 
> > > +	memset(cmd, 0, obj->base.size);
> > 
> > Alan: question: how often is this hdcp message being created, pinned,cleared
> > and used to send message?
> > Is this very infrequent - such as only during initial port connection establishment
> > or if in unlikely cases of dp/hdmi link-disruption..
> > Or is intel_hdcp_check_work something that has to exercise these gsc messages
> > frequently (such as every few seconds)?
> 
> It is more frequent so during the link estabilishment and then every few seconds
> To check if link in working right through check work but saving message in hdcp
> In intel hdcp does not seem right as message that need to be sent vary in size.
> ,creation pinning and clearance makes it simpler and cleaner.
> 
> 
> > I am just wondering if its the latter, whether its more efficient to initialize and
> > store the hdcp_message structure into intel_hdcp if hdcp on connector is
> > enabled and freed (intel_free_hdcp_gsc_message) only at port disabling time?
> > Also, in any case, would the entire object need to be memset? (I'm wondering if
> > we only need to memset the mtl-gsc-header and leave the rest since gsc hdcp
> > service is able to determine the range of valid bytes based on the hdcp command
> > and thus we don't need to memset the entire object)
> > 
> > Alan:[snip]
> > 
> 
> memsetting of the entire object would be required as the range of valid bytes can change depending on
> Various use cases one example would be if Km is already stored in fw or not this keeps it
> more cleaner and less prone to error
> > 
1. Is there a max size for the hdcp communications throughout the various types of message packets through out the various state-machine stages of the hdcp link life-cycle?
If there is a deterministic max size, we can allocate that up front and keep re-using the same object.

2. Is the "range of valid bytes" consistent for the same HDCP-command? Based on patch #5 it looks that way. For exmaple, if the heci packet contained HDCP command
HDCP_CMD_WIRED_AAA, then do we know for sure that command AAA will always have a specific fixed-size structure (size of struct aaa)? And for command HDCP_CMD_WIRED_BBB, it is
a different structure but also has a fixed-size (size of struct bbb). If this the case, then we dont need to memset the entire object, we only need to ensure the memory size
that corresponds to the structure of the specific HDCP command is initialized correctly - i.e. ensure we fill up every dword in that structure (and not need a memset for the
full 4K - or whatever buffer size was allocated?). I'm assuming the security-firmware hdcp-service would only read data up until the expected fixed-size struct depending on
the command.

  reply	other threads:[~2022-12-28  0:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-22  6:43 [Intel-gfx] [PATCH v4 0/7] Enable HDCP2.x via GSC CS Suraj Kandpal
2022-12-22  6:43 ` [Intel-gfx] [PATCH v4 1/7] drm/i915/gsc: Create GSC request submission mechanism Suraj Kandpal
2022-12-23  8:36   ` Teres Alexis, Alan Previn
2022-12-22  6:43 ` [Intel-gfx] [PATCH v4 2/7] drm/i915/hdcp: Keep cp fw agonstic naming convention Suraj Kandpal
2022-12-22  6:43 ` [Intel-gfx] [PATCH v4 3/7] i915/hdcp: HDCP2.x Refactoring to agnostic hdcp Suraj Kandpal
2022-12-22  6:43 ` [Intel-gfx] [PATCH v4 4/7] drm/i915/hdcp: Refactor HDCP API structures Suraj Kandpal
2022-12-22  6:43 ` [Intel-gfx] [PATCH v4 5/7] drm/i915/hdcp: Fill wired_cmd_in structures at a single place Suraj Kandpal
2022-12-27 16:45   ` Jani Nikula
2022-12-27 17:36     ` Teres Alexis, Alan Previn
2022-12-28  6:04     ` Kandpal, Suraj
2022-12-22  6:43 ` [Intel-gfx] [PATCH v4 6/7] drm/i915/mtl: Add function to send command to GSC CS Suraj Kandpal
2022-12-23  8:31   ` Teres Alexis, Alan Previn
2022-12-23  9:07     ` Kandpal, Suraj
2022-12-28  0:15       ` Teres Alexis, Alan Previn [this message]
2022-12-22  6:43 ` [Intel-gfx] [PATCH v4 7/7] drm/i915/mtl: Add HDCP GSC interface Suraj Kandpal
2022-12-22 16:37 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Enable HDCP2.x via GSC CS (rev4) Patchwork
2022-12-22 17:08 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-12-22 22:44 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

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=5ecf490305ec486090f99aba14f2ad11e05af3e4.camel@intel.com \
    --to=alan.previn.teres.alexis@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=suraj.kandpal@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox