From patchwork Fri Jul 28 11:27:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 12765 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp379211vqg; Fri, 28 Jul 2023 04:59:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlHs10VhbH0ROkdy7isIi/dc3fdQqwTipC/nPgzt3sEnlvOJTOlbwno6w5vLFl9V3tAsDtbV X-Received: by 2002:a05:6512:3286:b0:4fa:6d62:9219 with SMTP id p6-20020a056512328600b004fa6d629219mr1532914lfe.62.1690545578765; Fri, 28 Jul 2023 04:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690545578; cv=none; d=google.com; s=arc-20160816; b=m+/mGUwAUfKFAL1jac/Glfsd3RkTvG+S5Drh1gITGsoYyFlhwM85X8OPpdbJALLjqE gI4knD5E+KqQYZLJDqV77c4GNEXGLCjHNCVJV0SXAv/sxF5C6ugJvfVTL/GU8xJyHXh4 h0Nf6qfJtlX/Em7njRXHjl8hq6k+CtKdAjH39ZRtZMnfPdDLTPuygJLUt++YzdNnKi5y sxtvFHzNFlbslvN7STeP1ROJvakAIUKYP0Kma2yIRXOXL7oaNuqjekwOiPTkL6sir0bS YjgmAt5XE1QEPJVlB9Ve3iVT4AS+Ky2z7jU5+XBjgF+nvO7S7JfsWwpkMb3uJGYr+ChO /yyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=g+/HBiXeNpSI24nvCiAC1yGKSUIqJd0k5qpqez8Zalc=; fh=PK7qZE2l3RufuWL/yvUO8bu8mrcIpscTWlY+prmDsuM=; b=NDwSwKtIEpZGd0Gl4wMj4AOflBIT5cD31/+g2iHYrR5yzc0VghIEWd7xqfnIHlquPf AUw9rWkAdpdVBspTXsgFzfxfxsovd6PoCu0htGUVh05T7dVkG+Usn7TV+uBBo/0sbDiS 3SX2ydwPiOPQrEVWuOUcvGAqIcNaC/eMtiEO48QLFT7JT2EkTptha8wmiaqPIa2OA3Z0 9mIVTeqORaDVHTQu6tK1N/jKJdxTys19VM70K8YX+W0tGGStYeP1pnp4qWIaH7H2lACx stTgIzj31jsgMhu+BSGGJ3ZstEAzAh3rF0JAVVe8j19I147Ukm1zNAJZOfTd2jpI1wPH GNPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay24-20020a056402203800b00522805b25b2si2531228edb.523.2023.07.28.04.59.14; Fri, 28 Jul 2023 04:59:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236230AbjG1L2F (ORCPT + 99 others); Fri, 28 Jul 2023 07:28:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233166AbjG1L14 (ORCPT ); Fri, 28 Jul 2023 07:27:56 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4BC002D5B for ; Fri, 28 Jul 2023 04:27:55 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E28CF2F4; Fri, 28 Jul 2023 04:28:37 -0700 (PDT) Received: from a077893.blr.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4CB2C3F6C4; Fri, 28 Jul 2023 04:27:50 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: Anshuman Khandual , Sami Mujawar , Catalin Marinas , Will Deacon , Mark Rutland , Mike Leach , Leo Yan , Alexander Shishkin , James Clark , coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] coresight: trbe: Enable ACPI based devices Date: Fri, 28 Jul 2023 16:57:30 +0530 Message-Id: <20230728112733.359620-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772665520565917515 X-GMAIL-MSGID: 1772665520565917515 This series enables detection of ACPI based TRBE devices via a stand alone purpose built representative platform device. But as a pre-requisite this changes coresight_platform_data structure assignment for the TRBE device. This series is based on v6.5-rc1 kernel, is also dependent on the following EDK2 changes posted earlier by Sami. https://edk2.groups.io/g/devel/message/107239 https://edk2.groups.io/g/devel/message/107241 Cc: Sami Mujawar Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Suzuki K Poulose Cc: Mike Leach Cc: Leo Yan Cc: Alexander Shishkin Cc: James Clark Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Anshuman Khandual (3): arm_pmu: acpi: Add a representative platform device for TRBE coresight: trbe: Add a representative coresight_platform_data for TRBE coresight: trbe: Enable ACPI based TRBE devices arch/arm64/include/asm/acpi.h | 3 + drivers/hwtracing/coresight/coresight-trbe.c | 15 ++++- drivers/hwtracing/coresight/coresight-trbe.h | 1 + drivers/perf/arm_pmu_acpi.c | 63 ++++++++++++++++++++ include/linux/perf/arm_pmu.h | 1 + 5 files changed, 80 insertions(+), 3 deletions(-)