From patchwork Thu Aug 22 15:07:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13773605 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 23AF6C531DF for ; Thu, 22 Aug 2024 15:07:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6BA5010EB22; Thu, 22 Aug 2024 15:07:15 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.b="btCs/1TE"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Kl0XX0Dp"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="btCs/1TE"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Kl0XX0Dp"; dkim-atps=neutral Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 556D510EB1D; Thu, 22 Aug 2024 15:07:13 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CD3AC201F2; Thu, 22 Aug 2024 15:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1724339231; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=N7soaIqJ0UF7BVy8scb1hTd6knYlOnvl5Ybg8A8q3O4=; b=btCs/1TEttk2DFKq/Sr+s325MJRZ6pX1pIiQATQoV6ipRxZn+U0L/S8XUMWZT9Amg4vrGg FOI+pp40wFj6BXCpF7hWKDGLN9PeDJ/yNXi2vXCLWGLyPqSsWaVdD7RiZbTXfLm3ACDyKa AWoy7tNkX40Ij2GUttAzvhyPSG+qtYQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1724339231; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=N7soaIqJ0UF7BVy8scb1hTd6knYlOnvl5Ybg8A8q3O4=; b=Kl0XX0Dpyc2eT0PVX/7NOkfo2zAKuCCF5xdGpb2lmAQk/wYU4Yezs0bokpJVidexlqeBBB OnMrTR4MFXfzlHBQ== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1724339231; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=N7soaIqJ0UF7BVy8scb1hTd6knYlOnvl5Ybg8A8q3O4=; b=btCs/1TEttk2DFKq/Sr+s325MJRZ6pX1pIiQATQoV6ipRxZn+U0L/S8XUMWZT9Amg4vrGg FOI+pp40wFj6BXCpF7hWKDGLN9PeDJ/yNXi2vXCLWGLyPqSsWaVdD7RiZbTXfLm3ACDyKa AWoy7tNkX40Ij2GUttAzvhyPSG+qtYQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1724339231; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=N7soaIqJ0UF7BVy8scb1hTd6knYlOnvl5Ybg8A8q3O4=; b=Kl0XX0Dpyc2eT0PVX/7NOkfo2zAKuCCF5xdGpb2lmAQk/wYU4Yezs0bokpJVidexlqeBBB OnMrTR4MFXfzlHBQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 683B513297; Thu, 22 Aug 2024 15:07:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id cCI5GB9Ux2bbbQAAD6G6ig (envelope-from ); Thu, 22 Aug 2024 15:07:11 +0000 Date: Thu, 22 Aug 2024 17:07:10 +0200 From: Thomas Zimmermann To: Dave Airlie , Daniel Vetter Cc: Jani Nikula , Joonas Lahtinen , Tvrtko Ursulin , Rodrigo Vivi , Thomas Zimmermann , Maarten Lankhorst , Maxime Ripard , Thomas =?iso-8859-1?q?Hellstr=F6m?= , Oded Gabbay , Lucas De Marchi , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, dim-tools@lists.freedesktop.org Subject: [PULL] drm-misc-next Message-ID: <20240822150710.GA243952@localhost.localdomain> MIME-Version: 1.0 Content-Disposition: inline X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmail.com,ffwll.ch]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCPT_COUNT_TWELVE(0.00)[16]; MISSING_XM_UA(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo] X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Dave, Sima, here's this week's PR for drm-misc-next. It adds support for more panels, and easier error handling for DSI code. Ast should finally have decent support for BMC output. Plus the usual bug fixes. In the kernel's string helpers there's the new function mem_is_zero(), which the EDID code uses in several places. Best regards Thomas drm-misc-next-2024-08-22: drm-misc-next for v6.12: Cross-subsystem Changes: string: - add mem_is_zero() Core Changes: edid: - use mem_is_zero() Driver Changes: ast: - reorganize output code by type (VGA, DP, etc) - convert to struct drm_edid - fix BMC handling for all outputs bridge: - anx7625: simplify OF array handling - dw-hdmi: simplify clock handling - lontium-lt8912b: fix mode validation - nwl-dsi: fix mode vsync/hsync polarity panel: - ili9341: fix comments - jd9365da: fix "exit sleep" commands - jdi-fhd-r63452: simplify error handling with DSI multi-style helpers - mantix-mlaf057we51: simplify error handling with DSI multi-style helpers - simple: support Innolux G070ACE-LH3 plus DT bindings; support On Tat Industrial Company KD50G21-40NT-A1 plus DT bindings - st7701: decouple DSI and DRM code; add SPI support; support Anbernic RG28XX plus DT bindings vc4: - fix PM during detect - replace DRM_ERROR() with drm_error() - v3d: simplify clock retrieval The following changes since commit 8befe8fa5a4e4b30787b17e078d9d7b5cb92ea19: drm/tilcdc: Use backlight power constants (2024-08-16 09:28:01 +0200) are available in the Git repository at: https://gitlab.freedesktop.org/drm/misc/kernel.git tags/drm-misc-next-2024-08-22 for you to fetch changes up to f60ef67ff21ede6f3d27d439a136481446dbd8aa: drm/vc4: v3d: simplify clock retrieval (2024-08-22 07:57:44 -0300) ---------------------------------------------------------------- drm-misc-next for v6.12: Cross-subsystem Changes: string: - add mem_is_zero() Core Changes: edid: - use mem_is_zero() Driver Changes: ast: - reorganize output code by type (VGA, DP, etc) - convert to struct drm_edid - fix BMC handling for all outputs bridge: - anx7625: simplify OF array handling - dw-hdmi: simplify clock handling - lontium-lt8912b: fix mode validation - nwl-dsi: fix mode vsync/hsync polarity panel: - ili9341: fix comments - jd9365da: fix "exit sleep" commands - jdi-fhd-r63452: simplify error handling with DSI multi-style helpers - mantix-mlaf057we51: simplify error handling with DSI multi-style helpers - simple: support Innolux G070ACE-LH3 plus DT bindings; support On Tat Industrial Company KD50G21-40NT-A1 plus DT bindings - st7701: decouple DSI and DRM code; add SPI support; support Anbernic RG28XX plus DT bindings vc4: - fix PM during detect - replace DRM_ERROR() with drm_error() - v3d: simplify clock retrieval ---------------------------------------------------------------- Abhishek Tamboli (1): drm/panel: ili9341: Add comments for registers in ili9341_config() Cristian Ciocaltea (1): drm/bridge: dw-hdmi: Simplify clock handling Esben Haabendal (1): drm/bridge: nwl-dsi: Use vsync/hsync polarity from display mode Hironori KIKUCHI (5): drm/panel: st7701: Rename macros drm/panel: st7701: Decouple DSI and DRM parts dt-bindings: display: st7701: Add Anbernic RG28XX panel drm/panel: st7701: Add support for SPI for configuration drm/panel: st7701: Add Anbernic RG28XX panel support Jani Nikula (2): string: add mem_is_zero() helper to check if memory area is all zeros drm: use mem_is_zero() instead of !memchr_inv(s, 0, n) Jeffrey Hugo (1): MAINTAINERS: qaic: Drop Pranjal as reviewer Liu Ying (3): drm/bridge: lontium-lt8912b: Validate mode in drm_bridge_funcs::mode_valid() dt-bindings: display: panel-simple: Add On Tat Industrial Company KD50G21-40NT-A1 drm/panel: simple: Add ON Tat Industrial Company KD50G21-40NT-A1 panel Rob Herring (Arm) (1): drm: bridge: anx7625: Use of_property_read_variable_u8_array() Stefan Wahren (3): drm/vc4: hdmi: Handle error case of pm_runtime_resume_and_get drm/vc4: Get the rid of DRM_ERROR() drm/vc4: v3d: simplify clock retrieval Steffen Trumtrar (2): dt-bindings: display: simple: Document support for Innolux G070ACE-LH3 drm/panel: simple: add Innolux G070ACE-LH3 LVDS display support Tejas Vipin (4): drm/panel: mantix-mlaf057we51: transition to mipi_dsi wrapped functions drm/panel: mantix-mlaf057we51: write hex in lowercase drm/mipi-dsi: Add mipi_dsi_dcs_set_tear_scanline_multi drm/panel: jdi-fhd-r63452: transition to mipi_dsi wrapped functions Thomas Zimmermann (11): drm/ast: Move code for physical outputs into separate files drm/ast: Add struct ast_connector drm/ast: astdp: Move locking into EDID helper drm/ast: astdp: Use struct drm_edid and helpers drm/ast: astdp: Simplify power management when detecting display drm/ast: astdp: Transparently handle BMC support drm/ast: dp501: Use struct drm_edid and helpers drm/ast: dp501: Transparently handle BMC support drm/ast: sil164: Transparently handle BMC support drm/ast: vga: Transparently handle BMC support drm/ast: Remove BMC output Zhaoxiong Lv (2): drm/panel: jd9365da: Move "exit sleep mode" and "set display on" cmds drm/panel: jd9365da: Modify the init code of Melfas .../bindings/display/panel/panel-simple.yaml | 4 + .../bindings/display/panel/sitronix,st7701.yaml | 69 +- MAINTAINERS | 1 - drivers/gpu/drm/ast/Makefile | 4 +- drivers/gpu/drm/ast/ast_dp.c | 242 ++++- drivers/gpu/drm/ast/ast_dp501.c | 184 +++- drivers/gpu/drm/ast/ast_drv.h | 42 +- drivers/gpu/drm/ast/ast_mode.c | 578 ---------- drivers/gpu/drm/ast/ast_sil164.c | 127 +++ drivers/gpu/drm/ast/ast_vga.c | 127 +++ drivers/gpu/drm/bridge/analogix/anx7625.c | 22 +- drivers/gpu/drm/bridge/lontium-lt8912b.c | 35 +- drivers/gpu/drm/bridge/nwl-dsi.c | 8 +- drivers/gpu/drm/bridge/nwl-dsi.h | 4 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 66 +- drivers/gpu/drm/drm_edid.c | 2 +- drivers/gpu/drm/drm_mipi_dsi.c | 31 + drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_opregion.c | 2 +- .../gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c | 2 +- drivers/gpu/drm/imagination/pvr_device.h | 2 +- drivers/gpu/drm/panel/Kconfig | 3 +- drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 14 +- drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c | 137 +-- drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 149 +-- drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 79 +- drivers/gpu/drm/panel/panel-simple.c | 71 ++ drivers/gpu/drm/panel/panel-sitronix-st7701.c | 1122 ++++++++++++-------- drivers/gpu/drm/udl/udl_edid.c | 2 +- drivers/gpu/drm/vc4/vc4_bo.c | 14 +- drivers/gpu/drm/vc4/vc4_dpi.c | 14 +- drivers/gpu/drm/vc4/vc4_dsi.c | 32 +- drivers/gpu/drm/vc4/vc4_gem.c | 11 +- drivers/gpu/drm/vc4/vc4_hdmi.c | 44 +- drivers/gpu/drm/vc4/vc4_hvs.c | 4 +- drivers/gpu/drm/vc4/vc4_irq.c | 2 +- drivers/gpu/drm/vc4/vc4_v3d.c | 24 +- drivers/gpu/drm/vc4/vc4_validate.c | 8 +- drivers/gpu/drm/vc4/vc4_vec.c | 10 +- include/drm/drm_mipi_dsi.h | 2 + include/linux/string.h | 12 + 41 files changed, 1830 insertions(+), 1478 deletions(-) create mode 100644 drivers/gpu/drm/ast/ast_sil164.c create mode 100644 drivers/gpu/drm/ast/ast_vga.c