Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp972234ybf; Thu, 27 Feb 2020 02:57:35 -0800 (PST) X-Google-Smtp-Source: APXvYqz3n32eH64wINqGWhjQIdsWoz7i35cz4QaktkDkklVm30xU9v7krLyQZEbSiXP1RTmLEmgQ X-Received: by 2002:aca:1011:: with SMTP id 17mr2932387oiq.72.1582801055251; Thu, 27 Feb 2020 02:57:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582801055; cv=none; d=google.com; s=arc-20160816; b=B9NyYjkaJOcJToBDkRjJlREs+2gWgyVgaK9PJnBeOhvNOE7Q7i8o0njPS82pPm1nXG n/Xv5smcqvXSGTNQ07rgORCt0bUk3wnAaUCT+VcWGKLcme4xH9SgzXLQoFK82d2wXWBu D6cKJa6tD3gVYqzslKBJ1AoN0AVLVupphaS19FXb5w+kY0T43F2shR+0DjVQctovmFPq 8qpjqqTsGq1YF+e37N55RWAA8xnZubmNa62fOXOC2crMqp5ojiBwmR4GU4oIOBBe4a9x 2GYjzujrsZpPFfZPkyG8WZq8as364xF2Eu1Jcq2Tb7pgJDjO3rqEXLhI4b3vdgu/j0z2 4MNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=uMp2Uo23EsbUKjNiwGS0nq4uhe7UZ65ytVoOukqSBrg=; b=zQLKX/bakSntEFmhDPRPG/AdECpWFMjDp7LIZD6AklSCvbAL4OsTO3nT54BDj68Mk1 g1kgx5N6l9BDInqg3ViJ1r7oxngk+3EmoG6jUQd+BPgu/Vhsly/1yjefX4Fo5B3+k5H0 PDf8cctP2DFMK/MJ3fmL4R8MUd5GoweDy/Pq3YMiWDEpVcaAzJOFA/HDZldvjXRqW2KU 7AxL0rmZvUr/sWnNA70gF8Zz5q1Z4o+Zs6lFxQ994KGBLMps/jkAyaFBK5wcHfbLdALO vPW4nnOSCO1rd5C1mJVyaGpmwHW8w6UmIG1eNmJwHJaK2ETA3tf27UXINKuCeB5TPvot ZDVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si1253132otp.139.2020.02.27.02.57.23; Thu, 27 Feb 2020 02:57:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728917AbgB0K5D (ORCPT + 99 others); Thu, 27 Feb 2020 05:57:03 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:46241 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728897AbgB0K5D (ORCPT ); Thu, 27 Feb 2020 05:57:03 -0500 Received: by mail-oi1-f194.google.com with SMTP id a22so2794645oid.13; Thu, 27 Feb 2020 02:57:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uMp2Uo23EsbUKjNiwGS0nq4uhe7UZ65ytVoOukqSBrg=; b=fSuqXlZh9wGb3SZIpgSCLAEHPz/kXhPRJ5MlP9k1xfoQAnfC9s/K0dHVBMCu78f2qf yyXTyQFOxFHVDFIVewJOS0nF17xaXl3jp23c0aC7KFv2E+UPfTFocCYEx6BmzCDXthLO ARcjZUgPNZWMLMLULAmESnwCwlO3TNyZvbtSm3+9KVmgipIKoQJsCJpq75di+2C8x/8P X1Ek/5ec8HEwxyhQP9+sYtuyH6ShnJ7w3qL4nH1GI30VwIKwoBahanh7yU7UIf7bERwF MVT5nAHQ8XgzXVMU04uy68r/uMwnh+7x39IsGMECCf+PAZ8Qz5nbBIjnu1jE8HCSr96C 4+4A== X-Gm-Message-State: APjAAAV1yiy0tiS/DLVT5OsHaNhP5eieE0e41rt3kIpDY+fnr5m41fKz xZ/fR3Jb4OnzV9KCazobuCc3beEwrPKZLdRogKE= X-Received: by 2002:a05:6808:8e1:: with SMTP id d1mr2753277oic.68.1582801022380; Thu, 27 Feb 2020 02:57:02 -0800 (PST) MIME-Version: 1.0 References: <20200227013411.1.Ica3bb9fa898499d94e0b0a2bfa08ec46c89d84fa@changeid> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 27 Feb 2020 11:56:51 +0100 Message-ID: Subject: Re: [PATCH] intel_idle: Add Comet Lake support To: Harry Pan Cc: LKML , Harry Pan , Jacob Pan , Len Brown , Linux PM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 26, 2020 at 10:47 PM Rafael J. Wysocki wrote: > > On Wed, Feb 26, 2020 at 6:34 PM Harry Pan wrote: > > > > Add Comet Lake ID to enable intel_idle driver support. > > This is required for PC10 and S0ix. > > That shouldn't be the case for Linux 5.6-rc as long as the ACPI tables > expose C10 in _CST, so have you checked that? Regardless of that (which only is about the changelog), I wouldn't just use idle_cpu_skl directly for CML like in the patch below. Instead, I'd define something like static const struct idle_cpu idle_cpu_cml __initconst = { .state_table = skl_cstates, .disable_promotion_to_c1e = true, .use_acpi = true, }; and point to it from the CML entries in intel_idle_ids[]. That would allow the driver to avoid enabling the C-states that are not exposed in the ACPI tables by default which generally is safer than exposing all of them for all CML platforms unconditionally. > > Signed-off-by: Harry Pan > > > > --- > > > > drivers/idle/intel_idle.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c > > index 347b08b56042..3cf292b2b7f1 100644 > > --- a/drivers/idle/intel_idle.c > > +++ b/drivers/idle/intel_idle.c > > @@ -1086,6 +1086,8 @@ static const struct x86_cpu_id intel_idle_ids[] __initconst = { > > INTEL_CPU_FAM6(KABYLAKE_L, idle_cpu_skl), > > INTEL_CPU_FAM6(KABYLAKE, idle_cpu_skl), > > INTEL_CPU_FAM6(SKYLAKE_X, idle_cpu_skx), > > + INTEL_CPU_FAM6(COMETLAKE_L, idle_cpu_skl), > > + INTEL_CPU_FAM6(COMETLAKE, idle_cpu_skl), + INTEL_CPU_FAM6(COMETLAKE_L, idle_cpu_cml), + INTEL_CPU_FAM6(COMETLAKE, idle_cpu_cml), > > INTEL_CPU_FAM6(XEON_PHI_KNL, idle_cpu_knl), > > INTEL_CPU_FAM6(XEON_PHI_KNM, idle_cpu_knl), > > INTEL_CPU_FAM6(ATOM_GOLDMONT, idle_cpu_bxt), > > -- > > 2.24.1 > >