From patchwork Fri Jan 8 10:32:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Misono Tomohiro X-Patchwork-Id: 12006293 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E51C6C433DB for ; Fri, 8 Jan 2021 10:21:42 +0000 (UTC) Received: by mail.kernel.org (Postfix) id B630C23731; Fri, 8 Jan 2021 10:21:42 +0000 (UTC) Received: from esa2.hc1455-7.c3s2.iphmx.com (esa2.hc1455-7.c3s2.iphmx.com [207.54.90.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D288823715; Fri, 8 Jan 2021 10:21:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D288823715 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jp.fujitsu.com Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=misono.tomohiro@fujitsu.com IronPort-SDR: KMel4eloqNrjbX08lgSNHyBeiUrbyjC3ADjJ+WbbialDLAKEGxg58N1t6rJ42ml0dbUwAhtZ6U ne6MKkNoFprsn3CEyIujKU8MN4LJc+JvPodJYmpekSkeC+HU9swgAzQj2xTHPfS3UZzEyXlAEK K+pRWb8M17Sob3vM+o6dsi1e8zaVKsWgvlfgE8uB9DVJAGIUR/9NlNEk7/xLDSecJ6U8vaVN3E qJQSjRdxYpmwmJSX0aMLhCf4I7HYBBysPuSCxaUnloWC816EMZaAQNHxamS/4sXOvRmVHS7/5b pSw= X-IronPort-AV: E=McAfee;i="6000,8403,9857"; a="14145339" X-IronPort-AV: E=Sophos;i="5.79,330,1602514800"; d="scan'208";a="14145339" Received: from unknown (HELO yto-r1.gw.nic.fujitsu.com) ([218.44.52.217]) by esa2.hc1455-7.c3s2.iphmx.com with ESMTP; 08 Jan 2021 19:20:36 +0900 Received: from yto-m4.gw.nic.fujitsu.com (yto-nat-yto-m4.gw.nic.fujitsu.com [192.168.83.67]) by yto-r1.gw.nic.fujitsu.com (Postfix) with ESMTP id 1285AEC7AB; Fri, 8 Jan 2021 19:20:34 +0900 (JST) Received: from g01jpfmpwyt03.exch.g01.fujitsu.local (g01jpfmpwyt03.exch.g01.fujitsu.local [10.128.193.57]) by yto-m4.gw.nic.fujitsu.com (Postfix) with ESMTP id 67CAF5AEECB; Fri, 8 Jan 2021 19:20:33 +0900 (JST) Received: from g01jpexchyt35.g01.fujitsu.local (unknown [10.128.193.4]) by g01jpfmpwyt03.exch.g01.fujitsu.local (Postfix) with ESMTP id 6BF0246E556; Fri, 8 Jan 2021 19:20:32 +0900 (JST) Received: from luna3.soft.fujitsu.com (10.124.196.199) by g01jpexchyt35.g01.fujitsu.local (10.128.193.50) with Microsoft SMTP Server id 14.3.487.0; Fri, 8 Jan 2021 19:20:30 +0900 From: Misono Tomohiro List-Id: To: , CC: , , , , Subject: [PATCH 10/10] soc: fujitsu: hwb: Add Kconfig/Makefile to build fujitsu_hwb driver Date: Fri, 8 Jan 2021 19:32:27 +0900 Message-ID: <20210108103227.1740865-11-misono.tomohiro@jp.fujitsu.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210108103227.1740865-1-misono.tomohiro@jp.fujitsu.com> References: <20210108103227.1740865-1-misono.tomohiro@jp.fujitsu.com> MIME-Version: 1.0 X-SecurityPolicyCheck-GC: OK by FENCE-Mail X-TM-AS-GCONF: 00 This adds kconfig/Makefile to build fujitsu hardware barrier driver (fujitsu_hwb.ko when built as module). Note that this is the first time to add A64FX specific driver, this also adds A64FX entry in Kconfig.platforms of arm64 Kconfig. Also add MAINTAINERS entry for ARM/A64FX accordingly. Signed-off-by: Misono Tomohiro --- MAINTAINERS | 7 +++++++ arch/arm64/Kconfig.platforms | 5 +++++ drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/fujitsu/Kconfig | 24 ++++++++++++++++++++++++ drivers/soc/fujitsu/Makefile | 2 ++ 6 files changed, 40 insertions(+) create mode 100644 drivers/soc/fujitsu/Kconfig create mode 100644 drivers/soc/fujitsu/Makefile diff --git a/MAINTAINERS b/MAINTAINERS index 6eff4f720c72..d57ec44ceaed 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1508,6 +1508,13 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git F: arch/arm/mach-*/ F: arch/arm/plat-*/ +ARM/A64FX SOC SUPPORT +M: Tomohiro Misono +L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) +S: Maintained +F: drivers/soc/fujitsu/ +F: include/uapi/linux/fujitsu_hpc_ioctl.h + ARM/ACTIONS SEMI ARCHITECTURE M: Andreas Färber M: Manivannan Sadhasivam diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 6eecdef538bd..41fb214adaff 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -1,6 +1,11 @@ # SPDX-License-Identifier: GPL-2.0-only menu "Platform selection" +config ARCH_A64FX + bool "Fujitsu A64FX Platforms" + help + This enables support for Fujitsu A64FX SoC family. + config ARCH_ACTIONS bool "Actions Semi Platforms" select OWL_TIMER diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig index d097d070f579..7a52b5dc4c96 100644 --- a/drivers/soc/Kconfig +++ b/drivers/soc/Kconfig @@ -7,6 +7,7 @@ source "drivers/soc/aspeed/Kconfig" source "drivers/soc/atmel/Kconfig" source "drivers/soc/bcm/Kconfig" source "drivers/soc/fsl/Kconfig" +source "drivers/soc/fujitsu/Kconfig" source "drivers/soc/imx/Kconfig" source "drivers/soc/ixp4xx/Kconfig" source "drivers/soc/litex/Kconfig" diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile index 699b758d28e4..57c0dddc4d23 100644 --- a/drivers/soc/Makefile +++ b/drivers/soc/Makefile @@ -10,6 +10,7 @@ obj-y += bcm/ obj-$(CONFIG_ARCH_DOVE) += dove/ obj-$(CONFIG_MACH_DOVE) += dove/ obj-y += fsl/ +obj-y += fujitsu/ obj-$(CONFIG_ARCH_GEMINI) += gemini/ obj-y += imx/ obj-$(CONFIG_ARCH_IXP4XX) += ixp4xx/ diff --git a/drivers/soc/fujitsu/Kconfig b/drivers/soc/fujitsu/Kconfig new file mode 100644 index 000000000000..cbba0c939e62 --- /dev/null +++ b/drivers/soc/fujitsu/Kconfig @@ -0,0 +1,24 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# FUJITSU SoC drivers +# +menuconfig SOC_FUJITSU + bool "FUJITSU SoC drivers" + depends on ARCH_A64FX || COMPILE_TEST + +if SOC_FUJITSU + +config FUJITSU_HARDWARE_BARRIER + tristate "FUJITSU HPC Hardware Barrier Driver" + depends on ARM64_VHE || COMPILE_TEST + help + FUJITSU HPC Hardware Barrier Driver + + This driver offers hardware barrier functions for A64FX system + which realizes synchronization by PEs in the same CMG (L3 cache + domain) by using implementation defined registers. As control + registers can only be accessed from EL2 on reset, this driver + needs support of VHE. + When built as a module, this will be called as "fujitsu_hwb". + +endif # SOC_FUJITSU diff --git a/drivers/soc/fujitsu/Makefile b/drivers/soc/fujitsu/Makefile new file mode 100644 index 000000000000..1b8e4c947f7f --- /dev/null +++ b/drivers/soc/fujitsu/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_FUJITSU_HARDWARE_BARRIER) += fujitsu_hwb.o