Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp200408iob; Tue, 17 May 2022 23:39:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdPwXWCv/J9jBymt1ElBVxrGO0blzA+4njpdyoPJrRowA4ydIUQpG3MV24XLYlSfTNzhnw X-Received: by 2002:a17:902:b413:b0:15e:e6a8:b3e with SMTP id x19-20020a170902b41300b0015ee6a80b3emr25808987plr.24.1652855999390; Tue, 17 May 2022 23:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652855999; cv=none; d=google.com; s=arc-20160816; b=fO3pIRc69q6vzDFYooCvMAMGg5FnnqxEVphsT+othkY9zJedM7gC3Wb4UkU52Fuic/ vdSuVm0yY0qn9XiP7ZaMTi8nP6kb4X/YXvasP9yQIyUsDxbFjMeYZ0I5o98R8N/LuNcn bfR7wvx7ZEKSPleHP5bUnsJLmbDxezpHZjqmlBhAaVZDDX2FgtMUrstKY2UM86IlFYjs gDQ8XStMVJjXSRarqFSytp84r/AkOXhWg4D0jQZg1KdmVUIavvbMlmmM4xrembMgg+G4 yKUUuxV3x5mtFUyWivPLruYKrPBg2Ko9QRT/08YBa8k0Dix+ya0PiTRAwz/2Ns8oxmSY eGeQ== 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; bh=mX8ARTcujZFhsM2i7nOl995+SSUCJK/AGRVArdBJFUQ=; b=LrQvR/as9ga+Qkep5dPp0BSjwXKqm44oIxg0bIpTsCoFfnOxeoI3o7uiIRspjuxj1G yD+9uzU+jjTUYz1d806s3z3YgmsYerLC0pC9DKUiGKPX3BAjeCkMeOtNDGTKjsvWViAo M5WiWPF2hzBSvt106C6rCCbWzyeat92hRXUBIXhr61yyXAg+yH93tJnfdF83E4Sq1TtK GW48TjmgWcBFhgIBwMc+3hPf5esgJYXRmr7dxwX18J0D5Xpo49ui1Gzx1Hp9XclvJ9Z7 VNG/6QqYKQAG+4G5y8hG7aNoi/cOq2cmTowwb8NJn+3lbe58TtDTL85y5OG7dMjo67t8 Gy+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o18-20020a170902e29200b0015d29ba7843si1559644plc.262.2022.05.17.23.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 23:39:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 01259E2744; Tue, 17 May 2022 23:33:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231443AbiERGbc (ORCPT + 99 others); Wed, 18 May 2022 02:31:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231415AbiERGb3 (ORCPT ); Wed, 18 May 2022 02:31:29 -0400 Received: from esa7.hc1455-7.c3s2.iphmx.com (esa7.hc1455-7.c3s2.iphmx.com [139.138.61.252]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EE0465DF for ; Tue, 17 May 2022 23:31:28 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6400,9594,10350"; a="51998555" X-IronPort-AV: E=Sophos;i="5.91,234,1647270000"; d="scan'208";a="51998555" Received: from unknown (HELO yto-r2.gw.nic.fujitsu.com) ([218.44.52.218]) by esa7.hc1455-7.c3s2.iphmx.com with ESMTP; 18 May 2022 15:31:26 +0900 Received: from yto-m2.gw.nic.fujitsu.com (yto-nat-yto-m2.gw.nic.fujitsu.com [192.168.83.65]) by yto-r2.gw.nic.fujitsu.com (Postfix) with ESMTP id 3A865C68B0 for ; Wed, 18 May 2022 15:31:24 +0900 (JST) Received: from yto-om4.fujitsu.com (yto-om4.o.css.fujitsu.com [10.128.89.165]) by yto-m2.gw.nic.fujitsu.com (Postfix) with ESMTP id 1AFF7E663D for ; Wed, 18 May 2022 15:31:24 +0900 (JST) Received: from cn-r05-10.example.com (n3235113.np.ts.nmh.cs.fujitsu.co.jp [10.123.235.113]) by yto-om4.fujitsu.com (Postfix) with ESMTP id 9E7E3400C1DE7; Wed, 18 May 2022 15:31:23 +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, gregkh@linuxfoundation.org, rafael@kernel.org, mchehab+huawei@kernel.org, eugenis@google.com, tony.luck@intel.com, pcc@google.com, peterz@infradead.org, marcos@orca.pet, conor.dooley@microchip.com, nicolas.ferre@microchip.com, marcan@marcan.st, linus.walleij@linaro.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: tarumizu.kohei@fujitsu.com Subject: [PATCH v4 2/8] drivers: base: Add Kconfig/Makefile to build hardware prefetch control core driver Date: Wed, 18 May 2022 15:30:26 +0900 Message-Id: <20220518063032.2377351-3-tarumizu.kohei@fujitsu.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220518063032.2377351-1-tarumizu.kohei@fujitsu.com> References: <20220518063032.2377351-1-tarumizu.kohei@fujitsu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adds Kconfig/Makefile to build hardware prefetch control core driver, and also adds a MAINTAINERS entry. Signed-off-by: Kohei Tarumizu --- MAINTAINERS | 6 ++++++ drivers/base/Kconfig | 9 +++++++++ drivers/base/Makefile | 1 + 3 files changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d6d879cb0afd..f188403bc2e9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8620,6 +8620,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..8f8a69e7f645 100644 --- a/drivers/base/Kconfig +++ b/drivers/base/Kconfig @@ -230,4 +230,13 @@ config GENERIC_ARCH_NUMA Enable support for generic NUMA implementation. Currently, RISC-V and ARM64 use it. +config HWPF_CONTROL + bool "Hardware Prefetch Control driver" + 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