Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3616586rdg; Wed, 18 Oct 2023 00:05:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmfGpLnOhfcfiAreChJ759Ee5UTztV0+wR0FfvE58Fnk8ylliXasUBWCT800hX03GcuvbP X-Received: by 2002:a17:902:e5c1:b0:1c9:e68a:1b58 with SMTP id u1-20020a170902e5c100b001c9e68a1b58mr4163002plf.54.1697612758627; Wed, 18 Oct 2023 00:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697612758; cv=none; d=google.com; s=arc-20160816; b=G2H8Uc+6ITSM1Ls+1qi5ySZBXiWCMs/KHL60N2V6fJhEbJv32blKXRbRlcAY+SIABC 0P2fEgLWr8ThPggsJwfgvbcdrTjM+oqep6FE7K8k9VPCY/I/IKlyIbSHYWLyVfK4aAmV RyZog4V/5zPlPJH3SJ2UlWPgpc1+9QK1nDZFK5XeY+Z2gjdH5Imvvj2oQt0QNVeBOQok lpFriCTxrbcZptt8q0UVFOr0UEcpvauDVDLQQGlTnRc4+yd+vmpA0dED+2560PgZFkRh EiZg5VxG7bQAozI6mgHelLNQsoPM4zfNjrXFHs0kfNb1M6w/DlR/3+dQnXz+m1UT2Pwg tzPQ== 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 :message-id:date:subject:cc:to:from; bh=bUqUXaWRtlBNaDc3wVUb2z3lPPZoADXFhct9+j+ZJXs=; fh=BtXCB5104GGPkVk22X8bQX3dKzvoEdEmGxuElmN9oU0=; b=XaT1AK4YL0Wd7WGzWMEJQJpUvZoRnrxxQ0R1kaXQeyv9MQ6tfqQP9GvVgsGUY/ry4+ DjmrFpLCGl/5VWiIUIPUfTUib5jTRw3jCpbxe3m95Wu0qnVXca3zy777RzRe+o882w3c etktj+Z6pbQt5QOoOBhZDaAkAAqno9xWgbT82FjX6tGQDdI1PbzHuP1aCqURk21yzQD2 D+LllGp+zL9kbrAyViwnQY+npb584oZNReAWkR2NSIodJ4JBxJWgVweVcVDChVKYLSbR zuI3tJbCJFcfm62JQaeftCfStil5Z9bpbKfjex5cnbI3VN580/3a0IELw7Ay5g6Zfeif qPvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b3-20020a170902d50300b001c6223663b3si1787900plg.369.2023.10.18.00.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 00:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 602F780E3415; Wed, 18 Oct 2023 00:05:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344622AbjJRHF3 (ORCPT + 99 others); Wed, 18 Oct 2023 03:05:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344635AbjJRHF0 (ORCPT ); Wed, 18 Oct 2023 03:05:26 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DA3AFF for ; Wed, 18 Oct 2023 00:05:22 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R661e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=tianruidong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VuPveYH_1697612709; Received: from localhost(mailfrom:tianruidong@linux.alibaba.com fp:SMTPD_---0VuPveYH_1697612709) by smtp.aliyun-inc.com; Wed, 18 Oct 2023 15:05:18 +0800 From: Ruidong Tian To: linux-kernel@vger.kernel.org Cc: james.clark@arm.com, coresight@lists.linaro.org, suzuki.poulose@arm.com, mike.leach@linaro.org, alexander.shishkin@linux.intel.com, linux-arm-kernel@lists.infradead.org, Ruidong Tian Subject: [PATCH] coresight: etm4x: Enable ETE device accessed via MMIO Date: Wed, 18 Oct 2023 15:05:06 +0800 Message-Id: <20231018070506.65320-1-tianruidong@linux.alibaba.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 18 Oct 2023 00:05:37 -0700 (PDT) The ETM4X driver now assume that all ETE as CPU system instructions accessed device, in fact the ETE device on some machines also accessed via MMIO. Signed-off-by: Ruidong Tian --- drivers/hwtracing/coresight/coresight-etm4x-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c index 285539104bcc..ad298c9cc87e 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -1103,8 +1103,9 @@ static bool etm4_init_iomem_access(struct etmv4_drvdata *drvdata, * with MMIO. But we cannot touch the OSLK until we are * sure this is an ETM. So rely only on the TRCDEVARCH. */ - if ((devarch & ETM_DEVARCH_ID_MASK) != ETM_DEVARCH_ETMv4x_ARCH) { - pr_warn_once("TRCDEVARCH doesn't match ETMv4 architecture\n"); + if ((devarch & ETM_DEVARCH_ID_MASK) != ETM_DEVARCH_ETMv4x_ARCH && + (devarch & ETM_DEVARCH_ID_MASK) != ETM_DEVARCH_ETE_ARCH) { + pr_warn_once("TRCDEVARCH doesn't match ETMv4/ETE architecture\n"); return false; } -- 2.33.1