Skip to contentSkip to conversation

u-boot-usb/master

GIT PULL Marek Vasut 4 participants 9 messages Jun 14, 2019 – Jun 18, 2019

lore
Share & tools
lore
#0 lore raw

Assorted gadget fixes.

The following changes since commit c2ea87883ef309570c8903e6de4b8b78685d73d0:

Merge tag 'efi-2019-07-rc5' of git://git.denx.de/u-boot-efi
(2019-06-12 07:15:38 -0400)

are available in the Git repository at:

git://git.denx.de/u-boot-usb.git master

for you to fetch changes up to 220f655176de8e6aa4aaea91bb2182260d26c4a4:

fastboot: Check if partition really exist in getvar_has_slot()
(2019-06-14 12:39:54 +0200)

----------------------------------------------------------------
Igor Opaniuk (1):
fastboot: Check if partition really exist in getvar_has_slot()

Marek Vasut (1):
spl: dfu: Fix printed variable name

Sam Protsenko (3):
fastboot: Fix slot names reported by getvar
fastboot: Use const qualifier for char *part_name
fastboot: getvar: Refactor fastboot_*_get_part_info() usage

Sjoerd Simons (1):
usb: gadget: error out if g_dnl registration fails

 cmd/usb_gadget_sdp.c         |  11 ++++++++---
 common/spl/spl_dfu.c         |   2 +-
 common/spl/spl_sdp.c         |   6 +++++-
 drivers/fastboot/fb_getvar.c | 103
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
 drivers/fastboot/fb_mmc.c    |   3 ++-
 drivers/fastboot/fb_nand.c   |   4 ++--
 include/fb_mmc.h             |   3 ++-
 include/fb_nand.h            |   4 ++--
 8 files changed, 101 insertions(+), 35 deletions(-)
#1 lore raw

Hello Marek, Lukasz cc: Sam

On Sat, Jun 15, 2019 at 5:23 AM Marek Vasut <[email protected]> wrote:
[..]

Quoted 2 lines

Sam Protsenko (3):
fastboot: Fix slot names reported by getvar

Commit [1] from this PR got replaced by series [2].
If this PR is merged as-is, the benefit of the new series will be lost and the series will need rework (since it overlaps with [1]). Ideally [2] should replace commit [1]. Is this feasible and do you have any suggestions how to achieve this? TIA.

[1] https://git.denx.de/?p=u-boot/u-boot-usb.git;a=commit;h=97a0c6ff577d57f162abc696c4efc962981229b1
[2] https://patchwork.ozlabs.org/cover/1116097/ ("fastboot: Support
new A/B slot format")

Thanks,
Eugeniu,

#2 lore raw
Quoted 8 lines · Eugeniu Rosca

Hello Marek, Lukasz cc: Sam

On Sat, Jun 15, 2019 at 5:23 AM Marek Vasut <[email protected]> wrote:
[..]

Quoted 2 lines

Sam Protsenko (3):
fastboot: Fix slot names reported by getvar

Commit [1] from this PR got replaced by series [2].

Replaced where ? [1] seems like a fix to me, [2] seems like feature addition , so merging [1] this late in the release cycle seems like the right thing to do.

Quoted 12 lines

If this PR is merged as-is, the benefit of the new series will be lost and the series will need rework (since it overlaps with [1]). Ideally [2] should replace commit [1]. Is this feasible and do you have any suggestions how to achieve this? TIA.

[1] https://git.denx.de/?p=u-boot/u-boot-usb.git;a=commit;h=97a0c6ff577d57f162abc696c4efc962981229b1
[2] https://patchwork.ozlabs.org/cover/1116097/ ("fastboot: Support
new A/B slot format")

Thanks,
Eugeniu,

Signature · 2 lines
Best regards,
Marek Vasut
#3 lore raw

Hi Marek,

Quoted 5 lines · Marek Vasut
Quoted 4 lines · Eugeniu Rosca

Hello Marek, Lukasz cc: Sam

On Sat, Jun 15, 2019 at 5:23 AM Marek Vasut <[email protected]> wrote:
[..]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Sam Protsenko (3):
fastboot: Fix slot names reported by getvar

Commit [1] from this PR got replaced by series [2].

Replaced where ? [1] seems like a fix to me, [2] seems like feature addition ,

Your instincts are correct (i.e. features must be rejected at this late stage) and they deserve credits. However and what seems extremely interesting is:
- it is very easy to masquerade a fix as a feature (and viceversa), just by slightly adjusting the title [1-2] and it's very easy to play with your perception this way
- it seems like there isn't a process (and this is a OSS-wide issue) of marking a patch as fix/feature (the latter would help the maintainer enormously)
- it also appears that sometimes there is a fine line in our minds between what's a fix and what's a feature

So, in a nutshell, series [2] is the v2 of commit [1]. IMHO there is no feature added.
The two commits from series [2] are:
- https://patchwork.ozlabs.org/patch/1116099/
- https://patchwork.ozlabs.org/patch/1116101/

What's interesting is that, depending on which version of fastboot utility users use/assume, they might see a "regression" introduced by [1-2]. Both [1-2] do changes to align U-Boot with latest fastboot utility from AOSP. What [2] is doing _in addition_ to [1] is:
- remove some dead code in U-Boot which will never be exercised assuming users run the latest fastboot
- place a bold warning in commit description that users are assumed to be using the latest fastboot utility

Quoted 2 lines

so merging [1] this late in the release cycle seems like the right thing to do.

My assumption is that Sam would like to see [1] being dropped in favor of [2], as commented in https://patchwork.ozlabs.org/patch/1114850/#2194140

Quoted 5 lines
Quoted 5 lines

[1] https://git.denx.de/?p=u-boot/u-boot-usb.git;a=commit;h=97a0c6ff577d57f162abc696c4efc962981229b1
[2] https://patchwork.ozlabs.org/cover/1116097/ ("fastboot: Support
new A/B slot format")

Signature · 2 lines
Best regards,
Eugeniu
#4 lore raw
Quoted 16 lines · Eugeniu Rosca

Hi Marek,

Quoted 5 lines · Marek Vasut
Quoted 4 lines · Eugeniu Rosca

Hello Marek, Lukasz cc: Sam

On Sat, Jun 15, 2019 at 5:23 AM Marek Vasut <[email protected]> wrote:
[..]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Sam Protsenko (3):
fastboot: Fix slot names reported by getvar

Commit [1] from this PR got replaced by series [2].

Replaced where ? [1] seems like a fix to me, [2] seems like feature addition ,

Quoted 6 lines

Your instincts are correct (i.e. features must be rejected at this late stage) and they deserve credits. However and what seems extremely interesting is:
- it is very easy to masquerade a fix as a feature (and viceversa), just by slightly adjusting the title [1-2] and it's very easy to play with your perception this way

Likely because free software development is built on trust. If there are malicious actors who decide to not play nice, and even try to manipulate others by elaborately crafting commit messages or otherwise, this might work out to worm patches in. But at the end of the day, this helps no one, so please refrain from such underhanded practices.

Quoted 3 lines

- it seems like there isn't a process (and this is a OSS-wide issue) of marking a patch as fix/feature (the latter would help the maintainer enormously)

Maybe you can start a separate thread and help figure out such a process? Complaining about unrelated stuff under random patches/PRs won't make that happen, it will only happen if someone takes the initiative. Scratching your own itch and all that.

Quoted 8 lines

- it also appears that sometimes there is a fine line in our minds between what's a fix and what's a feature

So, in a nutshell, series [2] is the v2 of commit [1]. IMHO there is no feature added.
The two commits from series [2] are:
- https://patchwork.ozlabs.org/patch/1116099/
- https://patchwork.ozlabs.org/patch/1116101/

Seems this was not clearly marked as so.
I would suggest Sam sends a V3 on top of this PR and be done with it.

Quoted 8 lines

What's interesting is that, depending on which version of fastboot utility users use/assume, they might see a "regression" introduced by [1-2]. Both [1-2] do changes to align U-Boot with latest fastboot utility from AOSP. What [2] is doing _in addition_ to [1] is:
- remove some dead code in U-Boot which will never be exercised assuming users run the latest fastboot
- place a bold warning in commit description that users are assumed to be using the latest fastboot utility

If this can be fixed better, patches welcome.

Quoted 5 lines
Quoted 2 lines

so merging [1] this late in the release cycle seems like the right thing to do.

My assumption is that Sam would like to see [1] being dropped in favor of [2], as commented in https://patchwork.ozlabs.org/patch/1114850/#2194140

I will leave that up to Sam and Lukasz to figure this out. However, I would prefer a V3 on top of this PR, that's easiest IMO.

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

[1] https://git.denx.de/?p=u-boot/u-boot-usb.git;a=commit;h=97a0c6ff577d57f162abc696c4efc962981229b1
[2] https://patchwork.ozlabs.org/cover/1116097/ ("fastboot: Support
new A/B slot format")

Signature · 2 lines
Best regards,
Marek Vasut
#5 lore raw
Quoted 24 lines · Marek Vasut
Quoted 16 lines · Eugeniu Rosca

Hi Marek,

Quoted 5 lines · Marek Vasut
Quoted 4 lines · Eugeniu Rosca

Hello Marek, Lukasz cc: Sam

On Sat, Jun 15, 2019 at 5:23 AM Marek Vasut <[email protected]> wrote:
[..]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Sam Protsenko (3):
fastboot: Fix slot names reported by getvar

Commit [1] from this PR got replaced by series [2].

Replaced where ? [1] seems like a fix to me, [2] seems like feature addition ,

Quoted 6 lines

Your instincts are correct (i.e. features must be rejected at this late stage) and they deserve credits. However and what seems extremely interesting is:
- it is very easy to masquerade a fix as a feature (and viceversa), just by slightly adjusting the title [1-2] and it's very easy to play with your perception this way

Quoted 5 lines

Likely because free software development is built on trust. If there are malicious actors who decide to not play nice, and even try to manipulate others by elaborately crafting commit messages or otherwise, this might work out to worm patches in. But at the end of the day, this helps no one, so please refrain from such underhanded practices.

Yes, as a community we expect people to be clear and, well, plainly spoken, perhaps is the best way to say it. A bug fix is a bug fix and a new feature is a new feature.

Quoted 12 lines
Quoted 3 lines

- it seems like there isn't a process (and this is a OSS-wide issue) of marking a patch as fix/feature (the latter would help the maintainer enormously)

Maybe you can start a separate thread and help figure out such a process? Complaining about unrelated stuff under random patches/PRs won't make that happen, it will only happen if someone takes the initiative. Scratching your own itch and all that.

Quoted 3 lines

- it also appears that sometimes there is a fine line in our minds between what's a fix and what's a feature

Quoted 8 lines
Quoted 5 lines

So, in a nutshell, series [2] is the v2 of commit [1]. IMHO there is no feature added.
The two commits from series [2] are:
- https://patchwork.ozlabs.org/patch/1116099/
- https://patchwork.ozlabs.org/patch/1116101/

Seems this was not clearly marked as so.
I would suggest Sam sends a V3 on top of this PR and be done with it.

Agreed.

Quoted 11 lines
Quoted 8 lines

What's interesting is that, depending on which version of fastboot utility users use/assume, they might see a "regression" introduced by [1-2]. Both [1-2] do changes to align U-Boot with latest fastboot utility from AOSP. What [2] is doing _in addition_ to [1] is:
- remove some dead code in U-Boot which will never be exercised assuming users run the latest fastboot
- place a bold warning in commit description that users are assumed to be using the latest fastboot utility

If this can be fixed better, patches welcome.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

so merging [1] this late in the release cycle seems like the right thing to do.

My assumption is that Sam would like to see [1] being dropped in favor of [2], as commented in https://patchwork.ozlabs.org/patch/1114850/#2194140

I will leave that up to Sam and Lukasz to figure this out. However, I would prefer a V3 on top of this PR, that's easiest IMO.

Agreed. Thanks all!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190617/2db74060/attachment.sig>
#6 lore raw
In reply to Marek Vasut

Hi Marek,

Quoted 25 lines · Marek Vasut
Quoted 16 lines · Eugeniu Rosca

Hi Marek,

Quoted 5 lines · Marek Vasut
Quoted 4 lines · Eugeniu Rosca

Hello Marek, Lukasz cc: Sam

On Sat, Jun 15, 2019 at 5:23 AM Marek Vasut <[email protected]> wrote:
[..]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Sam Protsenko (3):
fastboot: Fix slot names reported by getvar

Commit [1] from this PR got replaced by series [2].

Replaced where ? [1] seems like a fix to me, [2] seems like feature addition ,

Quoted 6 lines

Your instincts are correct (i.e. features must be rejected at this late stage) and they deserve credits. However and what seems extremely interesting is:
- it is very easy to masquerade a fix as a feature (and viceversa), just by slightly adjusting the title [1-2] and it's very easy to play with your perception this way

Quoted 6 lines

Likely because free software development is built on trust. If there are malicious actors who decide to not play nice, and even try to manipulate others by elaborately crafting commit messages or otherwise, this might work out to worm patches in. But at the end of the day, this helps no one, so please refrain from such underhanded practices.

I believe it's for maintainer to decide, which patches are ok to go to -rc, and which are not. We can always discuss that here in mailing list, if something is not clear.

Quoted 12 lines
Quoted 3 lines

- it seems like there isn't a process (and this is a OSS-wide issue) of marking a patch as fix/feature (the latter would help the maintainer enormously)

Maybe you can start a separate thread and help figure out such a process? Complaining about unrelated stuff under random patches/PRs won't make that happen, it will only happen if someone takes the initiative. Scratching your own itch and all that.

Quoted 3 lines

- it also appears that sometimes there is a fine line in our minds between what's a fix and what's a feature

Quoted 9 lines
Quoted 5 lines

So, in a nutshell, series [2] is the v2 of commit [1]. IMHO there is no feature added.
The two commits from series [2] are:
- https://patchwork.ozlabs.org/patch/1116099/
- https://patchwork.ozlabs.org/patch/1116101/

Seems this was not clearly marked as so.
I would suggest Sam sends a V3 on top of this PR and be done with it.

Agreed. From my point of view, both V2 and V3 are simultaneously harmless *and* not required in this release. Just because there are no users for A/B slotted partitions in upstream U-Boot right now.

The only important fix to be included in release, is this patch-series:

[PATCH v3 0/3] fastboot: Fix getvar "has-slot" and cleanup

which actually fixes fastboot on non-slotted partitions (like on BeagleBoard X15), where right now we are unable to flash images.

Quoted 11 lines
Quoted 8 lines

What's interesting is that, depending on which version of fastboot utility users use/assume, they might see a "regression" introduced by [1-2]. Both [1-2] do changes to align U-Boot with latest fastboot utility from AOSP. What [2] is doing _in addition_ to [1] is:
- remove some dead code in U-Boot which will never be exercised assuming users run the latest fastboot
- place a bold warning in commit description that users are assumed to be using the latest fastboot utility

If this can be fixed better, patches welcome.

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

so merging [1] this late in the release cycle seems like the right thing to do.

My assumption is that Sam would like to see [1] being dropped in favor of [2], as commented in https://patchwork.ozlabs.org/patch/1114850/#2194140

I will leave that up to Sam and Lukasz to figure this out. However, I would prefer a V3 on top of this PR, that's easiest IMO.

Let's make it so. I can send V3 later. Discussed patch ("fastboot: Fix slot names reported by getvar") is not crucial anyway, I guess.

Thanks!

Quoted 10 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

[1] https://git.denx.de/?p=u-boot/u-boot-usb.git;a=commit;h=97a0c6ff577d57f162abc696c4efc962981229b1
[2] https://patchwork.ozlabs.org/cover/1116097/ ("fastboot: Support
new A/B slot format")

--
Best regards,
Marek Vasut

#7 lore raw
Quoted 89 lines · Sam Protsenko

Hi Marek,

Quoted 25 lines · Marek Vasut
Quoted 16 lines · Eugeniu Rosca

Hi Marek,

Quoted 5 lines · Marek Vasut
Quoted 4 lines · Eugeniu Rosca

Hello Marek, Lukasz cc: Sam

On Sat, Jun 15, 2019 at 5:23 AM Marek Vasut <[email protected]> wrote:
[..]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Sam Protsenko (3):
fastboot: Fix slot names reported by getvar

Commit [1] from this PR got replaced by series [2].

Replaced where ? [1] seems like a fix to me, [2] seems like feature addition ,

Quoted 6 lines

Your instincts are correct (i.e. features must be rejected at this late stage) and they deserve credits. However and what seems extremely interesting is:
- it is very easy to masquerade a fix as a feature (and viceversa), just by slightly adjusting the title [1-2] and it's very easy to play with your perception this way

Quoted 6 lines

Likely because free software development is built on trust. If there are malicious actors who decide to not play nice, and even try to manipulate others by elaborately crafting commit messages or otherwise, this might work out to worm patches in. But at the end of the day, this helps no one, so please refrain from such underhanded practices.

I believe it's for maintainer to decide, which patches are ok to go to -rc, and which are not. We can always discuss that here in mailing list, if something is not clear.

Quoted 12 lines
Quoted 3 lines

- it seems like there isn't a process (and this is a OSS-wide issue) of marking a patch as fix/feature (the latter would help the maintainer enormously)

Maybe you can start a separate thread and help figure out such a process? Complaining about unrelated stuff under random patches/PRs won't make that happen, it will only happen if someone takes the initiative. Scratching your own itch and all that.

Quoted 3 lines

- it also appears that sometimes there is a fine line in our minds between what's a fix and what's a feature

Quoted 9 lines
Quoted 5 lines

So, in a nutshell, series [2] is the v2 of commit [1]. IMHO there is no feature added.
The two commits from series [2] are:
- https://patchwork.ozlabs.org/patch/1116099/
- https://patchwork.ozlabs.org/patch/1116101/

Seems this was not clearly marked as so.
I would suggest Sam sends a V3 on top of this PR and be done with it.

Agreed. From my point of view, both V2 and V3 are simultaneously harmless *and* not required in this release. Just because there are no users for A/B slotted partitions in upstream U-Boot right now.

The only important fix to be included in release, is this patch-series:

[PATCH v3 0/3] fastboot: Fix getvar "has-slot" and cleanup

which actually fixes fastboot on non-slotted partitions (like on BeagleBoard X15), where right now we are unable to flash images.

Quoted 17 lines
Quoted 8 lines

What's interesting is that, depending on which version of fastboot utility users use/assume, they might see a "regression" introduced by [1-2]. Both [1-2] do changes to align U-Boot with latest fastboot utility from AOSP. What [2] is doing _in addition_ to [1] is:
- remove some dead code in U-Boot which will never be exercised assuming users run the latest fastboot
- place a bold warning in commit description that users are assumed to be using the latest fastboot utility

If this can be fixed better, patches welcome.

Quoted 5 lines
Quoted 2 lines

so merging [1] this late in the release cycle seems like the right thing to do.

My assumption is that Sam would like to see [1] being dropped in favor of [2], as commented in https://patchwork.ozlabs.org/patch/1114850/#2194140

Quoted 6 lines
Quoted 3 lines

I will leave that up to Sam and Lukasz to figure this out. However, I would prefer a V3 on top of this PR, that's easiest IMO.

Let's make it so. I can send V3 later. Discussed patch ("fastboot: Fix slot names reported by getvar") is not crucial anyway, I guess.

Please do, the USB PR is now in.

Signature · 2 lines
Best regards,
Marek Vasut
#8 lore raw
In reply to Marek Vasut
Quoted 7 lines · Marek Vasut

Assorted gadget fixes.

The following changes since commit c2ea87883ef309570c8903e6de4b8b78685d73d0:

Merge tag 'efi-2019-07-rc5' of git://git.denx.de/u-boot-efi
(2019-06-12 07:15:38 -0400)

Quoted 9 lines

are available in the Git repository at:

git://git.denx.de/u-boot-usb.git master

for you to fetch changes up to 220f655176de8e6aa4aaea91bb2182260d26c4a4:

fastboot: Check if partition really exist in getvar_has_slot()
(2019-06-14 12:39:54 +0200)

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190618/3a50ebf0/attachment.sig>