* [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x
@ 2023-07-17 4:07 huaqian.li
2023-07-17 4:07 ` [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET huaqian.li
` (3 more replies)
0 siblings, 4 replies; 19+ messages in thread
From: huaqian.li @ 2023-07-17 4:07 UTC (permalink / raw)
To: wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: huaqianlee, nm, vigneshr, kristo, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, jan.kiszka, baocheng.su,
Li Hua Qian
From: Li Hua Qian <huaqian.li@siemens.com>
The watchdog hardware of TI AM65X platform does not support
WDIOF_CARDRESET feature, add a reserved memory to save the watchdog
reset cause, to know if the board reboot is due to a watchdog reset.
Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
---
Changes in v4:
- Fix the coding style.
- Add usage note for the reserved memory.
- Link to v3:
https://lore.kernel.org/linux-watchdog/20230713095127.1230109-1-huaqian.li@siemens.com
Changes in v3:
- Add memory-region back for the reserved memory, and remove reserved
memory from the watchdog IO address space.
- Add changelog.
- Link to v2:
https://lore.kernel.org/linux-watchdog/20230711091713.1113010-1-huaqian.li@siemens.com
Changes in v2:
- Remove memory-region and memory-size properties, and bind the reserved
memory to watchdog IO address space.
- Remove the unnecessary rti_wdt_ioctl.
- Fix the mail list
- Link to v1:
https://lore.kernel.org/all/3137d87e56ef75ba0b8a923d407b2fecace6ccbd.camel@siemens.com
v1 had a wrong mail list at the beginning, and the mail thread was
messed up.
Li Hua Qian (3):
dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET
arm64: dts: ti: Add reserved memory for watchdog
watchdog:rit_wdt: Add support for WDIOF_CARDRESET
.../bindings/watchdog/ti,rti-wdt.yaml | 41 ++++++++++++++++
.../boot/dts/ti/k3-am65-iot2050-common.dtsi | 10 ++++
drivers/watchdog/rti_wdt.c | 48 +++++++++++++++++++
3 files changed, 99 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET
2023-07-17 4:07 [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x huaqian.li
@ 2023-07-17 4:07 ` huaqian.li
2023-07-17 5:15 ` Guenter Roeck
` (2 more replies)
2023-07-17 4:07 ` [DONOTMERGE PATCH v4 2/3] arm64: dts: ti: Add reserved memory for watchdog huaqian.li
` (2 subsequent siblings)
3 siblings, 3 replies; 19+ messages in thread
From: huaqian.li @ 2023-07-17 4:07 UTC (permalink / raw)
To: wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: huaqianlee, nm, vigneshr, kristo, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, jan.kiszka, baocheng.su,
Li Hua Qian, Krzysztof Kozlowski, Conor Dooley, Rob Herring
From: Li Hua Qian <huaqian.li@siemens.com>
TI RTI (Real Time Interrupt) Watchdog doesn't support to record the
watchdog cause. Add a reserved memory to know the last reboot was caused
by the watchdog card. In the reserved memory, some specific info will be
saved to indicate whether the watchdog reset was triggered in last
boot.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Conor Dooley <conor@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
---
.../bindings/watchdog/ti,rti-wdt.yaml | 41 +++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
index fc553211e42d..4b66c4fcdf35 100644
--- a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
@@ -34,6 +34,20 @@ properties:
power-domains:
maxItems: 1
+ memory-region:
+ maxItems: 1
+ description:
+ Contains the watchdog reserved memory. It is optional.
+ In the reserved memory, the specified values, which are
+ PON_REASON_SOF_NUM(0xBBBBCCCC), PON_REASON_MAGIC_NUM(0xDDDDDDDD),
+ and PON_REASON_EOF_NUM(0xCCCCBBBB), are pre-stored at the first
+ 3 * 4 bytes to tell that last boot was caused by watchdog reset.
+ Once the PON reason is captured by driver(rti_wdt.c), the driver
+ is supposed to wipe the whole memory region. Surely, if this
+ property is set, at least 12 bytes reserved memory starting from
+ specific memory address(0xa220000) should be set. More please
+ refer to Example 2.
+
required:
- compatible
- reg
@@ -59,3 +73,30 @@ examples:
assigned-clocks = <&k3_clks 252 1>;
assigned-clock-parents = <&k3_clks 252 5>;
};
+
+ - |
+ // Example 2 (Add reserved memory for watchdog reset cause):
+ /*
+ * RTI WDT in main domain on J721e SoC. Assigned clocks are used to
+ * select the source clock for the watchdog, forcing it to tick with
+ * a 32kHz clock in this case. Add a reserved memory to keep the
+ * watchdog reset cause persistent, which was be written in 12 bytes
+ * starting from 0xa2200000 by RTI Watchdog Firmware.
+ *
+ * Reserved memory should be defined as follows:
+ * reserved-memory {
+ * wdt_reset_memory_region: wdt-memory@a2200000 {
+ * reg = <0x00 0xa2200000 0x00 0x1000>;
+ * no-map;
+ * };
+ * }
+ */
+ watchdog@40610000 {
+ compatible = "ti,j7-rti-wdt";
+ reg = <0x40610000 0x100>;
+ clocks = <&k3_clks 135 1>;
+ power-domains = <&k3_pds 135 TI_SCI_PD_EXCLUSIVE>;
+ assigned-clocks = <&k3_clks 135 0>;
+ assigned-clock-parents = <&k3_clks 135 4>;
+ memory-region = <&wdt_reset_memory_region>;
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [DONOTMERGE PATCH v4 2/3] arm64: dts: ti: Add reserved memory for watchdog
2023-07-17 4:07 [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x huaqian.li
2023-07-17 4:07 ` [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET huaqian.li
@ 2023-07-17 4:07 ` huaqian.li
2023-07-17 6:14 ` Krzysztof Kozlowski
2023-07-17 4:07 ` [PATCH v4 3/3] watchdog:rit_wdt: Add support for WDIOF_CARDRESET huaqian.li
2023-07-17 6:16 ` [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x Krzysztof Kozlowski
3 siblings, 1 reply; 19+ messages in thread
From: huaqian.li @ 2023-07-17 4:07 UTC (permalink / raw)
To: wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: huaqianlee, nm, vigneshr, kristo, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, jan.kiszka, baocheng.su,
Li Hua Qian, Krzysztof Kozlowski
From: Li Hua Qian <huaqian.li@siemens.com>
This patch adds a reserved memory for the TI AM65X platform watchdog to
reserve the specific info, triggering the watchdog reset in last boot,
to know if the board reboot is due to a watchdog reset.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
---
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi
index e26bd988e522..4bb20d493651 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi
@@ -63,6 +63,12 @@ rtos_ipc_memory_region: ipc-memories@a2000000 {
alignment = <0x1000>;
no-map;
};
+
+ /* To reserve the power-on(PON) reason for watchdog reset */
+ wdt_reset_memory_region: wdt-memory@a2200000 {
+ reg = <0x00 0xa2200000 0x00 0x1000>;
+ no-map;
+ };
};
leds {
@@ -718,3 +724,7 @@ &mcu_r5fss0_core1 {
<&mcu_r5fss0_core1_memory_region>;
mboxes = <&mailbox0_cluster1>, <&mbox_mcu_r5fss0_core1>;
};
+
+&mcu_rti1 {
+ memory-region = <&wdt_reset_memory_region>;
+};
--
2.34.1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH v4 3/3] watchdog:rit_wdt: Add support for WDIOF_CARDRESET
2023-07-17 4:07 [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x huaqian.li
2023-07-17 4:07 ` [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET huaqian.li
2023-07-17 4:07 ` [DONOTMERGE PATCH v4 2/3] arm64: dts: ti: Add reserved memory for watchdog huaqian.li
@ 2023-07-17 4:07 ` huaqian.li
2023-07-17 6:14 ` Krzysztof Kozlowski
2023-07-17 6:16 ` [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x Krzysztof Kozlowski
3 siblings, 1 reply; 19+ messages in thread
From: huaqian.li @ 2023-07-17 4:07 UTC (permalink / raw)
To: wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: huaqianlee, nm, vigneshr, kristo, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, jan.kiszka, baocheng.su,
Li Hua Qian
From: Li Hua Qian <huaqian.li@siemens.com>
This patch adds the WDIOF_CARDRESET support for the platform watchdog
whose hardware does not support this feature, to know if the board
reboot is due to a watchdog reset.
This is done via reserved memory(RAM), which indicates if specific
info saved, triggering the watchdog reset in last boot.
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
---
drivers/watchdog/rti_wdt.c | 48 ++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/drivers/watchdog/rti_wdt.c b/drivers/watchdog/rti_wdt.c
index ce8f18e93aa9..901109d979f0 100644
--- a/drivers/watchdog/rti_wdt.c
+++ b/drivers/watchdog/rti_wdt.c
@@ -14,6 +14,8 @@
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
+#include <linux/of.h>
+#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/types.h>
@@ -52,6 +54,11 @@
#define DWDST BIT(1)
+#define PON_REASON_SOF_NUM 0xBBBBCCCC
+#define PON_REASON_MAGIC_NUM 0xDDDDDDDD
+#define PON_REASON_EOF_NUM 0xCCCCBBBB
+#define RESERVED_MEM_MIN_SIZE 12
+
static int heartbeat = DEFAULT_HEARTBEAT;
/*
@@ -198,6 +205,11 @@ static int rti_wdt_probe(struct platform_device *pdev)
struct rti_wdt_device *wdt;
struct clk *clk;
u32 last_ping = 0;
+ struct device_node *node;
+ u32 reserved_mem_size;
+ struct resource res;
+ u32 *vaddr;
+ u64 paddr;
wdt = devm_kzalloc(dev, sizeof(*wdt), GFP_KERNEL);
if (!wdt)
@@ -284,6 +296,42 @@ static int rti_wdt_probe(struct platform_device *pdev)
}
}
+ node = of_parse_phandle(pdev->dev.of_node, "memory-region", 0);
+ if (node) {
+ ret = of_address_to_resource(node, 0, &res);
+ if (ret) {
+ dev_err(dev, "No memory address assigned to the region.\n");
+ goto err_iomap;
+ }
+
+ /*
+ * If reserved memory is defined for watchdog reset cause.
+ * Readout the Power-on(PON) reason and pass to bootstatus.
+ */
+ paddr = res.start;
+ reserved_mem_size = resource_size(&res);
+ if (reserved_mem_size < RESERVED_MEM_MIN_SIZE) {
+ dev_err(dev, "The size of reserved memory is too small.\n");
+ ret = -EINVAL;
+ goto err_iomap;
+ }
+
+ vaddr = memremap(paddr, reserved_mem_size, MEMREMAP_WB);
+ if (vaddr == NULL) {
+ dev_err(dev, "Failed to map memory-region.\n");
+ ret = -ENOMEM;
+ goto err_iomap;
+ }
+
+ if (vaddr[0] == PON_REASON_SOF_NUM &&
+ vaddr[1] == PON_REASON_MAGIC_NUM &&
+ vaddr[2] == PON_REASON_EOF_NUM) {
+ wdd->bootstatus |= WDIOF_CARDRESET;
+ }
+ memset(vaddr, 0, reserved_mem_size);
+ memunmap(vaddr);
+ }
+
watchdog_init_timeout(wdd, heartbeat, dev);
ret = watchdog_register_device(wdd);
--
2.34.1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET
2023-07-17 4:07 ` [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET huaqian.li
@ 2023-07-17 5:15 ` Guenter Roeck
2023-07-17 7:13 ` Li, Hua Qian
2023-07-17 6:13 ` Krzysztof Kozlowski
2023-07-17 7:17 ` Conor Dooley
2 siblings, 1 reply; 19+ messages in thread
From: Guenter Roeck @ 2023-07-17 5:15 UTC (permalink / raw)
To: huaqian.li, wim, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: huaqianlee, nm, vigneshr, kristo, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, jan.kiszka, baocheng.su,
Krzysztof Kozlowski, Conor Dooley, Rob Herring
On 7/16/23 21:07, huaqian.li@siemens.com wrote:
> From: Li Hua Qian <huaqian.li@siemens.com>
>
> TI RTI (Real Time Interrupt) Watchdog doesn't support to record the
> watchdog cause. Add a reserved memory to know the last reboot was caused
> by the watchdog card. In the reserved memory, some specific info will be
> saved to indicate whether the watchdog reset was triggered in last
> boot.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Reviewed-by: Conor Dooley <conor@kernel.org>
> Reviewed-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> .../bindings/watchdog/ti,rti-wdt.yaml | 41 +++++++++++++++++++
> 1 file changed, 41 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
> index fc553211e42d..4b66c4fcdf35 100644
> --- a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
> @@ -34,6 +34,20 @@ properties:
> power-domains:
> maxItems: 1
>
> + memory-region:
> + maxItems: 1
> + description:
> + Contains the watchdog reserved memory. It is optional.
> + In the reserved memory, the specified values, which are
> + PON_REASON_SOF_NUM(0xBBBBCCCC), PON_REASON_MAGIC_NUM(0xDDDDDDDD),
> + and PON_REASON_EOF_NUM(0xCCCCBBBB), are pre-stored at the first
> + 3 * 4 bytes to tell that last boot was caused by watchdog reset.
> + Once the PON reason is captured by driver(rti_wdt.c), the driver
> + is supposed to wipe the whole memory region. Surely, if this
> + property is set, at least 12 bytes reserved memory starting from
> + specific memory address(0xa220000) should be set. More please
> + refer to Example 2.
> +
> required:
> - compatible
> - reg
> @@ -59,3 +73,30 @@ examples:
> assigned-clocks = <&k3_clks 252 1>;
> assigned-clock-parents = <&k3_clks 252 5>;
> };
> +
> + - |
> + // Example 2 (Add reserved memory for watchdog reset cause):
> + /*
> + * RTI WDT in main domain on J721e SoC. Assigned clocks are used to
> + * select the source clock for the watchdog, forcing it to tick with
> + * a 32kHz clock in this case. Add a reserved memory to keep the
> + * watchdog reset cause persistent, which was be written in 12 bytes
> + * starting from 0xa2200000 by RTI Watchdog Firmware.
> + *
> + * Reserved memory should be defined as follows:
> + * reserved-memory {
> + * wdt_reset_memory_region: wdt-memory@a2200000 {
> + * reg = <0x00 0xa2200000 0x00 0x1000>;
> + * no-map;
> + * };
> + * }
> + */
> + watchdog@40610000 {
> + compatible = "ti,j7-rti-wdt";
> + reg = <0x40610000 0x100>;
> + clocks = <&k3_clks 135 1>;
> + power-domains = <&k3_pds 135 TI_SCI_PD_EXCLUSIVE>;
> + assigned-clocks = <&k3_clks 135 0>;
> + assigned-clock-parents = <&k3_clks 135 4>;
> + memory-region = <&wdt_reset_memory_region>;
> + };
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET
2023-07-17 4:07 ` [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET huaqian.li
2023-07-17 5:15 ` Guenter Roeck
@ 2023-07-17 6:13 ` Krzysztof Kozlowski
2023-07-17 6:15 ` Krzysztof Kozlowski
2023-07-17 7:17 ` Conor Dooley
2 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-17 6:13 UTC (permalink / raw)
To: huaqian.li, wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: huaqianlee, nm, vigneshr, kristo, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, jan.kiszka, baocheng.su,
Conor Dooley, Rob Herring
On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
> From: Li Hua Qian <huaqian.li@siemens.com>
>
> TI RTI (Real Time Interrupt) Watchdog doesn't support to record the
> watchdog cause. Add a reserved memory to know the last reboot was caused
> by the watchdog card. In the reserved memory, some specific info will be
> saved to indicate whether the watchdog reset was triggered in last
> boot.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Reviewed-by: Conor Dooley <conor@kernel.org>
> Reviewed-by: Rob Herring <robh@kernel.org>
What? Where did these happened? Please provide links.
> Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
> ---
> .../bindings/watchdog/ti,rti-wdt.yaml | 41 +++++++++++++++++++
> 1 file changed, 41 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
> index fc553211e42d..4b66c4fcdf35 100644
> --- a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
> @@ -34,6 +34,20 @@ properties:
> power-domains:
> maxItems: 1
>
> + memory-region:
> + maxItems: 1
> + description:
> + Contains the watchdog reserved memory. It is optional.
> + In the reserved memory, the specified values, which are
> + PON_REASON_SOF_NUM(0xBBBBCCCC), PON_REASON_MAGIC_NUM(0xDDDDDDDD),
> + and PON_REASON_EOF_NUM(0xCCCCBBBB), are pre-stored at the first
> + 3 * 4 bytes to tell that last boot was caused by watchdog reset.
> + Once the PON reason is captured by driver(rti_wdt.c), the driver
> + is supposed to wipe the whole memory region. Surely, if this
> + property is set, at least 12 bytes reserved memory starting from
> + specific memory address(0xa220000) should be set. More please
> + refer to Example 2.
> +
> required:
> - compatible
> - reg
> @@ -59,3 +73,30 @@ examples:
> assigned-clocks = <&k3_clks 252 1>;
> assigned-clock-parents = <&k3_clks 252 5>;
> };
> +
> + - |
> + // Example 2 (Add reserved memory for watchdog reset cause):
> + /*
> + * RTI WDT in main domain on J721e SoC. Assigned clocks are used to
> + * select the source clock for the watchdog, forcing it to tick with
> + * a 32kHz clock in this case. Add a reserved memory to keep the
> + * watchdog reset cause persistent, which was be written in 12 bytes
> + * starting from 0xa2200000 by RTI Watchdog Firmware.
> + *
> + * Reserved memory should be defined as follows:
> + * reserved-memory {
> + * wdt_reset_memory_region: wdt-memory@a2200000 {
> + * reg = <0x00 0xa2200000 0x00 0x1000>;
> + * no-map;
> + * };
> + * }
> + */
Integrate it with existing binding... there is really no need for new
example for one new property.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 3/3] watchdog:rit_wdt: Add support for WDIOF_CARDRESET
2023-07-17 4:07 ` [PATCH v4 3/3] watchdog:rit_wdt: Add support for WDIOF_CARDRESET huaqian.li
@ 2023-07-17 6:14 ` Krzysztof Kozlowski
0 siblings, 0 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-17 6:14 UTC (permalink / raw)
To: huaqian.li, wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: huaqianlee, nm, vigneshr, kristo, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, jan.kiszka, baocheng.su
On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
> From: Li Hua Qian <huaqian.li@siemens.com>
>
> This patch adds the WDIOF_CARDRESET support for the platform watchdog
> whose hardware does not support this feature, to know if the board
> reboot is due to a watchdog reset.
>
> This is done via reserved memory(RAM), which indicates if specific
> info saved, triggering the watchdog reset in last boot.
>
> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Really? Where?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [DONOTMERGE PATCH v4 2/3] arm64: dts: ti: Add reserved memory for watchdog
2023-07-17 4:07 ` [DONOTMERGE PATCH v4 2/3] arm64: dts: ti: Add reserved memory for watchdog huaqian.li
@ 2023-07-17 6:14 ` Krzysztof Kozlowski
0 siblings, 0 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-17 6:14 UTC (permalink / raw)
To: huaqian.li, wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: huaqianlee, nm, vigneshr, kristo, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, jan.kiszka, baocheng.su
On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
> From: Li Hua Qian <huaqian.li@siemens.com>
>
> This patch adds a reserved memory for the TI AM65X platform watchdog to
> reserve the specific info, triggering the watchdog reset in last boot,
> to know if the board reboot is due to a watchdog reset.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
You are joking from us and our process, right?
NAK.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET
2023-07-17 6:13 ` Krzysztof Kozlowski
@ 2023-07-17 6:15 ` Krzysztof Kozlowski
0 siblings, 0 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-17 6:15 UTC (permalink / raw)
To: huaqian.li, wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: huaqianlee, nm, vigneshr, kristo, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, jan.kiszka, baocheng.su,
Conor Dooley, Rob Herring
On 17/07/2023 08:13, Krzysztof Kozlowski wrote:
> On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
>> From: Li Hua Qian <huaqian.li@siemens.com>
>>
>> TI RTI (Real Time Interrupt) Watchdog doesn't support to record the
>> watchdog cause. Add a reserved memory to know the last reboot was caused
>> by the watchdog card. In the reserved memory, some specific info will be
>> saved to indicate whether the watchdog reset was triggered in last
>> boot.
>>
>> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> Reviewed-by: Conor Dooley <conor@kernel.org>
>> Reviewed-by: Rob Herring <robh@kernel.org>
>
> What? Where did these happened? Please provide links.
To clarify: that's a NAK.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x
2023-07-17 4:07 [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x huaqian.li
` (2 preceding siblings ...)
2023-07-17 4:07 ` [PATCH v4 3/3] watchdog:rit_wdt: Add support for WDIOF_CARDRESET huaqian.li
@ 2023-07-17 6:16 ` Krzysztof Kozlowski
2023-07-17 6:24 ` Li, Hua Qian
3 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-17 6:16 UTC (permalink / raw)
To: huaqian.li, wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: huaqianlee, nm, vigneshr, kristo, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, jan.kiszka, baocheng.su
On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
> From: Li Hua Qian <huaqian.li@siemens.com>
>
> The watchdog hardware of TI AM65X platform does not support
> WDIOF_CARDRESET feature, add a reserved memory to save the watchdog
> reset cause, to know if the board reboot is due to a watchdog reset.
>
> Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
> ---
> Changes in v4:
> - Fix the coding style.
> - Add usage note for the reserved memory.
> - Link to v3:
> https://lore.kernel.org/linux-watchdog/20230713095127.1230109-1-huaqian.li@siemens.com
Much more changed. You added example in the bindings which no one asked
for. Then you added multiple fake review tags to all the patches.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x
2023-07-17 6:16 ` [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x Krzysztof Kozlowski
@ 2023-07-17 6:24 ` Li, Hua Qian
2023-07-17 6:27 ` Krzysztof Kozlowski
2023-07-17 6:28 ` Li, Hua Qian
0 siblings, 2 replies; 19+ messages in thread
From: Li, Hua Qian @ 2023-07-17 6:24 UTC (permalink / raw)
To: wim@linux-watchdog.org, linux@roeck-us.net, conor+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org,
robh+dt@kernel.org
Cc: kristo@kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, huaqianlee@gmail.com, nm@ti.com,
vigneshr@ti.com, Kiszka, Jan,
linux-arm-kernel@lists.infradead.org, Su, Bao Cheng,
linux-watchdog@vger.kernel.org
On Mon, 2023-07-17 at 08:16 +0200, Krzysztof Kozlowski wrote:
> On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
> > From: Li Hua Qian <huaqian.li@siemens.com>
> >
> > The watchdog hardware of TI AM65X platform does not support
> > WDIOF_CARDRESET feature, add a reserved memory to save the watchdog
> > reset cause, to know if the board reboot is due to a watchdog
> > reset.
> >
> > Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
> > ---
> > Changes in v4:
> > - Fix the coding style.
> > - Add usage note for the reserved memory.
> > - Link to v3:
> >
> > https://lore.kernel.org/linux-watchdog/20230713095127.1230109-1-huaqian.li@siemens.com
>
> Much more changed. You added example in the bindings which no one
> asked
> for. Then you added multiple fake review tags to all the patches.
>
> Best regards,
> Krzysztof
>
Hi,
Sorry for the wrong statement. I missed some key information and
missunderstood `Reviewed-by`, I treated `Reviewed-by` as `Who
has reviewed`.
Best regards,
Li Hua Qian
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x
2023-07-17 6:24 ` Li, Hua Qian
@ 2023-07-17 6:27 ` Krzysztof Kozlowski
2023-07-17 6:34 ` Li, Hua Qian
2023-07-17 6:28 ` Li, Hua Qian
1 sibling, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-17 6:27 UTC (permalink / raw)
To: Li, Hua Qian, wim@linux-watchdog.org, linux@roeck-us.net,
conor+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
robh+dt@kernel.org
Cc: kristo@kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, huaqianlee@gmail.com, nm@ti.com,
vigneshr@ti.com, Kiszka, Jan,
linux-arm-kernel@lists.infradead.org, Su, Bao Cheng,
linux-watchdog@vger.kernel.org
On 17/07/2023 08:24, Li, Hua Qian wrote:
> On Mon, 2023-07-17 at 08:16 +0200, Krzysztof Kozlowski wrote:
>> On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
>>> From: Li Hua Qian <huaqian.li@siemens.com>
>>>
>>> The watchdog hardware of TI AM65X platform does not support
>>> WDIOF_CARDRESET feature, add a reserved memory to save the watchdog
>>> reset cause, to know if the board reboot is due to a watchdog
>>> reset.
>>>
>>> Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
>>> ---
>>> Changes in v4:
>>> - Fix the coding style.
>>> - Add usage note for the reserved memory.
>>> - Link to v3:
>>>
>>> https://lore.kernel.org/linux-watchdog/20230713095127.1230109-1-huaqian.li@siemens.com
>>
>> Much more changed. You added example in the bindings which no one
>> asked
>> for. Then you added multiple fake review tags to all the patches.
>>
>> Best regards,
>> Krzysztof
>>
> Hi,
>
> Sorry for the wrong statement. I missed some key information and
> missunderstood `Reviewed-by`, I treated `Reviewed-by` as `Who
> has reviewed`.
But you don't have even that information who has reviewed! Where do you
see any reviews coming from me for patch #2? Where do you see reviews
from Rob for patch #3?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x
2023-07-17 6:24 ` Li, Hua Qian
2023-07-17 6:27 ` Krzysztof Kozlowski
@ 2023-07-17 6:28 ` Li, Hua Qian
1 sibling, 0 replies; 19+ messages in thread
From: Li, Hua Qian @ 2023-07-17 6:28 UTC (permalink / raw)
To: wim@linux-watchdog.org, linux@roeck-us.net, conor+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org,
robh+dt@kernel.org
Cc: kristo@kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, huaqianlee@gmail.com, nm@ti.com,
vigneshr@ti.com, Kiszka, Jan,
linux-arm-kernel@lists.infradead.org, Su, Bao Cheng,
linux-watchdog@vger.kernel.org
On Mon, 2023-07-17 at 14:23 +0800, Hua Qian Li wrote:
> On Mon, 2023-07-17 at 08:16 +0200, Krzysztof Kozlowski wrote:
> > On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
> > > From: Li Hua Qian <huaqian.li@siemens.com>
> > >
> > > The watchdog hardware of TI AM65X platform does not support
> > > WDIOF_CARDRESET feature, add a reserved memory to save the
> > > watchdog
> > > reset cause, to know if the board reboot is due to a watchdog
> > > reset.
> > >
> > > Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
> > > ---
> > > Changes in v4:
> > > - Fix the coding style.
> > > - Add usage note for the reserved memory.
> > > - Link to v3:
> > >
> > > https://lore.kernel.org/linux-watchdog/20230713095127.1230109-1-huaqian.li@siemens.com
> >
> > Much more changed. You added example in the bindings which no one
> > asked
> > for. Then you added multiple fake review tags to all the patches.
> >
> > Best regards,
> > Krzysztof
> >
> Hi,
>
> Sorry for the wrong statement. I missed some key information and
> missunderstood `Reviewed-by`, I treated `Reviewed-by` as `Who
> has reviewed`.
>
> Best regards,
> Li Hua Qian
By the way, `Much more changes` came from the following message which
was commented on [PATCH v3 0/3] Add support for WDIOF_CARDRESET on TI
AM65x:
One thing I keep wondering about: What prevents the Linux kernel from
treating the special memory area like normal memory ? I would have
expected
some usage note, such as that the memory area must be reported as
reserved
to the kernel, but I don't see anything like that.
Guenter
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x
2023-07-17 6:27 ` Krzysztof Kozlowski
@ 2023-07-17 6:34 ` Li, Hua Qian
2023-07-17 6:43 ` Krzysztof Kozlowski
0 siblings, 1 reply; 19+ messages in thread
From: Li, Hua Qian @ 2023-07-17 6:34 UTC (permalink / raw)
To: wim@linux-watchdog.org, linux@roeck-us.net, conor+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org,
robh+dt@kernel.org
Cc: Su, Bao Cheng, kristo@kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, huaqianlee@gmail.com, nm@ti.com,
linux-arm-kernel@lists.infradead.org, Kiszka, Jan,
linux-watchdog@vger.kernel.org, vigneshr@ti.com
On Mon, 2023-07-17 at 08:27 +0200, Krzysztof Kozlowski wrote:
> On 17/07/2023 08:24, Li, Hua Qian wrote:
> > On Mon, 2023-07-17 at 08:16 +0200, Krzysztof Kozlowski wrote:
> > > On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
> > > > From: Li Hua Qian <huaqian.li@siemens.com>
> > > >
> > > > The watchdog hardware of TI AM65X platform does not support
> > > > WDIOF_CARDRESET feature, add a reserved memory to save the
> > > > watchdog
> > > > reset cause, to know if the board reboot is due to a watchdog
> > > > reset.
> > > >
> > > > Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
> > > > ---
> > > > Changes in v4:
> > > > - Fix the coding style.
> > > > - Add usage note for the reserved memory.
> > > > - Link to v3:
> > > >
> > > > https://lore.kernel.org/linux-watchdog/20230713095127.1230109-1-huaqian.li@siemens.com
> > >
> > > Much more changed. You added example in the bindings which no one
> > > asked
> > > for. Then you added multiple fake review tags to all the patches.
> > >
> > > Best regards,
> > > Krzysztof
> > >
> > Hi,
> >
> > Sorry for the wrong statement. I missed some key information and
> > missunderstood `Reviewed-by`, I treated `Reviewed-by` as `Who
> > has reviewed`.
>
> But you don't have even that information who has reviewed! Where do
> you
> see any reviews coming from me for patch #2? Where do you see reviews
> from Rob for patch #3?
>
> Best regards,
> Krzysztof
>
I got these information from my email thread. Anyway I made a stupid
mistake, sorry for wasting your time.
By the way, when you wrote the following in '[PATCH v3 1/3] dt-
bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET', you
were kind of saying that it looks good to you if I remove the extra
empty line, right?
In any case:
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Li Hua Qian
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x
2023-07-17 6:34 ` Li, Hua Qian
@ 2023-07-17 6:43 ` Krzysztof Kozlowski
2023-07-17 6:49 ` Li, Hua Qian
0 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-17 6:43 UTC (permalink / raw)
To: Li, Hua Qian, wim@linux-watchdog.org, linux@roeck-us.net,
conor+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
robh+dt@kernel.org
Cc: Su, Bao Cheng, kristo@kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, huaqianlee@gmail.com, nm@ti.com,
linux-arm-kernel@lists.infradead.org, Kiszka, Jan,
linux-watchdog@vger.kernel.org, vigneshr@ti.com
On 17/07/2023 08:34, Li, Hua Qian wrote:
> On Mon, 2023-07-17 at 08:27 +0200, Krzysztof Kozlowski wrote:
>> On 17/07/2023 08:24, Li, Hua Qian wrote:
>>> On Mon, 2023-07-17 at 08:16 +0200, Krzysztof Kozlowski wrote:
>>>> On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
>>>>> From: Li Hua Qian <huaqian.li@siemens.com>
>>>>>
>>>>> The watchdog hardware of TI AM65X platform does not support
>>>>> WDIOF_CARDRESET feature, add a reserved memory to save the
>>>>> watchdog
>>>>> reset cause, to know if the board reboot is due to a watchdog
>>>>> reset.
>>>>>
>>>>> Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
>>>>> ---
>>>>> Changes in v4:
>>>>> - Fix the coding style.
>>>>> - Add usage note for the reserved memory.
>>>>> - Link to v3:
>>>>>
>>>>> https://lore.kernel.org/linux-watchdog/20230713095127.1230109-1-huaqian.li@siemens.com
>>>>
>>>> Much more changed. You added example in the bindings which no one
>>>> asked
>>>> for. Then you added multiple fake review tags to all the patches.
>>>>
>>>> Best regards,
>>>> Krzysztof
>>>>
>>> Hi,
>>>
>>> Sorry for the wrong statement. I missed some key information and
>>> missunderstood `Reviewed-by`, I treated `Reviewed-by` as `Who
>>> has reviewed`.
>>
>> But you don't have even that information who has reviewed! Where do
>> you
>> see any reviews coming from me for patch #2? Where do you see reviews
>> from Rob for patch #3?
>>
>> Best regards,
>> Krzysztof
>>
> I got these information from my email thread. Anyway I made a stupid
> mistake, sorry for wasting your time.
>
> By the way, when you wrote the following in '[PATCH v3 1/3] dt-
> bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET', you
> were kind of saying that it looks good to you if I remove the extra
> empty line, right?
>
> In any case:
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This was patch 1. But you added my review to patch 2 also. Why then not
adding to patch 3? What logic is driving this?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x
2023-07-17 6:43 ` Krzysztof Kozlowski
@ 2023-07-17 6:49 ` Li, Hua Qian
0 siblings, 0 replies; 19+ messages in thread
From: Li, Hua Qian @ 2023-07-17 6:49 UTC (permalink / raw)
To: wim@linux-watchdog.org, linux@roeck-us.net, conor+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org,
robh+dt@kernel.org
Cc: vigneshr@ti.com, kristo@kernel.org, devicetree@vger.kernel.org,
Su, Bao Cheng, huaqianlee@gmail.com, nm@ti.com,
linux-arm-kernel@lists.infradead.org, Kiszka, Jan,
linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org
On Mon, 2023-07-17 at 08:43 +0200, Krzysztof Kozlowski wrote:
> On 17/07/2023 08:34, Li, Hua Qian wrote:
> > On Mon, 2023-07-17 at 08:27 +0200, Krzysztof Kozlowski wrote:
> > > On 17/07/2023 08:24, Li, Hua Qian wrote:
> > > > On Mon, 2023-07-17 at 08:16 +0200, Krzysztof Kozlowski wrote:
> > > > > On 17/07/2023 06:07, huaqian.li@siemens.com wrote:
> > > > > > From: Li Hua Qian <huaqian.li@siemens.com>
> > > > > >
> > > > > > The watchdog hardware of TI AM65X platform does not support
> > > > > > WDIOF_CARDRESET feature, add a reserved memory to save the
> > > > > > watchdog
> > > > > > reset cause, to know if the board reboot is due to a
> > > > > > watchdog
> > > > > > reset.
> > > > > >
> > > > > > Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
> > > > > > ---
> > > > > > Changes in v4:
> > > > > > - Fix the coding style.
> > > > > > - Add usage note for the reserved memory.
> > > > > > - Link to v3:
> > > > > >
> > > > > > https://lore.kernel.org/linux-watchdog/20230713095127.1230109-1-huaqian.li@siemens.com
> > > > >
> > > > > Much more changed. You added example in the bindings which no
> > > > > one
> > > > > asked
> > > > > for. Then you added multiple fake review tags to all the
> > > > > patches.
> > > > >
> > > > > Best regards,
> > > > > Krzysztof
> > > > >
> > > > Hi,
> > > >
> > > > Sorry for the wrong statement. I missed some key information
> > > > and
> > > > missunderstood `Reviewed-by`, I treated `Reviewed-by` as `Who
> > > > has reviewed`.
> > >
> > > But you don't have even that information who has reviewed! Where
> > > do
> > > you
> > > see any reviews coming from me for patch #2? Where do you see
> > > reviews
> > > from Rob for patch #3?
> > >
> > > Best regards,
> > > Krzysztof
> > >
> > I got these information from my email thread. Anyway I made a
> > stupid
> > mistake, sorry for wasting your time.
> >
> > By the way, when you wrote the following in '[PATCH v3 1/3] dt-
> > bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET',
> > you
> > were kind of saying that it looks good to you if I remove the extra
> > empty line, right?
> >
> > In any case:
> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> This was patch 1. But you added my review to patch 2 also. Why then
> not
> adding to patch 3? What logic is driving this?
>
> Best regards,
> Krzysztof
>
Much sorry again, please forget the wrong info in v4. I wrongly added
you to patch 2 only because I found you commented on patch 2 once.
Best regards,
Li Hua Qian
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET
2023-07-17 5:15 ` Guenter Roeck
@ 2023-07-17 7:13 ` Li, Hua Qian
0 siblings, 0 replies; 19+ messages in thread
From: Li, Hua Qian @ 2023-07-17 7:13 UTC (permalink / raw)
To: linux@roeck-us.net, wim@linux-watchdog.org, conor+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org
Cc: robh@kernel.org, conor@kernel.org, krzysztof.kozlowski@linaro.org,
kristo@kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, huaqianlee@gmail.com, nm@ti.com,
vigneshr@ti.com, Kiszka, Jan,
linux-arm-kernel@lists.infradead.org, Su, Bao Cheng,
linux-watchdog@vger.kernel.org
On Sun, 2023-07-16 at 22:15 -0700, Guenter Roeck wrote:
> On 7/16/23 21:07, huaqian.li@siemens.com wrote:
> > From: Li Hua Qian <huaqian.li@siemens.com>
> >
> > TI RTI (Real Time Interrupt) Watchdog doesn't support to record the
> > watchdog cause. Add a reserved memory to know the last reboot was
> > caused
> > by the watchdog card. In the reserved memory, some specific info
> > will be
> > saved to indicate whether the watchdog reset was triggered in last
> > boot.
> >
> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > Reviewed-by: Conor Dooley <conor@kernel.org>
> > Reviewed-by: Rob Herring <robh@kernel.org>
> > Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
>
> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Hi Guenter,
I'm going to integrate it with the existing binding as Krzysztof
suggested, could I leave you in `Reviewed-by`?
59 examples:
60 - |
61 /*
62 * RTI WDT in main domain on J721e SoC. Assigned clocks are
used to
63 * select the source clock for the watchdog, forcing it to
tick with
~ 64 * a 32kHz clock in this case. Add a reserved
memory(optional) to keep
~_ 65 * the watchdog reset cause persistent, which was be written
in 12 bytes
66 * starting from 0xa2200000 by RTI Watchdog Firmware.
67 *
68 * Reserved memory should be defined as follows:
69 * reserved-memory {
70 * wdt_reset_memory_region: wdt-memory@a2200000 {
71 * reg = <0x00 0xa2200000 0x00 0x1000>;
72 * no-map;
73 * };
74 * }
75 */
~ 76 #include <dt-bindings/soc/ti,sci_pm_domain.h>
+ 77
+ 78 watchdog@2200000 {
79 compatible = "ti,j7-rti-wdt";
~ 80 reg = <0x2200000 0x100>;
~ 81 clocks = <&k3_clks 252 1>;
~ 82 power-domains = <&k3_pds 252 TI_SCI_PD_EXCLUSIVE>;
~ 83 assigned-clocks = <&k3_clks 252 1>;
~ 84 assigned-clock-parents = <&k3_clks 252 5>;
85 memory-region = <&wdt_reset_memory_region>;
86 };
Best regards,
Li Hua Qian
>
> > ---
> > .../bindings/watchdog/ti,rti-wdt.yaml | 41
> > +++++++++++++++++++
> > 1 file changed, 41 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/watchdog/ti,rti-
> > wdt.yaml b/Documentation/devicetree/bindings/watchdog/ti,rti-
> > wdt.yaml
> > index fc553211e42d..4b66c4fcdf35 100644
> > --- a/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
> > +++ b/Documentation/devicetree/bindings/watchdog/ti,rti-wdt.yaml
> > @@ -34,6 +34,20 @@ properties:
> > power-domains:
> > maxItems: 1
> >
> > + memory-region:
> > + maxItems: 1
> > + description:
> > + Contains the watchdog reserved memory. It is optional.
> > + In the reserved memory, the specified values, which are
> > + PON_REASON_SOF_NUM(0xBBBBCCCC),
> > PON_REASON_MAGIC_NUM(0xDDDDDDDD),
> > + and PON_REASON_EOF_NUM(0xCCCCBBBB), are pre-stored at the
> > first
> > + 3 * 4 bytes to tell that last boot was caused by watchdog
> > reset.
> > + Once the PON reason is captured by driver(rti_wdt.c), the
> > driver
> > + is supposed to wipe the whole memory region. Surely, if this
> > + property is set, at least 12 bytes reserved memory starting
> > from
> > + specific memory address(0xa220000) should be set. More
> > please
> > + refer to Example 2.
> > +
> > required:
> > - compatible
> > - reg
> > @@ -59,3 +73,30 @@ examples:
> > assigned-clocks = <&k3_clks 252 1>;
> > assigned-clock-parents = <&k3_clks 252 5>;
> > };
> > +
> > + - |
> > + // Example 2 (Add reserved memory for watchdog reset cause):
> > + /*
> > + * RTI WDT in main domain on J721e SoC. Assigned clocks are
> > used to
> > + * select the source clock for the watchdog, forcing it to
> > tick with
> > + * a 32kHz clock in this case. Add a reserved memory to keep
> > the
> > + * watchdog reset cause persistent, which was be written in 12
> > bytes
> > + * starting from 0xa2200000 by RTI Watchdog Firmware.
> > + *
> > + * Reserved memory should be defined as follows:
> > + * reserved-memory {
> > + * wdt_reset_memory_region: wdt-memory@a2200000 {
> > + * reg = <0x00 0xa2200000 0x00 0x1000>;
> > + * no-map;
> > + * };
> > + * }
> > + */
> > + watchdog@40610000 {
> > + compatible = "ti,j7-rti-wdt";
> > + reg = <0x40610000 0x100>;
> > + clocks = <&k3_clks 135 1>;
> > + power-domains = <&k3_pds 135 TI_SCI_PD_EXCLUSIVE>;
> > + assigned-clocks = <&k3_clks 135 0>;
> > + assigned-clock-parents = <&k3_clks 135 4>;
> > + memory-region = <&wdt_reset_memory_region>;
> > + };
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET
2023-07-17 4:07 ` [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET huaqian.li
2023-07-17 5:15 ` Guenter Roeck
2023-07-17 6:13 ` Krzysztof Kozlowski
@ 2023-07-17 7:17 ` Conor Dooley
2023-07-17 7:23 ` Li, Hua Qian
2 siblings, 1 reply; 19+ messages in thread
From: Conor Dooley @ 2023-07-17 7:17 UTC (permalink / raw)
To: huaqian.li
Cc: wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt, huaqianlee,
nm, vigneshr, kristo, linux-watchdog, devicetree, linux-kernel,
linux-arm-kernel, jan.kiszka, baocheng.su, Krzysztof Kozlowski,
Conor Dooley, Rob Herring
[-- Attachment #1: Type: text/plain, Size: 830 bytes --]
On Mon, Jul 17, 2023 at 12:07:21PM +0800, huaqian.li@siemens.com wrote:
> From: Li Hua Qian <huaqian.li@siemens.com>
>
> TI RTI (Real Time Interrupt) Watchdog doesn't support to record the
> watchdog cause. Add a reserved memory to know the last reboot was caused
> by the watchdog card. In the reserved memory, some specific info will be
> saved to indicate whether the watchdog reset was triggered in last
> boot.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Reviewed-by: Conor Dooley <conor@kernel.org>
I don't recall actually replying to the earlier revisions of this
patchset, let alone providing a review, but this is not the email
address I would have used, had I done so.
> Reviewed-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET
2023-07-17 7:17 ` Conor Dooley
@ 2023-07-17 7:23 ` Li, Hua Qian
0 siblings, 0 replies; 19+ messages in thread
From: Li, Hua Qian @ 2023-07-17 7:23 UTC (permalink / raw)
To: conor.dooley@microchip.com
Cc: robh@kernel.org, huaqianlee@gmail.com, wim@linux-watchdog.org,
kristo@kernel.org, krzysztof.kozlowski+dt@linaro.org, Kiszka, Jan,
linux-kernel@vger.kernel.org, conor+dt@kernel.org,
conor@kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net,
krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, Su, Bao Cheng,
linux-arm-kernel@lists.infradead.org, nm@ti.com,
linux-watchdog@vger.kernel.org, vigneshr@ti.com
On Mon, 2023-07-17 at 08:17 +0100, Conor Dooley wrote:
> On Mon, Jul 17, 2023 at 12:07:21PM +0800,
> huaqian.li@siemens.com wrote:
> > From: Li Hua Qian <huaqian.li@siemens.com>
> >
> > TI RTI (Real Time Interrupt) Watchdog doesn't support to record the
> > watchdog cause. Add a reserved memory to know the last reboot was
> > caused
> > by the watchdog card. In the reserved memory, some specific info
> > will be
> > saved to indicate whether the watchdog reset was triggered in last
> > boot.
> >
> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> > Reviewed-by: Conor Dooley <conor@kernel.org>
>
> I don't recall actually replying to the earlier revisions of this
> patchset, let alone providing a review, but this is not the email
> address I would have used, had I done so.
>
> > Reviewed-by: Rob Herring <robh@kernel.org>
> > Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
Because of my mistake in v4, I feel very sad and sorry.
I was trying to fix it in v5, please ignore the v4 and jump to v5. Many
thanks!
Best regards,
Li Hua Qian
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2023-07-17 7:24 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-17 4:07 [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x huaqian.li
2023-07-17 4:07 ` [PATCH v4 1/3] dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET huaqian.li
2023-07-17 5:15 ` Guenter Roeck
2023-07-17 7:13 ` Li, Hua Qian
2023-07-17 6:13 ` Krzysztof Kozlowski
2023-07-17 6:15 ` Krzysztof Kozlowski
2023-07-17 7:17 ` Conor Dooley
2023-07-17 7:23 ` Li, Hua Qian
2023-07-17 4:07 ` [DONOTMERGE PATCH v4 2/3] arm64: dts: ti: Add reserved memory for watchdog huaqian.li
2023-07-17 6:14 ` Krzysztof Kozlowski
2023-07-17 4:07 ` [PATCH v4 3/3] watchdog:rit_wdt: Add support for WDIOF_CARDRESET huaqian.li
2023-07-17 6:14 ` Krzysztof Kozlowski
2023-07-17 6:16 ` [PATCH v4 0/3] Add support for WDIOF_CARDRESET on TI AM65x Krzysztof Kozlowski
2023-07-17 6:24 ` Li, Hua Qian
2023-07-17 6:27 ` Krzysztof Kozlowski
2023-07-17 6:34 ` Li, Hua Qian
2023-07-17 6:43 ` Krzysztof Kozlowski
2023-07-17 6:49 ` Li, Hua Qian
2023-07-17 6:28 ` Li, Hua Qian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).