From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE5F823A6 for ; Tue, 10 Sep 2024 10:52:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725965562; cv=none; b=fa4PUO3iJDhxHdErXQFPazpJGKScDIbokQulE0wg28Xq3IW8h78cHu9KrlffGzBaaNmBhZJeGWRFp5qjfz26gDBIZ8fDhEsD2RwkiekQF67Pcn+Onhj1AMj2e7UCcwVRLhteAW2YT35Bn7y9HxhpnLsOQHLFsJMub8qZ5oSRPKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725965562; c=relaxed/simple; bh=9fDYlOBo4qUXXriC0FMPmGXQQMsWaT5qn/s1hFOxxE4=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=JTCqMzV9I2NodGQP8xQ/XAVaUiKRJ4ygGHX8aILNnHVKBxk5lgxVDlgjkaA9THPEBZtjGbNzMPqJPAIME8aZAN/Ub2JbG+V52KCZgqWw7WpaN6V20G4wA+C9glEOKsS+ugkaX6gJrrFvofq3EbD4FjjzX+EPxajC7qxHQbswoMM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=GdbIfRJP; arc=none smtp.client-ip=185.132.182.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="GdbIfRJP" Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48A7dsqE017268; Tue, 10 Sep 2024 12:51:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= GTXIqttQsTFPl8RhA+OuEhkVjdhqa/BUezdHeMsd0Wg=; b=GdbIfRJPuU8F36gC WGXi8Xtn39pr/LMPeX7E6Ge5LKWfgz6967HXE86UFD5HPiKUase7aUfuViEyK63V URMFwQ5iLjSxL65ebj+ZUeVHTjeLxJe3Cn1oRJ1GD9LDeY4NS0Q3inWSL/jn3OZA MduPLVb20pTW6bn062RasuZG9WDJT19dN6/WZ5OWihAUxTxqzz4tO4sZKaLXTuk+ sbNmQBHB1Emzcsc5Qa51KSUZ0VMZooa0WHwQgS3z+1p87pKPCs5NOHjB4vr/k2cA vNJTMQT1rQ4uhA+YcOHZKiMe5/7zkmA29idhQK/m/TjcoXgE6Saw3emsTbT6uZ4K 87DIwA== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 41gy7s9g89-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Sep 2024 12:51:55 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 0E8E440047; Tue, 10 Sep 2024 12:50:32 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 194A7260266; Tue, 10 Sep 2024 12:48:50 +0200 (CEST) Received: from [10.129.178.17] (10.129.178.17) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Tue, 10 Sep 2024 12:48:49 +0200 Message-ID: <0e9018d0-c49f-4dac-aa0f-b05504f9c6f6@foss.st.com> Date: Tue, 10 Sep 2024 12:48:49 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: dw_mipi_dsi-stm.c:(.text+0x8db9a3): undefined reference to `clk_hw_unregister' To: Borislav Petkov CC: , Yannick Fertre , Philippe Cornu , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue , , , References: <20240905081902.GAZtlpdlQp5XOm5XtO@fat_crate.local> <544a633e-de53-493d-9c29-de8ff52630da@foss.st.com> <20240909084506.GBZt61kqqGVUTqjKc4@fat_crate.local> Content-Language: en-US From: Raphael Gallais-Pou In-Reply-To: <20240909084506.GBZt61kqqGVUTqjKc4@fat_crate.local> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 On 9/9/24 10:45, Borislav Petkov wrote: > On Mon, Sep 09, 2024 at 08:57:57AM +0200, Raphael Gallais-Pou wrote: >> Arnd Bergmann sent a patch regarding this issue on x86 that I merged several >> weeks ago. >> >> https://lore.kernel.org/lkml/20240719075454.3595358-1-arnd@kernel.org/ >> https://lore.kernel.org/all/c3d0757a-07c0-4f83-9f06-c3ad205aa1e9@foss.st.com/ > Thanks. > >> Now, I'm not familiar with PowerPC architecture and toolchains, but I think >> this patch should fix your problem. Do you have the above fixup in your >> tree ? If not please try it. > Not PowerPC - it is an x86 build. I do random config builds as part of build > testing and when a driver depends on COMPILE_TEST, it does gets built in some > .configs. So some may fail, as in this case. Unless I am mistaken, the link you provided refers to a PowerPC linker error: [...] compiler: powerpc-linux-gcc (GCC) 14.1.0 [...] powerpc-linux-ld: drivers/gpu/drm/stm/dw_mipi_dsi-stm.o: in function `dw_mipi_dsi_stm_remove': dw_mipi_dsi-stm.c:(.text+0x664): undefined reference to `of_clk_del_provider' >> powerpc-linux-ld: dw_mipi_dsi-stm.c:(.text+0x66c): undefined reference to `clk_hw_unregister' powerpc-linux-ld: drivers/gpu/drm/stm/dw_mipi_dsi-stm.o: in function `dw_mipi_dsi_stm_probe': dw_mipi_dsi-stm.c:(.text+0x98c): undefined reference to `clk_hw_register' > > So I think you should send that patch to Linus now so that such randconfig > builds do not fail anymore. What do you mean by 'sending it to Linus' ? If you meant to do a pull request, then no. This patch is already in the drm-misc tree, which means it will keep its usual pace of merging with the rest of the drm-misc tree. For more information about drm-misc tree: https://drm.pages.freedesktop.org/maintainer-tools/repositories/drm-misc.html#merge-timeline > > Unfortunately, I cannot test it right now because I've removed the triggering > randconfigs but when I hit it again, I'll make sure to apply yours. Thank you for this. Do not hesitate to reach if you encounter any problems with this patch. Regards, Raphaƫl > > Thx. >