Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp58684pxu; Wed, 25 Nov 2020 13:03:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1mR8d1g5DkPR1Yi2hlx4lMa5+HU25suLmOqGQ3F/4/+ZWLVLBrvaHDV8H4lMF8GSHQVZy X-Received: by 2002:a05:6402:d09:: with SMTP id eb9mr5249798edb.71.1606338199031; Wed, 25 Nov 2020 13:03:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606338199; cv=none; d=google.com; s=arc-20160816; b=wH7g6vvljg3EJpGAJybhBA+zwrRGHjLDlSHiB9LQGMUTsg/AUmj9f3dglTiknkx/aO texhn9EHGXZ5J5Al6o7XxOz4qBGUgtv/BKu7BQvFcS9PpF2kE3FjpSyS4vc7Mzhn7U/Y QYppxdSxjScC1DQZSkQMPe7DynZooSJdItKi5scyxdkxutZPGJ6gJAMLq1EMeoZ5W46r HYsle0cGrMdjO/dhq2p5WlvA8K7P6wdaxmjwupIGZ2wbcN2ZHyxihzdNLUcizQv5hlVy wZymLVnFRDdnxz3bJPoBgEQmXfR97vz5vT2GBr2JXYejTvoBRxTzubqlPCgbyUH5vNlN w/Ig== 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:dkim-signature; bh=Peq0jO3BCmWDdna3/CVkwJcf6SyZq4/YYykGC72XjLE=; b=BP6TEw8kUrLp/iAdBFNs9RGyaHtPnrI76RNGqhHl9oSPX574NF1KFfOJ37lH+nUw/A IZlgadhQ5Bahu/E80CHmshpEVlJcqu54io2md5Xvik/fuwEy6IHiV2F2Gagd5z2C5NJo JQXbuMjbWAl3kPDk43EkixTVNap/ATqlRsjXWyid/4afY/RFPPWo5EWhHT4EtCrYZOPI yZnd9Z0ZLjM6av+00HkS4TbD9fTIvddn33chcc0yiaFRUNa9fzJ12kb9uQ4s5tz1a9fq FCTanXB3sAEcHYc1PfUciIK87hn1rJyW3/SMQaxYwIKGfhwrsYgM6QzKcI/gABCYQBLU n+cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dtb61Bke; 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 g24si1855576edj.168.2020.11.25.13.02.54; Wed, 25 Nov 2020 13:03:19 -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=Dtb61Bke; 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 S1730033AbgKYOs7 (ORCPT + 99 others); Wed, 25 Nov 2020 09:48:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726295AbgKYOs6 (ORCPT ); Wed, 25 Nov 2020 09:48:58 -0500 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 917E2C0613D4; Wed, 25 Nov 2020 06:48:58 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id t3so2612192pgi.11; Wed, 25 Nov 2020 06:48:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Peq0jO3BCmWDdna3/CVkwJcf6SyZq4/YYykGC72XjLE=; b=Dtb61BkesKg7tTzhrP3m+tDr6y8W3wRnJBdvtxweItL9j/7gPcFKUcmZQ2OBUGovzs KX/IBkmIr4tLzI/2HvW6EJsvPUaDcDjIXRNPBwp2y5OlZyWrXs7wXR/xEpjNCv+f73GJ Wzm+8gOISOTg+VAUGGjumcFsblh0LPwRxPiHBmwtfV+QjaSMzJv/qVw14bFVkBzOe6VV QEJBlbTIT9Vmy2/6qT2Zjjk8pTZ7ktLLLD7KYXJMhz+VsVg7N8JuFEOiJoGUYDk4vXoB WK2DQPE0NGIMMjicutW+jG6ixianPVOf1K66s0C/oH4pA+8xpe3Wz6FaX2ks0nmpfEDi uBOQ== 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:date:message-id:mime-version :content-transfer-encoding; bh=Peq0jO3BCmWDdna3/CVkwJcf6SyZq4/YYykGC72XjLE=; b=N5jNdyzCJNgYHoxEPvxHLe+m/SL7TsglGtj4rNdS9dQYRgNSLPH6Dr7tuidsZoolER dtZ+tjp+qTTY4jpj/8bH5l1j8fdb/2I7yCiN9CnWmjVQ8KUme907Tj7vDRusJIepWX/O m2jtUmymh3a0z1kLlcV4zgqge4TljlF4Fy/lWbK1+c8lzcpJGBEbROeqT5rSK8SUB8tB +C7EsOPiTL5NcmrJzGPHb9/VF/6TVBHPXHDB2FfhDxKuE3EeD3pP29wRRN8ISKmYuXp6 sNZJkPOzOaxHbkLslsZ7liijYXuLRfhOfiK+SGYc/rbZTjKjDnNBb90u526IoD/KpZEt 91kw== X-Gm-Message-State: AOAM530tebWhlZGqF0xY6CtRlcmqwb1di9fQTL3JwDpdH/TGjTV+N/1t kU3MTe5zZ52MOIaIAOxRzAU= X-Received: by 2002:a17:90a:8412:: with SMTP id j18mr4833520pjn.124.1606315738059; Wed, 25 Nov 2020 06:48:58 -0800 (PST) Received: from localhost ([2405:6580:31a1:500:1ac0:4dff:fe39:5426]) by smtp.gmail.com with ESMTPSA id f5sm2259570pgg.74.2020.11.25.06.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2020 06:48:57 -0800 (PST) From: Punit Agrawal To: rjw@rjwysocki.net Cc: Punit Agrawal , wei.huang2@amd.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, bp@alien8.de, x86@kernel.org Subject: [RFC PATCH 0/4] Add processor to the ignore PSD override list Date: Wed, 25 Nov 2020 23:48:43 +0900 Message-Id: <20201125144847.3920-1-punitagrawal@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, While looking into Giovanni's patches to enable frequency invariance on AMD systems[0], I noticed an issue with initialising frequency domain information on a recent AMD APU. Patch 1 refactors the test to ignore firmware provided frequency domain into a separate function. Patch 2 adds said APU (Family: 0x17, Model: 0x60, Stepping: 0x01) to the list of CPUs for which the PSD override is ignored. I am not quite happy with having to special case a particular CPU but also couldn't find any documentation to help identify the CPUs that don't need the override. Patch 3 and 4 are somewhat independent and a first step towards improving the situation with regards to the use of raw identifiers for AMD processors throughout the kernel. All feedback welcome. Thanks, Punit [0] https://lore.kernel.org/linux-acpi/20201112182614.10700-1-ggherdovich@suse.cz/ Punit Agrawal (4): cpufreq: acpi-cpufreq: Re-factor overriding ACPI PSD cpufreq: acpi-cpufreq: Add processor to the ignore PSD override list x86/cpu: amd: Define processor families cpufreq: acpi-cpufreq: Use identifiers for AMD processor family arch/x86/include/asm/amd-family.h | 18 ++++++++++++++++++ arch/x86/include/asm/cpu_device_id.h | 2 ++ drivers/cpufreq/acpi-cpufreq.c | 24 +++++++++++++++++++++--- 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 arch/x86/include/asm/amd-family.h -- 2.29.2