[igt-dev] [PATCH v7 i-g-t 0/4] Add support for testing writeback connectors

Arkadiusz Hiler arkadiusz.hiler at intel.com
Tue Oct 29 09:03:48 UTC 2019


On Mon, Oct 21, 2019 at 09:54:48PM -0300, Rodrigo Siqueira wrote:
> Hi,
> 
> A couple of months ago, I updated and re-submitted a patchset made by
> Brian Starkey and Liviu Dudau for adding a writeback connectors test to
> IGT. It is important to highlight that DRM already have writeback
> connectors support, which is a way to expose in DRM the hardware
> functionality from display engines that allows writing back into memory
> the result of the DE's composition of supported planes.
> 
> After I resubmitted the patchset, Simon Ser provides a long and detailed
> review for all of the patches (thanks Simon). As a result, I finally had
> time to go through all the details and prepare this new version. Follows
> some notes:
> 
> 1. Patchset author
> 
> Brian Starkey is the original author of this patchset, and I'm just
> trying to upstream his changes. Note that during this patch submission,
> the mail server from google going to overwrite Brian's mail by mine;
> this happens on the mail server side for avoiding malicious users to
> send emails as someone else. Note that I could spend time figuring out
> how to fix it, but I think this is not worth since I can fix it during
> the merge process (if it got accepted).

Not sure about your workflow, but properly configured `git send-email`
handles all of that for you.

My .gitconfig is quite basic:

[user]
        name = Arkadiusz Hiler
        email = arkadiusz.hiler at intel.com

[sendemail]
        smtpUser = arkadiusz.hiler at intel.com
        smtpServer = smtpserver.address.example.com

Then when you `git send-email` those patches the tool is clever enough
to recognize that you are not the author.

To have the correct attribution it automatically adds has another
"From:" header-like entry in the email body - this one specifies the
original author - and then sends the patch as you. This is something
that `git am` understands when applying patches.

See example here:
  https://lists.freedesktop.org/archives/igt-dev/2019-October/016966.html

All I had to do was just:
  $ git send-email -4 --to=igt-dev at lists.freedesktop.org


Another issue with how the patches are sent is that they are not chained
correctly. None of them had In-Reply-To header which means they are seen
as a separate patch series by patchwork and people's tooling:

0/4:  https://patchwork.freedesktop.org/series/68352/
1/4:  https://patchwork.freedesktop.org/series/68353/
2/4:  https://patchwork.freedesktop.org/series/68354/
3/4:  https://patchwork.freedesktop.org/series/68355/
4/4:  https://patchwork.freedesktop.org/series/68356/

This means it does not get any automatic testing (whether it is GitLab
Pipeline for static checks or Intel's HW CI) and it's much harder for
people to deal with reviewing and applying them.

Patches 1 through 4 should have been sent with the following header:
  In-Reply-To: <message-id-of-the-cover-letter>

This is also something that is easily fixable with a proper use of
`git send-email`:
  $ git format-patch -4 --cover-letter
  $ $EDITOR 0000-*.patch
  $ git send-email *.patch

-- 
Cheers,
Arek


More information about the igt-dev mailing list