Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp7559637lko; Fri, 30 Jul 2021 06:27:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRgztA00lGGQTJtRBKB5BPeQa2ZPVzIhsYka29dDIYHppIT+5iiwhBGnceC0ZyPr0KNCml X-Received: by 2002:aa7:d3ca:: with SMTP id o10mr2962113edr.383.1627651653718; Fri, 30 Jul 2021 06:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627651653; cv=none; d=google.com; s=arc-20160816; b=Sc1l9j/3g+0UT0oe2wBfUAo7AJfFG+QpZ/j2Fs3iu2wYYwMANIdf7YGLxZuopZNlyw pbGCPmUjNiosFUDqQhaQr+uwRGPi2vkqwfe/7Tgdn1R9+7Y604FOTkjsHxYs7kWYUG4V Nr0DYqRdcLRXnTQYVVAC7cAb7Gq61pVPdrJz21IIlgcyw4HWdbW2KzCpc/e+CQ04Z971 /t7G9PxMoWmJHv/AR0ZNgCn1IWJSK7G4HSVGI1gG8WKyoGuwJnSdPrHBmz3iCan3ulu/ akWkKpz7/wSmljiZIEQiS9mrdavEAHnDjDKzhFxuP2rRCG6+fxmd4GkJvIDq8yxpDnfK t7BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=WsleGekh6aK7vZy8g53nkd2fvHgVkIg/TMHUuzWRMI4=; b=yjlcKUjBimKVQLGV89+TO8Wm7HP1ZmiOFfcQSgzy4OYAbAokM20InMCTG9kSjEqtZL cWK3aXWkz1NVgsVcZgwmAAii5K5t91LYe0nQtEDqW8/gn3DhNVlU4HKMEHiTgZC5C2g9 j7okhC0Pm/EOFw28uCDFr+iIyppU0R9kjIVK+xUL2zJ8j7ff5s7Y2xPIMlE3HNtiNS/z gd7ee/SZs/5e6X+24PSI5F1HkmMXsBIIjtEDcaZp7Y/4EYIhVKnR6VXdBRHa6YWZNs+j PrxxexvFnfYDK+D8JfcmN3RpoQwjPwvvi9EC48pFpwVNDbe5ZqPQ8t3rQuAwj4PTXGpn cRVg== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si1515384ejb.234.2021.07.30.06.27.09; Fri, 30 Jul 2021 06:27:33 -0700 (PDT) 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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238912AbhG3NZg (ORCPT + 99 others); Fri, 30 Jul 2021 09:25:36 -0400 Received: from mail-oi1-f174.google.com ([209.85.167.174]:36779 "EHLO mail-oi1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbhG3NZc (ORCPT ); Fri, 30 Jul 2021 09:25:32 -0400 Received: by mail-oi1-f174.google.com with SMTP id y18so13188586oiv.3; Fri, 30 Jul 2021 06:25:26 -0700 (PDT) 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=WsleGekh6aK7vZy8g53nkd2fvHgVkIg/TMHUuzWRMI4=; b=tsa4JZkgX8W9vERQ/VFKKDbO/1wj9PRP/XQZ5UumTi5yhyAPMki1TVDlSMRL3k2YbR Ji8CeqA6P+o/zF9Ix0wK0uiTZadorX5ppoCiZySnD76RjxERm/NnMKLuGddgovrqmDcH /aLLPUH2d760tGOMJEVol4+5Nsiy7Aea9yOEIq7Q9YxcFz2jY6DZsMcBvYwWw/73NO+M 5fhLFrKq3iyFcuGtv1wzzRnEtlnRkSN8mH0TLbbFIHt0bD8ZpF/ZPb314Y1+sEOV7awe 2Uld856weDcfIoGifIyrVqMxsb6wr5EKnv6YZOMHnjoGghf68zXTGxiWSFiXl5qpDND7 gugw== X-Gm-Message-State: AOAM533UcgmU05+noN0f3o51meH/CLZuixkM9HUuEHXMrifKDDwysRId 4P7jWnyhOFqapDRXiC/1Pu2yuujInSg3H1PknzUqKdB7 X-Received: by 2002:aca:3502:: with SMTP id c2mr1905473oia.157.1627651526075; Fri, 30 Jul 2021 06:25:26 -0700 (PDT) MIME-Version: 1.0 References: <1867445.PYKUYFuaPT@kreacher> <2178828.iZASKD2KPV@kreacher> <4334837.LvFx2qVVIh@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Fri, 30 Jul 2021 15:25:15 +0200 Message-ID: Subject: Re: [PATCH v1 0/5] cpuidle: teo: Rework the idle state selection logic To: Doug Smythies Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , LKML , Linux PM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 30, 2021 at 5:36 AM Doug Smythies wrote: > > On Thu, Jul 29, 2021 at 9:14 AM Rafael J. Wysocki wrote: > > > ... [snip]... > > > > This means that idle state 0 data are disregarded after disabling it > > and that most likely is because the second loop in teo_select() should > > be over all states down to idle state 0 (not only down to the first > > enabled one). > > > > So below is an updated patch (not tested yet). > > Hi Rafael, > > This updated patch works great / solves the problem. > Tested-by: Doug Smythies > > Thank you very much. Thank you and you're welcome! I've found a small issue in the patch though (it needs to check the time span before setting the "last enabled" index), so let me submit a proper patch with a changelog based on this one.