From patchwork Fri Oct 25 17:14:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mario Limonciello X-Patchwork-Id: 13851147 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2050.outbound.protection.outlook.com [40.107.236.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46A321FB89E; Fri, 25 Oct 2024 17:15:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729876535; cv=fail; b=dsglHbT6Rn2bvBwbqW6jkECtjmmB1xuaQkjGP9cu6DDp+Jx0hwbjvR/0BBMjWYZXSwDDSRomYuUo3PBpbWt2lVtbppEje0BrL5QdSwoET5uCcfaSy2/FfOrLHLUYNPu4h8jGOTiGwDTZHfoBZKXii2d0aYUDszpUoj64NFtPugQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729876535; c=relaxed/simple; bh=OD6pHqAMlDJpD8U6NH9qlKBuwIB22hB2aAYJJFsfSik=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Idy0lh9qX5JMl3ZTfXmN1Q4MuC+esjN/aU2ap6tc332NqkYrLrVnXlZPDjqGfv60O2jiTK5A15Up1mhQfowsw8xg/7FbMrJE50oE+JriYIOtSb5XMNlti9Fk7Tl6hD3jyQb6k3Cw+26ijwZdaggyOWb9TRZhl6UHQC2cATuJJh4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=Bx59WvSH; arc=fail smtp.client-ip=40.107.236.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Bx59WvSH" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wN74DcGVpINnka7BU37osVkE3GlwGXVWVjM5EYPwInAVcEXkNbvBsyVt2qKkqReQlQPUkY8/l6jZJqd/vOR2/aafNbHw/EBCVcxQkyCDa0cAvocb7cJNdzHFsUljtMdBaI50K+lWigTgaA2ZE/vsCDAHmW7N0oZ9ZZ7ZBwUHAJl2wQ/IUIRFhFBghc+nE18jmeC2dqax3I2y1Fj9dMc5NlEZJZ5SYPldNFUzqXK02ieS8jPf6blXzbwILFJcMN29H8P/PDTmyE0U1PF2RwJrvYytXxD1ONHtNLvvfocESy9rnYReoLBcP0Msu4DlGizzgGrdo5cYqRCt5cPznFlr8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=HCrdbNXfdYJ4yCKLanQqQRve/Qr6AHivOLImiw7LaAI=; b=mBtscvLsz/ac7KR/brCR1xNiZT7+fw5KtCjSUtpQ2eQ0ByExbK2gwpQqSGjP2dtNg9asfIu+fuilws1oNIXEVo5WNIEsdgwfJu3nCKgE5KeMmcohpxqwc0wOBo5U4/yl4r6ArSp61QHuR+SYKZ3hnsgysf3W+2GTz/BL7pigofAne5UwxoOQszK2MPja68tv3YavI04wvlK1NfpfF7O7YFXtEwalzy1lzQgpNWieQBx7Q30mo1vijCt2DdSNgksfoqQmuBANjS0C7BDhErO+wKcF2zbVTV7DBMOJw8BZknCIQEztwsStCJJs/v2ZF+kt6NI4vc0LQhPkv1WF9YOfrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=alien8.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HCrdbNXfdYJ4yCKLanQqQRve/Qr6AHivOLImiw7LaAI=; b=Bx59WvSHYPzyZAGdork6ohftQX4GGST/2ybPmt9ceWgGvQZ5npq6cE+o45ILJszL2nmYUPW3as2+KIxvENhE7O55Fa8gEEXskvhccZa3flieuxOLZmW4L+RfrZpjdEfo0D2V4BNTSvoxieE3Y98TIhO8hORdYX9hLDmxjrgXf3k= Received: from BN8PR04CA0044.namprd04.prod.outlook.com (2603:10b6:408:d4::18) by DS7PR12MB5864.namprd12.prod.outlook.com (2603:10b6:8:7b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.20; Fri, 25 Oct 2024 17:15:28 +0000 Received: from BL02EPF0001A107.namprd05.prod.outlook.com (2603:10b6:408:d4:cafe::c5) by BN8PR04CA0044.outlook.office365.com (2603:10b6:408:d4::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.20 via Frontend Transport; Fri, 25 Oct 2024 17:15:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL02EPF0001A107.mail.protection.outlook.com (10.167.241.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8093.14 via Frontend Transport; Fri, 25 Oct 2024 17:15:27 +0000 Received: from AUS-P9-MLIMONCI.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 25 Oct 2024 12:15:25 -0500 From: Mario Limonciello To: Borislav Petkov CC: Thomas Gleixner , Ingo Molnar , "Dave Hansen" , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H . Peter Anvin" , "Rafael J . Wysocki" , "Gautham R . Shenoy" , Mario Limonciello , Perry Yuan , Brijesh Singh , Peter Zijlstra , Li RongQing , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "open list:ACPI" , "open list:AMD PSTATE DRIVER" , Pawan Gupta Subject: [PATCH v4 0/5] x86 Heterogeneous design identification Date: Fri, 25 Oct 2024 12:14:54 -0500 Message-ID: <20241025171459.1093-1-mario.limonciello@amd.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A107:EE_|DS7PR12MB5864:EE_ X-MS-Office365-Filtering-Correlation-Id: 771e828c-3ae1-4c0a-1e79-08dcf5189ee3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: ORpsIkRCYid6qa3bT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v9k8Mnewk/v9kLmLRCpJNuw0c1JY0tcvC6qWgvunaWGHw3i6nYK/zK0QlpRmGl6f7c9NHuQ0PIQgaS0E1GA44JhCZoeMY6v0G2eP1fG5fcxQDCmblLXGSF7/Ogu9zyUs8eHmewA7OuI/2kxcc5b7ppQIyMdwphh2G/8AkRLnc7U38V9aKL54Ozhj2fIF9BtPSle9281oaVi8yQ3WpvLIBuMLwnxqBwmKnjJ0r1/CsTs9OLHmZzkT3P2ws7uMTz1pbbzy2nEn1BhVNkMOukvBqynVQYYXM9a1h24XmWFYJgvmibrkN1jk8gcic3hG832MIzizh1rUAdytDfjKve2E= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(376014)(7416014)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2024 17:15:27.2847 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 771e828c-3ae1-4c0a-1e79-08dcf5189ee3 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0001A107.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5864 This series adds topology identification for Intel and AMD processors and uses this identification in the AMD CPPC code to identify the boost numerator. This series was previously submitted as [1], but this was based on some patches in linux-pm/linux-next that will be dropped. Instead the series is now based on tip/master. This also pulls one patch from Pawan's series [2] and adjusts it for all feedback while adding AMD support at the same time. [1] https://lore.kernel.org/all/20241021175509.2079-5-mario.limonciello@amd.com/T/ [2] https://lore.kernel.org/all/20240930-add-cpu-type-v4-0-104892b7ab5f@linux.intel.com/ v3->v4: * Fixes from M/L feedback. * Pick up tags v2->v3: * Adjustments on Pawan's patch from M/L feedback. Mario Limonciello (2): x86/cpufeatures: Rename X86_FEATURE_FAST_CPPC to have AMD prefix x86/amd: Use heterogeneous core topology for identifying boost numerator Pawan Gupta (1): x86/cpu: Add CPU type to struct cpuinfo_topology Perry Yuan (2): x86/cpufeatures: Add feature bits for AMD heterogeneous processor x86/cpu: Enable SD_ASYM_PACKING for PKG Domain on AMD Processors arch/x86/include/asm/cpufeatures.h | 3 ++- arch/x86/include/asm/intel-family.h | 6 +++++ arch/x86/include/asm/processor.h | 18 +++++++++++++ arch/x86/include/asm/topology.h | 9 +++++++ arch/x86/kernel/acpi/cppc.c | 23 ++++++++++++++++ arch/x86/kernel/cpu/debugfs.c | 1 + arch/x86/kernel/cpu/scattered.c | 3 ++- arch/x86/kernel/cpu/topology_amd.c | 3 +++ arch/x86/kernel/cpu/topology_common.c | 34 ++++++++++++++++++++++++ arch/x86/kernel/smpboot.c | 5 ++-- drivers/cpufreq/amd-pstate.c | 2 +- tools/arch/x86/include/asm/cpufeatures.h | 2 +- 12 files changed, 103 insertions(+), 6 deletions(-) base-commit: 21f0d4005e7eb71b95cf6b55041fd525bdb11c1f