Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1171776rwi; Thu, 20 Oct 2022 09:24:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5mHmVZG6j0KndpORqHV+xh/6RoACALC2zoObWLIydNZ+e9YRXsMRCo7WYuLE4ZHTeElTmA X-Received: by 2002:a17:906:5587:b0:78d:b6b6:7872 with SMTP id y7-20020a170906558700b0078db6b67872mr11641163ejp.72.1666283076083; Thu, 20 Oct 2022 09:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666283076; cv=none; d=google.com; s=arc-20160816; b=yp6HU2njZsyVYBywB0MkgQhwdB/1R9gP6B/r84gQmd/uBxsEYMMSaIC8XbbGTokjop 6Rc1LWwJ9bDdgFCDwuE9tgjWXcCT19dy0SpXV2CdODX9OZ78IKQ/fET6tE9Y9QEV94jH Ek6eWeSWOQjelQ0xyBEdD8gBsHO0HwPEgzE+i0jWDUvd1SCpaApwrxoLlmGy5y1k6h4j y04h7BO6NiW0k60VtyExGs1W9LnLvRJq01kizu4HCALiMklgaMVPbL1iix08foZcxvcG EmhWkRAuuouwIogmDSjW4xPhl3J6U978llP11gw7Whhgj5HVzdS5bB5rU0hjS9lV0edk njEQ== 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 :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=6lUhfHfDW2XdNiQrB8lFaqtJZTPx4nWZutetJK2H1d4=; b=FJb2MWAVQF0twpHjzCKB5yBuIelfEMj0wV6K5/zSNnau25YaWmMSbVZT3rHLymTZ+i qLMSFIqPzxO2FEZ16fkWwJyIwkJ68FyLCxZ0wUyoy0UYXqXX5Tp0SgDzhz5fOEaE4P+U 2eCBISSHk4jCaVi9yqDbO1u1VrErkrSP/h8pKV4gSgXRcK/2vA3IW8gMW02IWcyAT8mG FIB/BpgcQ4O2QGsu5kTeUWjnBxzMJmB160cXZ3ItwGEJfd8pqXOfpIKnDMxY3vyup8WQ Zwpxwr+JzdVYiHcgzM4IerGNO1vFW44bZVQCRiveGu+Am7mgpY3kDN7EyNVJwPxTvUcW VrWw== 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 hq40-20020a1709073f2800b0073866c0672asi11429501ejc.73.2022.10.20.09.24.10; Thu, 20 Oct 2022 09:24:36 -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 S231134AbiJTQEr (ORCPT + 99 others); Thu, 20 Oct 2022 12:04:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbiJTQEH (ORCPT ); Thu, 20 Oct 2022 12:04:07 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D7AF01BC16C for ; Thu, 20 Oct 2022 09:03:52 -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 381E823A; Thu, 20 Oct 2022 09:03:56 -0700 (PDT) Received: from [10.57.68.12] (unknown [10.57.68.12]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AA8A53F792; Thu, 20 Oct 2022 09:03:48 -0700 (PDT) Message-ID: <07c9964b-e074-fe76-8ee1-9b0bdf5d364f@arm.com> Date: Thu, 20 Oct 2022 17:03:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 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> <9fc5ab20-c7f0-a917-4938-403e3661109f@arm.com> <5c4d3a7f-0dcb-c0e9-0192-2a53d0338078@huawei.com> From: Suzuki K Poulose In-Reply-To: <5c4d3a7f-0dcb-c0e9-0192-2a53d0338078@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 On 19/10/2022 03:04, Xiongfeng Wang wrote: > Hi, Suzuki, Anshuman > > On 2022/10/18 17:18, Suzuki Kuruppassery Poulose wrote: >> 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 a lot. Really appreciate ! > By the way, do we have plan to add ACPI support for TRBE driver? ACPI 6.5 add a Yes, this is again in our pipeline. But, without the ETE support, TRBE is literally unusable. So, this will follow the ETE/ETMv4 sysreg ACPI support. > field 'TRBE Interrupt' in GICC Structure. In the beginning, I plan to add a > platform device when got this IRQ, just like what SPE does in the following commit > commit d24a0c7099b32b6981d7f126c45348e381718350 > arm_pmu: acpi: spe: Add initial MADT/SPE probing > But it seems that TRBE still needs _DSD method to report the links(input port > and output port). Do you have some other advices? Thanks a lot. TRBE doesn't need to specify the input/output ports. It is a per-CPU sink and the TRBE driver registers it as such for each CPU that it probes. Suzuki