From patchwork Wed Nov 28 10:14:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 10702253 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 47DEF15A7 for ; Wed, 28 Nov 2018 10:15:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34EFC2CE23 for ; Wed, 28 Nov 2018 10:15:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 266C92CFB8; Wed, 28 Nov 2018 10:15:13 +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 AD7002CE23 for ; Wed, 28 Nov 2018 10:15:12 +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=qk4h/O3lQaBeH/EufaGVotLzRrJvBDGp4HfYWD97prc=; b=LFg/5Ct02W/+yt IdVDFKotCFbxCFlbZDiMGJ2ayA+YUO1hw+Eo+fW/cpYXLubbLzaqy8PfKorDFilb6or0t6h/RI04u 5usE3jpovQ8vHC3yYGZ/ofLGMw1f/XRO8JMI3F5wKKlIEzcZEeWRW4bnjgArZx67oy2q++lMiNPVb NwUZlGrRXrsMynJ/E1AIT+IpCqAgTfM29bUYIUfqSptOFXxksj3tf5EAqlgErFN30t8weLDY3kUGC SM5x2jh7NeSMoWjrcCUKqQOYAyY11nUvkIjSr1ck6VVykiwDOqbbzh/HNlF/LRDqvaDx8r499jYUU E/njI4khRNeKNOHtzMEw==; 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 1gRws9-0001HV-Mg; Wed, 28 Nov 2018 10:15:09 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRws5-0008V6-GZ for linux-arm-kernel@lists.infradead.org; Wed, 28 Nov 2018 10:15:07 +0000 Received: by mail-wr1-x442.google.com with SMTP id t3so25670389wrr.3 for ; Wed, 28 Nov 2018 02:14:54 -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=16swMRcVBI5aAnWDGu3Vw/YfOykQ+zfPBRcgHPoRK6g=; b=WTykDioDklEHIB0zkpx9BuHr365bssC+DASaw+CjVIefOizPa6a9/7DQwng4pAK2Zt 2wja/8K78+rGBBvjKJC3vKcsy6Qtm9+tUEY4Ak2rCLfbw8F1+kmQ+DIBZaynExC0vrtQ /nU2UqLlpT6o/JK+xiO8NmE6ylv5F8nFGuFy8= 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=16swMRcVBI5aAnWDGu3Vw/YfOykQ+zfPBRcgHPoRK6g=; b=CkF4BH2QKx0UA4wJQ4UaZFnYlcuvtNvRYW3B3zTOxHOGtVH1Ig46PCqtrUgnOAp4us +rG6zkFyg1tpTZBF6M3SxOkmrET75dvcBMRibww1xfcDCjBYuJgKPqIqosFe0zofzcvr 1v08xeIbVObbehluklg904b3LzuwZ1v/Mf5ksUgT0SQOXCtWPt3vCJI/DEw1yfA/qJ+/ xgaEL39Rjyd6qfaQdUt+hiL9th03od+42kxJ3rVmSI2rNc3DeFzCjN8PHVOZjUAEDZRx b2ciDR2e62MmJ7IASaQF5x63SdZSU2ScikXp4b9LujrQBgBwqvFEg7yj+I6R+nPZ0hU6 JskQ== X-Gm-Message-State: AA+aEWZV9pv/IGYQETvnl6F7vV0W5wClC2007KSGWGiufe/XbuRX+/7A WbRnZzoNEGUasyx5ChBLNNPAOg== X-Google-Smtp-Source: AFSGD/XiCwvSBe5ATQ9n1AEfZ2SBstAiCcvJm22ahIK0zip1gmalXrzTxpKmXgusNM1GZyYkycOy+Q== X-Received: by 2002:adf:ee89:: with SMTP id b9mr32017445wro.246.1543400093514; Wed, 28 Nov 2018 02:14:53 -0800 (PST) Received: from linaro.org ([2a00:23c5:6815:3901:cf0e:17bd:f425:fac3]) by smtp.gmail.com with ESMTPSA id w16sm8852108wrp.1.2018.11.28.02.14.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Nov 2018 02:14:52 -0800 (PST) From: Mike Leach To: mike.leach@linaro.org, linux@armlinux.org.uk, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH v2 0/3] Update AMBA driver for enhanced component ID spec Date: Wed, 28 Nov 2018 10:14:20 +0000 Message-Id: <20181128101423.15961-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-20181128_021505_578753_BF219337 X-CRM114-Status: GOOD ( 11.34 ) 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 11:8 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. An additional test patch is provided to test the mechanism on the DB410C 96boards platform. This is not intended to be upstreamed. Changes since v1: 1) simplification of amba_lookup function & other minor fixes per suzuki suggestions. 2) remove spurious whitespace changes. 3) extended devarch and devarch mask values in etmv4 UCI to include architect. Mike Leach (3): drivers: amba: Updates to component identification for driver matching. coresight: etmv4: Update ID register table to add UCI support amba: coresight: Driver test for new CoreSight UCI matching arch/arm64/boot/dts/qcom/msm8916.dtsi | 9 +++ drivers/amba/bus.c | 60 ++++++++++++++++--- drivers/hwtracing/coresight/coresight-etm4x.c | 21 ++++++- include/linux/amba/bus.h | 32 ++++++++++ 4 files changed, 112 insertions(+), 10 deletions(-)