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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 D957BC54E58 for ; Mon, 11 Mar 2024 14:41:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4EDED1126F1; Mon, 11 Mar 2024 14:41:49 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 89AC81127FE for ; Mon, 11 Mar 2024 14:41:47 +0000 (UTC) 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 BE1B2FEC for ; Mon, 11 Mar 2024 07:42:22 -0700 (PDT) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A1AC43F762 for ; Mon, 11 Mar 2024 07:41:45 -0700 (PDT) Date: Mon, 11 Mar 2024 14:41:42 +0000 From: Liviu Dudau To: Jani Nikula Cc: Boris Brezillon , dri-devel@lists.freedesktop.org, Steven Price Subject: Re: [PATCH] Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue" Message-ID: References: <20240311111619.249776-1-jani.nikula@intel.com> <20240311124826.44cc69ba@collabora.com> <87cys1t299.fsf@intel.com> <20240311125445.4bab1712@collabora.com> <87a5n5t0mt.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a5n5t0mt.fsf@intel.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Mon, Mar 11, 2024 at 02:26:50PM +0200, Jani Nikula wrote: > On Mon, 11 Mar 2024, Boris Brezillon wrote: > > On Mon, 11 Mar 2024 13:51:46 +0200 > > Jani Nikula wrote: > > > >> On Mon, 11 Mar 2024, Boris Brezillon wrote: > >> > On Mon, 11 Mar 2024 13:16:19 +0200 > >> > Jani Nikula wrote: > >> > > >> >> This reverts commit 674dc7f61aefea81901c21402946074927e63f1a. > >> >> > >> >> The commit causes a recursive dependency in kconfig: > >> >> > >> >> drivers/iommu/Kconfig:14:error: recursive dependency detected! > >> >> drivers/iommu/Kconfig:14: symbol IOMMU_SUPPORT is selected by DRM_PANTHOR > >> >> drivers/gpu/drm/panthor/Kconfig:3: symbol DRM_PANTHOR depends on PM > >> >> kernel/power/Kconfig:183: symbol PM is selected by PM_SLEEP > >> >> kernel/power/Kconfig:117: symbol PM_SLEEP depends on HIBERNATE_CALLBACKS > >> >> kernel/power/Kconfig:35: symbol HIBERNATE_CALLBACKS is selected by XEN_SAVE_RESTORE > >> >> arch/x86/xen/Kconfig:67: symbol XEN_SAVE_RESTORE depends on XEN > >> >> arch/x86/xen/Kconfig:6: symbol XEN depends on PARAVIRT > >> >> arch/x86/Kconfig:781: symbol PARAVIRT is selected by HYPERV > >> >> drivers/hv/Kconfig:5: symbol HYPERV depends on X86_LOCAL_APIC > >> >> arch/x86/Kconfig:1106: symbol X86_LOCAL_APIC depends on X86_UP_APIC > >> >> arch/x86/Kconfig:1081: symbol X86_UP_APIC prompt is visible depending on PCI_MSI > >> >> drivers/pci/Kconfig:39: symbol PCI_MSI is selected by AMD_IOMMU > >> >> drivers/iommu/amd/Kconfig:3: symbol AMD_IOMMU depends on IOMMU_SUPPORT > >> >> For a resolution refer to Documentation/kbuild/kconfig-language.rst > >> >> subsection "Kconfig recursive dependency limitations" > >> >> > >> >> Fixes: 674dc7f61aef ("drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue") > >> >> Cc: Boris Brezillon > >> >> Cc: Liviu Dudau > >> >> Cc: Steven Price > >> >> Signed-off-by: Jani Nikula > >> > > >> > Acked-by: Boris Brezillon > >> > >> Your suggestion select -> depends on IOMMU_SUPPORT seems to also work, > >> at least for me. Want to send a patch for that instead of me merging the > >> revert? > > > > I replied on the other thread :-). I think we're better off reverting > > the faulty commit, so we can discuss how to fix the original issue > > properly without blocking the build. > > Thanks, pushed to drm-misc-next. So with this revert we're OK with an undefined symbol if !CONFIG_PM, but we're not happy with a recursive dependency that is only triggered for COMPILE_TEST? I would've thought IOMMU_SUPPORT options is a better one. Best regards, Liviu > > BR, > Jani. > > > -- > Jani Nikula, Intel -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯