From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69C55C3A5A9 for ; Mon, 4 May 2020 16:15:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2F673206E6 for ; Mon, 4 May 2020 16:15:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iJ53M24+"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YHKun7bk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2F673206E6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=JNR2QrRFyKRvNxf+9gjmIY21zsp+FY3QGAN0bdRkEHU=; b=iJ5 3M24+pDH1O64qKDXoAsK7KsVnssMMWy61k2kL3KD7SdFHYqL0JMX9yZ7KVWeaG0xRoZEFRgRs6WDc YOx4XwYHjXsosykvdCxsarhdPy9pu6IWuY8zR18pQQLW+Mn1NOT9oTxfMOFQd3szXhI94iS7H3E5A JzRlaP+ThgNbNb/xHG9/X8Ls5vb/U/eAbiAhIoyqDXM4myJLQDxKt+X/pdIiyW2Zscojb280T+d5q tbebLbdNt2kEGINtZNqnwfPfxC+kkTU1lVtR2DdVFlR/RZnoVEBYK3Xz53wnN1/2qRN/QS14LHVuu 7onu8bQ+77p2+nE1SCKUWpMAaWnBpHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVdl0-0000xv-Ms; Mon, 04 May 2020 16:15:50 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVdko-0000lc-BU for linux-arm-kernel@lists.infradead.org; Mon, 04 May 2020 16:15:39 +0000 Received: by mail-wm1-x342.google.com with SMTP id y24so117516wma.4 for ; Mon, 04 May 2020 09:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=PXa+4NIuhVdKZ3Adwc3Cm7yGN1SlIAeC4Rnu92zmCns=; b=YHKun7bk2mjMse/08YzA2aswcw0+1hxmnynKWorZSY79B0UMeNRcY7VGDI1KiUACMO 89rhP2n8WZ3ZXA08Q9P73f9OgusweKbt569SOeKdoA2UKOv/5W7FYzG0f6M0bC8Rqv5s KwGQ+IaR2uBO8BSWMYhclVOxFKwlQEDXhf3J+IEl/QasoIGOEp26TvitTNFFOGtrEcmb pMS5fKHJJjZ4IlWkmthKy6P5w3tCXI1FvyewUNFUDVRgeaUtJF+oHKjZQI5HzD6qnDlT uY/E+NpTii+mOr6IvOuSRJXZHX1rlf0iVbBxDDxJ4+PxggjdDfo858CNR5NYsvD8blCF folw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PXa+4NIuhVdKZ3Adwc3Cm7yGN1SlIAeC4Rnu92zmCns=; b=EkNmWsqC1wJvOZYZbzUZ0nEjZbz3P/X2VfcJQ/Uw+LS6WPy421Mbd9B5DEe+7rvV2h MnF6DRxztecglWE72g2Z6nyGEth9ODXc6DqkE0YZTPCmZZdrv1Sv/wxXGnNlxTnlatGQ h1M8UJFxYF560OHSOpZsBJzS8vxfeZ+1fAaT80/gHyJZW7zlYp1Gkv8FQEM2/xU9jys6 ifi+X3rbsoMqba+I38xd2oYOnuUfbZt2ersyrndtMgrX3zi8kYzZRdOxkFheVDm3+7u7 Ct69jbfTtpWejwYELyHf1mnRagLc/9Yue0YUO8z7zgnj57oF3uRFd9dLlMNgJmd22GJy mUSw== X-Gm-Message-State: AGi0PubBHdYDS6sAjJ356V9lnKZJI6P2GVptEw5MGMPfa6dfFZyGTwzf kKmOakqgccy7Nxrci0lanKFIJ+wTHr0= X-Google-Smtp-Source: APiQypKOJesI6/spWODg3n0Zs/twAS4WPT/P08X/y6ydy2LyZzABToF9iaB26M6f2jfhXejNxSP0ow== X-Received: by 2002:a1c:4304:: with SMTP id q4mr16656497wma.152.1588608933580; Mon, 04 May 2020 09:15:33 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6801:1801:bc12:b74:297d:dafc]) by smtp.gmail.com with ESMTPSA id k6sm14623756wma.19.2020.05.04.09.15.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 09:15:32 -0700 (PDT) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org Subject: [PATCH v2 0/2] Add CPU power management for CPU bound CTI devices. Date: Mon, 4 May 2020 17:15:28 +0100 Message-Id: <20200504161530.9284-1-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200504_091538_389048_CBD84172 X-CRM114-Status: UNSURE ( 8.01 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mike Leach , suzuki.poulose@arm.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Adds in power management for CPU bound CTI devices: i) CPU Hotplug - registers a new notifier for CPU start and stop events. ii) CPU idle PM event notifier to handle PM_ENTER, PM_ENTER_FAILED and PM_EXIT events. Tested with DB410c on Linux 5.7-rc3. Rebased onto coresight/next Changes since V1: (requested by Mathieu). 1) Split into separate patches for CPU pm and CPU hotplug handling. 2) Enable on hotplug has a specific function to enable the hardware, while leaving the enable reference counts unchanged. Mike Leach (2): coresight: cti: Add CPU Hotplug handling to CTI driver. coresight: cti: Add CPU idle pm notifer to CTI devices. drivers/hwtracing/coresight/coresight-cti.c | 173 ++++++++++++++++++++ include/linux/cpuhotplug.h | 1 + 2 files changed, 174 insertions(+) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel