Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9784435rwp; Thu, 20 Jul 2023 09:36:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlESnI7yVv8Ql31snjOl7YRzc5Jsg6XKp8e1IjTpvIk1e57RCR9W/T7ZjQNYLIK6QO6/HJK3 X-Received: by 2002:a17:907:e8d:b0:992:345e:8319 with SMTP id ho13-20020a1709070e8d00b00992345e8319mr6899990ejc.58.1689870972604; Thu, 20 Jul 2023 09:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689870972; cv=none; d=google.com; s=arc-20160816; b=YmJjYQTCdb6PlthGEZxfickJRuICybiF63cfXvHMhrmwwl4tQsIQLUAvEO2hWmhoQ3 4O81IEdXe6Tlhek3qau5NYrq32jTPiWoOFNbSB8/gZa6s6bQ/ZgjjL63UORAHGklob5W Zb0mqYHRYfPgZOMjLDGizKY2ST4yU4+O9q4Om3YrvCyr4YtLDuWa5Y78s/HlH8mAFNkr oBgD4REytfTi/hsUBxHx6NdcbnILXh3vJjFrijYD5+nUoECCJzFWfpMyhWz3xW6mkVPw hBkY8nhPIeJoafOApUMsASlwxJvPmqWNTdy3k4Qar0cPJx7tKdEcm3mGBz/agbFC7Xno 5qHA== 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 :message-id:date:subject:to:from:dkim-signature; bh=WW8wnQDb5F04c8xPquGYN1xbIFjNJENXcqLbV7qEtsk=; fh=9WxEkrRsviqkmBa/9IEOuNB3pSwqvCSRE5EujY1pSYo=; b=DXgiRCuzyaLm94sGcHURGUQM7sNkdr1FRANrv8ACk/SJWHCoDS7BmiWZvsTqIjUQlC /yzmYQltcwboeFWBPvTpwSpaoOU6O+FaHCc1lyPuQcJrQI14wK2fwj56Ldp7mtsaBYLn beEKMyWiUsK+Dn6G+nzf/HTXw1RLtZpV3NMgxM0R/FkmvFS4A5CzVsQz4J1qZ+bBzw5/ jzJSo2PRHw9DshTLopM1QjBh9Ze4BZ9uBytNuEBFElqL+QamhhJtf4msheMuYNjiOKyS qvbeN80QTbb7kmA2JOwXHb8AU0MGwL/VVU6EYS44iN7Z0KQPq3on168g94tOLcBWeIoF sUyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=M5Ye+ZwE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a170906849500b009938248d370si909746ejx.2.2023.07.20.09.35.47; Thu, 20 Jul 2023 09:36:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=M5Ye+ZwE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231375AbjGTQIL (ORCPT + 99 others); Thu, 20 Jul 2023 12:08:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbjGTQII (ORCPT ); Thu, 20 Jul 2023 12:08:08 -0400 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9D22F0; Thu, 20 Jul 2023 09:08:06 -0700 (PDT) Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36KG571m029141; Thu, 20 Jul 2023 16:08:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding; s=pps0720; bh=WW8wnQDb5F04c8xPquGYN1xbIFjNJENXcqLbV7qEtsk=; b=M5Ye+ZwEtM/STZRtpe7Je8s9VAzE14AaDdKOOgcc18Z8r1Hww4JmPEt/Szyatp6glwqn F/Y5rh9u0OV44HRCa07oVphQkCJ991uMLnZ3ENJ9agJwykKCqA5ExG8E1dN9GLsUl0r1 hOjjHoQOajFTGy+dfqd5ybfWwkUg5vCihCVp7bFe8VaxkHkwYXITv6ZraCLoawHPdV8o SP5W/L1eoVAbTcuj4TtSJAaAHVeinlQgpBokFOpAjUfXdnK9mcNlOEeBXpRevLvRSjHA RZmSG9EtptlTNz/k1YAc5l5vENULPHlFO/s0NnAniClF6i2kvfa8uzyvPQ/8tVIeJe0I UQ== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3rxwk7e1wf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Jul 2023 16:08:05 +0000 Received: from p1lg14886.dc01.its.hpecorp.net (unknown [10.119.18.237]) (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 p1lg14878.it.hpe.com (Postfix) with ESMTPS id A994AD2CF; Thu, 20 Jul 2023 16:08:04 +0000 (UTC) Received: from dog.eag.rdlabs.hpecorp.net (unknown [16.231.227.39]) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTP id 53E0180CBEB; Thu, 20 Jul 2023 16:08:04 +0000 (UTC) Received: by dog.eag.rdlabs.hpecorp.net (Postfix, from userid 48746) id CDFFC302F47FB; Thu, 20 Jul 2023 11:08:03 -0500 (CDT) From: Frank Ramsay To: Frank Ramsay , Dimitri Sivanich , Russ Anderson , Srinivas Pandruvada , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] tools/power/x86/intel-speed-select: Support more than 8 sockets. Date: Thu, 20 Jul 2023 11:08:03 -0500 Message-Id: <20230720160803.1648970-1-frank.ramsay@hpe.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: 1s8DvVvOYPEgCw-8rqXI84_qufLTSZM4 X-Proofpoint-GUID: 1s8DvVvOYPEgCw-8rqXI84_qufLTSZM4 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-20_08,2023-07-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 lowpriorityscore=0 suspectscore=0 phishscore=0 spamscore=0 impostorscore=0 bulkscore=0 malwarescore=0 adultscore=0 mlxlogscore=863 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307200135 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 MAX_PACKAGE_COUNT limits the intel-speed-select to systems with 8 sockets or fewer. On a system with more than 8 sockets intel-speed-select silently ignores everything beyond the 8th socket, rendering the tool useless for those systems. Increase MAX_PACKAGE_COUNT to support systems with up to 32 sockets. Signed-off-by: Frank Ramsay --- tools/power/x86/intel-speed-select/isst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/x86/intel-speed-select/isst.h b/tools/power/x86/intel-speed-select/isst.h index 54fc21575d56..8def22dec4a2 100644 --- a/tools/power/x86/intel-speed-select/isst.h +++ b/tools/power/x86/intel-speed-select/isst.h @@ -79,7 +79,7 @@ #define DISP_FREQ_MULTIPLIER 100 -#define MAX_PACKAGE_COUNT 8 +#define MAX_PACKAGE_COUNT 32 #define MAX_DIE_PER_PACKAGE 2 #define MAX_PUNIT_PER_DIE 8 -- 2.39.1