Introduce Synology Microp driver
Subsystems (4)
v9 cover Introduce Synology Microp driver
Synology uses a microcontroller in their NAS devices connected to a serial port to control certain LEDs, fan speeds, a beeper, to handle proper shutdown and restart, buttons and fan failures.
This patch series depends on the rust led abstraction [1] and the rust serdev abstraction [2].
This is only a initial version of the driver able to control LEDs. The following rust abstractions would be required, to implement the remaining features:
- hwmon (include/linux/hwmon.h)
- input (include/linux/input.h)
- sysoff handler + hardware protection shutdown (include/linux/reboot.h)
[1] https://lore.kernel.org/rust-for-linux/[email protected]/
[2] https://lore.kernel.org/rust-for-linux/[email protected]/
---
Changes in v9:
- separate fallback and front compatibles in dt schema
- remove front compatibles from of id table, if all functionality is
by covered by the fallback
- remove TODO file
- add [email protected] to Maintainers file entry
- use Delta type in BLINK_DELAY const
- Link to v8: https://patch.msgid.link/[email protected]
Changes in v8:
- removed unnecessary Copy and Clone derive
- added BLINK_DELAY constant
- added compatible id fallbacks
- moved dt schema patch before the driver
- added ds411p
- Link to v7: https://lore.kernel.org/r/[email protected]
Changes in v7:
- remove list of compatible ids from commit msg
- explain what makes the different models not compatible in the commit msg
- remove unnecessary examples
- Link to v6: https://lore.kernel.org/r/[email protected]
Changes in v6:
- moved devicetree bindings patch at the end of the set
- remove several patches
- move of id table from model.rs to synology_microp.rs
- remove the model! macro
- use if blocks in devicetree schema to narrow down the
fan-failure-gpios property
- add multiple devicetree examples to test if blocks
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- add esata led support
- use different compatible for each model
- add visibility modifier to of_device_table macro
- fix match data missing when using PRP0001
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- convert to monolithic driver and moved it into drivers/platform
- removed mfd rust abstraction
- moved dt-bindings to embedded-controller
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- remove default n from Kconfig entry, as n is the default already.
- select RUST_SERIAL_DEV_BUS_ABSTRACTIONS in Kconfig
- add mfd rust abstraction
- split core and led parts into their own driver. It should now be considered a
MFD device.
- split led part of dt binding into its own file
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- fix missing tabs in MAINTAINERS file
- remove word binding from patch subject
- add missing signed-off-by
- add missing help entry in Kconfig
- add missing spdx license headers
- remove no-check{,-cpu}-fan properties from the dt-bindings and replace
them with the check_fan module parameter
- use patternProperties for leds in dt-bindings
- license dt-binding as GPL-2.0-only OR BSD-2-Clause
- move driver from staging tree into mfd tree and mark it as work in
progress inside Kconfig
- only register alert and usb led if fwnode is present
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Markus Probst (2):
dt-bindings: embedded-controller: Add synology microp devices
platform: Add initial synology microp driver
.../synology,ds918p-microp.yaml | 101 ++++++++ MAINTAINERS | 7 + drivers/platform/Kconfig | 2 + drivers/platform/Makefile | 1 + drivers/platform/synology_microp/Kconfig | 13 + drivers/platform/synology_microp/Makefile | 3 + drivers/platform/synology_microp/command.rs | 54 ++++ drivers/platform/synology_microp/led.rs | 282 +++++++++++++++++++++ drivers/platform/synology_microp/model.rs | 49 ++++ .../platform/synology_microp/synology_microp.rs | 90 +++++++ 10 files changed, 602 insertions(+)
---
base-commit: 3131ff5a117498bb4b9db3a238bb311cbf8383ce
change-id: 20260306-synology_microp_initial-0f7dac7b7496
prerequisite-change-id: 20251217-rust_serdev-ee5481e9085c:v5
prerequisite-patch-id: 52b17274481cc770c257d8f95335293eca32a2c5
prerequisite-patch-id: eec47e5051640d08bcd34a9670b98804449cad52
prerequisite-patch-id: 764976150be0936469334e0f4ab631e994a262a6
prerequisite-patch-id: d0686cf451ef899a06d468adfba51ccd84e6ff98
prerequisite-change-id: 20251114-rust_leds-a959f7c2f7f9:v13
prerequisite-patch-id: 818700f22dcb9676157c985f82762d7c607b861e
prerequisite-patch-id: b15ffa7d95d9260151bfb116b259c4473f721c82
prerequisite-patch-id: 8c47e0d107530f577a1be0b79f8ee791f95d3cbe
PATCH v9 1/2 dt-bindings: embedded-controller: Add synology microp devices
Add the Synology Microp devicetree bindings. Those devices are microcontrollers found on Synology NAS devices. They are connected to a serial port on the host device.
Those devices are used to control certain LEDs, fan speeds, a beeper, to handle buttons, fan failures and to properly shutdown and reboot the device.
The device has a different feature set depending on the Synology NAS model, like having different number of fans, buttons and leds. Depending on the architecture of the model, they also need a different system shutdown behaviour.
--- .../synology,ds918p-microp.yaml | 101 +++++++++++++++++++++ 1 file changed, 101 insertions(+)
Documentation/devicetree/bindings/embedded-controller/synology,ds918p-microp.yaml new file +101 -0
@@ -0,0 +1,101 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/synology,ds918p-microp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synology NAS on-board Microcontroller + +maintainers: + - Markus Probst <[email protected]> + +description: | + Synology Microp is a microcontroller found in Synology NAS devices. + It is connected to a serial port on the host device. + + It is necessary to properly shutdown and reboot the NAS device and + provides additional functionality such as led control, fan speed control, + a beeper and buttons on the NAS device. + +properties: + compatible: + oneOf: + - items: + - enum: + - synology,ds1221rpp-microp + - synology,rs822p-microp + - synology,rs422p-microp + - const: synology,rs1221p-microp + + - items: + - const: synology,ds1825p-microp + - const: synology,ds1823xsp-microp + + - items: + - enum: + - synology,ds725p-microp + - synology,ds225p-microp + - synology,ds723p-microp + - synology,ds710p-microp + - const: synology,ds214play-microp + + - items: + - enum: + - synology,ds425p-microp + - synology,ds1525p-microp + - synology,ds925p-microp + - synology,ds923p-microp + - synology,ds1522p-microp + - synology,ds1010p-microp + - synology,ds411p-microp + - const: synology,ds918p-microp + + - items: + - enum: + - synology,ds124-microp + - synology,ds223j-microp + - synology,ds223-microp + - const: synology,ds118-microp + + - enum: + - synology,ds118-microp + - synology,ds1823xsp-microp + - synology,rs1221p-microp + - synology,ds918p-microp + - synology,ds214play-microp + + fan-failure-gpios: + description: GPIOs needed to determine which fans stopped working on a fan failure event. + minItems: 2 + maxItems: 3 + +required: + - compatible + +allOf: + - if: + properties: + compatible: + contains: + enum: + - synology,ds918p-microp + - synology,rs422p-microp + then: + required: + - fan-failure-gpios + else: + properties: + fan-failure-gpios: false + +additionalProperties: false + +examples: + - | + #include <dt-bindings/leds/common.h> + #include <dt-bindings/gpio/gpio.h> + + embedded-controller { + compatible = "synology,ds923p-microp", "synology,ds918p-microp"; + + fan-failure-gpios = <&gpio 68 GPIO_ACTIVE_HIGH>, <&gpio 69 GPIO_ACTIVE_HIGH>; + };
Signature · 1 line
2.53.0
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH v9 1/2] dt-bindings: embedded-controller: Add synology microp devices
Quoted 30 lines · On Thu, 2026-04-23 at 20:12 +0000, [email protected] wrote:
Sashiko AI review found 1 potential issue(s):
- [Low] Unused#include <dt-bindings/leds/common.h>in the device tree example snippet. --commit
64a5fa0da12674dff6fa2aa515d134709ad0a024
Author: Markus Probst <[email protected]>dt-bindings: embedded-controller: Add synology microp devices
This commit adds the devicetree bindings for the Synology Microp microcontroller found on Synology NAS devices. The device is connected over a serial port and provides functionality for fans, LEDs, beepers, buttons, and system power management.
Quoted 5 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds918p-microp.yaml new file +0
-0[ ... ]
Documentation/devicetree/bindings/embedded-controller/synology,ds918p-microp.yaml line 94
Quoted 5 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds918p-microp.yaml new file +5
-0+additionalProperties: false + +examples: + - | + #include <dt-bindings/leds/common.h>This isn't a bug, but is this include needed here?
Quoted 4 lines
Neither the example nor the schema defines or uses any LED-related macros, properties, or child nodes. It appears the driver handles LED configurations internally based on the compatible string rather than parsing them from the device tree, which leaves this include unused.
Will be removed in next revision.
Thanks
- Markus Probst
Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/embedded-controller/synology,ds918p-microp.yaml new file +7
-0+ #include <dt-bindings/gpio/gpio.h> + + embedded-controller { + compatible = "synology,ds923p-microp", "synology,ds918p-microp"; + + fan-failure-gpios = <&gpio 68 GPIO_ACTIVE_HIGH>, <&gpio 69 GPIO_ACTIVE_HIGH>; + };
PATCH v9 2/2 platform: Add initial synology microp driver
In reply to Markus ProbstAdd a initial synology microp driver, written in Rust.
The driver targets a microcontroller found in Synology NAS devices. It currently only supports controlling of the power led, status led, alert led and usb led. Other components such as fan control or handling on-device buttons will be added once the required rust abstractions are there.
This driver can be used both on arm and x86, thus it goes into the root directory of drivers/platform.
Tested successfully on a Synology DS923+.
--- MAINTAINERS | 7 + drivers/platform/Kconfig | 2 + drivers/platform/Makefile | 1 + drivers/platform/synology_microp/Kconfig | 13 + drivers/platform/synology_microp/Makefile | 3 + drivers/platform/synology_microp/command.rs | 54 ++++ drivers/platform/synology_microp/led.rs | 282 +++++++++++++++++++++ drivers/platform/synology_microp/model.rs | 49 ++++ .../platform/synology_microp/synology_microp.rs | 90 +++++++ 9 files changed, 501 insertions(+)
MAINTAINERS +7 -0
@@ -25555,6 +25555,13 @@ F: drivers/dma-buf/sync_* F: include/linux/sync_file.h F: include/uapi/linux/sync_file.h +SYNOLOGY MICROP DRIVER +M: Markus Probst <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/embedded-controller/synology,ds918p-microp.yaml +F: drivers/platform/synology_microp/ + SYNOPSYS ARC ARCHITECTURE M: Vineet Gupta <[email protected]> L: [email protected]
drivers/platform/Kconfig +2 -0
@@ -22,3 +22,5 @@ source "drivers/platform/arm64/Kconfig" source "drivers/platform/raspberrypi/Kconfig" source "drivers/platform/wmi/Kconfig" + +source "drivers/platform/synology_microp/Kconfig"
drivers/platform/Makefile +1 -0
@@ -15,3 +15,4 @@ obj-$(CONFIG_SURFACE_PLATFORMS) += surface/ obj-$(CONFIG_ARM64_PLATFORM_DEVICES) += arm64/ obj-$(CONFIG_BCM2835_VCHIQ) += raspberrypi/ obj-$(CONFIG_ACPI_WMI) += wmi/ +obj-$(CONFIG_SYNOLOGY_MICROP) += synology_microp/
drivers/platform/synology_microp/Kconfig new file +13 -0
@@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0 + +config SYNOLOGY_MICROP + tristate "Synology Microp driver" + depends on LEDS_CLASS && LEDS_CLASS_MULTICOLOR + depends on RUST_SERIAL_DEV_BUS_ABSTRACTIONS + help + Enable support for the MCU found in Synology NAS devices. + + This is needed to properly shutdown and reboot the device, as well as + additional functionality like fan and LED control. + + This driver is work in progress and may not be fully functional.
drivers/platform/synology_microp/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-y += synology_microp.o
drivers/platform/synology_microp/command.rs new file +54 -0
54 lines not on this page · raw message
drivers/platform/synology_microp/led.rs new file +282 -0
282 lines not on this page · raw message
drivers/platform/synology_microp/model.rs new file +49 -0
49 lines not on this page · raw message
drivers/platform/synology_microp/synology_microp.rs new file +90 -0
90 lines not on this page · raw message
Signature · 1 line
2.53.0
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH v9 2/2] platform: Add initial synology microp driver
Quoted 9 lines · On Thu, 2026-04-23 at 21:58 +0000, [email protected] wrote:
Sashiko AI review found 7 potential issue(s):
- [Critical] Use-After-Free of the dynamically allocated Alert LED CString.
- [High] Logic errors in LED brightness control prevent clearing the hardware blink state.
- [High] Use-After-Free ofpower_nameduring teardown due to incorrect struct field declaration order.
- [High] Concurrent accesses to the shared serdev bus are not serialized, leading to corrupted command sequences.
- [Medium] TheSYNOLOGY_MICROPconfig depends on a non-existent symbolRUST_SERIAL_DEV_BUS_ABSTRACTIONS.
- [Medium] Typo in the compatible string for the DS223 model prevents driver binding.
- [Low] Missing Device Tree Binding YAML file referenced inMAINTAINERS.
--
Since this is an AI reply, I am not sure if I am supposed to reply to it. Anyway, the answers:
Quoted 16 lines
commit
47c26ce6bffc3c75c3df285181d595c18b827e6e
Author: Markus Probst <[email protected]>platform: Add initial synology microp driver
Add a initial synology microp driver, written in Rust. The driver targets a microcontroller found in Synology NAS devices.
Quoted 7 lines
MAINTAINERS +0
-0@@ -25546,6 +25546,13 @@ F: drivers/dma-buf/sync_* F: include/linux/sync_file.h F: include/uapi/linux/sync_file.h
Quoted 9 lines
MAINTAINERS F: drivers/dma-buf/sync_* · line 25562
Quoted 5 lines
MAINTAINERS +5
-0+SYNOLOGY MICROP DRIVER +M: Markus Probst <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/embedded-controller/synology,ds918p-microp.yamlIs this YAML file missing from the patch? It doesn't appear to be included in the commit, which will cause Device Tree binding checks to miss the new schema.
It was added in the previous patch.
Quoted 14 lines
drivers/platform/synology_microp/Kconfig line 6
Quoted 11 lines
drivers/platform/synology_microp/Kconfig new file +6
-0@@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0 + +config SYNOLOGY_MICROP + tristate "Synology Microp driver" + depends on LEDS_CLASS && LEDS_CLASS_MULTICOLOR + depends on RUST_SERIAL_DEV_BUS_ABSTRACTIONSDoes
RUST_SERIAL_DEV_BUS_ABSTRACTIONSexist anywhere in the tree?
Quoted 2 lines
Depending on a non-existent symbol causes a silent build failure where the dependency can never be satisfied, rendering the driver unbuildable.
Its in the serdev dependency of the patch.
Quoted 9 lines
Quoted 4 lines
drivers/platform/synology_microp/command.rs new file +0
-0[ ... ]
drivers/platform/synology_microp/command.rs line 25
Quoted 3 lines
drivers/platform/synology_microp/command.rs new file +3
-0+impl Command { +pub (crate )fn write (self, dev: &serdev::Device <Bound >) ->Result { + dev.write_all(
Quoted 6 lines
Does this code prevent concurrent writes to the serial bus?
If user space modifies the state of multiple LEDs concurrently, the LED subsystem will invoke their callbacks simultaneously. Without a shared lock protecting the single
serdev::Deviceinstance, the multi-byte command sequences can become interleaved and corrupt the serial protocol.
If I send it as one buffer, I expect it to be sent in this order, even if another thread trys to do the same.
Even if the whole buffer is not accepted at once. serdev internally locks a mutex.
Quoted 17 lines
Quoted 4 lines
drivers/platform/synology_microp/led.rs new file +0
-0[ ... ]
drivers/platform/synology_microp/led.rs line 35
Quoted 8 lines
drivers/platform/synology_microp/led.rs new file +8
-0+#[pin_data] +pub (crate )struct Data { +#[pin] + status:Devres <led::MultiColorDevice <StatusLedHandler >>, + power_name:CString , +#[pin] + power:Devres <led::Device <LedHandler >>, +}Does this struct declaration order create a use-after-free during driver unbind?
Quoted 6 lines
In Rust, struct fields are dropped strictly in declaration order. Because
power_nameis declared before power, its backing string buffer is freed before the Devres destructor unregisters the LED from the C subsystem.This creates a time window where the active
led_classdevholds a dangling pointer to its name.
The CString is only ever used on register and is copied by the led subsystem. The field does not have to outlive the led::Device.
Quoted 14 lines
[ ... ]
drivers/platform/synology_microp/led.rs line 47
Quoted 11 lines
drivers/platform/synology_microp/led.rs new file +11
-0+impl Data { + pub(super) fn register<'a>( + dev: &'a serdev::Device<Bound>, + model: &'a Model, + ) -> impl PinInit<Self, Error> + 'a { + pin_init_scope(move || { + if let Some(color) = model.led_alert { + let name = CString::try_from_fmt(fmt!("{}:alarm", color.as_c_str().to_str()?))?; + devres::register( + dev.as_ref(), + led::DeviceBuilder::new().color(color).name(&name).build(
Quoted 6 lines
Could this leak a dangling pointer to the LED subsystem?
The name variable is strictly local to this if let block. When the block ends, the string is dropped and its backing memory is freed, but the kernel's LED framework expects the name string pointer to remain valid for the lifetime of the device.
The CString is only ever used on register and is copied by the led subsystem. The field does not have to outlive the led::Device.
Quoted 18 lines
[ ... ]
Quoted 5 lines
drivers/platform/synology_microp/led.rs new file +5
-0+fn brightness_set ( + &self, + dev: &Self ::Bus , + _classdev: &led::Device <Self >, + brightness: u32,drivers/platform/synology_microp/led.rs line 168
Quoted 10 lines
drivers/platform/synology_microp/led.rs new file +10
-0+ ) -> Result<()> { +let mut blink = self.blink.lock (); + (self.command)(if brightness ==0 { + *blink =false ; +State ::Off + }else if *blink { +State ::Blink + }else { +State ::On + })
Quoted 5 lines
If brightness is non-zero, shouldn't this disable any active blinking and set the LED solidly ON?
Evaluating else if *blink when brightness > 0 means the LED continues to blink and the internal boolean flag is never cleared.
No, only brightness = 0 disables blinking.
Quoted 14 lines
[ ... ]
drivers/platform/synology_microp/led.rs line 184
Quoted 11 lines
drivers/platform/synology_microp/led.rs new file +11
-0+fn blink_set ( + &self, + dev: &Self ::Bus , + _classdev: &led::Device <Self >, + delay_on: &mut usize , + delay_off: &mut usize , + ) ->Result <()> { +let mut blink = self.blink.lock (); + + (self.command)(if *delay_on ==0 && *delay_off !=0 { +State ::Off
Quoted 2 lines
Should this path also reset *blink to false when blinking is explicitly stopped?
You are right on this one.
Quoted 24 lines
[ ... ]
Quoted 22 lines
drivers/platform/synology_microp/led.rs new file +22
-0+fn brightness_set ( + &self, + dev: &Self ::Bus , + classdev: &led::MultiColorDevice <Self >, + brightness:u32 , + ) ->Result <()> { +let mut blink = self.blink.lock (); +if brightness ==0 { + *blink =false ; + } + +let (color, subled_brightness) =if classdev.subleds ()[1 ].intensity ==0 { + (StatusLedColor ::Green , classdev.subleds ()[0 ].brightness) + }else { + (StatusLedColor ::Orange , classdev.subleds ()[1 ].brightness) + }; + +Command ::StatusLed ( + color, +if subled_brightness ==0 { +State ::Off + }else if *blink {
Quoted 8 lines
drivers/platform/synology_microp/led.rs line 243
Quoted 4 lines
drivers/platform/synology_microp/led.rs new file +4
-0+State ::Blink + }else { +State ::On + },Similarly, does this fail to turn a blinking LED solidly ON when the brightness is non-zero? It looks like it will just keep blinking because the blink state isn't cleared.
No, only brightness = 0 disables blinking.
Quoted 10 lines
Quoted 4 lines
drivers/platform/synology_microp/synology_microp.rs new file +0
-0[ ... ]
drivers/platform/synology_microp/synology_microp.rs line 55
Quoted 2 lines
drivers/platform/synology_microp/synology_microp.rs new file +2
-0+// rtd1619b + (DeviceId::new(c"synolody,ds223-microp"), Model::new().led_usb_copy()),This isn't a bug, but there's a typo in the vendor prefix ("synolody"). This will prevent the driver from matching the device tree node for the ds223.
Yes, that is not supposed to be there.
Thanks
- Markus Probst
Re: [PATCH v9 2/2] platform: Add initial synology microp driver
Quoted 3 lines · Markus Probst
Since this is an AI reply, I am not sure if I am supposed to reply to it. Anyway, the answers:
Up to you -- some people is just fixing the patch and providing a changelog in the next version. But it is great that you are taking a look at the report! I hope it is at least somewhat useful.
We may eventually just send them to the mailing list like other lists in the kernel are doing (in which case replying may be more useful), or we may disable Sashiko completely if it is not worth our time. We are trying to see how people feel about it.
From what I see here, there were at least 2 non-trivial true positive, right?
Thanks!
Cheers,
Miguel
Re: [PATCH v9 2/2] platform: Add initial synology microp driver
Quoted 5 lines · Miguel Ojeda
Quoted 3 lines · Markus Probst
Since this is an AI reply, I am not sure if I am supposed to reply to it. Anyway, the answers:
Quoted 8 lines
Up to you -- some people is just fixing the patch and providing a changelog in the next version. But it is great that you are taking a look at the report! I hope it is at least somewhat useful.
We may eventually just send them to the mailing list like other lists in the kernel are doing (in which case replying may be more useful), or we may disable Sashiko completely if it is not worth our time. We are trying to see how people feel about it.
It would be an improvement if the bot had previous replies as context. So If I reply that the found potential issue is a false positive, that it won't appear in the next patch revision review again.
Quoted 2 lines
From what I see here, there were at least 2 non-trivial true positive, right?
Yes.
Thanks
- Markus Probst
Quoted 5 lines
Thanks!
Cheers,
Miguel
Re: [PATCH v9 2/2] platform: Add initial synology microp driver
Quoted 11 lines · Markus Probst
Quoted 9 lines · Miguel Ojeda
Quoted 3 lines · Markus Probst
Since this is an AI reply, I am not sure if I am supposed to reply to it. Anyway, the answers:
Up to you -- some people is just fixing the patch and providing a changelog in the next version. But it is great that you are taking a look at the report! I hope it is at least somewhat useful.
Quoted 7 lines
Quoted 4 lines
We may eventually just send them to the mailing list like other lists in the kernel are doing (in which case replying may be more useful), or we may disable Sashiko completely if it is not worth our time. We are trying to see how people feel about it.
It would be an improvement if the bot had previous replies as context. So If I reply that the found potential issue is a false positive, that it won't appear in the next patch revision review again.
Yeah, that could be nice -- not sure if there is such a feature or if Roman et al. (Cc'ing Roman) are thinking about a feature like that (especially for lists that send the report to the mailing list).
To avoid using up a lot of context, perhaps it could be a single-line "command" in a reply, rather than sending all the replies to the LLM.
Quoted 3 lines · if someone
Some lines written by Sashiko...
...
...
@sashiko: false positive
then Sashiko could grep for that, pick the lines above that line (i.e. the quoted report from Sashiko) and give just those few lines and a note that that it was considered a false positives into the context.
Quoted 2 lines
Quoted 1 line
From what I see here, there were at least 2 non-trivial true positive, right?
Yes.
Thanks for confirming! I hope it was (is) useful.
Cheers,
Miguel
Re: [PATCH v9 2/2] platform: Add initial synology microp driver
Quoted 33 lines · Miguel Ojeda
Quoted 11 lines · Markus Probst
Quoted 9 lines · Miguel Ojeda
Quoted 3 lines · Markus Probst
Since this is an AI reply, I am not sure if I am supposed to reply to it. Anyway, the answers:
Up to you -- some people is just fixing the patch and providing a changelog in the next version. But it is great that you are taking a look at the report! I hope it is at least somewhat useful.
Quoted 7 lines
Quoted 4 lines
We may eventually just send them to the mailing list like other lists in the kernel are doing (in which case replying may be more useful), or we may disable Sashiko completely if it is not worth our time. We are trying to see how people feel about it.
It would be an improvement if the bot had previous replies as context. So If I reply that the found potential issue is a false positive, that it won't appear in the next patch revision review again.
Yeah, that could be nice -- not sure if there is such a feature or if Roman et al. (Cc'ing Roman) are thinking about a feature like that (especially for lists that send the report to the mailing list).
To avoid using up a lot of context, perhaps it could be a single-line "command" in a reply, rather than sending all the replies to the LLM.
Quoted 3 lines · if someone
Some lines written by Sashiko...
...
...
Quoted 5 lines
@sashiko: false positive
then Sashiko could grep for that, pick the lines above that line (i.e. the quoted report from Sashiko) and give just those few lines and a note that that it was considered a false positives into the context.
But if the AI is unconvinced that it is a false positive?
Replying with a reason justifying why one thinks it's a false positive seems reasonable.
I'm trying to avoid the, sometimes long, back and forth by using a local sashiko instance, using corporate keys (will try with local models soon) to reduce the traffic in the mailing list.
Plainly stating that's a false positive seems to harsh and potentially harmful, no?
- Arnaldo
Quoted 9 lines
Quoted 3 lines
Quoted 2 lines
From what I see here, there were at least 2 non-trivial true positive, right?
Yes.
Thanks for confirming! I hope it was (is) useful.
Cheers,
Miguel
- Arnaldo
Re: [PATCH v9 2/2] platform: Add initial synology microp driver
Quoted 8 lines · Arnaldo Melo
But if the AI is unconvinced that it is a false positive?
Replying with a reason justifying why one thinks it's a false positive seems reasonable.
I'm trying to avoid the, sometimes long, back and forth by using a local sashiko instance, using corporate keys (will try with local models soon) to reduce the traffic in the mailing list.
Plainly stating that's a false positive seems to harsh and potentially harmful, no?
Yeah, authors would ideally still mention in their reply near the "command tag" why they think it is a false positive. If they do so, and Sashiko considers it still to be a false positive, then Sashiko could still add it again in the new version.
I was mainly trying to provide a "as-minimal-as-possible" option for authors.
Cheers,
Miguel
Re: [PATCH v9 2/2] platform: Add initial synology microp driver
Quoted 8 lines · Miguel Ojeda
Quoted 7 lines · Arnaldo Melo
But if the AI is unconvinced that it is a false positive?
Replying with a reason justifying why one thinks it's a false positive seems reasonable.
I'm trying to avoid the, sometimes long, back and forth by using a local sashiko instance, using corporate keys (will try with local models soon) to reduce the traffic in the mailing list.
Quoted 8 lines
Quoted 1 line
Plainly stating that's a false positive seems to harsh and potentially harmful, no?
Yeah, authors would ideally still mention in their reply near the "command tag" why they think it is a false positive. If they do so, and Sashiko considers it still to be a false positive, then Sashiko could still add it again in the new version.
I was mainly trying to provide an "as-minimal-as-possible" option for authors.
Right, and I understand that we need to be careful now and tune responses.
My current pet peeve, that I'm trying to adjust to is sashiko pointing out unrelated pre-existing (potential) bugs.
I think it would be great to separate that from the per patch analysis and leave it to a suggestion for a follow-up series provided as a end of review email.
Otherwise it's too tempting to do just this extra fix and postpone finally sending a series for review, which ends up being sashiko again...
Some sort of help on making progress in actually merging fixes while helping suggest further following work seems advisable.
Best regards,
- Arnaldo