Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4655375ioa; Wed, 27 Apr 2022 08:20:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwte7w8cxO18QNUIj8un5a7N16fQE11NDubwbJKFX0SOjwDqTfTeYMgkkj4mcNrwvHPsira X-Received: by 2002:a63:515:0:b0:3ab:84c3:3f37 with SMTP id 21-20020a630515000000b003ab84c33f37mr8927986pgf.110.1651072805156; Wed, 27 Apr 2022 08:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651072805; cv=none; d=google.com; s=arc-20160816; b=ExNqWUKCxYrxST2jPYTC6M9D+oTIg2N4NjX8TFG40Zlv5zleWh2nZsEQLxfUGLuL0S vO7Kk5Au2riVB3+T8F7FMD4dJ3W9DUIJLoGypQ+MT5GDbOcom8OVdk+l05gbTQRWoDBD V7JKBPRhk5gLq7RoSQ0a3E6k7c0Y/X4bliMcX/foKVM+PUYBFZGwYKRa/7SS6xkuHV0n QoEeO9DTbqglW15i5NygyfA9H7SOAGdsUfgmY/7RRNVhSd1whHlloDdjRnqz03JEdw9b 3S+ls2y2ha+535WSO75T70aTk4nCo08tCnp4yVmF72aftvTzpVzGgpngfp/8r5yx3NxD HRog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=wvn9LwNNtiMBYYNla0pQisgNERbncoLZFjzZf3wEaBg=; b=HGVVYoFFsyL0xM1TxdraC38yQPdGawCxZewcVc2R6qHEvFDQTvOqUSmDfRcLLv85Qt HKWoKVXKquwGiJXxGG16UfK4+0fr7mFBm/n+EY3WEy8rVQKF+JeTbfJIUZcTdON9vFeq 3i/PqLvrWLqD8Q4tDPqtYI9oUcBwpD1L8ifnnc7/th1zS0TS3W5Z9uQD1gnnLRl/kyLO a/XEOxzt57KK4kN+stJ7egFwvejiRgY+6E+Deov355bFkvUThQZPLbkTYAdUM2NcmOKi cMBiiFnB74dfJi6CJrqkccfOMdIjjg1PdLE1DLaO1yrB3I4auqYAM4n2XRMtYmFW+zmA BsBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uBgMpcZ3; dkim=neutral (no key) header.i=@linutronix.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u2-20020a17090341c200b001589d3ae40dsi1889836ple.505.2022.04.27.08.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 08:20:05 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uBgMpcZ3; dkim=neutral (no key) header.i=@linutronix.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EFFCB4198A; Wed, 27 Apr 2022 07:51:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238725AbiD0Oyy (ORCPT + 99 others); Wed, 27 Apr 2022 10:54:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238641AbiD0Oyx (ORCPT ); Wed, 27 Apr 2022 10:54:53 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E734341986 for ; Wed, 27 Apr 2022 07:51:41 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1651071100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wvn9LwNNtiMBYYNla0pQisgNERbncoLZFjzZf3wEaBg=; b=uBgMpcZ3fiuFPxwc0FsdNKmhiEiq3aFTofHmvwGqcRfnuY744xoV7HNmCihFVP64SarZss Nkp6h5l3E8n7Xm3EpxaoC5AZM1s6Iv6RIqIXt3Hrkp13OCTaNk8yW81DuLPhhoEtDVgFMA Erab+9/PXMMTPWZ7hGlh13bRxV3lQhcc1N8i3zvKSrq6Nt148SMd3qHuR4NjUyTPNmzBrp zAhO2k2FAmOHmrXIaOplWg9DU529uwzm0q8E1BEZ/V2xuyndu4tbbrFnmIDiM4WY5QLZHx uatpQCGH70d+vA3C1nIU6X8VYN7cu6EfXZLfvyasuc8NQWM9He2tXplmHmyNbA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1651071100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wvn9LwNNtiMBYYNla0pQisgNERbncoLZFjzZf3wEaBg=; b=Xx0sWzCld9Q14vN2ZEsatuJCh5KYVNHy+z+N8WaglwEJPI5iT+B1LVMJbGEcyXAyMwXo7x wvVx1DXCcgCcXYAw== To: kernel test robot Cc: Ammar Faizi , lkp@lists.01.org, lkp@intel.com, LKML , x86@kernel.org, "Rafael J. Wysocki" Subject: Re: [x86/aperfmperf] adabc53c25: WARNING:at_arch/x86/kernel/cpu/aperfmperf.c:#freq_invariance_enable In-Reply-To: <20220426072238.GA613@xsang-OptiPlex-9020> References: <20220426072238.GA613@xsang-OptiPlex-9020> Date: Wed, 27 Apr 2022 16:51:39 +0200 Message-ID: <8735hyy3yc.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 26 2022 at 15:22, kernel test robot wrote: > [ 11.086251][ T1] WARNING: CPU: 4 PID: 1 at arch/x86/kernel/cpu/aperfmperf.c:431 freq_invariance_enable (arch/x86/kernel/cpu/aperfmperf.c:431) > [ 11.227178][ T1] init_freq_invariance_cppc (arch/x86/kernel/acpi/cppc.c:82 arch/x86/kernel/acpi/cppc.c:96) > [ 11.232574][ T1] acpi_cppc_processor_probe (drivers/acpi/cppc_acpi.c:832) Bah, the commit in question assumed that the CPPC muck is AMD only.... Fix below. Thanks, tglx --- --- a/arch/x86/kernel/acpi/cppc.c +++ b/arch/x86/kernel/acpi/cppc.c @@ -91,6 +91,9 @@ void init_freq_invariance_cppc(void) if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) return; + if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) + return; + mutex_lock(&freq_invariance_lock); if (!init_done) amd_set_max_freq_ratio();