Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp19136img; Tue, 19 Mar 2019 13:28:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwi2zGGqSIe79an1CHPb7mWEfvcyxsiil2Em4gTdPptxsvH4xIL9JlhycT8zMjb6uBwJKhN X-Received: by 2002:a63:5349:: with SMTP id t9mr3617694pgl.262.1553027291130; Tue, 19 Mar 2019 13:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553027291; cv=none; d=google.com; s=arc-20160816; b=BKmH3YER7HJftmBqWggMhRBlv6VZuBnp0UWPuJlpxo+vLI977e2gul+uvq75sQEDf4 ORfBE0jKy/S+K+BQSuziVb9faqY9egAVnoIqBtzP/FFpk1D3DllW+ZWMiM5TsRXBiKXP xGk4CzySPC6oQIhpctX/+bv5IHZVqYTUcr3a7SkHST4iPRJ6hp4w9bMU5AvVyjUNoYve Vi7Jf0fsWKFk+G4J6nu/JBrv/zbNLwxOVSEbVyPRCXH6UnwqJ4BdV7Oo75GyaInFqSx6 bShfPTJ0hlakI/Igl3oPsU/sY1wvf5mjCtItoQFslSFi9c4ocSCyMcg63hVbg6jhKtTJ WkBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=w5GjPFLw/Q+GMocna6OT80OAoZ9V12nLsw7ujYS5uq0=; b=xr75cNHIYXL1/ewMKJqciAAWBBA8nnaLfxIkApAl8O1EwyqOpoH2xhxeYJxULIo+TJ oLHoniiDoAkbfLwBaZwd+PLaa7aEgkS+glY1antgydXSM2lUDKxPmQKflSykfN5lnau3 9ZpGAr24l+pEx/mosU9OjT0WRx8nNvqCRKDyzDl8opWjx3EHly58S5hnq8P+KNyIqkLA 80lkGp3298AA6xKq0w6xab+cGKeiqGpz4kybrH0Ta29L2mqtfal1bI0YygbbkL2r/+FN 7bA39XnQ+lgupF/wqDMcTgVBNDo69nOn2zzDgw1am/tNbIWPBm8iNrNMgHdoVSMm55HG z3HA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si21043pld.6.2019.03.19.13.27.47; Tue, 19 Mar 2019 13:28:11 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727568AbfCSU06 (ORCPT + 99 others); Tue, 19 Mar 2019 16:26:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45990 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbfCSU05 (ORCPT ); Tue, 19 Mar 2019 16:26:57 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 542D1859FE; Tue, 19 Mar 2019 20:26:57 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.156]) by smtp.corp.redhat.com (Postfix) with ESMTP id 054AC60C7F; Tue, 19 Mar 2019 20:26:54 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 8CC3B220713; Tue, 19 Mar 2019 16:26:54 -0400 (EDT) Date: Tue, 19 Mar 2019 16:26:54 -0400 From: Vivek Goyal To: Liu Bo Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Stefan Hajnoczi , "Dr. David Alan Gilbert" , Miklos Szeredi Subject: Re: [PATCH] virtio-fs: fix multiple tag support Message-ID: <20190319202654.GB2299@redhat.com> References: <20181210171318.16998-19-vgoyal@redhat.com> <20190317003521.69366-1-bo.liu@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190317003521.69366-1-bo.liu@linux.alibaba.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 19 Mar 2019 20:26:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 17, 2019 at 08:35:21AM +0800, Liu Bo wrote: > 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 Hi Liu Bo, Thanks for the fix. This seems right. I will fix it in my internal branch. These patches are not upstream yet. Will fold this into existing patch for the next posting. Thanks Vivek > --- > 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 >