Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp279856lql; Mon, 11 Mar 2024 02:25:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXnSSFoyddGFoyPRSff4WG2OsIY1aCTEECPFrsB94+rsNfk85EQJOAEgrPmDgGTbU2BD0ehA4h9e7FYyEoiyK4KZjv7Q5c36o/cfKJ7hQ== X-Google-Smtp-Source: AGHT+IH2HKF8o76HqcLCcv8gCUNmC7cvkFo5XY6OoIx38Uu3WGspxZTnPe6O3xYR+fBw7pU3vGi/ X-Received: by 2002:a05:6358:7f90:b0:17c:2648:154b with SMTP id c16-20020a0563587f9000b0017c2648154bmr6572341rwo.32.1710149119721; Mon, 11 Mar 2024 02:25:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710149119; cv=pass; d=google.com; s=arc-20160816; b=FjXhZpQZ9ZS0RvYyVmrc/2WWl1KdN9txRnfFlxXCMDAg1hQ5mFFsOo0KBm7pFh4dKB xNq7FHq9BuZrru0SCMxLtTlByb32NSWurKn6g4Fo7q8COU/F3bG3CnTF2NXleis3OG4A FMHcqv6hDuFg9wTU+yuTevpsG+GlWbcOZ2fsW9C3M66+hUu1nBwvE5+Ewyk+MUuCieM/ OiTF3HGjKOuRSYf26lj1GqcOkxvI23jiWgL/EQxR/ZoXkDzreIsiocIgrcSabVD6/zO2 unC60xAJVQ3uWljtLg0/O0BcoS7TRcN4I1PbG8OHgNppMliaem4oKsia4ZTUvSye/vdC fAZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=6O+wpq1JtYfyeRJ4CsqRZAhs2pYBKO3oQZbarmIt/eU=; fh=cpH5N9/kLd3+IebFEK0onLf+tfhi5RDrOCgqdNsNoKk=; b=n4C/3A5kil9q5kgCmnVLEEFRI1ESDYSjIXEWdeG/62cpvHM9aCWMHab2fJn6AXrrFB MpnEQ4uUw22trPdExbwnY4c2yGGQqFkNalbJ34Acbxezm8aerX3BbuVDZJs72L9Bd2y9 eJcT6QxtZ+AREifXIH3r5/UIPX761CAfvoVIAA71hu1CDndqY9rD59M/Kyuso9n0inLM Ij8a9WbNrjWD6GbUAm4r+gE4qmbJ3ZHU4OX100VIdLKnDqYfTr1TZZmhfTrAcZBifggh Rat/Kt2I1WkuEzkIamSLoBJZ6vKrYezRS2RDd4XBk3cKzxWB2b2+KcashoWTKsNK9wsL ox6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-98612-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m135-20020a633f8d000000b005dc927ee322si4539690pga.683.2024.03.11.02.25.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 02:25:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98612-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-98612-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5F06E282324 for ; Mon, 11 Mar 2024 09:25:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40EBE1756E; Mon, 11 Mar 2024 09:25:13 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26CC51799B; Mon, 11 Mar 2024 09:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710149112; cv=none; b=PqgjJG/J/MhPBVcNLSGflARGSTwH68LqZLExd1oInlsHLB1b5eaEx6hps5IAeK0y8uZIEg8d++zzlsu9ZcxftcIVo7bXafrg5CUo6o28y+54AFfVOR2GLvms7249WGVxRwF/Efp8PfvwumfH46oWBoClGR/jJqUej33KMqdabD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710149112; c=relaxed/simple; bh=+Sktexc8gy1lbxrCkbReOBzb8a1+elJt9ZpILeF5lQw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DhxgyMy8xxZGPf+w4rXrlHhPflGFIbWFuZkm1ZdnpNLOYCxOJ39rXddPpBRi790Kx35WXPK9g8O3A5cihNWg9df0SIXa4+xaqYnZaqAQkXXzZW2ge6nyB6usCqNgLgw33H34g/PalMpIdVlb6fhJRMzIhhaa6pSoJxXY2Y//MWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 2F14EFEC; Mon, 11 Mar 2024 02:25:45 -0700 (PDT) Received: from [192.168.1.100] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 276A93F762; Mon, 11 Mar 2024 02:25:05 -0700 (PDT) Message-ID: <828d2109-7413-ffe5-da6a-56f15ed2f562@arm.com> Date: Mon, 11 Mar 2024 09:25:02 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH V5 00/11] coresight: Move remaining AMBA ACPI devices into platform driver To: Anshuman Khandual , Suzuki K Poulose Cc: Lorenzo Pieralisi , Sudeep Holla , Mike Leach , Maxime Coquelin , Alexandre Torgue , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel References: <20240222082142.3663983-1-anshuman.khandual@arm.com> <8ef57dd9-a16d-4847-89f5-a309c4ccb849@arm.com> <379bf6df-3568-43c0-9a68-4a5693bf5ccc@arm.com> Content-Language: en-US From: James Clark In-Reply-To: <379bf6df-3568-43c0-9a68-4a5693bf5ccc@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 11/03/2024 06:04, Anshuman Khandual wrote: > > > On 3/5/24 23:55, Suzuki K Poulose wrote: >> On 22/02/2024 08:21, Anshuman Khandual wrote: >>> This moves remaining AMBA ACPI devices into respective platform drivers for >>> enabling ACPI based power management support. This series applies on kernel >>> v6.8-rc5 release. This series has been built, and boot tested on a DT based >>> (RB5) and ACPI supported coresight platform (N1SDP). >> >> Please rebase your series on coresight next and fix build failures with the extra warnings turned ON (should be on by default with next). > > I did rebase the series (which required some rebase related changes for some) on > coresight next i.e with the following commit as HEAD. > > a4f3057d19ff ("coresight-tpda: Change qcom,dsb-element-size to qcom,dsb-elem-bits") > > Although did not see any warning either with = m or = y based coresight options. > Is there any other particular config which needs to be enabled for these warnings > to come up ? > It doesn't apply cleanly on a4f305 for me, maybe you sent an old version after rebasing? This change in patch 5 is a warning for example, because not all members of the struct are initialised. No special config is required: + {"ARMHC98D", 0}, /* ARM CoreSight Dynamic Replicator */" >> >> >> Suzuki >> >>> >>> https://git.gitlab.arm.com/linux-arm/linux-anshuman.git (amba_other_acpi_migration_v5) >>> >>> Cc: Lorenzo Pieralisi >>> Cc: Sudeep Holla >>> Cc: Suzuki K Poulose >>> Cc: Mike Leach >>> Cc: James Clark >>> Cc: Maxime Coquelin >>> Cc: Alexandre Torgue >>> Cc: linux-acpi@vger.kernel.org >>> Cc: linux-arm-kernel@lists.infradead.org >>> Cc: linux-kernel@vger.kernel.org >>> Cc: coresight@lists.linaro.org >>> Cc: linux-stm32@st-md-mailman.stormreply.com >>> >>> Changes in V5: >>> >>> - Used table->mask to filter out bits from pid in coresight_get_uci_data_from_amba() >>> - Dropped custom masks such as STM_AMBA_MASK and TMC_AMBA_MASK >>> - Modified tmc_etr_setup_caps() to accept struct csdev_access argument >>> - Reverted back tmc_etr_setup_caps() call site position in tmc_probe() >>> - Changed replicator and funnel devices to use the new helpers earlier in series >>> - Updated the commit messages regarding xxx_probe() refactoring and renaming >>> >>> Changes in V4: >>> >>> https://lore.kernel.org/all/20240123054608.1790189-1-anshuman.khandual@arm.com/ >>> >>> - Fixed PM imbalance in etm4_probe() error path with pm_runtime_disable() >>> - Restored back the pm_runtime_disable() on platform probe error paths >>>    in replicator, funnel, catu, tpiu, tmc and stm devices >>> - Dropped dev_caps argument from __tmc_probe() >>> - Changed xxxx_platform_remove() for platform_driver->remove_new() callback >>> >>> Changes in V3: >>> >>> https://lore.kernel.org/all/20231208053939.42901-1-anshuman.khandual@arm.com/ >>> >>> - Split coresight_init_driver/remove_driver() helpers into a separate patch >>> - Added 'drvdata->pclk' comments in replicator, funnel, tpiu, tmc, and stm devices >>> - Updated funnel, and replicator drivers to use these new helpers >>> - Check for drvdata instead of drvdata->pclk in suspend and resume paths in catu, >>>    tmc and debug devices >>> - Added patch to extract device name from AMBA pid based table lookup for stm >>> - Added patch to extract device properties from AMBA pid based table look for tmc >>> - Dropped pm_runtime_put() from common __probe() functions >>> - Handled pm_runtime_put() in AMBA driver in success path >>> - Handled pm_runtime_put() in platform driver in both success and error paths >>> >>> Changes in V2: >>> >>> https://lore.kernel.org/all/20231201062053.1268492-1-anshuman.khandual@arm.com/ >>> >>> - Dropped redundant devm_ioremap_resource() hunk from tmc_platform_probe() >>> - Defined coresight_[init|remove]_driver() for both AMBA/platform drivers >>> - Changed catu, tmc, tpiu, stm and debug coresight drivers to use the new >>>    helpers avoiding build issues arising from module_amba_driver(), and >>>    module_platform_driver() being on the same file >>> >>> Changes in V1: >>> >>> https://lore.kernel.org/all/20231027072943.3418997-1-anshuman.khandual@arm.com/ >>> >>> - Replaced all IS_ERR() instances with IS_ERR_OR_NULL() as per Suzuki >>> >>> Changes in RFC: >>> >>> https://lore.kernel.org/all/20230921042040.1334641-1-anshuman.khandual@arm.com/ >>> >>> Anshuman Khandual (11): >>>    coresight: etm4x: Fix unbalanced pm_runtime_enable() >>>    coresight: stm: Extract device name from AMBA pid based table lookup >>>    coresight: tmc: Extract device properties from AMBA pid based table lookup >>>    coresight: Add helpers registering/removing both AMBA and platform drivers >>>    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  | 142 +++++++++++++--- >>>   drivers/hwtracing/coresight/coresight-catu.h  |   1 + >>>   drivers/hwtracing/coresight/coresight-core.c  |  29 ++++ >>>   .../hwtracing/coresight/coresight-cpu-debug.c | 141 ++++++++++++++-- >>>   .../coresight/coresight-etm4x-core.c          |   3 + >>>   .../hwtracing/coresight/coresight-funnel.c    |  86 +++++----- >>>   drivers/hwtracing/coresight/coresight-priv.h  |  10 ++ >>>   .../coresight/coresight-replicator.c          |  81 +++++----- >>>   drivers/hwtracing/coresight/coresight-stm.c   | 115 +++++++++++-- >>>   .../hwtracing/coresight/coresight-tmc-core.c  | 153 +++++++++++++++--- >>>   drivers/hwtracing/coresight/coresight-tmc.h   |   2 + >>>   drivers/hwtracing/coresight/coresight-tpiu.c  | 102 ++++++++++-- >>>   include/linux/coresight.h                     |   7 + >>>   14 files changed, 721 insertions(+), 159 deletions(-) >>> >>