Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1411065pxk; Thu, 10 Sep 2020 14:50:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwELMLh3SEO+pAckqzvRdv+XBT9/tP7LNett9ScreN0KZIZIV7jJslYuu8ATB0j8R6kupx X-Received: by 2002:a17:907:2105:: with SMTP id qn5mr10735753ejb.238.1599774632320; Thu, 10 Sep 2020 14:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599774632; cv=none; d=google.com; s=arc-20160816; b=yhbq5+EixxIkLVRH2/xvM0dcVmVHoIT3aRIdXQuTHb582oM8+NK59PKaY/ZcqqgIm8 U7e9OY47c0ht1YzGb653hr0QXixbRaGD+LENWL391wFsL7ypdiTaNlyYukvRCWTpLBNC qv3N6G19kZZDtVjI9uT5G764Fkk6pmvm+etefk3mssX/LN1omfXwt4upS0+IDW7S5EPk 7IaVCHjdzJI56/zuRsL/oxSDmoIGuMdnRHyTn1FTCeOn4gr2esP5eiPPWB0olUhOIc24 7Z4hIHYaGxEjOIMzQoHP90Aec6PIq7so+lH4z7pGIFJG1JcAFnFN+AVBCkDvHadA4u2H 5Gyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:references :in-reply-to:cc:to:from; bh=g3S6fe2NHDCQKYcVO+HVyWOzX4nfJMqh/KCLlkTGtXI=; b=rSrff4jWZ04Jhi5O79Lyiu8IkGV+R8HqGGz8fkvS4nTLzvqY4cPzJCFMdyD3vX3rgX 4aR6Ip9YGX/asyt72zAWze3qHBf43ngYnQEEJDF9+bs1OeR2jVOXGLwEjxoB3iHir9y8 Z97imH8o5FVA1T0qfdackQSsqUNzO1vJUzRIE8Nm/b3eMNIYIcK5b5dyXV+frVKIv3nz QiOQP0RhUhHDS93tgH/apr/wF/wQ/qFG1ScAgehib+wnO99k1vhE50Y/vw3pfFbq0hYw xdaBxk24hWbHaLM3A8nYxktTD+uuLa9ZVVWF820KJdq8dlDtCm7Ddc6ytHlcHTZv1NFt Nm5A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si4310704ejd.367.2020.09.10.14.50.09; Thu, 10 Sep 2020 14:50:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728476AbgIJVoa (ORCPT + 99 others); Thu, 10 Sep 2020 17:44:30 -0400 Received: from ozlabs.org ([203.11.71.1]:33465 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730878AbgIJM40 (ORCPT ); Thu, 10 Sep 2020 08:56:26 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 4BnJlT4jccz9sTr; Thu, 10 Sep 2020 22:55:33 +1000 (AEST) From: Michael Ellerman To: "Rafael J. Wysocki" , Joel Stanley , "Gautham R. Shenoy" , Vaidyanathan Srinivasan , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-pm@vger.kernel.org In-Reply-To: <1599125247-28488-1-git-send-email-ego@linux.vnet.ibm.com> References: <1599125247-28488-1-git-send-email-ego@linux.vnet.ibm.com> Subject: Re: [PATCH v2] cpuidle-pseries: Fix CEDE latency conversion from tb to us Message-Id: <159974250748.1017939.3766182148722011711.b4-ty@ellerman.id.au> Date: Thu, 10 Sep 2020 22:55:33 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Sep 2020 14:57:27 +0530, Gautham R. Shenoy wrote: > commit d947fb4c965c ("cpuidle: pseries: Fixup exit latency for > CEDE(0)") sets the exit latency of CEDE(0) based on the latency values > of the Extended CEDE states advertised by the platform. The values > advertised by the platform are in timebase ticks. However the cpuidle > framework requires the latency values in microseconds. > > If the tb-ticks value advertised by the platform correspond to a value > smaller than 1us, during the conversion from tb-ticks to microseconds, > in the current code, the result becomes zero. This is incorrect as it > puts a CEDE state on par with the snooze state. > > [...] Applied to powerpc/fixes. [1/1] cpuidle: pseries: Fix CEDE latency conversion from tb to us https://git.kernel.org/powerpc/c/1d3ee7df009a46440c58508b8819213c09503acd cheers