From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D66A6A0548; Sun, 10 Oct 2021 11:39:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F66240040; Sun, 10 Oct 2021 11:39:11 +0200 (CEST) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) by mails.dpdk.org (Postfix) with ESMTP id 482254003C for ; Sun, 10 Oct 2021 11:39:10 +0200 (CEST) Received: by mail-io1-f44.google.com with SMTP id x1so12190222iof.7 for ; Sun, 10 Oct 2021 02:39:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=5qchi4fDoIhlHcbM9z1R0j9vNcKRM5z0SZyfLiNgkr0=; b=B62HlAluvOaneqMhyFrZQfgeGTQmXrsdPfSrZVXdsdHFhqrLJ1M7IaeZn373YlzduX QVaGUwlwY5d9vNd3Qn7DWS86KVo6WUwxpVgggYzatHDH0Y3Y/h/W7myggHqwyQkRsur3 LNvNCPG0JWo6tLTdx1P7PeejzQQrXzFx/MUuh+G8HanYLyCwbSbFjaZQF5tXtptn2Vc0 M52GgMaATppjbUiTehohSNhDM0dqW3kDtsRrXvJENiOrB/kzO5Oh3abVDktyIKbNfinp t36gvDcXGyDc+gFnGY/SZ+5CyhMppMuaqxvCbKd4NgWKMlpMDW2U4rJEFL9HZugHpKAP AQRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=5qchi4fDoIhlHcbM9z1R0j9vNcKRM5z0SZyfLiNgkr0=; b=7gX+M6VyJ+tZ7x2lVtAIj8i5mIff8zN7bKOoGMoIWLt7mylbzg1uozfbnmDAjozQxp k6QaD+y+ejkhJdvtYY8rqMw3ooFkoNtwxb/XifVrIud5Qf2luwhCQwQS2mpY93BbnbpS 6QQEcoEvcR1loQIXIyWp+Mo+LPNMcnzBRPEoQ54of9bGzijcHfiNG7+DuHkRFyJfOOE9 7BRAiJ9OFDJuGi3+8xakf3fwoFA1lI+Ebdyh8AU4rVZtiB/pLUjNgBbHLRpbPCoYHClb bkQNVw+o6Z8DQ7tNEk6RlsjtKHRliUoFK7ODJh/jHsrYILhua36lSt4RPqHOaKELRV7a aPpA== X-Gm-Message-State: AOAM533FhB1APAF+d8cRAjH7gujfZQ7YbnyZXA3Q7cKeLS/gUEcr77pw s1+R+ijEPRCyACWAjJuwSmF9Z9OUR+CUq0CF/e4= X-Google-Smtp-Source: ABdhPJwtL0ZIuOS07goNQ0RWZgkh75oEgdFKH7vrf0rxQ1jECoyHQ/ESHYLFtsdq4gh6SmQysdMGpsRS3pSMryVH6D8= X-Received: by 2002:a5d:88d7:: with SMTP id i23mr13898199iol.38.1633858749466; Sun, 10 Oct 2021 02:39:09 -0700 (PDT) MIME-Version: 1.0 References: <34ea1ee8-1ba2-4a70-8d9a-85b30fed4a6c@intel.com> <7b432da0-d51d-f7da-2679-cfc67b20b47d@intel.com> In-Reply-To: <7b432da0-d51d-f7da-2679-cfc67b20b47d@intel.com> From: Jerin Jacob Date: Sun, 10 Oct 2021 15:08:43 +0530 Message-ID: To: Ferruh Yigit Cc: Pavan Nikhilesh Bhagavatula , Jerin Jacob Kollanukkaran , "Maciej Czekaj [C]" , "dev@dpdk.org" , Bruce Richardson Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [EXT] Re: [PATCH v5 1/3] net/thunderx: enable build only on 64-bit Linux X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Oct 8, 2021 at 9:00 PM Ferruh Yigit wrote: > > On 10/4/2021 1:54 PM, Pavan Nikhilesh Bhagavatula wrote: > >> On 10/4/2021 1:01 PM, Pavan Nikhilesh Bhagavatula wrote: > >>>> On 10/4/2021 12:34 PM, Pavan Nikhilesh Bhagavatula wrote: > >>>>>> On 10/4/2021 11:02 AM, Pavan Nikhilesh Bhagavatula wrote: > >>>>>>>> On 10/4/2021 6:56 AM, pbhagavatula@marvell.com wrote: > >>>>>>>>> From: Pavan Nikhilesh > >>>>>>>>> > >>>>>>>>> Due to Linux kernel AF(Admin function) driver dependency, > >> only > >>>>>>>> enable > >>>>>>>>> build for 64-bit Linux. > >>>>>>>>> > >>>>>>>> > >>>>>>>> Hi Pavan, > >>>>>>>> > >>>>>>>> Isn't it possible to provide a commit log in the kernel side etc= , > >> that > >>>> let > >>>>>>>> others to verify why only 64 bit is required, or if someone want > >> to > >>>>>>>> support > >>>>>>>> 32bit that may help them to investigate the source of the > >>>> restriction. > >>>>>>> > >>>>>>> Arch 32 support is not implemented on ThunderX, so 32bit will > >> not > >>>>>> run. > >>>>>>> > >>>>>> > >>>>>> I see, is following correct: > >>>>>> All thunderx, octeonx & octeontx2 only supports VF in the DPDK, > >>>> and PF > >>>>>> is > >>>>>> supported by Linux kernel driver. And Linux kernel driver doesn't > >>>>>> support arch32. > >>>>> > >>>>> AF !=3D PF, AF is something that manages all the shared resources > >>>> between PF/VF. > >>>>> > >>>> > >>>> I see, I though AF is part of PF functionality. Are there two differ= ent > >>>> kernel > >>>> modules for PF and AF? > >>>> > >>>> So can DPDK driver drive PF? In a way, PF by DPDK, VF by DPDK, AF > >> by > >>>> Linux > >>>> kernel driver. > >>> > >>> Yup that=E2=80=99s correct. > >>> > >>>> > >>>>>> > >>>>>> Is something changed in kernel driver side to drop the 32bit > >> support? > >>>>>> If it was not supported at all, what is the motivation to disable = the > >>>> DPDK > >>>>>> drivers now? > >>>>>> > >>>>> > >>>>> It was never supported to begin with, motivation is that build will > >> fail if > >>>> we try to > >>>>> compile with 32b. > >>>>> > >>>> > >>>> If there is no plan to support 32bit in the kernel side, that is > >> reasonable > >>>> to > >>>> disable 32bit build, please provide above details in the commit log. > >>>> > >>>> And after above said, how much maintenance cost to support 32bit, > >> if > >>>> the build > >>>> error is on the logging format "%lx" etc .. (as we mostly have 32bit > >> build > >>>> errors), it is better to fix them using 'PRIx64' which is more prope= r > >> way > >>>> anyway. If there is more logical issue with 32bit pointers, I agree = with > >>>> you to > >>>> disable it. > >>>> Can you please provided the build error in the commit log as record? > >>>> > >>> > >>> Apologies, I meant that all the functions that don=E2=80=99t fall und= er 64b are > >> stubbed out > >>> so the driver wouldn=E2=80=99t work. > >>> > >> > >> so is there build error or not? > >> > > > > No build error. > > > > Just trying to clarify, > > Linux kernel AF kernel driver only build for 64-bit Linux. > And mentioned DPDK drivers have a dependency to this kernel module. > > But DPDK drivers are userspace application, can't 32-bit application > run on 64-bit Linux? > > Can you please clarify what exactly is not supported? armv8 specification has two operating modes, 1) AArch32 mode, where a 32 bit application can run on armv8 2) AArch64 mode, where it is native 64bit support. In Thunderx and Octeon families, AArch32 mode is not implemented to save the power and RTL cost. So it can never use AArch32 32bit mode. There was an attempt to emulate 32bit mode in 64 bit like X32_ABI, it is called IPL32 in arm64, that never became mainstream. So 32bit applicatio= n can not run on ThunderX/Octeontx so we would like to remove building this o= ption to avoid removing the cost of maintaining it. > > > >>>>>>>> > >>>>>>>>> Signed-off-by: Pavan Nikhilesh > >>>>>>>>> Acked-by: Jerin Jacob > >>>>>>>>> --- > >>>>>>>>> v5 Changes > >>>>>>>>> - s/fuction/function. > >>>>>>>>> > >>>>>>>>> v4 Changes: > >>>>>>>>> - Update commit message regarding dependency on AF > >> driver. > >>>>>>>>> > >>>>>>>>> drivers/net/thunderx/meson.build | 4 ++-- > >>>>>>>>> 1 file changed, 2 insertions(+), 2 deletions(-) > >>>>>>>>> > >>>>>>>>> diff --git a/drivers/net/thunderx/meson.build > >>>>>>>> b/drivers/net/thunderx/meson.build > >>>>>>>>> index 4bbcea7f93..da665bd76f 100644 > >>>>>>>>> --- a/drivers/net/thunderx/meson.build > >>>>>>>>> +++ b/drivers/net/thunderx/meson.build > >>>>>>>>> @@ -1,9 +1,9 @@ > >>>>>>>>> # SPDX-License-Identifier: BSD-3-Clause > >>>>>>>>> # Copyright(c) 2017 Cavium, Inc > >>>>>>>>> > >>>>>>>>> -if is_windows > >>>>>>>>> +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') > >>>>>>>>> build =3D false > >>>>>>>>> - reason =3D 'not supported on Windows' > >>>>>>>>> + reason =3D 'only supported on 64-bit Linux' > >>>>>>>>> subdir_done() > >>>>>>>>> endif > >>>>>>>>> > >>>>>>>>> -- > >>>>>>>>> 2.17.1 > >>>>>>>>> > >>>>>>> > >>>>> > >>> > > >