From patchwork Mon May 13 20:29:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haiyang Zhang X-Patchwork-Id: 13663678 X-Patchwork-Delegate: kuba@kernel.org Received: from DM1PR04CU001.outbound.protection.outlook.com (mail-centralusazon11023014.outbound.protection.outlook.com [52.101.61.14]) (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 DD9DE7E0F3; Mon, 13 May 2024 20:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.61.14 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715632201; cv=fail; b=Cof8VGA1qDEOlSlwvPTw7tulqUyiGmAEXJEhGyebdDxdqyQI7oU9mnOJ5euCJMDbRP4v1iWBTrWVu+xvEDrssTd4V1BWKlKsJ5DHssodDGhDoezsiBX7tx8+ECpPbUa2ms2Sdvshe6rEYi8p6vm714oHcmvacFHTRdFHN4UUjG8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715632201; c=relaxed/simple; bh=bfDGBzzy37GvHS0G1jqZqnQzlYCpToMIaVZKMLzHsrU=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=jbFuCFwd9zJf/8u9ioXmgg25gQrBTbVsUvvMh5SQxUxQIjBuQw8y0+IWMGJfoMXBNT1x9GLg101eOYwmAx5YIUnQdGOT9LKPOzogf4WQM4Z0Wx6YuzIeMJauzR0wbVlq5eQ0RfHdufQSv5v+wQxdVQBxwOoob2jvJ7d+T1PUdyk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microsoft.com; spf=pass smtp.mailfrom=microsoft.com; dkim=pass (1024-bit key) header.d=microsoft.com header.i=@microsoft.com header.b=LT3bgxAa; arc=fail smtp.client-ip=52.101.61.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=microsoft.com header.i=@microsoft.com header.b="LT3bgxAa" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gxohMsfwcSEDi35N4alGBUkN3L19XaovayRyV/ytf42vEAYYyqDVZdm5yhf9znfZ7KcAzkGwiymMvRcTBEix7rmnMP0HFUODvr8KoKgbRlsYAhinuktw3LwmorkmEQlSR53Y/eqLIxTQKMxRJrN/ulVK2u9nH2ttFoAwtALvsJ+IP/q0FNRV+ZQnKstPP3K85GRS0kPVbb9X44KbNkCJpYw8GgaIvGemK8FUXNYVFRU/bmP2wiNAMwHm02NzDN/oHtiZVix6o9njHMomY6tNmQXP+/hc7xXganSJA+yTAo61Qpc2EqujM+0oCg4OLb3J7AOsQ/e8diiUo23m5rO6CA== 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=pJzEgEct5/+y0znKEOdlztwYOsxqe2RKNr5Am1iA3i4=; b=Nhpwi1KasRkwpraCA+Hnh05AoHJeKabXnKjNfSM+q+BqpwT6aDF1fyQiJ2ucT9FnHId88SQr8puHhk1ReMIuX1mA4zf2veYk8JvXv+O9e4adCWlPXGKGSfV/OX4mQHx3QBAllNATGGRypqzBqNTA1TE0WVuJAlGtSvnN0p1Skh4bdMeGb7SAgE46M4+PJ39AlcR0ENfZVHQ6P4k/J8LVxttjh2AMzuicueCTW2vMCcHunxD8RDACYBomELnS4Nm1jUeC+xyVdsE3elHmGKu9MkbR40Ij6St13vcoDYMDR16vK8QHZbzwPVMvJAXeLptoJxVXbsLSeh0YAKP4/RXlTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pJzEgEct5/+y0znKEOdlztwYOsxqe2RKNr5Am1iA3i4=; b=LT3bgxAaQCya/INqO16bnPOBVe6BqqrSuQBXdzxNv26zRNcl+z5qw76l33JnHz7pJr0U/Dhe8fHtB0OtxWGtc3rc4vsKFNIsOTngYaJEEX31Ve0Es/vh3w0yDWi4mNfFYl5w4Lmjp2ocU88JHKLP5BdO1TOJdR/cKrTq3nJ/FMM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; Received: from BY5PR21MB1443.namprd21.prod.outlook.com (2603:10b6:a03:21f::18) by SA1PR21MB2066.namprd21.prod.outlook.com (2603:10b6:806:1c1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.2; Mon, 13 May 2024 20:29:56 +0000 Received: from BY5PR21MB1443.namprd21.prod.outlook.com ([fe80::2c5a:1a34:2c8d:48ef]) by BY5PR21MB1443.namprd21.prod.outlook.com ([fe80::2c5a:1a34:2c8d:48ef%4]) with mapi id 15.20.7611.002; Mon, 13 May 2024 20:29:56 +0000 From: Haiyang Zhang To: linux-hyperv@vger.kernel.org, netdev@vger.kernel.org Cc: haiyangz@microsoft.com, decui@microsoft.com, stephen@networkplumber.org, kys@microsoft.com, paulros@microsoft.com, olaf@aepfle.de, vkuznets@redhat.com, davem@davemloft.net, wei.liu@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, leon@kernel.org, longli@microsoft.com, ssengar@linux.microsoft.com, linux-rdma@vger.kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, bpf@vger.kernel.org, ast@kernel.org, hawk@kernel.org, tglx@linutronix.de, shradhagupta@linux.microsoft.com, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: mana: Enable MANA driver on ARM64 with 4K page size Date: Mon, 13 May 2024 13:29:01 -0700 Message-Id: <1715632141-8089-1-git-send-email-haiyangz@microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-ClientProxiedBy: MW4PR03CA0024.namprd03.prod.outlook.com (2603:10b6:303:8f::29) To BY5PR21MB1443.namprd21.prod.outlook.com (2603:10b6:a03:21f::18) Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Sender: LKML haiyangz X-MS-Exchange-MessageSentRepresentingType: 2 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR21MB1443:EE_|SA1PR21MB2066:EE_ X-MS-Office365-Filtering-Correlation-Id: e6d50244-a420-45f3-1570-08dc738b736d X-LD-Processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|52116005|7416005|376005|366007|38350700005; X-Microsoft-Antispam-Message-Info: JO2WTYqf2uquyHNw2SGBdlQVdX3BXGFnc+C0gI1qbLmgBs32GgGIadf8gQhth+DVVQHo4CkXhVRCFSPnB76GxYjkgLklvP6UWhU5/BPVrBT1xb+tQJ2QVjXHlGYURkMJENAcl9FATgEnemwXK1Yu8iuHskl69u7BG81+FND/+UHMKeQIFg9Xw01wo1AJGi4TLcOUHACOxuhku9vdW1HbtZJtd8ev1Z5r8ktfLgtexazlJ6jKls2MYVyH40EB4nPiAUBJRRcs5SY7ZE74ecVXIoIqP/+R0Kw1Az6JRDVz15oFkgEt8lYf6f0tswiJlgJW+s00QvbxLG5GbMfK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M;H:BY5PR21MB1443.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(52116005)(7416005)(376005)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SHEz74YdsIxPsGn7ewaqcfnkZO5pRzMn3s8N5Ihbc7HevSBHc35WyFSR85aUsWG/gX8c8tOGt3kFcscA+uDxphd7puyzLaVVy6H3Svpr29NFOd85R+Vm50j+tRI5uwp8MEj2lwfR8eL1cyey6cCMUZapoRutpyhNawtSzN/NXMSFXlblXsGCPafdJvjm+o0XHJFJaUm/DzoxmUCTo/mULcQ8MGc7nFQbA0idISWbJ+QprygcBh8LF+Jq21ZVO2Cslg9aMck2LJUga1ESwKDcFEhyXi/G5ZNSRroAin/TWxr4nU5aU2zuDvMZ6djY1JoobuQ4efuXVYdjbmCt92nJBf5cOwa4STSzBjfvfzry1ieEzgml/Lp5WgkuyYZNITUfE9mCd7smC9shfd5rjGM71iWYmYlpTrXBEWPhh3UGuMwvecpd3POT3iMUL6MgKDs+pg9oiiL2C70nmkGibbRRH4t7p8jFfaOWjbN+trtPxFFVAAG8pCRveGaotkDc1UMNrWWrkTi7CjNC2nnxUpibwgPRmNi8lbKrG50tdH22wPh6CfZtqemCFlHzDQfEj0FWKZ8bMAapDOhJFixqPQy0CSm451sacbu1nerVLPjd52kFyTDV4uvlH5Eu8uTNNoXE22w65X69rJSKc2j8VEKIuQPfvquE/y2CWEu91N1FYtVTgA7CZZGKDdl1fFy4VK7QipDuJo5LMw9oBjExZCBo6mct54AEXVgFhsPD3Sd57jPDzHOwPtppt9Lt5tjYploGSyLvovDAWK931KEq7XAMGPbpaphpw8TpJphBXxbHgpHXqmSgJ0ftBp19pa1Yx2zQ9n/sS92eaBXMHfLc02y9A7jmBInxET4GEo8UsG3zxvY5xoosuvCalmCtdQeo9G+2/9arlCQSJlYpvDoIcj3L4yHu3jKq5XY0zEUbttzX23otzmEBcyDI0anJF/s+ovXtECmc70GEbA7jF5/y46FXG3TH0DSdF7YbzzPjUWAto2xEjZopvNvTnKM8iK49US3qts4dtYNDnVQvqou2ARIhdfgwlVc0JfEYIDmR0YTJQqAGheXSmS9Xf1IBOewRu84XWs9fLc2IZhiKCvI25P9mrVON7hqHTgEPajFII2wnrIyllCZB0s4/yxYnWICqtVjy/kpRXEoMsbDqBRHOqXJ1Qs9b0xCH+eVonJRtYYIbOYYwBO0F2WSpWkfgtDEdVV4+n32//YNBQ32KrBP8JSGuPNQKiVCFJXHlnlSqY3jvmGgAIc28UXox76UZpW6hM/E2F+RPp5TePS//OTXgqfW/LBTCjreS5l7cUU8+HLG9yTR4zvirzllmo4r9YpW2H83vf8qAEQuP2tTs7EflAM7tYC5P7mje/j2fFltvEKcHnb71gFj5/CLWPIqU6CQbrjdkc6AOIViyUaEl3CL0xVscQWTXv/qqa880cH6A6Aob17Ht7qbFEuysYSDHSpL4fEe/ptyzRGzribjAvjt5o45OfqWpdo212njpIAkIRekF+9Axp0gP3o97usIw2kbKjWvVKQFwngzAWMYw6RThQq7+y1BGdC01NVTViIMQL2iqixVYebWqr+98KSuwsAz8MEKP X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6d50244-a420-45f3-1570-08dc738b736d X-MS-Exchange-CrossTenant-AuthSource: BY5PR21MB1443.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2024 20:29:55.9690 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ex1SbWavx7MtFAiPT0nqai95aTI5h7IZL+MdB4RGMmIKmkKx3WKc7tvEXjwNbf3ridL0cyFnNwyfFP1Ggfhnsw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR21MB2066 X-Patchwork-Delegate: kuba@kernel.org Change the Kconfig dependency, so this driver can be built and run on ARM64 with 4K page size. 16/64K page sizes are not supported yet. Signed-off-by: Haiyang Zhang --- drivers/net/ethernet/microsoft/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/microsoft/Kconfig b/drivers/net/ethernet/microsoft/Kconfig index 01eb7445ead9..286f0d5697a1 100644 --- a/drivers/net/ethernet/microsoft/Kconfig +++ b/drivers/net/ethernet/microsoft/Kconfig @@ -17,7 +17,8 @@ if NET_VENDOR_MICROSOFT config MICROSOFT_MANA tristate "Microsoft Azure Network Adapter (MANA) support" - depends on PCI_MSI && X86_64 + depends on PCI_MSI + depends on X86_64 || (ARM64 && !CPU_BIG_ENDIAN && ARM64_4K_PAGES) depends on PCI_HYPERV select AUXILIARY_BUS select PAGE_POOL