Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1309210iog; Thu, 30 Jun 2022 23:20:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uWquT6bwPFYg+TO2SexO/DwRUPbYzn5ZlolTtsdXoYMVHApo6XkiiAM6zMf2qyKuRaV00g X-Received: by 2002:a05:6402:750:b0:435:68bb:8552 with SMTP id p16-20020a056402075000b0043568bb8552mr16613581edy.155.1656656440325; Thu, 30 Jun 2022 23:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656656440; cv=none; d=google.com; s=arc-20160816; b=cZlzX5oyy13K92gaZBjvOTPNfHuYm/3OGB+B4CTaBWZyJKMwnW3AUbrTfWdI0dypOB ahk57gLttf79qld8tf7TrKnTItva2YckudUWXgSYZ0HxBj9ue6+nTzkXgJRItflKEs+F C3NC0iqZqDkHrFHRNnGkif8KazHrisL4qnkhnuOa5jP0L3a7LmzbzbU7a8wjcoUpfMbG jng3Z6sERM8aIMLIVd04hgHP54PB3lYh7hM1tM+4rdnyecdKhjjvNIVWp2tCerEGsOgz 4rCQXAutKlA23AIYTLBS4SIrZF1FJChWkWS2i7GTHeRH7h/kjtS6AjkjgySY92a63CzZ 3m+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=I/dQLm6Z10qj8cjhTdWIgVbZkqMiGdHS7GGCoqbRnwg=; b=MnvO+B15y1Z23QJhYrGXc1QfJplSp85AKfc6RSB/zKZoPCs28a/H28SwWz2c38jAiG UYDPr7RfaY0kz/zIJzviR6MlrTkuaREVXiWs234fGcJxL7BKqMDTeD+bBPSRi1o5DpHl ZOQJ3iArN/CZS0ZbzI3Nrj8w0BayNThvyXIFqrKzURO8JnDYWJe1O2poA1j4mLPcyyGV 2Z03BYXYT4jTNeBDjYknSsrDKaCyMjTbKI3xpWFYFKYuFu4ApTT5gXEm/nSJhkd7A4e/ EYV6IcUIWaTqCJ8Yp9g5AdV+7/DFh4F/vrm0Qtm/z4+Gx9+MnVxZnkHeJ0CHfeklqip1 5T9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Yk2yocUe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh40-20020a1709076ea800b00709af14e386si6330710ejc.205.2022.06.30.23.20.15; Thu, 30 Jun 2022 23:20:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Yk2yocUe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234267AbiGAFss (ORCPT + 99 others); Fri, 1 Jul 2022 01:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231426AbiGAFsr (ORCPT ); Fri, 1 Jul 2022 01:48:47 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CDED6B260; Thu, 30 Jun 2022 22:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656654527; x=1688190527; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=y5ug2lyRKciQTK4LIaK6tpSgjuLHRuKAtCuP90hqIAY=; b=Yk2yocUeVh4/v7hL72iZ3LS4sqXqto/M7DNFRPeXeKKoolhRW63KTAfV 2DVXtIZrFp5mkhODN+E50BejC1pMvPkrOhoHesuGckpvxRNkj3/b9V+1x yDKGnJIwtZh5IPrVJxRamHW0s3aMcsaZgIB1J04odwszAzjX+ajYUpzwH FAeZOMttIZlIfDI1B1A8BRfPpO/J6ymjqtJ5c155Dz0kvCt+uLGZsh3tK L2EGDxabBl9fGoVMGc0foQw9ypqvbHRvm1TDIztwZGVyf/5PpqYsyfdLL ySIGbMHYAfICCS05oOuW6YMl89PRY/EuSp+BooPbzk3P2W99X/y8288xl g==; X-IronPort-AV: E=McAfee;i="6400,9594,10394"; a="282590975" X-IronPort-AV: E=Sophos;i="5.92,236,1650956400"; d="scan'208";a="282590975" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2022 22:48:47 -0700 X-IronPort-AV: E=Sophos;i="5.92,236,1650956400"; d="scan'208";a="733930884" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.162]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2022 22:48:43 -0700 Received: by lahna (sSMTP sendmail emulation); Fri, 01 Jul 2022 08:48:40 +0300 Date: Fri, 1 Jul 2022 08:48:40 +0300 From: Mika Westerberg To: Mario Limonciello Cc: "Rafael J. Wysocki" , Len Brown , Huang Rui , perry.yuan@amd.com, CUI Hao , maxim.novozhilov@gmail.com, lethe.tree@protonmail.com, garystephenwright@gmail.com, galaxyking0419@gmail.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] ACPI: CPPC: Only probe for _CPC if CPPC v2 is acked Message-ID: References: <20220701022529.2134-1-mario.limonciello@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220701022529.2134-1-mario.limonciello@amd.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Jun 30, 2022 at 09:25:27PM -0500, Mario Limonciello wrote: > Previously the kernel used to ignore whether the firmware masked CPPC > or CPPCv2 and would just pretend that it worked. > > When support for the USB4 bit in _OSC was introduced from commit > 9e1f561afb ("ACPI: Execute platform _OSC also with query bit clear") > the kernel began to look at the return when the query bit was clear. > > This caused regressions that were misdiagnosed and attempted to be solved > as part of commit 2ca8e6285250 ("Revert "ACPI: Pass the same capabilities > to the _OSC regardless of the query flag""). This caused a different > regression where non-Intel systems weren't able to negotiate _OSC > properly. > > This was reverted in commit 2ca8e6285250 ("Revert "ACPI: Pass the same > capabilities to the _OSC regardless of the query flag"") and attempted to > be fixed by commit c42fa24b4475 ("ACPI: bus: Avoid using CPPC if not > supported by firmware") but the regression still returned. > > These systems with the regression only load support for CPPC from an SSDT > dynamically when _OSC reports CPPC v2. Avoid the problem by not letting > CPPC satisfy the requirement in `acpi_cppc_processor_probe`. > > Reported-by: CUI Hao > Reported-by: maxim.novozhilov@gmail.com > Reported-by: lethe.tree@protonmail.com > Reported-by: garystephenwright@gmail.com > Reported-by: galaxyking0419@gmail.com > Fixes: c42fa24b4475 ("ACPI: bus: Avoid using CPPC if not supported by firmware") > Fixes: 2ca8e6285250 ("Revert "ACPI Pass the same capabilities to the _OSC regardless of the query flag"") > Link: https://bugzilla.kernel.org/show_bug.cgi?id=213023 > Link: https://bugzilla.redhat.com/show_bug.cgi?id=2075387 > Signed-off-by: Mario Limonciello Reviewed-by: Mika Westerberg