From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id E81C3101B for ; Thu, 5 Oct 2017 10:57:40 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Oct 2017 01:57:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,480,1500966000"; d="scan'208";a="156999768" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by orsmga005.jf.intel.com with ESMTP; 05 Oct 2017 01:57:39 -0700 Received: from irsmsx107.ger.corp.intel.com ([169.254.10.65]) by IRSMSX109.ger.corp.intel.com ([169.254.13.28]) with mapi id 14.03.0319.002; Thu, 5 Oct 2017 09:57:38 +0100 From: "O Mahony, Billy" To: "'users@dpdk.org'" Thread-Topic: wrong vermagic in igb_uio.ko Thread-Index: AdM8YalGxQzvN4CnSnuG+hBkzdvykgBVdjDA Date: Thu, 5 Oct 2017 08:57:37 +0000 Message-ID: <03135AEA779D444E90975C2703F148DC58C23F13@IRSMSX107.ger.corp.intel.com> References: <03135AEA779D444E90975C2703F148DC58C23219@IRSMSX107.ger.corp.intel.com> In-Reply-To: <03135AEA779D444E90975C2703F148DC58C23219@IRSMSX107.ger.corp.intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGFjYjg2YjYtYTg4Yy00MTE4LThjMzgtNjVkOWYxZGZmNzFkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6Ikx6Q2RGQ0MwcXp5U0ZQazA3YzBCTTZvYjFFVmduYm5pUWlkU0tmQm9VZWc9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] wrong vermagic in igb_uio.ko X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2017 08:57:41 -0000 Hat-tip to Ferruh for the fix on this. > From: O Mahony, Billy > Sent: Wednesday, October 4, 2017 6:19 PM > To: Yigit, Ferruh ;=20 > Subject: RE: wrong vermagic in igb_uio.ko >=20 > Excellent. Thanks, Ferruh. >=20 > On my system /lib/modules/$(uname -r)/build and source were both pointing= to > the src/headers for the other kernel src. Manually changing those fixed t= he > issue. >=20 > I wonder what sets up those links in the first place? >=20 > > -----Original Message----- > > From: Yigit, Ferruh > > Sent: Wednesday, October 4, 2017 5:51 PM > > To: O Mahony, Billy ; > > Subject: RE: wrong vermagic in igb_uio.ko > > > > By default kernel modules uses " /lib/modules/$(shell uname -r)/build" > > as RTE_KERNELDIR. > > > > But you can provide this RTE_KERNELDIR variable externally to the > > kernel source you want to compile modules against. > -----Original Message----- > From: O Mahony, Billy > Sent: Tuesday, October 3, 2017 5:18 PM > To: users@dpdk.org > Subject: wrong vermagic in igb_uio.ko >=20 > Hi, >=20 > I have two kernels installed on my system. One with some local patches ap= plied. >=20 > 4.9.30-rt20 > And > 4.9.30-rt20-timers-patch >=20 > But regardless of which kernel I boot with when I build DPDK igb_uio alwa= ys has > vermagic from just one kernel. 4.9.30-rt20. Even though the build puts it= in a > correctly named path. >=20 > # modinfo ./install/lib/modules/4.9.30-rt20-timers- > patch/extra/dpdk/igb_uio.ko | grep -i magic > vermagic: 4.9.30-rt20 SMP preempt mod_unload > # uname -r > 4.9.30-rt20-timers-patch >=20 > I can't see any kernel/vermagic configuration in the various config files= . I'm > pretty sure I'd figured out before that the dpdk build was pulling this i= nfo from > /usr/src/linux/.config CONFIG_LOCALVERSION setting but it seems to be > ignoring anything I put in that now. >=20 > Where /does/ the dpdk build get the kernel version info from? >=20 > Cheers, > Billy >=20 >=20 >=20 >=20 >=20 >=20 >=20