Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1652329pxu; Sat, 12 Dec 2020 22:10:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDI9b8JsLay3uq8T+KxvJE/xE69bSblpLYyjshZ8lm/MgVOxizE3WzgutyzinQMxPtW4ZN X-Received: by 2002:a17:906:7f11:: with SMTP id d17mr17639810ejr.534.1607839810451; Sat, 12 Dec 2020 22:10:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607839810; cv=none; d=google.com; s=arc-20160816; b=q4TLTTv4J4yrWeftS42drFmIYdOGzyWk0+f1bd9sIPQnqkR3h0RFZXcNsmdkFAyMEe VHg1dkJ9msfSmugVpMdWnLZJCaSPKr8wYxhvyDHd1RMqX5lp3oMPfgV5iLyu0gtK2ogz gb49a7/j6Pz6K/DWIwv/A+rRtUdi3SDEYeePe9SCYx8DlT4LuqtTbvdGX7ggVfAvcEEW iT7FAGc+BfJCEwDkRdSRUokwtSQkGVZeQJGFsROrhIpnvZdjI8Qcekt3wCEbn1EtXOIs 8zRZiWoifdP0eZZUP0IAC28SF8+rlegn97Ge/qKnkxCD4WsEdncOq0YgrN95VbLjjJae KGSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=JVHTTreEM2z5Jb4a2Pg0lMUiVLM2zzxERaeVoukhzjk=; b=LaIWUmEE6kvLvBKhlY5VqzxDl3Gs94FN19L+4whs8g3yqMmPj7ut3yhmAAnO9lQij3 d5Xa42AtOEyMZObbbNLVyxRuHZPfN7YQ+E1NV7+9WFqLV31P7/VvXodCu0vjIjOjG14I IQRR8XcqYRv81UpJ6S1UQUJJT7TTXQus9igLOolRqtmSgfqmoKnWSl1a8dBkkmk6chh4 x+Cun3uOHRgGixQ/je4/wOiLaUQf5bFE/NpfeZic/iHM3xAMI1nPpl8I5MquQ4RRp26G Uv7ZhTUcMwAf4mzR74VLGcbx/eoFikxH9DjBlOdSu5MP8OkHkkS0U0NdmTle3qgbp8fn lbHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MbrhpZ0u; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si8765250ejx.247.2020.12.12.22.09.47; Sat, 12 Dec 2020 22:10:10 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MbrhpZ0u; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390544AbgLKXiD (ORCPT + 99 others); Fri, 11 Dec 2020 18:38:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392147AbgLKXhc (ORCPT ); Fri, 11 Dec 2020 18:37:32 -0500 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A04FC0613D3; Fri, 11 Dec 2020 15:36:52 -0800 (PST) Received: by mail-pj1-x1043.google.com with SMTP id f14so2966293pju.4; Fri, 11 Dec 2020 15:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=JVHTTreEM2z5Jb4a2Pg0lMUiVLM2zzxERaeVoukhzjk=; b=MbrhpZ0uIHXrtdroa40nBt7WQ6zvm981oT4fFYbJQ66l43weByvwokjuT2pLdPGOib sE9yuKjLAqnF1NL0xuiqNN8DHtP+J+7XNryn03AwXLJGKrLHimjLFTtdvGVCOntDZeh2 TH5sOf2OiTWoP4mIiqXrbutGTZyrJnpohuonyOdF2KN/DHKlLXJkoyM3ZTg6jj+Xx/Jq nvYiQIWYIbWKooi1X7SblpcP86eXpyIqeTmLEGS5Cq4y3WZFs33xbY7CKg3RL7IJysVS pPtCYhr72ticU2x/RS6FmGDoEEejZ8iGparkTVBRaou8cIQKhUPVk/SCBlmgAN//4vg8 gW2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=JVHTTreEM2z5Jb4a2Pg0lMUiVLM2zzxERaeVoukhzjk=; b=s9dAy2r9KrvNBKw7/5BkCCcxD1pjDJQFdQ8R8gOVE9rge4aVAwcSopYDhMCzhc8Ont dsT5PkCWOcA5CiFZ26ndzLYxzhB6o0scIMI7AYo8P3djLZRUogTdzdfqROaPwu6wi+KW K+yTZsQefGaFJKJ4q3B2YJYVcOgfpBoxeCx0IX/TQ6vaAfOdw/j2m1piHz9f9+IQXHVV n6LFez4yQ7AIXxdurkQ1hnkEhn+p9/HWlSaYPNHSyD1Oc13qBg5lWjUpCSlRMFA0ZbvF fcu3MRy/WGVs7PLr+V91kErXuk3iLeDtdjzIoIecHrEMh/+9rBL/s/dLTBpgl5uZQCfu iuxw== X-Gm-Message-State: AOAM532oFZqsCnJkVUD5ioTlpxu+i9ROe6jHIbmVdewiwDLAp0o5vMmZ XZWpXRufW1Hu7uKqtxu4vXA= X-Received: by 2002:a17:902:6a82:b029:da:fc41:bafe with SMTP id n2-20020a1709026a82b02900dafc41bafemr13117554plk.20.1607729811928; Fri, 11 Dec 2020 15:36:51 -0800 (PST) Received: from localhost ([2405:6580:31a1:500:1ac0:4dff:fe39:5426]) by smtp.gmail.com with ESMTPSA id j10sm11725336pgc.85.2020.12.11.15.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Dec 2020 15:36:51 -0800 (PST) From: Punit Agrawal To: Borislav Petkov Cc: Wei Huang , rjw@rjwysocki.net, wei.huang2@amd.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, x86@kernel.org Subject: Re: [RFC PATCH 2/4] cpufreq: acpi-cpufreq: Add processor to the ignore PSD override list References: <20201125144847.3920-1-punitagrawal@gmail.com> <20201125144847.3920-3-punitagrawal@gmail.com> <20201207202610.GG20489@zn.tnic> <20201207223057.GJ20489@zn.tnic> <87a6unq3xv.fsf@stealth> <20201208233216.GH27920@zn.tnic> Date: Sat, 12 Dec 2020 08:36:48 +0900 In-Reply-To: <20201208233216.GH27920@zn.tnic> (Borislav Petkov's message of "Wed, 9 Dec 2020 00:32:16 +0100") Message-ID: <871rfvoqy7.fsf@stealth> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Borislav Petkov writes: > On Wed, Dec 09, 2020 at 08:21:48AM +0900, Punit Agrawal wrote: >> According to the commit log, acd316248205 seems to be only targeted at >> powernow-K8 - > > No, it is not targeted at powernow-k8 - acpi-cpufreq.c is what is used > on AMD hw. He means to make acpi-cpufreq's behavior consistent with > powernow-k8. So "powernow-k8" is not a cpu but a cpufreq driver. That doesn't change the fact that the patch causes all AMD systems using acpi-cpufreq to ignore processor frequency groupings and treat each processor to be an in independent frequency domain from cpufreq's point of view. >> But if that is not available, the only way we have is to include >> systems that have been verified to not need the override > > You have verified exactly *one* system - yours. Or are you sure that > *all* family 0x17, model 0x60, stepping 0x1 machines don't need the > override? Unfortunately, I only have access to one system with that F/M/S. Since posting the non-RFC patches, I was able to inspect the ACPI tables for more CPUs - Family: 0x17h, Model: 0x71h (Ryzen 3950X) Family: 0x17h, Model: 0x18h (Ryzen 3500u) To me it suggests, that there are likely more systems from the family that show the characteristic described below. > Also, you still haven't explained what you're trying to fix here. All the CPUs here are multi-threaded with 2 threads per core. The _PSD for the system describes the cores as having a coupling that consist of a frequency domain per core that contains both the threads. The firmware description makes sense and seems to accurately describe the hardware topology. In all these systems, the override causes this topology information to be ignored - treating each core to be a separate domain. The proposed patch removes the override so that _PSD is taken into account.