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 C6820A034C; Thu, 22 Dec 2022 16:35:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6BCF9410D3; Thu, 22 Dec 2022 16:35:28 +0100 (CET) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) by mails.dpdk.org (Postfix) with ESMTP id 71A2E410D0 for ; Thu, 22 Dec 2022 16:35:27 +0100 (CET) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-466c5fb1c39so19041457b3.10 for ; Thu, 22 Dec 2022 07:35:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QxFEFcFha7HFmergzsQ3ny29iqAalB5A1ei4AQLcO+k=; b=Y7mz3t4Ha0KNpuXIwS7yxWg8Efu8oByC5VD9mzNdnkZH8ZoTSkENViq/n5wJY7xPsQ TW5ezAduYxGsRkuVxA021193Q+7jp8N1N3RhTN5nTp12vGyFUrJpOYPRGGmWU6wv3Rst s9NSSnLdaPzUNxgoXQwYOpCzd0nnWaqGC08qVtIjmC+02rAdWE3fRfeHK3Dckx38/tm1 sTLtU1scAzF1f6ncur0LDtGygSB/JaeWj4eBEs2Ncc2BoH0NQ27ljOINuC3bQ9QmfXIg pCtBFIhjqyQNarLQHYyrNMTbeDAOG06xzCTE7T/iCP7VUGLWAD1OSKPRXTJkMaKxuKKD +ufQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QxFEFcFha7HFmergzsQ3ny29iqAalB5A1ei4AQLcO+k=; b=S2ajxFVBpiRTalH1WNNpdg53z1nmwgUk1H65C3tXq/252/V5+TpjCZo2rw1Q6kG2E2 hzvB2m0Ws95k1qI9Nm/L9mY1DP0BkfHxPqU0xE82RB2YuX4uC4J72JKfcgk7aH2j21wj dgl5RTmAEd1bQutMAfy08b/eQCMjmeZ4jcEBNs8pp0EGgBl8K9WNn5uvfM3zY9B7oAKF hedhPv+btCrkFuJ+B2rlkAnk5Qhw1kP28xXS5kDZveR3OQQeDcwvvzM7tU9kYvLdIBE7 6wCjFVHsHd/MkLormaNHScgNNQV3GYX26NK3kLLBJgOZpksspN7w2j9ErUxav8gOIYQu +kUg== X-Gm-Message-State: AFqh2koBA13oKO4v0RnBLAg1zvSqG1CKovDEuK4Q1F/Mik4yCA7FIKSl Qj4cpBIk2AYvWjgHXNYoj0sWmsa6e3BVJkvf7LG0iYkV19GvVw== X-Google-Smtp-Source: AMrXdXtIMjQ4j+QZBNIktyC4TsysjjfvYaj/MyimZoxyRi7Y3BWdvSL7NUT+9Pv09zgat00FCM9W9QdRexjoPmDkizg= X-Received: by 2002:a81:16c5:0:b0:396:6607:354d with SMTP id 188-20020a8116c5000000b003966607354dmr641869yww.177.1671723326629; Thu, 22 Dec 2022 07:35:26 -0800 (PST) MIME-Version: 1.0 References: <20221216171801.348224-1-luca.boccassi@gmail.com> <4a59bead-6998-3a21-597c-6eb1c6c25d69@amd.com> In-Reply-To: <4a59bead-6998-3a21-597c-6eb1c6c25d69@amd.com> From: Luca Boccassi Date: Thu, 22 Dec 2022 15:35:15 +0000 Message-ID: Subject: Re: [PATCH kmods] linux/igb_uio: fix build on Linux 5.18+ To: Ferruh Yigit Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" 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 On Sun, 18 Dec 2022 at 15:25, Ferruh Yigit wrote: > > On 12/16/2022 5:18 PM, luca.boccassi@gmail.com wrote: > > From: Luca Boccassi > > > > Reported-by: Paolo Pisati > > Signed-off-by: Luca Boccassi > > --- > > Only build-tested. > > > > linux/igb_uio/igb_uio.c | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/linux/igb_uio/igb_uio.c b/linux/igb_uio/igb_uio.c > > index 33e0e02..3d8a8a8 100644 > > --- a/linux/igb_uio/igb_uio.c > > +++ b/linux/igb_uio/igb_uio.c > > @@ -512,13 +512,21 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) > > goto fail_release_iomem; > > > > /* set 64-bit DMA mask */ > > +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 18, 0) > > err = pci_set_dma_mask(dev, DMA_BIT_MASK(64)); > > +#else > > + err = dma_set_mask(&dev->dev, DMA_BIT_MASK(64)); > > +#endif > > > Hi Luca, > > Can you please check following, I guess these patches are for same issue: > https://patches.dpdk.org/project/dpdk/patch/20221216115732.3552650-1-ferruh.yigit@amd.com/ Yeah that's better, thanks. Kind regards, Luca Boccassi