From patchwork Thu Oct 26 12:11:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kandpal, Suraj" X-Patchwork-Id: 13437537 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 412BBC25B6B for ; Thu, 26 Oct 2023 12:13:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C0DC010E11A; Thu, 26 Oct 2023 12:13:37 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id CF10410E11A for ; Thu, 26 Oct 2023 12:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698322414; x=1729858414; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=NLcB9ZzDqN5c0Qf10O0A92gke6NBp5D7Ll8diuSnon8=; b=Rv4jKHSQEFdsygjq5+TDkGw+8P1+U384rFA0cRWnrj4C0sygSIWv+08y uZTBfWolMnjiB9NR2yFxEND13LesP+RGu8xOWODHvg9/7VMKKIUEsjN9n LQ4wUUhrDZ0z4D1PHSh5cX4UzOSCxRzw3tg0IaiS3lutfHpotqBQDP6Hg c8vmJLXdRx+m+OffbpUhIvWrIZfjkulv7I9vxJhgRAk2qX6wEqmM6eTd0 Ey5stqz8M0p+6BBJWapsqXcUnAbHN3VM7boTsklM3tuNainajcN40k2Vz tQmR0saBBNbZa9xdRVs1qRSULzYklXuRPgF6/J7z9CKWiP6R1fNKaeQT6 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="387354575" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="387354575" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 05:13:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="762809204" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="762809204" Received: from kandpal-x299-ud4-pro.iind.intel.com ([10.190.239.32]) by fmsmga007.fm.intel.com with ESMTP; 26 Oct 2023 05:13:32 -0700 From: Suraj Kandpal To: intel-gfx@lists.freedesktop.org Date: Thu, 26 Oct 2023 17:41:37 +0530 Message-Id: <20231026121139.987437-1-suraj.kandpal@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/3] drm/i915/hdcp: Additional conditions to enable hdcp X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" We are seeing a issue when we close the lid of a laptop or dock a monitor hdcp content is not being reenabled automatically this is because when we dock a monitor we end up with a enable and disable connector cycle but if hdcp content is running we get the userspace in enabled state and driver maintaining a undesired state which causes the content to stop playing and we only enabe hdcp if the userspace state in desired. This first and second patch refactors the code while the third one adds the new conditions to enable hdcp. Signed-off-by: Suraj Kandpal Suraj Kandpal (3): drm/i915/hdcp: Rename HCDP 1.4 enablement function drm/i915/hdcp: Convert intel_hdcp_enable to a blanket function drm/i915/hdcp: Add more conditions to enable hdcp drivers/gpu/drm/i915/display/intel_ddi.c | 5 +-- drivers/gpu/drm/i915/display/intel_dp_mst.c | 5 +-- drivers/gpu/drm/i915/display/intel_hdcp.c | 37 ++++++++++++++++----- drivers/gpu/drm/i915/display/intel_hdcp.h | 8 ++--- 4 files changed, 35 insertions(+), 20 deletions(-)