Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1598895
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Daniel Vetter <daniel@ffwll.ch> |
| Newsgroups | linux.kernel |
| Subject | Re: [Intel-gfx] The i915 stable patch marking is totally broken |
| Date | Mon, 13 Mar 2017 07:50:01 +0100 |
| Message-ID | <tkrXP-4X5-1@gated-at.bofh.it> (permalink) |
| References | <tkhOO-65d-7@gated-at.bofh.it> <tkiBc-6FF-23@gated-at.bofh.it> <tkjQB-7HV-9@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=MLgRp86tjHNhd0naVJN973QvFCy8VzJgHqtXWo+6lD8=; b=al1eW0VSa+9DG5mkMQVD9FRXr6N74bbzt/sE1j83BfFks3o/FPPSW0QpZb2mQ2LGTy uAevg2Vr5OYfXS7hUDXIpJpxTBZf0FlAmF7zSdSOLPzuDQfCv8LPr6tPvVmN5rWq0WPm t4jSv6UX3MD0FPDx5mRzwMzcOFd0RryfnzlcA= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=MLgRp86tjHNhd0naVJN973QvFCy8VzJgHqtXWo+6lD8=; b=Vp4PgIVk2SRhKgO4MHLMrIS7HZntYPmfffWAsxV2ONRU2w21gxG6I1QHOHsWnbouQu URkbS7526dE6l8rmmG8UJcSyI3t3aD2w+0l8AQfHv70OFOZ/iOs87mhjbZmZ/crGUoAK RbQuBujpOjkJDVw7vdhS/ft4EOmovqs2xu+C5bvtxmIiKgWzPVJ1aGRhztHWBhQ34GXb tof6XGs7k1DltQ+Y4IU3Zuz44XFHHqJ0K3mkGqqNHZsXvARQIb1xEzlvZwsGNaaZIZMR TbPxh4KFkLD1CW2SkQc9MEA8LKUqbELuNPBXQWu4hN8YPSyIMgvxARLtBkwemudRFDrX B22g== |
| X-Gm-Message-State | AMke39kjJxAKCl16YKQsv1PxLPUaMZxuWVUdCXnLR+oHSp+g1OkNgM11w/n+IRLspG00sngrz8EH8hgNaXgXlg== |
| X-Received | by 10.107.59.146 with SMTP id i140mr25898078ioa.100.1489387251045; Sun, 12 Mar 2017 23:40:51 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Originating-IP | [2a02:168:56c9:0:decc:6e78:7e96:b452] |
| X-Google-Sender-Auth | QNRM3Dq0Eas9dVBzfSvoLre7njQ |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 76 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Daniel Vetter <daniel.vetter@intel.com>, Jani Nikula <jani.nikula@linux.intel.com>, intel-gfx <intel-gfx@lists.freedesktop.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, stable <stable@vger.kernel.org> |
| X-Original-Date | Mon, 13 Mar 2017 07:40:50 +0100 |
| X-Original-Message-ID | <CAKMK7uGStXcZXWqHJtH6jM5uy40Wo8pA7S8iHOFScTkCSM4A7Q@mail.gmail.com> |
| X-Original-References | <20170312194440.GA32007@kroah.com> <20170312204621.vzvmzgnuio2fqmr7@phenom.ffwll.local> <20170312220121.GB30510@kroah.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1598895 |
Show key headers only | View raw
On Sun, Mar 12, 2017 at 11:01 PM, Greg KH <gregkh@linuxfoundation.org> wrote: >> So I blame this on flight level 350, but we discussed this at kernel >> summit. Every patch we cherry-pick over comes with a "cherry-picked from >> $sha1" line, as long as you ignore any such sha1 as duplicate you won't >> see the same patch twice. > > I tried that, but that cherry-pick number doesn't seem to match up with > anything in Linus's tree. Where are those numbers coming from? > > Or there aren't numbers at all. Look at commit: > 8726f2faa371514fba2f594d799db95203dfeee0. It just showed up in Linus's > tree, and there's no "cherry-pick" number in there. It ended up in > 4.9.7. > > Hm, ok, you want me to look at the commit id and then search to see if > it's already been merged "before". Ah, that's crazy. So I need to do > that for every i915 patch? Search backwards? Ugh, that's a mess, no > wonder I couldn't figure it out... Our cherry-pick sha1 work exactly like yours: They don't make sense when you only look at the tree a patch has been cherry-picked _to_, since they're the sha1 from the tree they've been cherry-picked _from_. When you clone a fresh copy of your stable tree then the cherry-pick numbers also point nowhere. Only once you've pulled the future tree they're from (Linus' git in your case) do they make sense. Same for our cherry-picks, except the future tree isn't Linus' git (we'd have managed to make sha1 collisions cheaply otherwise ...) but the future Linus' git tree. Which is maintained by Stephen Rothwell in linux-next. As soon as you make sure you have the latest linux-next.git they will all resolve to something meaningful. Not crazy going on at all :-) >> Iirc you said you'll implement this in your scripts, and as long as we >> never break this rule, you'll be fine. Since you seemed to have agreed to >> a solution that would solve all your headaches I didn't bother doing >> any changes on our side here. > > So if a commit says "cherry-pick", I guess I can always assume it's safe > to add, right? If not, _then_ I have to run the "search backwards" > logic, right? > > Ok, let me think about this a bit to see if that's possible to script... Yes, but it shouldn't be hard to avoid the linear search: 1. make sure you have the latest linux-next (to make sure all the sha1 commit-ish resolve to something meaningful). You probably want to do that before you board a plane :-) 2. When you parse an upstream commit that says "commit cherry-picked from $original_sha1", then add a git note for $original_sha1 that you've seen it already and can ignore it. 3. Run that script over v4.9..v4.10 to backfill your git notes branch. 4. Make sure you sync that git notes branch (and if you use git notes already, just use a different git notes branch name to avoid conflicts). 5. When you spot a patch with cc: stable, check for a git note that says you've looked at it (or one of it's cherry-picks) already, if so, silently ignore it. That should massively drop the ratio of failed patches, at least every time I look at your failed patche mail I think they're just double-applied ones. There's ofc a few patches that fail to apply, 3 months of drm/i915 development even wreak the context of simple bugfixes sometimes, but most are not (which is btw why you don't get replies for most of these). -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
The i915 stable patch marking is totally broken Greg KH <gregkh@linuxfoundation.org> - 2017-03-12 21:00 +0100
Re: The i915 stable patch marking is totally broken Dave Airlie <airlied@gmail.com> - 2017-03-12 21:20 +0100
Re: The i915 stable patch marking is totally broken Greg KH <gregkh@linuxfoundation.org> - 2017-03-12 23:00 +0100
Re: [Intel-gfx] The i915 stable patch marking is totally broken Daniel Vetter <daniel@ffwll.ch> - 2017-03-13 08:00 +0100
Re: [Intel-gfx] The i915 stable patch marking is totally broken Daniel Vetter <daniel@ffwll.ch> - 2017-03-12 21:50 +0100
Re: [Intel-gfx] The i915 stable patch marking is totally broken Greg KH <gregkh@linuxfoundation.org> - 2017-03-12 23:10 +0100
Re: [Intel-gfx] The i915 stable patch marking is totally broken Daniel Vetter <daniel@ffwll.ch> - 2017-03-13 07:50 +0100
Re: [Intel-gfx] The i915 stable patch marking is totally broken Jani Nikula <jani.nikula@linux.intel.com> - 2017-03-13 11:50 +0100
csiph-web