Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4561372ybi; Mon, 15 Jul 2019 10:53:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqz43x0KskizSplRwtYf0YL0DgDvuDg5ALpTKE7bLxpcApwkUv+PgtUkZ0DQ6H7ycjxwUZmn X-Received: by 2002:a17:902:ff05:: with SMTP id f5mr28839179plj.116.1563213235085; Mon, 15 Jul 2019 10:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563213235; cv=none; d=google.com; s=arc-20160816; b=RY7mgk56tSG1qQC74/LEUPf9kQAko5hcu972Gm60vK4iK4oEBE6ZE2qGmldQwBkePb rOKf+ZgSpgL1oHz22QTpwlF/BySPl+HQ+J2gXTB4lAb7z5dp+wTtNNmAwkgYr5dGb6pK y8hAghIY/2a49ZQkFGwCba94VTqyanGSci+F5qNnYRVAvoBkKMKO+HdLnsZp0aPnJVbt wdU4Ihy80MY606Xa94DQp8NF1FtZizr/I1HGZgDXDgV2BaP4ldSuod548nmcfepQ5Mn6 0QjITv5yTDGMfo8caNPXkQwm6CMBMunSdie4h5Z+6yco0uAkF8roPfQcZ76ebiMGjwTd gvxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=SkesM2hcGDDC/kg0C8a48VrcxIoXJLz8YVcZEfvwMQk=; b=wdzpUpu0VMHaUdRRsbOE9YMVVqbv1iqap2xSao3gsXqi8xM5fRlRzA/ShgZ3BR42hT FsgI7nYD+k4SyIokNl8pATsexWssXOsQJOhqtl8H1y+aad3+xJpPxea6+Zek8S/6LaXR feOkTvPwcIfpvQh9X3QF+2M+B82WHgijjJHk1S+RF0E0dSTY9SjIaJVJfcsZdCWFIcxR YrNxv4/wP7l7FVXCBWVGkgiEMh90yYYDZ8H4ILHjTnljkWBq14ciR/0H/FogA4uoCNO3 qOdVAGrBQR1PlQLrTuVdr09M83pr0qKsQ6XXt05+/+0XUyt2PYbCKPz7e7uMSgiygm41 pqIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=MOhY9rEY; 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 h16si16481863pjt.12.2019.07.15.10.53.38; Mon, 15 Jul 2019 10:53: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; dkim=pass header.i=@ffwll.ch header.s=google header.b=MOhY9rEY; 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 S1731662AbfGORxT (ORCPT + 99 others); Mon, 15 Jul 2019 13:53:19 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:42303 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729941AbfGORxT (ORCPT ); Mon, 15 Jul 2019 13:53:19 -0400 Received: by mail-ot1-f66.google.com with SMTP id l15so17937860otn.9 for ; Mon, 15 Jul 2019 10:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SkesM2hcGDDC/kg0C8a48VrcxIoXJLz8YVcZEfvwMQk=; b=MOhY9rEYJYtAIzvC5D6fXjtfUVSaXojQfImzFzO+46Vzca6hHSNrEMx0k66k5v/wDe nPBmDyHcApfQ2B5SEJnT8Jcca2Oxl4BnGbfwH82xMK84+X9/1U5pRmbdH4CW2L0OkItc gOz8vN2j1h9rhYbPKYnsQCo0gjNVDaVHJA464= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SkesM2hcGDDC/kg0C8a48VrcxIoXJLz8YVcZEfvwMQk=; b=o8qO8wp9zuhFiGcakm5DCQk2EZyS+Y9g7UWm/h1gz1ffU0uPNOLyjUOT0uILNmGIfL KwgRpnoOBo0VnJvg+KjNygPHIK+yf7pnUBaEAq2wc5Ncf8slVUfkK2ar++sTPvQAzcD6 9ezeeA5IV7IEIC20rHvIr+EwY/J5ac0qn/aQHGx6rQpId62pnDQMP8yGwSs8JZSMs4rC 0VOG3A2xPVjPDaPAvWKlHPmHDZqQQ1DqwN9MIDl1tdQvvC+8RCLH67B5bZMvW8cxWMWn Gn5z4sUdSSGHDGYctGYFp6kKq4IuiHU+QlbX08jpTBT2MZuI8Wzh4tPQydRpdL74mW4d ig5A== X-Gm-Message-State: APjAAAWs8hPlTgxU4C6nNvtTSGl7PYpQhM2ikEQt4LT9xD7mo+05fPOT IZ2x5aN72P1sKW3kvD8qfLfxVaMPiGXVqy1DHVo= X-Received: by 2002:a05:6830:ce:: with SMTP id x14mr1039567oto.188.1563213198135; Mon, 15 Jul 2019 10:53:18 -0700 (PDT) MIME-Version: 1.0 References: <20190715122924.GA15202@mellanox.com> <20190715150402.GD15202@mellanox.com> In-Reply-To: <20190715150402.GD15202@mellanox.com> From: Daniel Vetter Date: Mon, 15 Jul 2019 19:53:06 +0200 Message-ID: Subject: Re: DRM pull for v5.3-rc1 To: Jason Gunthorpe Cc: Dave Airlie , Linus Torvalds , dri-devel , LKML , Andrew Morton , Jerome Glisse , Thomas Hellstrom , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 15, 2019 at 5:04 PM Jason Gunthorpe wrote: > > On Mon, Jul 15, 2019 at 04:19:26PM +0200, Daniel Vetter wrote: > > > > Linus, do you have any advice on how best to handle sharing mm > > > patches? The hmm.git was mildly painful as it sits between quilt on > > > the -mm side and what seems like 'a world of interesting git things' > > > on the DRM side (but maybe I just don't know enough about DRM). > > > > I think the approach in this merge window worked fairly well: > > - refactor/rework core mm stuff in (h)mm.git > > - handle all the gpu stuff in drm.git > > - make the clashes workable through some clever prep patches like > > we've done this time around > > Okay, as long as we agree. > > I think part of the challenge with hmm.git was setting some > expectation for managing conflicts - there is some happy middle ground > between none & scary we need to navigate to make this work. > > > I think Linus wants to be able to look through core mm stuff quite > > closely, so not a good idea if we deeply intertwin it with one of the > > biggest subsystems there is. > > There is definately a bunch of stuff that is under the mm/ directory > but is not quite 'core mm' - it would be good if we could rely on > mailing list review of that part and use a topic workflow to manage > things. This was/is more or less my plan with hmm.git > > Otherwise yes, as much as reasonable we should avoid topic merges > between the trees. > > However, I again see conflict risk coming this cycle .. > > > And I don't think there will be a real conflict like this every > > merge window, this should be the exception. Worst case we have to > > stage some work 1 release cycle apart, i.e. merge mm stuff first, > > then drm 3 months later. > > I really dislike this idea. Not being able to provide users for core > APIs is a huge process/review problem. Worse it tends to create a > 'ladder' where in-flight changes to drivers (to implement the new > core) now block any changes to the core APIs on alternating cycles. So > 'the big pitcture' starts to fall a part if we can't co-ordinate cross > tree changes in some way. > > .. and honestly, splitting a review process across a 9 week gap is one > of the best ways I've seen to get a poor quality review :( > > I'm pretty familiar with this problem, we had it in spades between RDMA > and netdev for a long time, and it is finally fully resolved now > through a careful use of topic branches and merges. > > For example, next week I'll queue CH's patches that shift the last > batch of hmm 'conflict management' shims into nouveau, and tries to > fix them: > > https://patchwork.kernel.org/project/linux-mm/list/?series=141835 > > This is something uncontroversial that really should go into the DRM > world as a topic so it doesn't interfere with ongoing nouveau dev. But > I want to keep the hmm.c/.h bits in the hmm.git to avoid conflicts. > > So, I'll put it on a topic and send you two a note next week to decide > if you want to merge it or not. I'm really unclear how nouveau's and > AMD's patchflow works.. DRM is 2-level for pretty much everything. First it lands in a driver tree (or a collectiv of drivers, like in drm-misc). Then those send pull requests to drm.git for integration. Busy trees do that every 1-2 weeks (e.g. amdgpu), slower trees once per merge window (e.g. nouveau) for drm-next, similar for drm-fixes. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch