Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4214623pxb; Tue, 10 Nov 2020 10:33:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzm5JETG0Un4E5bNOSsI6/aGzL4sbaxGm9krlxkxZOhehUrtYMJ0oP7+jkPEb23+3GDJMks X-Received: by 2002:a17:907:119e:: with SMTP id uz30mr22143697ejb.125.1605033227717; Tue, 10 Nov 2020 10:33:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605033227; cv=none; d=google.com; s=arc-20160816; b=0dHyZuEt0PsR7CCW3z6/+c0ZnmPSme+o5LClEFWQ8dcU24zoRvHKPODS1nawhDipGX RCCLVOd6Ciye/RviVJgYIy6MHSGckXECUMZTNna0ox7YvlhgFqDuPqxj4NKlkqGTGGda gLFg1kLBDApmbXIJPP5E+DoS+HyNLjrjFH8Ew6k6/Z0mZOW4pDclNBBt4y5LOp3pjOVo xM6Bjasa4oV4zm2H9qYQXODP6y7zxji7iElYhJKX7o+RmqHNaQaoWTtWFkgZ8Ydsfh/t rDA13ZCcksigioxqLRzoxVffZbFfppwt+I96A2kreXPEtdfrtYDh1rKahhQpKj2JeLU7 EesA== 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:cc:to:from; bh=173mFIuM0ZgpxBdxPI0Dy6opwciT54l53MXmG42Ji2Q=; b=pCpT5hjbZLaQpklv87nDyAUmwS8c5j+gf2XrhukWI9dD+6TzHLRlCE3M2iiIGz+K1f ua4DAWHHfCPIowpKKvdOhUtWwjIT8pu+EkkY+JsJTx2eRiRe5L+URbsCvL3zvhyZMUu1 +W5YFKXLCUA6encCXWYNYtf6uYHoo3G2k22Y0hRvjs0Qq6m0IchMApyFNnCxmDTWgMop 34FS7wdbUritz7RSArJz7qWDwxab6DQGJSFC0gN/75Kpp/1+GmYMjAKmDFIx1Y7KUzwJ gbZLVyUiVlbCRplB8GsJXuUTVUHbyWq9SGSjogVJqwWB2j9vCeUFY65ik3qhmrpatCEl XJxA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y23si9816550eds.334.2020.11.10.10.33.24; Tue, 10 Nov 2020 10:33:47 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731050AbgKJSbH (ORCPT + 99 others); Tue, 10 Nov 2020 13:31:07 -0500 Received: from mx2.suse.de ([195.135.220.15]:34534 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730468AbgKJSbH (ORCPT ); Tue, 10 Nov 2020 13:31:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id C75F4ABD1; Tue, 10 Nov 2020 18:31:05 +0000 (UTC) From: Giovanni Gherdovich To: Borislav Petkov , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Len Brown , "Rafael J . Wysocki" Cc: Jon Grimm , Nathan Fontenot , Yazen Ghannam , Thomas Lendacky , Mel Gorman , Pu Wen , Viresh Kumar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Doug Smythies , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Giovanni Gherdovich Subject: [PATCH v2 0/3] Add support for frequency invariance to AMD EPYC Zen2 Date: Tue, 10 Nov 2020 19:30:51 +0100 Message-Id: <20201110183054.15883-1-ggherdovich@suse.cz> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v1 at https://lore.kernel.org/lkml/20201110083936.31994-1-ggherdovich@suse.cz/ Changes wrt v1: - made initialization safe under CPU hotplug. The function init_freq_invariance_cppc now lets only the first caller into init_freq_invariance(). Giovanni Gherdovich (2): x86, sched: Use midpoint of max_boost and max_P for frequency invariance on AMD EPYC x86: Print ratio freq_max/freq_base used in frequency invariance calculations Nathan Fontenot (1): x86, sched: Calculate frequency invariance for AMD systems arch/x86/include/asm/topology.h | 8 ++++ arch/x86/kernel/smpboot.c | 84 +++++++++++++++++++++++++++++++-- drivers/acpi/cppc_acpi.c | 3 ++ 3 files changed, 90 insertions(+), 5 deletions(-) -- 2.26.2