Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4589939ybi; Mon, 27 May 2019 22:20:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL7wTGFGYh/0aMox1HZrIdclKQKUl36zNDw08OMZPBR/VSngHBc7yQucIQDDw6i0pZ9uL/ X-Received: by 2002:a17:902:2a4a:: with SMTP id i68mr36555268plb.25.1559020853870; Mon, 27 May 2019 22:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559020853; cv=none; d=google.com; s=arc-20160816; b=fsJ67QGOeMhqtmfeUyrVAa6m9dqQ8XcESrg2qSORV6pq6v86z4zmNERGRgCPmDjCrr TBMuDW+sNHwC4GGDzT7YkvshCo/F9JSjefnsEO6gTlEvve+mUVIlOoQu7q7eiYXcCPsi ovctNrinEmLEspWuWsPQf0Lt02BgAZC3x/47JuZ3tNNsK+8icKeVpyCrbZC0oIqTek5P D5Fg43GbM9lVxB7HnRFwglvzSso8A/W64MMPwQPoLhtVFOxWXzYfw5T6jjor/FJ1e7uu AoX4s7e2HhcXnrARgX0gypuSqk0dl0KxnXxkvh34OHItyK+aYSoLJ8IIv/YDbK+wvTR/ ucYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d9vAkjT4zw1XDm8fsnSZlNEkjl4Nf7vHSlfSiY9KNso=; b=R91A8Bu/7pGXa2s+DmOF1gveia39vmCcWR4o5SHoOi69JiKAmHfJ4EsGoPl+nGlY6P rHQ0hVgVay4K3MaKg/T/m1l44P/9gMsPP6EmR6cAT+yciTbqP+qDPdhtOL+2S0sFRGOF VGy71mcn8FDzChpoOK+oUIszeHQH9g3m+bOilQOGH1+NUzsZgaWraz2bDaELRsJKszem Ptd5Vakl0tYv3IMFA17N4ylJTzVmm84OT0ND6lXRl9kQBokO2CQsYJeEAXA2L+6tOypA 0RELEhGsr+Ghu73g3RwgzjsQfXPImjUC+nfroG+8jjp+yXyHo6wo1ojfCOkDEZwKTCUb bHZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ALnyFScM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15si21663187pfh.174.2019.05.27.22.20.37; Mon, 27 May 2019 22:20:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ALnyFScM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727295AbfE1FTc (ORCPT + 99 others); Tue, 28 May 2019 01:19:32 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:40506 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbfE1FTc (ORCPT ); Tue, 28 May 2019 01:19:32 -0400 Received: by mail-qk1-f196.google.com with SMTP id c70so6507199qkg.7 for ; Mon, 27 May 2019 22:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=d9vAkjT4zw1XDm8fsnSZlNEkjl4Nf7vHSlfSiY9KNso=; b=ALnyFScMHMtERUW5uD1FraHSomTN3wSkzcc4PKpGg+PWHBFD84hbVQEZQWoagJ5Xhb Mv1aFVz+PDS7WTLRjjzI3/r4f3n/zx7N3TJBC3qPz/FgPJY6s+MobfxiX3TxfZ4FQITm UtogIZKfFDygLEtHVL0jzihfUraD7hhrSKZ5jVQ9B64yED3R1Hs+HbvBE7hRMCNY5+5Y B/Yt2q4HmPgHIjcXO60h+/KlR+T943toFQ9IFKyU0WPZ2uNthhcK1PVqEO5iew+mGhU0 U497rM9uHMfnVPHfaU8O3uc/81MIvFhI+gAfEoN0yIRlpSvXJViZoXlf2cC9Gn22QzPW yUZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=d9vAkjT4zw1XDm8fsnSZlNEkjl4Nf7vHSlfSiY9KNso=; b=p7fhQxVYDlkLy74HGy6IaP010EjPBC+qFup3WNxDNzntTw57rOVpB79a73PjB2BLRh zthSZ+e3K8dPxYY5V0rJhdQdZQnEF951NQa4dfSW+12exRXa7JHYHLak5XygO1aab58j mrhVwggwcq7/n/984090exOYkWv2oIYI7Js4sCzPl74CPmFI6OMYgRAR+V1rcf7DSNdr ATrY8yaLLrorgsTtEPm6UgGfP4xB3budDap3mtZxPyv5yrvwLI46m6lDZ4Ch88Gwereh aILdKQrNoLpNFToDv9Wmgnp/6STQSjGh2rAGyZz6uLO09q6CQsP22YB4rdQ35L2t3CVq qXiQ== X-Gm-Message-State: APjAAAXpX603/xb5e9Ug/LfP1KXbrwm8zvPzBeIrzmpPuj/O3wHRBoW0 BSGG+pWExoO6LJX1uba+/QqxNQ== X-Received: by 2002:a37:a247:: with SMTP id l68mr540762qke.89.1559020771336; Mon, 27 May 2019 22:19:31 -0700 (PDT) Received: from leoy-ThinkPad-X240s (li483-211.members.linode.com. [50.116.44.211]) by smtp.gmail.com with ESMTPSA id w189sm1054949qkc.38.2019.05.27.22.19.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 May 2019 22:19:30 -0700 (PDT) Date: Tue, 28 May 2019 13:19:24 +0800 From: Leo Yan To: Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 00/30] coresight: Support for ACPI bindings Message-ID: <20190528051924.GA19112@leoy-ThinkPad-X240s> References: <1558521304-27469-1-git-send-email-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1558521304-27469-1-git-send-email-suzuki.poulose@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Suzuki, On Wed, May 22, 2019 at 11:34:33AM +0100, Suzuki K Poulose wrote: > This series adds the support for CoreSight devices on ACPI based > platforms. The device connections are encoded as _DSD graph property[0], > with CoreSight specific extensions to indicate the direction of data > flow as described in [1]. Components attached to CPUs are listed > as child devices of the corresponding CPU, removing explicit links > to the CPU like we do in the DT. > > The majority of the series cleans up the driver and prepares the subsystem > for platform agnostic firwmare probing, naming scheme, searching etc. > > We introduce platform independent helpers to parse the platform supplied > information. Thus we rename the platform handling code from: > of_coresight.c => coresight-platform.c > > The CoreSight driver creates shadow devices that appear on the Coresight > bus, in addition to the real devices (e.g, AMBA bus devices). The name > of these devices match the real device. This makes the device name > a bit cryptic for ACPI platform. So this series also introduces a generic > platform agnostic device naming scheme for the shadow Coresight devices. > Towards this we also make changes to the way we lookup devices to resolve > the connections, as we can't use the names to identify the devices. So, > we use the "fwnode_handle" of the real device for the device lookups. > Towards that we clean up the drivers to keep track of the "CoreSight" > device rather than the "real" device. However, all real operations, > like DMA allocation, Power management etc. must be performed on > the real device which is the parent of the shadow device. > > Finally we add the support for parsing the ACPI platform data. The power > management support is missing in the ACPI (and this is not specific to > CoreSight). The firmware must ensure that the respective power domains > are turned on. > > Applies on v5.2-rc1 > > Tested on a Juno-r0 board with ACPI bindings patch (Patch 31/30) added on > top of [2]. You would need to make sure that the debug power domain is > turned on before the Linux kernel boots. (e.g, connect the DS-5 to the > Juno board while at UEFI). arm32 code is only compile tested. After I applied this patch set, I found all device names under '/sys/bus/event_source/devices/cs_etm/sinks/' have been changed as below on my DB410c board: # ls /sys/bus/event_source/devices/cs_etm/sinks/ tmc_etf0 tmc_etr0 tpiu0 This leads to below command failure when open PMU device: # perf record -e cs_etm/@826000.etr/ --per-thread uname failed to set sink "826000.etr" on event cs_etm/@826000.etr/ with 2 (No such file or directory) I must use below command so that perf can match string with the device name under '/sys/bus/event_source/devices/cs_etm/sinks/': # perf record -e cs_etm/@tmc_etr0/ --per-thread uname Seems to me, this is an unexpected change and when I worked on the patch set v2, IIRC that version still can use '826000.etr' to open PMU device. Please help confirm for this. Thanks! Leo.