From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sai Prakash Ranjan Subject: [PATCHv7 0/6] Add coresight support for SDM845, MSM8998 and MSM8996 Date: Fri, 1 Feb 2019 06:23:08 +0530 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Sender: linux-kernel-owner@vger.kernel.org To: Rob Herring , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , Alexander Shishkin , Andy Gross , David Brown , Vivek Gautam , Jeffrey Hugo , Doug Anderson , Stephen Boyd , Bjorn Andersson , devicetree@vger.kernel.org, Mark Rutland , Marc Gonzalez Cc: Rajendra Nayak , Sibi Sankar , Tingwei Zhang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Sai Prakash Ranjan List-Id: linux-arm-msm@vger.kernel.org This patch series adds support for coresight on SDM845, MSM8998, and MSM8996. * Patch 1 adds device tree nodes for SDM845 coresight components. * Patch 2 adds device tree nodes for MSM8998 coresight components. * Patch 3 adds device tree nodes for MSM8996 coresight components. * Patch 4 enables support for ETMv4.2 and enables SDM845 to make use of same driver(etm4x). * Patch 5 adds ETM PIDs for SDM845 and MSM8996. * Patch 6 adds coresight CPU debug module for Qualcomm Kryo. NOTE: All the dependent patches are applied in the below tree, the first 12 commits represent the dependent patches. * https://github.com/saiprakash-ranjan/linux/tree/coresight-next Patch 1 and 4 depends on below AOSS QMP, AMBA bus pclk and address cell change: * https://lore.kernel.org/lkml/20190131003933.11436-5-bjorn.andersson@linaro.org/ * https://lore.kernel.org/lkml/20190131003933.11436-6-bjorn.andersson@linaro.org/ * https://lore.kernel.org/lkml/20190131003933.11436-7-bjorn.andersson@linaro.org/ * https://lore.kernel.org/lkml/20190131003933.11436-10-bjorn.andersson@linaro.org/ * https://lore.kernel.org/lkml/20190131020141.28352-1-bjorn.andersson@linaro.org/ * https://lore.kernel.org/lkml/20190117042940.25487-2-bjorn.andersson@linaro.org/ Patch 2 depends on MSM8998 rpm clocks and rpmcc nodes: * https://lore.kernel.org/lkml/1545099336-5615-1-git-send-email-jhugo@codeaurora.org/ * https://lore.kernel.org/lkml/1548866144-30265-1-git-send-email-jhugo@codeaurora.org/ * https://lore.kernel.org/lkml/6da00186-e7c9-c93d-a80a-65eda2516451@free.fr/ Patch 5 and 6 depends on UCI support by Mike Leach: * https://lore.kernel.org/lkml/20190130234051.2294-1-mike.leach@linaro.org/ This patch series has been tested on SDM845 MTP and MSM8996 based Dragonboard 820c and MSM8998 MTP. v7: * Change uci_id_debug struct to const. * Update the subject as suggested by Suzuki. v6: * Update the UCI table with the new macro introduced by Mike. * Rebase on top of coresight-next and provide a tree with all the dependent patches applied. v5: * Added coresight support for MSM8998. * Added ETM PIDs for SDM845 and MSM8996 as suggested by Suzuki. * Added UCI table for Coresight CPU debug module. v4: * Mask out the minor version as suggested by Mathieu. * Added the dependent patch description in patch 1. v3: * Added arm,scatter-gather property as suggested by Suzuki. v2: * Added coresight support for msm8996 based on Vivek's patch. Cleaned up and added coresight cpu debug nodes for msm8996. * Merged coresight dtsi file into sdm845.dtsi as suggested by Bjorn * Addressed Mathieu's feedback about masking the minor version in etm4_arch_supported() and added a comment for reason to bypass the AMBA bus discovery method. Sai Prakash Ranjan (5): arm64: dts: qcom: sdm845: Add Coresight support arm64: dts: qcom: msm8998: Add Coresight support coresight: etm4x: Add support to enable ETMv4.2 coresight: etm4x: Add ETM PIDs for SDM845 and MSM8996 coresight: cpu-debug: Add support for Qualcomm Kryo Vivek Gautam (1): arm64: dts: qcom: msm8996: Add Coresight support arch/arm64/boot/dts/qcom/msm8996.dtsi | 434 +++++++++++++++++ arch/arm64/boot/dts/qcom/msm8998.dtsi | 435 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 434 +++++++++++++++++ .../hwtracing/coresight/coresight-cpu-debug.c | 33 +- drivers/hwtracing/coresight/coresight-etm4x.c | 17 +- 5 files changed, 1330 insertions(+), 23 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation 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=-8.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 DCC89C169C4 for ; Fri, 1 Feb 2019 00:53:36 +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 A845F20B1F for ; Fri, 1 Feb 2019 00:53:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZvCoZ8d2"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="oUTSfuBP"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="cTbIdPrD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A845F20B1F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=/xnhOrPBvY8q0r8EZP04Jq1ffzNpjOh6GuhV9kj/M0Q=; b=ZvCoZ8d2QrAtOE qr8AhtJ84bLGggjsnAI+J1ijHIqXFW9TyW2d8P9SsJwK21HXHncAmuCAUF1AnMXXosxXYbNUxLoAx WMhbkaj38Ob1Ijg5GF34Idsf3QouYGi+pjxiXYYLPNkWSyMT1kUYmhlm3UwwTCGJMMJ80aKi44IDC 61Iu0LyUJMrX0nn1GPOw2i9wzixY7INDlwVNkk10E80JtgUnDjO2cxgc0yZNxzqZtYwyYjBmfgKOS Rt+QERgDQZnRosE4+IRvi7/FDCiySuiY2V9SvC2wUiVfnqkyS6FNLWp+Tu3dJJHq3vj4V3SxJlMN8 Vrz3k9QKjzCjRzypJizA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gpN5I-0004oF-Ic; Fri, 01 Feb 2019 00:53:32 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gpN5F-0004nr-LD for linux-arm-kernel@lists.infradead.org; Fri, 01 Feb 2019 00:53:31 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 53D29608D2; Fri, 1 Feb 2019 00:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1548982409; bh=pwEG+1C3uTQU0fDiavHvzWQydrSqNc7kF+Uc6gYs9Vg=; h=From:To:Cc:Subject:Date:From; b=oUTSfuBPKgqzQ4xgW1hnHODqoyk/jTMIUllnRsh+/wGayJrmrXfnzASh44Qu787U2 /KzuZAIoXQVBOnGbufSiL27x7+7zmZdLCmDZnDKX4AzeMUYOAKX40EE4LoiUd3NGlj fcsPIHomGQBIi3AsDBFbYHyLfDQu6N18u/xz7ESY= Received: from blr-ubuntu-253.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9C8C960590; Fri, 1 Feb 2019 00:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1548982407; bh=pwEG+1C3uTQU0fDiavHvzWQydrSqNc7kF+Uc6gYs9Vg=; h=From:To:Cc:Subject:Date:From; b=cTbIdPrD9ABjcPnpRTF8RZlj30nY0A0LHREF64w0VtNU0Y6ikyz8UjmzlXuDlVZGW jN1UqnEHwae+PlhV9gN84SQQDu0GJhLvuxFFpMH4+4tGO6eGFhTU2LFbMMormZ305C dMwbecW1zPeQqXMdGwRARx+TsS6uZPCYWDeQSILo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9C8C960590 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=saiprakash.ranjan@codeaurora.org From: Sai Prakash Ranjan To: Rob Herring , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , Alexander Shishkin , Andy Gross , David Brown , Vivek Gautam , Jeffrey Hugo , Doug Anderson , Stephen Boyd , Bjorn Andersson , devicetree@vger.kernel.org, Mark Rutland , Marc Gonzalez Subject: [PATCHv7 0/6] Add coresight support for SDM845, MSM8998 and MSM8996 Date: Fri, 1 Feb 2019 06:23:08 +0530 Message-Id: X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190131_165329_737090_495977B0 X-CRM114-Status: GOOD ( 13.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sai Prakash Ranjan , Rajendra Nayak , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Sibi Sankar , Tingwei Zhang , linux-arm-kernel@lists.infradead.org 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 This patch series adds support for coresight on SDM845, MSM8998, and MSM8996. * Patch 1 adds device tree nodes for SDM845 coresight components. * Patch 2 adds device tree nodes for MSM8998 coresight components. * Patch 3 adds device tree nodes for MSM8996 coresight components. * Patch 4 enables support for ETMv4.2 and enables SDM845 to make use of same driver(etm4x). * Patch 5 adds ETM PIDs for SDM845 and MSM8996. * Patch 6 adds coresight CPU debug module for Qualcomm Kryo. NOTE: All the dependent patches are applied in the below tree, the first 12 commits represent the dependent patches. * https://github.com/saiprakash-ranjan/linux/tree/coresight-next Patch 1 and 4 depends on below AOSS QMP, AMBA bus pclk and address cell change: * https://lore.kernel.org/lkml/20190131003933.11436-5-bjorn.andersson@linaro.org/ * https://lore.kernel.org/lkml/20190131003933.11436-6-bjorn.andersson@linaro.org/ * https://lore.kernel.org/lkml/20190131003933.11436-7-bjorn.andersson@linaro.org/ * https://lore.kernel.org/lkml/20190131003933.11436-10-bjorn.andersson@linaro.org/ * https://lore.kernel.org/lkml/20190131020141.28352-1-bjorn.andersson@linaro.org/ * https://lore.kernel.org/lkml/20190117042940.25487-2-bjorn.andersson@linaro.org/ Patch 2 depends on MSM8998 rpm clocks and rpmcc nodes: * https://lore.kernel.org/lkml/1545099336-5615-1-git-send-email-jhugo@codeaurora.org/ * https://lore.kernel.org/lkml/1548866144-30265-1-git-send-email-jhugo@codeaurora.org/ * https://lore.kernel.org/lkml/6da00186-e7c9-c93d-a80a-65eda2516451@free.fr/ Patch 5 and 6 depends on UCI support by Mike Leach: * https://lore.kernel.org/lkml/20190130234051.2294-1-mike.leach@linaro.org/ This patch series has been tested on SDM845 MTP and MSM8996 based Dragonboard 820c and MSM8998 MTP. v7: * Change uci_id_debug struct to const. * Update the subject as suggested by Suzuki. v6: * Update the UCI table with the new macro introduced by Mike. * Rebase on top of coresight-next and provide a tree with all the dependent patches applied. v5: * Added coresight support for MSM8998. * Added ETM PIDs for SDM845 and MSM8996 as suggested by Suzuki. * Added UCI table for Coresight CPU debug module. v4: * Mask out the minor version as suggested by Mathieu. * Added the dependent patch description in patch 1. v3: * Added arm,scatter-gather property as suggested by Suzuki. v2: * Added coresight support for msm8996 based on Vivek's patch. Cleaned up and added coresight cpu debug nodes for msm8996. * Merged coresight dtsi file into sdm845.dtsi as suggested by Bjorn * Addressed Mathieu's feedback about masking the minor version in etm4_arch_supported() and added a comment for reason to bypass the AMBA bus discovery method. Sai Prakash Ranjan (5): arm64: dts: qcom: sdm845: Add Coresight support arm64: dts: qcom: msm8998: Add Coresight support coresight: etm4x: Add support to enable ETMv4.2 coresight: etm4x: Add ETM PIDs for SDM845 and MSM8996 coresight: cpu-debug: Add support for Qualcomm Kryo Vivek Gautam (1): arm64: dts: qcom: msm8996: Add Coresight support arch/arm64/boot/dts/qcom/msm8996.dtsi | 434 +++++++++++++++++ arch/arm64/boot/dts/qcom/msm8998.dtsi | 435 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 434 +++++++++++++++++ .../hwtracing/coresight/coresight-cpu-debug.c | 33 +- drivers/hwtracing/coresight/coresight-etm4x.c | 17 +- 5 files changed, 1330 insertions(+), 23 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel