Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp820744imc; Sat, 16 Mar 2019 17:36:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/5JE/z+j0WFQtNYLHlZVoO+WziidekXF/RxspfnsJzTCUL0LxRSiQenBzujnqqCYdLEi+ X-Received: by 2002:a62:1342:: with SMTP id b63mr11702018pfj.7.1552782997739; Sat, 16 Mar 2019 17:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552782997; cv=none; d=google.com; s=arc-20160816; b=StdzfwAifDcgOlmzg4qU9ZEAbwmglFzyp0g34q5Etaa+fuTfjTY31vSj0u7ZFzPjcP mdIbvr7Ugd4ZR3hgF/BInOpNeCOHYuNsM9W2sI5jpPs3V3k8j32qM1pVeotV2LVudeay 8S1Ds+gJKMOdDIStsAO7ZuXPVITgS4e6iZBuHolXq6iI9bb0zDGYse/Pt0oXZQM/iiwn m+IVF2KzdWjBrNSrnXDqzP9SKgYEPWqZns8bdToM64hNpb0lMPrZK9PMmR8nLD7z6sWn EspbEYBDjB71ckj/IjvF/KNrWF4UgwmoBt709ec4WKHHnlAseLP+wmjZwF+AViWlwrek XPYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JYAQEOvATGLvRFdQ0tQmNWQ+X4xa3zSrDYx28oNqpjw=; b=anUNavapYE2FWGk87rsirIErJaQwhp/xgZRBv9TV3TvvAXIfIF+3k3RO6rKJlpiQpY KHnUhTBJfL2dPrndGwMV4FKmXs7xa65bgcgaPxgUT40N+Sxtd/ebIiQhEbhJBXlaJu6K V9ByO9uJDMURyecaM4W9WaITmdOAinm2Jf+MUv6oq1nGr0aHBxdtyDKSKot4ruHxZeQY woch9QNJzmppegUnVGuUKbTmvigRVZAfZAnC+DX7H5DZU3H6ZyhQpswYX3Y9aAI3Bq5w pC8VyZDM3H5EsxK0Z7MogwFd02cqrBa1xrzvdiQafg8Es8IxfGBZqVaNaOhhP8InTx1r uoaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p10si5335464plk.413.2019.03.16.17.36.22; Sat, 16 Mar 2019 17:36:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727194AbfCQAfd (ORCPT + 99 others); Sat, 16 Mar 2019 20:35:33 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:49051 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbfCQAfd (ORCPT ); Sat, 16 Mar 2019 20:35:33 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04392;MF=bo.liu@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0TMuH0Ub_1552782930; Received: from localhost(mailfrom:bo.liu@linux.alibaba.com fp:SMTPD_---0TMuH0Ub_1552782930) by smtp.aliyun-inc.com(127.0.0.1); Sun, 17 Mar 2019 08:35:31 +0800 From: Liu Bo To: Vivek Goyal Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH] virtio-fs: fix multiple tag support Date: Sun, 17 Mar 2019 08:35:21 +0800 Message-Id: <20190317003521.69366-1-bo.liu@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.2.gb21ebb6 In-Reply-To: <20181210171318.16998-19-vgoyal@redhat.com> References: <20181210171318.16998-19-vgoyal@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While doing memremap from pci_dev's system bus address to kernel virtual address, we assign a wrong value to the %end of pgmap.res, which ends up with a wrong resource size in the process of memremap, and that further prevent the second virtiofs pci device from being probed successfully. Signed-off-by: Liu Bo --- fs/fuse/virtio_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c index 88b00055589b..7abf2187d85f 100644 --- a/fs/fuse/virtio_fs.c +++ b/fs/fuse/virtio_fs.c @@ -713,7 +713,7 @@ static int virtio_fs_setup_dax(struct virtio_device *vdev, struct virtio_fs *fs) pgmap->res = (struct resource){ .name = "virtio-fs dax window", .start = phys_addr, - .end = phys_addr + cache_len, + .end = phys_addr + cache_len - 1, }; fs->window_kaddr = devm_memremap_pages(&pci_dev->dev, pgmap); -- 2.20.1.2.gb21ebb6