From patchwork Fri Jul 12 14:16:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai Prakash Ranjan X-Patchwork-Id: 11042315 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2EE7C14F6 for ; Fri, 12 Jul 2019 14:17:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BE5128A11 for ; Fri, 12 Jul 2019 14:17:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E78D28C08; Fri, 12 Jul 2019 14:17:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E9CD28A11 for ; Fri, 12 Jul 2019 14:16:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727134AbfGLOQ7 (ORCPT ); Fri, 12 Jul 2019 10:16:59 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60776 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbfGLOQ6 (ORCPT ); Fri, 12 Jul 2019 10:16:58 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 72C5760E5F; Fri, 12 Jul 2019 14:16:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1562941017; bh=9GOgfiKVGcjuF4HEcJKfzwNvPBxXAN11fORk8JftR5Y=; h=From:To:Cc:Subject:Date:From; b=gD7NYayrnxeomA4thn+imJGMns8dqn+N1mg3SFvXubXEwKiDfdqqGxznxAKjl8AoK CGxyi+ipHf9KyWCT1UxHk21LlGZHEJCIdoPOCFnUr7fin0urAAIAmp7eOQRSbaKJNJ DZqbMits+RGex6E3vOzRRp/l1aIqyjLPNuNckr8Q= 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 CD54360A00; Fri, 12 Jul 2019 14:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1562941016; bh=9GOgfiKVGcjuF4HEcJKfzwNvPBxXAN11fORk8JftR5Y=; h=From:To:Cc:Subject:Date:From; b=c2lPF0ptIrOhoOid1Jn9IqUxEzmtGxWv2biftUi+BT51IXx7mEEhDNaJTMGwpcZ4W DdDhudkfoY/xpsV08UisqGLL7D5DP9A5JKxGBOFYx45Dj7TubvfQX0FXJxiGoZra+L MJz+WApVO9eqMk3GOVRmvRkiZOmQp/AfG0t1LjhA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CD54360A00 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: Greg Kroah-Hartman , Mathieu Poirier , Suzuki K Poulose , Leo Yan , Alexander Shishkin , Mike Leach , Rob Herring , Bjorn Andersson , devicetree@vger.kernel.org, David Brown , Mark Rutland Cc: Rajendra Nayak , Vivek Gautam , Sibi Sankar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Marc Gonzalez , Sai Prakash Ranjan Subject: [PATCHv8 0/5] Add coresight support for SDM845, MSM8998 and MSM8996 Date: Fri, 12 Jul 2019 19:46:22 +0530 Message-Id: X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 adds ETM PIDs for SDM845 and MSM8996. * Patch 5 adds coresight CPU debug module for Qualcomm Kryo. All the previous dependencies are now merged. This patch series has been tested on SDM845 MTP and MSM8996 based Dragonboard 820c and MSM8998 MTP. v8: * Change to clocks instead of power domain for SDM845. * Fix compilation with uci_id_debug struct changed to const. * Rebase on top of linux-next. 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 (4): arm64: dts: qcom: sdm845: Add Coresight support arm64: dts: qcom: msm8998: Add Coresight support 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 | 451 ++++++++++++++++++ .../hwtracing/coresight/coresight-cpu-debug.c | 33 +- drivers/hwtracing/coresight/coresight-etm4x.c | 14 +- drivers/hwtracing/coresight/coresight-priv.h | 10 +- 6 files changed, 1350 insertions(+), 27 deletions(-)