From patchwork Tue Dec 18 21:59:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 154203 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4226209ljp; Tue, 18 Dec 2018 14:00:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/VDXsRaZ1aYHJyvELDQwHlqy3CbLCZqrWmB2hqvoJ3R22GvgV6VfUYpSPa+/YdBKbzjJqIS X-Received: by 2002:a63:5c22:: with SMTP id q34mr17096562pgb.417.1545170415561; Tue, 18 Dec 2018 14:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545170415; cv=none; d=google.com; s=arc-20160816; b=oPm6/eB39nnUBmZMFKaJGhGj8cAFf6hbL8ywfG77ruCBf8kd2JlMQj+Xwa69kLXbdj Y3mxdAxxKTdGLEYZAvxt8ZJHCMna8b1zjmg/saFRfe2qmEEY3YdaRxPdwLQXtEV3lf6G Um41MnmtmUPUXkiCSBdV6NZ1O7Ytb2zYcxG+FbKxqVEJNM6JhSOravN1OLZXj4mDRzCi il0cDe41WS3gKc8cVRIEl9+d6y0ys9y55zci8A6ZSqQNK7DDH4dJprj2PXSlwV08MPUZ 4n4MFrpTQxpqAGwgwwjh8OplM+BVgzN7F5BVR/JODAS4tmXvGQmSKPduRCUxnBRl2jAf EwCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NgNGzAIjC+h/YGa02m+8VUza7KfaHGEKOk/Q/RGkFyg=; b=rfNbd8JdQItvyYIpPwhmBfmq5Nzto4QIO17uwGHL6N2YOkRlxX6oV4J/Kvn1ar8DZH 4NTjncE/5zcpvOHDMCkk2RHR3MptyPSdANsvp20qB3wJQzxR0wi0dt8KWtrvRxWh4mfs rtfWmUnQu/MJTsHF4cLAOqMDGY4THx58qle3JNPlgW2nR6v4FYx0QRLA8LO1v+9/BQAD i3zskGkbCLeT//EnmXtuY9ujIoPD7gQhGOHx3IY4CYyWQYx6TondjTFKEVnunMpt+NwT 9b3JZg+ICnlDSwQgGQ5uUE7aX200J7IIm7VT/snjJ3AIl/53u8sDW1sI4CW6Wrs6BY58 hMjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SeibXxXR; 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 z11si15008654pfg.107.2018.12.18.14.00.15; Tue, 18 Dec 2018 14:00:15 -0800 (PST) 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=SeibXxXR; 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 S1727151AbeLRWAO (ORCPT + 31 others); Tue, 18 Dec 2018 17:00:14 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42937 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbeLRWAN (ORCPT ); Tue, 18 Dec 2018 17:00:13 -0500 Received: by mail-wr1-f67.google.com with SMTP id q18so17472071wrx.9 for ; Tue, 18 Dec 2018 14:00:12 -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=NgNGzAIjC+h/YGa02m+8VUza7KfaHGEKOk/Q/RGkFyg=; b=SeibXxXRwP1rn7Y8dWILe0s04iu43wZy+/Ur6VThosHdeXBCXVWLNCTUiKJ4XN5ENk T913xZjN/lpvB4eBRRSbEngpCj4t2INWa7YnihA05C1CQ0yRtZiMPABS9LCHEVkncjw8 XuOwP41hFmbcghVvW0SNVT/yK2eqShAEy1vXo= 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=NgNGzAIjC+h/YGa02m+8VUza7KfaHGEKOk/Q/RGkFyg=; b=o96e4BJooyGewou61oA+H4ksoSPlHDw/d1A3EqOhENGryDUU4ajJItcoo1lXfGSsag JQTqHn5kRPYzlKoLrA5bz0aIsOyN1GjymD5fhdgoBnCZVDGLT4jJthCH3ES/4BZyadRG rko25vcISW/nHuwfWiJZtN9Vg86wDCmKOo4rIRYaYjtltUwnpqU3bvobCdIcBGWKAo6O g+ISdCtJOf0HH9JiVoPYj6gX0GgipMyEOyLJ2Kme8MOWKgWDehsMyYleHGKxfjjMWuZN kgDJrCjbdJPCioZjZWkKp54bHzt+GPV6dP00/m5k6elXCC15wkK2z514w9QcmYzOAgR7 TEtA== X-Gm-Message-State: AA+aEWYQ0po9WOJV8bZuFLen/HeD0FnSO68WTACC/cn5YLjch3qc3l6I D9Rk2RbStoctIJDlLo1B3t3mVJ7v/IE= X-Received: by 2002:a5d:5409:: with SMTP id g9mr16597120wrv.88.1545170411633; Tue, 18 Dec 2018 14:00:11 -0800 (PST) Received: from linaro.org ([2a00:23c5:6815:3901:cf0e:17bd:f425:fac3]) by smtp.gmail.com with ESMTPSA id x76sm7449158wmd.27.2018.12.18.14.00.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Dec 2018 14:00:10 -0800 (PST) From: Mike Leach To: mike.leach@linaro.org, linux@armlinux.org.uk Cc: mathieu.poirier@linaro.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v3 0/2] Update AMBA driver for enhanced component ID spec. Date: Tue, 18 Dec 2018 21:59:42 +0000 Message-Id: <20181218215944.2444-1-mike.leach@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Russell: Do you want me to add these 2 patches to your patch tracking system? Thanks Mike 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(-) -- 2.19.1