drm: Fix plane type uabi breakage
Subsystems (2)
PATCH 1/1 drm: Fix plane type uabi breakage
Turns out assuming that only stuff in uabi is uabi is a bit naive, and we have a bunch of properties for which the enum values are placed in random headers. A proper fix would be to split out uapi include headers, but meanwhile sprinkle at least some warning over them.
--- include/drm/drm_blend.h | 3 +++ include/drm/drm_plane.h | 19 +++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-)
include/drm/drm_blend.h +3 -0
@@ -33,6 +33,9 @@ struct drm_atomic_state;* Rotation property bits. DRM_ROTATE_<degrees> rotates the image by the * specified amount in degrees in counter clockwise direction. DRM_REFLECT_X and * DRM_REFLECT_Y reflects the image along the specified axis prior to rotation +* +* WARNING: These defines are UABI since they're exposed in the rotation +* property. */ #define DRM_ROTATE_0 BIT(0)#define DRM_ROTATE_90 BIT(1)
include/drm/drm_plane.h +11 -8
@@ -333,9 +333,20 @@ struct drm_plane_funcs {* DRM_CLIENT_CAP_UNIVERSAL_PLANES client capability bit to indicate that they * wish to receive a universal plane list containing all plane types. See also * drm_for_each_legacy_plane(). +* +* WARNING: The values of this enum is UABI since they're exposed in the "type" +* property. */ enum drm_plane_type {/** +* @DRM_PLANE_TYPE_OVERLAY: +* +* Overlay planes represent all non-primary, non-cursor planes. Some +* drivers refer to these types of planes as "sprites" internally. +*/ +DRM_PLANE_TYPE_OVERLAY , + +/** * @DRM_PLANE_TYPE_PRIMARY: * * Primary planes represent a "main" plane for a CRTC. Primary planes
@@ -353,14 +364,6 @@ enum drm_plane_type {* DRM_IOCTL_MODE_CURSOR2 IOCTLs. */ DRM_PLANE_TYPE_CURSOR, - -/** -* @DRM_PLANE_TYPE_OVERLAY: -* -* Overlay planes represent all non-primary, non-cursor planes. Some -* drivers refer to these types of planes as "sprites" internally. -*/ - DRM_PLANE_TYPE_OVERLAY, };
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Daniel Vetter
Turns out assuming that only stuff in uabi is uabi is a bit naive, and we have a bunch of properties for which the enum values are placed in random headers. A proper fix would be to split out uapi include headers, but meanwhile sprinkle at least some warning over them.
Fixes 532b36712ddf ("drm/doc: Polish for drm_plane.[hc]")Cc Archit Taneja <[email protected]>Cc Sean Paul <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 57 lines
--- include/drm/drm_blend.h | 3 +++ include/drm/drm_plane.h | 19 +++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-)include/drm/drm_blend.h +3
-0@@ -33,6 +33,9 @@ struct drm_atomic_state;* Rotation property bits. DRM_ROTATE_<degrees> rotates the image by the * specified amount in degrees in counter clockwise direction. DRM_REFLECT_X and * DRM_REFLECT_Y reflects the image along the specified axis prior to rotation +* +* WARNING: These defines are UABI since they're exposed in the rotation +* property. */ #define DRM_ROTATE_0 BIT(0)#define DRM_ROTATE_90 BIT(1)include/drm/drm_plane.h +11
-8@@ -333,9 +333,20 @@ struct drm_plane_funcs {* DRM_CLIENT_CAP_UNIVERSAL_PLANES client capability bit to indicate that they * wish to receive a universal plane list containing all plane types. See also * drm_for_each_legacy_plane(). +* +* WARNING: The values of this enum is UABI since they're exposed in the "type" +* property. */ enum drm_plane_type {/** +* @DRM_PLANE_TYPE_OVERLAY: +* +* Overlay planes represent all non-primary, non-cursor planes. Some +* drivers refer to these types of planes as "sprites" internally. +*/ +DRM_PLANE_TYPE_OVERLAY , + +/** * @DRM_PLANE_TYPE_PRIMARY: * * Primary planes represent a "main" plane for a CRTC. Primary planes @@ -353,14 +364,6 @@ enum drm_plane_type {* DRM_IOCTL_MODE_CURSOR2 IOCTLs. */ DRM_PLANE_TYPE_CURSOR, - -/** -* @DRM_PLANE_TYPE_OVERLAY: -* -* Overlay planes represent all non-primary, non-cursor planes. Some -* drivers refer to these types of planes as "sprites" internally. -*/ - DRM_PLANE_TYPE_OVERLAY, };
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Sean Paul
AppliedQuoted 6 lines · Jani Nikula
Quoted 5 lines · Daniel Vetter
Turns out assuming that only stuff in uabi is uabi is a bit naive, and we have a bunch of properties for which the enum values are placed in random headers. A proper fix would be to split out uapi include headers, but meanwhile sprinkle at least some warning over them.
Quoted 7 lines
Quoted 4 lines
Fixes 532b36712ddf ("drm/doc: Polish for drm_plane.[hc]")Cc Archit Taneja <[email protected]>Cc Sean Paul <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Reviewed-by Jani Nikula <[email protected]>
Thanks, applied to drm-misc
Sean
Quoted 57 lines
Quoted 57 lines
--- include/drm/drm_blend.h | 3 +++ include/drm/drm_plane.h | 19 +++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-)include/drm/drm_blend.h +3
-0@@ -33,6 +33,9 @@ struct drm_atomic_state;* Rotation property bits. DRM_ROTATE_<degrees> rotates the image by the * specified amount in degrees in counter clockwise direction. DRM_REFLECT_X and * DRM_REFLECT_Y reflects the image along the specified axis prior to rotation +* +* WARNING: These defines are UABI since they're exposed in the rotation +* property. */ #define DRM_ROTATE_0 BIT(0)#define DRM_ROTATE_90 BIT(1)include/drm/drm_plane.h +11
-8@@ -333,9 +333,20 @@ struct drm_plane_funcs {* DRM_CLIENT_CAP_UNIVERSAL_PLANES client capability bit to indicate that they * wish to receive a universal plane list containing all plane types. See also * drm_for_each_legacy_plane(). +* +* WARNING: The values of this enum is UABI since they're exposed in the "type" +* property. */ enum drm_plane_type {/** +* @DRM_PLANE_TYPE_OVERLAY: +* +* Overlay planes represent all non-primary, non-cursor planes. Some +* drivers refer to these types of planes as "sprites" internally. +*/ +DRM_PLANE_TYPE_OVERLAY , + +/** * @DRM_PLANE_TYPE_PRIMARY: * * Primary planes represent a "main" plane for a CRTC. Primary planes @@ -353,14 +364,6 @@ enum drm_plane_type {* DRM_IOCTL_MODE_CURSOR2 IOCTLs. */ DRM_PLANE_TYPE_CURSOR, - -/** -* @DRM_PLANE_TYPE_OVERLAY: -* -* Overlay planes represent all non-primary, non-cursor planes. Some -* drivers refer to these types of planes as "sprites" internally. -*/ - DRM_PLANE_TYPE_OVERLAY,
Quoted 8 lines
include/drm/drm_plane.h enum drm_plane_type { · line 367
Quoted 1 line
include/drm/drm_plane.h +0
-0};--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 9 lines · Daniel Vetter
Turns out assuming that only stuff in uabi is uabi is a bit naive, and we have a bunch of properties for which the enum values are placed in random headers. A proper fix would be to split out uapi include headers, but meanwhile sprinkle at least some warning over them.
Fixes 532b36712ddf ("drm/doc: Polish for drm_plane.[hc]")Cc Archit Taneja <[email protected]>Cc Sean Paul <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 60 lines
--- include/drm/drm_blend.h | 3 +++ include/drm/drm_plane.h | 19 +++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-)include/drm/drm_blend.h +3
-0@@ -33,6 +33,9 @@ struct drm_atomic_state;* Rotation property bits. DRM_ROTATE_<degrees> rotates the image by the * specified amount in degrees in counter clockwise direction. DRM_REFLECT_X and * DRM_REFLECT_Y reflects the image along the specified axis prior to rotation +* +* WARNING: These defines are UABI since they're exposed in the rotation +* property. */ #define DRM_ROTATE_0 BIT(0)#define DRM_ROTATE_90 BIT(1)include/drm/drm_plane.h +11
-8@@ -333,9 +333,20 @@ struct drm_plane_funcs {* DRM_CLIENT_CAP_UNIVERSAL_PLANES client capability bit to indicate that they * wish to receive a universal plane list containing all plane types. See also * drm_for_each_legacy_plane(). +* +* WARNING: The values of this enum is UABI since they're exposed in the "type" +* property. */ enum drm_plane_type {/** +* @DRM_PLANE_TYPE_OVERLAY: +* +* Overlay planes represent all non-primary, non-cursor planes. Some +* drivers refer to these types of planes as "sprites" internally. +*/ +DRM_PLANE_TYPE_OVERLAY , + +/** * @DRM_PLANE_TYPE_PRIMARY: * * Primary planes represent a "main" plane for a CRTC. Primary planes @@ -353,14 +364,6 @@ enum drm_plane_type {* DRM_IOCTL_MODE_CURSOR2 IOCTLs. */ DRM_PLANE_TYPE_CURSOR, - -/** -* @DRM_PLANE_TYPE_OVERLAY: -* -* Overlay planes represent all non-primary, non-cursor planes. Some -* drivers refer to these types of planes as "sprites" internally. -*/ - DRM_PLANE_TYPE_OVERLAY, };
Signature · 6 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm: Fix plane type uabi breakage
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: drm: Fix plane type uabi breakage
URL : https://patchwork.freedesktop.org/series/12816/
State : success
== Summary ==
Series 12816v1 drm: Fix plane type uabi breakage
https://patchwork.freedesktop.org/api/1.0/series/12816/revisions/1/mbox/
Test kms_busy:
Subgroup basic-flip-default-a:
fail -> PASS (fi-ivb-3520m)
fail -> PASS (fi-skl-6700k)
fail -> PASS (fi-skl-6260u)
fail -> PASS (fi-hsw-4770r)
fail -> PASS (fi-skl-6770hq)
fail -> PASS (fi-byt-n2820)
fail -> PASS (fi-snb-2520m)
fail -> PASS (fi-ilk-650)
fail -> PASS (fi-snb-2600)
fail -> PASS (fi-skl-6700hq)
fail -> PASS (fi-bdw-5557u)
fail -> PASS (fi-hsw-4770k)
Subgroup basic-flip-default-b:
fail -> PASS (fi-ivb-3520m)
fail -> PASS (fi-skl-6700k)
fail -> PASS (fi-skl-6260u)
fail -> PASS (fi-hsw-4770r)
fail -> PASS (fi-skl-6770hq)
fail -> PASS (fi-byt-n2820)
fail -> PASS (fi-snb-2520m)
fail -> PASS (fi-ilk-650)
fail -> PASS (fi-snb-2600)
fail -> PASS (fi-skl-6700hq)
fail -> PASS (fi-bdw-5557u)
fail -> PASS (fi-hsw-4770k)
Subgroup basic-flip-default-c:
fail -> PASS (fi-skl-6770hq)
fail -> PASS (fi-bsw-n3050)
fail -> PASS (fi-ivb-3520m)
fail -> PASS (fi-hsw-4770k)
fail -> PASS (fi-skl-6260u)
fail -> PASS (fi-hsw-4770r)
fail -> PASS (fi-skl-6700k)
fail -> PASS (fi-bdw-5557u)
fail -> PASS (fi-skl-6700hq)
Test kms_cursor_legacy:
Subgroup basic-flip-after-cursor-legacy:
fail -> PASS (fi-ivb-3520m)
fail -> PASS (fi-skl-6700hq)
fail -> PASS (fi-skl-6260u)
fail -> PASS (fi-hsw-4770r)
fail -> PASS (fi-skl-6770hq)
fail -> PASS (fi-byt-n2820)
fail -> PASS (fi-snb-2520m)
fail -> PASS (fi-ilk-650)
fail -> PASS (fi-snb-2600)
fail -> PASS (fi-bsw-n3050)
fail -> PASS (fi-skl-6700k)
fail -> PASS (fi-bdw-5557u)
fail -> PASS (fi-hsw-4770k)
Subgroup basic-flip-after-cursor-varying-size:
fail -> PASS (fi-ivb-3520m)
fail -> PASS (fi-skl-6700hq)
fail -> PASS (fi-skl-6260u)
fail -> PASS (fi-hsw-4770r)
fail -> PASS (fi-skl-6770hq)
fail -> PASS (fi-byt-n2820)
fail -> PASS (fi-snb-2520m)
fail -> PASS (fi-ilk-650)
fail -> PASS (fi-snb-2600)
fail -> PASS (fi-bsw-n3050)
fail -> PASS (fi-skl-6700k)
fail -> PASS (fi-bdw-5557u)
fail -> PASS (fi-hsw-4770k)
Subgroup basic-flip-before-cursor-legacy:
fail -> PASS (fi-ivb-3520m)
fail -> PASS (fi-skl-6700hq)
fail -> PASS (fi-skl-6260u)
fail -> PASS (fi-hsw-4770r)
fail -> PASS (fi-skl-6770hq)
fail -> PASS (fi-byt-n2820)
fail -> PASS (fi-snb-2520m)
fail -> PASS (fi-ilk-650)
fail -> PASS (fi-snb-2600)
fail -> PASS (fi-bsw-n3050)
fail -> PASS (fi-skl-6700k)
fail -> PASS (fi-bdw-5557u)
fail -> PASS (fi-hsw-4770k)
Subgroup basic-flip-before-cursor-varying-size:
fail -> PASS (fi-ivb-3520m)
fail -> PASS (fi-skl-6700hq)
fail -> PASS (fi-skl-6260u)
fail -> PASS (fi-hsw-4770r)
fail -> PASS (fi-skl-6770hq)
fail -> PASS (fi-byt-n2820)
fail -> PASS (fi-snb-2520m)
fail -> PASS (fi-ilk-650)
fail -> PASS (fi-snb-2600)
fail -> PASS (fi-bsw-n3050)
fail -> PASS (fi-skl-6700k)
fail -> PASS (fi-bdw-5557u)
fail -> PASS (fi-hsw-4770k)
Test kms_pipe_crc_basic:
Subgroup hang-read-crc-pipe-a:
fail -> SKIP (fi-bsw-n3050)WARNING: Long output truncated
Results at /archive/results/CI_IGT_test/Patchwork_2571/
20d331a0ba55d8b330962974e815e04418bb7429 drm-intel-nightly: 2016y-09m-22d-16h-04m-36s UTC integration manifest c4699c6 drm: Fix plane type uabi breakage
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx