From patchwork Thu Dec 6 00:02:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 10715145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA30C15A6 for ; Thu, 6 Dec 2018 00:02:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B85C52D9C5 for ; Thu, 6 Dec 2018 00:02:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA9512E3A7; Thu, 6 Dec 2018 00:02:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4CA3E2D9C5 for ; Thu, 6 Dec 2018 00:02:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ni+UoDHN4nD0pN4gfYgPYOM2F7W8Tr8ID/fqPDyOQZk=; b=MmxscP9R5sdLXJ 8QsGUP8iIbNTvt+uG8BXhMM8sDq73wd8fztwpnX24BoTiiE7mTZZbDRcHQj1H8tHkY03HHmjSAJFx G27/m8ukMEw46HUiLmyHAZtGYXizATPtUhE6S6PSceVbg39VFG6rmwZlIgP7xmieKTzeaZo6b7ufN BF6pzoHP6ah4HBbpGmVtkKdE9hbZsQKLIGs/3WC6HsGlb7K2VSWONY+QAc8dumsiycgNwd6Dx9Irh dP8C9x0B4QxSyazd3SUUg8kqrfK/OEh1ycXapZhi+zHPM7y1N+fuXC7eyMXD7waa99H4Za4QKy9dl PyE+t05MNlVGwpk4+NRg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUh7z-0006T9-J5; Thu, 06 Dec 2018 00:02:51 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUh7s-0006Qc-8f for linux-arm-kernel@lists.infradead.org; Thu, 06 Dec 2018 00:02:49 +0000 Received: by mail-wr1-x444.google.com with SMTP id p4so21462868wrt.7 for ; Wed, 05 Dec 2018 16:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NSFTQSZEayHkouMtOVDMYNOLbXr1bjPpdi/mDF9F+Qo=; b=Ulz79bg++xmJw0us1fP/5iobRbrXiGj4E2bazK6TBtWVSotAG0leHynY5ZEmxMwF02 WieFxjPZnrbcQvlJKU2VGauIoQKawe6INuCAlnWNVBPlp8uI8l4V6utawdZ6bFDF6bX+ sM8NCSvz8QJ+QKPtmd+wI8/uismItWGzQCrVg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NSFTQSZEayHkouMtOVDMYNOLbXr1bjPpdi/mDF9F+Qo=; b=VNPT+YxpYLAJw7sdnEhKQ3syAM3O54wFI2YzJE36Kl7UK8+/5PsA4h+hmM/lDtCpTC ZKf3aM3jh+i/EJ2L1CbGG4MAUlJgm/ik1mYnloQel5AL1IdJdYfCknpf3z6mb95DLDb1 62djF+G2+xz7Od0DlnTElu9xvtsTNeq3GifpWUkN9YHNaSGiF9CHwvahKh6dxh5lVwWF 4YjVW68Whudaq2RAss2CWveRSBPq4hCCp5IM4EGyRH/98Ix6Q1CtsrOvT6k32qEVSBgp rHUER760/1A+u/FX7SCSgkh5D/Itwg/+NuZpysYsJfvfSY2az3zLIUxXPrAvReY69WA1 Fxlg== X-Gm-Message-State: AA+aEWZqaQrArreCQdDRKvX8Uqtl3t8JL1DbArkGV76MPCONE41HjB0S arQODbDC/10o3zwqGHuh4Idr8A== X-Google-Smtp-Source: AFSGD/UOXfHw2Cr/4pA4ikcp6r+AOcGEVJFHazqpXw14hbGIR+As/CsRwoC5Tn8pcuCk9SX+FsLYnw== X-Received: by 2002:adf:e149:: with SMTP id f9mr25286999wri.42.1544054552174; Wed, 05 Dec 2018 16:02:32 -0800 (PST) Received: from linaro.org ([2a00:23c5:6815:3901:cf0e:17bd:f425:fac3]) by smtp.gmail.com with ESMTPSA id i9sm23241184wrs.34.2018.12.05.16.02.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Dec 2018 16:02:31 -0800 (PST) From: Mike Leach To: mike.leach@linaro.org, linux@armlinux.org.uk, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] Update AMBA driver for enhanced component ID spec. Date: Thu, 6 Dec 2018 00:02:24 +0000 Message-Id: <20181206000226.2507-1-mike.leach@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181205_160246_043361_B2B4A37E X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The latest ARM CoreSight specification updates the component identification requirements for all components attached to an AMBA bus. (ARM IHI 0029E) This specification defines bits 15:12 in the ComponentID (CID) value as the device class. Identification requirements now depend on this class. Class 0xF: Traditional components identified by Peripheral ID (PID) only. Class 0x9: CoreSight components may be identified by a Universal Component Identifier (UCI) consisting of the PID plus CoreSight DevType and DevArch values. Current and future ARM CoreSight IP will now use the same PID for components on the same function - e.g. the ETM, CTI, PMU and Debug elements associated with a core. The first core to use this UCI method is the A35, which currently has binding entries in the ETMv4 driver. This patchset prepares for the addition of the upcoming CTI driver, which will need to correctly bind with A35 and future hardware, while overcoming the limitation of binding by PID alone, which cannot now work. The patchset updates the current AMBA Identification mechanism, which was already differentiating between 0xF and 0x9 CIDs, to add additional UCI compliant tests for the for the 0x9 device class. Additional UCI structures are provided and added to the ETMv4 driver as appropriate. Changes since v2: Simplification of amba_cs_uci_id_match(). Fix CID class bitfield comments. Dropped RFC tag on patchset. Mike Leach (2): drivers: amba: Updates to component identification for driver matching. coresight: etmv4: Update ID register table to add UCI support drivers/amba/bus.c | 45 +++++++++++++++---- drivers/hwtracing/coresight/coresight-etm4x.c | 18 +++++++- include/linux/amba/bus.h | 32 +++++++++++++ 3 files changed, 86 insertions(+), 9 deletions(-)