From patchwork Fri Jul 29 19:35:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radhey Shyam Pandey X-Patchwork-Id: 12932797 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 D1BBEC00144 for ; Fri, 29 Jul 2022 19:38:02 +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=HLSTtzG6agAZH4aJauTmZOc/KLhni8xgS2Sqq1ZQw4c=; b=tryRigK3kRw85N FLCh1CvIJzj+w2AiMH2MLL7LCKRNospf2kKtNgeyEbWK2vkeUW05ybuK1OSu6j20PL9VuOwiSwHGi Wx5/ySufDuRloT8r33eUhpfljsSpLtigBTtuAO9LjI1RGwC/6I/yMx0nR45s+F8OORNcWyA/vrKm0 nyUsjhhXLlAU/i50UNKwslHqqKWQuP/OSf10BYyAxUYV9qYT8QSNi1tvjkPD7d6ub+3fJZrRRshic mj8D8Ny9A4LsgSfsYkYDA/VoRAUTGGJQFY+37ZcZgz3/uYxBmb7VDNFDCbIuy2tjRYJd9bLGhZ4P8 87gmVwvDqfk3Qj2q+Rtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oHVn5-00BXns-ND; Fri, 29 Jul 2022 19:36:55 +0000 Received: from mail-dm6nam04on2072.outbound.protection.outlook.com ([40.107.102.72] helo=NAM04-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oHVn2-00BXkq-KW for linux-arm-kernel@lists.infradead.org; Fri, 29 Jul 2022 19:36:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iFxyiSgi3mim3GudfPoLjAPaYn/0UjKm6oxyQOLFCXbIuGPSKSvYeDGL/QBeKc7wTrquQs9ZFVwcOsIpDfdoPdIQPoQ1/mZf9BD4H0632O8JoJbfB/32xf8YJwFb92gDujZn6vrUF8uDzkW3XKIwHi6Ax71rw5zyvL3i2yqm24rH+s417NoHCcoHJFiefei9B0R31aJN4zEHEdj4yHvwSPK19l9YbSikFC0E8u+K9+J7eCt9e+tiyw0b/SsFLJr9Yxad7BeriJaeK1M4OFRliXxFgwAny5F3bAO06SiE6xfyM7Buri0C6+HxpSqBUdZVvL+Tiu9RZZ1pgE6Z76hYdw== 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=5fPu1LfLRvFBdFXPcfaT+Z3uOTnt5Q5hwhjTjhjquEw=; b=DWH4JRvrbFQ4mpcEJRB3CbIb7nR/LdpEHhIvZQfxOlLGqFG6+c7tDv1O+m6mpF4Ldc6DpwkMc2yov3Wqxx1P3vNVzxwwAim7C/jlzqyLgE5uG+PZC3giuGXPvBy5ahxcAvxZAQumycK5GLckXlFqmz+I1gSmv87FhxEKuOY4u3YLD7d1wiKgcbdK1/YLQF31ZX+dKGMi2rlUOZgGlYh5ZGt9KAqqnqUJKetcO3q82KVL1an5yWOu31auCoq7NnN9qubizM04OUkxbqsledVdHrd2YIluTmEqjxchBR271aU8JDuuLM9fhWt0qtbKFUkVWeeAWDFmBwmHu07i+1fuew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=amd.com smtp.mailfrom=xilinx.com; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5fPu1LfLRvFBdFXPcfaT+Z3uOTnt5Q5hwhjTjhjquEw=; b=PbKB0sSjbiMz1SZOK9eSwJZnH3ys2GRWtrwOsuMoV3VKwIRmS3P3GjsdXFUBmnrMTPlhMT+zFEKc3EKTccF88xgvyQqZ9+AVvREEpHmIDGlijFYd1xu4Q6DVJUsxaEwVQ+DQuvr4sJLETzBqMAtITVIwBoAlOPTTOhM1mN5Mo9c= Received: from DM5PR08CA0041.namprd08.prod.outlook.com (2603:10b6:4:60::30) by DM5PR02MB2315.namprd02.prod.outlook.com (2603:10b6:3:4f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19; Fri, 29 Jul 2022 19:36:46 +0000 Received: from DM3NAM02FT038.eop-nam02.prod.protection.outlook.com (2603:10b6:4:60:cafe::9c) by DM5PR08CA0041.outlook.office365.com (2603:10b6:4:60::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.20 via Frontend Transport; Fri, 29 Jul 2022 19:36:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=fail action=quarantine header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT038.mail.protection.outlook.com (10.13.5.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5482.10 via Frontend Transport; Fri, 29 Jul 2022 19:36:46 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 29 Jul 2022 12:36:45 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 29 Jul 2022 12:36:45 -0700 Received: from [172.23.64.3] (port=58451 helo=xhdvnc103.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oHVmv-000Gvt-Bu; Fri, 29 Jul 2022 12:36:45 -0700 Received: by xhdvnc103.xilinx.com (Postfix, from userid 13245) id 3050F105461; Sat, 30 Jul 2022 01:06:43 +0530 (IST) From: Radhey Shyam Pandey To: , , , , , , , CC: , , , , , "Radhey Shyam Pandey" Subject: [PATCH v2 net-next 0/2] macb: add zynqmp SGMII dynamic configuration support Date: Sat, 30 Jul 2022 01:05:48 +0530 Message-ID: <1659123350-10638-1-git-send-email-radhey.shyam.pandey@amd.com> X-Mailer: git-send-email 2.1.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f953b9d-673b-4efc-d18b-08da7199acc6 X-MS-TrafficTypeDiagnostic: DM5PR02MB2315:EE_ X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DzmkALyFWo49crWOKNY+SGc5F8b1VeKUIZ8HOVsIuXCq4+FJ2pPz+SX/oRBcSvePJVWLDYUuyKtXXcZClsPOriqj780BRSaBAXpXfUi030ipKtm1Afn8+U2WUzjpBoqDwNmrc3ai3EY4M/0oEbV976os+XKP+PZbSCRD2fzN95pBC49OyKT2kNaw9pGIXqBa9D2Jw3HfC+qhg0SXJE9N/JXlB2+sd3ePA28X84GNX/3xr2doXPPoQmclYTVm2dmmTnntWO/xsTcwlYgMxXWTzYZrRKYaNH344KiknFnkXMKG699yIGhe/s0vFWfIbaFSaYuGblk3pJGOQ+fKFw3k/nmN2fZjDhyZnG5wL1ggwnzuqLfUce2OcE3oM7+0tVryiHtL5m1Z5E5FWeVUNEl8haTrYs89x7F0rJ06T2zFLU7s+sNjZzROPzo94vAiWGlJlf57X9yMdPaBV5XoaS/tZizp4z39LFiCs7OMvlgbqvemWQ7eodUuH0aRAEknhoI3IXtneYWMXtEutaACAb7WuziDAUno8Ab6AW3e2sfZkbw0UjaRvNNsskRModawQ8XjVlh8A10Aj2Yjzu8I4rBtgghDB8UzSA7D1FhFniZjC761w3RPZMeoShZJB92noMZ4V8gn2rz6rv4etzKz5uLVC9Iy8oNIiYf3KoQDjG+owDxU8QQsnL3AXWbNSDtS7IOq2kOLjqrg0DIGmejlHRP8mLU1fb6BJkk3dg2XRUMPujLANdABStLvAG9kJmT4SCP9IXuTSzb0VAikfyS/bOuR6e4XfAeU95NuNDi9FBppjdIC0YxX4oxxSO4rslxcY/xJ/aHmGAcVgq5gVBmOZZcroA== X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch01.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(13230016)(4636009)(136003)(346002)(376002)(39860400002)(396003)(40470700004)(36840700001)(46966006)(70206006)(47076005)(8676002)(7416002)(5660300002)(70586007)(336012)(26005)(41300700001)(40460700003)(82740400003)(40480700001)(6266002)(8936002)(82310400005)(356005)(478600001)(186003)(4744005)(2906002)(4326008)(7636003)(54906003)(110136005)(36860700001)(83170400001)(2616005)(42186006)(36756003)(316002)(42882007)(102446001);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2022 19:36:46.8054 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f953b9d-673b-4efc-d18b-08da7199acc6 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT038.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2315 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220729_123652_718931_84F7CE15 X-CRM114-Status: UNSURE ( 7.25 ) 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 This patchset add firmware and driver support to do SD/GEM dynamic configuration. In traditional flow GEM secure space configuration is done by FSBL. However in specific usescases like dynamic designs where GEM is not enabled in base vivado design, FSBL skips GEM initialization and we need a mechanism to configure GEM secure space in linux space at runtime. Changes for v2: - Add phy_exit() in error return paths. - Use tab indent for zynqmp_pm_set_sd/gem_config return documentation. Radhey Shyam Pandey (1): net: macb: Add zynqmp SGMII dynamic configuration support Ronak Jain (1): firmware: xilinx: add support for sd/gem config drivers/firmware/xilinx/zynqmp.c | 31 ++++++++++++++++++++++++++++++ drivers/net/ethernet/cadence/macb_main.c | 25 ++++++++++++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 33 ++++++++++++++++++++++++++++++++ 3 files changed, 89 insertions(+)