Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1990539ybm; Thu, 23 May 2019 09:37:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmYTftz6eB3D1koiqqNLoVUGjHg/kdLuOjRMkbxwsjjxUpshuutkwUW/iOexerjFqw5UM4 X-Received: by 2002:a17:902:8f98:: with SMTP id z24mr24202224plo.101.1558629435619; Thu, 23 May 2019 09:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558629435; cv=none; d=google.com; s=arc-20160816; b=Rh0SDuyZiJQm8uWGtR1zUV2o8LsELeixrDOQWhFYnsqF7B8G3rrCqNQ66nDqtZUe/g 0nOcyRPzYjK3Bg4eA/6BalVDm+SCPR2cIpw527e/T+lUK1N2rltzPcc158nXjl4h6SVy hsKFy7oaq61WyERddhygfLCWG7uaiOFViONCXaYU8sbl5sabBp2n6sezDNJjm5IqZcpx LCLzFNXBo8miZOxvoJKeRnZLBalRcv1OdOeMsHC1h6GmWQGziQSW09aapJe9XIT42E+V TAbam8frixc+57wPZQZ46dPQsnk8jHaE/0IY0l4CXOBWfITd2JipmMHdbVbZoCzi1/80 6LgQ== 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=F1YBHT3496svrxz+EkatQOzrROHl8f06iX70UV39xd8=; b=ptrRZTWm6u5YdaTFjvYX+X7g+S3m2PrGOLc+61Jo5eE40CXgWkex2kpVLqEDgu2VIf VzMAoiV4+CEUINQcoD6CB10oeXXNhY9xHwaIqPbdXK6kQLOjQ2W23Zw5uZxsWSWaqfC/ b0jS8l21KxvXMwHsqeXDwwBHPxfuGbtQ3ARpcpp6s85K6P0Lkcf2cGA+JdkpPEMgExHz zYYZDf8SxXfTK50TbBiO/yhpFxxfWecFhYZdZluksDIPwqkqnDdVsL5RG1+dX9BjIsYi wn1VzXBuaHmUBtmZeL6Xkzzl49pB3L/GNWnnQ1NftiUTxieQIoCufeg0KtZWN1Z263Gt +kuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=HldtNd9D; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si30426622plp.404.2019.05.23.09.36.59; Thu, 23 May 2019 09:37:15 -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=@ziepe.ca header.s=google header.b=HldtNd9D; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731271AbfEWQec (ORCPT + 99 others); Thu, 23 May 2019 12:34:32 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:43386 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730752AbfEWQeb (ORCPT ); Thu, 23 May 2019 12:34:31 -0400 Received: by mail-qt1-f196.google.com with SMTP id g17so1407939qtq.10 for ; Thu, 23 May 2019 09:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=F1YBHT3496svrxz+EkatQOzrROHl8f06iX70UV39xd8=; b=HldtNd9DThCXABUokXssytt+812XdJeJivvnSsHqGM+j4bUvIvlV09bjjFwKa16++I On9uV6QYyvZunXFC03CsY+SLzNeYgTgrJOctFXSGTHgDaLoQ9V1R4xLeEw/QiYp/KWFb PDa07LQSEJaPSSa6yVorRs4qfI8XtuVZxkb2pamApt6eKUdFfW3zF5p7W0S3n4g8TN+q fHSkGsmd4Fe8LrJrOrUN7ArzG9BBD2yuq0r4NtuOfGd7Kq5PapeuB2wkGRs1K9PiVwk4 dPIxd1t1ZdynIrcnf/aDpZ9rDSYvCwiEUki3zmA+hVr8mi2p2Fdto2QvQ9h8jD0X6PBD dfAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=F1YBHT3496svrxz+EkatQOzrROHl8f06iX70UV39xd8=; b=koWc9GaApJmEWUXQHmNbmJmxrPZX6r/FLoHsyyaYX6AybRy8XOmzQW2tF7W1pZdcBD yPSspdbtjX6lGdG3VOqL2RJ/i/Yj6A1c4p0xifgKZqldVdm0ptCWZVJNkGbIPZTgm7Sl CoCmAMK/ZJfkJJUR9yDdI8L80cwYg6rp19MkPrRjQZkDePf8pKjM+Q8kCKpuTUQXzPRr ik4RF1N+ip/Q8LlfCCZKkiNtPcThM/roiTffLrCA9ebQ7Pf9Gkp64/QvxInSMn5b380D mbyg5Opkqcxytwy1+5yYgFV6dyDqZ5F5cFZvh7nCyXQt1gaHOiZwcB6CwnTz52uQ28qN Z83g== X-Gm-Message-State: APjAAAU5ACtMapzatUTCF9zXpN4cOJO+wX8CYdozy1JEBXtdk8CuVzLn 6jc+vYyEHLRB+RHCskl0F8btqQ== X-Received: by 2002:a0c:e64f:: with SMTP id c15mr72350005qvn.239.1558629270823; Thu, 23 May 2019 09:34:30 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-49-251.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.49.251]) by smtp.gmail.com with ESMTPSA id f10sm7973934qkh.23.2019.05.23.09.34.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 May 2019 09:34:30 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hTqfl-0005Lw-OR; Thu, 23 May 2019 13:34:29 -0300 Date: Thu, 23 May 2019 13:34:29 -0300 From: Jason Gunthorpe To: Jerome Glisse Cc: linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Leon Romanovsky , Doug Ledford , Artemy Kovalyov , Moni Shoua , Mike Marciniszyn , Kaike Wan , Dennis Dalessandro Subject: Re: [PATCH v4 0/1] Use HMM for ODP v4 Message-ID: <20190523163429.GC12159@ziepe.ca> References: <20190411181314.19465-1-jglisse@redhat.com> <20190506195657.GA30261@ziepe.ca> <20190521205321.GC3331@redhat.com> <20190522005225.GA30819@ziepe.ca> <20190522174852.GA23038@redhat.com> <20190522235737.GD15389@ziepe.ca> <20190523150432.GA5104@redhat.com> <20190523154149.GB12159@ziepe.ca> <20190523155207.GC5104@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190523155207.GC5104@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 23, 2019 at 11:52:08AM -0400, Jerome Glisse wrote: > On Thu, May 23, 2019 at 12:41:49PM -0300, Jason Gunthorpe wrote: > > On Thu, May 23, 2019 at 11:04:32AM -0400, Jerome Glisse wrote: > > > On Wed, May 22, 2019 at 08:57:37PM -0300, Jason Gunthorpe wrote: > > > > On Wed, May 22, 2019 at 01:48:52PM -0400, Jerome Glisse wrote: > > > > > > > > > > > So attached is a rebase on top of 5.2-rc1, i have tested with pingpong > > > > > > > (prefetch and not and different sizes). Seems to work ok. > > > > > > > > > > > > Urk, it already doesn't apply to the rdma tree :( > > > > > > > > > > > > The conflicts are a little more extensive than I'd prefer to handle.. > > > > > > Can I ask you to rebase it on top of this branch please: > > > > > > > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/log/?h=wip/jgg-for-next > > > > > > > > > > > > Specifically it conflicts with this patch: > > > > > > > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?h=wip/jgg-for-next&id=d2183c6f1958e6b6dfdde279f4cee04280710e34 > > > > > > > > There is at least one more serious blocker here: > > > > > > > > config ARCH_HAS_HMM_MIRROR > > > > bool > > > > default y > > > > depends on (X86_64 || PPC64) > > > > depends on MMU && 64BIT > > > > > > > > I can't loose ARM64 support for ODP by merging this, that is too > > > > serious of a regression. > > > > > > > > Can you fix it? > > > > > > 5.2 already has patch to fix the Kconfig (ARCH_HAS_HMM_MIRROR and > > > ARCH_HAS_HMM_DEVICE replacing ARCH_HAS_HMM) I need to update nouveau > > > > Newer than 5.2-rc1? Is this why ARCH_HAS_HMM_MIRROR is not used anywhere? > > Yes this is multi-step update, first add the new Kconfig release n, > update driver in release n+1, update core Kconfig in release n+2 > > So we are in release n (5.2), in 5.3 i will update nouveau and amdgpu > so that in 5.4 in ca remove the old ARCH_HAS_HMM Why don't you just send the patch for both parts to mm or to DRM? This is very normal - as long as the resulting conflicts would be small during there is no reason not to do this. Can you share the combined patch? > > If mm takes the fixup patches so hmm mirror is as reliable as ODP's > > existing stuff, and patch from you to enable ARM64, then we can > > continue to merge into 5.3 > > > > So, let us try to get acks on those other threads.. > > I will be merging your patchset and Ralph and repost, they are only > minor change mostly that you can not update the driver API in just > one release. Of course you can, we do it all the time. It requires some co-ordination, but as long as the merge conflicts are not big it is fine. Merge the driver API change and the call site updates to -mm and refain from merging horrendously conflicting patches through DRM. In the case of the changes in my HMM RFC it is something like 2 lines in DRM that need touching, no problem at all. If you want help I can volunteer make a hmm PR for Linus just for this during the merge window - but Andrew would need to agree and ack the patches. Jason