Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2053148ybm; Thu, 23 May 2019 10:35:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdzG5R317EFCPs/9nRZM/U4u8ZyXnppQrmPSGxMhReZifbrJmpmAADwTMX2iruEvFztPyF X-Received: by 2002:a17:902:bb06:: with SMTP id l6mr42104572pls.78.1558632955065; Thu, 23 May 2019 10:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558632955; cv=none; d=google.com; s=arc-20160816; b=wkR/fKyLPedGzwKi8D7vb2X/nCCqv77JXdz9QrIqWyvQeNAvMnto2bcVDsFddHCIZx 0Lf9J7xH78u1mfq1w0xD8iNsw8MaFZ4TUF1Z3D/JXwMG2NJjeO468fCgG/ge2cO3y9uq dZ3UTpSGjOHfb+40/l0CUCKgm4JWNs/BBuAVuMQBrCt+er77FsuBQFRO93YvQ0XMg0BC 8qCZzAkglsAZGtbyto2ui6ksRTuNRuNXBppV/6OujLQpt0Raxcr0fRd0Z9DxDBjkwxpQ /XIWzXcrcGGrpXWiqsLVG2KnoSrLpj5l3EHtFe2o+ijtkdHZBEgvPfAYInQ5wGTQxOoV Mjbw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=//rc/f3OKehqLfeR8hhCHUWvrvvJaQyFrRVuFGmENy4=; b=wSOlFp49yIQQVIhn/Bk2PFIRtFF9YfRxZlhYR/DiNEFhywQpJ19PpOZ1RE0JFJNasc yxK104Gz0TYkO+X8lLvusDcVbG7xe8//pi/X1FAXJxIRcitBbaWF8iU3SMULHhxPddwX d+3oRWE9G/vrfWPi4SOr/vsMVqSTJdCEf/1Ej0boCub84rGxczYY9gaAK6c4l6hXMch+ Kx3/cDtsKA0BvT+ZDgI07IC9t/sglkJaPj2yqso3ArXLrU/frQr0MHYLjVWfRPh99ouF c2SRx1OHfULmrVu8xAK1uC2MvgKNHuZlxplLmAbZZS0Zn0kpGXH6lSBSiswSEPtk4GXF 0bIw== 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 l73si34031430pfb.126.2019.05.23.10.35.39; Thu, 23 May 2019 10:35:55 -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 S2387415AbfEWRdN (ORCPT + 99 others); Thu, 23 May 2019 13:33:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55412 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387403AbfEWRdN (ORCPT ); Thu, 23 May 2019 13:33:13 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D081F7E42C; Thu, 23 May 2019 17:33:05 +0000 (UTC) Received: from redhat.com (unknown [10.20.6.178]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C76A560BCD; Thu, 23 May 2019 17:33:04 +0000 (UTC) Date: Thu, 23 May 2019 13:33:03 -0400 From: Jerome Glisse To: Jason Gunthorpe 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: <20190523173302.GD5104@redhat.com> 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> <20190523163429.GC12159@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190523163429.GC12159@ziepe.ca> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 23 May 2019 17:33:12 +0000 (UTC) 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 01:34:29PM -0300, Jason Gunthorpe wrote: > 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? This was tested in the past an resulted in failure. So for now i am taking the simplest and easiest path with the least burden for every maintainer. It only complexify my life. Note that mm is not a git tree and thus i can not play any git trick to help in this endeavor. > > > 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. This was tested in the past and i do not want to go over this issue again (or re-iterate the long emails discussion associated with that). It failed and it put the burden on every maintainers. So it is easier to do the multi-step thing. You can take a peak at Ralph patchset and yours into one with minor changes here: https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-5.3 I am about to start testing it with nouveau, amdgpu and RDMA. Cheers, J?r?me