From patchwork Mon Jan 21 23:31:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 156260 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6921121jaa; Mon, 21 Jan 2019 15:32:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN46fMx+kXHxqJNq8UnWq/BUM/moYfFXjUVFks9xyzKRwWzMTLaYArTfW/XaPm3sYgTZTk4G X-Received: by 2002:a17:902:50e:: with SMTP id 14mr31596814plf.141.1548113520644; Mon, 21 Jan 2019 15:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548113520; cv=none; d=google.com; s=arc-20160816; b=i3/dYVWs5n56WEEhnsSHyxEWOeO7DbjoI3hHeZig5HJAR6S8AjpDX6ykAaL8P0+mfl VN/7UrviH3cS4OhsDscBpzEpQbbd4gnMyP9PXsUVP4h1tlNA2suvoAcCko/dE2ipksSa bbcDKVSQjFp8wcQ68EkuqxgH6Ev9dDoR/6c4UBzWL7F4RBKDB5rMtYZfKc+fWfDgC0VW 6HieTOebw1oLECp4/0SfOIK6wuI5c3fCMcuuD3VjhMP1FbYyXK+Y/zEDV/9X6ar7o879 MZlEp07xjTafD+HHpedbvpg/ZpuMKzfG0SoNoIdGSCE/skoQ+OkYaq++20DMcz4uL5+g mJ6Q== 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=aPI08MEaihjfeULPZ5oyjGN03aWV/+CSSPVINdzDOeo=; b=LW0l3PE0hRp5HVHo2c+O/XTy8PTbG1p903xz0Cql4NX8UzfnSNyw+n6Qj4+MgoH7lL dT4bvFD8qnArgB+3+/va/QQnVXev3yOgrtXl5E5JCtRnpd1los4WHoTne7d+ILEi6koh BhJ9sZr7PuW5xpbQMU472gK1YrRkrxGUWEpxKPBfDH8rAeXD2P/xIjRA/97zkTEdInTO 2P6LkQpdQPn0lcPtoxyWcVlm1kltNOkL3Y2df0OqafatagAI5B25cjegLzS24A13+Iav 2ju4+AAahzKR+tsa9O66MyZ8oyo3ilUDOH6uTAiMoiPkFu6ML+zZpT/pKHH8DJFveYQO AJDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dI/dNAdC"; 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 q32si13914509pgm.410.2019.01.21.15.31.59; Mon, 21 Jan 2019 15:32:00 -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="dI/dNAdC"; 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 S1728163AbfAUXb6 (ORCPT + 27 others); Mon, 21 Jan 2019 18:31:58 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34571 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbfAUXb5 (ORCPT ); Mon, 21 Jan 2019 18:31:57 -0500 Received: by mail-wr1-f65.google.com with SMTP id j2so25399994wrw.1 for ; Mon, 21 Jan 2019 15:31:56 -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=aPI08MEaihjfeULPZ5oyjGN03aWV/+CSSPVINdzDOeo=; b=dI/dNAdCaV9tB1c7IkbiRZ5b1BDtNe8+QiiWeEFAAjr3o6ih4gnMOYDW8tuhQPJLEd RTjkG6pRRp+K9C3K4/2IccFV6M3Yj0VDu/thPq9UF1H9KAvSrLn5FTgJAI3z+x188NXm dOdki/ekaQ/6e3sj0tB9XQbsjnuKapzy8RnWo= 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=aPI08MEaihjfeULPZ5oyjGN03aWV/+CSSPVINdzDOeo=; b=fWIAE5YT/6kTU3umP5AVs2a+fCv7izR6enDyIxSqlaWdrMjNyxyzz6QaYZnlIi02Ml d/42iLvNo1T3qRii+HqElad5TdPF3JDrlLsaMsIj7VVGGxgubSxj+KnDsRN0G/7i30kd ND1VjwjyDDOMzzi2/EMRx+KhOryRuFtfDgtuJ+DsHV+Q63BdexbB1UTYkNv6NBI1croe oV0ErUzNyNvB+kwEGRw8tfQmOodkT7K6aXPABv5IFbYqIRblV7cd/UOtGf+v3WVj02cz uUCKPaD7jmSrofcPLytxTu4b+465853TjwKVzYUkkOq51BLN5xAK5tsVZdBU+z4MBZe7 wO/g== X-Gm-Message-State: AJcUukfROhhiUlaMdLOE314q+q8j+yv8RFJghLgwWE5OpdNgwkz+ks3B vcY1C2GrtT1VF+py5Yd65ETkg5V5Nag= X-Received: by 2002:adf:b3c3:: with SMTP id x3mr30201825wrd.294.1548113515503; Mon, 21 Jan 2019 15:31:55 -0800 (PST) Received: from linaro.org ([2a00:23c5:6815:3901:cf0e:17bd:f425:fac3]) by smtp.gmail.com with ESMTPSA id g67sm106405967wmd.38.2019.01.21.15.31.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Jan 2019 15:31:55 -0800 (PST) From: Mike Leach To: linux-kernel@vger.kernel.org Cc: linux@armlinux.org.uk, mathieu.poirier@linaro.org, Mike Leach Subject: [RESEND PATCH v3 0/2] Update AMBA driver for enhanced component ID spec. Date: Mon, 21 Jan 2019 23:31:49 +0000 Message-Id: <20190121233151.13363-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. Rebased and checked against 5.0-rc2. This is a second resend, of a set sent on 5th-Dec and 18th-Dec. Would appreciate someone looking at this to progress the patchset. Thanks Mike 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