From: Greg KH <gregkh@linuxfoundation.org>
To: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
Cc: appanad@amd.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, michal.simek@xilinx.com,
derek.kiernan@xilinx.com, dragan.cvetic@xilinx.com,
arnd@arndb.de, linux-arm-kernel@lists.infradead.org, git@amd.com
Subject: Re: [PATCH v3 4/4] drivers: misc: Add Support for TMR Inject IP
Date: Thu, 8 Sep 2022 08:02:41 +0200 [thread overview]
Message-ID: <YxmFgblww9VfySnv@kroah.com> (raw)
In-Reply-To: <20220908042444.2866731-5-appana.durga.kedareswara.rao@amd.com>
On Thu, Sep 08, 2022 at 09:54:44AM +0530, Appana Durga Kedareswara rao wrote:
> The Triple Modular Redundancy(TMR) provides functional fault injection by
> changing selected MicroBlaze instructions, which provides the possibility
> to verify that the TMR subsystem error detection and fault recovery logic
> is working properly, provided sysfs entries which allow the user to inject
> a fault.
>
> Usage:
> echo 1 > /sys/kernel/debug/xtmr_inject/inject_fault/inject_fault
>
> Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
> ---
> Changes for v3:
> --> Updated the driver to use fault-injection api as suggested by Greg.
> --> Updated the Kconfig to compile the driver as a module.
> Changes for v2:
> --> Fixed Month in the sysfs description.
> --> Fixed line over 80 char in driver.
> --> Replaced kstrtol with kstrtoul as suggested by Michal.
> --> Added error check for xlnx,magic value.
>
> MAINTAINERS | 6 +
> drivers/misc/Kconfig | 10 ++
> drivers/misc/Makefile | 1 +
> drivers/misc/xilinx_tmr_inject.c | 181 +++++++++++++++++++++++++++++++
> 4 files changed, 198 insertions(+)
> create mode 100644 drivers/misc/xilinx_tmr_inject.c
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 5fc5ec13985e..1207effa8e15 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -13284,6 +13284,12 @@ F: Documentation/ABI/testing/sysfs-driver-xilinx-tmr-manager
> F: Documentation/devicetree/bindings/misc/xlnx,tmr-manager.yaml
> F: drivers/misc/xilinx_tmr_manager.c
>
> +MICROBLAZE TMR INJECT
> +M: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
> +S: Supported
> +F: Documentation/devicetree/bindings/misc/xlnx,tmr-inject.yaml
> +F: drivers/misc/xilinx_tmr_inject.c
> +
> MICROCHIP AT91 DMA DRIVERS
> M: Ludovic Desroches <ludovic.desroches@microchip.com>
> M: Tudor Ambarus <tudor.ambarus@microchip.com>
> diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
> index 1508cc29b05a..7b1930a7f18a 100644
> --- a/drivers/misc/Kconfig
> +++ b/drivers/misc/Kconfig
> @@ -506,6 +506,16 @@ config TMR_MANAGER
>
> Say N here unless you know what you are doing.
>
> +config TMR_INJECT
> + tristate "Select TMR Inject"
> + depends on TMR_MANAGER && FAULT_INJECTION
But if CONFIG_FAULT_INJECTION_DEBUG_FS is not enabled, does this driver
actually do anything? Why not just depend on that option?
thanks,
greg k-h
next prev parent reply other threads:[~2022-09-08 6:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-08 4:24 [PATCH v3 0/4] drivers: misc: Add support for TMR Manager and Inject IPs Appana Durga Kedareswara rao
2022-09-08 4:24 ` [PATCH v3 1/4] dt-bindings: misc: tmr-manager: Add device-tree binding for TMR Manager Appana Durga Kedareswara rao
2022-09-08 4:24 ` [PATCH v3 2/4] drivers: misc: Add Support " Appana Durga Kedareswara rao
2022-09-08 4:24 ` [PATCH v3 3/4] dt-bindings: misc: tmr-inject: Add device-tree binding for TMR Inject Appana Durga Kedareswara rao
2022-09-08 4:24 ` [PATCH v3 4/4] drivers: misc: Add Support for TMR Inject IP Appana Durga Kedareswara rao
2022-09-08 6:02 ` Greg KH [this message]
2022-09-08 7:05 ` Rao, Appana Durga Kedareswara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YxmFgblww9VfySnv@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=appana.durga.kedareswara.rao@amd.com \
--cc=appanad@amd.com \
--cc=arnd@arndb.de \
--cc=derek.kiernan@xilinx.com \
--cc=devicetree@vger.kernel.org \
--cc=dragan.cvetic@xilinx.com \
--cc=git@amd.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox