Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp590001pxb; Thu, 19 Nov 2020 08:49:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYalhvVxfgFKhoprUf+hLN16Jne6Yczf9IrCKB30sgDJOII+/b9EJABXlaF62z5K2GTwdj X-Received: by 2002:a17:906:ccd3:: with SMTP id ot19mr30035287ejb.44.1605804543654; Thu, 19 Nov 2020 08:49:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605804543; cv=none; d=google.com; s=arc-20160816; b=WQwCER00GXHY5YC4A4ZughjVkFlRqUv3PiNVXjk9awTntmBHiuh3v5iYqFpSP1y2qW uhCWqmVzZkvKbsaaJSznuIEW9VBmlcMBeeu43PMvHWlVkDTnumklH/vwIkyOGkJdHyM4 WWOhqyUtJRKrfeRTdeJk4Lqbm7fQrzUDLM+2YpRBqYpMRIIbVhNLXQHydvqQ3HMWvv0S 9//paVJI0K/M6q5hE2C/Uh1ctcScHgY1jTSpHJVTbqiCT2vCnaHWheuWlAsWobiByK9F 56KAPtJHeuLGd6stpEi7MX3nQKmDzPd3j0DtalkHNT7FeekiUQR85BJOLm4hu/vMZrjy Qg9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0go4VWo0gADN1LHXv/t+f09+AdVtD8iPxUkS3iwNb74=; b=WY7qZXKq4nHskQCUGci/j9D/gKezkb+iZIrODfBy3UXJ5Rjmvd8qSS3dFRDLe0bDsC kJp0eK2LRrRvbOFzMHy7zMudco9C0cAlUwoLUIpNd/l8v7CA8JwYfIlVHoanRevS0w2S FWNCY6+q1pY+cVWlNzkGUkOcRPe2mCeb4DfNiFYKtPfUUMOZNou7xUFjeLfBn56CiU5N sYl3h0fSIeAhMiTWgKgPI8xsbKujN3wmReDnxQ9JNspXCPbq8cQM9/EVg/w8gkAoBkOj KxEWS40qt76WMuRP6LYv1RcULSATgR7ILxCmzENkD/bglAEyM0agooeoTOgPLJ9bnkO/ r11Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf25si171086ejb.435.2020.11.19.08.48.41; Thu, 19 Nov 2020 08:49:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729267AbgKSQq3 (ORCPT + 99 others); Thu, 19 Nov 2020 11:46:29 -0500 Received: from foss.arm.com ([217.140.110.172]:34610 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729256AbgKSQq1 (ORCPT ); Thu, 19 Nov 2020 11:46:27 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 92A8F15DB; Thu, 19 Nov 2020 08:46:26 -0800 (PST) Received: from ewhatever.cambridge.arm.com (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 217633F718; Thu, 19 Nov 2020 08:46:24 -0800 (PST) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: mathieu.poirier@linaro.org, mike.leach@linaro.org, linux-kernel@vger.kernel.org, anshuman.khandual@arm.com, jonathan.zhouwen@huawei.com, coresight@lists.linaro.org, Suzuki K Poulose Subject: [PATCH v4 18/25] coresight: etm4x: Expose trcdevarch via trcidr Date: Thu, 19 Nov 2020 16:45:40 +0000 Message-Id: <20201119164547.2982871-19-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20201119164547.2982871-1-suzuki.poulose@arm.com> References: <20201119164547.2982871-1-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Expose the TRCDEVARCH register via the sysfs for component detection. Given that the TRCIDR1 may not completely identify the ETM component and instead need to use TRCDEVARCH, expose this via sysfs for tools to use it for identification. Cc: Mike Leach Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm4x-sysfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c index 009818675928..277fd5bff811 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c @@ -2395,6 +2395,7 @@ coresight_etm4x_cross_read(trcidr10, TRCIDR10); coresight_etm4x_cross_read(trcidr11, TRCIDR11); coresight_etm4x_cross_read(trcidr12, TRCIDR12); coresight_etm4x_cross_read(trcidr13, TRCIDR13); +coresight_etm4x_cross_read(trcdevarch, TRCDEVARCH); static struct attribute *coresight_etmv4_trcidr_attrs[] = { &dev_attr_trcidr0.attr, @@ -2410,6 +2411,7 @@ static struct attribute *coresight_etmv4_trcidr_attrs[] = { &dev_attr_trcidr11.attr, &dev_attr_trcidr12.attr, &dev_attr_trcidr13.attr, + &dev_attr_trcdevarch.attr, NULL, }; -- 2.24.1