Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5717974rwi; Tue, 18 Oct 2022 03:13:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ll3sGths/SBJFOUMnnBPMLlIclT/Lz6nrR6/pEIpb2lAW45Q+4oFSJxyEMMJfjKddbHiX X-Received: by 2002:a17:902:6a86:b0:176:a6bc:54c0 with SMTP id n6-20020a1709026a8600b00176a6bc54c0mr2229305plk.87.1666087991153; Tue, 18 Oct 2022 03:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666087991; cv=none; d=google.com; s=arc-20160816; b=OliB9HN6qyHx8hRXiqSFUN/aLdo3VyVqr87WLOBpV44ZRYxRds4pOqGfV7FE/UUNkW PCHQ16QHQRss/pSrtYIy811v718HMHpkfQItu879UwnZfzz+cSWM5U6DuMHyT+v5e96/ ngf3mSOfrxMl2YBJHtVAULl5UG5D10K0CiObhL4C7lIEf4UNpA5cX4w6XWoG2t01e5Uu OI4j0aS381qRdHiOfr50EPVVwqIxDZ2nPZBdL8XHOk4pGmlThr1BbOnb57VYkR1yAqZS Kb7ezr0jGg7AMwB4bDPXXlruqKhxAUzsPXik9JGyDdu92O9xj667IcLKL2tk1Av1igqh 8wPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=tO5KqvX8i21diqQZiUra9i68vAIMdI10xRUOZe8pRKE=; b=hi2doOEk0ZJU1kaK1lQTPLXcS6SioW5zu16T4Ii7P47JDZtSIbrZZetfOKR4BVV2V4 mojcLRmAmXh8C0XxQBsaMo6DhCgoUiEq8q+8YBVMkEsvMfnnxJWCd395AWw5pBej3WXJ c28rVZ02U6qICixR9Metb3kbhTmZikqwQAVS8rV6uypRxnPPFMuXBlq9ca/CvelrFI8W vDHEaNPLfx3DbC2rChEpZRuKOduo4vPLfWPtpXEYZlvjMlboQSMN2urDDfr1KTxxapUi 8rHhUD3emmu31JqCZNc66IJ4kiLA7mG6b2we7p8mhS7NjtgnRe9YK6uqdiyRkwUyl/JZ daGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j12-20020a056a00174c00b005632d18cd91si15130195pfc.263.2022.10.18.03.12.59; Tue, 18 Oct 2022 03:13:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230365AbiJRJSR (ORCPT + 99 others); Tue, 18 Oct 2022 05:18:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230100AbiJRJSM (ORCPT ); Tue, 18 Oct 2022 05:18:12 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 58DDBAA347 for ; Tue, 18 Oct 2022 02:18:11 -0700 (PDT) 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 527F0113E; Tue, 18 Oct 2022 02:18:17 -0700 (PDT) Received: from [10.1.197.1] (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1E80D3F7D8; Tue, 18 Oct 2022 02:18:10 -0700 (PDT) Message-ID: <9fc5ab20-c7f0-a917-4938-403e3661109f@arm.com> Date: Tue, 18 Oct 2022 10:18:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [Question] Question about supporting sysreg only CoreSight ETMv4.4 on ACPI machines To: Xiongfeng Wang Cc: yehaiyang2@hisilicon.com, wanghuiqiang , Linux Kernel Mailing List , "linux-arm-kernel@lists.infradead.org" , mark.rutland@arm.com, Catalin Marinas , Anshuman Khandual References: <6e85db13-a65f-d4c6-1b6b-660a94cb7060@huawei.com> Content-Language: en-US From: Suzuki Kuruppassery Poulose In-Reply-To: <6e85db13-a65f-d4c6-1b6b-660a94cb7060@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Cc: Anshuman On 18/10/2022 03:04, Xiongfeng Wang wrote: > Hi, Suzuki > > We are testing CoreSight ETMv4.4 and TRBE recently. ETMv4.4 obsoletes memory > mapped access to ETM and mandates the system registers. The following commit add > driver for sysreg only devices, but it only support device tree. > commit 5214b563588e8414193bd7a174c52350256942a6 > coresight: etm4x: Add support for sysreg only devices > > ACPI machine can use 'ARMHC500' to report a ETM4x device. But the corresponding > driver is etm4x_amba_driver. It needs memory resouces and doesn't support sysreg > only device. That is true. Unfortunately, supporting this requires us to move away from the AMBA framework (at least) for ETM4x devices. This is currently developed by Anshuman. We can share it as soon as this is complete. Thanks Suzuki > > Do we have some other way to use CoreSight ETMv4.4 on ACPI machines. Thanks a lot. > > Thanks, > Xiongfeng