Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3441997yba; Mon, 29 Apr 2019 02:22:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4Cb+qOSvGwBP7jc+PKHxJAMcGxcIiTdDcFkoic7/R89M2NarCCYh7qtHuoGXIGIKG8EiJ X-Received: by 2002:aa7:82c5:: with SMTP id f5mr61696659pfn.256.1556529722218; Mon, 29 Apr 2019 02:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556529722; cv=none; d=google.com; s=arc-20160816; b=LY4Enyz9XYeuVD+whdXjH96ZEoJ54QXS3jVNS/Eq/4iXSdAXOTzrQVsu/Bah8quUkf 0zalQQecbrsbD7Z/uGSL6lbTccdzJmCoGzt0tpDwrS16x95Nlvz5eimTQF4BbjU2FUTU 5xV19+exTxVN/i9Jy4XTUUMw2FF/h+Zg+VdCv5ASNk8FqYKd9yKpEs6TdMj1g6mrYUtU 2e9Qm9u43MmyQotXesF1E4/nb7H105N6UwwWjJ0/3FfIAPVqVjPrCdVWVJrV+jS2396+ q0hJ+JNlKnfqvHiqnBzGNQxRgKbD23FLOHHJ4fj/uQIK4YGWWaF2E/4af7bSIZjKWLz+ 3ezA== 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:dkim-signature; bh=2BxSadzljeGnOxR4MFknocxkDB8ZvytaU/H6hIANPTE=; b=z4fgFeEUwDydgqoXzYHsQTV/FJHsCVfh1Avs6ZBbe55Rqdx8cd7t9Ae5kZ4CquR7sj 7M4eDgI0vmLjVuJ/Gfd999cXOvXeTnTXbj56or1dRuc8DOnAndlxDeZqI21NOzYbxZ1X pQX2eFtFJaqluPqFLoNJ5z4G46L5k91RgqZU1LUJxETOx2uOGkljHXx4bWx6pi5BT2dG Ap/3YbHbG2mYXWop9y+ELtZquyzFv98bA54nIc5Mp2Io9Ctjsz6wxRuHMyH8CVyjwz5g NVupErTNwIx9hMOFwDNB6AefIGu+esqml1oswy7IMUkLYanemg6LZAUx2S4cxPxjwcRb 65/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QgyjXhfv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4si9741256pln.354.2019.04.29.02.21.46; Mon, 29 Apr 2019 02:22:02 -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; dkim=pass header.i=@kernel.org header.s=default header.b=QgyjXhfv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727454AbfD2JTo (ORCPT + 99 others); Mon, 29 Apr 2019 05:19:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:47440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727072AbfD2JTo (ORCPT ); Mon, 29 Apr 2019 05:19:44 -0400 Received: from localhost (unknown [77.138.135.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E46A42075E; Mon, 29 Apr 2019 09:19:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556529583; bh=4JA1/RGohiuk4FJzQnaqoktBCVS5kfO3jNjgEmxLKCk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QgyjXhfv3nCQ3qChe0HSJVde/1D7i1HyOReupKm4hBHsWYj+SMpIRuAAjsUS7MEIc Hvm33Q3girrsdHMjzZp019Wu9Amp/b3Jl9n4LDuMkuKFv6QoyLJW4sWcd7G3PcukxW AFttdlG9C9h19u8/tVfB1DHsiwChXInXJakJ+jyA= Date: Mon, 29 Apr 2019 12:19:38 +0300 From: Leon Romanovsky To: Michal Kubecek Cc: Jason Gunthorpe , Heiko Carstens , Doug Ledford , Linus Torvalds , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [GIT PULL] Please pull RDMA subsystem changes Message-ID: <20190429091938.GS6705@mtr-leonro.mtl.com> References: <20190428115207.GA11924@ziepe.ca> <20190429060947.GB3665@osiris> <20190429084030.GA4275@mellanox.com> <20190429090040.GB21672@unicorn.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190429090040.GB21672@unicorn.suse.cz> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 29, 2019 at 11:00:40AM +0200, Michal Kubecek wrote: > On Mon, Apr 29, 2019 at 08:40:37AM +0000, Jason Gunthorpe wrote: > > On Mon, Apr 29, 2019 at 08:09:47AM +0200, Heiko Carstens wrote: > > > On Sun, Apr 28, 2019 at 11:52:12AM +0000, Jason Gunthorpe wrote: > > > > Hi Linus, > > > > > > > > Third rc pull request > > > > > > > > Nothing particularly special here. There is a small merge conflict > > > > with Adrea's mm_still_valid patches which is resolved as below: > > > ... > > > > Jason Gunthorpe (3): > > > > RDMA/mlx5: Do not allow the user to write to the clock page > > > > RDMA/mlx5: Use rdma_user_map_io for mapping BAR pages > > > > RDMA/ucontext: Fix regression with disassociate > > > > > > This doesn't compile. The patch below would fix it, but not sure if > > > this is what is intended: > > > > > > drivers/infiniband/core/uverbs_main.c: In function 'rdma_umap_fault': > > > drivers/infiniband/core/uverbs_main.c:898:28: error: 'struct vm_fault' has no member named 'vm_start' > > > vmf->page = ZERO_PAGE(vmf->vm_start); > > > ^~ > > > diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c > > > index 7843e89235c3..65fe89b3fa2d 100644 > > > +++ b/drivers/infiniband/core/uverbs_main.c > > > @@ -895,7 +895,7 @@ static vm_fault_t rdma_umap_fault(struct vm_fault *vmf) > > > > > > /* Read only pages can just use the system zero page. */ > > > if (!(vmf->vma->vm_flags & (VM_WRITE | VM_MAYWRITE))) { > > > - vmf->page = ZERO_PAGE(vmf->vm_start); > > > + vmf->page = ZERO_PAGE(vmf->vma->vm_start); > > > get_page(vmf->page); > > > return 0; > > > } > > > > > > > Thanks Heiko, this looks right to me. > > > > I'm surprised to be seeing this at this point, these patches should > > have been seen by 0 day for several days now, and they were in > > linux-next already too.. > > Most architectures have versions of ZERO_PAGE() which ignore the > argument so that the code builds anyway. I'm not sure if 0-day also > tests s390x builds (which is where I ran into this). According to 0-build results for this patch, the answer is yes, it builds. s390 default_defconfig And it compiles uverbs_main.c (CONFIG_INFINIBAND_USER_ACCESS) kernel git:(rdma-next) grep INFIN arch/s390/configs/debug_defconfig CONFIG_INFINIBAND=m CONFIG_INFINIBAND_USER_ACCESS=m CONFIG_MLX4_INFINIBAND=m CONFIG_MLX5_INFINIBAND=m Thanks > > Michal Kubecek