Skip to contentSkip to conversation

Add support for testing writeback connectors

PATCH Superseded Rodrigo Siqueira 3 participants 4 messages Oct 22, 2019 – Nov 5, 2019

v7 of 9 Superseded Latest is v9 →

lore
Share & tools
lore
#0 lore raw

v7 cover Add support for testing writeback connectors

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).

2. Drop the clone commits from the series

After Simon's review, we decided to drop the last two patches of the original series since it was related to cloning output, and VKMS does not support it yet. However, after we finish with this series, I can try to take a look at this feature or maybe propose it as a GSoC/Outreachy project.

3. Changes

Most of the changes happened in the second patch.

Thanks

Brian Starkey (4):
lib/igt_kms: Add writeback support
kms_writeback: Add initial writeback tests
lib: Add function to hash a framebuffer
kms_writeback: Add writeback-check-output

 lib/igt_fb.c           |  68 +++++++
 lib/igt_fb.h           |   2 +
 lib/igt_kms.c          |  59 ++++++
 lib/igt_kms.h          |   6 +
 tests/Makefile.sources |   1 +
 tests/kms_writeback.c  | 413 +++++++++++++++++++++++++++++++++++++++++
 tests/meson.build      |   1 +
 7 files changed, 550 insertions(+)
 create mode 100644 tests/kms_writeback.c
Signature · 1 line
2.23.0

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#1 lore raw
Quoted 16 lines · Rodrigo Siqueira

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

Quoted 7 lines

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 = [email protected]

[sendemail]
smtpUser = [email protected] 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 [email protected]

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
Signature · 6 lines
Cheers,
Arek
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#2 lore raw
In reply to Rodrigo Siqueira
Quoted 1 line · Rodrigo Siqueira

Hi,

Hi Rodrigo,

The whole series looks good to me, you can add my Reviewed-by tag if you want.

Do you plan to push the patches into igt?

Best regards,
Liviu

Quoted 55 lines

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).

2. Drop the clone commits from the series

After Simon's review, we decided to drop the last two patches of the original series since it was related to cloning output, and VKMS does not support it yet. However, after we finish with this series, I can try to take a look at this feature or maybe propose it as a GSoC/Outreachy project.

3. Changes

Most of the changes happened in the second patch.

Thanks

Brian Starkey (4):
lib/igt_kms: Add writeback support
kms_writeback: Add initial writeback tests
lib: Add function to hash a framebuffer
kms_writeback: Add writeback-check-output

 lib/igt_fb.c           |  68 +++++++
 lib/igt_fb.h           |   2 +
 lib/igt_kms.c          |  59 ++++++
 lib/igt_kms.h          |   6 +
 tests/Makefile.sources |   1 +
 tests/kms_writeback.c  | 413 +++++++++++++++++++++++++++++++++++++++++
 tests/meson.build      |   1 +
 7 files changed, 550 insertions(+)
 create mode 100644 tests/kms_writeback.c
Signature · 1 line
2.23.0
Signature · 12 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#3 lore raw
Quoted 8 lines · Liviu Dudau
Quoted 1 line · Rodrigo Siqueira

Hi,

Hi Rodrigo,

The whole series looks good to me, you can add my Reviewed-by tag if you want.

Do you plan to push the patches into igt?

Thanks for the review. I have resend the series so it's picked up correctly by the testing infrascructure.
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev