AI Trajectory


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

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch modifies only omap_vout_remove(), which is the driver removal/teardown callback for the Texas Instruments OMAP2/OMAP3 V4L2 display driver. This hardware is specific to ARM OMAP SoCs and structurally unreachable on the target architecture (amd64). Furthermore, driver .remove callbacks are teardown paths executed only during manual sysfs unbinding or driver unloading, making the changes unsuitable for fuzzing.",
  "WorthFuzzing": false
}

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

Results:
{
  "PatchDiff": "commit ed182f32baff18bb0ea4ed3bf216c1706e190b96\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Wed Sep 16 12:12:37 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/media/platform/ti/omap/omap_vout.c b/drivers/media/platform/ti/omap/omap_vout.c\nindex 8d0319a37ba8e..0efaff4d343d6 100644\n--- a/drivers/media/platform/ti/omap/omap_vout.c\n+++ b/drivers/media/platform/ti/omap/omap_vout.c\n@@ -1586,6 +1586,7 @@ static void omap_vout_remove(struct platform_device *pdev)\n \t\tomap_dss_put_device(vid_dev-\u003edisplays[k]);\n \t}\n \tkfree(vid_dev);\n+\tomapdss_compat_uninit();\n }\n \n static int __init omap_vout_probe(struct platform_device *pdev)\n"
}

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

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies only omap_vout_remove(), which is the driver removal/teardown callback for the Texas Instruments OMAP2/OMAP3 V4L2 display driver. This hardware is specific to ARM OMAP SoCs and structurally unreachable on the target architecture (amd64). Furthermore, driver .remove callbacks are teardown paths executed only during manual sysfs unbinding or driver unloading, making the changes unsuitable for fuzzing.",
  "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 ed182f32baff18bb0ea4ed3bf216c1706e190b96
Author: syz-cluster <triage@syzkaller.com>
Date:   Wed Sep 16 12:12:37 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/media/platform/ti/omap/omap_vout.c b/drivers/media/platform/ti/omap/omap_vout.c
index 8d0319a37ba8e..0efaff4d343d6 100644
--- a/drivers/media/platform/ti/omap/omap_vout.c
+++ b/drivers/media/platform/ti/omap/omap_vout.c
@@ -1586,6 +1586,7 @@ static void omap_vout_remove(struct platform_device *pdev)
 		omap_dss_put_device(vid_dev->displays[k]);
 	}
 	kfree(vid_dev);
+	omapdss_compat_uninit();
 }
 
 static int __init omap_vout_probe(struct platform_device *pdev)

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

Args:
null

Results:
null

Tokens:
							input: 2880
							output: 34
							thoughts: 373
						

Thoughts:
**Analyzing the OMAP VOUT Driver Patch**

Alright, let's dive into this. The patch is touching `drivers/media/platform/ti/omap/omap_vout.c`. Right away, the file path tells me this is related to the Texas Instruments OMAP platform's video output. Specifically, this seems to be about the video output interface. The fact that the target architecture is amd64 raises an eyebrow; I need to keep in mind possible cross-compilation contexts if this seems off.

Now, looking at the diff, it's a small change. The only function modified is `omap_vout_remove`. That function name is a dead giveaway – it's the driver's removal routine. This means it's executed when the driver is unloaded or when the associated hardware device is removed from the system.

The change itself is adding a call to `omapdss_compat_uninit()`. My immediate thought is, this likely relates to some compatibility layer or legacy support within the OMAP Display Subsystem (DSS). The `omapdss_compat_uninit()` call is probably cleaning up resources or unregistering something that was initialized in the compatibility layer.

I should verify the Kconfig and the dependencies for the file `omap_vout.c` to see if it gives me a better picture about what exactly is being uninitialized by this call, but my initial hypothesis is that it's a clean up step.



4/2 2026/09/16 12:12 tool grepper
0m Args:
{
  "Expression": "omap_vout",
  "PathPrefix": "drivers/media/platform/ti/omap"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 653 lines.\nUse more precise expression if possible.\n\ndrivers/media/platform/ti/omap/Makefile-6-# OMAP2/3 Display driver\ndrivers/media/platform/ti/omap/Makefile:7:omap-vout-y += omap_vout.o omap_voutlib.o\ndrivers/media/platform/ti/omap/Makefile:8:omap-vout-$(CONFIG_VIDEO_OMAP2_VOUT_VRFB) += omap_vout_vrfb.o\ndrivers/media/platform/ti/omap/Makefile-9-obj-$(CONFIG_VIDEO_OMAP2_VOUT) += omap-vout.o\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1-/*\ndrivers/media/platform/ti/omap/omap_vout.c:2: * omap_vout.c\ndrivers/media/platform/ti/omap/omap_vout.c-3- *\n--\ndrivers/media/platform/ti/omap/omap_vout.c-49-\ndrivers/media/platform/ti/omap/omap_vout.c:50:#include \"omap_voutlib.h\"\ndrivers/media/platform/ti/omap/omap_vout.c:51:#include \"omap_voutdef.h\"\ndrivers/media/platform/ti/omap/omap_vout.c:52:#include \"omap_vout_vrfb.h\"\ndrivers/media/platform/ti/omap/omap_vout.c-53-\n--\ndrivers/media/platform/ti/omap/omap_vout.c=56=MODULE_LICENSE(\"GPL\");\n--\ndrivers/media/platform/ti/omap/omap_vout.c-58-/* Driver Configuration macros */\ndrivers/media/platform/ti/omap/omap_vout.c:59:#define VOUT_NAME\t\t\"omap_vout\"\ndrivers/media/platform/ti/omap/omap_vout.c-60-\ndrivers/media/platform/ti/omap/omap_vout.c:61:enum omap_vout_channels {\ndrivers/media/platform/ti/omap/omap_vout.c-62-\tOMAP_VIDEO1,\n--\ndrivers/media/platform/ti/omap/omap_vout.c=84=static const struct v4l2_fmtdesc omap_formats[] = {\n--\ndrivers/media/platform/ti/omap/omap_vout.c-123- */\ndrivers/media/platform/ti/omap/omap_vout.c:124:static int omap_vout_try_format(struct v4l2_pix_format *pix)\ndrivers/media/platform/ti/omap/omap_vout.c-125-{\n--\ndrivers/media/platform/ti/omap/omap_vout.c=176=static int v4l2_rot_to_dss_rot(int v4l2_rotation,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-199-\ndrivers/media/platform/ti/omap/omap_vout.c:200:static int omap_vout_calculate_offset(struct omap_vout_device *vout)\ndrivers/media/platform/ti/omap/omap_vout.c-201-{\n--\ndrivers/media/platform/ti/omap/omap_vout.c-210-\tif (ovid-\u003erotation_type == VOUT_ROT_VRFB) {\ndrivers/media/platform/ti/omap/omap_vout.c:211:\t\tomap_vout_calculate_vrfb_offset(vout);\ndrivers/media/platform/ti/omap/omap_vout.c-212-\t} else {\n--\ndrivers/media/platform/ti/omap/omap_vout.c-237- */\ndrivers/media/platform/ti/omap/omap_vout.c:238:static int video_mode_to_dss_mode(struct omap_vout_device *vout)\ndrivers/media/platform/ti/omap/omap_vout.c-239-{\n--\ndrivers/media/platform/ti/omap/omap_vout.c-277- */\ndrivers/media/platform/ti/omap/omap_vout.c:278:static int omapvid_setup_overlay(struct omap_vout_device *vout,\ndrivers/media/platform/ti/omap/omap_vout.c-279-\t\tstruct omap_overlay *ovl, int posx, int posy, int outw,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-354- */\ndrivers/media/platform/ti/omap/omap_vout.c:355:static int omapvid_init(struct omap_vout_device *vout, dma_addr_t addr)\ndrivers/media/platform/ti/omap/omap_vout.c-356-{\n--\ndrivers/media/platform/ti/omap/omap_vout.c-419- */\ndrivers/media/platform/ti/omap/omap_vout.c:420:static int omapvid_apply_changes(struct omap_vout_device *vout)\ndrivers/media/platform/ti/omap/omap_vout.c-421-{\n--\ndrivers/media/platform/ti/omap/omap_vout.c-438-\ndrivers/media/platform/ti/omap/omap_vout.c:439:static int omapvid_handle_interlace_display(struct omap_vout_device *vout,\ndrivers/media/platform/ti/omap/omap_vout.c-440-\t\tunsigned int irqstatus, u64 ts)\n--\ndrivers/media/platform/ti/omap/omap_vout.c-478-\ndrivers/media/platform/ti/omap/omap_vout.c:479:static void omap_vout_isr(void *arg, unsigned int irqstatus)\ndrivers/media/platform/ti/omap/omap_vout.c-480-{\n--\ndrivers/media/platform/ti/omap/omap_vout.c-487-\tstruct omap_dss_device *cur_display;\ndrivers/media/platform/ti/omap/omap_vout.c:488:\tstruct omap_vout_device *vout = (struct omap_vout_device *)arg;\ndrivers/media/platform/ti/omap/omap_vout.c-489-\n--\ndrivers/media/platform/ti/omap/omap_vout.c-543-\tvout-\u003enext_frm = list_entry(vout-\u003edma_queue.next,\ndrivers/media/platform/ti/omap/omap_vout.c:544:\t\t\tstruct omap_vout_buffer, queue);\ndrivers/media/platform/ti/omap/omap_vout.c-545-\tlist_del(\u0026vout-\u003enext_frm-\u003equeue);\n--\ndrivers/media/platform/ti/omap/omap_vout.c=571=static int vidioc_querycap(struct file *file, void *fh,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-573-{\ndrivers/media/platform/ti/omap/omap_vout.c:574:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-575-\n--\ndrivers/media/platform/ti/omap/omap_vout.c=597=static int vidioc_g_fmt_vid_out(struct file *file, void *fh,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-599-{\ndrivers/media/platform/ti/omap/omap_vout.c:600:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-601-\n--\ndrivers/media/platform/ti/omap/omap_vout.c=607=static int vidioc_try_fmt_vid_out(struct file *file, void *fh,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-612-\tstruct omap_video_timings *timing;\ndrivers/media/platform/ti/omap/omap_vout.c:613:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-614-\tstruct omap_dss_device *dssdev;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-628-\ndrivers/media/platform/ti/omap/omap_vout.c:629:\tomap_vout_try_format(\u0026f-\u003efmt.pix);\ndrivers/media/platform/ti/omap/omap_vout.c-630-\treturn 0;\n--\ndrivers/media/platform/ti/omap/omap_vout.c=633=static int vidioc_s_fmt_vid_out(struct file *file, void *fh,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-639-\tstruct omap_video_timings *timing;\ndrivers/media/platform/ti/omap/omap_vout.c:640:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-641-\tstruct omap_dss_device *dssdev;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-676-\ndrivers/media/platform/ti/omap/omap_vout.c:677:\tbpp = omap_vout_try_format(\u0026f-\u003efmt.pix);\ndrivers/media/platform/ti/omap/omap_vout.c-678-\tf-\u003efmt.pix.sizeimage = f-\u003efmt.pix.width * f-\u003efmt.pix.height * bpp;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-690-\t/* set default crop and win */\ndrivers/media/platform/ti/omap/omap_vout.c:691:\tomap_vout_new_format(\u0026vout-\u003epix, \u0026vout-\u003efbuf, \u0026vout-\u003ecrop, \u0026vout-\u003ewin);\ndrivers/media/platform/ti/omap/omap_vout.c-692-\n--\ndrivers/media/platform/ti/omap/omap_vout.c=699=static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-702-\tint ret = 0;\ndrivers/media/platform/ti/omap/omap_vout.c:703:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-704-\tstruct omap_overlay *ovl;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-710-\ndrivers/media/platform/ti/omap/omap_vout.c:711:\tret = omap_vout_try_window(\u0026vout-\u003efbuf, win);\ndrivers/media/platform/ti/omap/omap_vout.c-712-\n--\ndrivers/media/platform/ti/omap/omap_vout.c=719=static int vidioc_s_fmt_vid_overlay(struct file *file, void *fh,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-724-\tstruct omapvideo_info *ovid;\ndrivers/media/platform/ti/omap/omap_vout.c:725:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-726-\tstruct v4l2_window *win = \u0026f-\u003efmt.win;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-730-\ndrivers/media/platform/ti/omap/omap_vout.c:731:\tret = omap_vout_new_window(\u0026vout-\u003ecrop, \u0026vout-\u003ewin, \u0026vout-\u003efbuf, win);\ndrivers/media/platform/ti/omap/omap_vout.c-732-\tif (!ret) {\n--\ndrivers/media/platform/ti/omap/omap_vout.c=766=static int vidioc_g_fmt_vid_overlay(struct file *file, void *fh,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-770-\tstruct omapvideo_info *ovid;\ndrivers/media/platform/ti/omap/omap_vout.c:771:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-772-\tstruct v4l2_window *win = \u0026f-\u003efmt.win;\n--\ndrivers/media/platform/ti/omap/omap_vout.c=790=static int vidioc_g_selection(struct file *file, void *fh, struct v4l2_selection *sel)\ndrivers/media/platform/ti/omap/omap_vout.c-791-{\ndrivers/media/platform/ti/omap/omap_vout.c:792:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-793-\tstruct v4l2_pix_format *pix = \u0026vout-\u003epix;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-802-\tcase V4L2_SEL_TGT_CROP_DEFAULT:\ndrivers/media/platform/ti/omap/omap_vout.c:803:\t\tomap_vout_default_crop(\u0026vout-\u003epix, \u0026vout-\u003efbuf, \u0026sel-\u003er);\ndrivers/media/platform/ti/omap/omap_vout.c-804-\t\tbreak;\n--\ndrivers/media/platform/ti/omap/omap_vout.c=816=static int vidioc_s_selection(struct file *file, void *fh, struct v4l2_selection *sel)\n--\ndrivers/media/platform/ti/omap/omap_vout.c-818-\tint ret = -EINVAL;\ndrivers/media/platform/ti/omap/omap_vout.c:819:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-820-\tstruct omapvideo_info *ovid;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-853-\ndrivers/media/platform/ti/omap/omap_vout.c:854:\tret = omap_vout_new_crop(\u0026vout-\u003epix, \u0026vout-\u003ecrop, \u0026vout-\u003ewin,\ndrivers/media/platform/ti/omap/omap_vout.c-855-\t\t\t\t \u0026vout-\u003efbuf, \u0026sel-\u003er);\n--\ndrivers/media/platform/ti/omap/omap_vout.c-860-\ndrivers/media/platform/ti/omap/omap_vout.c:861:static int omap_vout_s_ctrl(struct v4l2_ctrl *ctrl)\ndrivers/media/platform/ti/omap/omap_vout.c-862-{\ndrivers/media/platform/ti/omap/omap_vout.c:863:\tstruct omap_vout_device *vout =\ndrivers/media/platform/ti/omap/omap_vout.c:864:\t\tcontainer_of(ctrl-\u003ehandler, struct omap_vout_device, ctrl_handler);\ndrivers/media/platform/ti/omap/omap_vout.c-865-\tint ret = 0;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-936-\ndrivers/media/platform/ti/omap/omap_vout.c:937:static const struct v4l2_ctrl_ops omap_vout_ctrl_ops = {\ndrivers/media/platform/ti/omap/omap_vout.c:938:\t.s_ctrl = omap_vout_s_ctrl,\ndrivers/media/platform/ti/omap/omap_vout.c-939-};\ndrivers/media/platform/ti/omap/omap_vout.c-940-\ndrivers/media/platform/ti/omap/omap_vout.c:941:static int omap_vout_vb2_queue_setup(struct vb2_queue *vq,\ndrivers/media/platform/ti/omap/omap_vout.c-942-\t\t\t\t     unsigned int *nbufs,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-945-{\ndrivers/media/platform/ti/omap/omap_vout.c:946:\tstruct omap_vout_device *vout = vb2_get_drv_priv(vq);\ndrivers/media/platform/ti/omap/omap_vout.c-947-\tunsigned int q_num_bufs = vb2_get_num_buffers(vq);\n--\ndrivers/media/platform/ti/omap/omap_vout.c-963-\ndrivers/media/platform/ti/omap/omap_vout.c:964:static int omap_vout_vb2_prepare(struct vb2_buffer *vb)\ndrivers/media/platform/ti/omap/omap_vout.c-965-{\ndrivers/media/platform/ti/omap/omap_vout.c:966:\tstruct omap_vout_device *vout = vb2_get_drv_priv(vb-\u003evb2_queue);\ndrivers/media/platform/ti/omap/omap_vout.c-967-\tstruct omapvideo_info *ovid = \u0026vout-\u003evid_info;\ndrivers/media/platform/ti/omap/omap_vout.c:968:\tstruct omap_vout_buffer *voutbuf = vb2_to_omap_vout_buffer(vb);\ndrivers/media/platform/ti/omap/omap_vout.c-969-\tdma_addr_t buf_phy_addr = vb2_dma_contig_plane_dma_addr(vb, 0);\n--\ndrivers/media/platform/ti/omap/omap_vout.c-982-\tif (ovid-\u003erotation_type == VOUT_ROT_VRFB)\ndrivers/media/platform/ti/omap/omap_vout.c:983:\t\treturn omap_vout_prepare_vrfb(vout, vb);\ndrivers/media/platform/ti/omap/omap_vout.c-984-\treturn 0;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-986-\ndrivers/media/platform/ti/omap/omap_vout.c:987:static void omap_vout_vb2_queue(struct vb2_buffer *vb)\ndrivers/media/platform/ti/omap/omap_vout.c-988-{\ndrivers/media/platform/ti/omap/omap_vout.c:989:\tstruct omap_vout_device *vout = vb2_get_drv_priv(vb-\u003evb2_queue);\ndrivers/media/platform/ti/omap/omap_vout.c:990:\tstruct omap_vout_buffer *voutbuf = vb2_to_omap_vout_buffer(vb);\ndrivers/media/platform/ti/omap/omap_vout.c-991-\n--\ndrivers/media/platform/ti/omap/omap_vout.c-994-\ndrivers/media/platform/ti/omap/omap_vout.c:995:static int omap_vout_vb2_start_streaming(struct vb2_queue *vq, unsigned int count)\ndrivers/media/platform/ti/omap/omap_vout.c-996-{\ndrivers/media/platform/ti/omap/omap_vout.c:997:\tstruct omap_vout_device *vout = vb2_get_drv_priv(vq);\ndrivers/media/platform/ti/omap/omap_vout.c-998-\tstruct omapvideo_info *ovid = \u0026vout-\u003evid_info;\ndrivers/media/platform/ti/omap/omap_vout.c:999:\tstruct omap_vout_buffer *buf, *tmp;\ndrivers/media/platform/ti/omap/omap_vout.c-1000-\tdma_addr_t addr = 0;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1005-\tvout-\u003enext_frm = vout-\u003ecur_frm = list_entry(vout-\u003edma_queue.next,\ndrivers/media/platform/ti/omap/omap_vout.c:1006:\t\t\tstruct omap_vout_buffer, queue);\ndrivers/media/platform/ti/omap/omap_vout.c-1007-\t/* Remove buffer from the buffer queue */\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1013-\ndrivers/media/platform/ti/omap/omap_vout.c:1014:\tif (omap_vout_calculate_offset(vout)) {\ndrivers/media/platform/ti/omap/omap_vout.c-1015-\t\tret = -EINVAL;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1018-\tif (ovid-\u003erotation_type == VOUT_ROT_VRFB)\ndrivers/media/platform/ti/omap/omap_vout.c:1019:\t\tif (omap_vout_vrfb_buffer_setup(vout, \u0026count, 0)) {\ndrivers/media/platform/ti/omap/omap_vout.c-1020-\t\t\tret = -ENOMEM;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1037-\ndrivers/media/platform/ti/omap/omap_vout.c:1038:\tomap_dispc_register_isr(omap_vout_isr, vout, mask);\ndrivers/media/platform/ti/omap/omap_vout.c-1039-\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1060-\ndrivers/media/platform/ti/omap/omap_vout.c:1061:\tomap_dispc_unregister_isr(omap_vout_isr, vout, mask);\ndrivers/media/platform/ti/omap/omap_vout.c-1062-\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1083-\ndrivers/media/platform/ti/omap/omap_vout.c:1084:static void omap_vout_vb2_stop_streaming(struct vb2_queue *vq)\ndrivers/media/platform/ti/omap/omap_vout.c-1085-{\ndrivers/media/platform/ti/omap/omap_vout.c:1086:\tstruct omap_vout_device *vout = vb2_get_drv_priv(vq);\ndrivers/media/platform/ti/omap/omap_vout.c-1087-\tstruct omapvideo_info *ovid = \u0026vout-\u003evid_info;\ndrivers/media/platform/ti/omap/omap_vout.c:1088:\tstruct omap_vout_buffer *buf, *tmp;\ndrivers/media/platform/ti/omap/omap_vout.c-1089-\tu32 mask = 0;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1094-\ndrivers/media/platform/ti/omap/omap_vout.c:1095:\tomap_dispc_unregister_isr(omap_vout_isr, vout, mask);\ndrivers/media/platform/ti/omap/omap_vout.c-1096-\n--\ndrivers/media/platform/ti/omap/omap_vout.c=1118=static int vidioc_s_fbuf(struct file *file, void *fh,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1123-\tstruct omapvideo_info *ovid;\ndrivers/media/platform/ti/omap/omap_vout.c:1124:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-1125-\tstruct omap_overlay_manager_info info;\n--\ndrivers/media/platform/ti/omap/omap_vout.c=1190=static int vidioc_g_fbuf(struct file *file, void *fh,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1194-\tstruct omapvideo_info *ovid;\ndrivers/media/platform/ti/omap/omap_vout.c:1195:\tstruct omap_vout_device *vout = video_drvdata(file);\ndrivers/media/platform/ti/omap/omap_vout.c-1196-\tstruct omap_overlay_manager_info info;\n--\ndrivers/media/platform/ti/omap/omap_vout.c=1260=static const struct v4l2_ioctl_ops vout_ioctl_ops = {\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1287-\ndrivers/media/platform/ti/omap/omap_vout.c:1288:static const struct v4l2_file_operations omap_vout_fops = {\ndrivers/media/platform/ti/omap/omap_vout.c-1289-\t.owner\t\t= THIS_MODULE,\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1296-\ndrivers/media/platform/ti/omap/omap_vout.c:1297:static const struct vb2_ops omap_vout_vb2_ops = {\ndrivers/media/platform/ti/omap/omap_vout.c:1298:\t.queue_setup\t\t= omap_vout_vb2_queue_setup,\ndrivers/media/platform/ti/omap/omap_vout.c:1299:\t.buf_queue\t\t= omap_vout_vb2_queue,\ndrivers/media/platform/ti/omap/omap_vout.c:1300:\t.buf_prepare\t\t= omap_vout_vb2_prepare,\ndrivers/media/platform/ti/omap/omap_vout.c:1301:\t.start_streaming\t= omap_vout_vb2_start_streaming,\ndrivers/media/platform/ti/omap/omap_vout.c:1302:\t.stop_streaming\t\t= omap_vout_vb2_stop_streaming,\ndrivers/media/platform/ti/omap/omap_vout.c-1303-};\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1306-/* Initial setup of video_data */\ndrivers/media/platform/ti/omap/omap_vout.c:1307:static int __init omap_vout_setup_video_data(struct omap_vout_device *vout)\ndrivers/media/platform/ti/omap/omap_vout.c-1308-{\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1349-\ndrivers/media/platform/ti/omap/omap_vout.c:1350:\tomap_vout_new_format(pix, \u0026vout-\u003efbuf, \u0026vout-\u003ecrop, \u0026vout-\u003ewin);\ndrivers/media/platform/ti/omap/omap_vout.c-1351-\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1354-\tif (vout-\u003evid_info.rotation_type == VOUT_ROT_VRFB) {\ndrivers/media/platform/ti/omap/omap_vout.c:1355:\t\tv4l2_ctrl_new_std(hdl, \u0026omap_vout_ctrl_ops,\ndrivers/media/platform/ti/omap/omap_vout.c-1356-\t\t\t\t  V4L2_CID_ROTATE, 0, 270, 90, 0);\ndrivers/media/platform/ti/omap/omap_vout.c:1357:\t\tv4l2_ctrl_new_std(hdl, \u0026omap_vout_ctrl_ops,\ndrivers/media/platform/ti/omap/omap_vout.c-1358-\t\t\t\t  V4L2_CID_VFLIP, 0, 1, 1, 0);\ndrivers/media/platform/ti/omap/omap_vout.c-1359-\t}\ndrivers/media/platform/ti/omap/omap_vout.c:1360:\tv4l2_ctrl_new_std(hdl, \u0026omap_vout_ctrl_ops,\ndrivers/media/platform/ti/omap/omap_vout.c-1361-\t\t\t  V4L2_CID_BG_COLOR, 0, 0xffffff, 1, 0);\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1385-\ndrivers/media/platform/ti/omap/omap_vout.c:1386:\tvfd-\u003efops = \u0026omap_vout_fops;\ndrivers/media/platform/ti/omap/omap_vout.c-1387-\tvfd-\u003ev4l2_dev = \u0026vout-\u003evid_dev-\u003ev4l2_dev;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1398-\tvq-\u003etimestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;\ndrivers/media/platform/ti/omap/omap_vout.c:1399:\tvq-\u003ebuf_struct_size = sizeof(struct omap_vout_buffer);\ndrivers/media/platform/ti/omap/omap_vout.c-1400-\tvq-\u003edev = vfd-\u003ev4l2_dev-\u003edev;\ndrivers/media/platform/ti/omap/omap_vout.c-1401-\ndrivers/media/platform/ti/omap/omap_vout.c:1402:\tvq-\u003eops = \u0026omap_vout_vb2_ops;\ndrivers/media/platform/ti/omap/omap_vout.c-1403-\tvq-\u003emem_ops = \u0026vb2_dma_contig_memops;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1416-/* Setup video buffers */\ndrivers/media/platform/ti/omap/omap_vout.c:1417:static int __init omap_vout_setup_video_bufs(struct platform_device *pdev,\ndrivers/media/platform/ti/omap/omap_vout.c-1418-\t\tint vid_num)\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1420-\tstruct omapvideo_info *ovid;\ndrivers/media/platform/ti/omap/omap_vout.c:1421:\tstruct omap_vout_device *vout;\ndrivers/media/platform/ti/omap/omap_vout.c-1422-\tstruct v4l2_device *v4l2_dev = platform_get_drvdata(pdev);\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1432-\t\t\tvid1_static_vrfb_alloc : vid2_static_vrfb_alloc;\ndrivers/media/platform/ti/omap/omap_vout.c:1433:\t\tret = omap_vout_setup_vrfb_bufs(pdev, vid_num,\ndrivers/media/platform/ti/omap/omap_vout.c-1434-\t\t\t\tstatic_vrfb_allocation);\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1439-/* Create video out devices */\ndrivers/media/platform/ti/omap/omap_vout.c:1440:static int __init omap_vout_create_video_devices(struct platform_device *pdev)\ndrivers/media/platform/ti/omap/omap_vout.c-1441-{\ndrivers/media/platform/ti/omap/omap_vout.c-1442-\tint ret = 0, k;\ndrivers/media/platform/ti/omap/omap_vout.c:1443:\tstruct omap_vout_device *vout;\ndrivers/media/platform/ti/omap/omap_vout.c-1444-\tstruct video_device *vfd = NULL;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1454-\ndrivers/media/platform/ti/omap/omap_vout.c:1455:\t\tvout = kzalloc_obj(struct omap_vout_device);\ndrivers/media/platform/ti/omap/omap_vout.c-1456-\t\tif (!vout) {\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1482-\t\t/* Set VRFB as rotation_type for omap2 and omap3 */\ndrivers/media/platform/ti/omap/omap_vout.c:1483:\t\tif (omap_vout_dss_omap24xx() || omap_vout_dss_omap34xx())\ndrivers/media/platform/ti/omap/omap_vout.c-1484-\t\t\tvout-\u003evid_info.rotation_type = VOUT_ROT_VRFB;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1487-\t\t */\ndrivers/media/platform/ti/omap/omap_vout.c:1488:\t\tif (omap_vout_setup_video_data(vout) != 0) {\ndrivers/media/platform/ti/omap/omap_vout.c-1489-\t\t\tret = -ENOMEM;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1495-\t\t */\ndrivers/media/platform/ti/omap/omap_vout.c:1496:\t\tif (omap_vout_setup_video_bufs(pdev, k) != 0) {\ndrivers/media/platform/ti/omap/omap_vout.c-1497-\t\t\tret = -ENOMEM;\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1521-\t\tif (vout-\u003evid_info.rotation_type == VOUT_ROT_VRFB)\ndrivers/media/platform/ti/omap/omap_vout.c:1522:\t\t\tomap_vout_release_vrfb(vout);\ndrivers/media/platform/ti/omap/omap_vout.c-1523-error1:\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1532-/* Driver functions */\ndrivers/media/platform/ti/omap/omap_vout.c:1533:static void omap_vout_cleanup_device(struct omap_vout_device *vout)\ndrivers/media/platform/ti/omap/omap_vout.c-1534-{\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1559-\tif (ovid-\u003erotation_type == VOUT_ROT_VRFB) {\ndrivers/media/platform/ti/omap/omap_vout.c:1560:\t\tomap_vout_release_vrfb(vout);\ndrivers/media/platform/ti/omap/omap_vout.c-1561-\t\t/* Free the VRFB buffer if allocated\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1564-\t\tif (vout-\u003evrfb_static_allocation)\ndrivers/media/platform/ti/omap/omap_vout.c:1565:\t\t\tomap_vout_free_vrfb_buffers(vout);\ndrivers/media/platform/ti/omap/omap_vout.c-1566-\t}\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1570-\ndrivers/media/platform/ti/omap/omap_vout.c:1571:static void omap_vout_remove(struct platform_device *pdev)\ndrivers/media/platform/ti/omap/omap_vout.c-1572-{\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1579-\tfor (k = 0; k \u003c pdev-\u003enum_resources; k++)\ndrivers/media/platform/ti/omap/omap_vout.c:1580:\t\tomap_vout_cleanup_device(vid_dev-\u003evouts[k]);\ndrivers/media/platform/ti/omap/omap_vout.c-1581-\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1591-\ndrivers/media/platform/ti/omap/omap_vout.c:1592:static int __init omap_vout_probe(struct platform_device *pdev)\ndrivers/media/platform/ti/omap/omap_vout.c-1593-{\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1683-\ndrivers/media/platform/ti/omap/omap_vout.c:1684:\tret = omap_vout_create_video_devices(pdev);\ndrivers/media/platform/ti/omap/omap_vout.c-1685-\tif (ret)\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1718-\ndrivers/media/platform/ti/omap/omap_vout.c:1719:static struct platform_driver omap_vout_driver = {\ndrivers/media/platform/ti/omap/omap_vout.c-1720-\t.driver = {\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1722-\t},\ndrivers/media/platform/ti/omap/omap_vout.c:1723:\t.remove = omap_vout_remove,\ndrivers/media/platform/ti/omap/omap_vout.c-1724-};\ndrivers/media/platform/ti/omap/omap_vout.c-1725-\ndrivers/media/platform/ti/omap/omap_vout.c:1726:static int __init omap_vout_init(void)\ndrivers/media/platform/ti/omap/omap_vout.c-1727-{\ndrivers/media/platform/ti/omap/omap_vout.c:1728:\tif (platform_driver_probe(\u0026omap_vout_driver, omap_vout_probe) != 0) {\ndrivers/media/platform/ti/omap/omap_vout.c-1729-\t\tprintk(KERN_ERR VOUT_NAME \":Could not register Video driver\\n\");\n--\ndrivers/media/platform/ti/omap/omap_vout.c-1734-\ndrivers/media/platform/ti/omap/omap_vout.c:1735:static void omap_vout_cleanup(void)\ndrivers/media/platform/ti/omap/omap_vout.c-1736-{\ndrivers/media/platform/ti/omap/omap_vout.c:1737:\tplatform_driver_unregister(\u0026omap_vout_driver);\ndrivers/media/platform/ti/omap/omap_vout.c-1738-}\ndrivers/media/platform/ti/omap/omap_vout.c-1739-\ndrivers/media/platform/ti/omap/omap_vout.c:1740:late_initcall(omap_vout_init);\ndrivers/media/platform/ti/omap/omap_vout.c:1741:module_exit(omap_vout_cleanup);\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-1-/*\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:2: * omap_vout_vrfb.c\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-3- *\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-20-\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:21:#include \"omap_voutdef.h\"\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:22:#include \"omap_voutlib.h\"\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:23:#include \"omap_vout_vrfb.h\"\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-24-\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-29- */\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:30:static int omap_vout_allocate_vrfb_buffers(struct omap_vout_device *vout,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-31-\t\tunsigned int *count, int startindex)\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-37-\t\t\tvout-\u003esmsshado_virt_addr[i] =\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:38:\t\t\t\tomap_vout_alloc_buffer(vout-\u003esmsshado_size,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-39-\t\t\t\t\t\t\u0026vout-\u003esmsshado_phy_addr[i]);\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-46-\t\t\tfor (j = 0; j \u003c i; j++) {\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:47:\t\t\t\tomap_vout_free_buffer(\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-48-\t\t\t\t\t\tvout-\u003esmsshado_virt_addr[j],\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-64- */\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:65:static void omap_vout_vrfb_dma_tx_callback(void *data)\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-66-{\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-75- */\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:76:void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout)\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-77-{\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-81-\t\tif (vout-\u003esmsshado_virt_addr[j]) {\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:82:\t\t\tomap_vout_free_buffer(vout-\u003esmsshado_virt_addr[j],\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-83-\t\t\t\t\t      vout-\u003esmsshado_size);\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-89-\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:90:int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-91-\t\t\t      bool static_vrfb_allocation)\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-93-\tint ret = 0, i, j;\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:94:\tstruct omap_vout_device *vout;\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-95-\tstruct video_device *vfd;\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-160-\tif (static_vrfb_allocation) {\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:161:\t\tif (omap_vout_allocate_vrfb_buffers(vout, \u0026vrfb_num_bufs, -1)) {\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-162-\t\t\tret =  -ENOMEM;\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-177- */\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:178:void omap_vout_release_vrfb(struct omap_vout_device *vout)\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-179-{\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-196- */\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:197:int omap_vout_vrfb_buffer_setup(struct omap_vout_device *vout,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-198-\t\t\t  unsigned int *count, unsigned int startindex)\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-212-\tif (!vout-\u003evrfb_static_allocation)\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:213:\t\tif (omap_vout_allocate_vrfb_buffers(vout, count, startindex))\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-214-\t\t\treturn -ENOMEM;\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-229-\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:230:int omap_vout_prepare_vrfb(struct omap_vout_device *vout,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-231-\t\t\t   struct vb2_buffer *vb)\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-275-\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:276:\ttx-\u003ecallback = omap_vout_vrfb_dma_tx_callback;\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-277-\ttx-\u003ecallback_param = \u0026vout-\u003evrfb_dma_tx;\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-317- */\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c:318:void omap_vout_calculate_vrfb_offset(struct omap_vout_device *vout)\ndrivers/media/platform/ti/omap/omap_vout_vrfb.c-319-{\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-1-/*\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:2: * omap_vout_vrfb.h\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-3- *\n--\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-15-#ifdef CONFIG_VIDEO_OMAP2_VOUT_VRFB\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:16:void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout);\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:17:int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-18-\t\t\tbool static_vrfb_allocation);\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:19:void omap_vout_release_vrfb(struct omap_vout_device *vout);\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:20:int omap_vout_vrfb_buffer_setup(struct omap_vout_device *vout,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-21-\t\t\tunsigned int *count, unsigned int startindex);\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:22:int omap_vout_prepare_vrfb(struct omap_vout_device *vout,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-23-\t\t\tstruct vb2_buffer *vb);\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:24:void omap_vout_calculate_vrfb_offset(struct omap_vout_device *vout);\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-25-#else\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:26:static inline void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout) { };\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:27:static inline int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-28-\t\t\tbool static_vrfb_allocation)\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-29-\t\t{ return 0; };\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:30:static inline void omap_vout_release_vrfb(struct omap_vout_device *vout) { };\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:31:static inline int omap_vout_vrfb_buffer_setup(struct omap_vout_device *vout,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-32-\t\t\tunsigned int *count, unsigned int startindex)\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-33-\t\t{ return 0; };\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:34:static inline int omap_vout_prepare_vrfb(struct omap_vout_device *vout,\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-35-\t\t\tstruct vb2_buffer *vb)\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-36-\t\t{ return 0; };\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h:37:static inline void omap_vout_calculate_vrfb_offset(struct omap_vout_device *vout) { };\ndrivers/media/platform/ti/omap/omap_vout_vrfb.h-38-#endif\n--\ndrivers/media/platform/ti/omap/omap_voutdef.h-1-/*\ndrivers/media/platform/ti/omap/omap_voutdef.h:2: * omap_voutdef.h\ndrivers/media/platform/ti/omap/omap_voutdef.h-3- *\n--\ndrivers/media/platform/ti/omap/omap_voutdef.h=101=struct omap2video_device {\n--\ndrivers/media/platform/ti/omap/omap_voutdef.h-106-\tstruct v4l2_device v4l2_dev;\ndrivers/media/platform/ti/omap/omap_voutdef.h:107:\tstruct omap_vout_device *vouts[MAX_VOUT_DEV];\ndrivers/media/platform/ti/omap/omap_voutdef.h-108-\n--\ndrivers/media/platform/ti/omap/omap_voutdef.h-117-/* buffer for one video frame */\ndrivers/media/platform/ti/omap/omap_voutdef.h:118:struct omap_vout_buffer {\ndrivers/media/platform/ti/omap/omap_voutdef.h-119-\t/* common v4l buffer stuff -- must be first */\n--\ndrivers/media/platform/ti/omap/omap_voutdef.h-123-\ndrivers/media/platform/ti/omap/omap_voutdef.h:124:static inline struct omap_vout_buffer *vb2_to_omap_vout_buffer(struct vb2_buffer *vb)\ndrivers/media/platform/ti/omap/omap_voutdef.h-125-{\n--\ndrivers/media/platform/ti/omap/omap_voutdef.h-127-\ndrivers/media/platform/ti/omap/omap_voutdef.h:128:\treturn container_of(vbuf, struct omap_vout_buffer, vbuf);\ndrivers/media/platform/ti/omap/omap_voutdef.h-129-}\n--\ndrivers/media/platform/ti/omap/omap_voutdef.h-131-/* per-device data structure */\ndrivers/media/platform/ti/omap/omap_voutdef.h:132:struct omap_vout_device {\ndrivers/media/platform/ti/omap/omap_voutdef.h-133-\n--\ndrivers/media/platform/ti/omap/omap_voutdef.h-169-\tint ps, vr_ps, line_length, first_int, field_id;\n\n"
}

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

Args:
null

Results:
null

Tokens:
							input: 17609
							output: 32
							thoughts: 19
						

Thoughts:
Here's my thought process, as though I were considering this issue:

**Examining the Video Output Configuration**

Okay, so we're talking video output on OMAP2. I need to make sure the right configuration option is enabled. The first logical step is always to go to the Kconfig files. Specifically, I need to verify whether `CONFIG_VIDEO_OMAP2_VOUT` is correctly defined and enabled, or possibly even available. I'll need to check the dependencies and any associated options to ensure everything related to video out is properly set. This is a crucial first step; if this fundamental config isn't right, the whole thing will be dead in the water. I'll probably also want to quickly glance at related options for video, display, and specific OMAP2 platform details while I'm in there. No point in missing something obvious.



6/2 2026/09/16 12:13 tool grepper
0m Args:
{
  "Expression": "config VIDEO_OMAP2_VOUT",
  "PathPrefix": "drivers/media"
}

Results:
{
  "Output": "drivers/media/platform/ti/omap/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/media/platform/ti/omap/Kconfig:2:config VIDEO_OMAP2_VOUT_VRFB\ndrivers/media/platform/ti/omap/Kconfig-3-\tbool\n--\ndrivers/media/platform/ti/omap/Kconfig-6-\ndrivers/media/platform/ti/omap/Kconfig:7:config VIDEO_OMAP2_VOUT\ndrivers/media/platform/ti/omap/Kconfig-8-\ttristate \"OMAP2/OMAP3 V4L2-Display driver\"\n"
}

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

Args:
null

Results:
null

Tokens:
							input: 18015
							output: 39
							thoughts: 19
						

Thoughts:
Here's my summary, as though I'm reading and processing the `drivers/media/platform/ti/omap/Kconfig` file:

**Analyzing the OMAP Media Kconfig**

Alright, let's dive into this `Kconfig` file for the OMAP platform's media drivers. First thing I'm looking for are the key configuration options, the ones that control which drivers get compiled in. I expect to see dependencies on the broader media framework, probably things like `MEDIA_SUPPORT` or specific codec or sensor backends. I need to understand how these OMAP-specific drivers fit within the larger Linux media subsystem. Are these modular drivers, or are they tightly coupled? What are the implications of enabling one driver over another?

I'm scanning for the usual Kconfig keywords: `config`, `bool`, `tristate`, `depends on`, `select`, `help`, `default`. I want to identify any default settings; what's enabled by default? Are there any options that automatically select other modules – this is common, so I'm watching for those. I'm looking for clear, concise help text that explains what each option does and when to enable it. Bad descriptions are a red flag; they indicate a lack of maintenance or clarity in the design.

I'm particularly interested in any device-specific options, any that mention specific OMAP SoCs or revisions. That will indicate how well-adapted these drivers are, and if there's a strong separation of concerns. I'm also looking for any architecture-specific details, particularly any that could impact performance or power consumption. Is there a clear separation between common code and platform-specific glue? And importantly, I want to see how these options are grouped. Good Kconfig files logically group related settings, making it easier to configure the system.



8/2 2026/09/16 12:13 tool read-file
0m Args:
{
  "File": "drivers/media/platform/ti/omap/Kconfig",
  "FirstLine": 1,
  "LineCount": 40
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: GPL-2.0-only\n   2:\tconfig VIDEO_OMAP2_VOUT_VRFB\n   3:\t\tbool\n   4:\t\tdefault y\n   5:\t\tdepends on VIDEO_OMAP2_VOUT \u0026\u0026 (OMAP2_VRFB || COMPILE_TEST)\n   6:\t\n   7:\tconfig VIDEO_OMAP2_VOUT\n   8:\t\ttristate \"OMAP2/OMAP3 V4L2-Display driver\"\n   9:\t\tdepends on V4L_PLATFORM_DRIVERS\n  10:\t\tdepends on MMU\n  11:\t\tdepends on FB_OMAP2 || (COMPILE_TEST \u0026\u0026 FB_OMAP2=n)\n  12:\t\tdepends on ARCH_OMAP2 || ARCH_OMAP3 || COMPILE_TEST\n  13:\t\tdepends on VIDEO_DEV\n  14:\t\tselect VIDEOBUF2_DMA_CONTIG\n  15:\t\tselect OMAP2_VRFB if ARCH_OMAP2 || ARCH_OMAP3\n  16:\t\thelp\n  17:\t\t  V4L2 Display driver support for OMAP2/3 based boards.\n"
}

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

Args:
null

Results:
null

Tokens:
							input: 18749
							output: 46
							thoughts: 329
						

Thoughts:
**Analyzing a Recent Patch**

Okay, so I'm looking at this patch and immediately, I see some interesting dependencies: `depends on ARCH_OMAP2 || ARCH_OMAP3 || COMPILE_TEST` and also `depends on FB_OMAP2 || (COMPILE_TEST && FB_OMAP2=n)`. I need to keep those in mind as I assess the impact.

First, the actual code changes. I need to understand what's been *added* by this patch. Okay, reading the diff, I can see that `omapdss_compat_uninit();` has been added within the `omap_vout_remove()` function. Let me check the context within the function and how it is used. I am going to read lines 1570 to 1600 of `drivers/media/platform/ti/omap/omap_vout.c` to understand the context. This added function likely relates to cleanup or uninitialization of some compatibility layer within the OMAP Display Subsystem (DSS) driver. I'll need to figure out the exact implications of this addition, especially given those dependency constraints. My guess is it is an important step in the platform device removal sequence.



10/2 2026/09/16 12:14 tool read-file
0m Args:
{
  "File": "drivers/media/platform/ti/omap/omap_vout.c",
  "FirstLine": 1568,
  "LineCount": 40
}

Results:
{
  "Contents": "1568:\t\tkfree(vout);\n1569:\t}\n1570:\t\n1571:\tstatic void omap_vout_remove(struct platform_device *pdev)\n1572:\t{\n1573:\t\tint k;\n1574:\t\tstruct v4l2_device *v4l2_dev = platform_get_drvdata(pdev);\n1575:\t\tstruct omap2video_device *vid_dev = container_of(v4l2_dev, struct\n1576:\t\t\t\tomap2video_device, v4l2_dev);\n1577:\t\n1578:\t\tv4l2_device_unregister(v4l2_dev);\n1579:\t\tfor (k = 0; k \u003c pdev-\u003enum_resources; k++)\n1580:\t\t\tomap_vout_cleanup_device(vid_dev-\u003evouts[k]);\n1581:\t\n1582:\t\tfor (k = 0; k \u003c vid_dev-\u003enum_displays; k++) {\n1583:\t\t\tif (vid_dev-\u003edisplays[k]-\u003estate != OMAP_DSS_DISPLAY_DISABLED)\n1584:\t\t\t\tvid_dev-\u003edisplays[k]-\u003edriver-\u003edisable(vid_dev-\u003edisplays[k]);\n1585:\t\n1586:\t\t\tomap_dss_put_device(vid_dev-\u003edisplays[k]);\n1587:\t\t}\n1588:\t\tkfree(vid_dev);\n1589:\t\tomapdss_compat_uninit();\n1590:\t}\n1591:\t\n1592:\tstatic int __init omap_vout_probe(struct platform_device *pdev)\n1593:\t{\n1594:\t\tint ret = 0, i;\n1595:\t\tstruct omap_overlay *ovl;\n1596:\t\tstruct omap_dss_device *dssdev = NULL;\n1597:\t\tstruct omap_dss_device *def_display;\n1598:\t\tstruct omap2video_device *vid_dev = NULL;\n1599:\t\n1600:\t\tif (omapdss_is_initialized() == false)\n1601:\t\t\treturn -EPROBE_DEFER;\n1602:\t\n1603:\t\tret = omapdss_compat_init();\n1604:\t\tif (ret) {\n1605:\t\t\tdev_err(\u0026pdev-\u003edev, \"failed to init dss\\n\");\n1606:\t\t\treturn ret;\n1607:\t\t}\n"
}

11/2 2026/09/16 12:14 llm patch-evaluator
1m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 20057
							output: 26
							thoughts: 350
						

Thoughts:
**My Analysis of the `WorthFuzzing` Criteria**

Okay, let's break down this prompt and the specific criteria for determining when a piece of code *shouldn't* be fuzzed. The crucial point here is the `WorthFuzzing=false` condition, and I need to rigorously analyze these two negative criteria.

Specifically, I'm focusing on the "Structurally unreachable hardware" and "Unreachable execution paths" scenarios. Let's see if we can exclude this code based on those.

First, the architecture. The target is `amd64`. I know that. Then let's consider the code in question: `omap_vout`. That's OMAP – Texas Instruments OMAP2/OMAP3 SoC hardware. Immediately, my mind flags that as ARM architecture. The question is whether any OMAP-specific hardware, specifically the video-out subsystem, could even *exist* or be relevant on an amd64 system.

No, there is no way for the display subsystem to exist on the target amd64 architecture. OMAP is an ARM SoC platform device, and the code clearly states that it depends on `ARCH_OMAP2 || ARCH_OMAP3 || COMPILE_TEST`. On amd64, `COMPILE_TEST` is needed just to compile the OMAP driver and it means that the driver is designed to be compiled but likely won't be run in the target environment. There's no physical or emulated OMAP hardware present in a typical amd64 QEMU or GCE environment.

Just to be absolutely sure, even if a platform device *could* somehow be created, I need to confirm whether `omap_vout` relies on any ACPI, PCI, or emulated devices that might exist or be relevant in our environment. Let's dig in and check exactly *how* `omap_vout` is probed and instantiated.



12/2 2026/09/16 12:15 tool grepper
0m Args:
{
  "Expression": "omap_vout",
  "PathPrefix": "arch/"
}

Results:
{
  "Output": "arch/arm/mach-omap2/devices.c-38-#if IS_ENABLED(CONFIG_FB_OMAP2)\narch/arm/mach-omap2/devices.c:39:static struct resource omap_vout_resource[3 - CONFIG_FB_OMAP2_NUM_FBS] = {\narch/arm/mach-omap2/devices.c-40-};\narch/arm/mach-omap2/devices.c-41-#else\narch/arm/mach-omap2/devices.c:42:static struct resource omap_vout_resource[2] = {\narch/arm/mach-omap2/devices.c-43-};\n--\narch/arm/mach-omap2/devices.c-45-\narch/arm/mach-omap2/devices.c:46:static u64 omap_vout_dma_mask = DMA_BIT_MASK(32);\narch/arm/mach-omap2/devices.c-47-\narch/arm/mach-omap2/devices.c:48:static struct platform_device omap_vout_device = {\narch/arm/mach-omap2/devices.c:49:\t.name\t\t= \"omap_vout\",\narch/arm/mach-omap2/devices.c:50:\t.num_resources\t= ARRAY_SIZE(omap_vout_resource),\narch/arm/mach-omap2/devices.c:51:\t.resource \t= \u0026omap_vout_resource[0],\narch/arm/mach-omap2/devices.c-52-\t.id\t\t= -1,\narch/arm/mach-omap2/devices.c-53-\t.dev\t\t= {\narch/arm/mach-omap2/devices.c:54:\t\t.dma_mask\t\t= \u0026omap_vout_dma_mask,\narch/arm/mach-omap2/devices.c-55-\t\t.coherent_dma_mask\t= DMA_BIT_MASK(32),\n--\narch/arm/mach-omap2/devices.c=59=int __init omap_init_vout(void)\narch/arm/mach-omap2/devices.c-60-{\narch/arm/mach-omap2/devices.c:61:\treturn platform_device_register(\u0026omap_vout_device);\narch/arm/mach-omap2/devices.c-62-}\n--\narch/arm/mach-omap2/display.c=158=static int __init omapdss_init_fbdev(void)\n--\narch/arm/mach-omap2/display.c-197-\tif (r \u003c 0) {\narch/arm/mach-omap2/display.c:198:\t\tpr_err(\"Unable to register omap_vout device\\n\");\narch/arm/mach-omap2/display.c-199-\t\treturn r;\n"
}

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

Args:
null

Results:
null

Tokens:
							input: 21573
							output: 122
							thoughts: 718
						

Thoughts:
**Analysis of Fuzzing Viability**

Okay, let me break this down. From what I see, this `omap_vout` driver, specifically the changes in `omap_vout_remove()`, are a non-starter for fuzzing on the amd64 architecture. My reasoning is solid, and I'll confirm that it aligns with my expert intuition.

First, the `omap_vout` device is registered exclusively in `arch/arm/mach-omap2/display.c` via `omap_init_vout()`. This is *only* for the ARM architecture and is completely absent on amd64, which is my target. The change I'm looking at modifies only the `omap_vout_remove()` function.

Second, the function `omap_vout_remove()` is a driver teardown callback (.remove). These callbacks are only executed during a physical hot-unplug of the device, or via a manual driver unbinding through sysfs. This is not a standard fuzzing execution path, I wouldn't be able to reach it.

Third, and this is crucial, the hardware itself is structurally unreachable. The modified code interacts with TI OMAP2/OMAP3 SoC display hardware, which means requiring physical ASIC/PCIe cards that are simply not present or emulated in standard QEMU amd64 virtualized environments. I'm operating within a standard QEMU environment, therefore it cannot be accessed.

Therefore, combining these three factors (architecture incompatibility, unreachable execution path, and unemulated hardware), it's safe to say this code is *not* worth fuzzing. I'll flag this as `WorthFuzzing=false`. The `EnableConfigs` and `FocusSymbols` can remain empty, and the provided reasoning is a clear and concise explanation for the decision. Let's call `set-results`.



14/2 2026/09/16 12:16 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch modifies only omap_vout_remove(), which is the driver removal/teardown callback for the Texas Instruments OMAP2/OMAP3 V4L2 display driver. This hardware is specific to ARM OMAP SoCs and structurally unreachable on the target architecture (amd64). Furthermore, driver .remove callbacks are teardown paths executed only during manual sysfs unbinding or driver unloading, making the changes unsuitable for fuzzing.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies only omap_vout_remove(), which is the driver removal/teardown callback for the Texas Instruments OMAP2/OMAP3 V4L2 display driver. This hardware is specific to ARM OMAP SoCs and structurally unreachable on the target architecture (amd64). Furthermore, driver .remove callbacks are teardown paths executed only during manual sysfs unbinding or driver unloading, making the changes unsuitable for fuzzing.",
  "WorthFuzzing": false
}

15/1 2026/09/16 12:16 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)