drm/i915/hdcp: Modify hdcp_gsc_message msg sending mechanism
authorSuraj Kandpal <suraj.kandpal@intel.com>
Fri, 2 Jun 2023 10:51:13 +0000 (16:21 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Wed, 14 Jun 2023 11:12:28 +0000 (16:42 +0530)
commitb3e4aae612eca42950c4612f80ec199c15d2fd51
tree4a2114b418217ad8006e3dd9548a07df743e4a39
parent19a49f3995e118d83aba27c8cb51c479bdf76b19
drm/i915/hdcp: Modify hdcp_gsc_message msg sending mechanism

Allocate a multipage object that can be used for input
and output for intel_hdcp_gsc_message so that corruption of
output message can be avoided by the current overwriting method.
Modify intel_gsc_send_sync() to take into account header_out
and addr_out so as to use them to verify the message send status.
Check link for comment and review history
https://patchwork.freedesktop.org/series/118499/

--v2
-Change approach from allocating two objects to just one multipage
object [Daniele]

--v3
-Squash the two patches together [Daniele]
-No need to allocate twice the size of intel_hdcp_gsc_message [Daniele]

Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230602105113.1791104-1-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_hdcp_gsc.c
drivers/gpu/drm/i915/display/intel_hdcp_gsc.h