From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by dpdk.org (Postfix) with ESMTP id 7FFFD1B6EB for ; Fri, 8 Feb 2019 04:44:17 +0100 (CET) Received: by mail-pl1-f194.google.com with SMTP id u18so1030850plq.7 for ; Thu, 07 Feb 2019 19:44:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uMqeantR8Ftre/8j9Xjj08VOQ73Tz922ZlVc0wpVmgk=; b=gKU9f1W2NY1MhUr4JTvnKyhx1m+VjljreMkdIMezxcbibpYrMLwm5f4HFe9CXHo15J aNFS03O0YJ9h9fgKNeN1ifZFfl1YmptIoGXh1KyxghBZNo3l/FWO990X1aghQ2wZ3gKJ KUfQyXguz6mkH8nq3aCIIGHt4bpS3JkVsYXyrjz42t3TrfNL0+OWgjUFTEcFJKALlrcV ZaNE26WXegyJe5Qu5o2+tvZ39kL3vGkNrmAnHjTG+Z3yMzzekuB+01z3JJGWVrD1HEbh K8YbimWGhU63OLx4PvWpFS670Kf2yAFCgpovDpBIMAVwucQDQiNKCPhiset+2BhPDn72 bnQw== 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=uMqeantR8Ftre/8j9Xjj08VOQ73Tz922ZlVc0wpVmgk=; b=VvSWF1kicoiVPFN2RU2K7ix/yRU9GG6IARmLf8/dSWnVE3O5JX5E9Br9valvSHzuPj 3JbUsFS6sFsFgxR/5tfRXIJqhjnL5U9rlfidpM14/rOO36J9hNgg4g2QMgl/VMmL8LpD k9ccj8xw9+xithM8VR06/IgQrTA9PQMPzDwtb/EQeOr7Zi5KK1AAtqaYI6GNkoP8+AE2 rkJWAt0VSHr2SyWrFKPPtd07NAg494smQtZDjdG18lkHFEO5cmiTPiAmT6KaTV9KzBxi WSZZN1etkAcz+d5gh1qh6sehWumGZR24hZf0ERJvVITfRCLGqK+Rc2RTqAfgnUjV3I8d UGuw== X-Gm-Message-State: AHQUAuYnYbPhYfS5NyAS8mPO/6NvcyaT04HIbM5cD0kLOit7pHJGXmgB 87HndgQu1m1PSMhpBMJd4g/zCg== X-Google-Smtp-Source: AHgI3IbUqVKV5v9hE9XNh9futEQhNd0VbRuhxnhfBS1lS+qNmqFdwsrtJEzYe+wkQKTCqjbbisy6ag== X-Received: by 2002:a17:902:9885:: with SMTP id s5mr20625188plp.52.1549597456661; Thu, 07 Feb 2019 19:44:16 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id i4sm873275pfj.82.2019.02.07.19.44.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Feb 2019 19:44:15 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: stable@dpdk.org, Stephen Hemminger Date: Thu, 7 Feb 2019 19:44:01 -0800 Message-Id: <20190208034407.7865-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190208034407.7865-1-stephen@networkplumber.org> References: <20190208034407.7865-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 1/7] bus/vmbus: fix secondary process setup 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: , X-List-Received-Date: Fri, 08 Feb 2019 03:44:18 -0000 From: Stephen Hemminger The secondary process doesn't correctly map the second and later resources because it doesn't change the offset. Fixes: 831dba47bd36 ("bus/vmbus: add Hyper-V virtual bus support") Signed-off-by: Stephen Hemminger --- drivers/bus/vmbus/vmbus_common_uio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bus/vmbus/vmbus_common_uio.c b/drivers/bus/vmbus/vmbus_common_uio.c index 5ddd36ab62d2..46e233d9fac3 100644 --- a/drivers/bus/vmbus/vmbus_common_uio.c +++ b/drivers/bus/vmbus/vmbus_common_uio.c @@ -47,9 +47,10 @@ vmbus_uio_map_secondary(struct rte_vmbus_device *dev) for (i = 0; i != uio_res->nb_maps; i++) { void *mapaddr; + off_t offset = i * PAGE_SIZE; mapaddr = vmbus_map_resource(uio_res->maps[i].addr, - fd, 0, + fd, offset, uio_res->maps[i].size, 0); if (mapaddr == uio_res->maps[i].addr) -- 2.20.1