From patchwork Thu Sep 8 04:24:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Appana Durga Kedareswara rao X-Patchwork-Id: 12969638 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 1D4E5C38145 for ; Thu, 8 Sep 2022 04:26:13 +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:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tBr9j8LsynfNrsES26qCVhCaTXulFG+570zt5f9BwIU=; b=VymYLyQYMFY7k+ gVEnm+qx4JrjTxr+ETdBp2VlAMZGfHjYO8x5mgQgYZK8nhR+6+hnyQ8oIxlBLIQtUJRXh/S1BMGDJ 7kvqLY4OzGNf5P5YTwyYp/4D9NEkS1a5Bl8X/0qFywAgIYPm5d+u4dQL2x84oa+41M7K9thP8pLnp QhxKTFTXohtKvx0aiH9xTyBl0e2FNJXG1o94xuVpPYwGPeSmcoP+jJY0EWHcT3fMEeBM5vFaT7XhO eljeUHUjmsFcfIh4bTWll+9z7e6Gxeu1aaDKKy6pZPjZI6jf7OF5WqzQreEDNILd0PcD3IC2Pnx00 X3NFl5NfmkGfJd2ZyulQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oW964-00G6pf-Qg; Thu, 08 Sep 2022 04:25:01 +0000 Received: from mail-bn8nam12on2057.outbound.protection.outlook.com ([40.107.237.57] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oW960-00G6jd-Lp for linux-arm-kernel@lists.infradead.org; Thu, 08 Sep 2022 04:24:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eJ6C1/NTwxD1NRlSG8c5GHQjt6681kctNiN9zE92+jHGvUQIyS1v9yqtCIXBHRwfhon3uY8T4y+PP9U1L7xf5GnE5FxjXlb/JLydL9lUa4ZX0IaR/YWMPWwzqIxZu2xjKNqZMG2fGzupA/kJiM9/OhVCIGflhG3FxEwGW2hDRSLpDXhmViZLUlntQZmaTesvZ7jSF/ZZcUZ6BVJYufzaDHIjBnfSVn7rZ6OHgU5Coo/BYgU7vtL+Hs7K3qrijS+vHFvKS6jgJDC1g1pwKAeIfd20cxRurOjqIdfmPvFe44MegAkMRo3xLE9lrZCAi7N0XOYKbCaK3amlOoLIyjyv2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=830zZhuWYwq57FfMJZ5KVJ7BCOXgEFpyVpIPxzCY4uw=; b=Tit72BCYkLdAUwRFcoo2JpKIYPbWv3K6ZkX/Z+RASmyvR/eu7XjbFCRTbFxC5MouRZdFZS7z7Gw0e1RQyNcCg4ea+vWjK57ueshyPCjRc59LBlXmBu+O3P8ey3DLC03c9enEHcVz0PndvIz1xzm1MkhU54OJVqkG8LQNRNq5oNP9CUUrZ8BWzQ8LtWsWI32qM6ao9hp/qwbmKfuPoq+Uqna/h/7nWsppT6n/0uHvuSQLgLpg99I/OLG5PIKHcFApj9I6L0VmlCi9V5nwS4SaqFO8NMx/vLMGs5MNSCPzsU6hDCkYI+JeWPvWzNp8jfiGp+KF/wvVm5IKoNwpRpA1bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=830zZhuWYwq57FfMJZ5KVJ7BCOXgEFpyVpIPxzCY4uw=; b=uMfZmqqsPYIryJ3o5eHXn/5v7icsL+J8ZNhibfJXvBh4QwQFDrVoy1HRx2jyTiNkc2WMQldyyuUdPXzyMbfOzo3eL5RDyr7g2xvE1BW4eDatnFIBzDDHyW5Bo5PGurf85prf9AoegTbVI3bKdSqSS7mMSwx/+3rA9XG8YHv5Wcs= Received: from DM5PR06CA0090.namprd06.prod.outlook.com (2603:10b6:3:4::28) by DM6PR12MB4563.namprd12.prod.outlook.com (2603:10b6:5:28e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10; Thu, 8 Sep 2022 04:24:49 +0000 Received: from DM6NAM11FT035.eop-nam11.prod.protection.outlook.com (2603:10b6:3:4:cafe::47) by DM5PR06CA0090.outlook.office365.com (2603:10b6:3:4::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.12 via Frontend Transport; Thu, 8 Sep 2022 04:24:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT035.mail.protection.outlook.com (10.13.172.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5612.13 via Frontend Transport; Thu, 8 Sep 2022 04:24:49 +0000 Received: from localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Wed, 7 Sep 2022 23:24:47 -0500 From: Appana Durga Kedareswara rao To: , , , , , , , , , CC: , Subject: [PATCH v3 0/4] drivers: misc: Add support for TMR Manager and Inject IPs Date: Thu, 8 Sep 2022 09:54:40 +0530 Message-ID: <20220908042444.2866731-1-appana.durga.kedareswara.rao@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT035:EE_|DM6PR12MB4563:EE_ X-MS-Office365-Filtering-Correlation-Id: ad382f09-5a78-4a27-6b5c-08da91521183 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QblyKjSOCcFwwK0R5PWC9GLxCntMlrAl8w6E8qi8+JSifUnzS67G6Ui7EiFu+wufiqDdTi6sgncMmgNNoN1bwLI+uR3c+Jx3HOmAYWsxBcdpidihki14smhPNvdDCEQZczQUQ+jvGesBh3AnzcakfFPeZHGuDlQqRiKHE2Xyb6WHHljmVq3lNFRu8DHf+CYgowkLoTjYr9jX/V6KsZzuvq5JAFlZRBqqSr3dRRB01EsgM4hOJCMaXVNa74o2wW1L0cCSgMMra011NViF8EZcimz22Gs0qZRqSZy/lpm9sHp6itJ+LtBfARdOnd3ghjrFHuFD72iE0mATRZWowId3a45odah7LycbLNcXka09Kp7MUD149tfSB4ubwe4ETAMU/bur83k+TiEzaJZsl+lngyE5w1wBp5suvoPs31f9c2uyk1D89v1yzXBtLG26WjMozNgkKiQE2AqkxVT49iYLhftvrd94dOlKcWhcLZ5xaZ7hqjIc+KEPlY84IdMIYiuPQ8HW4D3JfSvf5Qo+CNihpSqKuyR9+1wBsxf11XDGEYa9VAkBfMVdn2OKjUnIPTmgzL11Z16dxc4AxxcqR3yaon7kxB7sqw61ODa0/1eFmQBkumCnQkJdkR5srGRy/mbDS+BicPV0tmikZuJGC1GC9S0dl3MvqgCGv2LrmlH/UhSnWBELzrC4sWm320sPILpwIsOycavB4XaFqdnMezz78nd+4t0Z9JRCZ+HC2cv8P/gYzCSayKq9UsbTEfO4ZohzQeqkjv/zyEkjP8gVB2kM3sW69ncvSiH+xes1GcHyCMNAA5nvHzLmJCA8vFnHLQAR71llIBSGF5GMz7QARB2b9jjzvVxuGVYX05XAVQHcysU= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(396003)(39860400002)(136003)(346002)(376002)(36840700001)(40470700004)(46966006)(336012)(4326008)(70206006)(5660300002)(40460700003)(8676002)(70586007)(81166007)(82740400003)(921005)(356005)(316002)(36860700001)(6666004)(41300700001)(478600001)(103116003)(966005)(83380400001)(82310400005)(86362001)(36756003)(40480700001)(26005)(186003)(54906003)(110136005)(2616005)(47076005)(1076003)(16526019)(426003)(2906002)(8936002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2022 04:24:49.2580 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ad382f09-5a78-4a27-6b5c-08da91521183 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT035.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4563 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220907_212456_835923_861A6AE7 X-CRM114-Status: GOOD ( 13.62 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series adds support for TMR Manager and TMR Inject IPs. The TMR Manager is responsible for handling the TMR subsystem state, including fault detection and error recovery. The core is triplicated in each of the sub-blocks in the TMR subsystem, and provides majority voting of its internal state. The TMR Inject core 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. For more details about TMR Manager and Inject IPs please refer PG268[1]. [1]: https://docs.xilinx.com/r/en-US/pg268-tmr/Triple-Modular-Redundancy-TMR-v1.0-LogiCORE-IP-Product-Guide-PG268 Appana Durga Kedareswara rao (4): dt-bindings: misc: tmr-manager: Add device-tree binding for TMR Manager drivers: misc: Add Support for TMR Manager dt-bindings: misc: tmr-inject: Add device-tree binding for TMR Inject drivers: misc: Add Support for TMR Inject IP .../testing/sysfs-driver-xilinx-tmr-manager | 16 ++ .../bindings/misc/xlnx,tmr-inject.yaml | 47 ++++ .../bindings/misc/xlnx,tmr-manager.yaml | 47 ++++ MAINTAINERS | 13 + drivers/misc/Kconfig | 20 ++ drivers/misc/Makefile | 4 +- drivers/misc/xilinx_tmr_inject.c | 181 ++++++++++++++ drivers/misc/xilinx_tmr_manager.c | 222 ++++++++++++++++++ 8 files changed, 549 insertions(+), 1 deletion(-) create mode 100644 Documentation/ABI/testing/sysfs-driver-xilinx-tmr-manager create mode 100644 Documentation/devicetree/bindings/misc/xlnx,tmr-inject.yaml create mode 100644 Documentation/devicetree/bindings/misc/xlnx,tmr-manager.yaml create mode 100644 drivers/misc/xilinx_tmr_inject.c create mode 100644 drivers/misc/xilinx_tmr_manager.c