[PATCH] drm/msm/dp: Add DisplayPort controller for SM8350

2021-12-27 Thread Bjorn Andersson
The Qualcomm SM8350 platform comes with a single DisplayPort controller, add support for this in the DisplayPort driver. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/display/msm/dp-controller.yaml| 1 + drivers/gpu/drm/msm/dp/dp_display.c | 8 2

[Bug 212019] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:67:crtc-0] flip_done timed out

2021-12-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212019 AJ Barris (a...@awlsome.com) changed: What|Removed |Added CC||a...@awlsome.com ---

Re: [RFC 01/32] Kconfig: introduce and depend on LEGACY_PCI

2021-12-27 Thread Mauro Carvalho Chehab
Em Mon, 27 Dec 2021 17:42:46 +0100 Niklas Schnelle escreveu: > Introduce a new LEGACY_PCI Kconfig option which gates support for legacy > PCI devices including those attached to a PCI-to-PCI Express bridge and > PCI Express devices using legacy I/O spaces. Note that this is different > from non

[PATCH 1/2] fbdev: fbmem: add a helper to determine if an aperture is used by a fw fb

2021-12-27 Thread Alex Deucher
Add a function for drivers to check if the a firmware initialized fb is corresponds to their aperture. This allows drivers to check if the device corresponds to what the firmware set up as the display device. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=215203 Bug:

[PATCH 2/2] drm/amdgpu: disable runpm if we are the primary adapter

2021-12-27 Thread Alex Deucher
If we are the primary adapter (i.e., the one used by the firwmare framebuffer), disable runtime pm. This fixes a regression caused by commit 55285e21f045 which results in the displays waking up shortly after they go to sleep due to teh device coming out of runtime suspend and sending a hotplug

[PATCH 2/2] drm/amdgpu: disable runpm if we are the primary adapter

2021-12-27 Thread Alex Deucher
If we are the primary adapter (i.e., the one used by the firwmare framebuffer), disable runtime pm. This fixes a regression caused by commit 55285e21f045 which results in the displays waking up shortly after they go to sleep due to teh device coming out of runtime suspend and sending a hotplug

[PATCH 1/2] fbdev: fbmem: add a helper to determine if an aperture is used by a fw fb

2021-12-27 Thread Alex Deucher
Add a function for drivers to check if the a firmware initialized fb is corresponds to their aperture. This allows drivers to check if the device corresponds to what the firmware set up as the display device. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=215203 Bug:

Re: [PATCH v2] drm/amd/display: fix dereference before NULL check

2021-12-27 Thread Alex Deucher
Applied. Thanks! Alex On Sun, Dec 26, 2021 at 6:16 AM José Expósito wrote: > > The "plane_state" pointer was access before checking if it was NULL. > > Avoid a possible NULL pointer dereference by accessing the plane > address after the check. > > Addresses-Coverity-ID: 1493892 ("Dereference

Re: [RFC 01/32] Kconfig: introduce and depend on LEGACY_PCI

2021-12-27 Thread Guenter Roeck
On 12/27/21 8:42 AM, Niklas Schnelle wrote: Introduce a new LEGACY_PCI Kconfig option which gates support for legacy PCI devices including those attached to a PCI-to-PCI Express bridge and PCI Express devices using legacy I/O spaces. Note that this is different from non PCI uses of I/O ports

Re: Regression report on laptop suspend

2021-12-27 Thread Rafael J. Wysocki
CC Daniel, Thomas and dri-devel. On Mon, Dec 27, 2021 at 5:32 PM wrote: > > Hello > > I've noticed my laptop totally freeze when going to hibernation. > The git bisect log is appended below. > Please note however that even the previous good commit was "good" (ie : > laptop managed to suspend

[PATCH] drm/mipi-dsi: Fix error handling in mipi_dsi_device_register_full

2021-12-27 Thread Miaoqian Lin
In mipi_dsi_device_alloc(), it calls device_initialize(>dev); We need to use put_device() instead freeing directly. Fixes: 068a002 ("drm: Add MIPI DSI bus support") Signed-off-by: Miaoqian Lin --- drivers/gpu/drm/drm_mipi_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2] dma-buf: dma-heap: Add a size check for allocation

2021-12-27 Thread guangming.cao
From: Guangming Add a size check for allcation since the allocation size is always less than the total DRAM size. Signed-off-by: Guangming Signed-off-by: jianjiao zeng --- v2: 1. update size limitation as total_dram page size. 2. update commit message --- drivers/dma-buf/dma-heap.c | 2

[PATCH v2] dma-buf: dma-heap: Add a size check for allocation

2021-12-27 Thread guangming.cao
From: Guangming Add a size check for allcation since the allocation size is always less than the total DRAM size. Signed-off-by: Guangming Signed-off-by: jianjiao zeng --- v2: 1. update size limitation as total_dram page size. 2. update commit message --- drivers/dma-buf/dma-heap.c | 2

[PATCH v7 4/8] video/hdmi: Add audio_infoframe packing for DP

2021-12-27 Thread Guillaume Ranquet
From: Markus Schneider-Pargmann Similar to HDMI, DP uses audio infoframes as well which are structured very similar to the HDMI ones. This patch adds a helper function to pack the HDMI audio infoframe for DP, called hdmi_audio_infoframe_pack_for_dp(). hdmi_audio_infoframe_pack_only() is split

[PATCH v7 3/8] drm/edid: Add cea_sad helpers for freq/length

2021-12-27 Thread Guillaume Ranquet
From: Markus Schneider-Pargmann This patch adds two helper functions that extract the frequency and word length from a struct cea_sad. For these helper functions new defines are added that help translate the 'freq' and 'byte2' fields into real numbers. Signed-off-by: Markus Schneider-Pargmann

[PATCH] drm/bridge: Fix free wrong object in sii8620_init_rcp_input_dev

2021-12-27 Thread Miaoqian Lin
rc_dev is allocated by rc_allocate_device(), and doesn't assigned to ctx->rc_dev before calling rc_free_device(ctx->rc_dev). So it should call rc_free_device(rc_dev); Fixes: e25f1f7 ("drm/bridge/sii8620: add remote control support") Signed-off-by: Miaoqian Lin ---

[PATCH v2] drm/ast: Create the driver for ASPEED proprietory Display-Port

2021-12-27 Thread KuoHsiang Chou
V1: 1. The MCU FW controling ASPEED DP is loaded by BMC boot loader. 2. Driver starts after CR[3:1] == 111b that indicates Tx is ASTDP, and CRD1[5] has been asserted by BMVC boot loader. 3. EDID is prioritized by DP monitor. 4. DP's EDID has high priority to decide resolution supporting. V2: