Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6390992ybh; Wed, 7 Aug 2019 23:14:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyCrPQYPRQ89+py1jSesBCJIqfiWWpahRJ5scLypypY3HiUJbVN5NuS7CpN/1L5AIRQwJM X-Received: by 2002:a17:90a:8d09:: with SMTP id c9mr2310944pjo.131.1565244850976; Wed, 07 Aug 2019 23:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565244850; cv=none; d=google.com; s=arc-20160816; b=Z3RjAWBRuvovSfdPANBjbwKT6peppPc8BHkwIlWA3zbFPgwXCdjZaDgt9kM7Q9zTcX iMEaTLWKEwBm1E2qmoyHUc9n9btZ/eau4kCmcYy862pWzOR8Okn/RnO2nH9tQ7vOtc9k aEBHNP0B5IitJJO55BqCq+kZ9yJwZKlKKT52MNOmhchOJ3e+XWHYn6okootuZqx7S9Sh 3y0qruP+wW5NE8faFDDYHBgpeeAB2x7rsTigp0db7w3rKsNHpA/ws9cehOu+wbIU3CYi o0OuiKgKaWhWo7HkyjBLZ2Fv/kVpulg+Bfg1kl/ybHvHIsWgNNxPMqJtuaTnvRANlv8f 2bww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature :dkim-signature; bh=KTNTVJWlFFTUd8AxUFn9seWdmQwww6SzgEozXVvpXg8=; b=Q64eW0oXYdU91DJrt8b/VHFas4nvycMKWUskhHOImV938cOK5EmEF+BvU/znSYtGhJ dYJ1E9CnpbKXdhowm+8GcBlf3a0jJoaMIe0THtXhsytyHgAqoIz9hUvm2iU47ZcF9NQT FPPf8EwPYoqwArmixjghAY8UEuGHJNIFcJpAtgFy1797NIk+xyqs5s0mSkB3pmnxbXHc XziRyBbpliWGDQzY5Ni6pNTjDcpXjLH9T7xjO7yb0w2hUhB1afN1EXMaQr8rSLeZs2yQ u3TfjUcKjPwG0FPiTrJwXEmsQGeatC/1Od0cZ0mhAtQmA1X7rFGA6kS+rpmzg/PS1p9C Pjiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=FOFeUVny; dkim=pass header.i=@codeaurora.org header.s=default header.b="XFeQd/Xv"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si53408291pgb.482.2019.08.07.23.13.55; Wed, 07 Aug 2019 23:14:10 -0700 (PDT) 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=@codeaurora.org header.s=default header.b=FOFeUVny; dkim=pass header.i=@codeaurora.org header.s=default header.b="XFeQd/Xv"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731045AbfHHGNM (ORCPT + 99 others); Thu, 8 Aug 2019 02:13:12 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45898 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730694AbfHHGNL (ORCPT ); Thu, 8 Aug 2019 02:13:11 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 910D260595; Thu, 8 Aug 2019 06:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565244790; bh=dwIXAsZOBU3kUMYddc2Uc4hGfr5PsRFpZuqOH7l1jak=; h=From:To:Cc:Subject:Date:From; b=FOFeUVny9SUX4zWZHpJSBHUv6mT7vMsf9iSBbbBJIdtDYaOEJY8t01YHP/iaMkYZX lLwMGW3GstWHsMJ+BGuqCA/dSpapFa8qs/FcCs3aMS8TSrS3aOFbY610k+2LsmXzSf EpUlZ7UccnO/ROMUAlrpsLmOIqBjPSbgygert5AM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from mkshah-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CCB0C6037C; Thu, 8 Aug 2019 06:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565244789; bh=dwIXAsZOBU3kUMYddc2Uc4hGfr5PsRFpZuqOH7l1jak=; h=From:To:Cc:Subject:Date:From; b=XFeQd/Xvgno7FAj38NLD0h+NxvRdkore8WNXnDCNjUFnzujtGrCBp4yXWRfZvUVYM vDKH4/ehuKFXw7OW7Vg1+GfPrj7wLLFqSt/gypN7iWe1XD/jfFcjlbkiDp1VmzVyni Spx8ONsRnkiL52riWlZlFDIDgUJwvrDNKX58T0h4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CCB0C6037C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mkshah@codeaurora.org From: Maulik Shah To: andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, bjorn.andersson@linaro.org, evgreen@chromium.org, dianders@chromium.org, swboyd@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, mkshah@codeaurora.org Subject: [PATCH 0/2] Introduce SoC sleep stats driver Date: Thu, 8 Aug 2019 11:42:26 +0530 Message-Id: <20190808061228.16573-1-mkshah@codeaurora.org> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Qualcomm Technologies Inc's (QTI) chipsets support SoC level low power modes. SoCs Always On Processor/Resource Power Manager produces statistics of the SoC sleep modes involving lowering or powering down of the backbone rails - Cx and Mx and the oscillator clock, XO. Statistics includes SoC sleep mode type, number of times LPM entered, time of last entry, exit, and accumulated sleep duration. This series adds a driver to read the stats produced by remote processor and exports using sysfs. Maulik Shah (2): dt-bindings: Introduce soc sleep stats bindings for Qualcomm SoCs drivers: qcom: Add SoC sleep stats driver .../bindings/soc/qcom/soc-sleep-stats.txt | 36 +++ drivers/soc/qcom/Kconfig | 9 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/soc_sleep_stats.c | 249 ++++++++++++++++++ 4 files changed, 295 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/soc-sleep-stats.txt create mode 100644 drivers/soc/qcom/soc_sleep_stats.c -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation.