From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 707021F5FA; Mon, 4 Mar 2024 21:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709587860; cv=none; b=CpECUAz5SrwtCKFANgpu7qkKRAk+fb8g2lb/ZbdjDBFhtqd9aCsCi0qgI4zP7nuqGFIq/G38Lv1igv9oCVAnfZGEbXZffet5kJckw0cP/OtOZqfLlBYx69gsmKP6cVl56449bxu7ITzHF/0ag/yFJlp1woIjoDK2ktgsuD/aiHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709587860; c=relaxed/simple; bh=bYKeDtNiGrPj2+NY4NA9yY/S3bib2qMFxLGlTbMwmfc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Bq7wDhrrGLc18inSOYKGslQusaS+0cJ3GnenZKRrYmunYo4Ntg9xbEhCuvDxTnbZfztXZmCpmePHgtZ/Eadq4XfyI1Le4rmgMMtOeLlx6rsJ2GjZW55BTvnfyF3ocQoS/oW7QWjnt2I6uYDJPdvRVWkebkFygmj0tenLVcRn4M8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=s31sPSFv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="s31sPSFv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0275FC433C7; Mon, 4 Mar 2024 21:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709587860; bh=bYKeDtNiGrPj2+NY4NA9yY/S3bib2qMFxLGlTbMwmfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s31sPSFvwy0BT6tmf6XaqkN9iFtZSp1nMxo6F/HgVqGbKVRpcWigdKUIUBG0wnJne kE8PiZeo9Ggt3r1SolhHB/LzGFQxMtVStEDdtJ0dNJSd78BWx8pjqEBIqRtmGjJb/3 QZP+Mm9b3ddD54+t/CraOsn3oT0doUuqXzcGvblE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mario Limonciello , Alex Deucher , Tsung-hua Lin , Chris Chi , Wayne Lin , Alex Hung Subject: [PATCH 6.7 093/162] drm/amd/display: Add monitor patch for specific eDP Date: Mon, 4 Mar 2024 21:22:38 +0000 Message-ID: <20240304211554.821061178@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240304211551.833500257@linuxfoundation.org> References: <20240304211551.833500257@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.7-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ryan Lin commit b7cdccc6a849568775f738b1e233f751a8fed013 upstream. [WHY] Some eDP panels' ext caps don't write initial values. The value of dpcd_addr (0x317) can be random and the backlight control interface will be incorrect. [HOW] Add new panel patches to remove sink ext caps. Cc: Mario Limonciello Cc: Alex Deucher Cc: stable@vger.kernel.org # 6.5.x Cc: Tsung-hua Lin Cc: Chris Chi Reviewed-by: Wayne Lin Acked-by: Alex Hung Signed-off-by: Ryan Lin Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c @@ -66,6 +66,8 @@ static void apply_edid_quirks(struct edi /* Workaround for some monitors that do not clear DPCD 0x317 if FreeSync is unsupported */ case drm_edid_encode_panel_id('A', 'U', 'O', 0xA7AB): case drm_edid_encode_panel_id('A', 'U', 'O', 0xE69B): + case drm_edid_encode_panel_id('B', 'O', 'E', 0x092A): + case drm_edid_encode_panel_id('L', 'G', 'D', 0x06D1): DRM_DEBUG_DRIVER("Clearing DPCD 0x317 on monitor with panel id %X\n", panel_id); edid_caps->panel_patch.remove_sink_ext_caps = true; break; @@ -119,6 +121,8 @@ enum dc_edid_status dm_helpers_parse_edi edid_caps->edid_hdmi = connector->display_info.is_hdmi; + apply_edid_quirks(edid_buf, edid_caps); + sad_count = drm_edid_to_sad((struct edid *) edid->raw_edid, &sads); if (sad_count <= 0) return result; @@ -145,8 +149,6 @@ enum dc_edid_status dm_helpers_parse_edi else edid_caps->speaker_flags = DEFAULT_SPEAKER_LOCATION; - apply_edid_quirks(edid_buf, edid_caps); - kfree(sads); kfree(sadb);