| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/06/28 06:02 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies a hardware-specific PCI driver (ptp_ocp) for the Open Compute Project Time Card. There is no software emulation for this device in the kernel or standard QEMU, making the modified code paths unreachable in virtualized environments. Additionally, the changes are trivial sysfs wrappers around MMIO reads/writes.",
"WorthFuzzing": false
} |
| 1/1 | 2026/06/28 06:02 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 4dc96030ac6156ea446340800c5c637a8f4dec0e\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Sun Jun 28 06:02:48 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c\nindex 35e911f1ad78c0..1b4ccb4feca549 100644\n--- a/drivers/ptp/ptp_ocp.c\n+++ b/drivers/ptp/ptp_ocp.c\n@@ -4224,6 +4224,34 @@ static const struct ocp_attr_group art_timecard_groups[] = {\n \t{ },\n };\n \n+static ssize_t\n+i2c_bus_ctrl_show(struct device *dev, struct device_attribute *attr, char *buf)\n+{\n+\tstruct ptp_ocp *bp = dev_get_drvdata(dev);\n+\n+\tif (!bp-\u003epps_select)\n+\t\treturn -ENODEV;\n+\treturn sysfs_emit(buf, \"0x%08x\\n\",\n+\t\t\t ioread32(\u0026bp-\u003epps_select-\u003e__pad1));\n+}\n+\n+static ssize_t\n+i2c_bus_ctrl_store(struct device *dev, struct device_attribute *attr,\n+\t\t const char *buf, size_t count)\n+{\n+\tstruct ptp_ocp *bp = dev_get_drvdata(dev);\n+\tu32 val;\n+\n+\tif (!bp-\u003epps_select)\n+\t\treturn -ENODEV;\n+\tif (kstrtou32(buf, 0, \u0026val))\n+\t\treturn -EINVAL;\n+\tiowrite32(val, \u0026bp-\u003epps_select-\u003e__pad1);\n+\treturn count;\n+}\n+\n+static DEVICE_ATTR_RW(i2c_bus_ctrl);\n+\n static struct attribute *adva_timecard_attrs[] = {\n \t\u0026dev_attr_serialnum.attr,\n \t\u0026dev_attr_gnss_sync.attr,\n@@ -4272,6 +4300,7 @@ static struct attribute *adva_timecard_x1_attrs[] = {\n \t\u0026dev_attr_ts_window_adjust.attr,\n \t\u0026dev_attr_utc_tai_offset.attr,\n \t\u0026dev_attr_tod_correction.attr,\n+\t\u0026dev_attr_i2c_bus_ctrl.attr,\n \tNULL,\n };\n \n@@ -5235,6 +5264,7 @@ ptp_ocp_init(void)\n \tconst char *what;\n \tint err;\n \n+\trequest_module(\"i2c-dev\");\n \tptp_ocp_debugfs_init();\n \n \twhat = \"timecard class\";\n"
} |
| 2/1 | 2026/06/28 06:02 | agent | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies a hardware-specific PCI driver (ptp_ocp) for the Open Compute Project Time Card. There is no software emulation for this device in the kernel or standard QEMU, making the modified code paths unreachable in virtualized environments. Additionally, the changes are trivial sysfs wrappers around MMIO reads/writes.",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer. Your job is to review a provided patch series and determine if it makes functional changes to the kernel that should be fuzzed. IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively use your code access tools to examine the actual source code and confirm any assumptions. Return WorthFuzzing=false if the patch only contains: - Modifications to Documentation/, Kconfig files, or code comments. - Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints. - Changes to numeric constants or macros that do not functionally alter execution flow. - Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim). If it modifies reachable core kernel logic, drivers, or architectures, use your code search tools to verify the code can be executed, then return WorthFuzzing=true. When returning WorthFuzzing=true, you MUST ALSO: 1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols. Avoid listing generic hot-path functions to prevent skewed test distributions. 2. Identify any specific CONFIG_ options required to properly test this new/modified feature. Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions. Do not list too generic configs (we already have them enabled). Only list those that specifically cover the modified code. List them in the EnableConfigs output array, and DO NOT add a '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: For your convenience, here is the diff of the changes:
commit 4dc96030ac6156ea446340800c5c637a8f4dec0e
Author: syz-cluster <triage@syzkaller.com>
Date: Sun Jun 28 06:02:48 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c
index 35e911f1ad78c0..1b4ccb4feca549 100644
--- a/drivers/ptp/ptp_ocp.c
+++ b/drivers/ptp/ptp_ocp.c
@@ -4224,6 +4224,34 @@ static const struct ocp_attr_group art_timecard_groups[] = {
{ },
};
+static ssize_t
+i2c_bus_ctrl_show(struct device *dev, struct device_attribute *attr, char *buf)
+{
+ struct ptp_ocp *bp = dev_get_drvdata(dev);
+
+ if (!bp->pps_select)
+ return -ENODEV;
+ return sysfs_emit(buf, "0x%08x\n",
+ ioread32(&bp->pps_select->__pad1));
+}
+
+static ssize_t
+i2c_bus_ctrl_store(struct device *dev, struct device_attribute *attr,
+ const char *buf, size_t count)
+{
+ struct ptp_ocp *bp = dev_get_drvdata(dev);
+ u32 val;
+
+ if (!bp->pps_select)
+ return -ENODEV;
+ if (kstrtou32(buf, 0, &val))
+ return -EINVAL;
+ iowrite32(val, &bp->pps_select->__pad1);
+ return count;
+}
+
+static DEVICE_ATTR_RW(i2c_bus_ctrl);
+
static struct attribute *adva_timecard_attrs[] = {
&dev_attr_serialnum.attr,
&dev_attr_gnss_sync.attr,
@@ -4272,6 +4300,7 @@ static struct attribute *adva_timecard_x1_attrs[] = {
&dev_attr_ts_window_adjust.attr,
&dev_attr_utc_tai_offset.attr,
&dev_attr_tod_correction.attr,
+ &dev_attr_i2c_bus_ctrl.attr,
NULL,
};
@@ -5235,6 +5264,7 @@ ptp_ocp_init(void)
const char *what;
int err;
+ request_module("i2c-dev");
ptp_ocp_debugfs_init();
what = "timecard class";
|
| 3/2 | 2026/06/28 06:02 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2295 output: 32 thoughts: 179 Thoughts: **Analyzing a Patch to the PTP OCP Driver**
Okay, so I'm looking at this patch that's been applied to `drivers/ptp/ptp_ocp.c`. It looks like it's adding a new sysfs attribute, `i2c_bus_ctrl`, to `adva_timecard_x1_attrs`. That's interesting, and also, it looks like `request_module("i2c-dev");` has been added to `ptp_ocp_init()`. My immediate thought is, "How reachable is this driver in a virtualized environment?".
Given that `drivers/ptp/ptp_ocp.c` is specifically for the Open Compute Project Time Card, which is a PCI device, the question now is how easily it can be emulated. Realistically, complete emulation is probably a pain. But, since it *is* PCI, it opens up some avenues, right? I'm thinking about fuzzing this driver. Now, if I remember correctly, syzkaller does have PCI fuzzing capabilities, and that might be our best route.
Okay, let me just double-check the Kconfig entry for `ptp_ocp` to make sure fuzzing is an option.
|
| 4/2 | 2026/06/28 06:02 | tool | grepper |
0mError:no matches Args: {
"Expression": "ptp_ocp",
"PathPrefix": "drivers/ptp/Kconfig"
}Results: {
"error": "no matches"
} |
| 5/2 | 2026/06/28 06:02 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2790 output: 30 thoughts: 30 Thoughts: Okay, here's my take on those thoughts, framed as an expert's internal monologue: **Investigating the `ptp_ocp` Driver Implementation** Right, so I need to find where this `ptp_ocp` driver is defined, or at least how it's handled in the build system. Given its likely role in Precision Time Protocol (PTP), my first instinct is to check the usual suspects in the kernel source tree. The obvious starting points are the `drivers/ptp/Makefile` and `drivers/ptp/Kconfig` files. The Makefile should handle the driver's build process, potentially including it or excluding it based on configuration options. The Kconfig file is where the configuration options themselves are defined, like a `CONFIG_PTP_OCP` which is exactly what I'm looking for! I'm expecting to find either a clear definition of `ptp_ocp` in the Makefile, possibly with a corresponding entry in Kconfig to control its inclusion, or at least a conditional statement tied to a configuration symbol. Hopefully, it's a straightforward case. |
| 6/2 | 2026/06/28 06:02 | tool | grepper |
0mArgs:{
"Expression": "ptp_ocp",
"PathPrefix": "drivers/ptp/"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 2019 lines.\nUse more precise expression if possible.\n\ndrivers/ptp/Makefile=20=obj-$(CONFIG_PTP_1588_CLOCK_VMW)\t+= ptp_vmw.o\ndrivers/ptp/Makefile:21:obj-$(CONFIG_PTP_1588_CLOCK_OCP)\t+= ptp_ocp.o\ndrivers/ptp/Makefile-22-obj-$(CONFIG_PTP_DFL_TOD)\t\t+= ptp_dfl_tod.o\n--\ndrivers/ptp/ptp_ocp.c=44=struct ocp_reg {\n--\ndrivers/ptp/ptp_ocp.c-68-\ndrivers/ptp/ptp_ocp.c:69:struct ptp_ocp_servo_conf {\ndrivers/ptp/ptp_ocp.c-70-\tu32\tservo_offset_p;\n--\ndrivers/ptp/ptp_ocp.c-77- * Combined servo + board-variant parameters for ADVA boards.\ndrivers/ptp/ptp_ocp.c:78: * Embedded in the resource table .extra so a single ptp_ocp_adva_board_init()\ndrivers/ptp/ptp_ocp.c-79- * can handle both ADVA and ADVA-X1 without per-variant init functions.\ndrivers/ptp/ptp_ocp.c-80- */\ndrivers/ptp/ptp_ocp.c:81:struct ptp_ocp_adva_info {\ndrivers/ptp/ptp_ocp.c:82:\tstruct ptp_ocp_servo_conf\tservo;\ndrivers/ptp/ptp_ocp.c-83-\tu32\t\t\t\tflash_start;\n--\ndrivers/ptp/ptp_ocp.c=236=struct board_config_reg {\n--\ndrivers/ptp/ptp_ocp.c-244-\ndrivers/ptp/ptp_ocp.c:245:struct ptp_ocp_flash_info {\ndrivers/ptp/ptp_ocp.c-246-\tconst char *name;\n--\ndrivers/ptp/ptp_ocp.c-251-\ndrivers/ptp/ptp_ocp.c:252:struct ptp_ocp_firmware_header {\ndrivers/ptp/ptp_ocp.c-253-\tchar magic[4];\n--\ndrivers/ptp/ptp_ocp.c-262-\ndrivers/ptp/ptp_ocp.c:263:struct ptp_ocp_i2c_info {\ndrivers/ptp/ptp_ocp.c-264-\tconst char *name;\n--\ndrivers/ptp/ptp_ocp.c-269-\ndrivers/ptp/ptp_ocp.c:270:struct ptp_ocp_ext_info {\ndrivers/ptp/ptp_ocp.c-271-\tint index;\n--\ndrivers/ptp/ptp_ocp.c-275-\ndrivers/ptp/ptp_ocp.c:276:struct ptp_ocp_ext_src {\ndrivers/ptp/ptp_ocp.c-277-\tvoid __iomem\t\t*mem;\ndrivers/ptp/ptp_ocp.c:278:\tstruct ptp_ocp\t\t*bp;\ndrivers/ptp/ptp_ocp.c:279:\tstruct ptp_ocp_ext_info\t*info;\ndrivers/ptp/ptp_ocp.c-280-\tint\t\t\tirq_vec;\n--\ndrivers/ptp/ptp_ocp.c-282-\ndrivers/ptp/ptp_ocp.c:283:enum ptp_ocp_sma_mode {\ndrivers/ptp/ptp_ocp.c-284-\tSMA_MODE_IN,\n--\ndrivers/ptp/ptp_ocp.c-287-\ndrivers/ptp/ptp_ocp.c:288:static struct dpll_pin_frequency ptp_ocp_sma_freq[] = {\ndrivers/ptp/ptp_ocp.c-289-\tDPLL_PIN_FREQUENCY_1PPS,\n--\ndrivers/ptp/ptp_ocp.c-294-\ndrivers/ptp/ptp_ocp.c:295:struct ptp_ocp_sma_connector {\ndrivers/ptp/ptp_ocp.c:296:\tenum\tptp_ocp_sma_mode mode;\ndrivers/ptp/ptp_ocp.c-297-\tbool\tfixed_fcn;\n--\ndrivers/ptp/ptp_ocp.c=317=struct ocp_sma_op {\ndrivers/ptp/ptp_ocp.c-318-\tconst struct ocp_selector *tbl[2];\ndrivers/ptp/ptp_ocp.c:319:\tvoid (*init)(struct ptp_ocp *bp);\ndrivers/ptp/ptp_ocp.c:320:\tu32 (*get)(struct ptp_ocp *bp, int sma_nr);\ndrivers/ptp/ptp_ocp.c:321:\tint (*set_inputs)(struct ptp_ocp *bp, int sma_nr, u32 val);\ndrivers/ptp/ptp_ocp.c:322:\tint (*set_output)(struct ptp_ocp *bp, int sma_nr, u32 val);\ndrivers/ptp/ptp_ocp.c-323-};\n--\ndrivers/ptp/ptp_ocp.c-328-\ndrivers/ptp/ptp_ocp.c:329:struct ptp_ocp_signal {\ndrivers/ptp/ptp_ocp.c-330-\tktime_t\t\tperiod;\n--\ndrivers/ptp/ptp_ocp.c-338-\ndrivers/ptp/ptp_ocp.c:339:struct ptp_ocp_serial_port {\ndrivers/ptp/ptp_ocp.c-340-\tint line;\n--\ndrivers/ptp/ptp_ocp.c=350=enum {\n--\ndrivers/ptp/ptp_ocp.c-358-\ndrivers/ptp/ptp_ocp.c:359:struct ptp_ocp {\ndrivers/ptp/ptp_ocp.c-360-\tstruct pci_dev\t\t*pdev;\n--\ndrivers/ptp/ptp_ocp.c-376-\tstruct frequency_reg\t__iomem *freq_in[OCP_FREQ_NUM];\ndrivers/ptp/ptp_ocp.c:377:\tstruct ptp_ocp_ext_src\t*signal_out[OCP_SIGNAL_NUM];\ndrivers/ptp/ptp_ocp.c:378:\tstruct ptp_ocp_ext_src\t*pps;\ndrivers/ptp/ptp_ocp.c:379:\tstruct ptp_ocp_ext_src\t*ts0;\ndrivers/ptp/ptp_ocp.c:380:\tstruct ptp_ocp_ext_src\t*ts1;\ndrivers/ptp/ptp_ocp.c:381:\tstruct ptp_ocp_ext_src\t*ts2;\ndrivers/ptp/ptp_ocp.c:382:\tstruct ptp_ocp_ext_src\t*ts3;\ndrivers/ptp/ptp_ocp.c:383:\tstruct ptp_ocp_ext_src\t*ts4;\ndrivers/ptp/ptp_ocp.c-384-\tstruct ocp_art_gpio_reg __iomem *art_sma;\n--\ndrivers/ptp/ptp_ocp.c-392-\tconst struct attribute_group **attr_group;\ndrivers/ptp/ptp_ocp.c:393:\tconst struct ptp_ocp_eeprom_map *eeprom_map;\ndrivers/ptp/ptp_ocp.c-394-\tstruct dentry\t\t*debug_root;\n--\ndrivers/ptp/ptp_ocp.c-399-\tint\t\t\tn_irqs;\ndrivers/ptp/ptp_ocp.c:400:\tstruct ptp_ocp_serial_port\tport[__PORT_COUNT];\ndrivers/ptp/ptp_ocp.c-401-\tbool\t\t\tfw_loader;\n--\ndrivers/ptp/ptp_ocp.c-411-\tu64\t\t\tfw_cap;\ndrivers/ptp/ptp_ocp.c:412:\tstruct ptp_ocp_signal\tsignal[OCP_SIGNAL_NUM];\ndrivers/ptp/ptp_ocp.c:413:\tstruct ptp_ocp_sma_connector sma[OCP_SMA_NUM];\ndrivers/ptp/ptp_ocp.c-414-\tconst struct ocp_sma_op *sma_op;\n--\ndrivers/ptp/ptp_ocp.c=424=struct ocp_resource {\n--\ndrivers/ptp/ptp_ocp.c-427-\tint irq_vec;\ndrivers/ptp/ptp_ocp.c:428:\tint (*setup)(struct ptp_ocp *bp, struct ocp_resource *r);\ndrivers/ptp/ptp_ocp.c-429-\tvoid *extra;\n--\ndrivers/ptp/ptp_ocp.c-433-\ndrivers/ptp/ptp_ocp.c:434:static int ptp_ocp_register_mem(struct ptp_ocp *bp, struct ocp_resource *r);\ndrivers/ptp/ptp_ocp.c:435:static int ptp_ocp_register_i2c(struct ptp_ocp *bp, struct ocp_resource *r);\ndrivers/ptp/ptp_ocp.c:436:static int ptp_ocp_register_spi(struct ptp_ocp *bp, struct ocp_resource *r);\ndrivers/ptp/ptp_ocp.c:437:static int ptp_ocp_register_serial(struct ptp_ocp *bp, struct ocp_resource *r);\ndrivers/ptp/ptp_ocp.c:438:static int ptp_ocp_register_ext(struct ptp_ocp *bp, struct ocp_resource *r);\ndrivers/ptp/ptp_ocp.c:439:static int ptp_ocp_fb_board_init(struct ptp_ocp *bp, struct ocp_resource *r);\ndrivers/ptp/ptp_ocp.c:440:static irqreturn_t ptp_ocp_ts_irq(int irq, void *priv);\ndrivers/ptp/ptp_ocp.c:441:static irqreturn_t ptp_ocp_signal_irq(int irq, void *priv);\ndrivers/ptp/ptp_ocp.c:442:static int ptp_ocp_ts_enable(void *priv, u32 req, bool enable);\ndrivers/ptp/ptp_ocp.c:443:static int ptp_ocp_signal_from_perout(struct ptp_ocp *bp, int gen,\ndrivers/ptp/ptp_ocp.c-444-\t\t\t\t struct ptp_perout_request *req);\ndrivers/ptp/ptp_ocp.c:445:static int ptp_ocp_signal_enable(void *priv, u32 req, bool enable);\ndrivers/ptp/ptp_ocp.c:446:static int ptp_ocp_sma_store(struct ptp_ocp *bp, const char *buf, int sma_nr);\ndrivers/ptp/ptp_ocp.c-447-\ndrivers/ptp/ptp_ocp.c:448:static int ptp_ocp_art_board_init(struct ptp_ocp *bp, struct ocp_resource *r);\ndrivers/ptp/ptp_ocp.c-449-\ndrivers/ptp/ptp_ocp.c:450:static int ptp_ocp_adva_board_init(struct ptp_ocp *bp, struct ocp_resource *r);\ndrivers/ptp/ptp_ocp.c-451-\n--\ndrivers/ptp/ptp_ocp.c=461=static const struct ocp_attr_group adva_timecard_x1_groups[];\ndrivers/ptp/ptp_ocp.c-462-\ndrivers/ptp/ptp_ocp.c:463:struct ptp_ocp_eeprom_map {\ndrivers/ptp/ptp_ocp.c-464-\tu16\toff;\n--\ndrivers/ptp/ptp_ocp.c-471-\t.off = addr,\t\t\t\t\t\t\\\ndrivers/ptp/ptp_ocp.c:472:\t.len = sizeof_field(struct ptp_ocp, member),\t\t\\\ndrivers/ptp/ptp_ocp.c:473:\t.bp_offset = offsetof(struct ptp_ocp, member)\ndrivers/ptp/ptp_ocp.c-474-\n--\ndrivers/ptp/ptp_ocp.c-478-\ndrivers/ptp/ptp_ocp.c:479:static struct ptp_ocp_eeprom_map fb_eeprom_map[] = {\ndrivers/ptp/ptp_ocp.c-480-\t{ EEPROM_ENTRY(0x43, board_id) },\n--\ndrivers/ptp/ptp_ocp.c-484-\ndrivers/ptp/ptp_ocp.c:485:static struct ptp_ocp_eeprom_map art_eeprom_map[] = {\ndrivers/ptp/ptp_ocp.c-486-\t{ EEPROM_ENTRY(0x200 + 0x43, board_id) },\n--\ndrivers/ptp/ptp_ocp.c-496-#define OCP_RES_LOCATION(member) \\\ndrivers/ptp/ptp_ocp.c:497:\t.name = #member, .bp_offset = offsetof(struct ptp_ocp, member)\ndrivers/ptp/ptp_ocp.c-498-\ndrivers/ptp/ptp_ocp.c-499-#define OCP_MEM_RESOURCE(member) \\\ndrivers/ptp/ptp_ocp.c:500:\tOCP_RES_LOCATION(member), .setup = ptp_ocp_register_mem\ndrivers/ptp/ptp_ocp.c-501-\ndrivers/ptp/ptp_ocp.c-502-#define OCP_SERIAL_RESOURCE(member) \\\ndrivers/ptp/ptp_ocp.c:503:\tOCP_RES_LOCATION(member), .setup = ptp_ocp_register_serial\ndrivers/ptp/ptp_ocp.c-504-\ndrivers/ptp/ptp_ocp.c-505-#define OCP_I2C_RESOURCE(member) \\\ndrivers/ptp/ptp_ocp.c:506:\tOCP_RES_LOCATION(member), .setup = ptp_ocp_register_i2c\ndrivers/ptp/ptp_ocp.c-507-\ndrivers/ptp/ptp_ocp.c-508-#define OCP_SPI_RESOURCE(member) \\\ndrivers/ptp/ptp_ocp.c:509:\tOCP_RES_LOCATION(member), .setup = ptp_ocp_register_spi\ndrivers/ptp/ptp_ocp.c-510-\ndrivers/ptp/ptp_ocp.c-511-#define OCP_EXT_RESOURCE(member) \\\ndrivers/ptp/ptp_ocp.c:512:\tOCP_RES_LOCATION(member), .setup = ptp_ocp_register_ext\ndrivers/ptp/ptp_ocp.c-513-\n--\ndrivers/ptp/ptp_ocp.c=541=static struct ocp_resource ocp_fb_resource[] = {\n--\ndrivers/ptp/ptp_ocp.c-548-\t\t.offset = 0x01010000, .size = 0x10000, .irq_vec = 1,\ndrivers/ptp/ptp_ocp.c:549:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-550-\t\t\t.index = 0,\ndrivers/ptp/ptp_ocp.c:551:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:552:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-553-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-557-\t\t.offset = 0x01020000, .size = 0x10000, .irq_vec = 2,\ndrivers/ptp/ptp_ocp.c:558:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-559-\t\t\t.index = 1,\ndrivers/ptp/ptp_ocp.c:560:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:561:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-562-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-566-\t\t.offset = 0x01060000, .size = 0x10000, .irq_vec = 6,\ndrivers/ptp/ptp_ocp.c:567:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-568-\t\t\t.index = 2,\ndrivers/ptp/ptp_ocp.c:569:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:570:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-571-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-575-\t\t.offset = 0x01110000, .size = 0x10000, .irq_vec = 15,\ndrivers/ptp/ptp_ocp.c:576:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-577-\t\t\t.index = 3,\ndrivers/ptp/ptp_ocp.c:578:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:579:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-580-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-584-\t\t.offset = 0x01120000, .size = 0x10000, .irq_vec = 16,\ndrivers/ptp/ptp_ocp.c:585:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-586-\t\t\t.index = 4,\ndrivers/ptp/ptp_ocp.c:587:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:588:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-589-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-594-\t\t.offset = 0x010C0000, .size = 0x10000, .irq_vec = 0,\ndrivers/ptp/ptp_ocp.c:595:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-596-\t\t\t.index = 5,\ndrivers/ptp/ptp_ocp.c:597:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:598:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-599-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-603-\t\t.offset = 0x010D0000, .size = 0x10000, .irq_vec = 11,\ndrivers/ptp/ptp_ocp.c:604:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-605-\t\t\t.index = 1,\ndrivers/ptp/ptp_ocp.c:606:\t\t\t.irq_fcn = ptp_ocp_signal_irq,\ndrivers/ptp/ptp_ocp.c:607:\t\t\t.enable = ptp_ocp_signal_enable,\ndrivers/ptp/ptp_ocp.c-608-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-612-\t\t.offset = 0x010E0000, .size = 0x10000, .irq_vec = 12,\ndrivers/ptp/ptp_ocp.c:613:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-614-\t\t\t.index = 2,\ndrivers/ptp/ptp_ocp.c:615:\t\t\t.irq_fcn = ptp_ocp_signal_irq,\ndrivers/ptp/ptp_ocp.c:616:\t\t\t.enable = ptp_ocp_signal_enable,\ndrivers/ptp/ptp_ocp.c-617-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-621-\t\t.offset = 0x010F0000, .size = 0x10000, .irq_vec = 13,\ndrivers/ptp/ptp_ocp.c:622:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-623-\t\t\t.index = 3,\ndrivers/ptp/ptp_ocp.c:624:\t\t\t.irq_fcn = ptp_ocp_signal_irq,\ndrivers/ptp/ptp_ocp.c:625:\t\t\t.enable = ptp_ocp_signal_enable,\ndrivers/ptp/ptp_ocp.c-626-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-630-\t\t.offset = 0x01100000, .size = 0x10000, .irq_vec = 14,\ndrivers/ptp/ptp_ocp.c:631:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-632-\t\t\t.index = 4,\ndrivers/ptp/ptp_ocp.c:633:\t\t\t.irq_fcn = ptp_ocp_signal_irq,\ndrivers/ptp/ptp_ocp.c:634:\t\t\t.enable = ptp_ocp_signal_enable,\ndrivers/ptp/ptp_ocp.c-635-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-687-\t\t.offset = 0x00150000, .size = 0x10000, .irq_vec = 7,\ndrivers/ptp/ptp_ocp.c:688:\t\t.extra = \u0026(struct ptp_ocp_i2c_info) {\ndrivers/ptp/ptp_ocp.c-689-\t\t\t.name = \"xiic-i2c\",\n--\ndrivers/ptp/ptp_ocp.c-704-\t\t.offset = 0x00160000 + 0x1000, .irq_vec = 3,\ndrivers/ptp/ptp_ocp.c:705:\t\t.extra = \u0026(struct ptp_ocp_serial_port) {\ndrivers/ptp/ptp_ocp.c-706-\t\t\t.baud = 115200,\n--\ndrivers/ptp/ptp_ocp.c-711-\t\t.offset = 0x00170000 + 0x1000, .irq_vec = 4,\ndrivers/ptp/ptp_ocp.c:712:\t\t.extra = \u0026(struct ptp_ocp_serial_port) {\ndrivers/ptp/ptp_ocp.c-713-\t\t\t.baud = 115200,\n--\ndrivers/ptp/ptp_ocp.c-718-\t\t.offset = 0x00180000 + 0x1000, .irq_vec = 5,\ndrivers/ptp/ptp_ocp.c:719:\t\t.extra = \u0026(struct ptp_ocp_serial_port) {\ndrivers/ptp/ptp_ocp.c-720-\t\t\t.baud = 57600,\n--\ndrivers/ptp/ptp_ocp.c-729-\t\t.offset = 0x00310000, .size = 0x10000, .irq_vec = 9,\ndrivers/ptp/ptp_ocp.c:730:\t\t.extra = \u0026(struct ptp_ocp_flash_info) {\ndrivers/ptp/ptp_ocp.c-731-\t\t\t.name = \"xilinx_spi\", .pci_offset = 0,\n--\ndrivers/ptp/ptp_ocp.c-760-\t{\ndrivers/ptp/ptp_ocp.c:761:\t\t.setup = ptp_ocp_fb_board_init,\ndrivers/ptp/ptp_ocp.c:762:\t\t.extra = \u0026(struct ptp_ocp_servo_conf) {\ndrivers/ptp/ptp_ocp.c-763-\t\t\t.servo_offset_p = 0x2000,\n--\ndrivers/ptp/ptp_ocp.c=782=static struct ocp_resource ocp_art_resource[] = {\n--\ndrivers/ptp/ptp_ocp.c-789-\t\t.offset = 0x00160000 + 0x1000, .irq_vec = 3,\ndrivers/ptp/ptp_ocp.c:790:\t\t.extra = \u0026(struct ptp_ocp_serial_port) {\ndrivers/ptp/ptp_ocp.c-791-\t\t\t.baud = 115200,\n--\ndrivers/ptp/ptp_ocp.c-801-\t\t.offset = 0x360000, .size = 0x20, .irq_vec = 12,\ndrivers/ptp/ptp_ocp.c:802:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-803-\t\t\t.index = 0,\ndrivers/ptp/ptp_ocp.c:804:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:805:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-806-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-810-\t\t.offset = 0x380000, .size = 0x20, .irq_vec = 8,\ndrivers/ptp/ptp_ocp.c:811:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-812-\t\t\t.index = 1,\ndrivers/ptp/ptp_ocp.c:813:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:814:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-815-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-819-\t\t.offset = 0x390000, .size = 0x20, .irq_vec = 10,\ndrivers/ptp/ptp_ocp.c:820:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-821-\t\t\t.index = 2,\ndrivers/ptp/ptp_ocp.c:822:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:823:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-824-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-828-\t\t.offset = 0x3A0000, .size = 0x20, .irq_vec = 14,\ndrivers/ptp/ptp_ocp.c:829:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-830-\t\t\t.index = 3,\ndrivers/ptp/ptp_ocp.c:831:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:832:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-833-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-837-\t\t.offset = 0x3B0000, .size = 0x20, .irq_vec = 15,\ndrivers/ptp/ptp_ocp.c:838:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-839-\t\t\t.index = 4,\ndrivers/ptp/ptp_ocp.c:840:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:841:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-842-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-847-\t\t.offset = 0x00330000, .size = 0x20, .irq_vec = 11,\ndrivers/ptp/ptp_ocp.c:848:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-849-\t\t\t.index = 5,\ndrivers/ptp/ptp_ocp.c:850:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:851:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-852-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-856-\t\t.offset = 0x00310000, .size = 0x10000, .irq_vec = 9,\ndrivers/ptp/ptp_ocp.c:857:\t\t.extra = \u0026(struct ptp_ocp_flash_info) {\ndrivers/ptp/ptp_ocp.c-858-\t\t\t.name = \"spi_altera\", .pci_offset = 0,\n--\ndrivers/ptp/ptp_ocp.c-871-\t\t.offset = 0x350000, .size = 0x100, .irq_vec = 4,\ndrivers/ptp/ptp_ocp.c:872:\t\t.extra = \u0026(struct ptp_ocp_i2c_info) {\ndrivers/ptp/ptp_ocp.c-873-\t\t\t.name = \"ocores-i2c\",\n--\ndrivers/ptp/ptp_ocp.c-888-\t\t.offset = 0x00190000, .irq_vec = 7,\ndrivers/ptp/ptp_ocp.c:889:\t\t.extra = \u0026(struct ptp_ocp_serial_port) {\ndrivers/ptp/ptp_ocp.c-890-\t\t\t.baud = 9600,\n--\ndrivers/ptp/ptp_ocp.c-897-\t{\ndrivers/ptp/ptp_ocp.c:898:\t\t.setup = ptp_ocp_art_board_init,\ndrivers/ptp/ptp_ocp.c:899:\t\t.extra = \u0026(struct ptp_ocp_servo_conf) {\ndrivers/ptp/ptp_ocp.c-900-\t\t\t.servo_offset_p = 0x2000,\n--\ndrivers/ptp/ptp_ocp.c=909=static struct ocp_resource ocp_adva_resource[] = {\n--\ndrivers/ptp/ptp_ocp.c-916-\t\t.offset = 0x01010000, .size = 0x10000, .irq_vec = 1,\ndrivers/ptp/ptp_ocp.c:917:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-918-\t\t\t.index = 0,\ndrivers/ptp/ptp_ocp.c:919:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:920:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-921-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-925-\t\t.offset = 0x01020000, .size = 0x10000, .irq_vec = 2,\ndrivers/ptp/ptp_ocp.c:926:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-927-\t\t\t.index = 1,\ndrivers/ptp/ptp_ocp.c:928:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:929:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-930-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-934-\t\t.offset = 0x01060000, .size = 0x10000, .irq_vec = 6,\ndrivers/ptp/ptp_ocp.c:935:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-936-\t\t\t.index = 2,\ndrivers/ptp/ptp_ocp.c:937:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:938:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-939-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-944-\t\t.offset = 0x010C0000, .size = 0x10000, .irq_vec = 0,\ndrivers/ptp/ptp_ocp.c:945:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-946-\t\t\t.index = 5,\ndrivers/ptp/ptp_ocp.c:947:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:948:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-949-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-953-\t\t.offset = 0x010D0000, .size = 0x10000, .irq_vec = 11,\ndrivers/ptp/ptp_ocp.c:954:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-955-\t\t\t.index = 1,\ndrivers/ptp/ptp_ocp.c:956:\t\t\t.irq_fcn = ptp_ocp_signal_irq,\ndrivers/ptp/ptp_ocp.c:957:\t\t\t.enable = ptp_ocp_signal_enable,\ndrivers/ptp/ptp_ocp.c-958-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-962-\t\t.offset = 0x010E0000, .size = 0x10000, .irq_vec = 12,\ndrivers/ptp/ptp_ocp.c:963:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-964-\t\t\t.index = 2,\ndrivers/ptp/ptp_ocp.c:965:\t\t\t.irq_fcn = ptp_ocp_signal_irq,\ndrivers/ptp/ptp_ocp.c:966:\t\t\t.enable = ptp_ocp_signal_enable,\ndrivers/ptp/ptp_ocp.c-967-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-999-\t\t.offset = 0x00160000 + 0x1000, .irq_vec = 3,\ndrivers/ptp/ptp_ocp.c:1000:\t\t.extra = \u0026(struct ptp_ocp_serial_port) {\ndrivers/ptp/ptp_ocp.c-1001-\t\t\t.baud = 9600,\n--\ndrivers/ptp/ptp_ocp.c-1006-\t\t.offset = 0x00180000 + 0x1000, .irq_vec = 5,\ndrivers/ptp/ptp_ocp.c:1007:\t\t.extra = \u0026(struct ptp_ocp_serial_port) {\ndrivers/ptp/ptp_ocp.c-1008-\t\t\t.baud = 115200,\n--\ndrivers/ptp/ptp_ocp.c-1021-\t\t.offset = 0x00310400, .size = 0x10000, .irq_vec = 9,\ndrivers/ptp/ptp_ocp.c:1022:\t\t.extra = \u0026(struct ptp_ocp_flash_info) {\ndrivers/ptp/ptp_ocp.c-1023-\t\t\t.name = \"spi_altera\", .pci_offset = 0,\n--\ndrivers/ptp/ptp_ocp.c-1036-\t\t.offset = 0x150000, .size = 0x100, .irq_vec = 7,\ndrivers/ptp/ptp_ocp.c:1037:\t\t.extra = \u0026(struct ptp_ocp_i2c_info) {\ndrivers/ptp/ptp_ocp.c-1038-\t\t\t.name = \"ocores-i2c\",\n--\ndrivers/ptp/ptp_ocp.c-1055-\t{\ndrivers/ptp/ptp_ocp.c:1056:\t\t.setup = ptp_ocp_adva_board_init,\ndrivers/ptp/ptp_ocp.c:1057:\t\t.extra = \u0026(struct ptp_ocp_adva_info) {\ndrivers/ptp/ptp_ocp.c-1058-\t\t\t.servo = {\n--\ndrivers/ptp/ptp_ocp.c=1074=static struct ocp_resource ocp_adva_x1_resource[] = {\n--\ndrivers/ptp/ptp_ocp.c-1081-\t\t.offset = 0x01010000, .size = 0x10000, .irq_vec = 1,\ndrivers/ptp/ptp_ocp.c:1082:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-1083-\t\t\t.index = 0,\ndrivers/ptp/ptp_ocp.c:1084:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:1085:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-1086-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-1090-\t\t.offset = 0x01020000, .size = 0x10000, .irq_vec = 2,\ndrivers/ptp/ptp_ocp.c:1091:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-1092-\t\t\t.index = 1,\ndrivers/ptp/ptp_ocp.c:1093:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:1094:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-1095-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-1099-\t\t.offset = 0x01060000, .size = 0x10000, .irq_vec = 6,\ndrivers/ptp/ptp_ocp.c:1100:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-1101-\t\t\t.index = 2,\ndrivers/ptp/ptp_ocp.c:1102:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:1103:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-1104-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-1108-\t\t.offset = 0x01110000, .size = 0x10000, .irq_vec = 15,\ndrivers/ptp/ptp_ocp.c:1109:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-1110-\t\t\t.index = 3,\ndrivers/ptp/ptp_ocp.c:1111:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:1112:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-1113-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-1117-\t\t.offset = 0x01120000, .size = 0x10000, .irq_vec = 16,\ndrivers/ptp/ptp_ocp.c:1118:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-1119-\t\t\t.index = 4,\ndrivers/ptp/ptp_ocp.c:1120:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:1121:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-1122-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-1127-\t\t.offset = 0x010C0000, .size = 0x10000, .irq_vec = 0,\ndrivers/ptp/ptp_ocp.c:1128:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-1129-\t\t\t.index = 5,\ndrivers/ptp/ptp_ocp.c:1130:\t\t\t.irq_fcn = ptp_ocp_ts_irq,\ndrivers/ptp/ptp_ocp.c:1131:\t\t\t.enable = ptp_ocp_ts_enable,\ndrivers/ptp/ptp_ocp.c-1132-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-1136-\t\t.offset = 0x010D0000, .size = 0x10000, .irq_vec = 11,\ndrivers/ptp/ptp_ocp.c:1137:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-1138-\t\t\t.index = 1,\ndrivers/ptp/ptp_ocp.c:1139:\t\t\t.irq_fcn = ptp_ocp_signal_irq,\ndrivers/ptp/ptp_ocp.c:1140:\t\t\t.enable = ptp_ocp_signal_enable,\ndrivers/ptp/ptp_ocp.c-1141-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-1145-\t\t.offset = 0x010E0000, .size = 0x10000, .irq_vec = 12,\ndrivers/ptp/ptp_ocp.c:1146:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-1147-\t\t\t.index = 2,\ndrivers/ptp/ptp_ocp.c:1148:\t\t\t.irq_fcn = ptp_ocp_signal_irq,\ndrivers/ptp/ptp_ocp.c:1149:\t\t\t.enable = ptp_ocp_signal_enable,\ndrivers/ptp/ptp_ocp.c-1150-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-1154-\t\t.offset = 0x010F0000, .size = 0x10000, .irq_vec = 13,\ndrivers/ptp/ptp_ocp.c:1155:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-1156-\t\t\t.index = 3,\ndrivers/ptp/ptp_ocp.c:1157:\t\t\t.irq_fcn = ptp_ocp_signal_irq,\ndrivers/ptp/ptp_ocp.c:1158:\t\t\t.enable = ptp_ocp_signal_enable,\ndrivers/ptp/ptp_ocp.c-1159-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-1163-\t\t.offset = 0x01100000, .size = 0x10000, .irq_vec = 14,\ndrivers/ptp/ptp_ocp.c:1164:\t\t.extra = \u0026(struct ptp_ocp_ext_info) {\ndrivers/ptp/ptp_ocp.c-1165-\t\t\t.index = 4,\ndrivers/ptp/ptp_ocp.c:1166:\t\t\t.irq_fcn = ptp_ocp_signal_irq,\ndrivers/ptp/ptp_ocp.c:1167:\t\t\t.enable = ptp_ocp_signal_enable,\ndrivers/ptp/ptp_ocp.c-1168-\t\t},\n--\ndrivers/ptp/ptp_ocp.c-1200-\t\t.offset = 0x00160000 + 0x1000, .irq_vec = 3,\ndrivers/ptp/ptp_ocp.c:1201:\t\t.extra = \u0026(struct ptp_ocp_serial_port) {\ndrivers/ptp/ptp_ocp.c-1202-\t\t\t.baud = 9600,\n--\ndrivers/ptp/ptp_ocp.c-1207-\t\t.offset = 0x00180000 + 0x1000, .irq_vec = 5,\ndrivers/ptp/ptp_ocp.c:1208:\t\t.extra = \u0026(struct ptp_ocp_serial_port) {\ndrivers/ptp/ptp_ocp.c-1209-\t\t\t.baud = 115200,\n--\ndrivers/ptp/ptp_ocp.c-1230-\t\t.offset = 0x00310000, .size = 0x10000, .irq_vec = 9,\ndrivers/ptp/ptp_ocp.c:1231:\t\t.extra = \u0026(struct ptp_ocp_flash_info) {\ndrivers/ptp/ptp_ocp.c-1232-\t\t\t.name = \"xilinx_spi\", .pci_offset = 0,\n--\ndrivers/ptp/ptp_ocp.c-1247-\t\t.offset = 0x00150000, .size = 0x10000, .irq_vec = 7,\ndrivers/ptp/ptp_ocp.c:1248:\t\t.extra = \u0026(struct ptp_ocp_i2c_info) {\ndrivers/ptp/ptp_ocp.c-1249-\t\t\t.name = \"xiic-i2c\",\n--\ndrivers/ptp/ptp_ocp.c-1262-\t{\ndrivers/ptp/ptp_ocp.c:1263:\t\t.setup = ptp_ocp_adva_board_init,\ndrivers/ptp/ptp_ocp.c:1264:\t\t.extra = \u0026(struct ptp_ocp_adva_info) {\ndrivers/ptp/ptp_ocp.c-1265-\t\t\t.servo = {\n--\ndrivers/ptp/ptp_ocp.c-1280-\ndrivers/ptp/ptp_ocp.c:1281:static const struct pci_device_id ptp_ocp_pcidev_id[] = {\ndrivers/ptp/ptp_ocp.c-1282-\t{ PCI_DEVICE_DATA(META, TIMECARD, \u0026ocp_fb_resource) },\n--\ndrivers/ptp/ptp_ocp.c-1288-};\ndrivers/ptp/ptp_ocp.c:1289:MODULE_DEVICE_TABLE(pci, ptp_ocp_pcidev_id);\ndrivers/ptp/ptp_ocp.c-1290-\ndrivers/ptp/ptp_ocp.c:1291:static DEFINE_MUTEX(ptp_ocp_lock);\ndrivers/ptp/ptp_ocp.c:1292:static DEFINE_IDR(ptp_ocp_idr);\ndrivers/ptp/ptp_ocp.c-1293-\ndrivers/ptp/ptp_ocp.c:1294:static const struct ocp_selector ptp_ocp_clock[] = {\ndrivers/ptp/ptp_ocp.c-1295-\t{ .name = \"NONE\",\t.value = 0 },\n--\ndrivers/ptp/ptp_ocp.c-1310-\ndrivers/ptp/ptp_ocp.c:1311:static const struct ocp_selector ptp_ocp_sma_in[] = {\ndrivers/ptp/ptp_ocp.c-1312-\t{ .name = \"10Mhz\", .value = 0x0000, .frequency = 10000000 },\n\n"
} |
| 7/2 | 2026/06/28 06:02 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 17066 output: 41 thoughts: 860 Thoughts: **Worth Fuzzing Decision: Uncertain, Leaning Towards "No"**
Okay, so I'm looking at this patch and the `CONFIG_PTP_1588_CLOCK_OCP` config. It adds `request_module("i2c-dev");` to `ptp_ocp_init()` and a sysfs attribute, `i2c_bus_ctrl`, that reads and writes to `bp->pps_select->__pad1`. My initial thought is, "Is this even worth fuzzing?"
Syzkaller *can* fuzz sysfs attributes, that's a known. But, unless there are device descriptions or the generic sysfs fuzzer is used, it doesn't target specific PCI devices by their sysfs attributes. The code itself is really simple though. We're talking a trivial sysfs read/write wrapper around an MMIO register:
```c
static ssize_t
i2c_bus_ctrl_show(struct device *dev, struct device_attribute *attr, char *buf)
{
struct ptp_ocp *bp = dev_get_drvdata(dev);
if (!bp->pps_select)
return -ENODEV;
return sysfs_emit(buf, "0x%08x\n",
ioread32(&bp->pps_select->__pad1));
}
static ssize_t
i2c_bus_ctrl_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{
struct ptp_ocp *bp = dev_get_drvdata(dev);
u32 val;
if (!bp->pps_select)
return -ENODEV;
if (kstrtou32(buf, 0, &val))
return -EINVAL;
iowrite32(val, &bp->pps_select->__pad1);
return count;
}
```
Is this functional logic that *needs* fuzzing? It's just register read/write! The `request_module("i2c-dev");` call, I'm thinking, is probably not where the juicy bugs are.
The prompt’s definition of what's *not* worth fuzzing comes to mind: documentation, Kconfig, comments, logging changes, constant modifications that don't alter flow, and code that's unreachable in virtualized environments. This is a PCI driver, `ptp_ocp` for the Open Compute Project Time Card. Can this even be probed in QEMU?
Wait, Syzkaller's PCI fuzzer can emulate PCI devices, intercepting accesses. But it needs the PCI device ID, or it can be guessed. Ah, here we go: `PCI_DEVICE_DATA(META, TIMECARD, &ocp_fb_resource)`, META is Facebook (vendor ID 0x1d9b). So, if the PCI fuzzer is enabled, it *can* probe it.
But is it worth the effort? Two sysfs methods for a 32-bit register and a `request_module` call. I don't see any complex logic here. I still need to double-check if there is anything else. So, I am leaning toward "no," but I need to make sure I'm not missing something.
|
| 8/2 | 2026/06/28 06:03 | tool | grepper |
0mArgs:{
"Expression": "i2c_bus_ctrl_store",
"PathPrefix": "drivers/ptp/ptp_ocp.c"
}Results: {
"Output": "drivers/ptp/ptp_ocp.c=4238=static ssize_t\ndrivers/ptp/ptp_ocp.c:4239:i2c_bus_ctrl_store(struct device *dev, struct device_attribute *attr,\ndrivers/ptp/ptp_ocp.c-4240-\t\t const char *buf, size_t count)\n"
} |
| 9/2 | 2026/06/28 06:03 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 18824 output: 23 thoughts: 596 Thoughts: **WorthFuzzing Decision for I2C Bus Control in adva_timecard_x1**
Okay, let me think this through. This patch introduces `i2c_bus_ctrl_show` and `i2c_bus_ctrl_store`, adds it to `adva_timecard_x1_attrs`, and also calls `request_module("i2c-dev");` within `ptp_ocp_init()`. My initial instinct is to lean towards `WorthFuzzing=false`. The core logic of `i2c_bus_ctrl_store` is extremely simple: a `kstrtou32`, a direct MMIO write using `iowrite32`, and a count return. No complex conditional statements, no dynamic memory allocation, no locking complications, and no loops to get hung up in. It's essentially a trivial sysfs wrapper around an MMIO operation, along with a module load.
However, the prompt says I need to consider reachability and if it touches core kernel logic. The driver in question relies on the presence of a specific PCI device. Now, Syzkaller's PCI fuzzer can technically emulate this PCI device. The question is, is it *really* worth the effort?
The prompt states I should return `WorthFuzzing=false` if the code paths are impossible to reach in virtualized environments like QEMU. Syzkaller's PCI fuzzing strategy doesn't readily fit that definition. While it can inject MMIO reads/writes, it doesn't offer full device emulation within QEMU in the same way `mac80211_hwsim` or `dummy_hcd` for USB does. Upstream kernels don't have a generic PCI emulator that could instantiate arbitrary PCI devices with specific vendor/device IDs easily. Syzkaller uses the `/dev/raw-pci` type of interface, which allows for testing if the device probes. If there's no QEMU emulation for the OCP Timecard, the driver won't probe in a standard VM setup.
Therefore, because this driver seems reliant on a real or very specific PCI device, and because a generic emulator isn't readily available in the upstream kernel for QEMU, I'm leaning back towards `WorthFuzzing=false`. I need to ensure the target is reachable to begin with and I'm not convinced it is. Let me check if there is any software emulation available first to be sure.
|
| 10/2 | 2026/06/28 06:03 | tool | grepper |
0mArgs:{
"Expression": "TIMECARD",
"PathPrefix": ""
}Results: {
"Output": "drivers/ptp/ptp_ocp.c-27-\ndrivers/ptp/ptp_ocp.c:28:#define PCI_DEVICE_ID_META_TIMECARD\t\t0x0400\ndrivers/ptp/ptp_ocp.c-29-\ndrivers/ptp/ptp_ocp.c-30-#define PCI_VENDOR_ID_CELESTICA\t\t\t0x18d4\ndrivers/ptp/ptp_ocp.c:31:#define PCI_DEVICE_ID_CELESTICA_TIMECARD\t0x1008\ndrivers/ptp/ptp_ocp.c-32-\n--\ndrivers/ptp/ptp_ocp.c-36-#define PCI_VENDOR_ID_ADVA\t\t\t0xad5a\ndrivers/ptp/ptp_ocp.c:37:#define PCI_DEVICE_ID_ADVA_TIMECARD\t\t0x0400\ndrivers/ptp/ptp_ocp.c:38:#define PCI_DEVICE_ID_ADVA_TIMECARD_X1\t\t0x0410\ndrivers/ptp/ptp_ocp.c-39-\n--\ndrivers/ptp/ptp_ocp.c=1281=static const struct pci_device_id ptp_ocp_pcidev_id[] = {\ndrivers/ptp/ptp_ocp.c:1282:\t{ PCI_DEVICE_DATA(META, TIMECARD, \u0026ocp_fb_resource) },\ndrivers/ptp/ptp_ocp.c:1283:\t{ PCI_DEVICE_DATA(CELESTICA, TIMECARD, \u0026ocp_fb_resource) },\ndrivers/ptp/ptp_ocp.c-1284-\t{ PCI_DEVICE_DATA(OROLIA, ARTCARD, \u0026ocp_art_resource) },\ndrivers/ptp/ptp_ocp.c:1285:\t{ PCI_DEVICE_DATA(ADVA, TIMECARD, \u0026ocp_adva_resource) },\ndrivers/ptp/ptp_ocp.c:1286:\t{ PCI_DEVICE_DATA(ADVA, TIMECARD_X1, \u0026ocp_adva_x1_resource) },\ndrivers/ptp/ptp_ocp.c-1287-\t{ }\n"
} |
| 11/2 | 2026/06/28 06:03 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 20562 output: 99 thoughts: 88 Thoughts: **My Assessment: Untestable in Virtualized Environments** Okay, so looking at this PCI device driver, the conclusion is pretty straightforward. There's no software emulation available for this thing within the kernel. That means, unless I've got the actual hardware present or a meticulously crafted QEMU device model for it, there's absolutely no way to actually *probe* the driver. In other words, the core code paths are effectively dead ends in environments like GCE or the standard QEMU setup. Since my goal is fuzzing, and this driver is untouchable in a fuzzing friendly environment, I'm going to set `WorthFuzzing=false`. The reasoning is solid: it's a hardware-specific PCI driver, and without proper software emulation, it's just simply not reachable during testing in the kind of virtualization I typically deal with. No point in wasting cycles on it. |
| 12/2 | 2026/06/28 06:03 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch modifies a hardware-specific PCI driver (ptp_ocp) for the Open Compute Project Time Card. There is no software emulation for this device in the kernel or standard QEMU, making the modified code paths unreachable in virtualized environments. Additionally, the changes are trivial sysfs wrappers around MMIO reads/writes.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies a hardware-specific PCI driver (ptp_ocp) for the Open Compute Project Time Card. There is no software emulation for this device in the kernel or standard QEMU, making the modified code paths unreachable in virtualized environments. Additionally, the changes are trivial sysfs wrappers around MMIO reads/writes.",
"WorthFuzzing": false
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|