Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp151613imn; Fri, 29 Jul 2022 02:51:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tJ3zXp6tENOdGZXYTf4UiZ+DnHH4ykfNjbqhgYufTUQTyfOV+u55nB5zlsaK5K/DmrXLQ0 X-Received: by 2002:a17:906:9c82:b0:6df:baa2:9f75 with SMTP id fj2-20020a1709069c8200b006dfbaa29f75mr2312552ejc.762.1659088306816; Fri, 29 Jul 2022 02:51:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659088306; cv=none; d=google.com; s=arc-20160816; b=e7ltlH9cGDmzujaFhRy3xFWgkrKLG/YmjLDVyrtyeabtuhMHhpSfzpWny7szRhMx09 BU/eP4CelfrxljEMMzkq0tUCWkIY0xZT8NukISMLrw4QSoETYIMjYpQbIjmp3rFpRQgB SQa9vX8zYpBj5Ibiiu0DTRmmxGFPepNl7JPAW36VCe6xmbwsMh9SrqyvQn3Ud9hwrsOy 7ocUzDbMFbFz7aFSSc1VxlTz45svSEuYrXJYmx4h1KuhBvxGEiw5b2saiy3XIBsRRYwr iUgWAm0xU+fHLtjlAOy4JFY152OWvJP+6T6Yj7g6LW27p6BDKHZncUhJNwGKJaEWuQY4 0Sew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9dtxUvdiHLfcv/wVqt3yYkX7srrGej2+12BjHMPQVNc=; b=dbVWmuXrdxnFQ3+v4KVim+mvkd8Mqic7Gc9gV5NgAC0os2QoAG/tUwCRMBej3+db4m +AGyS2rb7ONxYyOH6qHlNBPXeY4HSXftvYgF83zXXK8WNNx8QSDO/Ynbog9Rc/7tg3C6 hny6lhNPDl389kyJ/bWCXGAu06SyjJjJNqhjc0vwyigQhcP/xpYizizAXlMRUVLUD6Tq avvwx832KlMk7czf2uydImD3n6At4/X62o1S8qjw5J9KzVuXcCn83MpzQMf5ysa4qNjK NYIjLO8WysFJQQcUtdXhCUi0Hspn7R2chKuVp2EoEQQbUSIOqE9fClTiE28FKFCTMu8l HiqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eRUOTG+p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v15-20020a17090606cf00b007136091f459si2668010ejb.302.2022.07.29.02.51.21; Fri, 29 Jul 2022 02:51:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eRUOTG+p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234767AbiG2JC1 (ORCPT + 99 others); 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: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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