Rebase of chromeos-4.12 to chromeos-4.14 |
|||||||||||
Issue descriptionThe current "latest" kernel for chromeos is chromeos-4.12. The current plan for next chromeos kernel is 4.14, which is meant to be the next LTS release. For reference, on 10/1 Linus released Linux 4.14-rc3 [0]. [0] https://lkml.org/lkml/2017/10/1/182
,
Oct 20 2017
groeck - Can you post any guidance here for how best to proceed with the chromeos-4.14 rebase?
,
Oct 20 2017
#2: Yes, will do early next week. Too distracted with sheriffing this week.
,
Oct 23 2017
Action items: - Create merge database with topic branches (done) https://drive.google.com/a/google.com/file/d/0B0oKcxFo1ZtwZTk5SWIwWURKQ1k/view?usp=sharing - Create topic list (groeck) - Rebase android (groeck or volunteer, can start immediately) (https://chromium.googlesource.com/chromiumos/third_party/kernel-next chromeos-4.12-android) - Rebase topic branches onto android rebase - Ongoing: Collect topic branches and generate working rebase branch
,
Oct 23 2017
,
Oct 23 2017
I'm going to take a shot at chromeos-4.14-android. If it goes beyond my abilities I'll bail out.
,
Oct 23 2017
#7: Sounds good; the conflicts are a bit excessive. Spoiler alert: I already finished its rebase, but it would be useful to have it done by someone else as well to be able to compare the results. Hints: Don't bother trying to compile dm-android-verity.c; we don't use it, and I don't think it compiles even in chromeos-4.12. Also, don't bother trying to compile dm-linear.c before you are done; there are several fixup commits after the initial changes. I'll publish the branch shortly after some more compile tests. I'll mark the bug status as Started and set myself as owner. That doesn't mean I'll do all the work, though ;-).
,
Oct 23 2017
Created kernel-next:chromeos-4.14-android. Compile tested only.
,
Oct 23 2017
#8: Too early. Due to a recent "improvement", gerrit refuses to accept my push because it involves more than 10,000 patches. I'll have to go back and figure out how I got around that problem earlier with the 4.12 rebase.
,
Oct 23 2017
ok ... now chromeos-4.14-android does exist. lannm@ - please continue with your rebase, and let's compare the results.
,
Oct 24 2017
I finished my rebase. Outside of dm-* there were only a handful of diffs between our trees and for most of them your side was obviously more correct. The only chunk that wasn't obvious to me was this (my tree on the left):
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index c8f5f1b44530..5189a9bb82cb 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2814,18 +2815,6 @@ static void ext4_free_data_in_buddy(struct super_block *sb,
mb_debug(1, "gonna free %u blocks in group %u (0x%p):",
entry->efd_count, entry->efd_group, entry);
- if (test_opt(sb, DISCARD)) {
- err = ext4_issue_discard(sb, entry->efd_group,
- entry->efd_start_cluster,
- entry->efd_count, 0);
- if (err && err != -EOPNOTSUPP)
- ext4_msg(sb, KERN_WARNING, "discard request in"
- " group:%d block:%d count:%d failed"
- " with %d", entry->efd_group,
- entry->efd_start_cluster,
- entry->efd_count, err);
- }
-
err = ext4_mb_load_buddy(sb, entry->efd_group, &e4b);
/* we expect to find existing buddy because it's pinned */
BUG_ON(err != 0);
,
Oct 24 2017
Actually, this chunk in dm-linear.c looks like it could be relevant too:
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c
index 36228de35dc2..bba543a9ae69 100644
--- a/drivers/md/dm-linear.c
+++ b/drivers/md/dm-linear.c
@@ -199,6 +199,7 @@ static struct target_type linear_target = {
.ctr = dm_linear_ctr,
.dtr = dm_linear_dtr,
.map = dm_linear_map,
- .end_io = dm_linear_end_io,
.status = dm_linear_status,
.prepare_ioctl = dm_linear_prepare_ioctl,
.iterate_devices = dm_linear_iterate_devices,
,
Oct 24 2017
#13: That was bad code on my side. Excellent catch! I updated the branch and pushed it again.
,
Oct 24 2017
#12: The code was removed upstream and replaced with code in ext4_process_freed_data(), which now handles the call to ext4_issue_discard().
,
Oct 24 2017
lannm@: Do you have any other concerns, or do you think we can create chromeos-4.14-base ?
,
Oct 24 2017
LGTM - if there are more mistakes then we both made them identically.
,
Oct 24 2017
Done. chromeos-4.14-base now exists.
,
Oct 24 2017
Rebase directions: https://docs.google.com/a/google.com/document/d/1Z1vfB-tcoFyniF_0ScvFp_5meljliB4LkHfXUacF6qM/edit?usp=sharing Quite rudimentary, but should be good enough to start. I'll update as we go and with your comments. I'll also update the topic list with topic numbers to make the database tools useful (process-dbm.sh needs topic numbers). Also, everyone, please spend some time to browse through the database and report any errors.
,
Oct 24 2017
,
Oct 24 2017
,
Oct 24 2017
,
Oct 24 2017
I found another issue with the Android rebase: "ANDROID: Add untag hacks to inet_release function" (7de3824ab) adds some e.g. `atomic_read(sk->sk_refcnt)`, but sk_refcnt's type was changed from atomic_t to refcount_r upstream, so atomic_read needs to become refcount_read. This diff fixes it: https://bit.googleplex.com/#/lannm/5286606508392448
,
Nov 10 2017
The following revision refers to this bug: https://chrome-internal.googlesource.com/chromeos/manifest-internal/+/a26391537e7f4588a64a349da67430b816ff76a6 commit a26391537e7f4588a64a349da67430b816ff76a6 Author: Guenter Roeck <groeck@google.com> Date: Fri Nov 10 22:05:43 2017
,
Nov 10 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/manifest/+/00b4773ec79b25a8c8466b4380fd945a0c1e567c commit 00b4773ec79b25a8c8466b4380fd945a0c1e567c Author: Guenter Roeck <groeck@chromium.org> Date: Fri Nov 10 22:05:43 2017 Add chromeos-experimental An experimental kernel lets us test upcoming branches without having to change files like this over and over again. CQ-DEPEND=CL:*500772 BUG= chromium:771410 TEST=repo sync, see new (plain experimental) kernel branch Change-Id: Ia6184688de80fb28379f13941f771b75e168d35c Signed-off-by: Guenter Roeck <groeck@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/761401 Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Bernie Thompson <bhthompson@chromium.org> [modify] https://crrev.com/00b4773ec79b25a8c8466b4380fd945a0c1e567c/full.xml
,
Nov 11 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/9da14c4cb98bbeee288e2814d9a4511a331c927b commit 9da14c4cb98bbeee288e2814d9a4511a331c927b Author: Guenter Roeck <groeck@chromium.org> Date: Sat Nov 11 07:19:09 2017 Add sys-kernel/chromeos-kernel-experimental This lets us build images and run trybots with experimental kernels. CQ-DEPEND=CL:761401,CL:*500772 BUG= chromium:771410 TEST="Build image with USE flag chromeos-kernel-experimental" Change-Id: I1daa518981b2d7fb9b859ce335391b86cfdc6bcf Signed-off-by: Guenter Roeck <groeck@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/761258 Reviewed-by: Douglas Anderson <dianders@chromium.org> [add] https://crrev.com/9da14c4cb98bbeee288e2814d9a4511a331c927b/sys-kernel/chromeos-kernel-experimental/chromeos-kernel-experimental-9999.ebuild [add] https://crrev.com/9da14c4cb98bbeee288e2814d9a4511a331c927b/sys-kernel/chromeos-kernel-experimental/metadata.xml [add] https://crrev.com/9da14c4cb98bbeee288e2814d9a4511a331c927b/sys-kernel/chromeos-kernel-experimental/files/chromeos-version.sh
,
Nov 17 2017
,
Nov 17 2017
,
Nov 18 2017
The following revision refers to this bug: https://chrome-internal.googlesource.com/chromeos/manifest-internal/+/08efc7287c8061f9965fb6d1baf35634e8cdd0bd commit 08efc7287c8061f9965fb6d1baf35634e8cdd0bd Author: Guenter Roeck <groeck@google.com> Date: Sat Nov 18 04:18:22 2017
,
Nov 18 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/manifest/+/df43a2bb0c0009524f63b75fd47a2320ba41809b commit df43a2bb0c0009524f63b75fd47a2320ba41809b Author: Guenter Roeck <groeck@chromium.org> Date: Sat Nov 18 04:18:22 2017 Add kernel 4.14 CQ-DEPEND=CL:*508057 BUG= chromium:771410 TEST=repo sync, see new (plain v4.14) kernel branch Change-Id: Idb719be8e8b4cc190401fd30c195fb6f8013e752 Signed-off-by: Guenter Roeck <groeck@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/775614 Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org> [modify] https://crrev.com/df43a2bb0c0009524f63b75fd47a2320ba41809b/full.xml
,
Nov 18 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/059187265eef8ee6c57e49c7724424ff52109e07 commit 059187265eef8ee6c57e49c7724424ff52109e07 Author: Guenter Roeck <groeck@chromium.org> Date: Sat Nov 18 20:13:20 2017 sys-kernel: Add support for chromeos-4.14 CQ-DEPEND=CL:*508057,CL:775614 BUG= chromium:771410 TEST=ebuild kernel-4_14 Change-Id: Id1ecce2f9078b1d20134574dc7e2b9dc16774cf6 Signed-off-by: Guenter Roeck <groeck@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/775323 [add] https://crrev.com/059187265eef8ee6c57e49c7724424ff52109e07/sys-kernel/chromeos-kernel-4_14/chromeos-kernel-4_14-9999.ebuild [add] https://crrev.com/059187265eef8ee6c57e49c7724424ff52109e07/sys-kernel/chromeos-kernel-4_14/metadata.xml [rename] https://crrev.com/059187265eef8ee6c57e49c7724424ff52109e07/virtual/linux-sources/linux-sources-1-r13.ebuild [modify] https://crrev.com/059187265eef8ee6c57e49c7724424ff52109e07/virtual/linux-sources/linux-sources-1.ebuild [add] https://crrev.com/059187265eef8ee6c57e49c7724424ff52109e07/sys-kernel/chromeos-kernel-4_14/files/chromeos-version.sh
,
Jan 22 2018
,
Jan 23 2018
|
|||||||||||
►
Sign in to add a comment |
|||||||||||
Comment 1 by teravest@chromium.org
, Oct 13 2017