From: Greg Kroah-Hartman Date: Tue, 23 Nov 2021 12:01:36 +0000 (+0100) Subject: 4.19-stable patches X-Git-Tag: v5.15.5~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4886cb85c2a1c508fa9d0727174bc3c3af6d3c4b;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: drm-amdgpu-fix-set-scaling-mode-full-full-aspect-center-not-works-on-vga-and-dvi-connectors.patch drm-udl-fix-control-message-timeout.patch --- diff --git a/queue-4.19/drm-amdgpu-fix-set-scaling-mode-full-full-aspect-center-not-works-on-vga-and-dvi-connectors.patch b/queue-4.19/drm-amdgpu-fix-set-scaling-mode-full-full-aspect-center-not-works-on-vga-and-dvi-connectors.patch new file mode 100644 index 00000000000..199a4a4aeae --- /dev/null +++ b/queue-4.19/drm-amdgpu-fix-set-scaling-mode-full-full-aspect-center-not-works-on-vga-and-dvi-connectors.patch @@ -0,0 +1,38 @@ +From bf552083916a7f8800477b5986940d1c9a31b953 Mon Sep 17 00:00:00 2001 +From: hongao +Date: Thu, 11 Nov 2021 11:32:07 +0800 +Subject: drm/amdgpu: fix set scaling mode Full/Full aspect/Center not works on vga and dvi connectors + +From: hongao + +commit bf552083916a7f8800477b5986940d1c9a31b953 upstream. + +amdgpu_connector_vga_get_modes missed function amdgpu_get_native_mode +which assign amdgpu_encoder->native_mode with *preferred_mode result in +amdgpu_encoder->native_mode.clock always be 0. That will cause +amdgpu_connector_set_property returned early on: +if ((rmx_type != DRM_MODE_SCALE_NONE) && + (amdgpu_encoder->native_mode.clock == 0)) +when we try to set scaling mode Full/Full aspect/Center. +Add the missing function to amdgpu_connector_vga_get_mode can fix this. +It also works on dvi connectors because +amdgpu_connector_dvi_helper_funcs.get_mode use the same method. + +Signed-off-by: hongao +Signed-off-by: Alex Deucher +Cc: stable@vger.kernel.org +Signed-off-by: Greg Kroah-Hartman +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +@@ -828,6 +828,7 @@ static int amdgpu_connector_vga_get_mode + + amdgpu_connector_get_edid(connector); + ret = amdgpu_connector_ddc_get_modes(connector); ++ amdgpu_get_native_mode(connector); + + return ret; + } diff --git a/queue-4.19/drm-udl-fix-control-message-timeout.patch b/queue-4.19/drm-udl-fix-control-message-timeout.patch new file mode 100644 index 00000000000..21858cedfcd --- /dev/null +++ b/queue-4.19/drm-udl-fix-control-message-timeout.patch @@ -0,0 +1,33 @@ +From 5591c8f79db1729d9c5ac7f5b4d3a5c26e262d93 Mon Sep 17 00:00:00 2001 +From: Johan Hovold +Date: Mon, 25 Oct 2021 13:53:53 +0200 +Subject: drm/udl: fix control-message timeout + +From: Johan Hovold + +commit 5591c8f79db1729d9c5ac7f5b4d3a5c26e262d93 upstream. + +USB control-message timeouts are specified in milliseconds and should +specifically not vary with CONFIG_HZ. + +Fixes: 5320918b9a87 ("drm/udl: initial UDL driver (v4)") +Cc: stable@vger.kernel.org # 3.4 +Signed-off-by: Johan Hovold +Signed-off-by: Daniel Vetter +Link: https://patchwork.freedesktop.org/patch/msgid/20211025115353.5089-1-johan@kernel.org +Signed-off-by: Greg Kroah-Hartman +--- + drivers/gpu/drm/udl/udl_connector.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/gpu/drm/udl/udl_connector.c ++++ b/drivers/gpu/drm/udl/udl_connector.c +@@ -32,7 +32,7 @@ static bool udl_get_edid_block(struct ud + ret = usb_control_msg(udl->udev, + usb_rcvctrlpipe(udl->udev, 0), + (0x02), (0x80 | (0x02 << 5)), bval, +- 0xA1, read_buff, 2, HZ); ++ 0xA1, read_buff, 2, 1000); + if (ret < 1) { + DRM_ERROR("Read EDID byte %d failed err %x\n", i, ret); + kfree(read_buff); diff --git a/queue-4.19/series b/queue-4.19/series index f9c7ee862ce..6b7ae262815 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -310,3 +310,5 @@ udf-fix-crash-after-seekdir.patch btrfs-fix-memory-ordering-between-normal-and-ordered-work-functions.patch parisc-sticon-fix-reverse-colors.patch cfg80211-call-cfg80211_stop_ap-when-switch-from-p2p_go-type.patch +drm-udl-fix-control-message-timeout.patch +drm-amdgpu-fix-set-scaling-mode-full-full-aspect-center-not-works-on-vga-and-dvi-connectors.patch