From patchwork Thu Sep 15 18:31:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pandruvada, Srinivas" X-Patchwork-Id: 12977705 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1A32C32771 for ; Thu, 15 Sep 2022 18:31:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229497AbiIOSbg (ORCPT ); Thu, 15 Sep 2022 14:31:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiIOSbe (ORCPT ); Thu, 15 Sep 2022 14:31:34 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2082B3684A for ; Thu, 15 Sep 2022 11:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663266694; x=1694802694; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=/XVBlf83EJIOsaai/fMGIaJVzi3zWBNGHdIEhE6F5es=; b=eWddskSdoL4axq9e8dwd7XSMTzRodD2sTb0rkveTR0FWVSnJ/IPutNgn BJbAcoorqIWD78vRHU0Vc73U1+3kscoGOrIljW7yGhItEQNKsqHkrKMoS T2ivUjNlXKpYFdZHNWFshRL3TcBoRCLD6DWa9jMGz5lYmH1V2HRMafG00 wtgCE9q1YRVBUeUIPDxqHQBw1UwUT99ftDIm6d+FXyW/eDHMjB2Q0ljLU zyeKYkOegxMaMbURn6UQ7Ipz9x+m7OHvJRnVOaicOwXE4ceggOaHH3Atq 9myYzbCMXos6D2TOveXv6yc5Sa2bMJjy3A8qNsdhxgT4tWo/MASlheV5w g==; X-IronPort-AV: E=McAfee;i="6500,9779,10471"; a="279186415" X-IronPort-AV: E=Sophos;i="5.93,318,1654585200"; d="scan'208";a="279186415" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2022 11:31:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,318,1654585200"; d="scan'208";a="862450049" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga006.fm.intel.com with ESMTP; 15 Sep 2022 11:31:33 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 15 Sep 2022 11:31:33 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 15 Sep 2022 11:31:33 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.46) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Thu, 15 Sep 2022 11:31:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hdjvBGChWrqzo9JljdOu+phkGeI/jWQN52/EbOY0YmFQrz3n8dW03/3PHyWlSINlI/V8o9cWQzqqPUpmIyHZXpU2D3+laK21mljt6WxQmRQ/SeZFqiEDlis4kne6jFRSwPgDyiZm6bmzyDaVDp3h6b6slPOC+kipJp34wCE2OgxwsGA/jiLucSzb/NTUT/aGbTzOu3D+2C3cpJLzgRyki8q7WAPnChVo82gUScCaNv+UGIUczLPVaI7aPkcjAgV7nrQQtZhjWdgjWJysHzvo7D619pM2QbNTTcX9TBbqnWEjX9L5J4Bn9cND55BlNecDw4fx2SCJrtnHuMTKhlNc7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/XVBlf83EJIOsaai/fMGIaJVzi3zWBNGHdIEhE6F5es=; b=ay7ygBoojT0tGtx2pjfR37TwDuWhqaSRj9U8yT4BHhqar5L8Mr4DMgwwHGOQ5ceNnX5+9EX/6pDGqrPY7qikmxkda6YMz3EnxbsnyzCqv/rAhmOIGZ09r+7e8Vqk48DzF+g7hIpdjSSmLdtTv66hQhpYBMyEx4FaQnID0Wolvqw+0wE45pJL0YXorbVNRmFBMxsaCHDkvEHr5MoHtCRPRxj/UPEUMx6Df9tucI7nsWb4Ums+VzZRs8RbZEYI3+duxhyPVSdWk2uCQP2VAmxfz/LnLmyMlX0HsSMJCqJbTLUVaSN/BDa9CLw778lGWaktAFvVgbdujyEB0NZ3FlIFlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM8PR11MB5592.namprd11.prod.outlook.com (2603:10b6:8:35::6) by BN9PR11MB5227.namprd11.prod.outlook.com (2603:10b6:408:134::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Thu, 15 Sep 2022 18:31:31 +0000 Received: from DM8PR11MB5592.namprd11.prod.outlook.com ([fe80::c044:c902:a5ad:60dd]) by DM8PR11MB5592.namprd11.prod.outlook.com ([fe80::c044:c902:a5ad:60dd%6]) with mapi id 15.20.5632.015; Thu, 15 Sep 2022 18:31:31 +0000 From: "Pandruvada, Srinivas" To: "hdegoede@redhat.com" , "mgross@linux.intel.com" CC: "srinivas.pandruvada@linux.intel.com" , "platform-driver-x86@vger.kernel.org" Subject: [GIT PULL]: tools/power/x86/intel-speed-select pull request for 6.1-rc1 Thread-Topic: [GIT PULL]: tools/power/x86/intel-speed-select pull request for 6.1-rc1 Thread-Index: AQHYyTFgT7CMTr5Ud02c3gFFWvTCRQ== Date: Thu, 15 Sep 2022 18:31:31 +0000 Message-ID: References: <49ef6e43-eb16-052e-3e58-f0290328cdd6@redhat.com> In-Reply-To: <49ef6e43-eb16-052e-3e58-f0290328cdd6@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.42.4 (3.42.4-2.fc35) authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM8PR11MB5592:EE_|BN9PR11MB5227:EE_ x-ms-office365-filtering-correlation-id: ff2b1533-5644-4b94-c11a-08da974882bb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 35gWWbD5rPF3b6x5bVQwkoRZnuUUhaepa8ZDCAQpiURU2LTvTjLfWHnQKQP39nAvuIFun0G9+BCrOORbLp0j3ClsxabtXfjiJUVFg5+IWp2qJeFKByj/K/Afpxyq5NmSqcNxeSTc8PFrGmgUC3gGdW4ClV5woO9DMGpRX/d1XNZhQb3zCfzr06deDBeidERst/OvFKNe2MfoNUQgmRJqk5GAbsVGSwoAwlSan3MH840c1PdLq1wtAvh47tPnhRc7c3o6tMIYcsgf2VnfhiTVq03X+McFp2AGUSizaAGzlaR2V8Y1S+6fOr8QkntKiHPSv9OtmvsxzndhCyVQVMXbqjPbnKDhj2ZR4yi4D9sneng0KBrI6vN2in5Am4HUDiI8N9XFMMqlqq85ay3bpLixHKLdGZGDoijHDTcqesI/p0vwAP5+zU8sLm2M3NIJSfKzP2u5E4ZfdKJwlj/RVVfECbrgNXDaJdL4VAuERX4lRcCqZ26GeM0OXyZ1T/ux2yG1D31B02omXKIHz8mdl59vJRHjKubzfC0oiTuJdpWqvZJrN7twKw73UxwiqW3EccTz2ynrnhsCD+68KBrnmSk2NwEj+1s7Zq0cY+zlQk01Xr0mmjUttbEaJba1lN57XqkerjViXpnZzAuNnbS/1NhnU8bpUWg9rGgb3gMiLRgM94YrCSOy7dZK5htHxA+WsiWKpKGhwRc6clfd6M3o8unBtySez8EosFPetANvnWZQWgoAj8yNGNLxZCUNK4p3lxvbIb2gxeBlfPy2nD8ZDAG0sa8LkfyNdM4oPqHJ1tOtSeqaHN8FX5KWU9G/Ooy7MQ6nbY4zKoGT+mbBma2uY3inlQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM8PR11MB5592.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(346002)(376002)(136003)(366004)(396003)(451199015)(478600001)(26005)(6512007)(38070700005)(41300700001)(6506007)(2616005)(186003)(38100700002)(83380400001)(122000001)(86362001)(82960400001)(966005)(6486002)(8676002)(8936002)(110136005)(316002)(54906003)(36756003)(91956017)(5660300002)(2906002)(71200400001)(66446008)(66556008)(76116006)(64756008)(66476007)(66946007)(4326008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?tkBi8wdjsGztb8nlr3ZuUkdJDaRU?= =?utf-8?q?Du32Nz9WCeyixMMzx/je4zEE6p32n9m/m7mh4zXwBRR9xHLAnFV3ZBJp4wUamq2sB?= =?utf-8?q?Hfmu0YVr7JCMTP5uMVHr1Jmplc/122GPZyvscQqbVh3BeYBqH4POT0dPjI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= =?utf-8?q?5E816uD2E+kVFAzionuBI0ykI1YoFaZ58p9YwIHreiobvHXtmsaK3o6lwtiRqhPoi?= =?utf-8?q?lCRr3juq3Texz5uTCm5mRRvFxrxNa7Xl1zz28Dr+RrmdB1VR1uIg4vDgqANGrawMg?= =?utf-8?q?EymmolJ5EF3DaJ2yDTM++8ZyMbF3DHM7IQ1bwATRVOrQ4s0A0UVg+E1MGSsGJKf5F?= =?utf-8?q?gQLs78OL7fyznpNuXSilx2P/HszwUkrmkKamfYQFv6ZPHmFZ8jcSTuFo2ZU9zklf3?= =?utf-8?q?rs1cEud+szkalPK454OLJNAOkbX7L0gRPSKGJhDYJ2J9Ew4wf/qd5BIpjJDmrF2rV?= =?utf-8?q?HFnE4QhqFkUewGHHmIBfLin5f1fA9TdwYAmJBUJh5nuGZm3a7A1y6js3SWPpeRqnc?= =?utf-8?q?k059CpbmtI9Pu54i0czGxisAeh5RrJKqrenqZkVUFlYI++h9VM6SjKcVvpbgaVG0M?= =?utf-8?q?P0KGpjfia9iIw2FNlGITXicMw66fJuNd57qgOwKHuKcEB+frHw9NlFEtuAcmSEv4i?= =?utf-8?q?C+NvdWH+npzxaqyi6SpqcxCk1sF7ONJFN1cvdp3skOdbVeFshPi99c0=3D?= Content-ID: <00B912084D433348A5896DD98E89A3EF@namprd11.prod.outlook.com> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR11MB5592.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff2b1533-5644-4b94-c11a-08da974882bb X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2022 18:31:31.2816 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 11BvzXDC+jqgwCRGjSr+mUGzXXN0Evyab4MjAO+VfJBkBAGXCyB73pn5D39hIBvmLRg4J1HaJXbESwCDNnoe7RrPRxGTuVW3HU3EdDsYn8w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5227 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org Hi Hans, This pull request contains: - One fix for invalid display of cpu count for TDP level - Removal of unused code and data - consolidate package/die/cpu in a struct and use this instead of passing all and recompute package and die ids These changes are on top of https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git for-next The following changes since commit 76fba1221e3045570478381c3436c8c2a2656376: Merge tag 'backlight-detect-refactor-1' into review-hans (2022-09-05 11:01:56 +0200) are available in the Git repository at: https://github.com/spandruvada/linux-kernel.git intel-sst for you to fetch changes up to 97ec890d070158f15fe8ef2419a5ff677bdbbc20: tools/power/x86/intel-speed-select: Release v1.13 (2022-09-15 11:16:06 -0700) ---------------------------------------------------------------- Srinivas Pandruvada (1): tools/power/x86/intel-speed-select: Release v1.13 Zhang Rui (13): tools/power/x86/intel-speed-select: Fix cpu count for TDP level display tools/power/x86/intel-speed-select: Remove dead code tools/power/x86/intel-speed-select: Remove unused core_mask array tools/power/x86/intel-speed-select: Introduce struct isst_id tools/power/x86/intel-speed-select: Add pkg and die in isst_id tools/power/x86/intel-speed-select: Convert more function to use isst_id tools/power/x86/intel-speed-select: Cleanup get_physical_id usage tools/power/x86/intel-speed-select: Introduce is_cpu_in_power_domain helper tools/power/x86/intel-speed-select: Do not export get_physical_id tools/power/x86/intel-speed-select: Enforce isst_id value tools/power/x86/intel-speed-select: Remove unused struct clos_config fields tools/power/x86/intel-speed-select: Utilize cpu_map to get physical id tools/power/x86/intel-speed-select: Optimize CPU initialization tools/power/x86/intel-speed-select/hfi-events.c | 5 +- tools/power/x86/intel-speed-select/isst-config.c | 511 ++++++++++++++++++++++++++++++++++++----------------------------------- --- tools/power/x86/intel-speed-select/isst-core.c | 313 +++++++++++++++++++++------------------------ tools/power/x86/intel-speed-select/isst-daemon.c | 36 +++--- tools/power/x86/intel-speed-select/isst-display.c | 76 +++++------ tools/power/x86/intel-speed-select/isst.h | 88 ++++++------- 6 files changed, 496 insertions(+), 533 deletions(-) Thanks, Srinivas