From patchwork Mon Apr 20 12:58:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 47340 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 141D82121F for ; Mon, 20 Apr 2015 13:01:48 +0000 (UTC) Received: by lbbrr5 with SMTP id rr5sf37308001lbb.3 for ; Mon, 20 Apr 2015 06:01:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id:cc :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=JhP6D0zycG2/Tv06lo0ewvt7D57v5QtFcz+SW1Lkbbk=; b=fFQpazQ6hy/2IU8UBmqBamNP6NcSxbxlE/Ek1YQ1Kor+gYb7Zcb1GhcfsKZmAmDIEk JeNKX0oDVXFosSF/Wzi7NgZF5avQ0qrQVO0C1C0vdenIh90XOWfTQQm5TuKaCE/hLCM3 uwauOm0g9ULUVdQJCINhr0UlG2NgM+/A+jnBe/rLRvZEWvG9jIRQlQ+KTIVi6ihm2ElW Hxc/2hgqMAQqkiTibETBhpZAwFUSYHe/LP5yTKB3PzdrkK7QmP6s2YbxbXYIuMIi0SM0 1HLuF555pbBEoPHyyEEvcL+Q5NXq06oxqe31HpBslgifgIhKa9uN0juZflbugtFkN7H3 nWiw== X-Gm-Message-State: ALoCoQl5D9A/x2kedgrRylNL0xSkVzySILSg2eJZmNQmdIeT45vDPG9FUfwGxr/OM4jZXOuP9P6M X-Received: by 10.180.96.6 with SMTP id do6mr6003234wib.4.1429534906273; Mon, 20 Apr 2015 06:01:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.71 with SMTP id la7ls769741lab.25.gmail; Mon, 20 Apr 2015 06:01:46 -0700 (PDT) X-Received: by 10.152.121.42 with SMTP id lh10mr15998894lab.0.1429534906119; Mon, 20 Apr 2015 06:01:46 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id uo6si14980606lbc.21.2015.04.20.06.01.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 06:01:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbcga7 with SMTP id ga7so129971306lbc.1 for ; Mon, 20 Apr 2015 06:01:46 -0700 (PDT) X-Received: by 10.152.87.204 with SMTP id ba12mr15848914lab.35.1429534905979; Mon, 20 Apr 2015 06:01:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp6527lbt; Mon, 20 Apr 2015 06:01:45 -0700 (PDT) X-Received: by 10.68.129.72 with SMTP id nu8mr27934020pbb.145.1429534904052; Mon, 20 Apr 2015 06:01:44 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id fe2si28198559pab.161.2015.04.20.06.01.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 06:01:44 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YkBIa-0001tQ-GH; Mon, 20 Apr 2015 12:59:40 +0000 Received: from mail-lb0-f179.google.com ([209.85.217.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YkBIW-0001oU-J5 for linux-arm-kernel@lists.infradead.org; Mon, 20 Apr 2015 12:59:37 +0000 Received: by lbbqq2 with SMTP id qq2so129654434lbb.3 for ; Mon, 20 Apr 2015 05:59:12 -0700 (PDT) X-Received: by 10.152.10.180 with SMTP id j20mr15869340lab.54.1429534752864; Mon, 20 Apr 2015 05:59:12 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id n10sm4295457laa.40.2015.04.20.05.59.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 05:59:11 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Mathieu Poirier Subject: [PATCH 01/13 v2] coresight: etm: print what version of ETM/PTM is detected Date: Mon, 20 Apr 2015 14:58:54 +0200 Message-Id: <1429534746-3068-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150420_055936_876205_484CF78E X-CRM114-Status: GOOD ( 12.97 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.179 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.217.179 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Ulf Hansson , "Rafael J. Wysocki" , Russell King , Linus Walleij , Trollkarlen Marklund X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Helpfully report a bit more about the hardware found in the silicon when matching the AMBA device IDs by using the associated .data pointer in the AMBA match. Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Rebased on the coresight git tree. --- drivers/hwtracing/coresight/coresight-etm3x.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index c965f5724abd..66e210d5fddd 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -1859,7 +1859,7 @@ static int etm_probe(struct amba_device *adev, const struct amba_id *id) goto err_arch_supported; } - dev_info(dev, "ETM initialized\n"); + dev_info(dev, "%s initialized\n", (char *)id->data); if (boot_enable) { coresight_enable(drvdata->csdev); @@ -1890,18 +1890,22 @@ static struct amba_id etm_ids[] = { { /* ETM 3.3 */ .id = 0x0003b921, .mask = 0x0003ffff, + .data = "ETM 3.3", }, { /* ETM 3.5 */ .id = 0x0003b956, .mask = 0x0003ffff, + .data = "ETM 3.5", }, { /* PTM 1.0 */ .id = 0x0003b950, .mask = 0x0003ffff, + .data = "PTM 1.0", }, { /* PTM 1.1 */ .id = 0x0003b95f, .mask = 0x0003ffff, + .data = "PTM 1.1", }, { 0, 0}, };