From patchwork Thu Oct 13 09:05:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nava kishore Manne X-Patchwork-Id: 13005771 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 4C234C43217 for ; Thu, 13 Oct 2022 09:07:28 +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=/p0Od8MGXI/mDoQfEY28UdjOcnZNSJL5P/XRRbWSkWY=; b=ja9UaA1tDE8HS1 D7TFAC2q9/WqnxajQ/cET1d6O8uodACnzKj5TSDlCGJAGXYI8+XpQ4NmEJygQKRHKbzKoQKCE7uDs Uuasz6fMrkdWamIZ7rM5qf2VrfouwvkVE8t6TUqEkbtu7xk3WaTO9H8vufNEt9fTOxAxFsl1bs2qA 2ADIXGZDvNiIoGhmnAIj7LBlvXl1vJ+hiWSOpxS15ISTf2yPRkfyorktCyDbJIrYFXegVH4z3KCGx I0bM0rgYLX6luWdoAF2lU+hXZBaBo05Z+OqFjeGgiuuz+jiz4CcYZ3m6X4TZJTAGs4tKrtIE0523S TsuGgNukXBHtc1urN3iA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiuAV-00BDHE-Ps; Thu, 13 Oct 2022 09:06:20 +0000 Received: from mail-bn1nam07on2082.outbound.protection.outlook.com ([40.107.212.82] helo=NAM02-BN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiuAR-00BDFT-4Y for linux-arm-kernel@lists.infradead.org; Thu, 13 Oct 2022 09:06:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IOPEzV0+cb/E2tQLK4lMXYDTAUrQoeNGD/npZW1wdV+052HQu3u4cdBmsm8+cbeQKjrzwvgi1TlwDTw+WOXiHquL77Ho5bQQR95S57ZklGRAP3gaGeAw6wYx66eMPzlW/I7/XruMfhaZOlMVXMrTHdBa/Evsvh1aGtOYcz5WIKd9c+tM6UOz23+WYHa7ntRwfgq9wTEhz+elob6mOSStjlD9md5HsxRchWYrfz0xHHhyKL8Va19eozquWn/C4yPK9C/9wkG5zygEsoi+lWguKsYUivEkgSYFum2C31VvSzpreKWQcYkUl+H87xZBynuNp6BFRUqrwKCMbyZE1FyoGA== 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=EmXzxqEBuj3gpagXI4+RNkW29vjKpxax3lU2E+1NuQ0=; b=fz++mkcv8qZoEQLzJ9kFNs9tUstLUKWlBzieizNf/KKdgZRpyBuFh9Qfa9lINjjJ+1YQDSUU9yt5989vnL6HourLd0eygiYU49XWQhm/3oKO37NEPs0qichm7uXroPtuOtBraeRTHwEof3fc0ZfPU5FJDbKTTZXmsEtmo+6WSP3GAzf/kk3VECeeLhPvWy6ZQCIQqgADZgBrU3TKyEZUHN61IKro5J48jVAkiHavJ8HEIfkIXc2Sk3NAJoI/ln0ff6unMukTivVqc0kZ3f8vbXhpNNV/KpwcRKW8TfEIkh1Z1skkZc1erI9PZrcfDUvkgWyCQEjWEKef0YJ2e+JEOA== 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=EmXzxqEBuj3gpagXI4+RNkW29vjKpxax3lU2E+1NuQ0=; b=2/iY8F/HVNXY67bfGwJAzzAy2peaKNZNOyqkbJfxYf1Po0SHYJpZk1jmG8zb+cxM9Y3qFBNK8UuLVj8wknsB8qlrqXAiaOoVNOXN1025jF1bk9qbjfM9i2SLX6EanViaIl+V1pwufRvaINvZcCrzJi0T6GRxAiBoBpfjpFbI3CA= Received: from MW4P223CA0008.NAMP223.PROD.OUTLOOK.COM (2603:10b6:303:80::13) by BL1PR12MB5707.namprd12.prod.outlook.com (2603:10b6:208:386::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.21; Thu, 13 Oct 2022 09:06:10 +0000 Received: from CO1NAM11FT013.eop-nam11.prod.protection.outlook.com (2603:10b6:303:80:cafe::23) by MW4P223CA0008.outlook.office365.com (2603:10b6:303:80::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.22 via Frontend Transport; Thu, 13 Oct 2022 09:06:09 +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 CO1NAM11FT013.mail.protection.outlook.com (10.13.174.227) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5723.20 via Frontend Transport; Thu, 13 Oct 2022 09:06:09 +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; Thu, 13 Oct 2022 04:06:04 -0500 From: Nava kishore Manne To: , , , , , , , , , , , , , , , , Subject: [PATCH v3 0/2] Adds status interface for zynqmp-fpga Date: Thu, 13 Oct 2022 14:35:54 +0530 Message-ID: <20221013090556.741357-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: CO1NAM11FT013:EE_|BL1PR12MB5707:EE_ X-MS-Office365-Filtering-Correlation-Id: 14215a16-1f5a-428e-c21b-08daacfa2b87 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BesGy3Z5FIHosLs2ovCPH5IPRA9iBIhAutDZuConcYx0gg/RXoVRd1FuHObiuFhl+FOEqN7Iv8sozhgoHc+Ed4dCD0JeJExG/lj88BjoNKOOnyHjV0vzlXkj7t953dFXwlk2kCc86/5uraqMVVVPoRmyrC34OCyiqqgM38DKTDTonI6Jb7CnsJ/gl8LLI0n++zyjyqvbk2WkAsg5E13XEkVfYM/s6/RmufGkF9Rdq756hBbAVOrN3fa/F/mASMYGvnDJR1vQo/Vyj76mazPaRY9HaAES8nZpmXJh/dhWK6sWqwX5TodG323K0D1VYofvUsBM1CSey1EE6SAp4uwWGquG4V15LBND+nlFniQjXpRczY1NGuRC+Xgim5UA5iTdOl7oliIkqJgN3/oyEVr7YYO8IHQct9sAIZvtiRHF7wQ0gLZJP1/Zff7ZRK7x1KRa25F/1Rg1CLGUAEJfFoc0LCD2IEdff547DtVMZULdUIA5jal4A1atg1JUmhk2BFw11XXEvciGYi99JWlacvmQWfVR2A3xAhUwKGwgbsFpMJvP/W33n31tx6cKA4Q8WXtR4Os2zyxVeueXpSc493FCgKTVbsW+54ndGcEfcgP49/HI6Mamc4BV3a6/QLwENnZ6cXYh5T7sELGfkUod9PG2knmBOnk0dmp56gIklEqd2TL/XGu4KwP76D7OYwYO7E22Ydiu9Jz+FG7KyUDtGfYw2E621H2BrCQQ5gOBArbocx+YGkMZ+zmurfX7hXQHDV/OkoLImUW3gCz9srnR1AuR3NrSOFato18nkxeIr5DtvloTSRMca7fgCo1SQFbM6gfrU7OF+lr+DPhMcNrPL844+E34OFKws4Vbn3YWNvtSn7f0euIY9z1NO/pkrPiIpyK/+xR9YPq1K4HxN9cpGAF2kX6xQmKl6QfILPdKeoaGkMeQi8acJRiUXmHzIBn+42XQ 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:(13230022)(4636009)(396003)(376002)(346002)(39860400002)(136003)(451199015)(46966006)(36840700001)(40470700004)(41300700001)(5660300002)(70206006)(70586007)(8676002)(8936002)(4744005)(2906002)(6666004)(316002)(26005)(478600001)(966005)(40460700003)(110136005)(40480700001)(82310400005)(36756003)(103116003)(36860700001)(47076005)(1076003)(86362001)(186003)(336012)(2616005)(16526019)(426003)(356005)(921005)(81166007)(82740400003)(83996005)(36900700001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2022 09:06:09.6746 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 14215a16-1f5a-428e-c21b-08daacfa2b87 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: CO1NAM11FT013.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5707 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221013_020615_510929_087C6375 X-CRM114-Status: UNSURE ( 6.96 ) 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 drivers/firmware/xilinx/zynqmp.c | 35 +++++++++++ drivers/fpga/zynqmp-fpga.c | 87 ++++++++++++++++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 11 ++++ 3 files changed, 133 insertions(+)