From: Nirmoy Das <nirmoy.das@linux.intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>, Nirmoy Das <nirmoy.das@intel.com>
Cc: intel-xe@lists.freedesktop.org,
Suraj Kandpal <suraj.kandpal@intel.com>,
Arun R Murthy <arun.r.murthy@intel.com>,
Lucas De Marchi <lucas.demarchi@intel.com>
Subject: Re: [PATCH] drm/xe/display/xe_hdcp_gsc: Free arbiter on driver removal
Date: Wed, 10 Jul 2024 12:45:11 +0200 [thread overview]
Message-ID: <071ff7b7-3a4f-4695-a527-6f83854e2167@linux.intel.com> (raw)
In-Reply-To: <Zo2LnVCi-g-JKytj@intel.com>
On 7/9/2024 9:12 PM, Rodrigo Vivi wrote:
> On Mon, Jul 08, 2024 at 02:59:18PM +0200, Nirmoy Das wrote:
>> Free arbiter allocated in intel_hdcp_gsc_init().
>>
> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Thanks! Merged to drm-xe-next
>
>> Fixes: 152f2df954d8 ("drm/xe/hdcp: Enable HDCP for XE")
>> Cc: Suraj Kandpal <suraj.kandpal@intel.com>
>> Cc: Arun R Murthy <arun.r.murthy@intel.com>
>> Cc: Lucas De Marchi <lucas.demarchi@intel.com>
>> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
>> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
>> ---
>> drivers/gpu/drm/xe/display/xe_hdcp_gsc.c | 12 ++++++++----
>> 1 file changed, 8 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/xe/display/xe_hdcp_gsc.c b/drivers/gpu/drm/xe/display/xe_hdcp_gsc.c
>> index 14b8b4278317..990285aa9b26 100644
>> --- a/drivers/gpu/drm/xe/display/xe_hdcp_gsc.c
>> +++ b/drivers/gpu/drm/xe/display/xe_hdcp_gsc.c
>> @@ -160,12 +160,16 @@ void intel_hdcp_gsc_fini(struct xe_device *xe)
>> {
>> struct intel_hdcp_gsc_message *hdcp_message =
>> xe->display.hdcp.hdcp_message;
>> + struct i915_hdcp_arbiter *arb = xe->display.hdcp.arbiter;
>>
>> - if (!hdcp_message)
>> - return;
>> + if (hdcp_message) {
>> + xe_bo_unpin_map_no_vm(hdcp_message->hdcp_bo);
>> + kfree(hdcp_message);
>> + xe->display.hdcp.hdcp_message = NULL;
>> + }
>>
>> - xe_bo_unpin_map_no_vm(hdcp_message->hdcp_bo);
>> - kfree(hdcp_message);
>> + kfree(arb);
>> + xe->display.hdcp.arbiter = NULL;
>> }
>>
>> static int xe_gsc_send_sync(struct xe_device *xe,
>> --
>> 2.42.0
>>
prev parent reply other threads:[~2024-07-10 10:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-08 12:59 [PATCH] drm/xe/display/xe_hdcp_gsc: Free arbiter on driver removal Nirmoy Das
2024-07-08 13:19 ` ✓ CI.Patch_applied: success for " Patchwork
2024-07-08 13:20 ` ✓ CI.checkpatch: " Patchwork
2024-07-08 13:21 ` ✓ CI.KUnit: " Patchwork
2024-07-08 13:33 ` ✓ CI.Build: " Patchwork
2024-07-08 13:36 ` ✓ CI.Hooks: " Patchwork
2024-07-08 13:39 ` ✓ CI.checksparse: " Patchwork
2024-07-08 13:57 ` ✗ CI.BAT: failure " Patchwork
2024-07-08 14:41 ` ✓ CI.Patch_applied: success for drm/xe/display/xe_hdcp_gsc: Free arbiter on driver removal (rev2) Patchwork
2024-07-08 14:41 ` ✓ CI.checkpatch: " Patchwork
2024-07-08 14:42 ` ✓ CI.KUnit: " Patchwork
2024-07-08 14:54 ` ✓ CI.Build: " Patchwork
2024-07-08 14:56 ` ✓ CI.Hooks: " Patchwork
2024-07-08 14:58 ` ✓ CI.checksparse: " Patchwork
2024-07-08 15:20 ` ✓ CI.BAT: " Patchwork
2024-07-08 17:26 ` ✗ CI.FULL: failure for drm/xe/display/xe_hdcp_gsc: Free arbiter on driver removal Patchwork
2024-07-08 19:40 ` ✓ CI.FULL: success for drm/xe/display/xe_hdcp_gsc: Free arbiter on driver removal (rev2) Patchwork
2024-07-09 19:12 ` [PATCH] drm/xe/display/xe_hdcp_gsc: Free arbiter on driver removal Rodrigo Vivi
2024-07-10 10:45 ` Nirmoy Das [this message]
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=071ff7b7-3a4f-4695-a527-6f83854e2167@linux.intel.com \
--to=nirmoy.das@linux.intel.com \
--cc=arun.r.murthy@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=nirmoy.das@intel.com \
--cc=rodrigo.vivi@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