Skip to contentSkip to conversation

R-Car DU CMM support

GIT PULL Laurent Pinchart 3 participants 11 messages Oct 22, 2019 – Nov 7, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Dave,

Second attempt.

The following changes since commit f1b4a9217efd61d0b84c6dc404596c8519ff6f59:

Merge tag 'du-next-20191016' of git://linuxtv.org/pinchartl/media into drm-next (2019-10-22 15:04:07 +1000)

are available in the Git repository at:

git://linuxtv.org/pinchartl/media.git tags/du-next-20191022

for you to fetch changes up to aad1552f1defd3a5334cd4b2573fae9963d4db57:

drm: rcar-du: crtc: Register GAMMA_LUT properties (2019-10-22 13:21:18 +0300)

----------------------------------------------------------------
- R-Car DU Color Management Module support

----------------------------------------------------------------
Jacopo Mondi (6):
dt-bindings: display: renesas,cmm: Add R-Car CMM documentation
dt-bindings: display, renesas,du: Document cmms property
drm: rcar-du: Add support for CMM
drm: rcar-du: kms: Initialize CMM instances
drm: rcar-du: crtc: Control CMM operations
drm: rcar-du: crtc: Register GAMMA_LUT properties

 .../devicetree/bindings/display/renesas,cmm.yaml   |  67 +++++++
 .../devicetree/bindings/display/renesas,du.txt     |   5 +
 drivers/gpu/drm/rcar-du/Kconfig                    |   7 +
 drivers/gpu/drm/rcar-du/Makefile                   |   1 +
 drivers/gpu/drm/rcar-du/rcar_cmm.c                 | 217 +++++++++++++++++++++
 drivers/gpu/drm/rcar-du/rcar_cmm.h                 |  58 ++++++
 drivers/gpu/drm/rcar-du/rcar_du_crtc.c             |  71 +++++++
 drivers/gpu/drm/rcar-du/rcar_du_crtc.h             |   2 +
 drivers/gpu/drm/rcar-du/rcar_du_drv.h              |   2 +
 drivers/gpu/drm/rcar-du/rcar_du_group.c            |  10 +
 drivers/gpu/drm/rcar-du/rcar_du_group.h            |   2 +
 drivers/gpu/drm/rcar-du/rcar_du_kms.c              |  76 ++++++++
 drivers/gpu/drm/rcar-du/rcar_du_regs.h             |   5 +
 13 files changed, 523 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/renesas,cmm.yaml
 create mode 100644 drivers/gpu/drm/rcar-du/rcar_cmm.c
 create mode 100644 drivers/gpu/drm/rcar-du/rcar_cmm.h
Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Hi Dave,

Has this pull request fallen through the cracks ?

Quoted 45 lines · Laurent Pinchart

Hi Dave,

Second attempt.

The following changes since commit f1b4a9217efd61d0b84c6dc404596c8519ff6f59:

Merge tag 'du-next-20191016' of git://linuxtv.org/pinchartl/media into drm-next (2019-10-22 15:04:07 +1000)

are available in the Git repository at:

git://linuxtv.org/pinchartl/media.git tags/du-next-20191022

for you to fetch changes up to aad1552f1defd3a5334cd4b2573fae9963d4db57:

drm: rcar-du: crtc: Register GAMMA_LUT properties (2019-10-22 13:21:18 +0300)

----------------------------------------------------------------
- R-Car DU Color Management Module support

----------------------------------------------------------------
Jacopo Mondi (6):
dt-bindings: display: renesas,cmm: Add R-Car CMM documentation
dt-bindings: display, renesas,du: Document cmms property
drm: rcar-du: Add support for CMM
drm: rcar-du: kms: Initialize CMM instances
drm: rcar-du: crtc: Control CMM operations
drm: rcar-du: crtc: Register GAMMA_LUT properties

 .../devicetree/bindings/display/renesas,cmm.yaml   |  67 +++++++
 .../devicetree/bindings/display/renesas,du.txt     |   5 +
 drivers/gpu/drm/rcar-du/Kconfig                    |   7 +
 drivers/gpu/drm/rcar-du/Makefile                   |   1 +
 drivers/gpu/drm/rcar-du/rcar_cmm.c                 | 217 +++++++++++++++++++++
 drivers/gpu/drm/rcar-du/rcar_cmm.h                 |  58 ++++++
 drivers/gpu/drm/rcar-du/rcar_du_crtc.c             |  71 +++++++
 drivers/gpu/drm/rcar-du/rcar_du_crtc.h             |   2 +
 drivers/gpu/drm/rcar-du/rcar_du_drv.h              |   2 +
 drivers/gpu/drm/rcar-du/rcar_du_group.c            |  10 +
 drivers/gpu/drm/rcar-du/rcar_du_group.h            |   2 +
 drivers/gpu/drm/rcar-du/rcar_du_kms.c              |  76 ++++++++
 drivers/gpu/drm/rcar-du/rcar_du_regs.h             |   5 +
 13 files changed, 523 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/renesas,cmm.yaml
 create mode 100644 drivers/gpu/drm/rcar-du/rcar_cmm.c
 create mode 100644 drivers/gpu/drm/rcar-du/rcar_cmm.h
Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#3 lore raw
Quoted 4 lines · Dave Airlie
Quoted 1 line · Laurent Pinchart
Quoted 8 lines
Quoted 3 lines

Hi Dave,

Has this pull request fallen through the cracks ?

It fell down a different crack than usual, it made it from patchwork onto my hard drive, but then I didn't execute the pull.

I've pulled it down, thanks for reminder.

Now it failed as I mentioned on irc.

I think the new kconfig option needs to be a tristate, otherwise setting it to Y and having rcar-du as M fails to link

Dave.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

Hi Dave,

(CC'ing Jacopo)

Quoted 10 lines · Dave Airlie
Quoted 9 lines · Dave Airlie
Quoted 4 lines · Laurent Pinchart

Hi Dave,

Has this pull request fallen through the cracks ?

It fell down a different crack than usual, it made it from patchwork onto my hard drive, but then I didn't execute the pull.

Quoted 6 lines
Quoted 1 line

I've pulled it down, thanks for reminder.

Now it failed as I mentioned on irc.

I think the new kconfig option needs to be a tristate, otherwise setting it to Y and having rcar-du as M fails to link

Sorry about that :-S Both I and the 0-day bot failed to catch it. Jacopo, could you please have a look ? I'm afraid this likely mean a new version of the series, and thus missing the merge window, as we're already at -rc6.

Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

This time with Jacopo correctly CC'ed.

Quoted 26 lines · Laurent Pinchart

Hi Dave,

(CC'ing Jacopo)

Quoted 10 lines · Dave Airlie
Quoted 9 lines · Dave Airlie
Quoted 4 lines · Laurent Pinchart

Hi Dave,

Has this pull request fallen through the cracks ?

It fell down a different crack than usual, it made it from patchwork onto my hard drive, but then I didn't execute the pull.

Quoted 6 lines
Quoted 1 line

I've pulled it down, thanks for reminder.

Now it failed as I mentioned on irc.

I think the new kconfig option needs to be a tristate, otherwise setting it to Y and having rcar-du as M fails to link

Sorry about that :-S Both I and the 0-day bot failed to catch it. Jacopo, could you please have a look ? I'm afraid this likely mean a new version of the series, and thus missing the merge window, as we're already at -rc6.

Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

Hi Laurent, Dave,

Quoted 29 lines · Laurent Pinchart

This time with Jacopo correctly CC'ed.

Quoted 26 lines · Laurent Pinchart

Hi Dave,

(CC'ing Jacopo)

Quoted 10 lines · Dave Airlie
Quoted 9 lines · Dave Airlie
Quoted 4 lines · Laurent Pinchart

Hi Dave,

Has this pull request fallen through the cracks ?

It fell down a different crack than usual, it made it from patchwork onto my hard drive, but then I didn't execute the pull.

Quoted 6 lines
Quoted 1 line

I've pulled it down, thanks for reminder.

Now it failed as I mentioned on irc.

I think the new kconfig option needs to be a tristate, otherwise setting it to Y and having rcar-du as M fails to link

Sorry about that :-S Both I and the 0-day bot failed to catch it. Jacopo, could you please have a look ? I'm afraid this likely mean a new version of the series, and thus missing the merge window, as we're already at -rc6.

I managed to reproduce it by setting DRM=m.
RCAR_CMM stays indeed =y as it's a bool. Simply setting it to tristate is enough to have it set to =m when DRM=m.

Could this be changed when applying the series ?

drivers/gpu/drm/rcar-du/Kconfig +1 -1
index 539d232790d1..e6607b5c8bb3 100644
@@ -14,7 +14,7 @@ config DRM_RCAR_DU
          If M is selected the module will be called rcar-du-drm.
 
 config DRM_RCAR_CMM
-       bool "R-Car DU Color Management Module (CMM) Support"
+       tristate "R-Car DU Color Management Module (CMM) Support"
        depends on DRM && OF
        depends on DRM_RCAR_DU
        help

Thanks
j

Quoted 5 lines

--
Regards,

Laurent Pinchart

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

#7 lore raw

Hello,

Quoted 36 lines · Jacopo Mondi
Quoted 16 lines · Laurent Pinchart
Quoted 15 lines · Laurent Pinchart
Quoted 14 lines · Dave Airlie
Quoted 10 lines · Dave Airlie
Quoted 4 lines · Laurent Pinchart

Hi Dave,

Has this pull request fallen through the cracks ?

It fell down a different crack than usual, it made it from patchwork onto my hard drive, but then I didn't execute the pull.

I've pulled it down, thanks for reminder.

Now it failed as I mentioned on irc.

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

I think the new kconfig option needs to be a tristate, otherwise setting it to Y and having rcar-du as M fails to link

Sorry about that :-S Both I and the 0-day bot failed to catch it. Jacopo, could you please have a look ? I'm afraid this likely mean a new version of the series, and thus missing the merge window, as we're already at -rc6.

I managed to reproduce it by setting DRM=m.
RCAR_CMM stays indeed =y as it's a bool. Simply setting it to tristate is enough to have it set to =m when DRM=m.

Could this be changed when applying the series ?

drivers/gpu/drm/rcar-du/Kconfig +0 -0
index 539d232790d1..e6607b5c8bb3 100644

drivers/gpu/drm/rcar-du/Kconfig config DRM_RCAR_DU · line 20

Quoted 8 lines
drivers/gpu/drm/rcar-du/Kconfig +1 -1
@@ -14,7 +14,7 @@ config DRM_RCAR_DU
          If M is selected the module will be called rcar-du-drm.
 
 config DRM_RCAR_CMM
-       bool "R-Car DU Color Management Module (CMM) Support"
+       tristate "R-Car DU Color Management Module (CMM) Support"
        depends on DRM && OF
        depends on DRM_RCAR_DU
        help

This looks reasonable to me. I'll let Dave decide if he wants to apply this change himself, or if I should send a new pull request for v5.6.

Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

Hi Jacopo,

Quoted 39 lines · Laurent Pinchart
Quoted 38 lines · Jacopo Mondi
Quoted 16 lines · Laurent Pinchart
Quoted 15 lines · Laurent Pinchart
Quoted 14 lines · Dave Airlie
Quoted 10 lines · Dave Airlie
Quoted 4 lines · Laurent Pinchart

Hi Dave,

Has this pull request fallen through the cracks ?

It fell down a different crack than usual, it made it from patchwork onto my hard drive, but then I didn't execute the pull.

I've pulled it down, thanks for reminder.

Now it failed as I mentioned on irc.

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

I think the new kconfig option needs to be a tristate, otherwise setting it to Y and having rcar-du as M fails to link

Sorry about that :-S Both I and the 0-day bot failed to catch it. Jacopo, could you please have a look ? I'm afraid this likely mean a new version of the series, and thus missing the merge window, as we're already at -rc6.

I managed to reproduce it by setting DRM=m.
RCAR_CMM stays indeed =y as it's a bool. Simply setting it to tristate is enough to have it set to =m when DRM=m.

Could this be changed when applying the series ?

drivers/gpu/drm/rcar-du/Kconfig +0 -0
index 539d232790d1..e6607b5c8bb3 100644
@@ -14,7 +14,7 @@ config DRM_RCAR_DU
          If M is selected the module will be called rcar-du-drm.
 
Quoted 9 lines

drivers/gpu/drm/rcar-du/Kconfig config DRM_RCAR_DU · line 20

Quoted 6 lines
drivers/gpu/drm/rcar-du/Kconfig +1 -1
 config DRM_RCAR_CMM
-       bool "R-Car DU Color Management Module (CMM) Support"
+       tristate "R-Car DU Color Management Module (CMM) Support"
        depends on DRM && OF
        depends on DRM_RCAR_DU
        help

This looks reasonable to me. I'll let Dave decide if he wants to apply this change himself, or if I should send a new pull request for v5.6.

Actually this won't work. With DRM_RCAR_DU=y and DRM_RCAR_CMM=m you'll have a link failure.

Let's fix this properly for v5.6. Could you please propose a fix that will work with all combinations of DRM, DRM_RCAR_DU and DRM_RCAR_CMM ?

Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

Hi Laurent,

Quoted 52 lines · Laurent Pinchart

Hi Jacopo,

Quoted 39 lines · Laurent Pinchart
Quoted 38 lines · Jacopo Mondi
Quoted 16 lines · Laurent Pinchart
Quoted 15 lines · Laurent Pinchart
Quoted 14 lines · Dave Airlie
Quoted 10 lines · Dave Airlie
Quoted 4 lines · Laurent Pinchart

Hi Dave,

Has this pull request fallen through the cracks ?

It fell down a different crack than usual, it made it from patchwork onto my hard drive, but then I didn't execute the pull.

I've pulled it down, thanks for reminder.

Now it failed as I mentioned on irc.

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

I think the new kconfig option needs to be a tristate, otherwise setting it to Y and having rcar-du as M fails to link

Sorry about that :-S Both I and the 0-day bot failed to catch it. Jacopo, could you please have a look ? I'm afraid this likely mean a new version of the series, and thus missing the merge window, as we're already at -rc6.

I managed to reproduce it by setting DRM=m.
RCAR_CMM stays indeed =y as it's a bool. Simply setting it to tristate is enough to have it set to =m when DRM=m.

Could this be changed when applying the series ?

drivers/gpu/drm/rcar-du/Kconfig +0 -0
index 539d232790d1..e6607b5c8bb3 100644
@@ -14,7 +14,7 @@ config DRM_RCAR_DU
          If M is selected the module will be called rcar-du-drm.
 
Quoted 9 lines

drivers/gpu/drm/rcar-du/Kconfig config DRM_RCAR_DU · line 20

Quoted 6 lines
drivers/gpu/drm/rcar-du/Kconfig +1 -1
 config DRM_RCAR_CMM
-       bool "R-Car DU Color Management Module (CMM) Support"
+       tristate "R-Car DU Color Management Module (CMM) Support"
        depends on DRM && OF
        depends on DRM_RCAR_DU
        help

This looks reasonable to me. I'll let Dave decide if he wants to apply this change himself, or if I should send a new pull request for v5.6.

Quoted 3 lines

Actually this won't work. With DRM_RCAR_DU=y and DRM_RCAR_CMM=m you'll have a link failure.

You're right.. Actually just changing the RCAR_CMM option to tristate won't be enough. Adding "imply DRM_RCAR_CMM" to the DU option instead makes it impossible to select CMM=m when DU=y and viceversa, so it should be enough.

Quoted 2 lines

Let's fix this properly for v5.6. Could you please propose a fix that will work with all combinations of DRM, DRM_RCAR_DU and DRM_RCAR_CMM ?

Can I send a v6.1 version of the CMM patch only, or would you prefer a v7 ? we're anyway late for 5.5 I presume

Thanks
j

Quoted 5 lines

--
Regards,

Laurent Pinchart

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

#10 lore raw

Hi Jacopo,

Quoted 59 lines · Jacopo Mondi
Quoted 50 lines · Laurent Pinchart
Quoted 39 lines · Laurent Pinchart
Quoted 38 lines · Jacopo Mondi
Quoted 16 lines · Laurent Pinchart
Quoted 15 lines · Laurent Pinchart
Quoted 14 lines · Dave Airlie
Quoted 10 lines · Dave Airlie
Quoted 4 lines · Laurent Pinchart

Hi Dave,

Has this pull request fallen through the cracks ?

It fell down a different crack than usual, it made it from patchwork onto my hard drive, but then I didn't execute the pull.

I've pulled it down, thanks for reminder.

Now it failed as I mentioned on irc.

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

I think the new kconfig option needs to be a tristate, otherwise setting it to Y and having rcar-du as M fails to link

Sorry about that :-S Both I and the 0-day bot failed to catch it. Jacopo, could you please have a look ? I'm afraid this likely mean a new version of the series, and thus missing the merge window, as we're already at -rc6.

I managed to reproduce it by setting DRM=m.
RCAR_CMM stays indeed =y as it's a bool. Simply setting it to tristate is enough to have it set to =m when DRM=m.

Could this be changed when applying the series ?

drivers/gpu/drm/rcar-du/Kconfig +0 -0
index 539d232790d1..e6607b5c8bb3 100644
@@ -14,7 +14,7 @@ config DRM_RCAR_DU
          If M is selected the module will be called rcar-du-drm.
 
Quoted 9 lines

drivers/gpu/drm/rcar-du/Kconfig config DRM_RCAR_DU · line 20

Quoted 6 lines
drivers/gpu/drm/rcar-du/Kconfig +1 -1
 config DRM_RCAR_CMM
-       bool "R-Car DU Color Management Module (CMM) Support"
+       tristate "R-Car DU Color Management Module (CMM) Support"
        depends on DRM && OF
        depends on DRM_RCAR_DU
        help

This looks reasonable to me. I'll let Dave decide if he wants to apply this change himself, or if I should send a new pull request for v5.6.

Quoted 2 lines

Actually this won't work. With DRM_RCAR_DU=y and DRM_RCAR_CMM=m you'll have a link failure.

You're right.. Actually just changing the RCAR_CMM option to tristate won't be enough. Adding "imply DRM_RCAR_CMM" to the DU option instead makes it impossible to select CMM=m when DU=y and viceversa, so it should be enough.

Quoted 5 lines
Quoted 2 lines

Let's fix this properly for v5.6. Could you please propose a fix that will work with all combinations of DRM, DRM_RCAR_DU and DRM_RCAR_CMM ?

Can I send a v6.1 version of the CMM patch only, or would you prefer a v7 ? we're anyway late for 5.5 I presume

v6.1 should be enough. Please make sure you test all combinations of CONFIG_DRM_RCAR_DU and CONFIG_DRM_RCAR_CMM :-)

Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel