Skip to contentSkip to conversation

linux-next: Signed-off-by missing for commit in the drm-misc tree

DISCUSSION Stephen Rothwell 5 participants 15 messages Nov 13, 2023 – Nov 24, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Commit

0da611a87021 ("dma-buf: add dma_fence_timestamp helper")

is missing a Signed-off-by from its committer.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 8 lines · Stephen Rothwell

Hi all,

Commit

0da611a87021 ("dma-buf: add dma_fence_timestamp helper")

is missing a Signed-off-by from its committer.

In order to merge the scheduler changes necessary for the Xe driver, those changes were based on drm-tip, which included this change from drm-misc-fixes, but which wasn't present in drm-misc-next.

I didn't want to create a merge conflict between drm-misc-next and drm-misc-fixes, when pulling that change from drm-misc-next to drm-misc-fixes, so that I can apply the Xe scheduler changes on top of drm-misc-next.

Signature · 2 lines
Regards,
Luben
#2 lore raw
Quoted 10 lines · Luben Tuikov
Quoted 8 lines · Stephen Rothwell

Hi all,

Commit

0da611a87021 ("dma-buf: add dma_fence_timestamp helper")

is missing a Signed-off-by from its committer.

Quoted 6 lines

In order to merge the scheduler changes necessary for the Xe driver, those changes were based on drm-tip, which included this change from drm-misc-fixes, but which wasn't present in drm-misc-next.

I didn't want to create a merge conflict between drm-misc-next and drm-misc-fixes, when pulling that change from drm-misc-next to drm-misc-fixes, so that I can apply

... when pulling that change from from drm-misc-fixes into drm-misc-next, so that I can apply...

Quoted 1 line

the Xe scheduler changes on top of drm-misc-next.

The change in drm-misc-fixes is b83ce9cb4a465b. The latter is contained in linus-master, and in drm-misc-fixes, while the former is in drm-misc-next. When we merge linus-master/drm-misc-fixes into drm-misc-next, or whichever way it happens, I'd like to avoid a merge conflict, but wanted to expedite the changes for Xe.

Signature · 2 lines
Regards,
Luben
#3 lore raw

Hi Luben,

Quoted 21 lines · On Mon, 13 Nov 2023 20:32:40 -0500 Luben Tuikov <[email protected]> wrote:
Quoted 10 lines · Luben Tuikov
Quoted 8 lines · Stephen Rothwell

Hi all,

Commit

0da611a87021 ("dma-buf: add dma_fence_timestamp helper")

is missing a Signed-off-by from its committer.

Quoted 6 lines

In order to merge the scheduler changes necessary for the Xe driver, those changes were based on drm-tip, which included this change from drm-misc-fixes, but which wasn't present in drm-misc-next.

I didn't want to create a merge conflict between drm-misc-next and drm-misc-fixes, when pulling that change from drm-misc-next to drm-misc-fixes, so that I can apply

... when pulling that change from from drm-misc-fixes into drm-misc-next, so that I can apply...

Quoted 7 lines
Quoted 1 line

the Xe scheduler changes on top of drm-misc-next.

The change in drm-misc-fixes is b83ce9cb4a465b. The latter is contained in linus-master, and in drm-misc-fixes, while the former is in drm-misc-next. When we merge linus-master/drm-misc-fixes into drm-misc-next, or whichever way it happens, I'd like to avoid a merge conflict, but wanted to expedite the changes for Xe.

None of that is relevant ... if you commit a patch to a tree that will be in the linux kernel tree, you must add your Signed-off-by to the commit.

Signature · 2 lines
Cheers,
Stephen Rothwell
#4 lore raw
Quoted 26 lines · Stephen Rothwell

Hi Luben,

Quoted 23 lines · On Mon, 13 Nov 2023 20:32:40 -0500 Luben Tuikov <[email protected]> wrote:
Quoted 10 lines · Luben Tuikov
Quoted 8 lines · Stephen Rothwell

Hi all,

Commit

0da611a87021 ("dma-buf: add dma_fence_timestamp helper")

is missing a Signed-off-by from its committer.

Quoted 6 lines

In order to merge the scheduler changes necessary for the Xe driver, those changes were based on drm-tip, which included this change from drm-misc-fixes, but which wasn't present in drm-misc-next.

I didn't want to create a merge conflict between drm-misc-next and drm-misc-fixes, when pulling that change from drm-misc-next to drm-misc-fixes, so that I can apply

... when pulling that change from from drm-misc-fixes into drm-misc-next, so that I can apply...

Quoted 1 line

the Xe scheduler changes on top of drm-misc-next.

Quoted 8 lines
Quoted 5 lines

The change in drm-misc-fixes is b83ce9cb4a465b. The latter is contained in linus-master, and in drm-misc-fixes, while the former is in drm-misc-next. When we merge linus-master/drm-misc-fixes into drm-misc-next, or whichever way it happens, I'd like to avoid a merge conflict, but wanted to expedite the changes for Xe.

None of that is relevant ... if you commit a patch to a tree that will be in the linux kernel tree, you must add your Signed-off-by to the commit.

Hi Stephen,

Noted!

So I always do this when I do git-am and such, but wasn't sure for this one single cherry-pick whose original author was the committer in drm-misc-fixes, but will add my Signed-off-by in those rare circumstances.

Thanks for the clarification!

Signature · 2 lines
Regards,
Luben
#5 lore raw

Hi Luben,

BTW, cherry picking commits does not avoid conflicts - in fact it can cause conflicts if there are further changes to the files affected by the cherry picked commit in either the tree/branch the commit was cheery picked from or the destination tree/branch (I have to deal with these all the time when merging the drm trees in linux-next). Much better is to cross merge the branches so that the patch only appears once or have a shared branches that are merged by any other branch that needs the changes.

I understand that things are not done like this in the drm trees :-(

Signature · 2 lines
Cheers,
Stephen Rothwell
#6 lore raw
Quoted 11 lines · Stephen Rothwell

Hi Luben,

BTW, cherry picking commits does not avoid conflicts - in fact it can cause conflicts if there are further changes to the files affected by the cherry picked commit in either the tree/branch the commit was cheery picked from or the destination tree/branch (I have to deal with these all the time when merging the drm trees in linux-next). Much better is to cross merge the branches so that the patch only appears once or have a shared branches that are merged by any other branch that needs the changes.

Quoted 1 line

I understand that things are not done like this in the drm trees :-(

Hi Stephen,

Thank you for the clarification--understood. I'll be more careful in the future. Thanks again! :-)

Signature · 2 lines
Regards,
Luben
#7 lore raw
Quoted 10 lines · Luben Tuikov
Quoted 9 lines · Stephen Rothwell

BTW, cherry picking commits does not avoid conflicts - in fact it can cause conflicts if there are further changes to the files affected by the cherry picked commit in either the tree/branch the commit was cheery picked from or the destination tree/branch (I have to deal with these all the time when merging the drm trees in linux-next). Much better is to cross merge the branches so that the patch only appears once or have a shared branches that are merged by any other branch that needs the changes.

Quoted 6 lines
Quoted 1 line

I understand that things are not done like this in the drm trees :-(

Hi Stephen,

Thank you for the clarification--understood. I'll be more careful in the future. Thanks again! :-)

In this case, the best thing to do would indeed have been to ask the drm-misc maintainers to merge drm-misc-fixes into drm-misc-next.

We're doing that all the time, but we're not ubiquitous so you need to ask us :)

Also, dim should have caught that when you pushed the branch. Did you use it?

Maxime

#8 lore raw
Quoted 18 lines · Maxime Ripard
Quoted 10 lines · Luben Tuikov
Quoted 9 lines · Stephen Rothwell

BTW, cherry picking commits does not avoid conflicts - in fact it can cause conflicts if there are further changes to the files affected by the cherry picked commit in either the tree/branch the commit was cheery picked from or the destination tree/branch (I have to deal with these all the time when merging the drm trees in linux-next). Much better is to cross merge the branches so that the patch only appears once or have a shared branches that are merged by any other branch that needs the changes.

Quoted 6 lines
Quoted 1 line

I understand that things are not done like this in the drm trees :-(

Hi Stephen,

Thank you for the clarification--understood. I'll be more careful in the future. Thanks again! :-)

Quoted 8 lines

In this case, the best thing to do would indeed have been to ask the drm-misc maintainers to merge drm-misc-fixes into drm-misc-next.

We're doing that all the time, but we're not ubiquitous so you need to ask us :)

Also, dim should have caught that when you pushed the branch. Did you use it?

Yeah dim must be used, exactly to avoid these issues. Both for applying patches (so not git am directly, or cherry-picking from your own development branch), and for pushing. The latter is even checked for by the server (dim sets a special push flag which is very long and contains a very clear warning if you bypass it).

If dim was used, this would be a bug in the dim script that we need to fix.

Also backmerges (and in generally anything that is about cross-tree patch wrangling, like cherry-picking) are maintainer duties in drm-misc and not for committers:

https://drm.pages.freedesktop.org/maintainer-tools/maintainer-drm-misc.html#maintainer-s-duties

I think it'd be really good for Luben to go through the docs and supply a patch to clarify this, if it's not clear from the existing docs.

We have some wording in the committer docs, but maybe it's not clear enough:

https://drm.pages.freedesktop.org/maintainer-tools/committer-drm-misc.html#merge-criteria

"Any non-linear actions (backmerges, merging topic branches and sending out pull requests) are only done by the official drm-misc maintainers (see MAINTAINERS, or ask #dri-devel), and not by committers. See the examples section in dim for more info"

Minor screw-ups like this gives us a great opportunity to improve the tooling&docs, let's use it.

Cheers, Sima

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#9 lore raw

Hi Luben,

Quoted 28 lines · Daniel Vetter
Quoted 18 lines · Maxime Ripard
Quoted 10 lines · Luben Tuikov
Quoted 9 lines · Stephen Rothwell

BTW, cherry picking commits does not avoid conflicts - in fact it can cause conflicts if there are further changes to the files affected by the cherry picked commit in either the tree/branch the commit was cheery picked from or the destination tree/branch (I have to deal with these all the time when merging the drm trees in linux-next). Much better is to cross merge the branches so that the patch only appears once or have a shared branches that are merged by any other branch that needs the changes.

Quoted 6 lines
Quoted 1 line

I understand that things are not done like this in the drm trees :-(

Hi Stephen,

Thank you for the clarification--understood. I'll be more careful in the future. Thanks again! :-)

Quoted 8 lines

In this case, the best thing to do would indeed have been to ask the drm-misc maintainers to merge drm-misc-fixes into drm-misc-next.

We're doing that all the time, but we're not ubiquitous so you need to ask us :)

Also, dim should have caught that when you pushed the branch. Did you use it?

Quoted 8 lines

Yeah dim must be used, exactly to avoid these issues. Both for applying patches (so not git am directly, or cherry-picking from your own development branch), and for pushing. The latter is even checked for by the server (dim sets a special push flag which is very long and contains a very clear warning if you bypass it).

If dim was used, this would be a bug in the dim script that we need to fix.

It would be very useful for you to explain what happened here so we improve the tooling or doc and can try to make sure it doesn't happen again

Maxime

#10 lore raw
Quoted 37 lines · Maxime Ripard

Hi Luben,

Quoted 34 lines · Daniel Vetter
Quoted 18 lines · Maxime Ripard
Quoted 10 lines · Luben Tuikov
Quoted 9 lines · Stephen Rothwell

BTW, cherry picking commits does not avoid conflicts - in fact it can cause conflicts if there are further changes to the files affected by the cherry picked commit in either the tree/branch the commit was cheery picked from or the destination tree/branch (I have to deal with these all the time when merging the drm trees in linux-next). Much better is to cross merge the branches so that the patch only appears once or have a shared branches that are merged by any other branch that needs the changes.

Quoted 6 lines
Quoted 1 line

I understand that things are not done like this in the drm trees :-(

Hi Stephen,

Thank you for the clarification--understood. I'll be more careful in the future. Thanks again! :-)

Quoted 8 lines

In this case, the best thing to do would indeed have been to ask the drm-misc maintainers to merge drm-misc-fixes into drm-misc-next.

We're doing that all the time, but we're not ubiquitous so you need to ask us :)

Also, dim should have caught that when you pushed the branch. Did you use it?

Yeah dim must be used, exactly to avoid these issues. Both for applying patches (so not git am directly, or cherry-picking from your own development branch), and for pushing. The latter is even checked for by the server (dim sets a special push flag which is very long and contains a very clear warning if you bypass it).

Quoted 8 lines
Quoted 2 lines

If dim was used, this would be a bug in the dim script that we need to fix.

It would be very useful for you to explain what happened here so we improve the tooling or doc and can try to make sure it doesn't happen again

Maxime

There is no problem with the tooling--I just forced the commit in.

Signature · 2 lines
Regards,
Luben
#11 lore raw
Quoted 41 lines · Luben Tuikov
Quoted 40 lines · Maxime Ripard

Hi Luben,

Quoted 36 lines · Daniel Vetter
Quoted 18 lines · Maxime Ripard
Quoted 10 lines · Luben Tuikov
Quoted 9 lines · Stephen Rothwell

BTW, cherry picking commits does not avoid conflicts - in fact it can cause conflicts if there are further changes to the files affected by the cherry picked commit in either the tree/branch the commit was cheery picked from or the destination tree/branch (I have to deal with these all the time when merging the drm trees in linux-next). Much better is to cross merge the branches so that the patch only appears once or have a shared branches that are merged by any other branch that needs the changes.

Quoted 6 lines
Quoted 1 line

I understand that things are not done like this in the drm trees :-(

Hi Stephen,

Thank you for the clarification--understood. I'll be more careful in the future. Thanks again! :-)

Quoted 8 lines

In this case, the best thing to do would indeed have been to ask the drm-misc maintainers to merge drm-misc-fixes into drm-misc-next.

We're doing that all the time, but we're not ubiquitous so you need to ask us :)

Also, dim should have caught that when you pushed the branch. Did you use it?

Yeah dim must be used, exactly to avoid these issues. Both for applying patches (so not git am directly, or cherry-picking from your own development branch), and for pushing. The latter is even checked for by the server (dim sets a special push flag which is very long and contains a very clear warning if you bypass it).

If dim was used, this would be a bug in the dim script that we need to fix.

Quoted 7 lines
Quoted 5 lines

It would be very useful for you to explain what happened here so we improve the tooling or doc and can try to make sure it doesn't happen again

Maxime

There is no problem with the tooling--I just forced the commit in.

Wait what?

What do you mean by forcing the commit in? Bypass dim?

If yes, please *never* do that when you're dealing with dim managed branches. That's part of the deal for getting commit access, along with following all the other maintainer tools documentation.

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel
#12 lore raw
Quoted 50 lines · Jani Nikula
Quoted 41 lines · Luben Tuikov
Quoted 40 lines · Maxime Ripard

Hi Luben,

Quoted 36 lines · Daniel Vetter
Quoted 18 lines · Maxime Ripard
Quoted 10 lines · Luben Tuikov
Quoted 9 lines · Stephen Rothwell

BTW, cherry picking commits does not avoid conflicts - in fact it can cause conflicts if there are further changes to the files affected by the cherry picked commit in either the tree/branch the commit was cheery picked from or the destination tree/branch (I have to deal with these all the time when merging the drm trees in linux-next). Much better is to cross merge the branches so that the patch only appears once or have a shared branches that are merged by any other branch that needs the changes.

Quoted 6 lines
Quoted 1 line

I understand that things are not done like this in the drm trees :-(

Hi Stephen,

Thank you for the clarification--understood. I'll be more careful in the future. Thanks again! :-)

Quoted 8 lines

In this case, the best thing to do would indeed have been to ask the drm-misc maintainers to merge drm-misc-fixes into drm-misc-next.

We're doing that all the time, but we're not ubiquitous so you need to ask us :)

Also, dim should have caught that when you pushed the branch. Did you use it?

Yeah dim must be used, exactly to avoid these issues. Both for applying patches (so not git am directly, or cherry-picking from your own development branch), and for pushing. The latter is even checked for by the server (dim sets a special push flag which is very long and contains a very clear warning if you bypass it).

If dim was used, this would be a bug in the dim script that we need to fix.

Quoted 7 lines
Quoted 5 lines

It would be very useful for you to explain what happened here so we improve the tooling or doc and can try to make sure it doesn't happen again

Maxime

There is no problem with the tooling--I just forced the commit in.

Quoted 7 lines

Wait what?

What do you mean by forcing the commit in? Bypass dim?

If yes, please *never* do that when you're dealing with dim managed branches. That's part of the deal for getting commit access, along with following all the other maintainer tools documentation.

Hi Jani,

I only use dim, ever.

Signature · 2 lines
Regards,
Luben
#13 lore raw
In reply to Luben Tuikov

Hi,

Quoted 36 lines · Luben Tuikov
Quoted 26 lines · Stephen Rothwell

Hi Luben,

Quoted 23 lines · On Mon, 13 Nov 2023 20:32:40 -0500 Luben Tuikov <[email protected]> wrote:
Quoted 10 lines · Luben Tuikov
Quoted 8 lines · Stephen Rothwell

Hi all,

Commit

0da611a87021 ("dma-buf: add dma_fence_timestamp helper")

is missing a Signed-off-by from its committer.

Quoted 6 lines

In order to merge the scheduler changes necessary for the Xe driver, those changes were based on drm-tip, which included this change from drm-misc-fixes, but which wasn't present in drm-misc-next.

I didn't want to create a merge conflict between drm-misc-next and drm-misc-fixes, when pulling that change from drm-misc-next to drm-misc-fixes, so that I can apply

... when pulling that change from from drm-misc-fixes into drm-misc-next, so that I can apply...

Quoted 1 line

the Xe scheduler changes on top of drm-misc-next.

Quoted 8 lines
Quoted 5 lines

The change in drm-misc-fixes is b83ce9cb4a465b. The latter is contained in linus-master, and in drm-misc-fixes, while the former is in drm-misc-next. When we merge linus-master/drm-misc-fixes into drm-misc-next, or whichever way it happens, I'd like to avoid a merge conflict, but wanted to expedite the changes for Xe.

None of that is relevant ... if you commit a patch to a tree that will be in the linux kernel tree, you must add your Signed-off-by to the commit.

Quoted 7 lines

Noted!

So I always do this when I do git-am and such, but wasn't sure for this one single cherry-pick whose original author was the committer in drm-misc-fixes, but will add my Signed-off-by in those rare circumstances.

Thanks for the clarification!

In order to move forward with this, can you provide your SoB here for that patch so that we can at least point to it in the drm-misc-next PR?

Maxime

#14 lore raw
Quoted 45 lines · Maxime Ripard

Hi,

Quoted 42 lines · Luben Tuikov
Quoted 26 lines · Stephen Rothwell

Hi Luben,

Quoted 23 lines · On Mon, 13 Nov 2023 20:32:40 -0500 Luben Tuikov <[email protected]> wrote:
Quoted 10 lines · Luben Tuikov
Quoted 8 lines · Stephen Rothwell

Hi all,

Commit

0da611a87021 ("dma-buf: add dma_fence_timestamp helper")

is missing a Signed-off-by from its committer.

Quoted 6 lines

In order to merge the scheduler changes necessary for the Xe driver, those changes were based on drm-tip, which included this change from drm-misc-fixes, but which wasn't present in drm-misc-next.

I didn't want to create a merge conflict between drm-misc-next and drm-misc-fixes, when pulling that change from drm-misc-next to drm-misc-fixes, so that I can apply

... when pulling that change from from drm-misc-fixes into drm-misc-next, so that I can apply...

Quoted 1 line

the Xe scheduler changes on top of drm-misc-next.

Quoted 8 lines
Quoted 5 lines

The change in drm-misc-fixes is b83ce9cb4a465b. The latter is contained in linus-master, and in drm-misc-fixes, while the former is in drm-misc-next. When we merge linus-master/drm-misc-fixes into drm-misc-next, or whichever way it happens, I'd like to avoid a merge conflict, but wanted to expedite the changes for Xe.

None of that is relevant ... if you commit a patch to a tree that will be in the linux kernel tree, you must add your Signed-off-by to the commit.

Noted!

So I always do this when I do git-am and such, but wasn't sure for this one single cherry-pick whose original author was the committer in drm-misc-fixes, but will add my Signed-off-by in those rare circumstances.

Quoted 6 lines
Quoted 1 line

Thanks for the clarification!

In order to move forward with this, can you provide your SoB here for that patch so that we can at least point to it in the drm-misc-next PR?

Maxime

Signature · 2 lines
Regards,
Luben