Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4011211pxb; Tue, 25 Jan 2022 01:19:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzejS99bWmRFI/R22SLu7J8y/loHPP1gAwMlpd+fRODMu6cHna99xr71ETQzJ3m/4lN88YE X-Received: by 2002:a17:906:15d5:: with SMTP id l21mr15632784ejd.287.1643102346997; Tue, 25 Jan 2022 01:19:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643102346; cv=none; d=google.com; s=arc-20160816; b=bS4m3YwVxz15g6+P5fcotRmETpTmxzse8KO0Hy/8oLqyehidktm7KmuCmZdMUjLw9P /bURpfIVrHWmNDV1Gz4Sqo0zkItJATL4T7iP7pWyhclA6RqKyAOjKoRHeFcm9dTdjt7p UpeWK8FAWxGaVUURVniqyn2nKFuD5hJvFW7ns3AbwRMGqg2SuD3TkS1BlQCbUrNg9Nkk MY4OeHdJRpGPTztFbpHNkZkaO+m7QEsN4d3I2qNAF/kmWeO8hSA6InRSuzvjuDUXJFgz Jm70Kj5/PEDH687YsXvixoMJN6BlPs6T3IqYeFLUCz3b9149ioCQ6iwF+cRjTXMCONVG AY3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr; bh=yXCnK/cxnVJ+3vRwLhG/X9CztiTwLUZCSXdhyQmTXes=; b=yjCcMR69YOeGe3hpHqNHzFLI8Qn/T+O+00h23Y2J2y5CH9GTBuP9R72lmScZoFT1Cp 8MwsfhaOhAUCTe7gCN3vlaK27pPWViXcZgjA3yNKvsipC5ccnq1lBRzg7mYOYvMIfIVs LF0GCAtNZH28EDxQuocac8uGXlxjq+SFUoxgeidutlLkVgq07dgyGquUe8Z1rT9pCzfJ QPcrAiqKoPczCvR8ZOd3ekXXgYQMLFFYy3UF6muFayAQXESxrZV3AKcAT1M0j+QPwqNK ZDWXFuIROuN7bnWnRKHizRFZZ2WIluazetWYcQGidnwfaJND2NmejhvN3mJlYlpyIfUK EDCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si9954763edr.362.2022.01.25.01.18.42; Tue, 25 Jan 2022 01:19:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359864AbiAYH0I (ORCPT + 99 others); Tue, 25 Jan 2022 02:26:08 -0500 Received: from esa5.hc1455-7.c3s2.iphmx.com ([68.232.139.130]:24644 "EHLO esa5.hc1455-7.c3s2.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443999AbiAYHV5 (ORCPT ); Tue, 25 Jan 2022 02:21:57 -0500 X-Greylist: delayed 449 seconds by postgrey-1.27 at vger.kernel.org; Tue, 25 Jan 2022 02:21:57 EST IronPort-SDR: Hulmt9SCTCfNRZKC3fW6Qmcyfi13TwRwVOtSPTVRwkiluoOdONI58QxyTB5cLnt8DUlJ8cLecz VjfS7YqGZdZ7xs0AD7o/79b84RUpT+lz9UnUzknnSFznp9VI0/GC6tv+RhnnzRLy71dXZQXAXZ 26t+SzhsStBYVqYY103lZVNs35cmFfiEzmOnmSHCVbOixPAXv7K9WYi3iZXzaArA8SQrLRYx3G kertGmq3yjkrUbOhZ0kvWR56IY3Znp8p/rTi2GDtk2zbzoXxIy9XZWEbMamLQ8RAkXfzT7ftP1 6+v13Hi39pHOnIwTcbAgdW9r X-IronPort-AV: E=McAfee;i="6200,9189,10237"; a="60079426" X-IronPort-AV: E=Sophos;i="5.88,314,1635174000"; d="scan'208";a="60079426" Received: from unknown (HELO oym-r2.gw.nic.fujitsu.com) ([210.162.30.90]) by esa5.hc1455-7.c3s2.iphmx.com with ESMTP; 25 Jan 2022 16:14:16 +0900 Received: from oym-m3.gw.nic.fujitsu.com (oym-nat-oym-m3.gw.nic.fujitsu.com [192.168.87.60]) by oym-r2.gw.nic.fujitsu.com (Postfix) with ESMTP id 9A680DB9F7 for ; Tue, 25 Jan 2022 16:14:15 +0900 (JST) Received: from yto-om4.fujitsu.com (yto-om4.o.css.fujitsu.com [10.128.89.165]) by oym-m3.gw.nic.fujitsu.com (Postfix) with ESMTP id D2A86D95EE for ; Tue, 25 Jan 2022 16:14:14 +0900 (JST) Received: from localhost.localdomain (n3235113.np.ts.nmh.cs.fujitsu.co.jp [10.123.235.113]) by yto-om4.fujitsu.com (Postfix) with ESMTP id 87F6B4007ED6C; Tue, 25 Jan 2022 16:14:14 +0900 (JST) From: Kohei Tarumizu To: catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: tarumizu.kohei@fujitsu.com Subject: [PATCH 2/8] drivers: base: Add Kconfig/Makefile to build hardware prefetch control core driver Date: Tue, 25 Jan 2022 16:14:08 +0900 Message-Id: <20220125071414.811344-3-tarumizu.kohei@fujitsu.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220125071414.811344-1-tarumizu.kohei@fujitsu.com> References: <20220125071414.811344-1-tarumizu.kohei@fujitsu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds Kconfig/Makefile to build hardware prefetch control core driver. This also adds a MAINTAINERS entry. Signed-off-by: Kohei Tarumizu --- MAINTAINERS | 6 ++++++ drivers/base/Kconfig | 13 +++++++++++++ drivers/base/Makefile | 1 + 3 files changed, 20 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ea3e6c914384..b474051c41e7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8444,6 +8444,12 @@ F: include/linux/hwmon*.h F: include/trace/events/hwmon*.h K: (devm_)?hwmon_device_(un)?register(|_with_groups|_with_info) +HARDWARE PREFETCH CONTROL DRIVERS +M: Kohei Tarumizu +S: Maintained +F: drivers/base/pfctl.c +F: include/linux/pfctl.h + HARDWARE RANDOM NUMBER GENERATOR CORE M: Matt Mackall M: Herbert Xu diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig index 6f04b831a5c0..d146604b5b3a 100644 --- a/drivers/base/Kconfig +++ b/drivers/base/Kconfig @@ -230,4 +230,17 @@ config GENERIC_ARCH_NUMA Enable support for generic NUMA implementation. Currently, RISC-V and ARM64 use it. +config ARCH_HAS_HWPF_CONTROL + bool + +config HWPF_CONTROL + bool "Hardware Prefetch Control driver" + depends on ARCH_HAS_HWPF_CONTROL && SYSFS + help + This driver allows user to control CPU's Hardware Prefetch behavior. + If the machine supports this behavior, it provides a sysfs interface. + + See Documentation/ABI/testing/sysfs-devices-system-cpu for more + information. + endmenu diff --git a/drivers/base/Makefile b/drivers/base/Makefile index 02f7f1358e86..13f3a0ddf3d1 100644 --- a/drivers/base/Makefile +++ b/drivers/base/Makefile @@ -25,6 +25,7 @@ obj-$(CONFIG_DEV_COREDUMP) += devcoredump.o obj-$(CONFIG_GENERIC_MSI_IRQ_DOMAIN) += platform-msi.o obj-$(CONFIG_GENERIC_ARCH_TOPOLOGY) += arch_topology.o obj-$(CONFIG_GENERIC_ARCH_NUMA) += arch_numa.o +obj-$(CONFIG_HWPF_CONTROL) += pfctl.o obj-y += test/ -- 2.27.0