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 99159A0093 for ; Tue, 19 May 2020 15:12:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8E22A1D702; Tue, 19 May 2020 15:12:26 +0200 (CEST) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by dpdk.org (Postfix) with ESMTP id 3B9771D736 for ; Tue, 19 May 2020 15:12:24 +0200 (CEST) Received: by mail-wr1-f66.google.com with SMTP id k13so13769852wrx.3 for ; Tue, 19 May 2020 06:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+swVjo+mW4OfbhN19UvjWy6jWn+H7wsiU2KjPvjN6Qo=; b=VhUiBxYeWTVBPdtCKkymB5PDmgsUuQWL1KNbntsJgWyE3LQBa35zDJ11YT0BnGeCSJ 13CG+1OTAepoGv7BniolNMM5fsKCLgFG3FaDZPyjLUWzsXrc5DDUKJZezRytyuztNa9X w/N+qVGbLcWiNiaEssIpnzjnIwu1S5xZ8oP722PspUaHwYMFnO1zUA2oaw6huu8G9HI5 AggvKEZgkB3QX9yjYcfOiZpeCzJQ7NsSlu8v/1a4RtjHrDtwpATTL8OkSKHxlkMXg/Aa VmYpIeVckT6tu5tDw9HfTFUIaINLrvYwZRMhsAn/ZtF2dNuorAvGMzfDzYNLwyshtTwh x8Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+swVjo+mW4OfbhN19UvjWy6jWn+H7wsiU2KjPvjN6Qo=; b=PF9GjnJRtiIte+2s+lEpSJXLOpdg4pRm2hPAxPoPrbaCB1iKPemsUKAyRrOUgSv3Db TUb/aqwuMboWCNfY4nwI89jwZmb0L4EX4WW8mKUpSc4yD8GqQWu7mqiHU+Ioq1oL5Uq+ LByG1Sg3HLQvkkg5irwXlHmZZzPJih3ELaovRF0bEYkagAdy3hl9WwRKR6+dpCFJLai9 YihIdbo4pxnRu6c8J6wUlTJbdpxCyX7pFoTCo+XUZaHGWyk4NA4Lfe0Zjfl6E9HMzPMV qHGtp9szDR7x8RGEuV9M4OWtYz/uhoj8Y8fr+BnyexHiXWwD/RikGlYeYQSOzALeYAW8 CYBg== X-Gm-Message-State: AOAM533eoQZ7vo3uLC+ncC1ipvudo44W4XtwGwzImG2NFtJyKjr5SBqt /Gjl+zXyXjj6V1Ry6Av5VYA= X-Google-Smtp-Source: ABdhPJyik6YwO93eiAYfPYjatyXJKtkf/AdCHbDa3MA6F4IXsZV/+krVXn32TfjDwVwvG0DtfeDaCw== X-Received: by 2002:adf:fb08:: with SMTP id c8mr26094622wrr.421.1589893943948; Tue, 19 May 2020 06:12:23 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id z124sm3832705wmg.20.2020.05.19.06.12.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 06:12:23 -0700 (PDT) From: luca.boccassi@gmail.com To: Vijaya Mohan Guvva Cc: Ferruh Yigit , dpdk stable Date: Tue, 19 May 2020 14:04:20 +0100 Message-Id: <20200519130549.112823-125-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200519130549.112823-1-luca.boccassi@gmail.com> References: <20200519125804.104349-1-luca.boccassi@gmail.com> <20200519130549.112823-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'bus/pci: fix UIO resource access from secondary process' has been queued to stable release 19.11.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/21/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From e09bf2672d3962c16f2d87b6974c521d06e9f805 Mon Sep 17 00:00:00 2001 From: Vijaya Mohan Guvva Date: Fri, 24 Apr 2020 13:08:28 -0400 Subject: [PATCH] bus/pci: fix UIO resource access from secondary process [ upstream commit e6cf7bee1c77a0f321cea3494a106bfa5de6f53c ] For PCI devices presented through igb_uio, pcidev->mem_resource[] is not populated when the device is initialized for secondary process. Initialize pcidev->mem_resource[] with pci-bar mapped addresses. Fixes: eee16c964cd6 ("pci: support multiple PCI regions per device") Signed-off-by: Vijaya Mohan Guvva Reviewed-by: Ferruh Yigit --- drivers/bus/pci/pci_common_uio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/pci/pci_common_uio.c b/drivers/bus/pci/pci_common_uio.c index 7ea73dbc5b..f4dca9da91 100644 --- a/drivers/bus/pci/pci_common_uio.c +++ b/drivers/bus/pci/pci_common_uio.c @@ -70,6 +70,7 @@ pci_uio_map_secondary(struct rte_pci_device *dev) } return -1; } + dev->mem_resource[i].addr = mapaddr; } return 0; } -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-05-19 14:04:49.581175365 +0100 +++ 0125-bus-pci-fix-UIO-resource-access-from-secondary-proce.patch 2020-05-19 14:04:44.432652287 +0100 @@ -1,15 +1,16 @@ -From e6cf7bee1c77a0f321cea3494a106bfa5de6f53c Mon Sep 17 00:00:00 2001 +From e09bf2672d3962c16f2d87b6974c521d06e9f805 Mon Sep 17 00:00:00 2001 From: Vijaya Mohan Guvva Date: Fri, 24 Apr 2020 13:08:28 -0400 Subject: [PATCH] bus/pci: fix UIO resource access from secondary process +[ upstream commit e6cf7bee1c77a0f321cea3494a106bfa5de6f53c ] + For PCI devices presented through igb_uio, pcidev->mem_resource[] is not populated when the device is initialized for secondary process. Initialize pcidev->mem_resource[] with pci-bar mapped addresses. Fixes: eee16c964cd6 ("pci: support multiple PCI regions per device") -Cc: stable@dpdk.org Signed-off-by: Vijaya Mohan Guvva Reviewed-by: Ferruh Yigit