AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/09/18 12:16 flow patch-triage
2m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch modifies dw_mipi_dsi_rockchip_host_detach() in drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c, adding a missing put_device() call. This driver is specific to ARM/ARM64 Rockchip SoCs and requires specific SoC hardware/device trees not emulated in standard QEMU environments, making it structurally unreachable on the target architecture (amd64).",
  "WorthFuzzing": false
}

1/1 2026/09/18 12:16 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit c4a5c336e3e99a0d89d49b374de5ec2e7ab6bfc3\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Fri Sep 18 12:16:48 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c\nindex 268d4993a04fd..c4cd85b4cabcd 100644\n--- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c\n+++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c\n@@ -1100,8 +1100,10 @@ static int dw_mipi_dsi_rockchip_host_detach(void *priv_data,\n \tstruct device *second;\n \n \tsecond = dw_mipi_dsi_rockchip_find_second(dsi);\n-\tif (second \u0026\u0026 !IS_ERR(second))\n+\tif (second \u0026\u0026 !IS_ERR(second)) {\n \t\tcomponent_del(second, \u0026dw_mipi_dsi_rockchip_ops);\n+\t\tput_device(second);\n+\t}\n \n \tcomponent_del(dsi-\u003edev, \u0026dw_mipi_dsi_rockchip_ops);\n \n"
}

2/1 2026/09/18 12:16 agent patch-evaluator
2m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies dw_mipi_dsi_rockchip_host_detach() in drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c, adding a missing put_device() call. This driver is specific to ARM/ARM64 Rockchip SoCs and requires specific SoC hardware/device trees not emulated in standard QEMU environments, making it structurally unreachable on the target architecture (amd64).",
  "WorthFuzzing": false
}

Instruction:
You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.

================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.

- REACHABILITY IS THE PRIMARY GATE:
  Fuzzing can only discover bugs in code that can actually execute in standard virtualized
  environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
  If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
  regardless of whether it adds assertions or complex logic.

- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
  Patch authors routinely label changes as "cleanups", "refactorings", or state
  "No functional change intended". Do NOT take these claims at face value.
  Code refactorings that rearrange logic, introduce helper functions, or alter state management
  in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
  If reachable executable code is modified or refactored, it MUST be fuzzed.

- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
  When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
  BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
  Even if the author believes the invariant always holds, fuzzing is essential to verify whether
  an unusual sequence of operations can violate it.

================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:

- Non-kernel and non-executable changes:
  * Modifications to Documentation/, comments, or spelling fixes.
  * User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
    that do not affect the compiled kernel image (vmlinux) or kernel modules.
  * Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
    that do not alter control flow or data structures.
  * Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
  * Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
    ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
  * Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
    physical PCI hot-unplug or manual sysfs driver unbinding.
  * Code paths exclusive to architectures other than the target architecture.

================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
  * Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
    BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
  * Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
  * Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
  * Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).

================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:

- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
  Do NOT list generic, ubiquitous functions called by almost every program in the corpus
  (including, but not limited to: general memory allocators and deallocators, page fault
  and trap handlers, or core synchronization primitives; this is not an exhaustive list).
  Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
  which severely dilutes fuzzing effort away from the actual changes.

- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
  List functions that specifically implement the logic being added or altered, or direct API entrypoints
  for the subsystem feature under review.

- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
  Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
  distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
  If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
  functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).

================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit c4a5c336e3e99a0d89d49b374de5ec2e7ab6bfc3
Author: syz-cluster <triage@syzkaller.com>
Date:   Fri Sep 18 12:16:48 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
index 268d4993a04fd..c4cd85b4cabcd 100644
--- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
+++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
@@ -1100,8 +1100,10 @@ static int dw_mipi_dsi_rockchip_host_detach(void *priv_data,
 	struct device *second;
 
 	second = dw_mipi_dsi_rockchip_find_second(dsi);
-	if (second && !IS_ERR(second))
+	if (second && !IS_ERR(second)) {
 		component_del(second, &dw_mipi_dsi_rockchip_ops);
+		put_device(second);
+	}
 
 	component_del(dsi->dev, &dw_mipi_dsi_rockchip_ops);
 

3/2 2026/09/18 12:16 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 2961
							output: 31
							thoughts: 428
						

Thoughts:
**Analyzing a Rockchip DRM Patch for Syzkaller on amd64**

Okay, so I've got this patch here, and the request is to evaluate it for syzkaller. The target architecture is amd64, which immediately raises a flag. This patch modifies `drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c`. Rockchip... that's ARM silicon. Specifically, they're known for SoCs like the RK3399, RK3288, and the RK3588. The question now is whether this code path is even relevant or reachable on an x86-64 QEMU setup.

The patch itself looks straightforward: it's adding a `put_device()` call after `component_del()`. It appears to be addressing a potential resource leak related to a secondary device. This is good practice. Now, my immediate concern is whether this is *necessary* on amd64. While the logic might be technically correct, and thus harmless, it might be dead code, which can still cause issues by making fuzzing analysis harder.

The next step is to check the kernel configuration (`Kconfig`) within the `drivers/gpu/drm/rockchip/` directory. I need to figure out if there's any scenario where this Rockchip DRM code path is compiled *for* and *usable on* x86-64. I'll search for configuration options, dependencies, or any relevant platform definitions. If it's a conditional compilation (e.g., `#ifdef CONFIG_ROCKCHIP_SOMETHING`), I need to determine under what conditions it's enabled on amd64. I am looking for a way the code could be enabled via device tree, PCI, ACPI, or any emulation mechanism that would involve this code.



4/2 2026/09/18 12:17 tool grepper
0m Args:
{
  "Expression": "ROCKCHIP",
  "PathPrefix": "drivers/gpu/drm/rockchip"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 745 lines.\nUse more precise expression if possible.\n\ndrivers/gpu/drm/rockchip/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/gpu/drm/rockchip/Kconfig:2:config DRM_ROCKCHIP\ndrivers/gpu/drm/rockchip/Kconfig-3-\ttristate \"DRM Support for Rockchip\"\ndrivers/gpu/drm/rockchip/Kconfig-4-\tdepends on DRM\ndrivers/gpu/drm/rockchip/Kconfig:5:\tdepends on ARCH_ROCKCHIP || COMPILE_TEST\ndrivers/gpu/drm/rockchip/Kconfig:6:\tdepends on ROCKCHIP_IOMMU || !ROCKCHIP_IOMMU\ndrivers/gpu/drm/rockchip/Kconfig-7-\tdepends on OF\n--\ndrivers/gpu/drm/rockchip/Kconfig-12-\tselect VIDEOMODE_HELPERS\ndrivers/gpu/drm/rockchip/Kconfig:13:\tselect DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP\ndrivers/gpu/drm/rockchip/Kconfig:14:\tselect DRM_DISPLAY_DP_AUX_BUS if ROCKCHIP_ANALOGIX_DP\ndrivers/gpu/drm/rockchip/Kconfig:15:\tselect DRM_DW_DP if ROCKCHIP_DW_DP\ndrivers/gpu/drm/rockchip/Kconfig:16:\tselect DRM_DW_HDMI if ROCKCHIP_DW_HDMI\ndrivers/gpu/drm/rockchip/Kconfig:17:\tselect DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP\ndrivers/gpu/drm/rockchip/Kconfig:18:\tselect DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI\ndrivers/gpu/drm/rockchip/Kconfig:19:\tselect DRM_DW_MIPI_DSI2 if ROCKCHIP_DW_MIPI_DSI2\ndrivers/gpu/drm/rockchip/Kconfig:20:\tselect DRM_INNO_HDMI if ROCKCHIP_INNO_HDMI\ndrivers/gpu/drm/rockchip/Kconfig:21:\tselect GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI\ndrivers/gpu/drm/rockchip/Kconfig:22:\tselect GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI\ndrivers/gpu/drm/rockchip/Kconfig:23:\tselect SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP \u0026\u0026 SND_SOC\ndrivers/gpu/drm/rockchip/Kconfig-24-\thelp\n--\ndrivers/gpu/drm/rockchip/Kconfig-30-\ndrivers/gpu/drm/rockchip/Kconfig:31:if DRM_ROCKCHIP\ndrivers/gpu/drm/rockchip/Kconfig-32-\ndrivers/gpu/drm/rockchip/Kconfig:33:config ROCKCHIP_VOP\ndrivers/gpu/drm/rockchip/Kconfig-34-\tbool \"Rockchip VOP driver\"\n--\ndrivers/gpu/drm/rockchip/Kconfig-39-\ndrivers/gpu/drm/rockchip/Kconfig:40:config ROCKCHIP_VOP2\ndrivers/gpu/drm/rockchip/Kconfig-41-\tbool \"Rockchip VOP2 driver\"\n--\ndrivers/gpu/drm/rockchip/Kconfig-45-\ndrivers/gpu/drm/rockchip/Kconfig:46:config ROCKCHIP_ANALOGIX_DP\ndrivers/gpu/drm/rockchip/Kconfig-47-\tbool \"Rockchip specific extensions for Analogix DP driver\"\ndrivers/gpu/drm/rockchip/Kconfig:48:\tdepends on ROCKCHIP_VOP\ndrivers/gpu/drm/rockchip/Kconfig-49-\tselect DRM_BRIDGE_CONNECTOR\n--\ndrivers/gpu/drm/rockchip/Kconfig-56-\ndrivers/gpu/drm/rockchip/Kconfig:57:config ROCKCHIP_CDN_DP\ndrivers/gpu/drm/rockchip/Kconfig-58-\tbool \"Rockchip cdn DP\"\ndrivers/gpu/drm/rockchip/Kconfig:59:\tdepends on EXTCON=y || (EXTCON=m \u0026\u0026 DRM_ROCKCHIP=m)\ndrivers/gpu/drm/rockchip/Kconfig-60-\tselect DRM_DISPLAY_HELPER\n--\ndrivers/gpu/drm/rockchip/Kconfig-68-\ndrivers/gpu/drm/rockchip/Kconfig:69:config ROCKCHIP_DW_DP\ndrivers/gpu/drm/rockchip/Kconfig-70-\tbool \"Rockchip specific extensions for Synopsys DW DP\"\n--\ndrivers/gpu/drm/rockchip/Kconfig-77-\ndrivers/gpu/drm/rockchip/Kconfig:78:config ROCKCHIP_DW_HDMI\ndrivers/gpu/drm/rockchip/Kconfig-79-\tbool \"Rockchip specific extensions for Synopsys DW HDMI\"\n--\ndrivers/gpu/drm/rockchip/Kconfig-85-\ndrivers/gpu/drm/rockchip/Kconfig:86:config ROCKCHIP_DW_HDMI_QP\ndrivers/gpu/drm/rockchip/Kconfig-87-\tbool \"Rockchip specific extensions for Synopsys DW HDMI QP\"\n--\ndrivers/gpu/drm/rockchip/Kconfig-93-\ndrivers/gpu/drm/rockchip/Kconfig:94:config ROCKCHIP_DW_MIPI_DSI\ndrivers/gpu/drm/rockchip/Kconfig-95-\tbool \"Rockchip specific extensions for Synopsys DW MIPI DSI\"\n--\ndrivers/gpu/drm/rockchip/Kconfig-102-\ndrivers/gpu/drm/rockchip/Kconfig:103:config ROCKCHIP_DW_MIPI_DSI2\ndrivers/gpu/drm/rockchip/Kconfig-104-\tbool \"Rockchip specific extensions for Synopsys DW MIPI DSI2\"\n--\ndrivers/gpu/drm/rockchip/Kconfig-111-\ndrivers/gpu/drm/rockchip/Kconfig:112:config ROCKCHIP_INNO_HDMI\ndrivers/gpu/drm/rockchip/Kconfig-113-\tbool \"Rockchip specific extensions for Innosilicon HDMI\"\n--\ndrivers/gpu/drm/rockchip/Kconfig-121-\ndrivers/gpu/drm/rockchip/Kconfig:122:config ROCKCHIP_LVDS\ndrivers/gpu/drm/rockchip/Kconfig-123-\tbool \"Rockchip LVDS support\"\ndrivers/gpu/drm/rockchip/Kconfig:124:\tdepends on DRM_ROCKCHIP\ndrivers/gpu/drm/rockchip/Kconfig-125-\tdepends on PINCTRL \u0026\u0026 OF\n--\ndrivers/gpu/drm/rockchip/Kconfig-133-\ndrivers/gpu/drm/rockchip/Kconfig:134:config ROCKCHIP_RGB\ndrivers/gpu/drm/rockchip/Kconfig-135-\tbool \"Rockchip RGB support\"\ndrivers/gpu/drm/rockchip/Kconfig:136:\tdepends on DRM_ROCKCHIP\ndrivers/gpu/drm/rockchip/Kconfig-137-\tdepends on PINCTRL\n--\ndrivers/gpu/drm/rockchip/Kconfig-145-\ndrivers/gpu/drm/rockchip/Kconfig:146:config ROCKCHIP_RK3066_HDMI\ndrivers/gpu/drm/rockchip/Kconfig-147-\tbool \"Rockchip specific extensions for RK3066 HDMI\"\ndrivers/gpu/drm/rockchip/Kconfig:148:\tdepends on DRM_ROCKCHIP\ndrivers/gpu/drm/rockchip/Kconfig-149-\tselect DRM_DISPLAY_HELPER\n--\ndrivers/gpu/drm/rockchip/Makefile=6=rockchipdrm-y := rockchip_drm_drv.o rockchip_drm_fb.o \\\n--\ndrivers/gpu/drm/rockchip/Makefile-8-\ndrivers/gpu/drm/rockchip/Makefile:9:rockchipdrm-$(CONFIG_ROCKCHIP_VOP2) += rockchip_drm_vop2.o rockchip_vop2_reg.o\ndrivers/gpu/drm/rockchip/Makefile:10:rockchipdrm-$(CONFIG_ROCKCHIP_VOP) += rockchip_drm_vop.o rockchip_vop_reg.o\ndrivers/gpu/drm/rockchip/Makefile:11:rockchipdrm-$(CONFIG_ROCKCHIP_ANALOGIX_DP) += analogix_dp-rockchip.o\ndrivers/gpu/drm/rockchip/Makefile:12:rockchipdrm-$(CONFIG_ROCKCHIP_CDN_DP) += cdn-dp-core.o cdn-dp-reg.o\ndrivers/gpu/drm/rockchip/Makefile:13:rockchipdrm-$(CONFIG_ROCKCHIP_DW_HDMI) += dw_hdmi-rockchip.o\ndrivers/gpu/drm/rockchip/Makefile:14:rockchipdrm-$(CONFIG_ROCKCHIP_DW_HDMI_QP) += dw_hdmi_qp-rockchip.o\ndrivers/gpu/drm/rockchip/Makefile:15:rockchipdrm-$(CONFIG_ROCKCHIP_DW_MIPI_DSI) += dw-mipi-dsi-rockchip.o\ndrivers/gpu/drm/rockchip/Makefile:16:rockchipdrm-$(CONFIG_ROCKCHIP_DW_MIPI_DSI2) += dw-mipi-dsi2-rockchip.o\ndrivers/gpu/drm/rockchip/Makefile:17:rockchipdrm-$(CONFIG_ROCKCHIP_DW_DP) += dw_dp-rockchip.o\ndrivers/gpu/drm/rockchip/Makefile:18:rockchipdrm-$(CONFIG_ROCKCHIP_INNO_HDMI) += inno_hdmi-rockchip.o\ndrivers/gpu/drm/rockchip/Makefile:19:rockchipdrm-$(CONFIG_ROCKCHIP_LVDS) += rockchip_lvds.o\ndrivers/gpu/drm/rockchip/Makefile:20:rockchipdrm-$(CONFIG_ROCKCHIP_RGB) += rockchip_rgb.o\ndrivers/gpu/drm/rockchip/Makefile:21:rockchipdrm-$(CONFIG_ROCKCHIP_RK3066_HDMI) += rk3066_hdmi.o\ndrivers/gpu/drm/rockchip/Makefile-22-\ndrivers/gpu/drm/rockchip/Makefile:23:obj-$(CONFIG_DRM_ROCKCHIP) += rockchipdrm.o\n--\ndrivers/gpu/drm/rockchip/analogix_dp-rockchip.c=285=rockchip_dp_drm_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/analogix_dp-rockchip.c-299-\ndrivers/gpu/drm/rockchip/analogix_dp-rockchip.c:300:\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_AAAA;\ndrivers/gpu/drm/rockchip/analogix_dp-rockchip.c-301-\ts-\u003eoutput_type = DRM_MODE_CONNECTOR_eDP;\n--\ndrivers/gpu/drm/rockchip/cdn-dp-core.c=661=static int cdn_dp_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/cdn-dp-core.c-666-\ndrivers/gpu/drm/rockchip/cdn-dp-core.c:667:\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_AAAA;\ndrivers/gpu/drm/rockchip/cdn-dp-core.c-668-\ts-\u003eoutput_type = DRM_MODE_CONNECTOR_DisplayPort;\n--\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c=770=dw_mipi_dsi_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c-778-\tcase MIPI_DSI_FMT_RGB888:\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:779:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P888;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c-780-\t\tbreak;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c-781-\tcase MIPI_DSI_FMT_RGB666:\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:782:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P666;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c-783-\t\tbreak;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c-784-\tcase MIPI_DSI_FMT_RGB565:\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:785:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P565;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c-786-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c-793-\tif (dsi-\u003eslave)\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:794:\t\ts-\u003eoutput_flags = ROCKCHIP_OUTPUT_DSI_DUAL;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c-795-\n--\ndrivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c=239=dw_mipi_dsi2_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c-250-\tcase MIPI_DSI_FMT_RGB666_PACKED:\ndrivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c:251:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P666;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c-252-\t\tbreak;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c-253-\tcase MIPI_DSI_FMT_RGB565:\ndrivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c:254:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P565;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c-255-\t\tbreak;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c-256-\tcase MIPI_DSI_FMT_RGB888:\ndrivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c:257:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P888;\ndrivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c-258-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/dw_dp-rockchip.c=32=static int dw_dp_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/dw_dp-rockchip.c-45-\tcase MEDIA_BUS_FMT_UYYVYY8_0_5X24:\ndrivers/gpu/drm/rockchip/dw_dp-rockchip.c:46:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_YUV420;\ndrivers/gpu/drm/rockchip/dw_dp-rockchip.c-47-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/dw_dp-rockchip.c-49-\tcase MEDIA_BUS_FMT_YUYV8_1X16:\ndrivers/gpu/drm/rockchip/dw_dp-rockchip.c:50:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_S888_DUMMY;\ndrivers/gpu/drm/rockchip/dw_dp-rockchip.c-51-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/dw_dp-rockchip.c-57-\tdefault:\ndrivers/gpu/drm/rockchip/dw_dp-rockchip.c:58:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_AAAA;\ndrivers/gpu/drm/rockchip/dw_dp-rockchip.c-59-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/dw_hdmi-rockchip.c=299=dw_hdmi_rockchip_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/dw_hdmi-rockchip.c-317-\tcase MEDIA_BUS_FMT_YUV10_1X30:\ndrivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:318:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_AAAA;\ndrivers/gpu/drm/rockchip/dw_hdmi-rockchip.c-319-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/dw_hdmi-rockchip.c-321-\tcase MEDIA_BUS_FMT_UYYVYY10_0_5X30:\ndrivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:322:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_YUV420;\ndrivers/gpu/drm/rockchip/dw_hdmi-rockchip.c-323-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c=191=dw_hdmi_qp_rockchip_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c-214-\tcase MEDIA_BUS_FMT_YUV10_1X30:\ndrivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c:215:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_AAAA;\ndrivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c-216-\t\tbreak;\ndrivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c-217-\tcase MEDIA_BUS_FMT_UYVY8_1X16:\ndrivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c:218:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_YUV422;\ndrivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c-219-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c-221-\tcase MEDIA_BUS_FMT_UYYVYY10_0_5X30:\ndrivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c:222:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_YUV420;\ndrivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c-223-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/inno_hdmi-rockchip.c=68=static int inno_hdmi_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/inno_hdmi-rockchip.c-73-\ndrivers/gpu/drm/rockchip/inno_hdmi-rockchip.c:74:\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P888;\ndrivers/gpu/drm/rockchip/inno_hdmi-rockchip.c-75-\ts-\u003eoutput_type = DRM_MODE_CONNECTOR_HDMIA;\n--\ndrivers/gpu/drm/rockchip/rk3066_hdmi.c=444=rk3066_hdmi_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/rk3066_hdmi.c-449-\ndrivers/gpu/drm/rockchip/rk3066_hdmi.c:450:\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P888;\ndrivers/gpu/drm/rockchip/rk3066_hdmi.c-451-\ts-\u003eoutput_type = DRM_MODE_CONNECTOR_HDMIA;\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c=261=static const struct dev_pm_ops rockchip_drm_pm_ops = {\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c-265-\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:266:#define MAX_ROCKCHIP_SUB_DRIVERS 16\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:267:static struct platform_driver *rockchip_sub_drivers[MAX_ROCKCHIP_SUB_DRIVERS];\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c-268-static int num_rockchip_sub_drivers;\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c=504=static struct platform_driver rockchip_drm_platform_driver = {\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c-514-\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:515:#define ADD_ROCKCHIP_SUB_DRIVER(drv, cond) { \\\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c-516-\tif (IS_ENABLED(cond) \u0026\u0026 \\\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:517:\t    !WARN_ON(num_rockchip_sub_drivers \u003e= MAX_ROCKCHIP_SUB_DRIVERS)) \\\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c-518-\t\trockchip_sub_drivers[num_rockchip_sub_drivers++] = \u0026drv; \\\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c=521=static int __init rockchip_drm_init(void)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c-528-\tnum_rockchip_sub_drivers = 0;\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:529:\tADD_ROCKCHIP_SUB_DRIVER(vop_platform_driver, CONFIG_ROCKCHIP_VOP);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:530:\tADD_ROCKCHIP_SUB_DRIVER(vop2_platform_driver, CONFIG_ROCKCHIP_VOP2);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:531:\tADD_ROCKCHIP_SUB_DRIVER(rockchip_lvds_driver,\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:532:\t\t\t\tCONFIG_ROCKCHIP_LVDS);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:533:\tADD_ROCKCHIP_SUB_DRIVER(rockchip_dp_driver,\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:534:\t\t\t\tCONFIG_ROCKCHIP_ANALOGIX_DP);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:535:\tADD_ROCKCHIP_SUB_DRIVER(cdn_dp_driver, CONFIG_ROCKCHIP_CDN_DP);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:536:\tADD_ROCKCHIP_SUB_DRIVER(dw_dp_driver, CONFIG_ROCKCHIP_DW_DP);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:537:\tADD_ROCKCHIP_SUB_DRIVER(dw_hdmi_rockchip_pltfm_driver,\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:538:\t\t\t\tCONFIG_ROCKCHIP_DW_HDMI);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:539:\tADD_ROCKCHIP_SUB_DRIVER(dw_hdmi_qp_rockchip_pltfm_driver,\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:540:\t\t\t\tCONFIG_ROCKCHIP_DW_HDMI_QP);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:541:\tADD_ROCKCHIP_SUB_DRIVER(dw_mipi_dsi_rockchip_driver,\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:542:\t\t\t\tCONFIG_ROCKCHIP_DW_MIPI_DSI);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:543:\tADD_ROCKCHIP_SUB_DRIVER(dw_mipi_dsi2_rockchip_driver,\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:544:\t\t\t\tCONFIG_ROCKCHIP_DW_MIPI_DSI2);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:545:\tADD_ROCKCHIP_SUB_DRIVER(inno_hdmi_driver, CONFIG_ROCKCHIP_INNO_HDMI);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:546:\tADD_ROCKCHIP_SUB_DRIVER(rk3066_hdmi_driver,\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:547:\t\t\t\tCONFIG_ROCKCHIP_RK3066_HDMI);\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c-548-\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c=577=MODULE_AUTHOR(\"Mark Yao \u003cmark.yao@rock-chips.com\u003e\");\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c:578:MODULE_DESCRIPTION(\"ROCKCHIP DRM Driver\");\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.c-579-MODULE_LICENSE(\"GPL v2\");\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-8-\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:9:#ifndef _ROCKCHIP_DRM_DRV_H\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:10:#define _ROCKCHIP_DRM_DRV_H\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-11-\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-19-\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:20:#define ROCKCHIP_MAX_FB_BUFFER\t3\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:21:#define ROCKCHIP_MAX_CONNECTOR\t2\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:22:#define ROCKCHIP_MAX_CRTC\t4\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-23-\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-26- */\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:27:#define ROCKCHIP_OUT_MODE_P888\t\t0\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:28:#define ROCKCHIP_OUT_MODE_BT1120\t0\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:29:#define ROCKCHIP_OUT_MODE_P666\t\t1\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:30:#define ROCKCHIP_OUT_MODE_P565\t\t2\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:31:#define ROCKCHIP_OUT_MODE_BT656\t\t5\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:32:#define ROCKCHIP_OUT_MODE_S888\t\t8\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:33:#define ROCKCHIP_OUT_MODE_YUV422\t9\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:34:#define ROCKCHIP_OUT_MODE_S888_DUMMY\t12\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:35:#define ROCKCHIP_OUT_MODE_YUV420\t14\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-36-/* for use special outface */\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:37:#define ROCKCHIP_OUT_MODE_AAAA\t\t15\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-38-/* SoC specific output modes */\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:39:#define ROCKCHIP_OUT_MODE_YUV422_RK3576_DP\t12\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:40:#define ROCKCHIP_OUT_MODE_YUV422_RK3576_HDMI\t13\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-41-\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-42-/* output flags */\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:43:#define ROCKCHIP_OUTPUT_DSI_DUAL\tBIT(0)\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-44-\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h=106=static inline struct rockchip_encoder *to_rockchip_encoder(struct drm_encoder *encoder)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h-110-\ndrivers/gpu/drm/rockchip/rockchip_drm_drv.h:111:#endif /* _ROCKCHIP_DRM_DRV_H_ */\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_fb.h-6-\ndrivers/gpu/drm/rockchip/rockchip_drm_fb.h:7:#ifndef _ROCKCHIP_DRM_FB_H\ndrivers/gpu/drm/rockchip/rockchip_drm_fb.h:8:#define _ROCKCHIP_DRM_FB_H\ndrivers/gpu/drm/rockchip/rockchip_drm_fb.h-9-\ndrivers/gpu/drm/rockchip/rockchip_drm_fb.h=10=void rockchip_drm_mode_config_init(struct drm_device *dev);\ndrivers/gpu/drm/rockchip/rockchip_drm_fb.h:11:#endif /* _ROCKCHIP_DRM_FB_H */\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_gem.h-6-\ndrivers/gpu/drm/rockchip/rockchip_drm_gem.h:7:#ifndef _ROCKCHIP_DRM_GEM_H\ndrivers/gpu/drm/rockchip/rockchip_drm_gem.h:8:#define _ROCKCHIP_DRM_GEM_H\ndrivers/gpu/drm/rockchip/rockchip_drm_gem.h-9-\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_gem.h=44=int rockchip_gem_dumb_create(struct drm_file *file_priv,\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_gem.h-46-\t\t\t     struct drm_mode_create_dumb *args);\ndrivers/gpu/drm/rockchip/rockchip_drm_gem.h:47:#endif /* _ROCKCHIP_DRM_GEM_H */\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c=791=static inline bool rockchip_afbc(u64 modifier)\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c-792-{\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c:793:\treturn modifier == ROCKCHIP_AFBC_MOD;\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c-794-}\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c=1362=static void vop_crtc_atomic_enable(struct drm_crtc *crtc,\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c-1428-\t\tVOP_REG_SET(vop, output, mipi_dual_channel_en,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c:1429:\t\t\t    !!(s-\u003eoutput_flags \u0026 ROCKCHIP_OUTPUT_DSI_DUAL));\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c-1430-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c-1443-\t */\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c:1444:\tif (s-\u003eoutput_mode == ROCKCHIP_OUT_MODE_AAAA \u0026\u0026\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c-1445-\t    !(vop_data-\u003efeature \u0026 VOP_FEATURE_OUTPUT_RGB10))\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c:1446:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P888;\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c-1447-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c:1448:\tif (s-\u003eoutput_mode == ROCKCHIP_OUT_MODE_AAAA \u0026\u0026 dither_bpc \u003c= 8)\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.c-1449-\t\tVOP_REG_SET(vop, common, pre_dither_down, 1);\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.h-6-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.h:7:#ifndef _ROCKCHIP_DRM_VOP_H\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.h:8:#define _ROCKCHIP_DRM_VOP_H\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.h-9-\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.h-29- */\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.h:30:#define ROCKCHIP_AFBC_MOD \\\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.h-31-\tDRM_FORMAT_MOD_ARM_AFBC( \\\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.h=425=extern const struct component_ops vop_component_ops;\ndrivers/gpu/drm/rockchip/rockchip_drm_vop.h:426:#endif /* _ROCKCHIP_DRM_VOP_H */\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c=314=static bool vop2_output_uv_swap(u32 bus_format, u32 output_mode)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-330-\t      bus_format == MEDIA_BUS_FMT_YUV10_1X30) \u0026\u0026\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:331:\t     (output_mode == ROCKCHIP_OUT_MODE_AAAA ||\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:332:\t      output_mode == ROCKCHIP_OUT_MODE_P888)))\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-333-\t\treturn true;\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c=1614=static void vop2_dither_setup(struct drm_crtc *crtc, u32 *dsp_ctrl)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1635-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1636:\tif (vcstate-\u003eoutput_mode != ROCKCHIP_OUT_MODE_AAAA)\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1637-\t\t*dsp_ctrl |= RK3568_VP_DSP_CTRL__PRE_DITHER_DOWN_EN;\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c=1748=static void vop2_crtc_atomic_enable(struct drm_crtc *crtc,\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1823-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1824:\tif (vcstate-\u003eoutput_mode == ROCKCHIP_OUT_MODE_AAAA \u0026\u0026\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1825-\t    !(vp_data-\u003efeature \u0026 VOP2_VP_FEATURE_OUTPUT_10BIT))\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1826:\t\tout_mode = ROCKCHIP_OUT_MODE_P888;\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1827:\telse if (vcstate-\u003eoutput_mode == ROCKCHIP_OUT_MODE_YUV422 \u0026\u0026\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1828-\t\t vop2-\u003eversion == VOP_VERSION_RK3576)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1831-\t\tcase DRM_MODE_CONNECTOR_eDP:\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1832:\t\t\tout_mode = ROCKCHIP_OUT_MODE_YUV422_RK3576_DP;\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1833-\t\t\tbreak;\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1834-\t\tcase DRM_MODE_CONNECTOR_HDMIA:\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1835:\t\t\tout_mode = ROCKCHIP_OUT_MODE_YUV422_RK3576_HDMI;\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1836-\t\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1907-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1908:\t\t\t\tif (rkencoder-\u003ecrtc_endpoint_id == ROCKCHIP_VOP2_EP_HDMI0) {\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1909-\t\t\t\t\tif (!vop2-\u003epll_hdmiphy0)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1922-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1923:\t\t\t\tif (rkencoder-\u003ecrtc_endpoint_id == ROCKCHIP_VOP2_EP_HDMI1) {\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-1924-\t\t\t\t\tif (!vop2-\u003epll_hdmiphy1)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c=2486=static bool vop2_is_mirror_win(struct vop2_win *win)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-2491-\t\tswitch (win-\u003edata-\u003ephys_id) {\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2492:\t\tcase ROCKCHIP_VOP2_SMART1:\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2493:\t\tcase ROCKCHIP_VOP2_ESMART1:\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2494:\t\tcase ROCKCHIP_VOP2_CLUSTER1:\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-2495-\t\t\treturn true;\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c=2684=static int vop2_find_rgb_encoder(struct vop2 *vop2)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-2691-\t\tendpoint = of_graph_get_endpoint_by_regs(node, i,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2692:\t\t\t\t\t\t\t ROCKCHIP_VOP2_EP_RGB0);\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.c-2693-\t\tif (!endpoint)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-6-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:7:#ifndef _ROCKCHIP_DRM_VOP2_H\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:8:#define _ROCKCHIP_DRM_VOP2_H\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-9-\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h=59=enum vop2_scale_down_mode {\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-76-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:77:#define vop2_output_if_is_hdmi(x)\t((x) == ROCKCHIP_VOP2_EP_HDMI0 || \\\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:78:\t\t\t\t\t (x) == ROCKCHIP_VOP2_EP_HDMI1)\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-79-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:80:#define vop2_output_if_is_dp(x)\t\t((x) == ROCKCHIP_VOP2_EP_DP0 || \\\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:81:\t\t\t\t\t (x) == ROCKCHIP_VOP2_EP_DP1)\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-82-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:83:#define vop2_output_if_is_edp(x)\t((x) == ROCKCHIP_VOP2_EP_EDP0 || \\\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:84:\t\t\t\t\t (x) == ROCKCHIP_VOP2_EP_EDP1)\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-85-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:86:#define vop2_output_if_is_mipi(x)\t((x) == ROCKCHIP_VOP2_EP_MIPI0 || \\\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:87:\t\t\t\t\t (x) == ROCKCHIP_VOP2_EP_MIPI1)\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-88-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:89:#define vop2_output_if_is_lvds(x)\t((x) == ROCKCHIP_VOP2_EP_LVDS0 || \\\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:90:\t\t\t\t\t (x) == ROCKCHIP_VOP2_EP_LVDS1)\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-91-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:92:#define vop2_output_if_is_dpi(x)\t((x) == ROCKCHIP_VOP2_EP_RGB0)\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-93-\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h=177=struct vop2_win_data {\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-192-\t */\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:193:\tunsigned int layer_sel_id[ROCKCHIP_MAX_CRTC];\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-194-\tuint64_t feature;\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h=289=struct vop2 {\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-292-\tstruct drm_device *drm;\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:293:\tstruct vop2_video_port vps[ROCKCHIP_MAX_CRTC];\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-294-\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h=787=enum vop2_layer_phy_id {\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:788:\tROCKCHIP_VOP2_CLUSTER0 = 0,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:789:\tROCKCHIP_VOP2_CLUSTER1,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:790:\tROCKCHIP_VOP2_ESMART0,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:791:\tROCKCHIP_VOP2_ESMART1,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:792:\tROCKCHIP_VOP2_SMART0,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:793:\tROCKCHIP_VOP2_SMART1,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:794:\tROCKCHIP_VOP2_CLUSTER2,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:795:\tROCKCHIP_VOP2_CLUSTER3,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:796:\tROCKCHIP_VOP2_ESMART2,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:797:\tROCKCHIP_VOP2_ESMART3,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:798:\tROCKCHIP_VOP2_PHY_ID_INVALID = -1,\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-799-};\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h=860=static inline void vop2_cfg_done(struct vop2_video_port *vp)\n--\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h-869-\ndrivers/gpu/drm/rockchip/rockchip_drm_vop2.h:870:#endif /* _ROCKCHIP_DRM_VOP2_H */\n--\ndrivers/gpu/drm/rockchip/rockchip_lvds.c=126=rockchip_lvds_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/rockchip_lvds.c-131-\ndrivers/gpu/drm/rockchip/rockchip_lvds.c:132:\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P888;\ndrivers/gpu/drm/rockchip/rockchip_lvds.c-133-\ts-\u003eoutput_type = DRM_MODE_CONNECTOR_LVDS;\n--\ndrivers/gpu/drm/rockchip/rockchip_lvds.h-8-\ndrivers/gpu/drm/rockchip/rockchip_lvds.h:9:#ifndef _ROCKCHIP_LVDS_\ndrivers/gpu/drm/rockchip/rockchip_lvds.h:10:#define _ROCKCHIP_LVDS_\ndrivers/gpu/drm/rockchip/rockchip_lvds.h-11-\n--\ndrivers/gpu/drm/rockchip/rockchip_lvds.h-123-\ndrivers/gpu/drm/rockchip/rockchip_lvds.h:124:#endif /* _ROCKCHIP_LVDS_ */\n--\ndrivers/gpu/drm/rockchip/rockchip_rgb.c=34=rockchip_rgb_encoder_atomic_check(struct drm_encoder *encoder,\n--\ndrivers/gpu/drm/rockchip/rockchip_rgb.c-49-\tcase MEDIA_BUS_FMT_RGB666_1X18:\ndrivers/gpu/drm/rockchip/rockchip_rgb.c:50:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P666;\ndrivers/gpu/drm/rockchip/rockchip_rgb.c-51-\t\tbreak;\ndrivers/gpu/drm/rockchip/rockchip_rgb.c-52-\tcase MEDIA_BUS_FMT_RGB565_1X16:\ndrivers/gpu/drm/rockchip/rockchip_rgb.c:53:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P565;\ndrivers/gpu/drm/rockchip/rockchip_rgb.c-54-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/rockchip_rgb.c-57-\tdefault:\ndrivers/gpu/drm/rockchip/rockchip_rgb.c:58:\t\ts-\u003eoutput_mode = ROCKCHIP_OUT_MODE_P888;\ndrivers/gpu/drm/rockchip/rockchip_rgb.c-59-\t\tbreak;\n--\ndrivers/gpu/drm/rockchip/rockchip_rgb.h-7-\ndrivers/gpu/drm/rockchip/rockchip_rgb.h:8:#ifdef CONFIG_ROCKCHIP_RGB\ndrivers/gpu/drm/rockchip/rockchip_rgb.h-9-struct rockchip_rgb *rockchip_rgb_init(struct device *dev,\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c=595=static const struct vop2_win_data rk3568_vop_win_data[] = {\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-597-\t\t.name = \"Smart0-win0\",\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c:598:\t\t.phys_id = ROCKCHIP_VOP2_SMART0,\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-599-\t\t.base = 0x1c00,\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-612-\t\t.name = \"Smart1-win0\",\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c:613:\t\t.phys_id = ROCKCHIP_VOP2_SMART1,\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-614-\t\t.possible_vp_mask = BIT(0) | BIT(1) | BIT(2),\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-626-\t\t.name = \"Esmart1-win0\",\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c:627:\t\t.phys_id = ROCKCHIP_VOP2_ESMART1,\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-628-\t\t.possible_vp_mask = BIT(0) | BIT(1) | BIT(2),\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-640-\t\t.name = \"Esmart0-win0\",\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c:641:\t\t.phys_id = ROCKCHIP_VOP2_ESMART0,\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-642-\t\t.possible_vp_mask = BIT(0) | BIT(1) | BIT(2),\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-654-\t\t.name = \"Cluster0-win0\",\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c:655:\t\t.phys_id = ROCKCHIP_VOP2_CLUSTER0,\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-656-\t\t.base = 0x1000,\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-670-\t\t.name = \"Cluster1-win0\",\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c:671:\t\t.phys_id = ROCKCHIP_VOP2_CLUSTER1,\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-672-\t\t.base = 0x1200,\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c=852=static const struct vop2_win_data rk3576_vop_win_data[] = {\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-854-\t\t.name = \"Cluster0-win0\",\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c:855:\t\t.phys_id = ROCKCHIP_VOP2_CLUSTER0,\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-856-\t\t.base = 0x1000,\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-871-\t\t.name = \"Cluster1-win0\",\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c:872:\t\t.phys_id = ROCKCHIP_VOP2_CLUSTER1,\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-873-\t\t.base = 0x1200,\n--\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-888-\t\t.name = \"Esmart0-win0\",\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c:889:\t\t.phys_id = ROCKCHIP_VOP2_ESMART0,\ndrivers/gpu/drm/rockchip/rockchip_vop2_reg.c-890-\t\t.base = 0x1800,\n--\n\n"
}

5/2 2026/09/18 12:17 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 18094
							output: 38
							thoughts: 17
						

Thoughts:
Here's my take on those thoughts, tailored for an expert audience:

**Examining the Rockchip DRM Kconfig**

Alright, let's dive into the `drivers/gpu/drm/rockchip/Kconfig` file. I need to understand the configuration options for the Rockchip Direct Rendering Manager (DRM) driver. I'm immediately looking for how the various features and hardware blocks are exposed to the kernel config.

I'm thinking: What's the modularity like? Are the individual components of the GPU like the display controller, the video processor, and the multimedia accelerator discretely configurable? Or is it a more monolithic enable-everything-or-nothing approach? I'll be searching for dependencies, defaults, and the structure of the `if`/`endif` blocks. I'm keen to spot any obvious discrepancies or potential conflicts between different Rockchip SoCs supported in this driver.

My main goal is to get a quick overview of what's *controllable* via the kernel config and identify what the standard setup is. Are there any unusual defaults? Are there hidden options, like experimental features or debugging flags, that are worth exploring further, or should be documented better in my own project notes? I'll also check if there are any specific options or default settings that are known to cause trouble on specific hardware revisions, as that's often critical in embedded systems. I want to build a mental map of what I can tweak to suit my exact requirements. Let's see how well Rockchip separates out their hardware features!



6/2 2026/09/18 12:18 tool read-file
0m Args:
{
  "File": "drivers/gpu/drm/rockchip/Kconfig",
  "FirstLine": 1,
  "LineCount": 100
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: GPL-2.0-only\n   2:\tconfig DRM_ROCKCHIP\n   3:\t\ttristate \"DRM Support for Rockchip\"\n   4:\t\tdepends on DRM\n   5:\t\tdepends on ARCH_ROCKCHIP || COMPILE_TEST\n   6:\t\tdepends on ROCKCHIP_IOMMU || !ROCKCHIP_IOMMU\n   7:\t\tdepends on OF\n   8:\t\tselect DRM_CLIENT_SELECTION\n   9:\t\tselect DRM_GEM_DMA_HELPER\n  10:\t\tselect DRM_KMS_HELPER\n  11:\t\tselect DRM_PANEL\n  12:\t\tselect VIDEOMODE_HELPERS\n  13:\t\tselect DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP\n  14:\t\tselect DRM_DISPLAY_DP_AUX_BUS if ROCKCHIP_ANALOGIX_DP\n  15:\t\tselect DRM_DW_DP if ROCKCHIP_DW_DP\n  16:\t\tselect DRM_DW_HDMI if ROCKCHIP_DW_HDMI\n  17:\t\tselect DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP\n  18:\t\tselect DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI\n  19:\t\tselect DRM_DW_MIPI_DSI2 if ROCKCHIP_DW_MIPI_DSI2\n  20:\t\tselect DRM_INNO_HDMI if ROCKCHIP_INNO_HDMI\n  21:\t\tselect GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI\n  22:\t\tselect GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI\n  23:\t\tselect SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP \u0026\u0026 SND_SOC\n  24:\t\thelp\n  25:\t\t  Choose this option if you have a Rockchip soc chipset.\n  26:\t\t  This driver provides kernel mode setting and buffer\n  27:\t\t  management to userspace. This driver does not provide\n  28:\t\t  2D or 3D acceleration; acceleration is performed by other\n  29:\t\t  IP found on the SoC.\n  30:\t\n  31:\tif DRM_ROCKCHIP\n  32:\t\n  33:\tconfig ROCKCHIP_VOP\n  34:\t\tbool \"Rockchip VOP driver\"\n  35:\t\tdefault y\n  36:\t\thelp\n  37:\t\t  This selects support for the VOP driver. You should enable it\n  38:\t\t  on older SoCs.\n  39:\t\n  40:\tconfig ROCKCHIP_VOP2\n  41:\t\tbool \"Rockchip VOP2 driver\"\n  42:\t\thelp\n  43:\t\t  This selects support for the VOP2 driver. The VOP2 hardware is\n  44:\t\t  first found on the RK3568.\n  45:\t\n  46:\tconfig ROCKCHIP_ANALOGIX_DP\n  47:\t\tbool \"Rockchip specific extensions for Analogix DP driver\"\n  48:\t\tdepends on ROCKCHIP_VOP\n  49:\t\tselect DRM_BRIDGE_CONNECTOR\n  50:\t\tselect DRM_DISPLAY_HELPER\n  51:\t\tselect DRM_DISPLAY_DP_HELPER\n  52:\t\thelp\n  53:\t\t  This selects support for Rockchip SoC specific extensions\n  54:\t\t  for the Analogix Core DP driver. If you want to enable DP\n  55:\t\t  on RK3288 or RK3399 based SoC, you should select this option.\n  56:\t\n  57:\tconfig ROCKCHIP_CDN_DP\n  58:\t\tbool \"Rockchip cdn DP\"\n  59:\t\tdepends on EXTCON=y || (EXTCON=m \u0026\u0026 DRM_ROCKCHIP=m)\n  60:\t\tselect DRM_DISPLAY_HELPER\n  61:\t\tselect DRM_BRIDGE_CONNECTOR\n  62:\t\tselect DRM_DISPLAY_DP_HELPER\n  63:\t\thelp\n  64:\t\t  This selects support for Rockchip SoC specific extensions\n  65:\t\t  for the cdn DP driver. If you want to enable Dp on\n  66:\t\t  RK3399 based SoC, you should select this\n  67:\t\t  option.\n  68:\t\n  69:\tconfig ROCKCHIP_DW_DP\n  70:\t\tbool \"Rockchip specific extensions for Synopsys DW DP\"\n  71:\t\tselect DRM_BRIDGE_CONNECTOR\n  72:\t\thelp\n  73:\t\t  This selects support for Rockchip SoC specific extensions\n  74:\t\t  to enable Synopsys DesignWare Cores based DisplayPort transmit\n  75:\t\t  controller support on Rockchip SoC, If you want to enable DP on\n  76:\t\t  rk3588 based SoC, you should select this option.\n  77:\t\n  78:\tconfig ROCKCHIP_DW_HDMI\n  79:\t\tbool \"Rockchip specific extensions for Synopsys DW HDMI\"\n  80:\t\thelp\n  81:\t\t  This selects support for Rockchip SoC specific extensions\n  82:\t\t  for the Synopsys DesignWare HDMI driver. If you want to\n  83:\t\t  enable HDMI on RK3288 or RK3399 based SoC, you should select\n  84:\t\t  this option.\n  85:\t\n  86:\tconfig ROCKCHIP_DW_HDMI_QP\n  87:\t\tbool \"Rockchip specific extensions for Synopsys DW HDMI QP\"\n  88:\t\tselect DRM_BRIDGE_CONNECTOR\n  89:\t\thelp\n  90:\t\t  This selects support for Rockchip SoC specific extensions\n  91:\t\t  for the Synopsys DesignWare HDMI QP driver. If you want to\n  92:\t\t  enable HDMI on RK3588 based SoC, you should select this option.\n  93:\t\n  94:\tconfig ROCKCHIP_DW_MIPI_DSI\n  95:\t\tbool \"Rockchip specific extensions for Synopsys DW MIPI DSI\"\n  96:\t\tselect GENERIC_PHY_MIPI_DPHY\n  97:\t\thelp\n  98:\t\t  This selects support for Rockchip SoC specific extensions\n  99:\t\t  for the Synopsys DesignWare dsi driver. If you want to\n 100:\t\t  enable MIPI DSI on RK3288 or RK3399 based SoC, you should\n"
}

7/2 2026/09/18 12:18 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 20056
							output: 50
							thoughts: 53
						

Thoughts:
Here's my summary, as though I'm thinking through this process:

**Diving into the DSI Detachment Logic**

Okay, time to dissect this detachment function, `dw_mipi_dsi_rockchip_host_detach`, in the Rockchip DSI driver. I need to understand how it cleans up when a DSI display is removed or disabled. I'll need to trace it and its callers, so the first step is to locate it in `drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c`. I need to understand its context; what other functions is it closely related to? What are the calling sequences? This gives me a picture of the overall detach procedure. The aim is to verify whether everything is properly uninitialized, resources are freed, and any potential for leaks or errors during the detachment process is mitigated. Time to start digging through the code...



8/2 2026/09/18 12:18 tool read-file
0m Args:
{
  "File": "drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c",
  "FirstLine": 1085,
  "LineCount": 60
}

Results:
{
  "Contents": "1085:\t\t}\n1086:\t\n1087:\t\treturn 0;\n1088:\t\n1089:\tout:\n1090:\t\tmutex_lock(\u0026dsi-\u003eusage_mutex);\n1091:\t\tdsi-\u003eusage_mode = DW_DSI_USAGE_IDLE;\n1092:\t\tmutex_unlock(\u0026dsi-\u003eusage_mutex);\n1093:\t\treturn ret;\n1094:\t}\n1095:\t\n1096:\tstatic int dw_mipi_dsi_rockchip_host_detach(void *priv_data,\n1097:\t\t\t\t\t\t    struct mipi_dsi_device *device)\n1098:\t{\n1099:\t\tstruct dw_mipi_dsi_rockchip *dsi = priv_data;\n1100:\t\tstruct device *second;\n1101:\t\n1102:\t\tsecond = dw_mipi_dsi_rockchip_find_second(dsi);\n1103:\t\tif (second \u0026\u0026 !IS_ERR(second)) {\n1104:\t\t\tcomponent_del(second, \u0026dw_mipi_dsi_rockchip_ops);\n1105:\t\t\tput_device(second);\n1106:\t\t}\n1107:\t\n1108:\t\tcomponent_del(dsi-\u003edev, \u0026dw_mipi_dsi_rockchip_ops);\n1109:\t\n1110:\t\tmutex_lock(\u0026dsi-\u003eusage_mutex);\n1111:\t\tdsi-\u003eusage_mode = DW_DSI_USAGE_IDLE;\n1112:\t\tmutex_unlock(\u0026dsi-\u003eusage_mutex);\n1113:\t\n1114:\t\treturn 0;\n1115:\t}\n1116:\t\n1117:\tstatic const struct dw_mipi_dsi_host_ops dw_mipi_dsi_rockchip_host_ops = {\n1118:\t\t.attach = dw_mipi_dsi_rockchip_host_attach,\n1119:\t\t.detach = dw_mipi_dsi_rockchip_host_detach,\n1120:\t};\n1121:\t\n1122:\tstatic int dw_mipi_dsi_rockchip_dphy_bind(struct device *dev,\n1123:\t\t\t\t\t\t  struct device *master,\n1124:\t\t\t\t\t\t  void *data)\n1125:\t{\n1126:\t\t/*\n1127:\t\t * Nothing to do when used as a dphy.\n1128:\t\t * Just make the rest of Rockchip-DRM happy\n1129:\t\t * by being here.\n1130:\t\t */\n1131:\t\n1132:\t\treturn 0;\n1133:\t}\n1134:\t\n1135:\tstatic void dw_mipi_dsi_rockchip_dphy_unbind(struct device *dev,\n1136:\t\t\t\t\t\t     struct device *master,\n1137:\t\t\t\t\t\t     void *data)\n1138:\t{\n1139:\t\t/* Nothing to do when used as a dphy. */\n1140:\t}\n1141:\t\n1142:\tstatic const struct component_ops dw_mipi_dsi_rockchip_dphy_ops = {\n1143:\t\t.bind\t= dw_mipi_dsi_rockchip_dphy_bind,\n1144:\t\t.unbind\t= dw_mipi_dsi_rockchip_dphy_unbind,\n"
}

9/2 2026/09/18 12:18 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 21271
							output: 50
							thoughts: 33
						

Thoughts:
**Analyzing the `dw_mipi_dsi_rockchip` Device**

Okay, so I'm looking at this `dw_mipi_dsi_rockchip` device – what exactly *is* it? My initial thought is to figure out its nature. Is it a display controller? A specific variant of a more generic device? Knowing its category is key to understanding its purpose and how it fits into the broader system architecture.

Therefore, the logical first step is to dig into its probe function and its associated platform driver. The probe function gives insights on how the device is initialized and configured. The platform driver will likely reveal its interfaces, resource usage, and overall control flow. By examining these elements, I can start forming a clear picture of this device's behavior, interactions, and any rockchip-specific implementation details.



10/2 2026/09/18 12:18 tool read-file
0m Args:
{
  "File": "drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c",
  "FirstLine": 1250,
  "LineCount": 80
}

Results:
{
  "Contents": "1250:\t\t\tgoto err_pclk;\n1251:\t\t}\n1252:\t\n1253:\t\tret = clk_prepare_enable(dsi-\u003egrf_clk);\n1254:\t\tif (ret) {\n1255:\t\t\tDRM_DEV_ERROR(dsi-\u003edev, \"Failed to enable grf_clk: %d\\n\", ret);\n1256:\t\t\tgoto err_grf_clk;\n1257:\t\t}\n1258:\t\n1259:\t\tret = clk_prepare_enable(dsi-\u003ephy_cfg_clk);\n1260:\t\tif (ret) {\n1261:\t\t\tDRM_DEV_ERROR(dsi-\u003edev, \"Failed to enable phy_cfg_clk: %d\\n\", ret);\n1262:\t\t\tgoto err_phy_cfg_clk;\n1263:\t\t}\n1264:\t\n1265:\t\t/* do soc-variant specific init */\n1266:\t\tif (dsi-\u003ecdata-\u003edphy_rx_power_on) {\n1267:\t\t\tret = dsi-\u003ecdata-\u003edphy_rx_power_on(phy);\n1268:\t\t\tif (ret \u003c 0) {\n1269:\t\t\t\tDRM_DEV_ERROR(dsi-\u003edev, \"hardware-specific phy bringup failed: %d\\n\", ret);\n1270:\t\t\t\tgoto err_pwr_on;\n1271:\t\t\t}\n1272:\t\t}\n1273:\t\n1274:\t\t/*\n1275:\t\t * Configure hsfreqrange according to frequency values\n1276:\t\t * Set clock lane and hsfreqrange by lane0(test code 0x44)\n1277:\t\t */\n1278:\t\tdw_mipi_dsi_phy_write(dsi, HS_RX_CONTROL_OF_LANE_CLK, 0);\n1279:\t\tdw_mipi_dsi_phy_write(dsi, HS_RX_CONTROL_OF_LANE_0,\n1280:\t\t\t\t      HSFREQRANGE_SEL(dppa_map[i].hsfreqrange));\n1281:\t\tdw_mipi_dsi_phy_write(dsi, HS_RX_CONTROL_OF_LANE_1, 0);\n1282:\t\tdw_mipi_dsi_phy_write(dsi, HS_RX_CONTROL_OF_LANE_2, 0);\n1283:\t\tdw_mipi_dsi_phy_write(dsi, HS_RX_CONTROL_OF_LANE_3, 0);\n1284:\t\n1285:\t\t/* Normal operation */\n1286:\t\tdw_mipi_dsi_phy_write(dsi, 0x0, 0);\n1287:\t\n1288:\t\tclk_disable_unprepare(dsi-\u003ephy_cfg_clk);\n1289:\t\tclk_disable_unprepare(dsi-\u003egrf_clk);\n1290:\t\n1291:\t\treturn ret;\n1292:\t\n1293:\terr_pwr_on:\n1294:\t\tclk_disable_unprepare(dsi-\u003ephy_cfg_clk);\n1295:\terr_phy_cfg_clk:\n1296:\t\tclk_disable_unprepare(dsi-\u003egrf_clk);\n1297:\terr_grf_clk:\n1298:\t\tclk_disable_unprepare(dsi-\u003epclk);\n1299:\terr_pclk:\n1300:\t\tpm_runtime_put(dsi-\u003edev);\n1301:\t\treturn ret;\n1302:\t}\n1303:\t\n1304:\tstatic int dw_mipi_dsi_dphy_power_off(struct phy *phy)\n1305:\t{\n1306:\t\tstruct dw_mipi_dsi_rockchip *dsi = phy_get_drvdata(phy);\n1307:\t\tint ret;\n1308:\t\n1309:\t\tret = clk_prepare_enable(dsi-\u003egrf_clk);\n1310:\t\tif (ret) {\n1311:\t\t\tDRM_DEV_ERROR(dsi-\u003edev, \"Failed to enable grf_clk: %d\\n\", ret);\n1312:\t\t\treturn ret;\n1313:\t\t}\n1314:\t\n1315:\t\tif (dsi-\u003ecdata-\u003edphy_rx_power_off) {\n1316:\t\t\tret = dsi-\u003ecdata-\u003edphy_rx_power_off(phy);\n1317:\t\t\tif (ret \u003c 0)\n1318:\t\t\t\tDRM_DEV_ERROR(dsi-\u003edev, \"hardware-specific phy shutdown failed: %d\\n\", ret);\n1319:\t\t}\n1320:\t\n1321:\t\tclk_disable_unprepare(dsi-\u003egrf_clk);\n1322:\t\tclk_disable_unprepare(dsi-\u003epclk);\n1323:\t\n1324:\t\tpm_runtime_put(dsi-\u003edev);\n1325:\t\n1326:\t\treturn ret;\n1327:\t}\n1328:\t\n1329:\tstatic const struct phy_ops dw_mipi_dsi_dphy_ops = {\n"
}

11/2 2026/09/18 12:18 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 22910
							output: 50
							thoughts: 31
						

Thoughts:
Okay, here's my summary, presented as a stream of thought:

**Diving into the Rockchip DSI Driver**

Alright, time to get my hands dirty. I need to understand this Rockchip DSI driver better, so I'm heading straight to the source code: `drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c`. That's where the core of the implementation should reside. This file will reveal the intimate details of how the DisplayPort (DP) interface on Rockchip SoCs interacts with the Display Serial Interface (DSI) panel. I expect to see the low-level register interactions, the clock configurations, the panel initialization sequences, and hopefully, some insight into the error handling and power management routines. This should be a good starting point to analyze the driver. I will be looking out for any areas in the code that are particularly interesting and potential areas for my attention.



12/2 2026/09/18 12:18 tool read-file
0m Args:
{
  "File": "drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c",
  "FirstLine": 1330,
  "LineCount": 80
}

Results:
{
  "Contents": "1330:\t\t.configure\t= dw_mipi_dsi_dphy_configure,\n1331:\t\t.power_on\t= dw_mipi_dsi_dphy_power_on,\n1332:\t\t.power_off\t= dw_mipi_dsi_dphy_power_off,\n1333:\t\t.init\t\t= dw_mipi_dsi_dphy_init,\n1334:\t\t.exit\t\t= dw_mipi_dsi_dphy_exit,\n1335:\t};\n1336:\t\n1337:\tstatic int __maybe_unused dw_mipi_dsi_rockchip_resume(struct device *dev)\n1338:\t{\n1339:\t\tstruct dw_mipi_dsi_rockchip *dsi = dev_get_drvdata(dev);\n1340:\t\tint ret;\n1341:\t\n1342:\t\t/*\n1343:\t\t * Re-configure DSI state, if we were previously initialized. We need\n1344:\t\t * to do this before rockchip_drm_drv tries to re-enable() any panels.\n1345:\t\t */\n1346:\t\tif (dsi-\u003edsi_bound) {\n1347:\t\t\tret = clk_prepare_enable(dsi-\u003egrf_clk);\n1348:\t\t\tif (ret) {\n1349:\t\t\t\tDRM_DEV_ERROR(dsi-\u003edev, \"Failed to enable grf_clk: %d\\n\", ret);\n1350:\t\t\t\treturn ret;\n1351:\t\t\t}\n1352:\t\n1353:\t\t\tdw_mipi_dsi_rockchip_config(dsi);\n1354:\t\t\tif (dsi-\u003eslave)\n1355:\t\t\t\tdw_mipi_dsi_rockchip_config(dsi-\u003eslave);\n1356:\t\n1357:\t\t\tclk_disable_unprepare(dsi-\u003egrf_clk);\n1358:\t\t}\n1359:\t\n1360:\t\treturn 0;\n1361:\t}\n1362:\t\n1363:\tstatic const struct dev_pm_ops dw_mipi_dsi_rockchip_pm_ops = {\n1364:\t\tSET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, dw_mipi_dsi_rockchip_resume)\n1365:\t};\n1366:\t\n1367:\tstatic int dw_mipi_dsi_rockchip_probe(struct platform_device *pdev)\n1368:\t{\n1369:\t\tstruct device *dev = \u0026pdev-\u003edev;\n1370:\t\tstruct device_node *np = dev-\u003eof_node;\n1371:\t\tstruct dw_mipi_dsi_rockchip *dsi;\n1372:\t\tstruct phy_provider *phy_provider;\n1373:\t\tstruct resource *res;\n1374:\t\tconst struct rockchip_dw_dsi_chip_data *cdata =\n1375:\t\t\t\t\tof_device_get_match_data(dev);\n1376:\t\tint ret, i;\n1377:\t\n1378:\t\tdsi = devm_kzalloc(dev, sizeof(*dsi), GFP_KERNEL);\n1379:\t\tif (!dsi)\n1380:\t\t\treturn -ENOMEM;\n1381:\t\n1382:\t\tdsi-\u003ebase = devm_platform_get_and_ioremap_resource(pdev, 0, \u0026res);\n1383:\t\tif (IS_ERR(dsi-\u003ebase)) {\n1384:\t\t\tDRM_DEV_ERROR(dev, \"Unable to get dsi registers\\n\");\n1385:\t\t\treturn PTR_ERR(dsi-\u003ebase);\n1386:\t\t}\n1387:\t\n1388:\t\ti = 0;\n1389:\t\twhile (cdata[i].reg) {\n1390:\t\t\tif (cdata[i].reg == res-\u003estart) {\n1391:\t\t\t\tdsi-\u003ecdata = \u0026cdata[i];\n1392:\t\t\t\tbreak;\n1393:\t\t\t}\n1394:\t\n1395:\t\t\ti++;\n1396:\t\t}\n1397:\t\n1398:\t\tif (!dsi-\u003ecdata) {\n1399:\t\t\tDRM_DEV_ERROR(dev, \"no dsi-config for %s node\\n\", np-\u003ename);\n1400:\t\t\treturn -EINVAL;\n1401:\t\t}\n1402:\t\n1403:\t\t/* try to get a possible external dphy */\n1404:\t\tdsi-\u003ephy = devm_phy_optional_get(dev, \"dphy\");\n1405:\t\tif (IS_ERR(dsi-\u003ephy)) {\n1406:\t\t\tret = PTR_ERR(dsi-\u003ephy);\n1407:\t\t\tDRM_DEV_ERROR(dev, \"failed to get mipi dphy: %d\\n\", ret);\n1408:\t\t\treturn ret;\n1409:\t\t}\n"
}

13/2 2026/09/18 12:18 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 24508
							output: 50
							thoughts: 33
						

Thoughts:
Okay, let's dive into this `dw_mipi_dsi_rockchip_probe` function and trace its registration. I need to understand how this piece fits into the larger picture, so I'll keep an eye out for the registration mechanisms as I work my way through the code. This probe function is key, so I want to understand exactly when and how it's called. This file is probably the best place to start.



14/2 2026/09/18 12:18 tool read-file
0m Args:
{
  "File": "drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c",
  "FirstLine": 1410,
  "LineCount": 80
}

Results:
{
  "Contents": "1410:\t\n1411:\t\tdsi-\u003epclk = devm_clk_get(dev, \"pclk\");\n1412:\t\tif (IS_ERR(dsi-\u003epclk)) {\n1413:\t\t\tret = PTR_ERR(dsi-\u003epclk);\n1414:\t\t\tDRM_DEV_ERROR(dev, \"Unable to get pclk: %d\\n\", ret);\n1415:\t\t\treturn ret;\n1416:\t\t}\n1417:\t\n1418:\t\tdsi-\u003epllref_clk = devm_clk_get(dev, \"ref\");\n1419:\t\tif (IS_ERR(dsi-\u003epllref_clk)) {\n1420:\t\t\tif (dsi-\u003ephy) {\n1421:\t\t\t\t/*\n1422:\t\t\t\t * if external phy is present, pll will be\n1423:\t\t\t\t * generated there.\n1424:\t\t\t\t */\n1425:\t\t\t\tdsi-\u003epllref_clk = NULL;\n1426:\t\t\t} else {\n1427:\t\t\t\tret = PTR_ERR(dsi-\u003epllref_clk);\n1428:\t\t\t\tDRM_DEV_ERROR(dev,\n1429:\t\t\t\t\t      \"Unable to get pll reference clock: %d\\n\",\n1430:\t\t\t\t\t      ret);\n1431:\t\t\t\treturn ret;\n1432:\t\t\t}\n1433:\t\t}\n1434:\t\n1435:\t\tif (dsi-\u003ecdata-\u003eflags \u0026 DW_MIPI_NEEDS_PHY_CFG_CLK) {\n1436:\t\t\tdsi-\u003ephy_cfg_clk = devm_clk_get(dev, \"phy_cfg\");\n1437:\t\t\tif (IS_ERR(dsi-\u003ephy_cfg_clk)) {\n1438:\t\t\t\tret = PTR_ERR(dsi-\u003ephy_cfg_clk);\n1439:\t\t\t\tDRM_DEV_ERROR(dev,\n1440:\t\t\t\t\t      \"Unable to get phy_cfg_clk: %d\\n\", ret);\n1441:\t\t\t\treturn ret;\n1442:\t\t\t}\n1443:\t\t}\n1444:\t\n1445:\t\tif (dsi-\u003ecdata-\u003eflags \u0026 DW_MIPI_NEEDS_GRF_CLK) {\n1446:\t\t\tdsi-\u003egrf_clk = devm_clk_get(dev, \"grf\");\n1447:\t\t\tif (IS_ERR(dsi-\u003egrf_clk)) {\n1448:\t\t\t\tret = PTR_ERR(dsi-\u003egrf_clk);\n1449:\t\t\t\tDRM_DEV_ERROR(dev, \"Unable to get grf_clk: %d\\n\", ret);\n1450:\t\t\t\treturn ret;\n1451:\t\t\t}\n1452:\t\t}\n1453:\t\n1454:\t\tdsi-\u003egrf_regmap = syscon_regmap_lookup_by_phandle(np, \"rockchip,grf\");\n1455:\t\tif (IS_ERR(dsi-\u003egrf_regmap)) {\n1456:\t\t\tDRM_DEV_ERROR(dev, \"Unable to get rockchip,grf\\n\");\n1457:\t\t\treturn PTR_ERR(dsi-\u003egrf_regmap);\n1458:\t\t}\n1459:\t\n1460:\t\tdsi-\u003edev = dev;\n1461:\t\tdsi-\u003epdata.base = dsi-\u003ebase;\n1462:\t\tdsi-\u003epdata.max_data_lanes = dsi-\u003ecdata-\u003emax_data_lanes;\n1463:\t\tdsi-\u003epdata.phy_ops = \u0026dw_mipi_dsi_rockchip_phy_ops;\n1464:\t\tdsi-\u003epdata.host_ops = \u0026dw_mipi_dsi_rockchip_host_ops;\n1465:\t\tdsi-\u003epdata.priv_data = dsi;\n1466:\t\tplatform_set_drvdata(pdev, dsi);\n1467:\t\n1468:\t\tmutex_init(\u0026dsi-\u003eusage_mutex);\n1469:\t\n1470:\t\tdsi-\u003edphy = devm_phy_create(dev, NULL, \u0026dw_mipi_dsi_dphy_ops);\n1471:\t\tif (IS_ERR(dsi-\u003edphy)) {\n1472:\t\t\tDRM_DEV_ERROR(\u0026pdev-\u003edev, \"failed to create PHY\\n\");\n1473:\t\t\treturn PTR_ERR(dsi-\u003edphy);\n1474:\t\t}\n1475:\t\n1476:\t\tphy_set_drvdata(dsi-\u003edphy, dsi);\n1477:\t\tphy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);\n1478:\t\tif (IS_ERR(phy_provider))\n1479:\t\t\treturn PTR_ERR(phy_provider);\n1480:\t\n1481:\t\tdsi-\u003edmd = dw_mipi_dsi_probe(pdev, \u0026dsi-\u003epdata);\n1482:\t\tif (IS_ERR(dsi-\u003edmd)) {\n1483:\t\t\tret = PTR_ERR(dsi-\u003edmd);\n1484:\t\t\tif (ret != -EPROBE_DEFER)\n1485:\t\t\t\tDRM_DEV_ERROR(dev,\n1486:\t\t\t\t\t      \"Failed to probe dw_mipi_dsi: %d\\n\", ret);\n1487:\t\t\treturn ret;\n1488:\t\t}\n1489:\t\n"
}

15/2 2026/09/18 12:18 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 26119
							output: 50
							thoughts: 26
						

Thoughts:
Okay, here's my interpretation of what's going on, thinking through the provided code snippet:

**Diving into the MIPI DSI Driver Probe Function and Registration**

Alright, let's get down to brass tacks and understand how this Rockchip MIPI DSI driver actually gets itself initialized and, critically, registered within the system. We need to dissect the `dw_mipi_dsi_rockchip_probe` function. I'm assuming, given the naming, that this is the primary probing function for the driver. It's the point where everything begins: detection, configuration, and driver binding. I'm going to want to confirm its role in system setup. It will likely include steps like identifying the hardware, allocating resources, initializing internal data structures, and perhaps even setting up interrupts and clocks.

Then, of course, comes the driver registration. This is equally crucial. It's the formal declaration of the driver's presence to the kernel. We'll be looking for something like `platform_driver_register` or a similar function call. This is the moment where the driver announces, "Hey, I'm here! I handle this specific hardware, and here's my probe function. When you find the hardware that matches my ID table, call me!"

The entire sequence, from probe to registration, is a ballet of interaction. The probe function is the dancer, the kernel is the conductor. We need to understand the choreography!



16/2 2026/09/18 12:18 tool read-file
0m Args:
{
  "File": "drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c",
  "FirstLine": 1490,
  "LineCount": 60
}

Results:
{
  "Contents": "1490:\t\treturn 0;\n1491:\t}\n1492:\t\n1493:\tstatic void dw_mipi_dsi_rockchip_remove(struct platform_device *pdev)\n1494:\t{\n1495:\t\tstruct dw_mipi_dsi_rockchip *dsi = platform_get_drvdata(pdev);\n1496:\t\n1497:\t\tdw_mipi_dsi_remove(dsi-\u003edmd);\n1498:\t}\n1499:\t\n1500:\tstatic const struct rockchip_dw_dsi_chip_data px30_chip_data[] = {\n1501:\t\t{\n1502:\t\t\t.reg = 0xff450000,\n1503:\t\t\t.lcdsel_grf_reg = PX30_GRF_PD_VO_CON1,\n1504:\t\t\t.lcdsel_big = FIELD_PREP_WM16_CONST(PX30_DSI_LCDC_SEL, 0),\n1505:\t\t\t.lcdsel_lit = FIELD_PREP_WM16_CONST(PX30_DSI_LCDC_SEL, 1),\n1506:\t\n1507:\t\t\t.lanecfg1_grf_reg = PX30_GRF_PD_VO_CON1,\n1508:\t\t\t.lanecfg1 = FIELD_PREP_WM16_CONST((PX30_DSI_TURNDISABLE |\n1509:\t\t\t\t\t\t\tPX30_DSI_FORCERXMODE |\n1510:\t\t\t\t\t\t\tPX30_DSI_FORCETXSTOPMODE), 0),\n1511:\t\n1512:\t\t\t.max_data_lanes = 4,\n1513:\t\t},\n1514:\t\t{ /* sentinel */ }\n1515:\t};\n1516:\t\n1517:\tstatic const struct rockchip_dw_dsi_chip_data rk3128_chip_data[] = {\n1518:\t\t{\n1519:\t\t\t.reg = 0x10110000,\n1520:\t\t\t.lanecfg1_grf_reg = RK3128_GRF_LVDS_CON0,\n1521:\t\t\t.lanecfg1 = FIELD_PREP_WM16_CONST((RK3128_DSI_TURNDISABLE |\n1522:\t\t\t\t\t\t\tRK3128_DSI_FORCERXMODE |\n1523:\t\t\t\t\t\t\tRK3128_DSI_FORCETXSTOPMODE), 0),\n1524:\t\t\t.max_data_lanes = 4,\n1525:\t\t},\n1526:\t\t{ /* sentinel */ }\n1527:\t};\n1528:\t\n1529:\tstatic const struct rockchip_dw_dsi_chip_data rk3288_chip_data[] = {\n1530:\t\t{\n1531:\t\t\t.reg = 0xff960000,\n1532:\t\t\t.lcdsel_grf_reg = RK3288_GRF_SOC_CON6,\n1533:\t\t\t.lcdsel_big = FIELD_PREP_WM16_CONST(RK3288_DSI0_LCDC_SEL, 0),\n1534:\t\t\t.lcdsel_lit = FIELD_PREP_WM16_CONST(RK3288_DSI0_LCDC_SEL, 1),\n1535:\t\n1536:\t\t\t.max_data_lanes = 4,\n1537:\t\t},\n1538:\t\t{\n1539:\t\t\t.reg = 0xff964000,\n1540:\t\t\t.lcdsel_grf_reg = RK3288_GRF_SOC_CON6,\n1541:\t\t\t.lcdsel_big = FIELD_PREP_WM16_CONST(RK3288_DSI1_LCDC_SEL, 0),\n1542:\t\t\t.lcdsel_lit = FIELD_PREP_WM16_CONST(RK3288_DSI1_LCDC_SEL, 1),\n1543:\t\n1544:\t\t\t.max_data_lanes = 4,\n1545:\t\t},\n1546:\t\t{ /* sentinel */ }\n1547:\t};\n1548:\t\n1549:\tstatic const struct rockchip_dw_dsi_chip_data rk3368_chip_data[] = {\n"
}

17/2 2026/09/18 12:18 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 27679
							output: 50
							thoughts: 13
						

Thoughts:
Okay, here's my attempt at summarizing the thought process, tailored for an expert audience, and written in the first person:

**Navigating the Digital Landscape: Prioritizing Endpoint Review**

Alright, I'm taking a moment to survey this file, my mental map expanding to encompass its entirety. My initial scan has revealed a high-level overview, but my instincts are telling me to dig deeper. I need to get a firm grasp on the core of the matter, and that often resides in the nitty-gritty details. So, I'm bypassing a generalized, broad stroke review, and my focus is turning towards the latter part of the file. My experience tells me that complex or novel situations often are described in the details at the very end of the document. I need to quickly determine whether the overall implications of the document are present. I want to see how these implications are brought to fruition, and how I should adjust my focus.



18/2 2026/09/18 12:19 tool read-file
0m Args:
{
  "File": "drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c",
  "FirstLine": 1620,
  "LineCount": 60
}

Results:
{
  "Contents": "1620:\t{\n1621:\t\tstruct dw_mipi_dsi_rockchip *dsi = phy_get_drvdata(phy);\n1622:\t\n1623:\t\tregmap_write(dsi-\u003egrf_regmap, RK3399_GRF_SOC_CON23,\n1624:\t\t\t     FIELD_PREP_WM16(RK3399_DSI1_ENABLE, 0));\n1625:\t\n1626:\t\treturn 0;\n1627:\t}\n1628:\t\n1629:\tstatic const struct rockchip_dw_dsi_chip_data rk3399_chip_data[] = {\n1630:\t\t{\n1631:\t\t\t.reg = 0xff960000,\n1632:\t\t\t.lcdsel_grf_reg = RK3399_GRF_SOC_CON20,\n1633:\t\t\t.lcdsel_big = FIELD_PREP_WM16_CONST(RK3399_DSI0_LCDC_SEL, 0),\n1634:\t\t\t.lcdsel_lit = FIELD_PREP_WM16_CONST(RK3399_DSI0_LCDC_SEL, 1),\n1635:\t\n1636:\t\t\t.lanecfg1_grf_reg = RK3399_GRF_SOC_CON22,\n1637:\t\t\t.lanecfg1 = FIELD_PREP_WM16_CONST((RK3399_DSI0_TURNREQUEST |\n1638:\t\t\t\t\t\t\tRK3399_DSI0_TURNDISABLE |\n1639:\t\t\t\t\t\t\tRK3399_DSI0_FORCETXSTOPMODE |\n1640:\t\t\t\t\t\t\tRK3399_DSI0_FORCERXMODE), 0),\n1641:\t\n1642:\t\t\t.flags = DW_MIPI_NEEDS_PHY_CFG_CLK | DW_MIPI_NEEDS_GRF_CLK,\n1643:\t\t\t.max_data_lanes = 4,\n1644:\t\t},\n1645:\t\t{\n1646:\t\t\t.reg = 0xff968000,\n1647:\t\t\t.lcdsel_grf_reg = RK3399_GRF_SOC_CON20,\n1648:\t\t\t.lcdsel_big = FIELD_PREP_WM16_CONST(RK3399_DSI1_LCDC_SEL, 0),\n1649:\t\t\t.lcdsel_lit = FIELD_PREP_WM16_CONST(RK3399_DSI1_LCDC_SEL, 1),\n1650:\t\n1651:\t\n1652:\t\t\t.lanecfg1_grf_reg = RK3399_GRF_SOC_CON23,\n1653:\t\t\t.lanecfg1 = FIELD_PREP_WM16_CONST((RK3399_DSI1_TURNDISABLE |\n1654:\t\t\t\t\t\t\tRK3399_DSI1_FORCETXSTOPMODE |\n1655:\t\t\t\t\t\t\tRK3399_DSI1_FORCERXMODE |\n1656:\t\t\t\t\t\t\tRK3399_DSI1_ENABLE), 0),\n1657:\t\n1658:\t\t\t.lanecfg2_grf_reg = RK3399_GRF_SOC_CON24,\n1659:\t\t\t.lanecfg2 = (FIELD_PREP_WM16_CONST(RK3399_TXRX_MASTERSLAVEZ, 1) |\n1660:\t\t\t\t     FIELD_PREP_WM16_CONST(RK3399_TXRX_ENABLECLK, 1) |\n1661:\t\t\t\t     FIELD_PREP_WM16_CONST(RK3399_TXRX_BASEDIR, 0)),\n1662:\t\n1663:\t\t\t.enable_grf_reg = RK3399_GRF_SOC_CON23,\n1664:\t\t\t.enable = FIELD_PREP_WM16_CONST(RK3399_DSI1_ENABLE, RK3399_DSI1_ENABLE),\n1665:\t\n1666:\t\t\t.flags = DW_MIPI_NEEDS_PHY_CFG_CLK | DW_MIPI_NEEDS_GRF_CLK,\n1667:\t\t\t.max_data_lanes = 4,\n1668:\t\n1669:\t\t\t.dphy_rx_init = rk3399_dphy_tx1rx1_init,\n1670:\t\t\t.dphy_rx_power_on = rk3399_dphy_tx1rx1_power_on,\n1671:\t\t\t.dphy_rx_power_off = rk3399_dphy_tx1rx1_power_off,\n1672:\t\t},\n1673:\t\t{ /* sentinel */ }\n1674:\t};\n1675:\t\n1676:\tstatic const struct rockchip_dw_dsi_chip_data rk3506_chip_data[] = {\n1677:\t\t{\n1678:\t\t\t.reg = 0xff640000,\n1679:\t\t\t.lanecfg1_grf_reg = RK3506_SYS_GRF_SOC_CON6,\n"
}

19/2 2026/09/18 12:19 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 29330
							output: 50
							thoughts: 12
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm deep in my domain of expertise:

**Diving Back In: Analyzing the Remainder**

Alright, time to refocus. The initial pass is complete, and now it's about systematically working through what's left. I'm not going to rush this, because I know that the 'leftovers' might contain the critical pieces needed for a full analysis or solution. I'm setting a structured approach: each line gets my complete attention. I'm going to carefully read, interpret in context, and compare it to the prior analysis. This is where the subtle nuances and edge cases often reveal themselves, so I can't afford to be sloppy. Let's see what gems are hidden in these remaining lines. This is where the real work begins.



20/2 2026/09/18 12:19 tool read-file
0m Args:
{
  "File": "drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c",
  "FirstLine": 1700,
  "LineCount": 60
}

Results:
{
  "Contents": "1700:\t\t\t.lanecfg1_grf_reg = RK3568_GRF_VO_CON3,\n1701:\t\t\t.lanecfg1 = (FIELD_PREP_WM16_CONST(RK3568_DSI1_SKEWCALHS, 0) |\n1702:\t\t\t\t     FIELD_PREP_WM16_CONST(RK3568_DSI1_FORCETXSTOPMODE, 0) |\n1703:\t\t\t\t     FIELD_PREP_WM16_CONST(RK3568_DSI1_TURNDISABLE, 0) |\n1704:\t\t\t\t     FIELD_PREP_WM16_CONST(RK3568_DSI1_FORCERXMODE, 0)),\n1705:\t\t\t.max_data_lanes = 4,\n1706:\t\t},\n1707:\t\t{ /* sentinel */ }\n1708:\t};\n1709:\t\n1710:\tstatic const struct rockchip_dw_dsi_chip_data rv1126_chip_data[] = {\n1711:\t\t{\n1712:\t\t\t.reg = 0xffb30000,\n1713:\t\t\t.lanecfg1_grf_reg = RV1126_GRF_DSIPHY_CON,\n1714:\t\t\t.lanecfg1 = (FIELD_PREP_WM16_CONST(RV1126_DSI_TURNDISABLE, 0) |\n1715:\t\t\t\t     FIELD_PREP_WM16_CONST(RV1126_DSI_FORCERXMODE, 0) |\n1716:\t\t\t\t     FIELD_PREP_WM16_CONST(RV1126_DSI_FORCETXSTOPMODE, 0)),\n1717:\t\t\t.max_data_lanes = 4,\n1718:\t\t},\n1719:\t\t{ /* sentinel */ }\n1720:\t};\n1721:\t\n1722:\tstatic const struct of_device_id dw_mipi_dsi_rockchip_dt_ids[] = {\n1723:\t\t{\n1724:\t\t .compatible = \"rockchip,px30-mipi-dsi\",\n1725:\t\t .data = \u0026px30_chip_data,\n1726:\t\t}, {\n1727:\t\t .compatible = \"rockchip,rk3128-mipi-dsi\",\n1728:\t\t .data = \u0026rk3128_chip_data,\n1729:\t\t}, {\n1730:\t\t .compatible = \"rockchip,rk3288-mipi-dsi\",\n1731:\t\t .data = \u0026rk3288_chip_data,\n1732:\t\t}, {\n1733:\t\t .compatible = \"rockchip,rk3368-mipi-dsi\",\n1734:\t\t .data = \u0026rk3368_chip_data,\n1735:\t\t}, {\n1736:\t\t .compatible = \"rockchip,rk3399-mipi-dsi\",\n1737:\t\t .data = \u0026rk3399_chip_data,\n1738:\t\t}, {\n1739:\t\t .compatible = \"rockchip,rk3506-mipi-dsi\",\n1740:\t\t .data = \u0026rk3506_chip_data,\n1741:\t\t}, {\n1742:\t\t .compatible = \"rockchip,rk3568-mipi-dsi\",\n1743:\t\t .data = \u0026rk3568_chip_data,\n1744:\t\t}, {\n1745:\t\t .compatible = \"rockchip,rv1126-mipi-dsi\",\n1746:\t\t .data = \u0026rv1126_chip_data,\n1747:\t\t},\n1748:\t\t{ /* sentinel */ }\n1749:\t};\n1750:\tMODULE_DEVICE_TABLE(of, dw_mipi_dsi_rockchip_dt_ids);\n1751:\t\n1752:\tstruct platform_driver dw_mipi_dsi_rockchip_driver = {\n1753:\t\t.probe\t\t= dw_mipi_dsi_rockchip_probe,\n1754:\t\t.remove\t\t= dw_mipi_dsi_rockchip_remove,\n1755:\t\t.driver\t\t= {\n1756:\t\t\t.of_match_table = dw_mipi_dsi_rockchip_dt_ids,\n1757:\t\t\t.pm\t= \u0026dw_mipi_dsi_rockchip_pm_ops,\n1758:\t\t\t.name\t= \"dw-mipi-dsi-rockchip\",\n1759:\t\t\t/*\n"
}

21/2 2026/09/18 12:19 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 30798
							output: 19
							thoughts: 973
						

Thoughts:
**Analyzing the Reachability of `dw_mipi_dsi_rockchip_driver` for Fuzzing**

Okay, let's break this down. `dw_mipi_dsi_rockchip_driver` is an OF-only platform driver. My immediate concern, given the context, is whether this driver can even *probe* on the target architecture, amd64, which is crucial for fuzzing.

I see that it depends on `DRM_ROCKCHIP`. Looking at the config: `DRM_ROCKCHIP` depends on `ARCH_ROCKCHIP` (ARM/ARM64) or `COMPILE_TEST`. Since the target is amd64, `ARCH_ROCKCHIP` is false. So, I would need `COMPILE_TEST` and `OF`. Even *if* I managed to get `DRM_ROCKCHIP` compiled on amd64, this driver is designed for Rockchip SoCs. It expects specific hardware: device tree nodes (like "rockchip,px30-mipi-dsi"), SoC register maps ("rockchip,grf"), clocks ("pclk", "ref", "phy_cfg", "grf"), etc.

Standard QEMU on amd64 simply doesn't emulate this Rockchip hardware or load Rockchip device tree blobs. Forget about syzkaller; it runs in standard virtualized environments. The problem is fundamental: no Rockchip-specific hardware, no probe.

The prompt emphasizes reachability, and I recall the crucial points: "Fuzzing can only discover bugs in code that can actually execute in standard virtualized environments." and "Structurally unreachable hardware: Vendor-specific PCIe switches, SmartNICs, or GPU drivers... requiring physical ASIC/PCIe cards not emulated in standard QEMU".

This clearly fits: Rockchip SoCs and their associated hardware are structurally unreachable on standard amd64 QEMU. This driver expects specific resources that simply *don't exist* in that environment, even with potential OF overlay configurations. The probe function is going to fail immediately. I'm thinking about the required calls, `devm_clk_get`, `syscon_regmap_lookup_by_phandle`, and PHYs - all of which fail due to lack of their corresponding hardware.

And I see `dw_mipi_dsi_rockchip_host_detach` is a callback in `struct dw_mipi_dsi_host_ops`. Where *is* that even called from? I need to search the codebase to see how that function is even utilized.

Given all this, I'm leaning heavily towards concluding that this driver is not worth fuzzing, based on the principle of reachability. It’s an immediate 'no' according to the negative criteria. The modified code is structurally unreachable.



22/2 2026/09/18 12:19 tool grepper
0m Args:
{
  "Expression": "host_ops-\u003edetach"
}

Results:
{
  "Output": "drivers/gpu/drm/bridge/samsung-dsim.c=2000=static int samsung_dsim_host_detach(struct mipi_dsi_host *host,\n--\ndrivers/gpu/drm/bridge/samsung-dsim.c-2005-\ndrivers/gpu/drm/bridge/samsung-dsim.c:2006:\tif (pdata-\u003ehost_ops \u0026\u0026 pdata-\u003ehost_ops-\u003edetach)\ndrivers/gpu/drm/bridge/samsung-dsim.c:2007:\t\tpdata-\u003ehost_ops-\u003edetach(dsi, device);\ndrivers/gpu/drm/bridge/samsung-dsim.c-2008-\n--\ndrivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c=358=static int dw_mipi_dsi_host_detach(struct mipi_dsi_host *host,\n--\ndrivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c-364-\ndrivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:365:\tif (pdata-\u003ehost_ops \u0026\u0026 pdata-\u003ehost_ops-\u003edetach) {\ndrivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:366:\t\tret = pdata-\u003ehost_ops-\u003edetach(pdata-\u003epriv_data, device);\ndrivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c-367-\t\tif (ret \u003c 0)\n--\ndrivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c=553=static int dw_mipi_dsi2_host_detach(struct mipi_dsi_host *host,\n--\ndrivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c-559-\ndrivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:560:\tif (pdata-\u003ehost_ops \u0026\u0026 pdata-\u003ehost_ops-\u003edetach) {\ndrivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:561:\t\tret = pdata-\u003ehost_ops-\u003edetach(pdata-\u003epriv_data, device);\ndrivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c-562-\t\tif (ret \u003c 0)\n"
}

23/2 2026/09/18 12:19 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 33004
							output: 126
							thoughts: 836
						

Thoughts:
**Analysis of Code Reachability and Fuzzing Suitability**

Okay, so here's the breakdown of this patch. It's touching the `dw_mipi_dsi_rockchip.c` file, specifically the `dw_mipi_dsi_rockchip_host_detach` function. This function, and the driver it belongs to, `dw_mipi_dsi_rockchip`, is triggered when a MIPI DSI device detaches from its host. To even get *to* this point, a few things need to happen: the `dw_mipi_dsi_rockchip` driver needs to probe successfully, and a DSI device needs to be attached and then detached.

The catch? This whole setup is inherently tied to Rockchip SoC hardware and requires a corresponding device tree. We're on amd64, which means we're not running on Rockchip hardware; it's an ARM/ARM64 platform. Standard QEMU, which is what we're using, doesn't emulate Rockchip SoCs. I mean, we're talking about code paths that are specifically *for* architectures other than the target. So, any code paths that this change is modifying are unreachable.

Let's drill down a bit: the change itself is fixing a reference count leak on the `second` device pointer within `dw_mipi_dsi_rockchip_host_detach`, by adding `put_device(second)`. However, since the function itself is unreachable on our target architecture and environment, the fix's relevance is moot for our current focus.

To reiterate, the `dw_mipi_dsi_rockchip` driver is a vendor-specific SoC GPU/display driver for Rockchip ARM SoCs. In other words, a highly specialized driver for a hardware platform we're not using.

So, in conclusion, this code modification is structurally unreachable within the constraints of standard virtualized environments and specifically on the amd64 architecture. It's a non-starter for fuzzing, which means this patch doesn't warrant further investigation. The "WorthFuzzing" flag will be false, and the reasoning will be: concise explanation of why it is not worth fuzzing (SoC-specific DRM driver for ARM Rockchip platforms, structurally unreachable on amd64 in standard QEMU environments).



24/2 2026/09/18 12:19 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch modifies dw_mipi_dsi_rockchip_host_detach() in drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c, adding a missing put_device() call. This driver is specific to ARM/ARM64 Rockchip SoCs and requires specific SoC hardware/device trees not emulated in standard QEMU environments, making it structurally unreachable on the target architecture (amd64).",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies dw_mipi_dsi_rockchip_host_detach() in drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c, adding a missing put_device() call. This driver is specific to ARM/ARM64 Rockchip SoCs and requires specific SoC hardware/device trees not emulated in standard QEMU environments, making it structurally unreachable on the target architecture (amd64).",
  "WorthFuzzing": false
}

25/1 2026/09/18 12:19 action If
0m Args:
{
  "WorthFuzzing": false
}

Results:
null

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)