From patchwork Mon Dec 18 09:40:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Buddhabhatti, Jay" X-Patchwork-Id: 18219 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1127652dyi; Mon, 18 Dec 2023 01:42:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7Ypnn9+8YkDcmvJAs72xQn1iYtmuvnpeyv8LkbdzpKjJWE8twfHwO7eDlnBzTnndQbhd2 X-Received: by 2002:a9d:6492:0:b0:6da:1b80:7e25 with SMTP id g18-20020a9d6492000000b006da1b807e25mr7263200otl.73.1702892546046; Mon, 18 Dec 2023 01:42:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702892546; cv=pass; d=google.com; s=arc-20160816; b=PNB3shpd5vMEoPeRpQxdQ0Dn3uWIwmfQFad3qqPgQ9B9u5E8yOmUJLDgCu4ySTpknr wW2LJjeheLkVMKUN+QDRAXQGl1qGExOpLc5P/t2tiqU27Bwc78zv0Jkh05tASn2o1ce2 kOwHi5GTlzvn+TPdb1OFIniCENQj3qCfQoulqB+Is+Krg53t+BX4e3JWJZZOJy/JJnwa VTbAy07/3ekzxzx1LRUATSFcV/mUd0WlmrHk99hdLE93K8XeRfSZ9xWvQEXs6RLdn46B PbBXr4gZ3MLFm0zi6bHmrUdRsJdr09KMSrDcofgz0A0ds/RpX72faTTsgtGJ+ep8aM+g XKKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=/iTkEo/GDkyrKe3swsv8RETdMWLOTt6O26f7yFrU1l0=; fh=EIRa5T5ig935kMTrBjMilyNn1EaRTjENIPYXRvLBmKY=; b=pYkecVwdCd1zel9JF/lRWcBU7jI1pvE1HjkXFmU7UTRPXlYuI0AzSeYKu52No7+rUD +VJvQgKNlvWP7D8kS1HRrUifEpxJpq6JaG4A1/7s0ngUOTCuvlTP2dKOB05bfdfutbeN r0FHiIFc7qWVHbSgpDmshJcoD2aMf8bpzcXzx8oTYK2+xZSyWpIOQqot979ABF1HqwKq 8Lsgp14m+5oDY6Oe07s+dnKwnogjlUcoyOJ8SSmOc4RCvu4l+PD5PsaLmyW7VZtew6sV UVnXKh1lBCvOgR9HHDl1meEB8B1lL1RX3XwoYs+AKCqhgU61SughQYOLuX9CogSKbE+x 8rAg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=vvIiVoLJ; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel+bounces-3258-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3258-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c3-20020a633503000000b005cd919bdadbsi2042897pga.666.2023.12.18.01.42.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 01:42:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3258-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=vvIiVoLJ; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel+bounces-3258-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3258-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6158DB21708 for ; Mon, 18 Dec 2023 09:42:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8882E12B7D; Mon, 18 Dec 2023 09:41:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="vvIiVoLJ" X-Original-To: linux-kernel@vger.kernel.org Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2060.outbound.protection.outlook.com [40.107.101.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6947811CA0 for ; Mon, 18 Dec 2023 09:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=djwz5RLceIr0pyCbX7ztiL4DdgvL3QxY5rZoDETtMofHLuuuqbfN+gMXlAaNcvpgHqxMnoxqptw7rilqJsiIBjbMK6e+UUAFI70ZvZykk8cjhTIcvIWGL/iJqIDgvVHsipM9RA6iuRFLsJs06F+ADFGD8jwjKt85uMHZbYq1AOMB8HjwTDvCZKFyXATkbsqXtFYZ8G6ZOtt4uyJOXbJ5Ey2U8+to5OTa20jEdUbTly+3cVeYXmHpUko5/QNZeIKC66C5nfu4wOYwCGVSKfZGkzM3p1/Hgta+5qRAF5m2lRO3fxXuu0dNnaHl8IZ0wfdaTXX2fYv135wGYIoOccRm6w== 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=/iTkEo/GDkyrKe3swsv8RETdMWLOTt6O26f7yFrU1l0=; b=QY1Zq32LjCMooqTsbvGRUAdinkaD9QEOyvtT52Qr3Tmvnx2iOaXOoCVuAEpUl0eFBkDmhpwBta1m+Tc17T5J69+C8rdEdgUDb5Saag0daV7L1KHcBjKvMDg2q37Tk9ckZUE49rHornH/7Y9+voY28DPwHZ9zPEjdhAUrzUsbkcAMy/GdiO2GJqsgst7SQZRNzfc1m8wygrOaBnbvy5O6RkCwThmBhIdA5mdAn9MVkNNU0P2Jh2QVYKT85luSkE6D00aNi8owb5p2Q7nEZjzZTptdNaUYA6bGwgRy0N13viG0TYzWp+BV5yswv96vXDL0H2HvBNqbsdUG+v3V57U+OA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linuxfoundation.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 (0) 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=/iTkEo/GDkyrKe3swsv8RETdMWLOTt6O26f7yFrU1l0=; b=vvIiVoLJjHM+tiCH+6tdAp34xqkoKebwgI5b6mPCOVoq/kxoBUZeGam+5le6nd6oqiHgMJVTD7OPsVCPir9+Eu7hDFYl65FwIPSBX4OXFR+X0aHHM1YmciVl0Z49Zf1T4GLLDR1Mq4akoFYFFivp824uhvMvuqbo3WobXUr8Z8g= Received: from DM6PR03CA0044.namprd03.prod.outlook.com (2603:10b6:5:100::21) by SN7PR12MB7980.namprd12.prod.outlook.com (2603:10b6:806:341::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.37; Mon, 18 Dec 2023 09:41:36 +0000 Received: from DS3PEPF000099DE.namprd04.prod.outlook.com (2603:10b6:5:100:cafe::a2) by DM6PR03CA0044.outlook.office365.com (2603:10b6:5:100::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38 via Frontend Transport; Mon, 18 Dec 2023 09:41:36 +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 DS3PEPF000099DE.mail.protection.outlook.com (10.167.17.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7113.14 via Frontend Transport; Mon, 18 Dec 2023 09:41:36 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) 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.2507.34; Mon, 18 Dec 2023 03:41:34 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 18 Dec 2023 03:41:06 -0600 Received: from xsjarunbala50.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Mon, 18 Dec 2023 03:41:05 -0600 From: Jay Buddhabhatti To: , , , , , , , , , , CC: , , Jay Buddhabhatti Subject: [PATCH 0/2] add platform check in event manager driver Date: Mon, 18 Dec 2023 01:40:07 -0800 Message-ID: <20231218094009.13528-1-jay.buddhabhatti@amd.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099DE:EE_|SN7PR12MB7980:EE_ X-MS-Office365-Filtering-Correlation-Id: f44f0df1-a8e5-43c7-d376-08dbffad8756 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R3wHFRBjDEwS6uNRvT645cz/1VFNqzsK2ZtWIEGvCeVdvvyrurmrB8d8/tOCqsTpZmu5QNHwoLiHBL/wqPHTC5yNi3NkVg1smQ/euTUXKNE51bbAMAE1TgG01DdfCQ07otwWRhnNUsisrEEcRDyjgpX4/A9E+as1GBFRnMOkDkRObjecF0bj+xjbY418NlVCDOLPGHVnfT2Y6rv0qZaYJxnXe5bCTAT50Fcfn3gpR6ZMJx0TvdIcizZ62Ztg98sn8+U7hgWqzUhpB8gBoJtH3REkAMpmrrHCc0WvKPHDV7nXMZBN9vxJZbXYimpbhEFiYFfIr0T45tV+FQRa2nYHmNDZX6Ee66+Rad3BxfC+CFA+frgKUn4A46xKmfydLm5b1n6v8D407cAK5uvhOEW/DSlcXDct9GCLkkVa04YZaWtPlJk2xM0rc52AAxR0RelxnvnZQ0D5z7xvnSQbQnhL1RcAh1rNT37cwtWhFEksbv414dd4kHx93CZ7dysYo+InniIG/t6GG6ezoP5j1q+pov2mfrjPwvmcAR9A8IHcOEgTp2fW5YEvbva8+AC1pE7XAbZFwIoyOoPS3dOTi0pd5mmL2h9LFS25xe7J9FJVs5VQN8LP58PItmilNm4Gwswl6t+KjDACD76NbkTgDxWbcZ2m8ppBjpETXL2Xt6Tc7zVLbhHqqPPY1xv6/D3e0yQyBMBbeEKUI5yfvEPPs5E7eKhX3iwoMU1kg2XgIGMshD851Swkg0Y3VnH+YrRDqs15zyzQIjipmuQvgAUBZTxuIjij5N8nVU6xUd3XDZOO+4k= 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:(13230031)(4636009)(136003)(39860400002)(346002)(376002)(396003)(230922051799003)(451199024)(1800799012)(82310400011)(186009)(64100799003)(46966006)(36840700001)(40470700004)(2906002)(86362001)(36756003)(4744005)(921008)(478600001)(36860700001)(83380400001)(47076005)(1076003)(356005)(82740400003)(81166007)(26005)(426003)(336012)(41300700001)(2616005)(5660300002)(40480700001)(54906003)(70586007)(70206006)(110136005)(8936002)(8676002)(4326008)(6636002)(316002)(40460700003)(44832011)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 09:41:36.7315 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f44f0df1-a8e5-43c7-d376-08dbffad8756 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: DS3PEPF000099DE.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7980 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785612254025035606 X-GMAIL-MSGID: 1785612254025035606 Some error event IDs for Versal and Versal NET are different. Both the platforms should access their respective error event IDs so use sub_family_code to check for Versal or Versal NET platform and check error IDs for respective platforms. Jay Buddhabhatti (2): firmware: xilinx: Export function to use in other module drivers: soc: xilinx: add check for platform drivers/firmware/xilinx/zynqmp.c | 3 ++- drivers/soc/xilinx/xlnx_event_manager.c | 25 ++++++++++++++++++++----- include/linux/firmware/xlnx-zynqmp.h | 22 ++++++++++++++++++---- 3 files changed, 40 insertions(+), 10 deletions(-) Acked-by: Michal Simek