From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 19F2CA04A2; Wed, 6 Nov 2019 08:37:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83C4F1BFE1; Wed, 6 Nov 2019 08:37:48 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 5E0C31BFDA for ; Wed, 6 Nov 2019 08:37:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573025865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nvWncPBUU8UsQJIwCRQtVr43rK0Xz0BxBZnfUmBCm9E=; b=P/GNQuP93X/ASntEa7jyHPC1R8cev1+Jk61Wdo7H64ShgWeWYaCI2WW+dwcmaNHKmAn00n 5NXw+Xn0F/VAnVneupub7/nC4jHyQPtBFqqVHmVd/OSt03wGDTR1KnZqT+DSZQrMNQRbVw G98K0gqEPiz2rkhyTQ6fxkzfanKV1IQ= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-40-oO0oMFEuNfC3487kurkBgw-1; Wed, 06 Nov 2019 02:37:42 -0500 Received: by mail-vk1-f198.google.com with SMTP id v71so10396878vkd.16 for ; Tue, 05 Nov 2019 23:37:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wOF49hfTaoE/K3QL1T6Qc4SF3PvuqOiKr7WrCGceMn0=; b=Kc2smM2tKXcMX8ggQmv1cpoo15EdcwW6SPFMw0lNBUExrAuygBkkWuqW1eTyuqQ9ZK mO2kZb0Es7r8DAdXiv580/+L0BGH+25PcGmDM/Bpu47J+Noal4tXXiCpL+5sTMbcmTuv zsDmxmx+amQzp+Og1kO5IqEn/pOLlhDL2OA+7jbGL1UPfWo8fAugJlC9dneLkIeMDzqg bI/xkKm+kplm6RB1JWZxvrOx+DXeVLPHSLCoIGB4KoN3Ri0BPMo851NPtVPQqRi31XXW YZRR0sDevo9DqOJyyTmVL92Fs6iUHZ67G2Ka0f79qbhYwFXDXQUoBphtHpT1SV92eITq 950g== X-Gm-Message-State: APjAAAVkMsCrHUHbdm16hZilW2AZRFtrgp2kJ33e0iQvPkDBGaLl8g5G cEAQ+cct8Icn7no3rUMe0vMFT6ScuAywjFg2J7j209LmnV1QnZ10NkOESB2HnQ61tKSk2MjuwIv BR/K4KRUzcH8X6Rdjf2Q= X-Received: by 2002:ab0:189a:: with SMTP id t26mr595099uag.87.1573025862151; Tue, 05 Nov 2019 23:37:42 -0800 (PST) X-Google-Smtp-Source: APXvYqy32bT3uA7KYPbDJPmDZkBBoXQ3cLfpjWmmLvY1gai2tHwJOVNvAxMiMQCR74JPY4DP0yIyJlSBBO4USppHTnI= X-Received: by 2002:ab0:189a:: with SMTP id t26mr595077uag.87.1573025861811; Tue, 05 Nov 2019 23:37:41 -0800 (PST) MIME-Version: 1.0 References: <78A93308629D474AA53B84C5879E84D24B102602@DGGEMM533-MBX.china.huawei.com> <78A93308629D474AA53B84C5879E84D24B103B0C@DGGEMM533-MBX.china.huawei.com> In-Reply-To: <78A93308629D474AA53B84C5879E84D24B103B0C@DGGEMM533-MBX.china.huawei.com> From: David Marchand Date: Wed, 6 Nov 2019 08:37:30 +0100 Message-ID: To: "Wangyu (Eric)" , "Burakov, Anatoly" Cc: dengxiaofeng , "dev@dpdk.org" , "ferruh.yigit@intel.com" , Linuxarm , "humin (Q)" , "Liyuan (Larry)" X-MC-Unique: oO0oMFEuNfC3487kurkBgw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v2] bus/pci: resolve multiple NICs address conflicts X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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 Wed, Nov 6, 2019 at 7:16 AM Wangyu (Eric) wrot= e: > > > In 64K pagesize system, DPDK will read the size NIC need in uio/uio1/maps= /map1/size, when the size small than pagesize(e.g.,82599 is 16K), dev->mem= _resource[i].len will be 16K, but the mmap function applies for at least 1 = page size, which is 64K. > Then second NIC mmap, start address is first NIC address + 16K, which alr= eady used by first NIC. Do you see this issue with vfio? > So if change the size to first NIC address + 64K, problem solved. You are hacking a description of the device resources to workaround a probl= em. This patch is a no go for me. Maybe there is something to do with the hint passed to mmap in uio case. Adding Anatoly to the loop. --=20 David Marchand