From patchwork Thu Sep 21 04:20:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 14322 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5115018vqi; Thu, 21 Sep 2023 13:21:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGco/0Kfnw2JZN5qVP4zKGCJU1jLipCCRwmB4LYVVPqOvUgHyAJ3LZl/21IQI3L+DMVu5BL X-Received: by 2002:a17:902:e80b:b0:1c5:8401:355b with SMTP id u11-20020a170902e80b00b001c58401355bmr1024695plg.29.1695327692581; Thu, 21 Sep 2023 13:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695327692; cv=none; d=google.com; s=arc-20160816; b=waDFPljISGLAdDntrS6o6gOjuzd/ZaANJN52x4NMx4DANXv5s4t/tmVm0EnHipZWmW ilIQYsAalOhaixe7GvGgQSZcagqQ5ic5ataC03F+aCKqKIvn23qtGB7h2MbVHWj68z83 rkogFAAuj0hIsX19GyW1hoG6iAof8Qu641XCVDWZ736ZRT2CEdqJnGd0xL8JhukSIsTo Ebk4XyponA6nEg5MJdZoC9wWQPNSCF0DvH43iz3S2L5BcsNt6VRR6CoCUJptO4jXjDWv UkbUL4SqcPrgFV6FA0kThGeRFwPyIGGBAVQaeAYSUkGSZTHtqgWNhBKA67tHSOUIheAw hLdw== 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=ezM5FrMhwIh0QLqRCG2Oak9wF7z6XRp/A/0mQ7AxFIo=; fh=9UOEjelFW6YmeQm+a0pvrCM8CYMJ6MbEjrtZbtMEpHI=; b=pLWmUSgNGfVpXY1nZYuc1a2MWFTeoeBZzDvwsW+Re5CLFz87saM11k+trDtbkChsHX 1q1s98vF9S2rrLw7DgxOop+VO6qUhEJ/6cajqPfq8o9i7qLiBljsH9oQJndc6M0CruY2 aEZJLP9h+B9/mXAftABZ1PfCBl3HLodF/0n71UfEjgVPanS4ZmyC58wxQ6uHFL/PsPyO 41w6Bad8tON3ocSv7IZrW5HsC2GgpWTYDDNHZCG3ahXtuqmYfYgspiyCiF/KiUOVn5JI 0ABQ+2FATLUzkDhwR7zgzYj1pK6cRD4mE0nwqvCzok9b9oFFn+16spBGChbZpY68BIqF ih1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id jb12-20020a170903258c00b001bbb56b34e8si2088472plb.432.2023.09.21.13.21.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 13:21:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E5E2B81C5273; Thu, 21 Sep 2023 13:03:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229764AbjIUUCG (ORCPT + 28 others); Thu, 21 Sep 2023 16:02:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbjIUUBd (ORCPT ); Thu, 21 Sep 2023 16:01:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 49F1255AF8 for ; Thu, 21 Sep 2023 10:17:37 -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 6BEDB1042; Wed, 20 Sep 2023 21:21:31 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.32.120]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CDADD3F59C; Wed, 20 Sep 2023 21:20:51 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: Anshuman Khandual , James Clark , Mike Leach , coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [RFC RESEND 0/7] coresight: Move remaining AMBA ACPI devices into platform driver Date: Thu, 21 Sep 2023 09:50:33 +0530 Message-Id: <20230921042040.1334641-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:03:22 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777679930483530355 X-GMAIL-MSGID: 1777679930483530355 This moves remaining AMBA ACPI devices into respective platform drivers for enabling ACPI based power management support. This might still require some further changes but presented here just for some initial review & feedback. This series applies on coresight/next coresight/for-next/queue and has been built tested. This series has also been boot tested on a DT based coresight device latform. Although it still requires testing on ACPI platforms. Cc: Suzuki Poulose Cc: James Clark Cc: Mike Leach Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Anshuman Khandual (7): coresight: replicator: Move ACPI support from AMBA driver to platform driver coresight: funnel: Move ACPI support from AMBA driver to platform driver coresight: catu: Move ACPI support from AMBA driver to platform driver coresight: tpiu: Move ACPI support from AMBA driver to platform driver coresight: tmc: Move ACPI support from AMBA driver to platform driver coresight: stm: Move ACPI support from AMBA driver to platform driver coresight: debug: Move ACPI support from AMBA driver to platform driver drivers/acpi/arm64/amba.c | 8 -- drivers/hwtracing/coresight/coresight-catu.c | 136 ++++++++++++++++-- drivers/hwtracing/coresight/coresight-catu.h | 1 + .../hwtracing/coresight/coresight-cpu-debug.c | 130 +++++++++++++++-- .../hwtracing/coresight/coresight-funnel.c | 49 ++++--- .../coresight/coresight-replicator.c | 44 +++--- drivers/hwtracing/coresight/coresight-stm.c | 80 +++++++++-- .../hwtracing/coresight/coresight-tmc-core.c | 127 ++++++++++++++-- drivers/hwtracing/coresight/coresight-tmc.h | 1 + drivers/hwtracing/coresight/coresight-tpiu.c | 76 +++++++++- 10 files changed, 549 insertions(+), 103 deletions(-)