Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp815625lqj; Mon, 3 Jun 2024 01:15:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRYjA0WdZklFlqKM/Q70FlyLqsVyBGAY76fj8zYp0uxUDELf03MDubY3mu1fU0WxIhN8ye/WfwGphdeoISyFZY74WzQFrgEyWPxAJMTw== X-Google-Smtp-Source: AGHT+IGKk3pWsNjzx6OpT42DejlHK1sos29ry1pmMTOykIpP64wX7pwW7Deww1eAGDQWull6lP55 X-Received: by 2002:a05:620a:271a:b0:792:c5c7:e90d with SMTP id af79cd13be357-794f5cc687emr1030640385a.49.1717402555258; Mon, 03 Jun 2024 01:15:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717402555; cv=pass; d=google.com; s=arc-20160816; b=SblkPyy4sxrNiKatzb9WPTkIBBFCx6URfvD3a4fBAXEhK/QktIwE2vUqskflIHxr0f KDQjnqmo2rVMBDde5WJOA30gxL1WrGYUwOpx2BxAiCTFDV3NLvNNcv6Sx83LRAhHU3e5 mRfIxJQ0cQDqdxNWs363+sdO/J88x/qI/ksIuX0rppxF8rFNVLMTz4Qtpw4uDVnRJnf1 IheHaMNR3GpIdLg1CxP7CatxHQ6khv41KlWYZ4RvN2CR96gOPwPivpTGmiSQl5+YDIfh nhYFV5zvqVxy/4RPXnPHAS24OeAaRBuE5K2jCIUDYS04u0s+wb134KJgTPXu6Sw44aNF /Elg== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=cuyAjV2HDIfTM5xAajcR3acONEE4m9KGW7HlevF+gfQ=; fh=WiQz82Sz0W1z5hKPehu/PK6nK/QSo2Hkc7uuM5y3MFw=; b=GGUKRX23DBEILYkqSkhFMekYELBJqKBMtjB3DrUppfALD1kaSeWIUMGvBWb13rq6Qr 5SnGZB3AtlEOT7k2U6fs6ELbXiLIQoiji2/X2zMI0CpmeeyfKkISbl5jVSs2zB15A+g/ MDRdS7BFKgbExWimHsyCrMAPrlquQPk0TTQIu5Uq0OkMXnUr5Apn+enksQ1vJcveRb3y yHi1GAIPaHzNUNvGhhEi6k7hTJ5i4AloVhYhODGIhiU4sb3tLLmdnYkyD91ra4TEZO4R DK7BNV0v75vNfUHfVfYGjZgWqprfRoIRLmLsCYPOSxF9Csd8Qg28tfIZY1LFr8TwAtrT owAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=T3TJ2Ds5; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-198764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f2f057aasi653580885a.94.2024.06.03.01.15.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 01:15:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=T3TJ2Ds5; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-198764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F27171C21305 for ; Mon, 3 Jun 2024 08:15:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91A7457CAA; Mon, 3 Jun 2024 08:15:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="T3TJ2Ds5" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 EEC6B3209; Mon, 3 Jun 2024 08:15:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717402543; cv=none; b=QaIkv9s/XQ8gxWjFU3qAmiX7ikugrzwMQNSrfidGNgkg0wrGpWgP+Yqq0fBwlBXIJwKYHN231PTowfTRUCn5mSpd/zwt1bPwTm4kgH10HRIMLgM0L3yAuEekLw9r0+xC/aAOMMB1BAubqKMoz8HiJRynPh5P4QY04BEKBDsS6Y8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717402543; c=relaxed/simple; bh=1eCTuiou3HfcQnMc21I72HS3WKJE0285PhpncV0zcBQ=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=sO1mB/2uhw5RlAxP2T8lxSCrx0t4Y5HGleSEn9TyJ2Bwhbrd5TtC8t+u4uD7Su+ecl33ebMz2FBCrBl2jkx72QSBUWOL8w1Q8cq5IW+0hIoiH4Yyha5ca3u8MHc1n+HBcBnaQwMJ8ukNqbFm+OLxu0eP9E/7me92lREv9K9kxSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=T3TJ2Ds5; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4538F2Re078821; Mon, 3 Jun 2024 03:15:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717402502; bh=cuyAjV2HDIfTM5xAajcR3acONEE4m9KGW7HlevF+gfQ=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=T3TJ2Ds5C1J7kH43IYAD2y4MCdcLDB9BduJ3s/Be5V3x8dQyqnsZtyqyW6Lp33NMG D83t9Q/jGL6LQerJh6kqCRm7SuY60fL0eBSMF3jA+x8s56RM0zaLsMnUBqiliewAZd WXf7C+Py3PSU7ddZo/M5GDJoDV/uaRtUSi3hd19M= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4538F1MG009107 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 3 Jun 2024 03:15:02 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 3 Jun 2024 03:15:01 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 3 Jun 2024 03:15:01 -0500 Received: from [10.24.69.25] (danish-tpc.dhcp.ti.com [10.24.69.25]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4538EsDi071578; Mon, 3 Jun 2024 03:14:55 -0500 Message-ID: Date: Mon, 3 Jun 2024 13:44:54 +0530 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: "ERROR: modpost: "icssg_queue_pop" [...] undefined" on arm64 Content-Language: en-US To: Thorsten Leemhuis , Dan Carpenter , Jan Kiszka , Simon Horman , Andrew Lunn , Vladimir Oltean , Wolfram Sang , Niklas Schnelle , Arnd Bergmann , Diogo Ivo , Roger Quadros , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" CC: , , , , Vignesh Raghavendra References: <20240528113734.379422-1-danishanwar@ti.com> <20240528113734.379422-2-danishanwar@ti.com> From: MD Danish Anwar In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Hi Thorsten, On 03/06/24 12:39 pm, Thorsten Leemhuis wrote: > On 28.05.24 13:37, MD Danish Anwar wrote: >> Introduce helper functions to configure firmware FDB tables, VLAN tables >> and Port VLAN ID settings to aid adding Switch mode support. >> >> Signed-off-by: MD Danish Anwar > > Hi! Since Friday I get a compile error in my -next builds for Fedora: > > ERROR: modpost: "icssg_queue_push" > [drivers/net/ethernet/ti/icssg-prueth-sr1.ko] undefined! > ERROR: modpost: "icssg_queue_pop" > [drivers/net/ethernet/ti/icssg-prueth-sr1.ko] undefined! > Before posting the patches I had tested them with defconfig and I didn't see any ERRORs. I think in the config that you are using most probably CONFIG_TI_ICSSG_PRUETH_SR1 is enabled. The patch adds APIs in icssg_config.c which uses APIs added in icssg_qeueus.c. Now CONFIG_TI_ICSSG_PRUETH_SR1 also uses icssg_config.c but icssg_queues.c is not built for SR1 as a result this error is coming. Fix for this will be to build icssg_queues as well for SR1 driver. I will test the fix and post it to net-next soon. > Looks like this problem was found and reported mid May by the kernel > test robot already, which identified a earlier version of the patch I'm > replying to to be the cause: > https://lore.kernel.org/all/202405182038.ncf1mL7Z-lkp@intel.com/ > > That and the fact that the patch showed up in -next on Friday makes me > assume that my problem is caused by this change as well as well. A build > log can be found here: > https://download.copr.fedorainfracloud.org/results/@kernel-vanilla/next/fedora-39-aarch64/07523690-next-next-all/builder-live.log.gz > > I don't have the .config at hand, but can provide it when needed. > Yes that would be helpful. If possible just check in the .config what symbols are enabled related to ICSS. (`cat .config | grep ICSS`) > Ciao, Thorsten > >> --- >> drivers/net/ethernet/ti/icssg/icssg_config.c | 170 +++++++++++++++++++ >> drivers/net/ethernet/ti/icssg/icssg_config.h | 19 +++ >> drivers/net/ethernet/ti/icssg/icssg_prueth.h | 12 ++ >> 3 files changed, 201 insertions(+) >> >> diff --git a/drivers/net/ethernet/ti/icssg/icssg_config.c b/drivers/net/ethernet/ti/icssg/icssg_config.c >> index 15f2235bf90f..2213374d4d45 100644 >> --- a/drivers/net/ethernet/ti/icssg/icssg_config.c >> +++ b/drivers/net/ethernet/ti/icssg/icssg_config.c >> @@ -477,3 +477,173 @@ void icssg_config_set_speed(struct prueth_emac *emac) >> [...] -- Thanks and Regards, Danish