Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9B51C433FE for ; Thu, 17 Nov 2022 11:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BZav+Xo/r7Zf3vLBkztMLwaFAx8HRdIUFWJZUNfvqSM=; b=Q5nOMO1i0kHVCK f06kfZDPvEyUFgjMxHV5uUTmdZna5HjZZMF+usjEk5TLmygvFkJrRRUe3d1GohQ/NIkoZeNTKxKcE RK22kFB/3vz/pqaZbPdhZFTz0/Jarm1Ek8MB6HGvbCAGT56FNuEXXO4E6l4xLqnCDcX599fq4ZF/9 BdV98Np1Oeqg5NtpcYH+uHlLQw2fXGTiTz0r5viMnLD7mTD4rKA5cE0HgFawrxsrRDt7rx0wTuOtR yeD3AOu5swF6Ame4s3Ge04Iza1FEVFQnurPTqTpAoqRhfPuF+28n5WjZixYNfHpdQp33iCAK5zAJk TFPj7VrMBfgkpGPjsmcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovdVr-00DXFR-92; Thu, 17 Nov 2022 11:56:59 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovdVm-00DXCL-PX for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2022 11:56:56 +0000 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 A971713D5; Thu, 17 Nov 2022 03:56:56 -0800 (PST) Received: from [10.57.40.76] (unknown [10.57.40.76]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 358B53F663; Thu, 17 Nov 2022 03:56:49 -0800 (PST) Message-ID: <8951c807-cbd9-82ea-7c60-70d7aba69510@arm.com> Date: Thu, 17 Nov 2022 11:56:47 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: arm64/for-kernelci build: 2 builds: 1 failed, 1 passed (v6.1-rc5-63-g9500fc6e9e60) To: Besar Wicaksono , Will Deacon , "kernelci.org bot" Cc: "catalin.marinas@arm.com" , "linux-arm-kernel@lists.infradead.org" , "kernel-build-reports@lists.linaro.org" , "kernelci-results@groups.io" References: <63744192.a70a0220.b0ecf.2266@mx.google.com> <20221116122019.GA1848@willie-the-truck> <3da71d06-e3ed-e0d1-f57e-117fd6550b85@arm.com> From: Suzuki K Poulose In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221117_035654_951650_6D79F72A X-CRM114-Status: GOOD ( 17.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 16/11/2022 15:17, Besar Wicaksono wrote: > Hi Suzuki, > >> -----Original Message----- >> From: Suzuki K Poulose >> Sent: Wednesday, November 16, 2022 7:26 AM >> To: Will Deacon ; kernelci.org bot ; >> Besar Wicaksono >> Cc: catalin.marinas@arm.com; linux-arm-kernel@lists.infradead.org; kernel- >> build-reports@lists.linaro.org; kernelci-results@groups.io >> Subject: Re: arm64/for-kernelci build: 2 builds: 1 failed, 1 passed (v6.1-rc5-63- >> g9500fc6e9e60) >> >> External email: Use caution opening links or attachments >> >> >> On 16/11/2022 12:20, Will Deacon wrote: >>> Besar, Suzuki, >>> >>> On Tue, Nov 15, 2022 at 05:49:06PM -0800, kernelci.org bot wrote: >>>> arm64/for-kernelci build: 2 builds: 1 failed, 1 passed (v6.1-rc5-63- >> g9500fc6e9e60) >>>> >>>> Full Build Summary: https://kernelci.org/build/arm64/branch/for- >> kernelci/kernel/v6.1-rc5-63-g9500fc6e9e60/ >>>> >>>> Tree: arm64 >>>> Branch: for-kernelci >>>> Git Describe: v6.1-rc5-63-g9500fc6e9e60 >>>> Git Commit: 9500fc6e9e6077616c0dea0f7eb33138be94ed0c >>>> Git URL: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git >>>> Built: 1 unique architecture >>>> >>>> Build Failure Detected: >>>> >>>> arm64: >>>> allmodconfig: (gcc-10) FAIL >>> >>> This is caused by the new arm_cspmu modules: >>> >>> | depmod: ERROR: Cycle detected: arm_cspmu -> nvidia_cspmu -> >> arm_cspmu >>> | depmod: ERROR: Found 2 modules in dependency cycles! >>> >>> Please can you send patches to fix this and the other build issue reported >>> by Stephen Rothwell? >> >> Sigh ! Apologies, I didn't spot this. A proper fix is too invasive, with >> addition of a provision for individual backend drivers to register an >> "impl_match" with generic arm_cspmu driver. >> >> Until we get this, we could fold the nvidia_cspmu driver into the >> arm_csmpu module. Something like : >> >> >> diff --git a/drivers/perf/arm_cspmu/Makefile >> b/drivers/perf/arm_cspmu/Makefile >> index 641db85c018b..169bc64334d4 100644 >> --- a/drivers/perf/arm_cspmu/Makefile >> +++ b/drivers/perf/arm_cspmu/Makefile >> @@ -2,6 +2,5 @@ >> # >> # SPDX-License-Identifier: GPL-2.0 >> >> -obj-$(CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += \ >> - arm_cspmu.o \ >> - nvidia_cspmu.o >> +obj-$(CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += >> arm_cspmu_core.o >> +arm_cspmu_core-y := arm_cspmu.o nvidia_cspmu.o >> >> >> Besar, >> >> Please could you add a separate patch (for fixing it in later versions) >> as mentioned above ? >> >> >> Thoughts ? > > Sorry I did not check this. The arm_cspmu code is intended to have the functions > to operate the PMU and the vendor code (currently just Nvidia) is an extension that have > just the attributes. So, I think there is only one module to be built here and folding both > arm_cspmu and nvidia_cspmu together is the proper fix. The proper fix would be to add a book keeping at arm_cspmu driver for {un,}registering backends (like the current nvidia drivers) at runtime (see arm_pmu for e.g.,). So that the arm_cspmu module doesn't depend on the symbols from backend drivers (in the impl_match list). That way the kernel can be configured to keep things modular, rather than folding all the possible (future) Arm Coresight PMU compliant drivers ending up as a single module. Suzuki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel