Re: How to handle diffs created in -rebase branch

Nobuhiro Iwamatsu

# Add cip-dev@... to CC
Hi Pavel,

Thanks for your comment.

-----Original Message-----
From: Pavel Machek [mailto:pavel@...]
Sent: Tuesday, March 3, 2020 9:00 PM
To: iwamatsu nobuhiro(岩松 信洋 ○SWC□OST)
Subject: Re: How to handle diffs created in -rebase branch


(I believe we should cc cip-dev for this discussion).
Yes, I added cip-dev to CC.

Commit 9c075d325ec23a9bd99b7097f0b82ec04b007093 [1] has this fix
v4.4.211, but commit edeed5f910db5962f4ecc097ad6d935a33041ee0 [2]
deletes the file once and commit
5a0d157b6153b462eabd8afcf827877e885336b9 [3] recreated the file.
If we rebase this, since the order of commits is 2, 3, 1 to 1,
3, the above diffs was created.
I believe commit [1] is good, and we should not undo its effects
with other commits. Thus linux-4.4.y-cip is okay, and
linux-4.4.y-cip-rebase should be fixed. One way would be to
cherry-pick 1 into linux-4.4.y-cip-rebase.
I see, but commit [1] was already applied to v4.4.211 by upstream. So
the same commit is apply twice. Is this understanding same your suggest?

1. commit [1] / in v4.4.211
x. commit / release v4.4.213
x + 1. commit [2] / Delete fix by commit [1] / CIP's commit
x + 2. commit [3] / CIP's commit
x + 3. cherry-pick commit [1] <--- your suggest

-rebase branch is a branch that manages commits in the LTS tree and
CIP tree.
So a fix like this one always makes a difference.
I think there are two measures.

1. Ignore differences because it is a branch that manages commits.
2. If a difference occurs, commit to fix it. (Your suggestion)

I think that both are useful, but I want to get consensus with you as
kernel maintainers of CIP.
It is important for me for both branches to end up with same result.

"If a difference occurs, commit to fix it" is an acceptable solution to
it. But thinking about it some more, there may be even better one.

Central problem is that we delete fixed version of file, then re-create
the file without the fix. We should simply modify the re-creating patch
to create the fixed version.
I understood.

If you want, I can try to do just that; but at the moment, current versions
do not seem to be on

Yes, we haven't resolved this issue, so I haven't committed to the rebase branch yet.
And, I fixes suggested above.

Current tree:
Cause commit:
- 5b451956c2c6 firmware: Restore support for built-in firmware

Fixed tree:
Fixed commit:
- d841fec71b9b firmware: Restore support for built-in firmware

$ git diff rebase-check/linux-4.4.y-cip-rebase-base rebase-check/linux-4.4.y-cip-rebase-fix0
diff --git a/firmware/Makefile b/firmware/Makefile
index fa0808853883..c944cf092926 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -18,7 +18,7 @@ quiet_cmd_fwbin = MK_FW $@
PROGBITS=$(if $(CONFIG_ARM),%,@)progbits; \
echo "/* Generated by firmware/Makefile */" > $@;\
echo " .section .rodata" >>$@;\
- echo " .p2align $${ASM_ALIGN}" >>$@;\
+ echo " .p2align 4" >>$@;\
echo "_fw_$${FWSTR}_bin:" >>$@;\
echo " .incbin \"$(2)\"" >>$@;\
echo "_fw_end:" >>$@;\

Could you please check and comment on fixed commit?

Best regards,

Join to automatically receive all group messages.