From patchwork Fri May 19 04:25:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 100150 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp141218qge; Thu, 18 May 2017 21:27:38 -0700 (PDT) X-Received: by 10.99.160.17 with SMTP id r17mr4434289pge.37.1495168057976; Thu, 18 May 2017 21:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495168057; cv=none; d=google.com; s=arc-20160816; b=tEQlG6DcQlolK6WAsrb0xkHno3Ids3uiB6F8HQ/vJPXiTlU/tE6seHrE8fcZg4XyWh dTDLNWJInY93M7bqqSDAdOuEQLAwmiFaybiOJ2k2hBcUjjU3RYxqoYD2UYIvv0xFFUx9 Bfr4KQLa5nOSJznu8+0m5Ki/DzTvLsv+yrybpe+TxkeeIXrgha3NrQEbhN7CsutlXHmd RKV5wfwQmALyc9TbrRu7zLdWEuDRicQ26qzaaMfLyMoBjHLXygv7eQJxfc5Jn8Wad/u2 H6K1F+PCbqBUnAgdonbZflfcbU56bRTvoAVetZF5ydhbwtPaTzK2i/0RT2w+9zETV79k c1iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=yOcL9k/SkZA9X/Jak4js3iBZAw0DiyBvfflsfacS/Rk=; b=Z6a4O+yEv41nCD640l+UslJDl1MgeCD2JS8jG3nkLp/Mc92+15u5aP3bZJcrYiB/Jw XULxHPxRicx9TmI5BJwlg8HnO7zJBaUCUpHF78JJaZzce1Ix3x2grLSjRmURomINkGXi 12BvPCOgcniiWZMxNiG1vAcjFbf5REimMwhmUspwSB6plWeM24s+eVr9dTzuMUkbtULf dTAhKSb5YjvAKBPjjuGNB/zn8RN5oEJUuPti7wSrPfnnuv0Xapv5EAIU56ItvyUGe/r8 ucsK262ApjT0bJrhdIHyx98lYSYEFSBE2T42AxkixTzPFMPL95u14Xlq12mEZ2rmD/QM TmiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; 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 q22si7089126pgc.268.2017.05.18.21.27.35; Thu, 18 May 2017 21:27:37 -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=@linaro.org; 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 S1754575AbdESE1Q (ORCPT + 25 others); Fri, 19 May 2017 00:27:16 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:35705 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754402AbdESE1L (ORCPT ); Fri, 19 May 2017 00:27:11 -0400 Received: by mail-pg0-f46.google.com with SMTP id q125so32321825pgq.2 for ; Thu, 18 May 2017 21:27:11 -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:in-reply-to:references; bh=yOcL9k/SkZA9X/Jak4js3iBZAw0DiyBvfflsfacS/Rk=; b=WnrpQ1Dquz0S2ZC2mbgLJKpjx23GB8H+dqw1fbHD4AEFomlgp4h73SVdS5naHg4peD 51pKEdHyCe/H0mFYJXZgpo7N6DsEjP0XKOgvkVKiXZb/oa2y6wU6l96s8V4sChj5JRox iunmHVse4iAH8RWpba0Py/WDVQyFOzyeNSis0= 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:in-reply-to :references; bh=yOcL9k/SkZA9X/Jak4js3iBZAw0DiyBvfflsfacS/Rk=; b=iMaeHojLkQSnOo1r1QCzyeIYnIG/OBKd3S8K24aHCALEMU9bI9zoTjX7HnIEI4PBJG yEhxjkcNrFOeuNyAdwooFgkP5z6zGI5npjA9e7j2ONPVjRvcf+Zlyvj+3pVG8DPMveWv Vby3G9Itua6hcYEIS3Eis9SxZZP2Y9efldKWxne0PJ/Joae1Eeg446a6Ol80TkTbB8+4 Eisq8c+cfGIdrewCBS9bRZ07Sn5zMfZcr7w21SfYKQHMxCcNIVym3jcgFgaQHCEj8HsR 2Wnh99Ttjv2we0I85GW2Kjsf0cr+m6OaMjKcEdNqvKgkkTyNlP/1lk+MayWKhEDgqQAM m93A== X-Gm-Message-State: AODbwcBAmuLNB5wKNQvd16E7nUbKnZLE0K98HlNTX/ulTlA0oUFtgMJU Dg1f2htxmHo1yKXD X-Received: by 10.84.143.36 with SMTP id 33mr8730279ply.45.1495168016034; Thu, 18 May 2017 21:26:56 -0700 (PDT) Received: from localhost.localdomain (li637-108.members.linode.com. [106.186.117.108]) by smtp.gmail.com with ESMTPSA id c29sm5823259pfj.101.2017.05.18.21.26.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 May 2017 21:26:54 -0700 (PDT) From: Leo Yan To: Jonathan Corbet , Mathieu Poirier , Rob Herring , Mark Rutland , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Catalin Marinas , Will Deacon , Wei Xu , Andy Gross , David Brown , Greg Kroah-Hartman , Suzuki K Poulose , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Stephen Boyd , Mike Leach Cc: Leo Yan Subject: [PATCH v10 04/10] MAINTAINERS: update file entries for Coresight subsystem Date: Fri, 19 May 2017 12:25:51 +0800 Message-Id: <1495167957-14923-5-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495167957-14923-1-git-send-email-leo.yan@linaro.org> References: <1495167957-14923-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update document file entries for Coresight debug module. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/MAINTAINERS b/MAINTAINERS index f7d568b..d443258 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1208,7 +1208,9 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained F: drivers/hwtracing/coresight/* F: Documentation/trace/coresight.txt +F: Documentation/trace/coresight-cpu-debug.txt F: Documentation/devicetree/bindings/arm/coresight.txt +F: Documentation/devicetree/bindings/arm/coresight-cpu-debug.txt F: Documentation/ABI/testing/sysfs-bus-coresight-devices-* F: tools/perf/arch/arm/util/pmu.c F: tools/perf/arch/arm/util/auxtrace.c From patchwork Fri May 19 04:25:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 100149 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp141207qge; Thu, 18 May 2017 21:27:35 -0700 (PDT) X-Received: by 10.99.160.17 with SMTP id r17mr4434115pge.37.1495168055011; Thu, 18 May 2017 21:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495168055; cv=none; d=google.com; s=arc-20160816; b=vp/afN62tGN8+vNWFWZpPn610gBUPWvqn8keY3Bm/3TitR5Pid0tLOVLAX9PB6H1dr RBbmZzG5TJnaKlSVB1ppWR3J8a1rQzgaHqjq8UKxRcJ1Iu10uUDAgUHqFLzvJJ84Q5MC 4mco++QcQy7kXCNBp4C/FrQsiOWdAWX2CbJCeUpVrcuE1Ps/NuE5E4BLTKGWSvWKtTb4 9RyiwiHA7ojzCCv2ypUsnB6amHwWXdWgozp2BOslxVrtMCND2KagGcpq8xpEVHfcZv/A gpCyEXRteSJ76fgYlwRnIdVe3YYVaYQhwjKrvly57w12bIXwgOMg/puv5eHnntiJ8IRx gkTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=KPg79NY3sGvLdvwjFFRlkg3unWx7G4i/7+aegEzxzF8=; b=deHLm8PPPJlJ94vA/EI46cptrYZSEr+EksGWWLdYmbniEPsDSfCQ4aCE8r6p+gWhV4 FwFX2EJ76fMPMz5rtdcq/L1c7ardbH971Ov9jHJyA6GRN2ageeOCq6Mhb1lOfCLQKwxS vLypMjNj452Zc1sB2PolMMPXXVgY8/7LscDc7HxvxKDD5KTaIwD8lIp1U6jwHbA2G2VR 9xNoYFcMYS/leU7oOTQr3w4bW2lzKhbdyF18uWKSsNVLD+QpUf9Jt46a/zLdfPCI+NAY 3EK/VW7VKrmzTcv92J6+ga/BIB7P3iOBTOreNNE+G4aEhlsWhMfX3YHiWGfZDBdWPNJ6 dadw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; 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 q22si7089126pgc.268.2017.05.18.21.27.33; Thu, 18 May 2017 21:27:34 -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=@linaro.org; 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 S1754422AbdESE1L (ORCPT + 25 others); Fri, 19 May 2017 00:27:11 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:35365 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753067AbdESE1F (ORCPT ); Fri, 19 May 2017 00:27:05 -0400 Received: by mail-pf0-f179.google.com with SMTP id n23so33686165pfb.2 for ; Thu, 18 May 2017 21:27:05 -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:in-reply-to:references; bh=KPg79NY3sGvLdvwjFFRlkg3unWx7G4i/7+aegEzxzF8=; b=bEoAHBYus7gV8JNk60ofG9hVOFcNUqQHBPoSF4eZkwZ2DMecwhCTAfluOL6FDOVQxl Vm+3pUmqgjs7zKqNoZcl0x6Bb+sa1hPw1Tng588vYZ5yeHgk5pdB8PNLAE/hPnUQUNnq W/XDnvIn5P6Hs9Afnno+9DX16JFwz1Nyp/EXM= 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:in-reply-to :references; bh=KPg79NY3sGvLdvwjFFRlkg3unWx7G4i/7+aegEzxzF8=; b=Tlrbyu8kHa4qNZZpUjNHHoI9XieO70Y8kd68PC7yMlu52/lh9u8V2u8OD2iWugJYT7 xkTikrFakf2hJevsPxEoGC9TmZYPN+a+AaeXvUxou5d/CwGIM1iS/CI5Z7XTNhkZhx5t g0tXtbnylLxwk7corSFLwpiintSchJV+khADtEVTeaVxM5NiKMN3dT2yrGiWqPvtP62R ZNAu+oPjx0Vhnth6oAFrWBpHreXVNcXaOcdjtnp4pilhQRSqgOPSfxMHVDvBx+OZtgvV 7hDb/v5L3iDWPbXXpMgkcpuDF/+QzxZMC5cfz46yf71FT8D5QxnHQUXnrFWVir+tO7gI rqkg== X-Gm-Message-State: AODbwcDEVqowDbH2zy73nmkSU0ym4gunk9Ou7s6kG94N4blW8EWxyUfA mqQ7r7K7NTrtob+l X-Received: by 10.99.137.194 with SMTP id v185mr7990036pgd.206.1495168024455; Thu, 18 May 2017 21:27:04 -0700 (PDT) Received: from localhost.localdomain (li637-108.members.linode.com. [106.186.117.108]) by smtp.gmail.com with ESMTPSA id c29sm5823259pfj.101.2017.05.18.21.26.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 May 2017 21:27:03 -0700 (PDT) From: Leo Yan To: Jonathan Corbet , Mathieu Poirier , Rob Herring , Mark Rutland , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Catalin Marinas , Will Deacon , Wei Xu , Andy Gross , David Brown , Greg Kroah-Hartman , Suzuki K Poulose , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Stephen Boyd , Mike Leach Cc: Leo Yan Subject: [PATCH v10 05/10] coresight: of_get_coresight_platform_data: Add missing of_node_put Date: Fri, 19 May 2017 12:25:52 +0800 Message-Id: <1495167957-14923-6-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495167957-14923-1-git-send-email-leo.yan@linaro.org> References: <1495167957-14923-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Suzuki K Poulose The of_get_coresight_platform_data iterates over the possible CPU nodes to find a given cpu phandle. However it does not drop the reference to the node pointer returned by the of_get_coresight_platform_data. This patch also introduces another minor fix is to use of_cpu_device_node_get() to replace of_get_cpu_node(). Cc: Mathieu Poirier Reviewed-by: Suzuki K Poulose Signed-off-by: Suzuki K Poulose [Leo: minor tweaks for of_get_coresight_platform_data] Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_coresight.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) -- 2.7.4 diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c index 2749853..225b2dd 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c @@ -109,7 +109,8 @@ of_get_coresight_platform_data(struct device *dev, struct coresight_platform_data *pdata; struct of_endpoint endpoint, rendpoint; struct device *rdev; - struct device_node *dn; + bool found; + struct device_node *dn, *np; struct device_node *ep = NULL; struct device_node *rparent = NULL; struct device_node *rport = NULL; @@ -176,17 +177,19 @@ of_get_coresight_platform_data(struct device *dev, } while (ep); } - /* Affinity defaults to CPU0 */ - pdata->cpu = 0; dn = of_parse_phandle(node, "cpu", 0); - for (cpu = 0; dn && cpu < nr_cpu_ids; cpu++) { - if (dn == of_get_cpu_node(cpu, NULL)) { - pdata->cpu = cpu; + for_each_possible_cpu(cpu) { + np = of_cpu_device_node_get(cpu); + found = (dn == np); + of_node_put(np); + if (found) break; - } } of_node_put(dn); + /* Affinity to CPU0 if no cpu nodes are found */ + pdata->cpu = found ? cpu : 0; + return pdata; } EXPORT_SYMBOL_GPL(of_get_coresight_platform_data); From patchwork Fri May 19 04:25:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 100152 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp141231qge; Thu, 18 May 2017 21:27:40 -0700 (PDT) X-Received: by 10.99.160.17 with SMTP id r17mr4434438pge.37.1495168060349; Thu, 18 May 2017 21:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495168060; cv=none; d=google.com; s=arc-20160816; b=wQ9ox9L1MJlNt2xt1j3HiGWVe60jfVhT7FWuur6FmjVJNcPm10X0xs2eq+XXqxJfex iMYz13YPSD6W4FlespbjhDxQn4uaJvZ2pu8Ath7g0PTJzaGrMvFJhGkXdtDtfXEP+40K p2ay1PxiXxdZh5nZ1VAGkhc6VTPGYS4T0SKDw2+WHnhO1BHU6HfW8C/Ep3dUmuEqXQMn 83SG0RkxJtSGDI3f9eV7psOVooyZGZM8yDhJtrqxTetsuF5DMAL1PQAR4NkMEVvfir3X xSSGnGv4TNJCfy4Xxo7J/muGsEHcmKvQ2aUETzoZF5PQc2iON/ehDqLKXTcdHZxwezIj 1WNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=vpSaEp9VWUuRGwKQgIeehcHqHiLAvtmzYG6GR+ANSzc=; b=HdXq4/JZdfB33Kk1+To8Hw80I3eEJhtzz7nnUf2AORTWV0YfuhbpHRCZGV2PmcWA5N KLqhSw5YsePplSNlIVZMExuJb8TyizHz+i6Sq+FNZSirvsXvCTtyVczxcnGtARvYtC5u AtxXs0UjZwNfgsGGD9Uo6FYCxD/MWYxox8vdaUs7iSG1AB5A7yBM8VWLFJEX5oPDNUaz cS1ygk+q0Vutbh20gTHav+ITlYLuTza8LJi78VKZO1nfkdo9Uc/ukqWLYosJxXyuMItC 8MJfbJPUprNeAjSvKawC1SoF1KnS8mn+3raY/0tYf8Mqa3QmtatqYGM7NZKfFHEds3xo vu+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; 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 q22si7089126pgc.268.2017.05.18.21.27.39; Thu, 18 May 2017 21:27:40 -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=@linaro.org; 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 S1755225AbdESE1g (ORCPT + 25 others); Fri, 19 May 2017 00:27:36 -0400 Received: from mail-pg0-f45.google.com ([74.125.83.45]:34672 "EHLO mail-pg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755056AbdESE1b (ORCPT ); Fri, 19 May 2017 00:27:31 -0400 Received: by mail-pg0-f45.google.com with SMTP id u28so32373600pgn.1 for ; Thu, 18 May 2017 21:27:31 -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:in-reply-to:references; bh=vpSaEp9VWUuRGwKQgIeehcHqHiLAvtmzYG6GR+ANSzc=; b=LpmQpzoTludPutQ8J8svZxUl88yVmA6W8xvfu0G0G18msoxiVetKC1M6HRR+oj9FlQ KWN5pMcDEmXiw8wMLL2NlrFlBLXJ2E4GlAfijGOS55SzUYphoNj8bKLRFE5LcXN44kjs VddqaquhrCnChMJFlt1g6FcaCg56MmNnnIb5Q= 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:in-reply-to :references; bh=vpSaEp9VWUuRGwKQgIeehcHqHiLAvtmzYG6GR+ANSzc=; b=sJnqb7K7Unwu+gFHlJpr/o08yVWEEy4LcZUGjJtRCAos1maL6La+7xSaqtCAZzr+YM dP2CVn8vgZFCL+8W9YsZb/zfTmy5zMom3fxOMPqFDSKhj7nXrdH2WqTKSlqr1pCl401Q FcZef/UrwWJBr5M7MJKwCyBKZZwATYLt/KSbIJcH6/LpMnrKff6QINU77z5T5phqlX/o 9u0W7U0/r4Ext/8IeFE+jq7+4VgLEun7r/aItv5T+XzaswNzcZCzEMFmb6zCfNcUdnaQ 4Bj9od+/gF7BZEobUmxdqn/cB4P6cdebAOSamVEVhhi8K6ZeS/y7m38izD8jMVnafsR5 wsUw== X-Gm-Message-State: AODbwcAlPpvmdlfPeFsi1lCF+srUF+UolXuXjz2OiIehjPh0ygpsTHNE LPYBLrM4fgYbF9SO X-Received: by 10.84.237.1 with SMTP id s1mr8981526plk.157.1495168050838; Thu, 18 May 2017 21:27:30 -0700 (PDT) Received: from localhost.localdomain (li637-108.members.linode.com. [106.186.117.108]) by smtp.gmail.com with ESMTPSA id c29sm5823259pfj.101.2017.05.18.21.27.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 May 2017 21:27:29 -0700 (PDT) From: Leo Yan To: Jonathan Corbet , Mathieu Poirier , Rob Herring , Mark Rutland , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Catalin Marinas , Will Deacon , Wei Xu , Andy Gross , David Brown , Greg Kroah-Hartman , Suzuki K Poulose , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Stephen Boyd , Mike Leach Cc: Leo Yan Subject: [PATCH v10 08/10] arm64: dts: hi6220: register debug module Date: Fri, 19 May 2017 12:25:55 +0800 Message-Id: <1495167957-14923-9-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495167957-14923-1-git-send-email-leo.yan@linaro.org> References: <1495167957-14923-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bind debug module driver for Hi6220. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 64 +++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 1e5129b..21805b9 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -916,5 +916,69 @@ }; }; }; + + debug@f6590000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0 0xf6590000 0 0x1000>; + clocks = <&sys_ctrl HI6220_DAPB_CLK>; + clock-names = "apb_pclk"; + cpu = <&cpu0>; + }; + + debug@f6592000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0 0xf6592000 0 0x1000>; + clocks = <&sys_ctrl HI6220_DAPB_CLK>; + clock-names = "apb_pclk"; + cpu = <&cpu1>; + }; + + debug@f6594000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0 0xf6594000 0 0x1000>; + clocks = <&sys_ctrl HI6220_DAPB_CLK>; + clock-names = "apb_pclk"; + cpu = <&cpu2>; + }; + + debug@f6596000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0 0xf6596000 0 0x1000>; + clocks = <&sys_ctrl HI6220_DAPB_CLK>; + clock-names = "apb_pclk"; + cpu = <&cpu3>; + }; + + debug@f65d0000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0 0xf65d0000 0 0x1000>; + clocks = <&sys_ctrl HI6220_DAPB_CLK>; + clock-names = "apb_pclk"; + cpu = <&cpu4>; + }; + + debug@f65d2000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0 0xf65d2000 0 0x1000>; + clocks = <&sys_ctrl HI6220_DAPB_CLK>; + clock-names = "apb_pclk"; + cpu = <&cpu5>; + }; + + debug@f65d4000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0 0xf65d4000 0 0x1000>; + clocks = <&sys_ctrl HI6220_DAPB_CLK>; + clock-names = "apb_pclk"; + cpu = <&cpu6>; + }; + + debug@f65d6000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0 0xf65d6000 0 0x1000>; + clocks = <&sys_ctrl HI6220_DAPB_CLK>; + clock-names = "apb_pclk"; + cpu = <&cpu7>; + }; }; }; From patchwork Fri May 19 04:25:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 100154 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp141310qge; Thu, 18 May 2017 21:28:02 -0700 (PDT) X-Received: by 10.84.174.3 with SMTP id q3mr9005071plb.179.1495168082798; Thu, 18 May 2017 21:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495168082; cv=none; d=google.com; s=arc-20160816; b=P+axXniW8JqHQKSom5arWzOWaqnT6DeVYp+aNmdLvf4k/hPHP23njKXszadkduoHKe KT7K/3RoEY0FxUZ69XXG/C+cOXL1oiDOzUb65xXThuVhTzeXlCEPyI479PrIj7+Kahh6 2V22wwq/1uf7tw4MYAEnrYw7tlCNm8/eZZGliNz9DECFTlUVtbRq7CCsLKLqkVKZq8Bf N0pShJ5PrVdT/yjf+4Rfy66Wf36BJMlAUmo3YTPrDCjOvNYb1z//n0qK0qMujMQpG7Q8 2j3JI1fU5Mv39GdKD30yW7EpEov0/S+Zy2r76olguJbuyvm+cXAF64oEiD8a0ilBIcPW Q6BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=DemMGGjxKfOqfxebChWlMk7hNpbDSwyKC66qO5OpUcw=; b=1F/7bLyaOfGLpkHmwTK4LZUg3yWeUNE7SSpi4jKwuP6SJ386myvNF7P303EY8Vyhr4 zSd81R/yhfaXWc3GcE4S2v4zq9s8LyLhM0Su/Inhs3i7/hj8WPV4QdO5FqqRyQVllLeH 6Sryc5hc11fS3za3Jq+tbbyTwVQ0p37XkBLE+D7x9O3OgjaCzbTjimAkxZge2dhB4bFL C24JoLFcjwN/tx8QhyE5/wDLve0FihPE6/rUC0Bfi3fgqlRckt6OeFP7IkDLFgRIsXr1 WQI9NpostVYhPciIiOxhfCVpUulVMZzxBQ5OjZe8ijW51ECq1hS+5Kcm3GnBVNpTIblR YPAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; 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 1si4759065pgw.51.2017.05.18.21.28.02; Thu, 18 May 2017 21:28:02 -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=@linaro.org; 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 S1755293AbdESE1u (ORCPT + 25 others); Fri, 19 May 2017 00:27:50 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:34716 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754048AbdESE1p (ORCPT ); Fri, 19 May 2017 00:27:45 -0400 Received: by mail-pg0-f44.google.com with SMTP id u28so32375031pgn.1 for ; Thu, 18 May 2017 21:27:44 -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:in-reply-to:references; bh=DemMGGjxKfOqfxebChWlMk7hNpbDSwyKC66qO5OpUcw=; b=Kn9d0VDx1NsyXKU5SgQMX/6AIkTDHLuhviQzvAI0oMadUhT4vfM7Wx9bUAuY2wLofp mPbEB4TOt3sZptS6orP6iHrXKA6btqhP9A4dvm21jvRoTl6Zdds7Y16O0/KmEx3IKjXU DxAWuJnbb0cuKd8VxynRRAIwpkJct1LD4l3WQ= 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:in-reply-to :references; bh=DemMGGjxKfOqfxebChWlMk7hNpbDSwyKC66qO5OpUcw=; b=DWj3h+P1Nwuq1oXZQP73UyJnHf5b48gNjov1vZCAsaFJtBp4rDxYROfd5uTqnpq10K IEXyUysd7CXXh7v5NJbbBeUnjgMbktzu3hQGS4n50v8jS9n8h0H8v6CYqR97fE2tJZiN BZpRGJpgopO9aV0fZy2UXBZ5/a/Oh/xyjfyWELrg8nBRZ3eHGdzdhbNNDlc5wRbHjgFM kV+uPdPFErLFefiJDMXD97xGsls0miO+7RI6UglwSRCTp90cGgsibRkY8xNCyGj+/Wn9 jYG6+LFtqr6t2vWrjF/wHpU+hlOjIew0s8iOWkGxljyGAvjADmkfnhCVD+gyoih2f6Pm WrWA== X-Gm-Message-State: AODbwcDj2lKV3ftIvVs0bz78VdFzJ0qrNujVvfelDAKNIQFOfH6CP+nk WmXhtfYHenRUpy/8 X-Received: by 10.98.60.8 with SMTP id j8mr8120709pfa.72.1495168059455; Thu, 18 May 2017 21:27:39 -0700 (PDT) Received: from localhost.localdomain (li637-108.members.linode.com. [106.186.117.108]) by smtp.gmail.com with ESMTPSA id c29sm5823259pfj.101.2017.05.18.21.27.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 May 2017 21:27:38 -0700 (PDT) From: Leo Yan To: Jonathan Corbet , Mathieu Poirier , Rob Herring , Mark Rutland , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Catalin Marinas , Will Deacon , Wei Xu , Andy Gross , David Brown , Greg Kroah-Hartman , Suzuki K Poulose , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Stephen Boyd , Mike Leach Cc: Leo Yan Subject: [PATCH v10 09/10] arm64: dts: qcom: msm8916: Add debug unit Date: Fri, 19 May 2017 12:25:56 +0800 Message-Id: <1495167957-14923-10-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495167957-14923-1-git-send-email-leo.yan@linaro.org> References: <1495167957-14923-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add debug unit on Qualcomm msm8916 based platforms, including the DragonBoard 410c board. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index ab30939..17691ab 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -1116,6 +1116,38 @@ }; }; + debug@850000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0x850000 0x1000>; + clocks = <&rpmcc RPM_QDSS_CLK>; + clock-names = "apb_pclk"; + cpu = <&CPU0>; + }; + + debug@852000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0x852000 0x1000>; + clocks = <&rpmcc RPM_QDSS_CLK>; + clock-names = "apb_pclk"; + cpu = <&CPU1>; + }; + + debug@854000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0x854000 0x1000>; + clocks = <&rpmcc RPM_QDSS_CLK>; + clock-names = "apb_pclk"; + cpu = <&CPU2>; + }; + + debug@856000 { + compatible = "arm,coresight-cpu-debug","arm,primecell"; + reg = <0x856000 0x1000>; + clocks = <&rpmcc RPM_QDSS_CLK>; + clock-names = "apb_pclk"; + cpu = <&CPU3>; + }; + etm@85c000 { compatible = "arm,coresight-etm4x", "arm,primecell"; reg = <0x85c000 0x1000>;