| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/09/17 02:20 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The modified code belongs to the Renesas SuperH Mobile LCDC framebuffer driver (drivers/video/fbdev/sh_mobile_lcdcfb.c), which depends on SUPERH (or COMPILE_TEST) and is tied to specific Renesas SuperH SoC platform devices registered only in arch/sh/boards. It cannot be probed without arch-specific platform_data and the underlying hardware is not emulated in standard QEMU or reachable on the amd64 target architecture.",
"WorthFuzzing": false
} |
| 1/1 | 2026/09/17 02:20 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 06aa80ee8f19d5d49a64c454b83f38aeced75426\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Sep 17 02:20:11 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/video/fbdev/sh_mobile_lcdcfb.c b/drivers/video/fbdev/sh_mobile_lcdcfb.c\nindex e8324b01700f6..5743c96d54814 100644\n--- a/drivers/video/fbdev/sh_mobile_lcdcfb.c\n+++ b/drivers/video/fbdev/sh_mobile_lcdcfb.c\n@@ -1337,22 +1337,24 @@ overlay_rop3_store(struct device *dev, struct device_attribute *attr,\n \treturn count;\n }\n \n-static DEVICE_ATTR_RW(overlay_alpha);\n-static DEVICE_ATTR_RW(overlay_mode);\n-static DEVICE_ATTR_RW(overlay_position);\n-static DEVICE_ATTR_RW(overlay_rop3);\n-\n-static struct attribute *overlay_sysfs_attrs[] __maybe_unused = {\n-\t\u0026dev_attr_overlay_alpha.attr,\n-\t\u0026dev_attr_overlay_mode.attr,\n-\t\u0026dev_attr_overlay_position.attr,\n-\t\u0026dev_attr_overlay_rop3.attr,\n+static struct device_attribute dev_attr_ovl_alpha =\n+\t__ATTR(ovl_alpha, 0644, overlay_alpha_show, overlay_alpha_store);\n+static struct device_attribute dev_attr_ovl_mode =\n+\t__ATTR(ovl_mode, 0644, overlay_mode_show, overlay_mode_store);\n+static struct device_attribute dev_attr_ovl_position =\n+\t__ATTR(ovl_position, 0644, overlay_position_show, overlay_position_store);\n+static struct device_attribute dev_attr_ovl_rop3 =\n+\t__ATTR(ovl_rop3, 0644, overlay_rop3_show, overlay_rop3_store);\n+\n+static struct attribute *overlay_sysfs_attrs[] = {\n+\t\u0026dev_attr_ovl_alpha.attr,\n+\t\u0026dev_attr_ovl_mode.attr,\n+\t\u0026dev_attr_ovl_position.attr,\n+\t\u0026dev_attr_ovl_rop3.attr,\n \tNULL,\n };\n \n-#ifdef CONFIG_FB_DEVICE\n ATTRIBUTE_GROUPS(overlay_sysfs);\n-#endif\n \n static const struct fb_fix_screeninfo sh_mobile_lcdc_overlay_fix = {\n \t.id =\t\t\"SH Mobile LCDC\",\n@@ -1510,9 +1512,10 @@ sh_mobile_lcdc_overlay_fb_unregister(struct sh_mobile_lcdc_overlay *ovl)\n {\n \tstruct fb_info *info = ovl-\u003einfo;\n \n-\tif (info == NULL || info-\u003edev == NULL)\n+\tif (!info || !dev_of_fbinfo(info))\n \t\treturn;\n \n+\tdevice_remove_groups(dev_of_fbinfo(info), overlay_sysfs_groups);\n \tunregister_framebuffer(ovl-\u003einfo);\n }\n \n@@ -1530,6 +1533,15 @@ sh_mobile_lcdc_overlay_fb_register(struct sh_mobile_lcdc_overlay *ovl)\n \tif (ret \u003c 0)\n \t\treturn ret;\n \n+\t/* The framebuffer device is optional, see fb_device_create(). */\n+\tif (dev_of_fbinfo(info)) {\n+\t\tret = device_add_groups(dev_of_fbinfo(info), overlay_sysfs_groups);\n+\t\tif (ret \u003c 0) {\n+\t\t\tunregister_framebuffer(info);\n+\t\t\treturn ret;\n+\t\t}\n+\t}\n+\n \tdev_info(lcdc-\u003edev, \"registered %s/overlay %u as %dx%d %dbpp.\\n\",\n \t\t dev_name(lcdc-\u003edev), ovl-\u003eindex, info-\u003evar.xres,\n \t\t info-\u003evar.yres, info-\u003evar.bits_per_pixel);\n@@ -2637,7 +2649,6 @@ static int sh_mobile_lcdc_probe(struct platform_device *pdev)\n static struct platform_driver sh_mobile_lcdc_driver = {\n \t.driver\t\t= {\n \t\t.name\t\t= \"sh_mobile_lcdc_fb\",\n-\t\t.dev_groups\t= overlay_sysfs_groups,\n \t\t.pm\t\t= \u0026sh_mobile_lcdc_dev_pm_ops,\n \t},\n \t.probe\t\t= sh_mobile_lcdc_probe,\n"
} |
| 2/1 | 2026/09/17 02:20 | agent | patch-evaluator |
0mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The modified code belongs to the Renesas SuperH Mobile LCDC framebuffer driver (drivers/video/fbdev/sh_mobile_lcdcfb.c), which depends on SUPERH (or COMPILE_TEST) and is tied to specific Renesas SuperH SoC platform devices registered only in arch/sh/boards. It cannot be probed without arch-specific platform_data and the underlying hardware is not emulated in standard QEMU or reachable on the amd64 target architecture.",
"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 06aa80ee8f19d5d49a64c454b83f38aeced75426
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Sep 17 02:20:11 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/video/fbdev/sh_mobile_lcdcfb.c b/drivers/video/fbdev/sh_mobile_lcdcfb.c
index e8324b01700f6..5743c96d54814 100644
--- a/drivers/video/fbdev/sh_mobile_lcdcfb.c
+++ b/drivers/video/fbdev/sh_mobile_lcdcfb.c
@@ -1337,22 +1337,24 @@ overlay_rop3_store(struct device *dev, struct device_attribute *attr,
return count;
}
-static DEVICE_ATTR_RW(overlay_alpha);
-static DEVICE_ATTR_RW(overlay_mode);
-static DEVICE_ATTR_RW(overlay_position);
-static DEVICE_ATTR_RW(overlay_rop3);
-
-static struct attribute *overlay_sysfs_attrs[] __maybe_unused = {
- &dev_attr_overlay_alpha.attr,
- &dev_attr_overlay_mode.attr,
- &dev_attr_overlay_position.attr,
- &dev_attr_overlay_rop3.attr,
+static struct device_attribute dev_attr_ovl_alpha =
+ __ATTR(ovl_alpha, 0644, overlay_alpha_show, overlay_alpha_store);
+static struct device_attribute dev_attr_ovl_mode =
+ __ATTR(ovl_mode, 0644, overlay_mode_show, overlay_mode_store);
+static struct device_attribute dev_attr_ovl_position =
+ __ATTR(ovl_position, 0644, overlay_position_show, overlay_position_store);
+static struct device_attribute dev_attr_ovl_rop3 =
+ __ATTR(ovl_rop3, 0644, overlay_rop3_show, overlay_rop3_store);
+
+static struct attribute *overlay_sysfs_attrs[] = {
+ &dev_attr_ovl_alpha.attr,
+ &dev_attr_ovl_mode.attr,
+ &dev_attr_ovl_position.attr,
+ &dev_attr_ovl_rop3.attr,
NULL,
};
-#ifdef CONFIG_FB_DEVICE
ATTRIBUTE_GROUPS(overlay_sysfs);
-#endif
static const struct fb_fix_screeninfo sh_mobile_lcdc_overlay_fix = {
.id = "SH Mobile LCDC",
@@ -1510,9 +1512,10 @@ sh_mobile_lcdc_overlay_fb_unregister(struct sh_mobile_lcdc_overlay *ovl)
{
struct fb_info *info = ovl->info;
- if (info == NULL || info->dev == NULL)
+ if (!info || !dev_of_fbinfo(info))
return;
+ device_remove_groups(dev_of_fbinfo(info), overlay_sysfs_groups);
unregister_framebuffer(ovl->info);
}
@@ -1530,6 +1533,15 @@ sh_mobile_lcdc_overlay_fb_register(struct sh_mobile_lcdc_overlay *ovl)
if (ret < 0)
return ret;
+ /* The framebuffer device is optional, see fb_device_create(). */
+ if (dev_of_fbinfo(info)) {
+ ret = device_add_groups(dev_of_fbinfo(info), overlay_sysfs_groups);
+ if (ret < 0) {
+ unregister_framebuffer(info);
+ return ret;
+ }
+ }
+
dev_info(lcdc->dev, "registered %s/overlay %u as %dx%d %dbpp.\n",
dev_name(lcdc->dev), ovl->index, info->var.xres,
info->var.yres, info->var.bits_per_pixel);
@@ -2637,7 +2649,6 @@ static int sh_mobile_lcdc_probe(struct platform_device *pdev)
static struct platform_driver sh_mobile_lcdc_driver = {
.driver = {
.name = "sh_mobile_lcdc_fb",
- .dev_groups = overlay_sysfs_groups,
.pm = &sh_mobile_lcdc_dev_pm_ops,
},
.probe = sh_mobile_lcdc_probe,
|
| 3/2 | 2026/09/17 02:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 3800 output: 32 thoughts: 88 Thoughts: Here's my analysis of the request, thinking through the process as a seasoned expert: **Evaluating a Proposed Patch: Initial Assessment** Okay, so we need to dive into this patch for `drivers/video/fbdev/sh_mobile_lcdcfb.c`. The first thing I'm going to do is get a handle on what this driver *actually* does. It's in the framebuffer video driver space, so likely responsible for displaying graphics, but for what specific hardware? My initial thought is to figure out the target architecture and platform. Is this something that's relevant to a common architecture like ARM, x86, or MIPS? Or is it something more specialized? The `sh_mobile` prefix hints that this might be related to a specific Sharp mobile platform, or something similar, and my experience tells me that these types of drivers can be quite particular. I also need to check its reach. Can this even be compiled on an amd64 machine, or will I have to cross-compile to a specific platform to even test it? Next step: I need to check the Kconfig file associated with this driver. That's the key to understanding the build-time configuration, and, potentially, dependencies. The Kconfig will tell me the relevant options, dependencies on other drivers or features, and any platform-specific configurations. Understanding the Kconfig is critical to even determining if the patch is buildable and, if so, under what conditions. This is going to give me the information I need to proceed confidently. |
| 4/2 | 2026/09/17 02:20 | tool | grepper |
0mArgs:{
"Expression": "sh_mobile_lcdc",
"PathPrefix": "drivers/video/fbdev"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 865 lines.\nUse more precise expression if possible.\n\ndrivers/video/fbdev/Makefile=106=obj-$(CONFIG_FB_XILINX) += xilinxfb.o\ndrivers/video/fbdev/Makefile:107:obj-$(CONFIG_FB_SH_MOBILE_LCDC)\t += sh_mobile_lcdcfb.o\ndrivers/video/fbdev/Makefile-108-obj-y\t\t\t\t += omap/\n--\ndrivers/video/fbdev/sh7760fb.c-13- *\ndrivers/video/fbdev/sh7760fb.c:14: * sh7760_setcolreg get from drivers/video/sh_mobile_lcdcfb.c\ndrivers/video/fbdev/sh7760fb.c-15- */\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-29-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:30:#include \u003cvideo/sh_mobile_lcdc.h\u003e\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-31-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:32:#include \"sh_mobile_lcdcfb.h\"\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-33-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-139-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:140:enum sh_mobile_lcdc_overlay_mode {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-141-\tLCDC_OVERLAY_BLEND,\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-145-/*\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:146: * struct sh_mobile_lcdc_overlay - LCDC display overlay\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-147- *\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-171- */\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:172:struct sh_mobile_lcdc_overlay {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:173:\tstruct sh_mobile_lcdc_chan *channel;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-174-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:175:\tconst struct sh_mobile_lcdc_overlay_cfg *cfg;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-176-\tstruct fb_info *info;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-181-\tbool enabled;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:182:\tenum sh_mobile_lcdc_overlay_mode mode;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-183-\tunsigned int alpha;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-193-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:194:\tconst struct sh_mobile_lcdc_format_info *format;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-195-\tunsigned int xres;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-203-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:204:struct sh_mobile_lcdc_priv {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-205-\tvoid __iomem *base;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-211-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:212:\tstruct sh_mobile_lcdc_chan ch[2];\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:213:\tstruct sh_mobile_lcdc_overlay overlays[4];\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-214-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=261=static bool banked(int reg_nr)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-280-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:281:static int lcdc_chan_is_sublcd(struct sh_mobile_lcdc_chan *chan)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-282-{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-285-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:286:static void lcdc_write_chan(struct sh_mobile_lcdc_chan *chan,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-287-\t\t\t int reg_nr, unsigned long data)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-294-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:295:static void lcdc_write_chan_mirror(struct sh_mobile_lcdc_chan *chan,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-296-\t\t\t int reg_nr, unsigned long data)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-301-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:302:static unsigned long lcdc_read_chan(struct sh_mobile_lcdc_chan *chan,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-303-\t\t\t\t int reg_nr)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-307-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:308:static void lcdc_write_overlay(struct sh_mobile_lcdc_overlay *ovl,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-309-\t\t\t int reg, unsigned long data)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-314-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:315:static void lcdc_write(struct sh_mobile_lcdc_priv *priv,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-316-\t\t unsigned long reg_offs, unsigned long data)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-320-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:321:static unsigned long lcdc_read(struct sh_mobile_lcdc_priv *priv,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-322-\t\t\t unsigned long reg_offs)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-326-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:327:static void lcdc_wait_bit(struct sh_mobile_lcdc_priv *priv,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-328-\t\t\t unsigned long reg_offs,\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-338-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:339:static void sh_mobile_lcdc_clk_on(struct sh_mobile_lcdc_priv *priv)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-340-{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-346-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:347:static void sh_mobile_lcdc_clk_off(struct sh_mobile_lcdc_priv *priv)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-348-{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-354-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:355:static int sh_mobile_lcdc_setup_clocks(struct sh_mobile_lcdc_priv *priv,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-356-\t\t\t\t int clock_source)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=395=static void lcdc_sys_write_index(void *handle, unsigned long data)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-396-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:397:\tstruct sh_mobile_lcdc_chan *ch = handle;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-398-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=406=static void lcdc_sys_write_data(void *handle, unsigned long data)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-407-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:408:\tstruct sh_mobile_lcdc_chan *ch = handle;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-409-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=417=static unsigned long lcdc_sys_read_data(void *handle)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-418-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:419:\tstruct sh_mobile_lcdc_chan *ch = handle;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-420-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-430-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:431:static struct sh_mobile_lcdc_sys_bus_ops sh_mobile_lcdc_sys_bus_ops = {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-432-\t.write_index\t= lcdc_sys_write_index,\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-436-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:437:static int sh_mobile_lcdc_sginit(struct fb_info *info, struct list_head *pagereflist)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-438-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:439:\tstruct sh_mobile_lcdc_chan *ch = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-440-\tunsigned int nr_pages_max = ch-\u003efb_size \u003e\u003e PAGE_SHIFT;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-452-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:453:static void sh_mobile_lcdc_deferred_io(struct fb_info *info, struct list_head *pagereflist)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-454-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:455:\tstruct sh_mobile_lcdc_chan *ch = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:456:\tconst struct sh_mobile_lcdc_panel_cfg *panel = \u0026ch-\u003ecfg-\u003epanel_cfg;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-457-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-458-\t/* enable clocks before accessing hardware */\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:459:\tsh_mobile_lcdc_clk_on(ch-\u003elcdc);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-460-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-462-\t * It's possible to get here without anything on the pagereflist via\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:463:\t * sh_mobile_lcdc_deferred_io_touch() or via a userspace fsync()\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-464-\t * invocation. In the former case, the acceleration routines are\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-476-\tif (!list_empty(pagereflist)) {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:477:\t\tunsigned int nr_pages = sh_mobile_lcdc_sginit(info, pagereflist);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-478-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-481-\t\tif (panel-\u003estart_transfer)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:482:\t\t\tpanel-\u003estart_transfer(ch, \u0026sh_mobile_lcdc_sys_bus_ops);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-483-\t\tlcdc_write_chan(ch, LDSM2R, LDSM2R_OSTRG);\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-487-\t\tif (panel-\u003estart_transfer)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:488:\t\t\tpanel-\u003estart_transfer(ch, \u0026sh_mobile_lcdc_sys_bus_ops);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-489-\t\tlcdc_write_chan(ch, LDSM2R, LDSM2R_OSTRG);\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-492-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:493:static void sh_mobile_lcdc_deferred_io_touch(struct fb_info *info)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-494-{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-500-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:501:static void sh_mobile_lcdc_display_on(struct sh_mobile_lcdc_chan *ch)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-502-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:503:\tconst struct sh_mobile_lcdc_panel_cfg *panel = \u0026ch-\u003ecfg-\u003epanel_cfg;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-504-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-520-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:521:static void sh_mobile_lcdc_display_off(struct sh_mobile_lcdc_chan *ch)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-522-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:523:\tconst struct sh_mobile_lcdc_panel_cfg *panel = \u0026ch-\u003ecfg-\u003epanel_cfg;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-524-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-535-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:536:struct sh_mobile_lcdc_format_info {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-537-\tu32 fourcc;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-542-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:543:static const struct sh_mobile_lcdc_format_info sh_mobile_format_infos[] = {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-544-\t{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-591-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:592:static const struct sh_mobile_lcdc_format_info *\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-593-sh_mobile_format_info(u32 fourcc)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=622=static int sh_mobile_format_is_fourcc(const struct fb_var_screeninfo *var)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-630-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:631:static irqreturn_t sh_mobile_lcdc_irq(int irq, void *data)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-632-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:633:\tstruct sh_mobile_lcdc_priv *priv = data;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:634:\tstruct sh_mobile_lcdc_chan *ch;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-635-\tunsigned long ldintr;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-658-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:659:\t\t\t\tsh_mobile_lcdc_clk_off(priv);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-660-\t\t\t}\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-670-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:671:static int sh_mobile_lcdc_wait_for_vsync(struct sh_mobile_lcdc_chan *ch)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-672-{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-690-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:691:static void sh_mobile_lcdc_start_stop(struct sh_mobile_lcdc_priv *priv,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-692-\t\t\t\t int start)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-719-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:720:static void sh_mobile_lcdc_geometry(struct sh_mobile_lcdc_chan *ch)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-721-{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-771-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:772:static void sh_mobile_lcdc_overlay_setup(struct sh_mobile_lcdc_overlay *ovl)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-773-{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-862-/*\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:863: * __sh_mobile_lcdc_start - Configure and start the LCDC\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-864- * @priv: LCDC device\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-868- */\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:869:static void __sh_mobile_lcdc_start(struct sh_mobile_lcdc_priv *priv)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-870-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:871:\tstruct sh_mobile_lcdc_chan *ch;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-872-\tunsigned long tmp;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-880-\t/* Stop the LCDC first and disable all interrupts. */\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:881:\tsh_mobile_lcdc_start_stop(priv, 0);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-882-\tlcdc_write(priv, _LDINTR, 0);\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-918-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:919:\t\tsh_mobile_lcdc_geometry(ch);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-920-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-975-\tlcdc_write(priv, _LDCNT1R, LDCNT1R_DE);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:976:\tsh_mobile_lcdc_start_stop(priv, 1);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-977-\tpriv-\u003estarted = 1;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-979-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:980:static int sh_mobile_lcdc_start(struct sh_mobile_lcdc_priv *priv)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-981-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:982:\tstruct sh_mobile_lcdc_chan *ch;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-983-\tunsigned long tmp;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-989-\t\tif (priv-\u003ech[k].enabled)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:990:\t\t\tsh_mobile_lcdc_clk_on(priv);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-991-\t}\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-997-\tfor (k = 0; k \u003c ARRAY_SIZE(priv-\u003ech); k++) {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:998:\t\tconst struct sh_mobile_lcdc_panel_cfg *panel;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-999-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1005-\t\tif (panel-\u003esetup_sys) {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1006:\t\t\tret = panel-\u003esetup_sys(ch, \u0026sh_mobile_lcdc_sys_bus_ops);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1007-\t\t\tif (ret)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1024-\tfor (k = 0; k \u003c ARRAY_SIZE(priv-\u003eoverlays); ++k) {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1025:\t\tstruct sh_mobile_lcdc_overlay *ovl = \u0026priv-\u003eoverlays[k];\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1026:\t\tsh_mobile_lcdc_overlay_setup(ovl);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1027-\t}\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1029-\t/* Start the LCDC. */\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1030:\t__sh_mobile_lcdc_start(priv);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1031-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1041-\t\tif (ch-\u003eldmt1r_value \u0026 LDMT1R_IFM \u0026\u0026 tmp) {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1042:\t\t\tch-\u003edefio.deferred_io = sh_mobile_lcdc_deferred_io;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1043-\t\t\tch-\u003edefio.delay = msecs_to_jiffies(tmp);\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1047-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1048:\t\tsh_mobile_lcdc_display_on(ch);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1049-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1058-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1059:static void sh_mobile_lcdc_stop(struct sh_mobile_lcdc_priv *priv)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1060-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1061:\tstruct sh_mobile_lcdc_chan *ch;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1062-\tint k;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1079-\t\t\tch-\u003einfo-\u003efbdefio = NULL;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1080:\t\t\tsh_mobile_lcdc_clk_on(priv);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1081-\t\t}\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1087-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1088:\t\tsh_mobile_lcdc_display_off(ch);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1089-\t}\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1092-\tif (priv-\u003estarted) {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1093:\t\tsh_mobile_lcdc_start_stop(priv, 0);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1094-\t\tpriv-\u003estarted = 0;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1099-\t\tif (priv-\u003ech[k].enabled)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1100:\t\t\tsh_mobile_lcdc_clk_off(priv);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1101-}\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1102-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1103:static int __sh_mobile_lcdc_check_var(struct fb_var_screeninfo *var,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1104-\t\t\t\t struct fb_info *info)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1117-\tif (sh_mobile_format_is_fourcc(var)) {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1118:\t\tconst struct sh_mobile_lcdc_format_info *format;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1119-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1185=overlay_alpha_show(struct device *dev, struct device_attribute *attr, char *buf)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1187-\tstruct fb_info *info = dev_get_drvdata(dev);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1188:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1189-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1194=overlay_alpha_store(struct device *dev, struct device_attribute *attr,\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1197-\tstruct fb_info *info = dev_get_drvdata(dev);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1198:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1199-\tunsigned int alpha;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1215-\t\tif (ovl-\u003emode == LCDC_OVERLAY_BLEND \u0026\u0026 ovl-\u003eenabled)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1216:\t\t\tsh_mobile_lcdc_overlay_setup(ovl);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1217-\t}\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1223=overlay_mode_show(struct device *dev, struct device_attribute *attr, char *buf)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1225-\tstruct fb_info *info = dev_get_drvdata(dev);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1226:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1227-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1232=overlay_mode_store(struct device *dev, struct device_attribute *attr,\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1235-\tstruct fb_info *info = dev_get_drvdata(dev);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1236:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1237-\tunsigned int mode;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1253-\t\tif (ovl-\u003eenabled)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1254:\t\t\tsh_mobile_lcdc_overlay_setup(ovl);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1255-\t}\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1261=overlay_position_show(struct device *dev, struct device_attribute *attr,\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1264-\tstruct fb_info *info = dev_get_drvdata(dev);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1265:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1266-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1271=overlay_position_store(struct device *dev, struct device_attribute *attr,\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1274-\tstruct fb_info *info = dev_get_drvdata(dev);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1275:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1276-\tchar *endp;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1295-\t\tif (ovl-\u003eenabled)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1296:\t\t\tsh_mobile_lcdc_overlay_setup(ovl);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1297-\t}\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1303=overlay_rop3_show(struct device *dev, struct device_attribute *attr, char *buf)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1305-\tstruct fb_info *info = dev_get_drvdata(dev);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1306:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1307-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1312=overlay_rop3_store(struct device *dev, struct device_attribute *attr,\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1315-\tstruct fb_info *info = dev_get_drvdata(dev);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1316:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1317-\tunsigned int rop3;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1333-\t\tif (ovl-\u003emode == LCDC_OVERLAY_ROP3 \u0026\u0026 ovl-\u003eenabled)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1334:\t\t\tsh_mobile_lcdc_overlay_setup(ovl);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1335-\t}\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1357=ATTRIBUTE_GROUPS(overlay_sysfs);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1358-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1359:static const struct fb_fix_screeninfo sh_mobile_lcdc_overlay_fix = {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1360-\t.id =\t\t\"SH Mobile LCDC\",\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1369-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1370:static int sh_mobile_lcdc_overlay_pan(struct fb_var_screeninfo *var,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1371-\t\t\t\t struct fb_info *info)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1372-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1373:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1374-\tunsigned long base_addr_y;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1417-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1418:static int sh_mobile_lcdc_overlay_ioctl(struct fb_info *info, unsigned int cmd,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1419-\t\t\t\t unsigned long arg)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1420-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1421:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1422-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1424-\tcase FBIO_WAITFORVSYNC:\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1425:\t\treturn sh_mobile_lcdc_wait_for_vsync(ovl-\u003echannel);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1426-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1431-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1432:static int sh_mobile_lcdc_overlay_check_var(struct fb_var_screeninfo *var,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1433-\t\t\t\t\t struct fb_info *info)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1434-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1435:\treturn __sh_mobile_lcdc_check_var(var, info);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1436-}\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1437-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1438:static int sh_mobile_lcdc_overlay_set_par(struct fb_info *info)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1439-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1440:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1441-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1454-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1455:\tsh_mobile_lcdc_overlay_setup(ovl);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1456-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1470-/* Overlay blanking. Disable the overlay when blanked. */\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1471:static int sh_mobile_lcdc_overlay_blank(int blank, struct fb_info *info)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1472-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1473:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1474-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1475-\tovl-\u003eenabled = !blank;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1476:\tsh_mobile_lcdc_overlay_setup(ovl);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1477-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1484=static int\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1485:sh_mobile_lcdc_overlay_mmap(struct fb_info *info, struct vm_area_struct *vma)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1486-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1487:\tstruct sh_mobile_lcdc_overlay *ovl = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1488-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1497-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1498:static const struct fb_ops sh_mobile_lcdc_overlay_ops = {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1499-\t.owner = THIS_MODULE,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1500-\t__FB_DEFAULT_DMAMEM_OPS_RDWR,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1501:\t.fb_blank\t= sh_mobile_lcdc_overlay_blank,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1502:\t.fb_pan_display = sh_mobile_lcdc_overlay_pan,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1503-\t__FB_DEFAULT_DMAMEM_OPS_DRAW,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1504:\t.fb_ioctl = sh_mobile_lcdc_overlay_ioctl,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1505:\t.fb_check_var\t= sh_mobile_lcdc_overlay_check_var,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1506:\t.fb_set_par\t= sh_mobile_lcdc_overlay_set_par,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1507:\t.fb_mmap\t= sh_mobile_lcdc_overlay_mmap,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1508-};\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1510=static void\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1511:sh_mobile_lcdc_overlay_fb_unregister(struct sh_mobile_lcdc_overlay *ovl)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1512-{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1522=static int\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1523:sh_mobile_lcdc_overlay_fb_register(struct sh_mobile_lcdc_overlay *ovl)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1524-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1525:\tstruct sh_mobile_lcdc_priv *lcdc = ovl-\u003echannel-\u003elcdc;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1526-\tstruct fb_info *info = ovl-\u003einfo;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1552=static void\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1553:sh_mobile_lcdc_overlay_fb_cleanup(struct sh_mobile_lcdc_overlay *ovl)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1554-{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=1563=static int\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1564:sh_mobile_lcdc_overlay_fb_init(struct sh_mobile_lcdc_overlay *ovl)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1565-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1566:\tstruct sh_mobile_lcdc_priv *priv = ovl-\u003echannel-\u003elcdc;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1567-\tstruct fb_var_screeninfo *var;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1576-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1577:\tinfo-\u003efbops = \u0026sh_mobile_lcdc_overlay_ops;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1578-\tinfo-\u003edevice = priv-\u003edev;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1585-\t */\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1586:\tinfo-\u003efix = sh_mobile_lcdc_overlay_fix;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1587-\tsnprintf(info-\u003efix.id, sizeof(info-\u003efix.id),\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1624-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1625:\treturn sh_mobile_lcdc_overlay_check_var(var, info);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1626-}\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1631-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1632:static int sh_mobile_lcdc_setcolreg(u_int regno,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1633-\t\t\t\t u_int red, u_int green, u_int blue,\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1655-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1656:static const struct fb_fix_screeninfo sh_mobile_lcdc_fix = {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1657-\t.id =\t\t\"SH Mobile LCDC\",\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1666-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1667:static void sh_mobile_lcdc_fillrect(struct fb_info *info,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1668-\t\t\t\t const struct fb_fillrect *rect)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1670-\tsys_fillrect(info, rect);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1671:\tsh_mobile_lcdc_deferred_io_touch(info);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1672-}\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1673-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1674:static void sh_mobile_lcdc_copyarea(struct fb_info *info,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1675-\t\t\t\t const struct fb_copyarea *area)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1677-\tsys_copyarea(info, area);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1678:\tsh_mobile_lcdc_deferred_io_touch(info);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1679-}\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1680-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1681:static void sh_mobile_lcdc_imageblit(struct fb_info *info,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1682-\t\t\t\t const struct fb_image *image)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1684-\tsys_imageblit(info, image);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1685:\tsh_mobile_lcdc_deferred_io_touch(info);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1686-}\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1687-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1688:static int sh_mobile_lcdc_pan(struct fb_var_screeninfo *var,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1689-\t\t\t struct fb_info *info)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1690-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1691:\tstruct sh_mobile_lcdc_chan *ch = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1692:\tstruct sh_mobile_lcdc_priv *priv = ch-\u003elcdc;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1693-\tunsigned long ldrcntr;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1736-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1737:\tsh_mobile_lcdc_deferred_io_touch(info);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1738-\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1741-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1742:static int sh_mobile_lcdc_ioctl(struct fb_info *info, unsigned int cmd,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1743-\t\t\t\tunsigned long arg)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1744-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1745:\tstruct sh_mobile_lcdc_chan *ch = info-\u003epar;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1746-\tint retval;\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1749-\tcase FBIO_WAITFORVSYNC:\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:1750:\t\tretval = sh_mobile_lcdc_wait_for_vsync(ch);\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-1751-\t\tbreak;\n\n"
} |
| 5/2 | 2026/09/17 02:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 17345 output: 35 thoughts: 18 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience and written in the first person: **Kconfig Inquiry: FB_SH_MOBILE_LCDC** Okay, so I need to dive into the Kconfig for `FB_SH_MOBILE_LCDC`. Right, that's the framebuffer driver for the SH-Mobile LCD controller, obviously. Need to refresh my memory on the specific dependencies and configuration options associated with that particular entry. I'm thinking I'll want to check the default settings, any relevant `depends on` clauses, and maybe look for any `select` statements that might pull in other related drivers or features. Also, I’ll be scanning for any tristate definitions – are there compile-time, module, and built-in options? That's going to inform what's actually *available* to the user in a configuration context. I really should quickly verify the conditional compilation logic: is there anything tied to a specific board or SoM family? Knowing those details is going to be useful for the big picture. That'll inform if I can leverage it for the task at hand. Let's see what's what. |
| 6/2 | 2026/09/17 02:20 | tool | grepper |
0mArgs:{
"Expression": "config FB_SH_MOBILE_LCDC",
"PathPrefix": "drivers/video/fbdev"
}Results: {
"Output": "drivers/video/fbdev/Kconfig=1511=config FB_FSL_DIU\n--\ndrivers/video/fbdev/Kconfig-1519-\ndrivers/video/fbdev/Kconfig:1520:config FB_SH_MOBILE_LCDC\ndrivers/video/fbdev/Kconfig-1521-\ttristate \"SuperH Mobile LCDC framebuffer support\"\n"
} |
| 7/2 | 2026/09/17 02:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 17753 output: 38 thoughts: 26 Thoughts: Here's my summary, as the expert: **Delving into the Video Framebuffer Configuration** Okay, time to get my hands dirty. I need to understand how this framebuffer driver is configured, so I'm heading directly to the heart of the matter. I'm going to jump into the `drivers/video/fbdev/Kconfig` file and zero in on roughly line 1520. That's usually where the meat of the configuration options for a specific framebuffer driver or a relevant feature starts. I'm expecting to find the standard `config` statements, `bool`, `tristate`, `depends on`, and maybe even some help text to clarify the purpose and implications of the options defined there. This should give me a good handle on what features are enabled and disabled, and how they relate to the underlying hardware or the specific use-case I'm interested in. Let's see what gems are hidden in there! |
| 8/2 | 2026/09/17 02:20 | tool | read-file |
0mArgs:{
"File": "drivers/video/fbdev/Kconfig",
"FirstLine": 1515,
"LineCount": 35
}Results: {
"Contents": "1515:\t\tselect FB_MODE_HELPERS\n1516:\t\tselect PPC_LIB_RHEAP\n1517:\t\thelp\n1518:\t\t Framebuffer driver for the Freescale SoC DIU\n1519:\t\n1520:\tconfig FB_SH_MOBILE_LCDC\n1521:\t\ttristate \"SuperH Mobile LCDC framebuffer support\"\n1522:\t\tdepends on FB \u0026\u0026 HAVE_CLK \u0026\u0026 HAS_IOMEM\n1523:\t\tdepends on SUPERH || COMPILE_TEST\n1524:\t\tdepends on FB_DEVICE\n1525:\t\tdepends on BACKLIGHT_CLASS_DEVICE\n1526:\t\tselect FB_BACKLIGHT\n1527:\t\tselect FB_DEFERRED_IO\n1528:\t\tselect FB_DMAMEM_HELPERS\n1529:\t\thelp\n1530:\t\t Frame buffer driver for the on-chip SH-Mobile LCD controller.\n1531:\t\n1532:\tconfig FB_S3C\n1533:\t\ttristate \"Samsung S3C framebuffer support\"\n1534:\t\tdepends on FB \u0026\u0026 HAVE_CLK \u0026\u0026 HAS_IOMEM\n1535:\t\tdepends on ARCH_S3C64XX || COMPILE_TEST\n1536:\t\tselect FB_IOMEM_HELPERS\n1537:\t\thelp\n1538:\t\t Frame buffer driver for the built-in FB controller in the Samsung\n1539:\t\t SoC line such as the S3C6400 and S3C6410.\n1540:\t\n1541:\t\t These chips all have the same basic framebuffer design with the\n1542:\t\t actual capabilities depending on the chip. The S3C6400\n1543:\t\t and S3C6410 support 4 hardware windows.\n1544:\t\n1545:\t\t Currently the support is only for the S3C6400 and S3C6410 SoCs.\n1546:\t\n1547:\tconfig FB_S3C_DEBUG_REGWRITE\n1548:\t\tbool \"Debug register writes\"\n1549:\t\tdepends on FB_S3C\n"
} |
| 9/2 | 2026/09/17 02:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 18577 output: 44 thoughts: 119 Thoughts: **Analyzing the FB_SH_MOBILE_LCDC Driver Dependency** Okay, let's break this down. First, I see `FB_SH_MOBILE_LCDC` relies on `FB`, `HAVE_CLK`, and `HAS_IOMEM`. Makes sense; we need a framebuffer, a clock, and memory I/O capabilities, standard stuff for a display controller. The `depends on SUPERH || COMPILE_TEST` bit is interesting. So, it's either for a SuperH architecture or used for a compile test. Hmm, this screams SuperH mobile SoC (SH-Mobile LCD controller) to me. I need to confirm this. To be sure, I need to know how this thing is actually instantiated and probed into the system. Let's dig into that `sh_mobile_lcdc_probe` function. I need to see if it's acting as a platform device, bound directly to hardware on the SoC. That will tell the tale. |
| 10/2 | 2026/09/17 02:20 | tool | grepper |
0mArgs:{
"Expression": "sh_mobile_lcdc_probe",
"PathPrefix": "drivers/video/fbdev/sh_mobile_lcdcfb.c"
}Results: {
"Output": "drivers/video/fbdev/sh_mobile_lcdcfb.c=2403=sh_mobile_lcdc_channel_init(struct sh_mobile_lcdc_chan *ch)\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-2502-\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:2503:static int sh_mobile_lcdc_probe(struct platform_device *pdev)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-2504-{\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=2649=static struct platform_driver sh_mobile_lcdc_driver = {\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-2653-\t},\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:2654:\t.probe\t\t= sh_mobile_lcdc_probe,\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-2655-\t.remove\t\t= sh_mobile_lcdc_remove,\n"
} |
| 11/2 | 2026/09/17 02:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 19237 output: 45 thoughts: 33 Thoughts: Here's my take on the `sh_mobile_lcdc_probe` function in `drivers/video/fbdev/sh_mobile_lcdcfb.c`, as if I were the one thinking it: **Diving into the LCDC Probe Function** Okay, time to get into the heart of how this SH Mobile LCD controller framebuffer driver works. Let's start with `sh_mobile_lcdc_probe`. The name says it all, really – this is where the system tries to identify and initialize the hardware. I need to understand this process in detail to diagnose these display issues. I'm expecting to see the typical probe sequence: resource allocation, hardware initialization, and driver registration. I'll be looking for how it handles device tree information, if it's there. How does it determine the specific LCD panel connected? Is it relying on a fixed configuration, or does it dynamically detect the panel type? Are there any obvious areas for power management considerations at this stage? Are there any potential issues that could be introduced during boot-up and why? What about the framebuffer's physical and virtual memory mapping? The function will have to set it up, and if done poorly, this area can become problematic if memory is scarce. And, is the clock setup handled correctly? Improper clocking is a frequent culprit for display glitches and black screens. I'll need to pay close attention to the clock rate calculation and configuration steps. I'm also interested to see how interrupts are configured and enabled. That's a critical path to examine. Essentially, I'm expecting this function to be the gateway to getting the display working, and the quality of the function determines how this will work. This probe function is going to set the stage for everything else. Let's see how well it's done. |
| 12/2 | 2026/09/17 02:20 | tool | read-file |
0mArgs:{
"File": "drivers/video/fbdev/sh_mobile_lcdcfb.c",
"FirstLine": 2500,
"LineCount": 80
}Results: {
"Contents": "2500:\t\treturn sh_mobile_lcdc_channel_fb_init(ch, mode, num_modes);\n2501:\t}\n2502:\t\n2503:\tstatic int sh_mobile_lcdc_probe(struct platform_device *pdev)\n2504:\t{\n2505:\t\tstruct sh_mobile_lcdc_info *pdata = pdev-\u003edev.platform_data;\n2506:\t\tstruct sh_mobile_lcdc_priv *priv;\n2507:\t\tstruct resource *res;\n2508:\t\tint num_channels;\n2509:\t\tint error;\n2510:\t\tint irq, i;\n2511:\t\n2512:\t\tif (!pdata) {\n2513:\t\t\tdev_err(\u0026pdev-\u003edev, \"no platform data defined\\n\");\n2514:\t\t\treturn -EINVAL;\n2515:\t\t}\n2516:\t\n2517:\t\tres = platform_get_resource(pdev, IORESOURCE_MEM, 0);\n2518:\t\tirq = platform_get_irq(pdev, 0);\n2519:\t\tif (!res || irq \u003c 0) {\n2520:\t\t\tdev_err(\u0026pdev-\u003edev, \"cannot get platform resources\\n\");\n2521:\t\t\treturn -ENOENT;\n2522:\t\t}\n2523:\t\n2524:\t\tpriv = kzalloc_obj(*priv);\n2525:\t\tif (!priv)\n2526:\t\t\treturn -ENOMEM;\n2527:\t\n2528:\t\tpriv-\u003edev = \u0026pdev-\u003edev;\n2529:\t\n2530:\t\tfor (i = 0; i \u003c ARRAY_SIZE(priv-\u003ech); i++)\n2531:\t\t\tmutex_init(\u0026priv-\u003ech[i].open_lock);\n2532:\t\tplatform_set_drvdata(pdev, priv);\n2533:\t\n2534:\t\terror = request_irq(irq, sh_mobile_lcdc_irq, 0,\n2535:\t\t\t\t dev_name(\u0026pdev-\u003edev), priv);\n2536:\t\tif (error) {\n2537:\t\t\tdev_err(\u0026pdev-\u003edev, \"unable to request irq\\n\");\n2538:\t\t\tgoto err1;\n2539:\t\t}\n2540:\t\n2541:\t\tpriv-\u003eirq = irq;\n2542:\t\tatomic_set(\u0026priv-\u003ehw_usecnt, -1);\n2543:\t\n2544:\t\tfor (i = 0, num_channels = 0; i \u003c ARRAY_SIZE(pdata-\u003ech); i++) {\n2545:\t\t\tstruct sh_mobile_lcdc_chan *ch = priv-\u003ech + num_channels;\n2546:\t\n2547:\t\t\tch-\u003elcdc = priv;\n2548:\t\t\tch-\u003ecfg = \u0026pdata-\u003ech[i];\n2549:\t\n2550:\t\t\terror = sh_mobile_lcdc_check_interface(ch);\n2551:\t\t\tif (error) {\n2552:\t\t\t\tdev_err(\u0026pdev-\u003edev, \"unsupported interface type\\n\");\n2553:\t\t\t\tgoto err1;\n2554:\t\t\t}\n2555:\t\t\tinit_waitqueue_head(\u0026ch-\u003eframe_end_wait);\n2556:\t\t\tinit_completion(\u0026ch-\u003evsync_completion);\n2557:\t\n2558:\t\t\t/* probe the backlight is there is one defined */\n2559:\t\t\tif (ch-\u003ecfg-\u003ebl_info.max_brightness)\n2560:\t\t\t\tch-\u003ebl = sh_mobile_lcdc_bl_probe(\u0026pdev-\u003edev, ch);\n2561:\t\n2562:\t\t\tswitch (pdata-\u003ech[i].chan) {\n2563:\t\t\tcase LCDC_CHAN_MAINLCD:\n2564:\t\t\t\tch-\u003eenabled = LDCNT2R_ME;\n2565:\t\t\t\tch-\u003ereg_offs = lcdc_offs_mainlcd;\n2566:\t\t\t\tnum_channels++;\n2567:\t\t\t\tbreak;\n2568:\t\t\tcase LCDC_CHAN_SUBLCD:\n2569:\t\t\t\tch-\u003eenabled = LDCNT2R_SE;\n2570:\t\t\t\tch-\u003ereg_offs = lcdc_offs_sublcd;\n2571:\t\t\t\tnum_channels++;\n2572:\t\t\t\tbreak;\n2573:\t\t\t}\n2574:\t\t}\n2575:\t\n2576:\t\tif (!num_channels) {\n2577:\t\t\tdev_err(\u0026pdev-\u003edev, \"no channels defined\\n\");\n2578:\t\t\terror = -EINVAL;\n2579:\t\t\tgoto err1;\n"
} |
| 13/2 | 2026/09/17 02:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 20931 output: 22 thoughts: 285 Thoughts: **Analyzing Platform Device Creation** Okay, here we go. Let's dig into line 2512. It's pulling platform data from `pdev`, specifically within the `sh_mobile_lcdc_info` struct. Right off the bat, if `pdata` is null, it bails out – that's expected. Then we're grabbing memory resources and the interrupt. The key question immediately arises: can this `sh_mobile_lcdc_fb` platform device even be instantiated from userspace or, say, within a QEMU environment running on amd64? This dependence on `pdev->dev.platform_data` throws a flag. In the typical Linux model, dynamically created platform devices – those spun up through configfs, sysfs, or similar mechanisms – frequently *lack* platform data. So, the next logical step is to determine how this specific device, `sh_mobile_lcdc_fb`, is actually *created* in the kernel. Is it a statically defined device, or is it registered dynamically somewhere? I need to search the kernel source and identify where *sh_mobile_lcdc_fb* or *sh_mobile_lcdc* is registered. This will give me the crucial context I need to figure out where this `platform_data` is actually populated (if at all), and if my initial hypothesis about userspace instantiation holds water. |
| 14/2 | 2026/09/17 02:20 | tool | grepper |
0mArgs:{
"Expression": "sh_mobile_lcdc_fb"
}Results: {
"Output": "Documentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb:1:What:\t\t/sys/devices/platform/sh_mobile_lcdc_fb.[0-3]/graphics/fb[0-9]/ovl_alpha\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb-2-Date:\t\tMay 2012\n--\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb=4=Description:\n--\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb-11-\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb:12:What:\t\t/sys/devices/platform/sh_mobile_lcdc_fb.[0-3]/graphics/fb[0-9]/ovl_mode\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb-13-Date:\t\tMay 2012\n--\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb=15=Description:\n--\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb-24-\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb:25:What:\t\t/sys/devices/platform/sh_mobile_lcdc_fb.[0-3]/graphics/fb[0-9]/ovl_position\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb-26-Date:\t\tMay 2012\n--\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb=28=Description:\n--\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb-34-\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb:35:What:\t\t/sys/devices/platform/sh_mobile_lcdc_fb.[0-3]/graphics/fb[0-9]/ovl_rop3\nDocumentation/ABI/testing/sysfs-devices-platform-sh_mobile_lcdc_fb-36-Date:\t\tMay 2012\n--\narch/sh/boards/mach-ap325rxa/setup.c=254=static struct platform_device lcdc_device = {\narch/sh/boards/mach-ap325rxa/setup.c:255:\t.name\t\t= \"sh_mobile_lcdc_fb\",\narch/sh/boards/mach-ap325rxa/setup.c-256-\t.num_resources\t= ARRAY_SIZE(lcdc_resources),\n--\narch/sh/boards/mach-ecovec24/setup.c=366=static struct platform_device lcdc_device = {\narch/sh/boards/mach-ecovec24/setup.c:367:\t.name\t\t= \"sh_mobile_lcdc_fb\",\narch/sh/boards/mach-ecovec24/setup.c-368-\t.num_resources\t= ARRAY_SIZE(lcdc_resources),\n--\narch/sh/boards/mach-kfr2r09/setup.c=195=static struct platform_device kfr2r09_sh_lcdc_device = {\narch/sh/boards/mach-kfr2r09/setup.c:196:\t.name\t\t= \"sh_mobile_lcdc_fb\",\narch/sh/boards/mach-kfr2r09/setup.c-197-\t.num_resources\t= ARRAY_SIZE(kfr2r09_sh_lcdc_resources),\n--\narch/sh/boards/mach-migor/setup.c=296=static struct platform_device migor_lcdc_device = {\narch/sh/boards/mach-migor/setup.c:297:\t.name\t\t= \"sh_mobile_lcdc_fb\",\narch/sh/boards/mach-migor/setup.c-298-\t.num_resources\t= ARRAY_SIZE(migor_lcdc_resources),\n--\narch/sh/boards/mach-se/7724/setup.c=216=static struct platform_device lcdc_device = {\narch/sh/boards/mach-se/7724/setup.c:217:\t.name\t\t= \"sh_mobile_lcdc_fb\",\narch/sh/boards/mach-se/7724/setup.c-218-\t.num_resources\t= ARRAY_SIZE(lcdc_resources),\n--\narch/sh/kernel/cpu/sh4a/clock-sh7722.c=169=static struct clk_lookup lookups[] = {\n--\narch/sh/kernel/cpu/sh4a/clock-sh7722.c-216-\tCLKDEV_CON_ID(\"vpu0\", \u0026mstp_clks[HWBLK_VPU]),\narch/sh/kernel/cpu/sh4a/clock-sh7722.c:217:\tCLKDEV_DEV_ID(\"sh_mobile_lcdc_fb.0\", \u0026mstp_clks[HWBLK_LCDC]),\narch/sh/kernel/cpu/sh4a/clock-sh7722.c-218-};\n--\narch/sh/kernel/cpu/sh4a/clock-sh7723.c=194=static struct clk_lookup lookups[] = {\n--\narch/sh/kernel/cpu/sh4a/clock-sh7723.c-264-\narch/sh/kernel/cpu/sh4a/clock-sh7723.c:265:\tCLKDEV_DEV_ID(\"sh_mobile_lcdc_fb.0\", \u0026mstp_clks[HWBLK_LCDC]),\narch/sh/kernel/cpu/sh4a/clock-sh7723.c-266-};\n--\narch/sh/kernel/cpu/sh4a/clock-sh7724.c=259=static struct clk_lookup lookups[] = {\n--\narch/sh/kernel/cpu/sh4a/clock-sh7724.c-338-\tCLKDEV_CON_ID(\"vpu0\", \u0026mstp_clks[HWBLK_VPU]),\narch/sh/kernel/cpu/sh4a/clock-sh7724.c:339:\tCLKDEV_DEV_ID(\"sh_mobile_lcdc_fb.0\", \u0026mstp_clks[HWBLK_LCDC]),\narch/sh/kernel/cpu/sh4a/clock-sh7724.c-340-};\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=2649=static struct platform_driver sh_mobile_lcdc_driver = {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-2650-\t.driver\t\t= {\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:2651:\t\t.name\t\t= \"sh_mobile_lcdc_fb\",\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-2652-\t\t.pm\t\t= \u0026sh_mobile_lcdc_dev_pm_ops,\n"
} |
| 15/2 | 2026/09/17 02:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 23357 output: 22 thoughts: 160 Thoughts: **My Initial Assessment of the LCDC Driver's Usage** Okay, let's see what we've got. I'm looking at how `sh_mobile_lcdc_fb` is being used, and it looks like the only places this platform device is registering are in a bunch of `setup.c` files: `arch/sh/boards/mach-ap325rxa/setup.c`, `arch/sh/boards/mach-ecovec24/setup.c`, `arch/sh/boards/mach-kfr2r09/setup.c`, `arch/sh/boards/mach-migor/setup.c`, and `arch/sh/boards/mach-se/7724/setup.c`. Hmm, interesting. They're *all* within `arch/sh`. That's a good starting point, narrows things down quite a bit. But I should confirm this. Let me quickly check `video/sh_mobile_lcdc.h` to ensure there aren't any other references. Just want to be absolutely sure. |
| 16/2 | 2026/09/17 02:20 | tool | grepper |
0mArgs:{
"Expression": "sh_mobile_lcdc_info"
}Results: {
"Output": "arch/sh/boards/mach-ap325rxa/setup.c=203=static const struct fb_videomode ap325rxa_lcdc_modes[] = {\n--\narch/sh/boards/mach-ap325rxa/setup.c-217-\narch/sh/boards/mach-ap325rxa/setup.c:218:static struct sh_mobile_lcdc_info lcdc_info = {\narch/sh/boards/mach-ap325rxa/setup.c-219-\t.clock_source = LCDC_CLK_EXTERNAL,\n--\narch/sh/boards/mach-ecovec24/setup.c=326=static const struct fb_videomode ecovec_dvi_modes[] = {\n--\narch/sh/boards/mach-ecovec24/setup.c-340-\narch/sh/boards/mach-ecovec24/setup.c:341:static struct sh_mobile_lcdc_info lcdc_info = {\narch/sh/boards/mach-ecovec24/setup.c-342-\t.ch[0] = {\n--\narch/sh/boards/mach-kfr2r09/setup.c=142=static const struct fb_videomode kfr2r09_lcdc_modes[] = {\n--\narch/sh/boards/mach-kfr2r09/setup.c-156-\narch/sh/boards/mach-kfr2r09/setup.c:157:static struct sh_mobile_lcdc_info kfr2r09_sh_lcdc_info = {\narch/sh/boards/mach-kfr2r09/setup.c-158-\t.clock_source = LCDC_CLK_BUS,\n--\narch/sh/boards/mach-migor/setup.c=219=static const struct fb_videomode migor_lcd_modes[] = {\n--\narch/sh/boards/mach-migor/setup.c-243-\narch/sh/boards/mach-migor/setup.c:244:static struct sh_mobile_lcdc_info sh_mobile_lcdc_info = {\narch/sh/boards/mach-migor/setup.c-245-#if defined(CONFIG_SH_MIGOR_RTA_WVGA)\n--\narch/sh/boards/mach-migor/setup.c=296=static struct platform_device migor_lcdc_device = {\n--\narch/sh/boards/mach-migor/setup.c-300-\t.dev\t= {\narch/sh/boards/mach-migor/setup.c:301:\t\t.platform_data\t= \u0026sh_mobile_lcdc_info,\narch/sh/boards/mach-migor/setup.c-302-\t},\n--\narch/sh/boards/mach-se/7724/setup.c=175=static const struct fb_videomode lcdc_vga_modes[] = {\n--\narch/sh/boards/mach-se/7724/setup.c-189-\narch/sh/boards/mach-se/7724/setup.c:190:static struct sh_mobile_lcdc_info lcdc_info = {\narch/sh/boards/mach-se/7724/setup.c-191-\t.clock_source = LCDC_CLK_EXTERNAL,\n--\ndrivers/video/fbdev/sh_mobile_lcdcfb.c=2503=static int sh_mobile_lcdc_probe(struct platform_device *pdev)\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-2504-{\ndrivers/video/fbdev/sh_mobile_lcdcfb.c:2505:\tstruct sh_mobile_lcdc_info *pdata = pdev-\u003edev.platform_data;\ndrivers/video/fbdev/sh_mobile_lcdcfb.c-2506-\tstruct sh_mobile_lcdc_priv *priv;\n--\ninclude/video/sh_mobile_lcdc.h=174=struct sh_mobile_lcdc_chan_cfg {\n--\ninclude/video/sh_mobile_lcdc.h-189-\ninclude/video/sh_mobile_lcdc.h:190:struct sh_mobile_lcdc_info {\ninclude/video/sh_mobile_lcdc.h-191-\tint clock_source;\n"
} |
| 17/2 | 2026/09/17 02:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 24891 output: 45 thoughts: 817 Thoughts: **Analyzing the Reachability of `sh_mobile_lcdcfb` for Fuzzing** Okay, let's break this down. The prompt outlines criteria for returning `WorthFuzzing=false`, essentially flagging code that's unlikely to yield fruitful results in a fuzzing context. Section 2 highlights "structurally unreachable hardware" and "unreachable execution paths" as key red flags. My target architecture is amd64, which is crucial. The language is very clear: fuzzing should focus on code that's actually *reachable* in standard virtualized environments. Given that, the driver `sh_mobile_lcdcfb` from the prompt is what's being looked at for reachability. The initial question that arises is: can this code even be compiled on amd64? Kconfig shows a dependency on `SUPERH || COMPILE_TEST`. While `COMPILE_TEST` might allow compilation, mere compilation isn't enough - does the driver's probe routine, `sh_mobile_lcdc_probe`, ever execute? The key insight is the probing mechanism: `sh_mobile_lcdc_probe` is triggered by a platform device named `"sh_mobile_lcdc_fb"`. Where are these platform devices created and how are they instantiated? Looking at the code, these named devices with platform data are *only* created in `arch/sh/boards/*`, i.e., SuperH architecture-specific board files. SuperH is a completely different architecture! Syzkaller is fuzzing amd64 kernels in QEMU (x86_64), which reinforces the irrelevance of SuperH boards. The question of userspace creating these devices is raised, with the answer being that userspace cannot instantiate platform devices with arbitrary platform data; these devices are created via Device Tree, ACPI or board files. This driver does not appear to even have Device Tree / OF matching! Finally, let's verify there is no `of_match_table` or ACPI or anything, by inspecting lines 2640-2670 of `drivers/video/fbdev/sh_mobile_lcdcfb.c`. Given all this evidence, it's highly improbable that `sh_mobile_lcdcfb` will ever execute on amd64 in a standard fuzzing setup. Thus, it’s almost certainly `WorthFuzzing=false`. |
| 18/2 | 2026/09/17 02:20 | tool | read-file |
0mArgs:{
"File": "drivers/video/fbdev/sh_mobile_lcdcfb.c",
"FirstLine": 2640,
"LineCount": 40
}Results: {
"Contents": "2640:\t\t}\n2641:\t\n2642:\t\treturn 0;\n2643:\terr1:\n2644:\t\tsh_mobile_lcdc_remove(pdev);\n2645:\t\n2646:\t\treturn error;\n2647:\t}\n2648:\t\n2649:\tstatic struct platform_driver sh_mobile_lcdc_driver = {\n2650:\t\t.driver\t\t= {\n2651:\t\t\t.name\t\t= \"sh_mobile_lcdc_fb\",\n2652:\t\t\t.pm\t\t= \u0026sh_mobile_lcdc_dev_pm_ops,\n2653:\t\t},\n2654:\t\t.probe\t\t= sh_mobile_lcdc_probe,\n2655:\t\t.remove\t\t= sh_mobile_lcdc_remove,\n2656:\t};\n2657:\t\n2658:\tmodule_platform_driver(sh_mobile_lcdc_driver);\n2659:\t\n2660:\tMODULE_DESCRIPTION(\"SuperH Mobile LCDC Framebuffer driver\");\n2661:\tMODULE_AUTHOR(\"Magnus Damm \u003cdamm@opensource.se\u003e\");\n2662:\tMODULE_LICENSE(\"GPL v2\");\n"
} |
| 19/2 | 2026/09/17 02:20 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 26593 output: 131 thoughts: 1055 Thoughts: **Analysis of the sh_mobile_lcdc Driver Patch** Okay, let's break this down. My initial observation is that `sh_mobile_lcdc_driver` is tightly coupled to Renesas SuperH (SH-Mobile) SoCs. Looking at the code, it's immediately apparent that this driver doesn't use any device matching tables (`of_match_table` or `acpi_match_table`). Instead, it relies on `platform_data` provided during probe. The crucial part here is the check: `if (!pdata) return -EINVAL;`. This means if this driver somehow gets bound to a platform device without the necessary `platform_data`, it *immediately* fails. The hardware in question is an on-chip LCD controller specific to SH-Mobile SoCs. And importantly, standard QEMU on amd64 (our target architecture) has no emulation for this SuperH Mobile LCDC hardware. Furthermore, the driver itself is explicitly architecture-dependent, built only for `SUPERH` or during a `COMPILE_TEST`. This means that from the start, the architecture is not suitable. The target architecture is clearly specified as amd64. Referring back to our guiding principles on fuzzing, let's revisit Sections 1 & 2. Reachability is the key. Fuzzing can only discover bugs in code that's executable in standard virtualized environments. If the modified code is structurally unreachable, we shouldn't waste our time. Now, considering the provided context, the modified code will never be executed. The driver is hardware-specific (SuperH), and the target architecture is amd64. Therefore, the relevant code falls under the categories of structurally unreachable hardware (specifically, requires a SuperH SoC, which isn't emulated) and code paths exclusive to architectures other than the target architecture. Let's look at the patch itself to refresh our memory: It moves sysfs attribute registration from `sh_mobile_lcdc_driver.driver.dev_groups` to the overlay functions. And renames attributes from `dev_attr_overlay_*` to `dev_attr_ovl_*`. None of this changes the fundamental issue: The amd64 system simply cannot execute this code. Therefore, this patch is unequivocally not worth fuzzing. I will proceed to set the results parameters accordingly: * `WorthFuzzing`: `false` * `Reasoning`: "The driver is for Renesas SuperH Mobile SoC hardware, platform device defined only on arch/sh boards, not emulated in QEMU, structurally unreachable on target architecture amd64." * `FocusSymbols`: `[]` * `EnableConfigs`: `[]` And finally, I will call `set-results`. |
| 20/2 | 2026/09/17 02:20 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The modified code belongs to the Renesas SuperH Mobile LCDC framebuffer driver (drivers/video/fbdev/sh_mobile_lcdcfb.c), which depends on SUPERH (or COMPILE_TEST) and is tied to specific Renesas SuperH SoC platform devices registered only in arch/sh/boards. It cannot be probed without arch-specific platform_data and the underlying hardware is not emulated in standard QEMU or reachable on the amd64 target architecture.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The modified code belongs to the Renesas SuperH Mobile LCDC framebuffer driver (drivers/video/fbdev/sh_mobile_lcdcfb.c), which depends on SUPERH (or COMPILE_TEST) and is tied to specific Renesas SuperH SoC platform devices registered only in arch/sh/boards. It cannot be probed without arch-specific platform_data and the underlying hardware is not emulated in standard QEMU or reachable on the amd64 target architecture.",
"WorthFuzzing": false
} |
| 21/1 | 2026/09/17 02:20 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|