From patchwork Thu May 23 21:59:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Cabaj X-Patchwork-Id: 1938600 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vlht11Yk3z20dy for ; Fri, 24 May 2024 07:59:52 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sAGTP-00080L-4n; Thu, 23 May 2024 21:59:43 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sAGTL-0007ys-Q4 for kernel-team@lists.ubuntu.com; Thu, 23 May 2024 21:59:39 +0000 Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id DF3D13F62D for ; Thu, 23 May 2024 21:59:38 +0000 (UTC) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-43fb05f7d66so2722581cf.2 for ; Thu, 23 May 2024 14:59:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716501577; x=1717106377; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UodAVgYjO1uEspIy2wCpj2pIhgfLifDOi6s36yzBfmY=; b=YhmHNYj1vKji5ONqS1/PlOpyu5ma6V/OTDYjanAbvFj8WuyUzKQtxXpYcWZ+zuJWZL HqSVP/J0qm7HFD79ALnGz41QPlaIhOQGjK4CwsQj+wdMAY06wGgLwyL0aIiuGHLM5uH4 wh3lyIQ8VmQnFjW7LXTv5sD7oRuTyAYdBzShnD4X9Empr68qSkiYZP8NdYhvOthXFCFo BJFfMvjuJ3BRa8ky9xG8fqm4vkRLL/+dm7lkmVEiMRcDGJIbDtqtDFOlbzdrV5k3GvlW 9OO2GKoex8IS7+g7qJkeQ8RVh9tKSZAboUxU+/krP3z8FTgkizXmirLBf+g7GhKGx83d hC8Q== X-Gm-Message-State: AOJu0YxEmi1PwNOuuWpkTX1YbYmjrk0I8OQcexUUoK8hKvnS6pmlbfOE UBqecgcWreTutX2ytkWosRwFRBasJmzS0D8J0W9339yGDCPLkvPH5+id6IH4QeeCAv6AxGvKuHR 3hlkhHUi+n7zH0GnffqKGhqdyRzVdlbCq7CncphyrMLPdRU5+GfR+Jvj6drqGja6t2mb8y1CgtX ffE6zVFk9zZQ== X-Received: by 2002:ac8:5a4b:0:b0:43a:ed56:6a42 with SMTP id d75a77b69052e-43fb0ef8efcmr3579431cf.58.1716501577611; Thu, 23 May 2024 14:59:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoI+beTmzhORNc5wu7/39bXv3q60Fmeu5Ie/0Tk0Z1EonNdNF8jomJXocvi6UNDGRZl+Vg7w== X-Received: by 2002:ac8:5a4b:0:b0:43a:ed56:6a42 with SMTP id d75a77b69052e-43fb0ef8efcmr3579341cf.58.1716501577315; Thu, 23 May 2024 14:59:37 -0700 (PDT) Received: from smtp.gmail.com (h208-73-92-250.mdtnwi.broadband.dynamic.tds.net. [208.73.92.250]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43fb16b97b5sm883421cf.18.2024.05.23.14.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 14:59:37 -0700 (PDT) From: John Cabaj To: kernel-team@lists.ubuntu.com Subject: [SRU][noble:linux-azure][PATCH 1/1] net: mana: Enable MANA driver on ARM64 with 4K page size Date: Thu, 23 May 2024 16:59:32 -0500 Message-Id: <20240523215933.1422346-4-john.cabaj@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240523215933.1422346-1-john.cabaj@canonical.com> References: <20240523215933.1422346-1-john.cabaj@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Haiyang Zhang BugLink: https://bugs.launchpad.net/bugs/2066982 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 Link: https://lore.kernel.org/r/1715632141-8089-1-git-send-email-haiyangz@microsoft.com Signed-off-by: Jakub Kicinski (cherry picked from commit 40a1d11fc670ac03c5dc2e5a9724b330e74f38b0) Signed-off-by: John Cabaj --- debian.azure/config/annotations | 7 +++++-- drivers/net/ethernet/microsoft/Kconfig | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/debian.azure/config/annotations b/debian.azure/config/annotations index cc8835726066..3baab4c215c3 100644 --- a/debian.azure/config/annotations +++ b/debian.azure/config/annotations @@ -104,8 +104,11 @@ CONFIG_IWLMEI note<'LP: #1987312'> CONFIG_KERNEL_ZSTD policy<{'amd64': 'y', 'arm64': 'n'}> CONFIG_KERNEL_ZSTD note<'LP: #1931725'> -CONFIG_MICROSOFT_MANA policy<{'amd64': 'y'}> -CONFIG_MICROSOFT_MANA note<'LP:1949357'> +CONFIG_MICROSOFT_MANA policy<{'amd64': 'y', 'arm64': 'y'}> +CONFIG_MICROSOFT_MANA note<'LP:1949357, LP:2066982'> + +CONFIG_MANA_INFINIBAND policy<{'amd64': 'm', 'arm64': 'm'}> +CONFIG_MANA_INFINIBAND note<'LP: #2024917, LP:2066982'> CONFIG_MMC_BLOCK policy<{'amd64': '-', 'arm64': 'y'}> CONFIG_MMC_BLOCK note<'boot essential on armhf/arm64'> 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