From patchwork Fri Feb 17 11:50:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nava kishore Manne X-Patchwork-Id: 13144596 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 5B8A5C64EC4 for ; Fri, 17 Feb 2023 11:51:52 +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:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nZMzuVrERxqJvp6uxggVh3BsGBtNqy4QgxnavxNvfaI=; b=VD8ydPX2CeQ3L7 hs1eteSXubWumNbmQH3Uw4xO8Tsxuu91Fhhyxida/cLhwAydiNaXz8++Ygf8HNsLB/bU2Kh1RxTgb djFB+ttuAbrTWPdGCk1VOcp9v+g/EfIAzqNETqOBl3//FuYCMEzmOdK/kqtvlJTt/bLmYoTZOXQzL OQTUO9X9z2OeldV8t7EjNL9lsEUfKbeR0YD0z/Sjq34Wd/FmMyEyxR0ambjxO62GAAj4i/abkCddL mkqS04CjvF1AOWyo+xx+YDbBZvXtsdsWBJIITciY6t2ZlO6cXKX+f8G1p64POwX9/ZTNxrq/ZxzsW fYLNbZC7QWuHXAwAuvsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSzGK-00E1p7-Fv; Fri, 17 Feb 2023 11:50:48 +0000 Received: from mail-dm3nam02on2062d.outbound.protection.outlook.com ([2a01:111:f400:7e83::62d] helo=NAM02-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSzGH-00E1nj-85 for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2023 11:50:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VlcXEINpgoIIsTC+RIV0P2zAcbO4segkrFXbOy0CCBxsOD5QeAly3havZig1uimFnnXn4VURI6MJ9RoXiMclch9+a7aTj1CJDTSjDjMAZpqloc11Om0aNWNS518R+YNdS4J2rx0AT0AL5Qg+1kb9guWuMZyYej27y/+Gj5JTr5lqEQGsMi+UONGklagWl4HkuxO51kGcwE97MIP3aSFobQA+mKZ9oDJBY2iw/BblGO/Rt/Bx/u8B6vrhDRiVuE9brEVA+BziPVeJ7AOuMuuc+X7F1+xMwjZUh6HLk4O+m/DtJXlDo7vd9HtLweuR2VKJewgJBDrjVHt+znETtqaIBQ== 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=eLdNlju/VXDC5VOBg0oOoI+m2ga+yiCplVGNdJBY3QY=; b=n+6PhkYp+M4sqRvdq3GZ4cG8earb+WEABRxdJiaux8cUOgTjn+m8r7d/r+uKt1koaLUDvBw7ZVDi0OIMHirCuV5h5NGyZHNklSFpeMOCk5km6iEG5/gIkEkg/y5j2HD2ufD0wLMMUD44whv1ZaTO46tMKNGg+PiE42fsB+1Q/DOs/+jdQAtdz+XnoQnV28aId0gTVd6JjdS0a1lQtZPyF/hzP96eRX1Ry69t6+2XZ5OBFsviftMOu8nqwSzGMMcrF7V9ZnvSSys4wQ9PuFpn028QN1SyBWVk/FPCuG+ubCOsKDtnXhavzEj2mOKpgenYK/jmScjYSkUPliSgeWmQLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xilinx.com 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=eLdNlju/VXDC5VOBg0oOoI+m2ga+yiCplVGNdJBY3QY=; b=llyDLxQKgyEpn03nmeyvvxQZyoKyviRsQ7xrc1lCMAf5GP+U/FbVUPFPMKW83E5P8hb0o9Z88QAr5QMBC7b4pJxOpQgx0pf/th4gdFQGTfiK2WjzGvdmM5+CizH1JifPxLeDaVxBlKZcd9UMgfv18eXbbugqmUMRVaHhMlWZ01E= Received: from BN9PR03CA0973.namprd03.prod.outlook.com (2603:10b6:408:109::18) by SA1PR12MB7125.namprd12.prod.outlook.com (2603:10b6:806:29f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.26; Fri, 17 Feb 2023 11:50:40 +0000 Received: from BN8NAM11FT036.eop-nam11.prod.protection.outlook.com (2603:10b6:408:109:cafe::eb) by BN9PR03CA0973.outlook.office365.com (2603:10b6:408:109::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.15 via Frontend Transport; Fri, 17 Feb 2023 11:50:40 +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 BN8NAM11FT036.mail.protection.outlook.com (10.13.177.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6111.17 via Frontend Transport; Fri, 17 Feb 2023 11:50:39 +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.34; Fri, 17 Feb 2023 05:50:39 -0600 From: Nava kishore Manne To: , , , , , , , , , , , , , , , , Subject: [PATCH v6 0/2]Adds status interface for zynqmp-fpga Date: Fri, 17 Feb 2023 17:20:34 +0530 Message-ID: <20230217115036.2617396-1-nava.kishore.manne@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: BN8NAM11FT036:EE_|SA1PR12MB7125:EE_ X-MS-Office365-Filtering-Correlation-Id: c7cfb536-4855-45ae-78b0-08db10dd3119 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jNx422BpzxaMSuVEOGf8X+R6z+y1396JNAMqSGE5neq4IPRsLcOK5wvtMnwiT+kcmzlrBFIkEhQ6DQHYez5iiRTC8F09HbOBVYvQlVuxC1nPO+B6VApH7rNaBta3jCpncAGzRgwoeBIxsAzEQ+UjniNw5++Th8CcEX09Ylew4xjpVZqAVSWXCq91eKq4JBV5IzwlzKvYQ2Nt3kTKSU9FfJ2KzKPtSkgox0kQBsn2AbQAH1gp08msX+dd3UdJKtM/Co/+3a0ckry0MDfZh6q5ESBjFUjwbAfsk9t4H3/3j3kfUBMvoewKuYGdkek7N9uKaD/IGsMAP1yEvFgsoJpFMs/IqMfbrlwRiyhsX8jeG1Q13yEOj8rhGaBVJrv9l8fw+8ndpyh68Jhq87zhjaYYIw1gX5fWc8QqugVtULzY1LRVZOhvFTYDHWHQqx9EdcDvM8PjVBvPcFRGkx8dI7nsR8CIB2ak6P2kQQOTN+wUdotwMh2DeoulT+ntn/Y7AfGXOngPDXjA3rOyYpGmzYbhkyj8YmRA6gIsqKTKvZ4rwI71Gejo7tXgjifhG0J3taHmr8KD5wvJ09WuXkaOxzqpNgCD1WRpM5MwYqWH+1K0Kymf9PVt9NZNh9eVhrJrFMItXncL/nDXi8akRa1XIl3fkxlQLkvwrGl9GLOMeTjQmeF93Vj9JrZfkuZ2M7WoP3b+Bkw+XPcghikpWu5hs4tEYSimAalSLe9qPG4SFVYjD9F/ONDeCULalj5ZeR71+IqG2NznsZN5rd8oHm9nmE/F4sb+cv1O5wTz5rORF4y+2ak= 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:(13230025)(4636009)(136003)(376002)(396003)(39860400002)(346002)(451199018)(40470700004)(46966006)(36840700001)(186003)(16526019)(6666004)(966005)(26005)(8676002)(1076003)(478600001)(70586007)(2616005)(316002)(8936002)(41300700001)(47076005)(5660300002)(7416002)(426003)(2906002)(4744005)(336012)(70206006)(36860700001)(82740400003)(81166007)(110136005)(921005)(356005)(36756003)(82310400005)(103116003)(40480700001)(86362001)(40460700003)(36900700001)(83996005)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2023 11:50:39.8908 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c7cfb536-4855-45ae-78b0-08db10dd3119 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: BN8NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7125 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230217_035045_547655_20D534B0 X-CRM114-Status: UNSURE ( 7.94 ) X-CRM114-Notice: Please train this message. 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 Adds status interface for zynqmp-fpga, It's a read only interface which allows the user to get the Programmable Logic(PL) status. -Device Initialization error. -Device internal signal error. -All I/Os are placed in High-Z state. -Device start-up sequence error. -Firmware error. For more details refer the ug570. https://docs.xilinx.com/v/u/en-US/ug570-ultrascale-configuration Nava kishore Manne (2): firmware: xilinx: Add pm api function for PL config reg readback fpga: zynqmp-fpga: Adds status interface .../ABI/testing/sysfs-driver-zynqmp-fpga | 72 +++++++++++++++++++ drivers/firmware/xilinx/zynqmp.c | 33 +++++++++ drivers/fpga/zynqmp-fpga.c | 23 ++++++ include/linux/firmware/xlnx-zynqmp.h | 11 +++ 4 files changed, 139 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-zynqmp-fpga