Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp237261ybv; Wed, 12 Feb 2020 23:11:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzhThFnER2SxLjw7vTPwFuPkCdKhbyR1D/M4k3SaaMC74FGdbRH8GIhokmfwDaxFV71Ct5l X-Received: by 2002:a05:6808:5d0:: with SMTP id d16mr1982367oij.45.1581577911207; Wed, 12 Feb 2020 23:11:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581577911; cv=none; d=google.com; s=arc-20160816; b=kUKxTUxToqZegOlx02LksNjCDdbnzW3es1ph4CHeAhcDLtK2bsTi2oevSQ8bQbOvQS ZcEygXljGlk7y7ca+mB5v4G0446CXeos1ZeFQ1skdao6bJrr59W+jfFd4yPl/chBOZqP /EpnHYIGVyLbcUolzhDEw/zNn4D1/vBLavvD75cuvHToaGvgIZu8QT91l+urI7l8auby O68HpSFx/uDin9k6FnGgZSFvSnAVzsDWSJSqFgbsSlLe5wMPWNPCkaKoZpW2hjPxbe3K hWA6evQQZ0QKVOegNT+y8IJwssRRv51F4FuvaP2oP1bJ6mRVqYCoLWkOQSbR3/C3cnVv zQnw== 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:dkim-signature; bh=Vg2ne5AyyglOAv8FBMMwHyfnVt31BO4UzavNdGGQICU=; b=ZgpnICubFyGV/MB9noUxvYpC37nW8OofpPHE6Knj5CvyKqxYrTjAF95R2Fx7HCub4q q8Gs5ZH224VCv5PY28i+UbIjbuqNewuQpB2EcBv+ERInMFfV3SEg3oC81u/uycpdrBf3 4C+fnlWANOeBdq9uKphutqp4abw7qfh8ogka0EviaQ8D17jchpJbqhdr2163rE5u0XaR QhyV/WYiIyQK6ztz7H+x3Ck2C4Kx8jn+hZLCndoV79b/mGJSNlizETJhyAVBaCyroifM XBUc0H5LYaFxC3USRcrZIU/JKeowKC5612v59EDtrKHSRZKKcO3Q4u1pbDaJXu7X38Rv nHFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="v/6iFBYY"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si806719oti.34.2020.02.12.23.11.39; Wed, 12 Feb 2020 23:11:51 -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; dkim=pass header.i=@linaro.org header.s=google header.b="v/6iFBYY"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729811AbgBMHKT (ORCPT + 99 others); Thu, 13 Feb 2020 02:10:19 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33234 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbgBMHKT (ORCPT ); Thu, 13 Feb 2020 02:10:19 -0500 Received: by mail-lj1-f195.google.com with SMTP id y6so5347648lji.0 for ; Wed, 12 Feb 2020 23:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vg2ne5AyyglOAv8FBMMwHyfnVt31BO4UzavNdGGQICU=; b=v/6iFBYYAvUyH1ig7uVxg5hp1J8W8pqTDvVe0oceLhdcpHrvCci4+tF2xXQNtxzQPu NKnZfw4MmkSWjVBNlp37Az1Fd4k9TFuYRV7SWLWH2ToujZ9cpggJ2KTajdvy+bzqJ48u Amm262fwmwPMBW9u/oNOafTF4C3pXNHBnUAnMohr9hjAefmdH/GbH5ceZCSvT6lWJlxb VcufdzCYyhzDOx9Qc2EMeKSYxnTz8XK0IjrM6+4eSYLVdJR0lhAALzQ+4VIlbb6G16d/ INxdJ1lb3L/AZVPz49LRoyCYB6KYpEau3aOcTip0b/Dk4M6kU7SKMGO2Bmt7UkBrmAaa 6a9A== 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=Vg2ne5AyyglOAv8FBMMwHyfnVt31BO4UzavNdGGQICU=; b=exIl6GMJbXwqlv6jVk7FLd9QWO4Kj3z+Ne08vHykBS6FnLCsfx7nj8TMWzYHWOT19M 8/WUgLmNwhSJJHGi6Tj0TuQd/UQ+kZOMItGZRON1rhA2ajVXqCs3MHiTSnYsDwKZkWMb 5XA6XvA54qQ1/Qe/GGmrW6idmlbVWO5ZW+g3HugQcdeXxnO5RErx3mzR0hArkTBmLBky a6sf+Tx3Busm50kNzc4ZOBulnxzOHN1Zt9quNYve1Owk9z/19K/Diq8g400kbLnT+eq/ 1j6MEGUMJKRSHYt8yoFGov6wN6m4cu1ZAjI6oUY+qvkTCEE/tmKLGiivexNYeQNvJm2a 7nqQ== X-Gm-Message-State: APjAAAXVifjhhN3Ms1Bsz9XBlX/IPt25ktRGbaK8FSaAoOay72obO7Fp 1TINgfhCM4qJXSiqt+d+20v7s7mgAi0ewxiZ+eciDhOBTyQ= X-Received: by 2002:a2e:7005:: with SMTP id l5mr9592622ljc.230.1581577817025; Wed, 12 Feb 2020 23:10:17 -0800 (PST) MIME-Version: 1.0 References: <1654227.8mz0SueHsU@kreacher> In-Reply-To: <1654227.8mz0SueHsU@kreacher> From: Amit Kucheria Date: Thu, 13 Feb 2020 12:40:05 +0530 Message-ID: Subject: Re: [PATCH 00/28] PM: QoS: Get rid of unuseful code and rework CPU latency QoS interface To: "Rafael J. Wysocki" Cc: Linux PM , LKML 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 12, 2020 at 5:09 AM Rafael J. Wysocki wrote: > > Hi All, > > This series of patches is based on the observation that after commit > c3082a674f46 ("PM: QoS: Get rid of unused flags") the only global PM QoS class > in use is PM_QOS_CPU_DMA_LATENCY, but there is still a significant amount of > code dedicated to the handling of global PM QoS classes in general. That code > takes up space and adds overhead in vain, so it is better to get rid of it. > > Moreover, with that unuseful code removed, the interface for adding QoS > requests for CPU latency becomes inelegant and confusing, so it is better to > clean it up. > > Patches [01/28-12/28] do the first part described above, which also includes > some assorted cleanups of the core PM QoS code that doesn't go away. > > Patches [13/28-25/28] rework the CPU latency QoS interface (in the classic > "define stubs, migrate users, change the API proper" manner), patches > [26-27/28] update the general comments and documentation to match the code > after the previous changes and the last one makes the CPU latency QoS depend > on CPU_IDLE (because cpuidle is the only user of its target value today). > > The majority of the patches in this series don't change the functionality of > the code at all (at least not intentionally). > > Please refer to the changelogs of individual patches for details. Hi Rafael, Nice cleanup to the code and docs. I've reviewed the series, and briefly tested it by setting latencies from userspace. Can we not remove the debugfs interface? It is a quick way to check the global cpu latency clamp on the system from userspace without setting up tracepoints or writing a program to read /dev/cpu_dma_latency. Except for patch 01/28 removing the debugfs interface, please feel to add my Reviewed-by: Amit Kucheria Tested-by: Amit Kucheria Regards, Amit