Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2453959rwd; Fri, 2 Jun 2023 09:34:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79RyvsQmbfWno5qNcfhPK9WQOfnTTgXyhCyqKLHFtckomR7oPqBlMy6FnlHtaqz6YHRBeF X-Received: by 2002:a05:6a20:4326:b0:111:d03c:2bf9 with SMTP id h38-20020a056a20432600b00111d03c2bf9mr11009439pzk.12.1685723690415; Fri, 02 Jun 2023 09:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685723690; cv=none; d=google.com; s=arc-20160816; b=oKLr8yTEBWPJNqAsRIwUgYnyHIEYPMPZjkWfgtADVKHPIu6MnRtVz3YOr1KfSfH/3D 0esS24oHJtK31ZXAqlei6bWPTlxXAz6ChioF2dWbSwe0Qpdes6qH9pabrWrnMX1if7kv RpK3YjTu3YZlSvk/n1INvHSk6GDMPcRrGllJN5QGWKSMpZAuFHhTF+I60IKj5Jvmkd93 xCPZoW/41pmaL4pHAqkeLVi/aI5uc6zP4/9/w3vuP2Psm1dexyJTkW/BZxJO2O9oBDtv ze+Wf9SeeG4eroOjskDgHeepmKoWvzXCBVcuM8n/9tS+FoIyKWfCVwOTS0+CW89YY+kU 6HUQ== 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=vCosaHrweV3Wv2zKarzLX/0x46vU2lUGzhjNTJPpnYE=; b=sSTaVkzQD5QzFwYQm84iwYsokqDDcLzxV5bmcykOxp1t1IXtBI2zZr3vEJJw035VUJ yWayMaT8vt/+d0kWG2rCyXgV5uJjjqitV87rXwkVACO7FYBtbZOsKAuQdZsAwVF6kFE1 1jpEw4nhSMLPuY60VaLV6e/IY8zg4GcDTfcCXYjVmJh4bxNxBZIbKXUWl31UxHZr0u5E l4DfLP8FHeG8DVDrrIFNhSAykheZcn31FAl5RJp+O/t0hCUqgcf8Da5akNRenBkYeJAA 5ETXDCvXHphYlFSxjgaXoyTNrZ/yFxXvRqCmONxhfmJ0t/DMHgHQfZBwpSrOuvA/5a14 DzWA== 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 k137-20020a633d8f000000b0053fee168aabsi1229243pga.742.2023.06.02.09.34.37; Fri, 02 Jun 2023 09:34:50 -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 S234562AbjFBQSW (ORCPT + 99 others); Fri, 2 Jun 2023 12:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236655AbjFBQSS (ORCPT ); Fri, 2 Jun 2023 12:18:18 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 71741E40 for ; Fri, 2 Jun 2023 09:18:17 -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 9241B1063; Fri, 2 Jun 2023 09:12:47 -0700 (PDT) Received: from [10.57.22.125] (unknown [10.57.22.125]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E2D223F7BD; Fri, 2 Jun 2023 09:12:00 -0700 (PDT) Message-ID: <50399db6-f7f0-8e9d-cc13-fe4fbc0287e1@arm.com> Date: Fri, 2 Jun 2023 17:11:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: [RFC PATCH] coresight: etm4x: Match all ETM4 instances based on DEVARCH and DEVTYPE To: Mike Leach Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, james.clark@arm.com, anshuman.khandual@arm.com, linux-kernel@vger.kernel.org, Rob Herring , frowand.list@gmail.com, linux@armlinux.org.uk References: <20230525095807.1379811-1-suzuki.poulose@arm.com> From: Suzuki K Poulose In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 01/06/2023 16:59, Mike Leach wrote: > HI Suzuki, > > On Thu, 25 May 2023 at 10:58, Suzuki K Poulose wrote: >> >> All, >> >> This is an RFC patch to allow all ETM4 instances to be detected via AMBA driver >> without having to add the PIDs to the list. The AMBA driver already supports >> checking the DEVTYPE and DEVARCH registers for CoreSight components. This patch >> adds a pid,mask value that is bound to match all PIDs (with PIDR2.JEDEC field >> mandated to be RA0). >> >> With this patch, we wouldn't need to add the PIDs for newer CPUs to be able to >> use them. An entry in the device tree is all we need. The only side effect of >> this patch is : >> If a DT description exists for an ETM and the CPU ETM has an erratum, the >> driver may still probe it and use it. But then the DT shouldn't have >> described it in the first place. >> > > Don't think this is an issue. > > In the previous mechanism, with an ETM with an erratum - or indeed > need of some arch specific extension as we allow now - someone would > have added the PID - tested it, hit the erratum, and would have to > investigate and fix according to what is required. This changes > nothing in terms of handling errata on ETM hardware - it just removes > the add PID step. > > For new ETM that work out of the box, this saves time re-spinning the > driver every time - which is kind of what we want from device tree! > > I'd go for it. > > Moreover, the same principle could be added to the CTI drivers - > though these are generally pretty standard anyway (i.e. based on > Coresight Soc 600/400), so may be no pressing need for this right now. > Thank you Mike, I will send it as a proper patch. Cheers Suzuki