From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68485C00144 for ; Fri, 29 Jul 2022 09:02:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235004AbiG2JC1 (ORCPT ); Fri, 29 Jul 2022 05:02:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbiG2JCY (ORCPT ); Fri, 29 Jul 2022 05:02:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D386B1EEEF; Fri, 29 Jul 2022 02:02:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6D99661D3E; Fri, 29 Jul 2022 09:02:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F7A3C433C1; Fri, 29 Jul 2022 09:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659085342; bh=1QoElUDidX1GYKTiNfimkmUJvoHtiH5T/3fdnEC8+Ro=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eRUOTG+poS4/2XqCPUtITn7QvBAS1tpvurhzioxH9HsMEYu+3H21IpL+Lwn/3ld1J ePEXMUz3J5FcjtLRbHMEbtDXYcoTa6ZAvP7AzO07uKFAmn2MtPBTQKdfNUR+yTIVza Nm/f13T2RndjkzhHTZmvoccKwrPGTeCd0VwngedI= Date: Fri, 29 Jul 2022 11:02:20 +0200 From: Greg KH To: "Rao, Appana Durga Kedareswara" Cc: Appana Durga Kedareswara rao , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, michal.simek@xilinx.com, derek.kiernan@xilinx.com, dragan.cvetic@xilinx.com, arnd@arndb.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, git@amd.com, git@xilinx.com, Appana Durga Kedareswara rao Subject: Re: [PATCH v2 4/4] drivers: misc: Add Support for TMR Inject IP Message-ID: References: <20220720060016.1646317-1-appana.durga.kedareswara.rao@amd.com> <20220720060016.1646317-5-appana.durga.kedareswara.rao@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 29, 2022 at 01:43:47PM +0530, Rao, Appana Durga Kedareswara wrote: > Hi Greg, > > Thanks for the review. > > On 28/07/22 7:54 pm, Greg KH wrote: > > On Wed, Jul 20, 2022 at 11:30:16AM +0530, Appana Durga Kedareswara rao wrote: > > > From: Appana Durga Kedareswara rao > > > > > > 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. > > > > We already have a fault-injection api, why are you not using that? > > > > Inorder to inject the error using TMR inject IP, The API > which injects the error should be executed from Processor LMB, > below sysfs entry calls microblaze core API xmb_inject_err() > which switches the processor to real mode and injects the error, > Please find the code corresponds to xmb_inject_err() API here: > https://www.spinics.net/lists/arm-kernel/msg991888.html You did not answer the question. Why are you not using the in-kernel fault injection userspace api and why have you created your own? Also, please use lore.kernel.org links when possible. thanks, greg k-h From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 40890C19F29 for ; Fri, 29 Jul 2022 09:09:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=t7Eo/UOoKOlIxbRrrlhZDcaCmIngh3YHZV9vCy0Dg+U=; b=pVWKP1tjmsND// mNLH16ZRbaq3eMvforU5Fng2cOndBSorn6HiDa2MNAi1CQrTnfP02DYb4CngXMGuVYpKo6r1heUvZ aZQNAQJ+vY3g13qxbHW3uO7g1Fd3xOG/w0Ll+kwelrB8PMtcAfFVafV8TAhMaYiF7WK8CoM6zP6zU J4SAkfsX5ZbKPOzgUDAI1LomP7DKnqVXFiiejj7vrzgdg+smGL0ZgwlgzxfpO5odRUpdLdAsDgL/9 5O5w2NkN7p0a7Psvj1bNkd2OQWR9izvTy3y8cWbofYUKaZ5/ggXVAEfvMMWYjNxe3PWMz8Qj/8AAx 5vwa+WwG04LLZXLPICoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oHLya-003eOx-4O; Fri, 29 Jul 2022 09:08:08 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oHLt2-003b1g-Dd for linux-arm-kernel@lists.infradead.org; Fri, 29 Jul 2022 09:02:29 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7635F61D42; Fri, 29 Jul 2022 09:02:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F7A3C433C1; Fri, 29 Jul 2022 09:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659085342; bh=1QoElUDidX1GYKTiNfimkmUJvoHtiH5T/3fdnEC8+Ro=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eRUOTG+poS4/2XqCPUtITn7QvBAS1tpvurhzioxH9HsMEYu+3H21IpL+Lwn/3ld1J ePEXMUz3J5FcjtLRbHMEbtDXYcoTa6ZAvP7AzO07uKFAmn2MtPBTQKdfNUR+yTIVza Nm/f13T2RndjkzhHTZmvoccKwrPGTeCd0VwngedI= Date: Fri, 29 Jul 2022 11:02:20 +0200 From: Greg KH To: "Rao, Appana Durga Kedareswara" Cc: Appana Durga Kedareswara rao , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, michal.simek@xilinx.com, derek.kiernan@xilinx.com, dragan.cvetic@xilinx.com, arnd@arndb.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, git@amd.com, git@xilinx.com, Appana Durga Kedareswara rao Subject: Re: [PATCH v2 4/4] drivers: misc: Add Support for TMR Inject IP Message-ID: References: <20220720060016.1646317-1-appana.durga.kedareswara.rao@amd.com> <20220720060016.1646317-5-appana.durga.kedareswara.rao@amd.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220729_020224_558809_238E3EB7 X-CRM114-Status: GOOD ( 17.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jul 29, 2022 at 01:43:47PM +0530, Rao, Appana Durga Kedareswara wrote: > Hi Greg, > > Thanks for the review. > > On 28/07/22 7:54 pm, Greg KH wrote: > > On Wed, Jul 20, 2022 at 11:30:16AM +0530, Appana Durga Kedareswara rao wrote: > > > From: Appana Durga Kedareswara rao > > > > > > 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. > > > > We already have a fault-injection api, why are you not using that? > > > > Inorder to inject the error using TMR inject IP, The API > which injects the error should be executed from Processor LMB, > below sysfs entry calls microblaze core API xmb_inject_err() > which switches the processor to real mode and injects the error, > Please find the code corresponds to xmb_inject_err() API here: > https://www.spinics.net/lists/arm-kernel/msg991888.html You did not answer the question. Why are you not using the in-kernel fault injection userspace api and why have you created your own? Also, please use lore.kernel.org links when possible. thanks, greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel