Add new general DRM property "color format"
Subsystems (10)
v15 cover Add new general DRM property "color format"
Hello,
this is a follow-up to
https://lore.kernel.org/all/[email protected]/
which in of itself is a follow-up to
https://lore.kernel.org/dri-devel/[email protected]/ where a new DRM connector property has been added allowing users to
force a particular color format.
That in turn was actually also a follow-up from Werner Sembach's posted at
https://lore.kernel.org/dri-devel/[email protected]/
As the number of cooks have reached critical mass, I'm hoping I'll be the last person to touch this particular series.
We have an implementation in Weston at
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1825 that adds support for this property. This patch series has been tested against that MR on i915 (HDMI, DP), amdgpu (HDMI, DP) and on rockchip (HDMI).
You can also manually test this with modetest like so, but beware that this is a non-atomic invocation, so testing YUV420 like this will result in weird outcomes if only some of the modes support YUV420:
$ modetest -s 115:1920x1080-60@NV12 -w 115:'color format':4
where 115 is the connector ID and '4' is the enum value for a particular color format.
General notes on the approach taken by me: instead of silently switching to a different format than was explicitly requested, or even worse, outputting something to the sink the sink doesn't support, bubble up an error to userspace instead. "color format" is a "I want this" type property, not a "force this" type property, i.e. the kernel will respect the limits imposed by the hardware.
Things I've tested:
- HDMI (YCbCr 4:4:4 + YCbCr 4:2:2 (8-bit) + RGB + Auto) on RK3588
- HDMI (YCbCr 4:4:4 + YCbCr 4:2:2 (8-bit) + RGB + Auto) on RK3576
- HDMI (YCbCr 4:4:4, YCbCr 4:2:0, RGB, Auto) + DP (YCbCr 4:4:4, RGB, Auto) on Intel N97 (i915).
- HDMI (YCbCr 4:4:4, YCbCr 4:2:2, YCbCr 4:2:0, RGB, Auto) + DP (YCbCr 4:4:4, RGB, Auto) on an AMD Radeon RX 550 (amdgpu).
---
Changes in v15:
- Drop redundant drm_connector_color_format_valid() function
- dw-hdmi-qp-rockchip: make dw_hdmi_qp_rockchip_get_vop_format()'s
return type int, check bstate for IS_ERR rather than NULL, and pass up
error codes to caller
- rebase onto recent drm-tip, necessitating s/drm_atomic_state/drm_atomic_commit/ in the KUnit tests
- Link to v14: https://patch.msgid.link/[email protected]
Changes in v14:
- i915: Check for source support of YCbCr444 in both the sink format
validation and when registering the properites on the connectors.
- i915: Split HDMI and DP implementations into separate patches, with
their own supported color formats masks.
- Link to v13: https://patch.msgid.link/[email protected]
Changes in v13:
- Introduce a new drm_connector_funcs member that returns the
connector state's color format with additional bells and whistles.
- Implement this new func in drm_bridge_connector to return whatever the
HDMI implementation did if an HDMI bridge is present.
- Call into the drm_connector.h function wrapping this new func in the recursive bridge chain bus format selection code.
- Link to v12: https://patch.msgid.link/[email protected]
Changes in v12:
- Rebase on top of Ville's i915 format selection cleanup series
- i915: Reimplement based on new format selection code. Drop the DP-MST implementation, as sinks with different sets of supported formats
complicate the matter.
- Adjust documentation on drm_connector_color_format enum values to
mention quantization ranges.
- Add documentation to drm-kms page to document the string values for
the property. Mostly the same documentation as the enum values, but
from a more userspace-centric perspective. This is done in the patch
that introduces the property, but I didn't drop the existing R-b as
it isn't a functional change.
- Update documentation of "colorspace" property to mention that "color
format" property controls the output format.
- amdgpu: Remove property from DP-MST, as it's unclear whether it'd work properly with sinks that have different sets of supported formats
- Link to v11: https://patch.msgid.link/[email protected]
Changes in v11:
- amdgpu: fix property registration on DP-MST
- i915: fix property registration on DP-MST
- rebase on drm-tip, which includes Maxime's refactor series that was
previously declared a dependency of this series
- Link to v10: https://lore.kernel.org/r/[email protected]
Changes in v10:
- Make DRM_OUTPUT_COLOR_FORMAT_COUNT and
DRM_CONNECTOR_COLOR_FORMAT_COUNT part of the enum definition (thanks
to Maxime)
- Preemptively avoid the warning that would be generated by the
enumification of DRM_OUTPUT_COLOR_FORMAT_COUNT by modifying the
problematic switch statement in drm_hdmi_state_helper's sink_supports_format_bpc.
- drm/bridge: Change HDMI check from checking for the last bridge having
a DRM_BRIDGE_OP_HDMI in ops to checking if last_bridge->type is HDMIA.
This is not quite the suggestion Dmitry had, but according to the documentation of the drm_bridge.type member, and the
display-connector.c code, it should be correct.
- Combine drm_mode_create_color_format_property and drm_connector_attach_color_format_property into one function named the latter. (thanks to Dmitry Baryshkov)
- Change author of 'drm: Add new general DRM property "color format"'
to myself as it has by now changed quite a bit, and add Andri and
Werner as Co-developed-by, as per Andri's suggestion.
- hdmi-state-helper: Rework hdmi_compute_config to make code flow more obvious, and drop Dmitry's R-b as a consequence (thanks to Maxime)
- Move dw-hdmi-qp's atomic_get_output_bus_fmts into
drm_bridge_helper.c, along with kernel doc string (thanks to Dmitry)
- Future-proof the aforementioned get_output_bus_fmts use of hweight8 on
the supported_formats bitmask with a BUILD_BUG_ON.
- Add a KUnit test for the HDMI output bus formats helper
- Link to v9: https://lore.kernel.org/r/[email protected]
Changes in v9:
- Document what the "AUTO" behaviour is in the color format enum (thanks
to Maxime)
- drm/bridge: dw-hdmi-qp: Fix a rebase oopsie that reintroduced some
functions that were dropped. (thanks to Cristian)
- drm/bridge: Shuffle "1:1" in the bridge fmt selection docs to earlier
in the sentence. (thanks to Randy Dunlap)
- i915: Check chosen output format against requested format for dp-mst
- All color format driver implementations: rebase and rework on top of Maxime's series
- As part of this rework, rename drm_color_format_enum to drm_connector_color_format
- drm kunit tests: rework for the new enums. Changes were trivial, so
trailers were kept
- Link to v8: https://lore.kernel.org/r/[email protected]
Changes in v8:
- Drop "drm/rockchip: vop2: Fix YUV444 output", as the original problem
could not be reproduced anymore, and the justification did not make
sense.
- Remove the 12-bit format from "drm/rockchip: vop2: Recognise 10/12-bit YUV422 as YUV formats".
- Refactor to keep the original DRM_COLOR_FORMAT bitshifted defines
as-is, but introduce a new drm_color_format_enum enum.
- Adjust conversion functions for the newly refactored enum, ensuring
they only return valid enum values, and only convert in directions
that open up no error value cans of worms.
- Rework the property uapi code for the newly refactored enum, since
it no longer needs to do any bitshifting or ffs().
- Rework all the device drivers for the new enum.
- Rework all the tests for the refactored enum.
- Rework the hdmi state helper for the new enum, and also make it more explicit about the auto behaviour by not relying on a conversion
function to map AUTO to RGB, but do this in the framework itself.
- rockchip dw_hdmi_qp: Fix the GRF value to check for color >= 0 instead
of color > 0, as the latter broke switching back to RGB.
- Rebase onto a recent drm-tip. This necessitated blindly reworking some
of the i915 dp-mst code.
- Drop the __maybe_unused edid test patch, as I could no longer
reproduce the build warnings I added it for. I blame ghosts.
- drm_bridge tests: remove "destroyed" member from struct drm_bridge_chain_priv and all associated code, as it was not used in
any test.
- Link to v7: https://lore.kernel.org/r/[email protected]
Changes in v7:
- Fix drm_bridge kunit test build failure caused by rebasing across an
API change.
- Make compilers shut up about unused EDID definitions in the test
suites.
- Empty line checkpatch fixes that b4 prep --check didn't catch.
- Link to v6: https://lore.kernel.org/r/[email protected]
Changes in v6:
- Checkpatch fixes
- Add drm_bridge.c kerneldoc fix patch to b4 deps so the kernel docs
required for every contribution to the subsystem can be built
- dw-hdmi-qp core has gained the atomic_get_output_bus_fmts bridge func,
which allows it to participate in the drm_bridge chain recursive format selection code properly.
- The Rockchip dw-hdmi-qp integration now no longer reimplements the
color format logic (improperly), but reads the bus format of the first bridge as set by the recursive bridge format selection. If the input
format is FIXED, it'll use the output format. Otherwise, the input
format is used.
- In the synopsys drivers, YUV422 uses the same bus format as the non-qp
hdmi encoder driver. Probably correcter this way. The Rockchip vop2
is_yuv function has been extended to recognise this format as well.
- KUnit tests for drm_bridge chains are now included, which exercise the chain's recursive bus format selection.
- On HDMI connectors, the drm_bridge bus format selection will try to target the color format that the HDMI layer came up with. This means the AUTO
logic is not duplicated for HDMI connectors.
- The enum conversion function commit gained a function for converting
from hdmi_colorspace to drm_color_format, and its author changed as no original code remains anyway. Marius is still included as a
Co-developer.
- Some tests for the HDMI state helper's mode_valid have been written.
They are incomplete as we lack a test EDID for a 420-also mode that
would violate the clock constraints on RGB. I hacked one together with
a hex editor, but it reports a too high of a clock rate, and there's
no EDID editor I could find which supports these extension blocks.
- The color_format KUnit tests have been more heavily parameterised, the
auto case absorbed into other tests, and the comments around them
rewritten.
- Add a few paragraphs of documentation that explain the bridge format selection, and how to make use of it in a display driver.
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- Rebase onto drm-tip
- Drop DRM_MODE_COLOR_FORMAT_* as an enum
- Unify DRM_COLOR_FORMAT_NONE and DRM_COLOR_FORMAT_AUTO, with AUTO being
0. This makes conversion and general logic much easier.
- Adjust the drm_color_format enum to not needlessly renumber the
existing defines, as it doesn't need to correspond to how HDMI numbers
them.
- Make the DRM-to-HDMI conversion function static inline __pure, because
the assembly it generates is tiny, and the function is pure.
- Don't accept nothing as the list of supported color formats for
registration of the property.
- Drop the per-connector variants of the color format registration
function, as it's not needed.
- drm_hdmi_state_helper: Fix mode_valid rejecting 420-only modes.
- drm_hdmi_state_helper: Only fall back to YUV420 with
DRM_COLOR_FORMAT_AUTO.
- drm_hdmi_state_helper: Remove redundant AUTO->RGB condition, as the conversion already does this.
- Add KUnit tests for hdmi_compute_config.
- drm/bridge: Refactor bus_format_is_color_fmt and add a few more YUV422 formats.
- Register the color format property in drmm_connector_hdmi_init based
on the supported HDMI formats passed to it. This means rockchip
dw_hdmi_qp no longer needs to register it.
- amdgpu: Simplify YUV420 logic
- amdgpu: Don't try to pick YUV444 on YUV420-only modes
- i915: Try to make behaviour more or less the same as that of the drm
hdmi state helper.
- rockchip dw_hdmi_qp: Set supported HDMI formats
- rockchip dw_hdmi_qp: Set the right VO GRF values depending on color
format.
- rockchip dw_hdmi_qp: Act on the color format property in this driver,
rather than in VOP2, by setting the bus_format appropriately.
- rockchip VOP2: Can the BCSH-based implementation. BCSH isn't available
on all video ports of the hardware, and the code was extremely
suspect. Instead, plug into the existing YUV-to-RGB/RGB-to-YUV code,
which can be done now that the HDMI driver sets the bus format.
- A whole bunch of Rockchip VOP2 fixes.
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Rebase onto next-20251117
- Get rid of HDMI_COLORSPACE_AUTO
- Split hdmi_compute_config change into separate patch
- Add missing symbol export for color_format_to_hdmi_colorspace to fix builds in certain configurations
- Drop "drm: Pass supported color formats straight onto drm_bridge"
- Make dw-hdmi-qp set the platform data's supported color formats as
the bridge's supported HDMI color formats
- drm_hdmi_state_helper: pass requested color format to hdmi_compute_format_bpc if set.
- drm_bridge: limit the bus formats to those explicitly requested with
the color format property during the atomic bridge check call, specifically in drm_atomic_bridge_chain_select_bus_fmts.
- i915: Remove INTEL_OUTPUT_FORMAT_AUTO, as automatic format selection
does not need to involve the hardware state
- i915: Deduplicate ntel_output_format_to_drm_color_format code by
moving it as a static inline __pure function into a shared header
- i915: rework logic in HDMI, DP and DP-MST output config functions to remove redundant locals, simplify execution flow, and return an error
to userspace if an explicit color_format request can't be satisfied.
- i915: assign myself as the author and make the others Co-developers,
so that they don't get the blame for any of my bugs.
- amdgpu: refactor fill_stream_properties_from_drm_display_mode to
improve readability and ensure that impossible color format requests
get bubbled up to userspace as errors
- amdgpu: don't pick YUV444 over RGB.
- amdgpu: assign authorship to myself, with others as Co-developers, as logic was modified and the blame should fall on me
- dw_hdmi_qp-rockchip: set the supported color formats platform data
member
- rockchip: remove drm property registration for rk3066_hdmi and
inno_hdmi. None of the platforms that use these use vop2 as the
video output processor.
- Link to v3: https://lore.kernel.org/all/[email protected]/
Changes in v3 by mvlad compared to Andri's v2 series:
- renamed the property to just 'color format'
- the property is added dynamically similar to the Colorspace property
- a key point from previous comments was that drivers should advertise
the color formats they support and userspace would query EDID and
perform an intersection from those color formats which users can
further use. With this patch set each driver that adds this property
has such list of hard-coded color formats, but fundamentally the idea
is that driver can query the HW and do that on its own. The infrastructure is now in place to allow to do that
- by default the 'AUTO' color format is set. With this patch series that has been introduced as a fallback to RGB. Drivers could further
customize this behavour and could perform additional checks on the sink to pick another suitable color format they'd like for AUTO
- drm_bridge bridge code has been improved to allow initialization with
the same color formats list as the DRM connector property. Similarly, bpc pick-up now takes the color format into consideration when deciding
which bpc to choose from
- The new DRM color format re-uses HDMI_COLORPSACE enum and provides an enum translations between the two to avoid touching all other drivers that use HDMI_COLORPSACE enum. I believe at this point that this allows the least amount of disruption and avoids a massive bike shedding around
that part
- a rockchip implementation has been by my colleague Derek Foreman
- YUV444 color format has been added in i915
- address comment about "Remove unnecessary SIGNAL_TYPE_HDMI_TYPE_A
check" where aconnector might be invalid
- Link to v2: https://lore.kernel.org/dri-devel/[email protected]/
---
Nicolas Frattaroli (27):
drm/display: hdmi-state-helper: Use default case for unsupported formats
drm: Add new general DRM property "color format" drm/connector: Let connectors have a say in their color format drm/display: bridge_connector: Use HDMI color format for HDMI conns drm/bridge: Act on the DRM color format property drm/atomic-helper: Add HDMI bridge output bus formats helper drm/display: hdmi-state-helper: Act on color format DRM property drm/display: hdmi-state-helper: Try subsampling in mode_valid drm/amdgpu: Implement "color format" DRM property drm/i915/hdmi: Add YCBCR444 handling for sink formats drm/i915/dp: Add YCBCR444 handling for sink formats drm/i915/hdmi: Implement "color format" DRM property drm/i915/dp: Implement "color format" DRM property drm/rockchip: Add YUV422 output mode constants for VOP2 drm/rockchip: vop2: Add RK3576 to the RG swap special case drm/rockchip: vop2: Recognise 10-bit YUV422 as YUV format drm/rockchip: vop2: Set correct output format for RK3576 YUV422 drm/bridge: dw-hdmi-qp: Use common HDMI output bus fmts helper drm/rockchip: dw_hdmi_qp: Implement "color format" DRM property drm/rockchip: dw_hdmi_qp: Set supported_formats platdata drm/connector: Register color format property on HDMI connectors drm/tests: hdmi: Add tests for the color_format property drm/tests: hdmi: Add tests for HDMI helper's mode_valid drm/tests: bridge: Add KUnit tests for bridge chain format selection drm/tests: bridge: Add test for HDMI output bus formats helper drm/bridge: Document bridge chain format selection drm/connector: Update docs of "colorspace" for color format prop
Werner Sembach (1):
drm/amd/display: Remove unnecessary SIGNAL_TYPE_HDMI_TYPE_A check
Documentation/gpu/drm-kms-helpers.rst | 6 + Documentation/gpu/drm-kms.rst | 6 + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 91 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 1 + drivers/gpu/drm/display/drm_bridge_connector.c | 24 + drivers/gpu/drm/display/drm_hdmi_state_helper.c | 53 +- drivers/gpu/drm/drm_atomic_helper.c | 86 ++ drivers/gpu/drm/drm_atomic_uapi.c | 4 + drivers/gpu/drm/drm_bridge.c | 104 ++- drivers/gpu/drm/drm_connector.c | 178 +++- drivers/gpu/drm/i915/display/intel_dp.c | 82 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 84 +- drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 111 ++- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 4 + drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 21 +- drivers/gpu/drm/tests/drm_bridge_test.c | 971 +++++++++++++++++++++ drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 345 ++++++++ include/drm/drm_atomic_helper.h | 7 + include/drm/drm_connector.h | 96 ++ 19 files changed, 2237 insertions(+), 37 deletions(-)
---
base-commit: 8345929e243a7114bc17c48d0ff01923d2daae76
change-id: 20251028-color-format-49fd202b7183
Best regards,
Signature · 1 line
Nicolas Frattaroli <[email protected]>
PATCH v15 1/28 drm/amd/display: Remove unnecessary SIGNAL_TYPE_HDMI_TYPE_A check
From: Werner Sembach <[email protected]>
Remove unnecessary SIGNAL_TYPE_HDMI_TYPE_A check that was performed in the drm_mode_is_420_only() case, but not in the drm_mode_is_420_also() && force_yuv420_output case.
Without further knowledge if YCbCr 4:2:0 is supported outside of HDMI, there is no reason to use RGB when the display
reports drm_mode_is_420_only() even on a non HDMI connection.
This patch also moves both checks in the same if-case. This eliminates an extra else-if-case.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +3 -6
@@ -6917,12 +6917,9 @@ static void fill_stream_properties_from_drm_display_mode( timing_out->v_border_top =0 ; timing_out->v_border_bottom =0 ;/* TODO: un-hardcode */ -if (drm_mode_is_420_only (info, mode_in) - && stream->signal ==SIGNAL_TYPE_HDMI_TYPE_A ) - timing_out->pixel_encoding =PIXEL_ENCODING_YCBCR420 ; -else if (drm_mode_is_420_also (info, mode_in) - && aconnector - && aconnector->force_yuv420_output) +if (drm_mode_is_420_only (info, mode_in) || + (aconnector && aconnector->force_yuv420_output && +drm_mode_is_420_also (info, mode_in))) timing_out->pixel_encoding =PIXEL_ENCODING_YCBCR420 ;else if ((connector->display_info.color_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 )) && aconnector
Signature · 1 line
2.54.0
PATCH v15 2/28 drm/display: hdmi-state-helper: Use default case for unsupported formats
In reply to Nicolas FrattaroliSwitch statements that do not handle all possible values of an enumeration will generate a warning during compilation. In preparation for adding a COUNT value to the end of the enum, this needs to be dealt with.
Add a default case to sink_supports_format_bpc's DRM_OUTPUT_COLOR_FORMAT switch statement, and move the log-and-return unknown pixel format handling into it.
No functional change.
--- drivers/gpu/drm/display/drm_hdmi_state_helper.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/display/drm_hdmi_state_helper.c +4 -3
@@ -541,10 +541,11 @@ sink_supports_format_bpc(const struct drm_connector *connector,drm_dbg_kms (dev,"YUV444 format supported in that configuration.\n" );return true; - } -drm_dbg_kms (dev,"Unsupported pixel format.\n" ); -return false; +default : +drm_dbg_kms (dev,"Unsupported pixel format.\n" ); +return false; + } } static enum drm_mode_status
Signature · 1 line
2.54.0
PATCH v15 3/28 drm: Add new general DRM property "color format"
In reply to Nicolas FrattaroliAdd a new general DRM property named "color format" which can be used by userspace to request the display driver to output a particular color format.
Possible string values for the new enum property are:
- "AUTO" (setup by default, driver internally picks the color format)
- "RGB"
- "YUV 4:4:4"
- "YUV 4:2:2"
- "YUV 4:2:0"
Drivers should advertise from this list the formats they support in an optimistic best-case scenario. EDID data from the sink can then be used in the kernel's atomic check phase to restrict this set of formats, as well as by userspace to make a correct choice in the first place.
--- Documentation/gpu/drm-kms.rst | 6 ++ drivers/gpu/drm/drm_atomic_helper.c | 5 ++ drivers/gpu/drm/drm_atomic_uapi.c | 4 + drivers/gpu/drm/drm_connector.c | 155 ++++++++++++++++++++++++++++++++++++ include/drm/drm_connector.h | 84 +++++++++++++++++++ 5 files changed, 254 insertions(+)
Documentation/gpu/drm-kms.rst +6 -0
@@ -604,6 +604,12 @@ Color Management Properties .. kernel-doc:: drivers/gpu/drm/drm_color_mgmt.c :doc: overview +Color Format Property +--------------------- + +.. kernel-doc:: drivers/gpu/drm/drm_connector.c + :doc: Color format + Tile Group Property -------------------
drivers/gpu/drm/drm_atomic_helper.c +5 -0
@@ -737,6 +737,11 @@ drm_atomic_helper_check_modeset(struct drm_device *dev,if (old_connector_state->max_requested_bpc != new_connector_state->max_requested_bpc) new_crtc_state->connectors_changed = true; + +if (old_connector_state->color_format != + new_connector_state->color_format) + new_crtc_state->connectors_changed = true; + }if (funcs->atomic_check)
drivers/gpu/drm/drm_atomic_uapi.c +4 -0
@@ -935,6 +935,8 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector, state->privacy_screen_sw_state = val; }else if (property == connector->broadcast_rgb_property) { state->hdmi.broadcast_rgb = val; + }else if (property == connector->color_format_property) { + state->color_format = val; }else if (connector->funcs->atomic_set_property) {return connector->funcs->atomic_set_property (connector, state, property, val);
@@ -1020,6 +1022,8 @@ drm_atomic_connector_get_property(struct drm_connector *connector, *val = state->privacy_screen_sw_state; }else if (property == connector->broadcast_rgb_property) { *val = state->hdmi.broadcast_rgb; + }else if (property == connector->color_format_property) { + *val = state->color_format; }else if (connector->funcs->atomic_get_property) {return connector->funcs->atomic_get_property (connector, state, property, val);
drivers/gpu/drm/drm_connector.c +155 -0
167 lines not on this page · raw message
include/drm/drm_connector.h +84 -0
114 lines not on this page · raw message
Signature · 1 line
2.54.0
PATCH v15 4/28 drm/connector: Let connectors have a say in their color format
In reply to Nicolas FrattaroliAdd a function to get the connector color format from a connector state, and a new function pointer in drm_connector_funcs to allow connectors to override what connector color format it returns.
This is useful for the bridge chain recursive bus format selection code, which does not wish to implement connector implementation specific checks like whether it involves HDMI.
--- drivers/gpu/drm/drm_connector.c | 16 ++++++++++++++++ include/drm/drm_connector.h | 12 ++++++++++++ 2 files changed, 28 insertions(+)
drivers/gpu/drm/drm_connector.c +16 -0
@@ -3685,6 +3685,22 @@ void drm_connector_oob_hotplug_event(struct fwnode_handle *connector_fwnode, }EXPORT_SYMBOL (drm_connector_oob_hotplug_event); +/** +* drm_connector_get_color_format - Return connector color format of @conn_state +* @conn_state: pointer to the &struct drm_connector_state to go check +* +*/ +enum drm_connector_color_format +drm_connector_get_color_format (const struct drm_connector_state *conn_state) +{ +struct drm_connector *connector = conn_state->connector; + +if (connector->funcs->color_format) +return connector->funcs->color_format (conn_state); + +return conn_state->color_format; +} +EXPORT_SYMBOL (drm_connector_get_color_format);/** * DOC: Tile group
include/drm/drm_connector.h +12 -0
@@ -1787,6 +1787,16 @@ struct drm_connector_funcs {* Allows connectors to create connector-specific debugfs files. */ void (*debugfs_init)(struct drm_connector *connector,struct dentry *root); + +/** +* @color_format: +* +* Allows connectors to return a connector color format other than +* @conn_state.color_format for purposes of e.g. display protocol +* specific helper logic having already mapped it to an output format. +*/ +enum drm_connector_color_format (*color_format)( +const struct drm_connector_state *conn_state); };/**
@@ -2603,6 +2613,8 @@ drm_connector_is_unregistered(struct drm_connector *connector)void drm_connector_oob_hotplug_event (struct fwnode_handle *connector_fwnode,enum drm_connector_status status); +enum drm_connector_color_format +drm_connector_get_color_format (const struct drm_connector_state *conn_state);const char *drm_get_connector_type_name (unsigned int connector_type);const char *drm_get_connector_status_name (enum drm_connector_status status);const char *drm_get_subpixel_order_name (enum subpixel_order order);
Signature · 1 line
2.54.0
PATCH v15 5/28 drm/display: bridge_connector: Use HDMI color format for HDMI conns
In reply to Nicolas FrattaroliFor bridge connectors which contain an HDMI bridge at some stage, the HDMI state helpers' format selection logic should be involved.
Add an implementation for the drm_bridge_funcs color_format function, which translates from the HDMI state's output format to a connector format for bridge connectors involving an HDMI bridge, but return the connector state's color_format member unchanged otherwise.
--- drivers/gpu/drm/display/drm_bridge_connector.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
drivers/gpu/drm/display/drm_bridge_connector.c +24 -0
@@ -276,6 +276,29 @@ static void drm_bridge_connector_reset(struct drm_connector *connector) connector->state); } +static enum drm_connector_color_format +drm_bridge_connector_color_format (const struct drm_connector_state *conn_state) +{ +struct drm_bridge_connector *bridge_connector = +to_drm_bridge_connector (conn_state->connector); + +if (bridge_connector->bridge_hdmi) { +switch (conn_state->hdmi.output_format) { +default : +case DRM_OUTPUT_COLOR_FORMAT_RGB444 : +return DRM_CONNECTOR_COLOR_FORMAT_RGB444 ; +case DRM_OUTPUT_COLOR_FORMAT_YCBCR444 : +return DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 ; +case DRM_OUTPUT_COLOR_FORMAT_YCBCR422 : +return DRM_CONNECTOR_COLOR_FORMAT_YCBCR422 ; +case DRM_OUTPUT_COLOR_FORMAT_YCBCR420 : +return DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 ; + } + } + +return conn_state->color_format; +} +static const struct drm_connector_funcs drm_bridge_connector_funcs = { .reset = drm_bridge_connector_reset, .detect = drm_bridge_connector_detect,
@@ -285,6 +308,7 @@ static const struct drm_connector_funcs drm_bridge_connector_funcs = { .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, .debugfs_init = drm_bridge_connector_debugfs_init, .oob_hotplug_event = drm_bridge_connector_oob_hotplug_event, + .color_format = drm_bridge_connector_color_format, };/* -----------------------------------------------------------------------------
Signature · 1 line
2.54.0
PATCH v15 6/28 drm/bridge: Act on the DRM color format property
In reply to Nicolas FrattaroliThe new DRM color format property allows userspace to request a specific color format on a connector. In turn, this fills the connector state's color_format member to switch color formats.
Make drm_bridges consider the color_format set in the connector state during the atomic bridge check. Call into the connector function to get the connector state's connector color format. For bridge connectors including an HDMI bridge, this will make use of whatever the HDMI implementation set as output formats, and AUTO will never be part of the rejection logic.
Reject any output bus formats that do not correspond to the requested color format. DRM_CONNECTOR_COLOR_FORMAT_AUTO is always accepted as a matching color format for a bus format, meaning that non-HDMI bridge chains will end up picking the first bus format choice that works, as has already been the case previously.
--- drivers/gpu/drm/drm_bridge.c | 64 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_bridge.c +63 -1
@@ -1149,6 +1149,47 @@ static int select_bus_fmt_recursive(struct drm_bridge *first_bridge,return ret; } +static bool __pure bus_format_is_color_fmt (u32 bus_fmt,enum drm_connector_color_format fmt) +{ +if (fmt ==DRM_CONNECTOR_COLOR_FORMAT_AUTO ) +return true; + +switch (bus_fmt) { +case MEDIA_BUS_FMT_FIXED : +return true; +case MEDIA_BUS_FMT_RGB888_1X24 : +case MEDIA_BUS_FMT_RGB101010_1X30 : +case MEDIA_BUS_FMT_RGB121212_1X36 : +case MEDIA_BUS_FMT_RGB161616_1X48 : +return fmt ==DRM_CONNECTOR_COLOR_FORMAT_RGB444 ; +case MEDIA_BUS_FMT_YUV8_1X24 : +case MEDIA_BUS_FMT_YUV10_1X30 : +case MEDIA_BUS_FMT_YUV12_1X36 : +case MEDIA_BUS_FMT_YUV16_1X48 : +return fmt ==DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 ; +case MEDIA_BUS_FMT_UYVY8_1X16 : +case MEDIA_BUS_FMT_VYUY8_1X16 : +case MEDIA_BUS_FMT_YUYV8_1X16 : +case MEDIA_BUS_FMT_YVYU8_1X16 : +case MEDIA_BUS_FMT_UYVY10_1X20 : +case MEDIA_BUS_FMT_YUYV10_1X20 : +case MEDIA_BUS_FMT_VYUY10_1X20 : +case MEDIA_BUS_FMT_YVYU10_1X20 : +case MEDIA_BUS_FMT_UYVY12_1X24 : +case MEDIA_BUS_FMT_VYUY12_1X24 : +case MEDIA_BUS_FMT_YUYV12_1X24 : +case MEDIA_BUS_FMT_YVYU12_1X24 : +return fmt ==DRM_CONNECTOR_COLOR_FORMAT_YCBCR422 ; +case MEDIA_BUS_FMT_UYYVYY8_0_5X24 : +case MEDIA_BUS_FMT_UYYVYY10_0_5X30 : +case MEDIA_BUS_FMT_UYYVYY12_0_5X36 : +case MEDIA_BUS_FMT_UYYVYY16_0_5X48 : +return fmt ==DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 ; +default : +return false; + } +} +/* * This function is called by &drm_atomic_bridge_chain_check() just before * calling &drm_bridge_funcs.atomic_check() on all elements of the chain.
@@ -1192,6 +1233,7 @@ drm_atomic_bridge_chain_select_bus_fmts(struct drm_bridge *bridge,struct drm_encoder *encoder = bridge->encoder;struct drm_bridge_state *last_bridge_state;unsigned int i, num_out_bus_fmts =0 ; +enum drm_connector_color_format fmt;u32 *out_bus_fmts;int ret =0 ;
@@ -1233,11 +1275,31 @@ drm_atomic_bridge_chain_select_bus_fmts(struct drm_bridge *bridge, out_bus_fmts[0 ] =MEDIA_BUS_FMT_FIXED ; } +/* +* Instead of directly accessing conn_state.color_format, call into a +* connector function that allows connector implementations (e.g. for +* bridge connectors including HDMI bridges, where the HDMI helpers will +* have already chosen an appropriate output format) to override the +* selected format. +*/ + fmt =drm_connector_get_color_format (conn_state); +for (i =0 ; i < num_out_bus_fmts; i++) { +if (!bus_format_is_color_fmt (out_bus_fmts[i], fmt)) { +drm_dbg_kms (last_bridge->dev, +"Skipping bus format 0x%04x as it doesn't match format %d\n" , + out_bus_fmts[i], fmt); + ret = -ENOTSUPP ; +continue ; + } ret =select_bus_fmt_recursive (bridge, last_bridge, crtc_state, conn_state, out_bus_fmts[i]); -if (ret != -ENOTSUPP ) +if (ret != -ENOTSUPP ) { +drm_dbg_kms (last_bridge->dev, +"Found bridge chain ending with bus format 0x%04x\n" , + out_bus_fmts[i]);break ; + } }kfree (out_bus_fmts);
Signature · 1 line
2.54.0
PATCH v15 7/28 drm/atomic-helper: Add HDMI bridge output bus formats helper
In reply to Nicolas FrattaroliThe drm_bridge_funcs atomic_get_output_bus_fmts operation should be the same for likely every HDMI connector bridge, unless such an HDMI connector bridge has some special hardware restrictions that I cannot envision yet.
To avoid code duplication and standardize on a set of media bus formats that the HDMI output color formats translate to, add a common helper function that implements this operation to the drm bridge helpers.
The function returns a list of output bus formats based on the HDMI bridge's current output bits-per-component, and its bitmask of supported color formats.
To guard against future expansion of DRM_OUTPUT_COLOR_FORMAT outgrowing the hweight8 call, add a BUILD_BUG_ON statement where it's used that checks for DRM_OUTPUT_COLOR_FORMAT_COUNT. The justification for not using hweight32 in all cases is that not all ISAs have a popcount instruction, and will benefit from a smaller/faster software implementation that doesn't have to operate across all bits.
The justification for not defining an hweight_color depending on the value of DRM_OUTPUT_COLOR_FORMAT_COUNT is that this count enum value is only known at compile time, not at preprocessor time.
--- drivers/gpu/drm/drm_atomic_helper.c | 81 +++++++++++++++++++++++++++++++++++++ include/drm/drm_atomic_helper.h | 7 ++++ 2 files changed, 88 insertions(+)
drivers/gpu/drm/drm_atomic_helper.c +81 -0
@@ -28,6 +28,7 @@#include <linux/export.h> #include <linux/dma-fence.h> #include <linux/ktime.h> +#include <linux/media-bus-format.h> #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h>
@@ -4107,3 +4108,83 @@ drm_atomic_helper_bridge_propagate_bus_fmt(struct drm_bridge *bridge,return input_fmts; }EXPORT_SYMBOL (drm_atomic_helper_bridge_propagate_bus_fmt); + +/** +* drm_atomic_helper_bridge_get_hdmi_output_bus_fmts - helper implementing +* atomic_get_output_bus_fmts for HDMI +* @bridge: pointer to &struct drm_bridge +* @bridge_state: pointer to the current bridge state +* @crtc_state: pointer to the current CRTC state +* @conn_state: pointer to the current connector state +* @num_output_fmts: pointer to where the number of entries in the returned array +* will be stored. Set to 0 if unsuccessful. +* +* Common implementation for the &drm_bridge_funcs.atomic_get_output_bus_fmts +* operation that's applicable to HDMI connectors. +* +* Returns: a newly allocated array of u32 values of length \*@num_output_fmts, +* representing all the MEDIA_BUS_FMTS\_ for the current connector state's +* chosen HDMI output bits per compoennt, or %NULL if it fails to allocate one. +*/ +u32 * +drm_atomic_helper_bridge_get_hdmi_output_bus_fmts (struct drm_bridge *bridge, +struct drm_bridge_state *bridge_state, +struct drm_crtc_state *crtc_state, +struct drm_connector_state *conn_state, +unsigned int *num_output_fmts) +{ +unsigned int num_fmts =0 ; +u32 *out_fmts; + +/* +* bridge->supported_formats is a bit field of BIT(enum drm_output_color_format) +* values. The smallest hweight that is smaller than or equal to +* %DRM_OUTPUT_COLOR_FORMAT_COUNT will do for counting set bits here. +*/ +BUILD_BUG_ON (const_true (DRM_OUTPUT_COLOR_FORMAT_COUNT >8 )); + out_fmts =kmalloc_array (hweight8 (bridge->supported_formats), +sizeof (u32),GFP_KERNEL ); +if (!out_fmts) { + *num_output_fmts =0 ; +return NULL ; + } + +switch (conn_state->hdmi.output_bpc) { +case 12 : +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_RGB121212_1X36 ; +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_YUV12_1X36 ; +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_UYVY12_1X24 ; +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR420 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_UYYVYY12_0_5X36 ; +break ; +case 10 : +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_RGB101010_1X30 ; +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_YUV10_1X30 ; +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_UYVY10_1X20 ; +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR420 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_UYYVYY10_0_5X30 ; +break ; +default : +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_RGB888_1X24 ; +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_YUV8_1X24 ; +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_UYVY8_1X16 ; +if (bridge->supported_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR420 )) + out_fmts[num_fmts++] =MEDIA_BUS_FMT_UYYVYY8_0_5X24 ; +break ; + } + + *num_output_fmts = num_fmts; + +return out_fmts; +} +EXPORT_SYMBOL (drm_atomic_helper_bridge_get_hdmi_output_bus_fmts); +
include/drm/drm_atomic_helper.h +7 -0
@@ -295,4 +295,11 @@ drm_atomic_helper_bridge_propagate_bus_fmt(struct drm_bridge *bridge,u32 output_fmt, unsigned int *num_input_fmts); +u32 * +drm_atomic_helper_bridge_get_hdmi_output_bus_fmts (struct drm_bridge *bridge, +struct drm_bridge_state *bridge_state, +struct drm_crtc_state *crtc_state, +struct drm_connector_state *conn_state, +unsigned int *num_output_fmts); +#endif /* DRM_ATOMIC_HELPER_H_ */
Signature · 1 line
2.54.0
PATCH v15 8/28 drm/display: hdmi-state-helper: Act on color format DRM property
In reply to Nicolas FrattaroliWith the introduction of the "color format" DRM property, which allows userspace to request a specific color format, the HDMI state helper should implement this.
Implement it by translating the requested drm_connector_color_format to a drm_output_color_format enum value as per the logic HDMI should use for this: Auto is translated to RGB, and a fallback to YUV420 is only performed if the original color format was auto.
--- drivers/gpu/drm/display/drm_hdmi_state_helper.c | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+)
drivers/gpu/drm/display/drm_hdmi_state_helper.c +31 -0
@@ -670,8 +670,39 @@ hdmi_compute_config(const struct drm_connector *connector, unsigned int max_bpc = clamp_t(unsigned int, conn_state->max_bpc,8 , connector->max_bpc); +enum drm_output_color_format fmt;int ret; +if (conn_state->color_format !=DRM_CONNECTOR_COLOR_FORMAT_AUTO ) { +switch (conn_state->color_format) { +case DRM_CONNECTOR_COLOR_FORMAT_AUTO : +drm_warn (connector->dev,"AUTO format in non-AUTO path.\n" ); + fallthrough; +case DRM_CONNECTOR_COLOR_FORMAT_RGB444 : + fmt =DRM_OUTPUT_COLOR_FORMAT_RGB444 ; +break ; +case DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 : + fmt =DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ; +break ; +case DRM_CONNECTOR_COLOR_FORMAT_YCBCR422 : + fmt =DRM_OUTPUT_COLOR_FORMAT_YCBCR422 ; +break ; +case DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 : + fmt =DRM_OUTPUT_COLOR_FORMAT_YCBCR420 ; +break ; +default : +drm_dbg_kms (connector->dev,"HDMI does not support color format '%d'.\n" , + conn_state->color_format); +return -EINVAL ; + } + +return hdmi_compute_format_bpc (connector, conn_state, mode, max_bpc, fmt); + } + +/* +* For %DRM_CONNECTOR_COLOR_FORMAT_AUTO, try RGB first, and fall back +* to the less bandwidth-intensive YCBCR420 if RGB fails. +*/ ret =hdmi_compute_format_bpc (connector, conn_state, mode, max_bpc,DRM_OUTPUT_COLOR_FORMAT_RGB444 );if (ret) {
Signature · 1 line
2.54.0
PATCH v15 9/28 drm/display: hdmi-state-helper: Try subsampling in mode_valid
In reply to Nicolas Frattarolidrm_hdmi_connector_mode_valid assumes modes are only valid if they work with RGB. The reality is more complex however: YCbCr 4:2:0 chroma-subsampled modes only require half the pixel clock that the same mode would require in RGB.
This leads to drm_hdmi_connector_mode_valid rejecting perfectly valid 420-only or 420-also modes.
Fix this by checking whether the mode is 420-capable first. If so, then proceed by checking it with DRM_OUTPUT_COLOR_FORMAT_YCBCR420 so long as the connector has legalized 420, otherwise error out. If the mode is not 420-capable, check with RGB as was previously always the case.
--- drivers/gpu/drm/display/drm_hdmi_state_helper.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
drivers/gpu/drm/display/drm_hdmi_state_helper.c +14 -1
@@ -942,8 +942,21 @@ drm_hdmi_connector_mode_valid(struct drm_connector *connector, const struct drm_display_mode *mode) {unsigned long long clock; +enum drm_output_color_format fmt; + +if (drm_mode_is_420_only (&connector->display_info, mode)) { +if (connector->ycbcr_420_allowed) + fmt =DRM_OUTPUT_COLOR_FORMAT_YCBCR420 ; +else +return MODE_NO_420 ; + }else if (drm_mode_is_420_also (&connector->display_info, mode) && + connector->ycbcr_420_allowed) { + fmt =DRM_OUTPUT_COLOR_FORMAT_YCBCR420 ; + }else { + fmt =DRM_OUTPUT_COLOR_FORMAT_RGB444 ; + } - clock =drm_hdmi_compute_mode_clock (mode,8 ,DRM_OUTPUT_COLOR_FORMAT_RGB444 ); + clock =drm_hdmi_compute_mode_clock (mode,8 , fmt);if (!clock)return MODE_ERROR ;
Signature · 1 line
2.54.0
PATCH v15 10/28 drm/amdgpu: Implement "color format" DRM property
In reply to Nicolas FrattaroliThe "color format" DRM property allows userspace to explicitly pick a color format to use. If an unsupported color format is requested, userspace will be given an error instead of silently having its request disobeyed.
The default case, which is AUTO, picks YCbCr 4:2:0 if it's a 4:2:0-only mode, and RGB in all other cases.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 90 ++++++++++++++++++++--- 1 file changed, 79 insertions(+), 11 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +79 -11
@@ -6899,11 +6899,14 @@ static void fill_stream_properties_from_drm_display_mode(const struct dc_stream_state *old_stream, int requested_bpc) { + bool is_dp_or_hdmi = dc_is_hdmi_signal(stream->signal) || dc_is_dp_signal(stream->signal);struct dc_crtc_timing *timing_out = &stream->timing;const struct drm_display_info *info = &connector->display_info;struct amdgpu_dm_connector *aconnector =NULL ;struct hdmi_vendor_infoframe hv_frame;struct hdmi_avi_infoframe avi_frame; +bool want_420; +bool want_422;ssize_t err;if (connector->connector_type !=DRM_MODE_CONNECTOR_WRITEBACK )
@@ -6916,20 +6919,41 @@ static void fill_stream_properties_from_drm_display_mode( timing_out->h_border_right =0 ; timing_out->v_border_top =0 ; timing_out->v_border_bottom =0 ; -/* TODO: un-hardcode */ -if (drm_mode_is_420_only (info, mode_in) || - (aconnector && aconnector->force_yuv420_output && -drm_mode_is_420_also (info, mode_in))) + + want_420 = (aconnector && aconnector->force_yuv420_output) || + (connector_state->color_format ==DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 ); + want_422 = (aconnector && aconnector->force_yuv422_output) || + (connector_state->color_format ==DRM_CONNECTOR_COLOR_FORMAT_YCBCR422 ); + +if (drm_mode_is_420_only (info, mode_in) && + (want_420 || connector_state->color_format ==DRM_CONNECTOR_COLOR_FORMAT_AUTO )) { timing_out->pixel_encoding =PIXEL_ENCODING_YCBCR420 ; -else if ((connector->display_info.color_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 )) - && aconnector - && aconnector->force_yuv422_output) + }else if (drm_mode_is_420_also (info, mode_in) && want_420) { + timing_out->pixel_encoding =PIXEL_ENCODING_YCBCR420 ; + }else if ((info->color_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 )) && + want_422 && is_dp_or_hdmi) { timing_out->pixel_encoding =PIXEL_ENCODING_YCBCR422 ; -else if ((connector->display_info.color_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 )) - && stream->signal ==SIGNAL_TYPE_HDMI_TYPE_A ) + }else if (connector_state->color_format ==DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 && + (info->color_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 )) && + is_dp_or_hdmi) { timing_out->pixel_encoding =PIXEL_ENCODING_YCBCR444 ; -else + }else if (connector_state->color_format ==DRM_CONNECTOR_COLOR_FORMAT_RGB444 || + connector_state->color_format ==DRM_CONNECTOR_COLOR_FORMAT_AUTO ) { timing_out->pixel_encoding =PIXEL_ENCODING_RGB ; + }else { +/* +* If a format was explicitly requested but the requested format +* can't be satisfied, set it to an invalid value so that an +* error bubbles up to userspace. This way, userspace knows it +* needs to make a better choice. +*/ +if (connector_state->color_format !=DRM_CONNECTOR_COLOR_FORMAT_AUTO ) + timing_out->pixel_encoding =PIXEL_ENCODING_UNDEFINED ; +else if (drm_mode_is_420_only (info, mode_in)) + timing_out->pixel_encoding =PIXEL_ENCODING_YCBCR420 ; +else + timing_out->pixel_encoding =PIXEL_ENCODING_RGB ; + } timing_out->timing_3d_format =TIMING_3D_FORMAT_NONE ; timing_out->display_color_depth = convert_color_depth_from_display_info(
@@ -8279,6 +8303,38 @@ static enum dc_status dm_validate_stream_and_context(struct dc *dc,return dc_result; } +static enum dc_status +dm_validate_stream_color_format (const struct drm_connector_state *drm_state, +const struct dc_stream_state *stream) +{ +enum dc_pixel_encoding encoding; + +if (!drm_state->color_format) +return DC_OK ; + +switch (drm_state->color_format) { +case DRM_CONNECTOR_COLOR_FORMAT_AUTO : +case DRM_CONNECTOR_COLOR_FORMAT_RGB444 : + encoding =PIXEL_ENCODING_RGB ; +break ; +case DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 : + encoding =PIXEL_ENCODING_YCBCR444 ; +break ; +case DRM_CONNECTOR_COLOR_FORMAT_YCBCR422 : + encoding =PIXEL_ENCODING_YCBCR422 ; +break ; +case DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 : + encoding =PIXEL_ENCODING_YCBCR420 ; +break ; +default : + encoding =PIXEL_ENCODING_UNDEFINED ; +break ; + } + +return encoding == stream->timing.pixel_encoding ? +DC_OK :DC_UNSUPPORTED_VALUE ; +} +struct dc_stream_state * create_validate_stream_for_sink(struct drm_connector *connector, const struct drm_display_mode *drm_mode,
@@ -8325,6 +8381,9 @@ create_validate_stream_for_sink(struct drm_connector *connector,if (dc_result ==DC_OK ) dc_result =dm_validate_stream_and_context (adev->dm.dc, stream); +if (dc_result ==DC_OK ) + dc_result =dm_validate_stream_color_format (drm_state, stream); +if (dc_result !=DC_OK ) { drm_dbg_kms(connector->dev, "Pruned mode %d x %d (clk %d) %s %s -- %s\n", drm_mode->hdisplay,
@@ -9154,6 +9213,12 @@ static const u32 supported_colorspaces =BIT (DRM_MODE_COLORIMETRY_BT2020_RGB ) |BIT (DRM_MODE_COLORIMETRY_BT2020_YCC ); +static const u32 supported_colorformats = +BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR420 ); + void amdgpu_dm_connector_init_helper(struct amdgpu_display_manager *dm, struct amdgpu_dm_connector *aconnector, int connector_type,
@@ -9270,8 +9335,11 @@ void amdgpu_dm_connector_init_helper(struct amdgpu_display_manager *dm, connector_type == DRM_MODE_CONNECTOR_eDP) {drm_connector_attach_hdr_output_metadata_property (&aconnector->base); -if (!aconnector->mst_root) +if (!aconnector->mst_root) {drm_connector_attach_vrr_capable_property (&aconnector->base); +drm_connector_attach_color_format_property (&aconnector->base, + supported_colorformats); + }if (adev->dm.hdcp_workqueue)drm_connector_attach_content_protection_property (&aconnector->base, true);
Signature · 1 line
2.54.0
PATCH v15 11/28 drm/i915/hdmi: Add YCBCR444 handling for sink formats
In reply to Nicolas FrattaroliIn anticipation of userspace being able to explicitly select supported sink formats, add handling of the YCBCR444 sink format. The AUTO path does not choose this format, but with explicit format selection added to the driver, it becomes a possibility.
Check for YCBCR444 support on the sink in sink_bpc_possible, and on the source and sink in sink_format_valid.
--- drivers/gpu/drm/i915/display/intel_hdmi.c | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
drivers/gpu/drm/i915/display/intel_hdmi.c +32 -0
@@ -1966,6 +1966,8 @@ static bool intel_hdmi_sink_bpc_possible(struct drm_connector *_connector,if (sink_format ==INTEL_OUTPUT_FORMAT_YCBCR420 )return hdmi->y420_dc_modes &DRM_EDID_YCBCR420_DC_36 ; +else if (sink_format ==INTEL_OUTPUT_FORMAT_YCBCR444 ) +return info->edid_hdmi_ycbcr444_dc_modes &DRM_EDID_HDMI_DC_36 ;else return info->edid_hdmi_rgb444_dc_modes &DRM_EDID_HDMI_DC_36 ;case 10 :
@@ -1974,6 +1976,8 @@ static bool intel_hdmi_sink_bpc_possible(struct drm_connector *_connector,if (sink_format ==INTEL_OUTPUT_FORMAT_YCBCR420 )return hdmi->y420_dc_modes &DRM_EDID_YCBCR420_DC_30 ; +else if (sink_format ==INTEL_OUTPUT_FORMAT_YCBCR444 ) +return info->edid_hdmi_ycbcr444_dc_modes &DRM_EDID_HDMI_DC_30 ;else return info->edid_hdmi_rgb444_dc_modes &DRM_EDID_HDMI_DC_30 ;case 8 :
@@ -2021,6 +2025,27 @@ intel_hdmi_mode_clock_valid(struct drm_connector *_connector, int clock,return status; } +/** +* intel_hdmi_can_ycbcr444 - Check whether connector can output YCbCr444 +* @connector: pointer to &struct intel_connector to check +* +* Checks whether the hardware that backs @connector is capable of outputting +* YCbCr444 video over HDMI. Does not check whether currently connected sink is +* capable of receiving it. +* +* Returns: %true if source supports outputting YCbCr444, %false otherwise. +*/ +static bool +intel_hdmi_can_ycbcr444 (struct intel_connector *connector) +{ +const struct intel_display *display =to_intel_display (connector); + +if (HAS_GMCH (display)) +return true; + +return false; +} + static enum drm_mode_status intel_hdmi_sink_format_valid(struct intel_connector *connector, const struct drm_display_mode *mode,
@@ -2038,6 +2063,13 @@ intel_hdmi_sink_format_valid(struct intel_connector *connector,return MODE_OK ;case INTEL_OUTPUT_FORMAT_RGB : +return MODE_OK ; +case INTEL_OUTPUT_FORMAT_YCBCR444 : +if (!intel_hdmi_can_ycbcr444 (connector)) +return MODE_BAD ; +if (!(info->color_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ))) +return MODE_BAD ; +return MODE_OK ;default :MISSING_CASE (sink_format);
Signature · 1 line
2.54.0
Re: [PATCH v15 11/28] drm/i915/hdmi: Add YCBCR444 handling for sink formats
Quoted 40 lines · Nicolas Frattaroli
In anticipation of userspace being able to explicitly select supported sink formats, add handling of the YCBCR444 sink format. The AUTO path does not choose this format, but with explicit format selection added to the driver, it becomes a possibility.
Check for YCBCR444 support on the sink in
sink_bpc_possible, and on the source and sink insink_format_valid.Acked-by Daniel Stone <[email protected]>Signed-off-by Nicolas Frattaroli <[email protected]>--- drivers/gpu/drm/i915/display/intel_hdmi.c | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)drivers/gpu/drm/i915/display/intel_hdmi.c +4
-0@@ -1966,6 +1966,8 @@ static bool intel_hdmi_sink_bpc_possible(struct drm_connector *_connector,if (sink_format ==INTEL_OUTPUT_FORMAT_YCBCR420 )return hdmi->y420_dc_modes &DRM_EDID_YCBCR420_DC_36 ; +else if (sink_format ==INTEL_OUTPUT_FORMAT_YCBCR444 ) +return info->edid_hdmi_ycbcr444_dc_modes &DRM_EDID_HDMI_DC_36 ;else return info->edid_hdmi_rgb444_dc_modes &DRM_EDID_HDMI_DC_36 ;case 10 :@@ -1974,6 +1976,8 @@ static bool intel_hdmi_sink_bpc_possible(struct drm_connector *_connector,if (sink_format ==INTEL_OUTPUT_FORMAT_YCBCR420 )return hdmi->y420_dc_modes &DRM_EDID_YCBCR420_DC_30 ; +else if (sink_format ==INTEL_OUTPUT_FORMAT_YCBCR444 ) +return info->edid_hdmi_ycbcr444_dc_modes &DRM_EDID_HDMI_DC_30 ;else return info->edid_hdmi_rgb444_dc_modes &DRM_EDID_HDMI_DC_30 ;case 8 :@@ -2021,6 +2025,27 @@ intel_hdmi_mode_clock_valid(struct drm_connector *_connector, int clock,return status; }
drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_mode_clock_valid(struct drm_connector *_connector, int clock, · line 2037
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_hdmi.c +10
-0+/** +* intel_hdmi_can_ycbcr444 - Check whether connector can output YCbCr444 +* @connector: pointer to &struct intel_connector to check +* +* Checks whether the hardware that backs @connector is capable of outputting +* YCbCr444 video over HDMI. Does not check whether currently connected sink is +* capable of receiving it. +* +* Returns: %true if source supports outputting YCbCr444, %false otherwise. +*/
We don't need kernel docs for internal stuff.
drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_mode_clock_valid(struct drm_connector *_connector, int clock, · line 2044
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_hdmi.c +7
-0+static bool +intel_hdmi_can_ycbcr444 (struct intel_connector *connector) +{ +const struct intel_display *display =to_intel_display (connector); + +if (HAS_GMCH (display)) +return true;
Exactly the wrong way around.
drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_sink_format_valid(struct intel_connector *connector, · line 2064
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_hdmi.c +4
-0+ +return false; +} + static enum drm_mode_status intel_hdmi_sink_format_valid(struct intel_connector *connector, const struct drm_display_mode *mode,@@ -2038,6 +2063,13 @@ intel_hdmi_sink_format_valid(struct intel_connector *connector,return MODE_OK ;
I would put the 444 stuff here between 420 and RGB. Then we logically go from YCbCr420 -> YCbCr444 -> RGB when reading the code.
drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_sink_format_valid(struct intel_connector *connector, · line 2069
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_hdmi.c +4
-0case INTEL_OUTPUT_FORMAT_RGB : +return MODE_OK ; +case INTEL_OUTPUT_FORMAT_YCBCR444 : +if (!intel_hdmi_can_ycbcr444 (connector)) +return MODE_BAD ;
We're missing the has_hdmi_sink check as well.
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_hdmi.c +3
-0+if (!(info->color_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ))) +return MODE_BAD ; +return MODE_OK ;default :MISSING_CASE (sink_format);Signature · 2 lines
-- 2.54.0
Signature · 2 lines
Ville Syrjälä Intel
PATCH v15 12/28 drm/i915/dp: Add YCBCR444 handling for sink formats
In reply to Nicolas FrattaroliIn anticipation of userspace being able to explicitly select supported sink formats, add handling of the YCBCR444 sink format. The AUTO path does not choose this format, but with explicit format selection added to the driver, it becomes a possibility.
Check for both source and sink support of YCBCR444 in intel_dp_sink_format_valid.
--- drivers/gpu/drm/i915/display/intel_dp.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
drivers/gpu/drm/i915/display/intel_dp.c +21 -0
@@ -1344,6 +1344,20 @@ intel_dp_mode_valid_downstream(struct intel_connector *connector, 8, sink_format, true); } +static bool +intel_dp_can_ycbcr444 (struct intel_dp *intel_dp) +{ +if (source_can_output (intel_dp,INTEL_OUTPUT_FORMAT_YCBCR444 ) && + !drm_dp_is_branch (intel_dp->dpcd)) +return true; + +if (source_can_output (intel_dp,INTEL_OUTPUT_FORMAT_RGB ) && +dfp_can_convert_from_rgb (intel_dp,INTEL_OUTPUT_FORMAT_YCBCR444 )) +return true; + +return false; +} + static enum drm_mode_status intel_dp_sink_format_valid(struct intel_connector *connector, const struct drm_display_mode *mode,
@@ -1364,6 +1378,13 @@ intel_dp_sink_format_valid(struct intel_connector *connector,return MODE_OK ;case INTEL_OUTPUT_FORMAT_RGB : +return MODE_OK ; +case INTEL_OUTPUT_FORMAT_YCBCR444 : +if (!(info->color_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ))) +return MODE_BAD ; +if (!intel_dp_can_ycbcr444 (intel_dp)) +return MODE_BAD ; +return MODE_OK ;default :MISSING_CASE (sink_format);
Signature · 1 line
2.54.0
Re: [PATCH v15 12/28] drm/i915/dp: Add YCBCR444 handling for sink formats
Quoted 21 lines · Nicolas Frattaroli
In anticipation of userspace being able to explicitly select supported sink formats, add handling of the YCBCR444 sink format. The AUTO path does not choose this format, but with explicit format selection added to the driver, it becomes a possibility.
Check for both source and sink support of YCBCR444 in
intel_dp_sink_format_valid.Acked-by Daniel Stone <[email protected]>Signed-off-by Nicolas Frattaroli <[email protected]>--- drivers/gpu/drm/i915/display/intel_dp.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)drivers/gpu/drm/i915/display/intel_dp.c +0
-0@@ -1344,6 +1344,20 @@ intel_dp_mode_valid_downstream(struct intel_connector *connector, 8, sink_format, true); }
drivers/gpu/drm/i915/display/intel_dp.c intel_dp_mode_valid_downstream(struct intel_connector *connector, · line 1355
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_dp.c +9
-0+static bool +intel_dp_can_ycbcr444 (struct intel_dp *intel_dp) +{ +if (source_can_output (intel_dp,INTEL_OUTPUT_FORMAT_YCBCR444 ) && + !drm_dp_is_branch (intel_dp->dpcd)) +return true; + +if (source_can_output (intel_dp,INTEL_OUTPUT_FORMAT_RGB ) && +dfp_can_convert_from_rgb (intel_dp,INTEL_OUTPUT_FORMAT_YCBCR444 ))
IIRC my previous conclusion was that we don't want the dfp convert stuff here, at least initially. So this should just are about source_can_output().
drivers/gpu/drm/i915/display/intel_dp.c intel_dp_sink_format_valid(struct intel_connector *connector, · line 1379
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_dp.c +5
-0+return true; + +return false; +} + static enum drm_mode_status intel_dp_sink_format_valid(struct intel_connector *connector, const struct drm_display_mode *mode,@@ -1364,6 +1378,13 @@ intel_dp_sink_format_valid(struct intel_connector *connector,return MODE_OK ;
Again, would prefer a cleanr 420->444->rgb order.
drivers/gpu/drm/i915/display/intel_dp.c intel_dp_sink_format_valid(struct intel_connector *connector, · line 1386
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_dp.c +6
-0case INTEL_OUTPUT_FORMAT_RGB : +return MODE_OK ; +case INTEL_OUTPUT_FORMAT_YCBCR444 : +if (!(info->color_formats &BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ))) +return MODE_BAD ; +if (!intel_dp_can_ycbcr444 (intel_dp)) +return MODE_BAD ;
These two ifs are swapped when compared to the HDMI version for no good reason that I can see.
And missing the has_hdmi_sink check here as well.
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_dp.c +1
-0+return MODE_OK ;default :MISSING_CASE (sink_format);Signature · 2 lines
-- 2.54.0
Signature · 2 lines
Ville Syrjälä Intel
PATCH v15 13/28 drm/i915/hdmi: Implement "color format" DRM property
In reply to Nicolas FrattaroliImplement the "color format" DRM property for HDMI. The values of the property include RGB, YCbCr420, YCbCr444 and Auto. Auto will pick RGB, with a fallback to YCbCr420.
The mask of supported formats by the source exposed by the property is an optimistic scenario, as specific DFP-related caveats can't be established before an EDID is present.
Should the explicitly requested color format not be supported by the sink (or by the source in combination with the sink), then an error is returned to userspace, so that it can make a better choice.
--- drivers/gpu/drm/i915/display/intel_hdmi.c | 52 ++++++++++++++++++++++++++++--- 1 file changed, 48 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_hdmi.c +48 -4
@@ -2330,10 +2330,10 @@ static int intel_hdmi_compute_output_format(struct intel_encoder *encoder,return intel_hdmi_compute_clock (encoder, crtc_state, respect_downstream_limits); } -static int intel_hdmi_compute_formats (struct intel_encoder *encoder, -struct intel_crtc_state *crtc_state, -const struct drm_connector_state *conn_state, -bool respect_downstream_limits) +static int intel_hdmi_compute_formats_auto (struct intel_encoder *encoder, +struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state, +bool respect_downstream_limits) {struct intel_display *display =to_intel_display (encoder);struct intel_connector *connector =to_intel_connector (conn_state->connector);
@@ -2368,6 +2368,35 @@ static int intel_hdmi_compute_formats(struct intel_encoder *encoder,return ret; } +static int intel_hdmi_compute_formats (struct intel_encoder *encoder, +struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state, +bool respect_downstream_limits) +{ +struct intel_connector *connector =to_intel_connector (conn_state->connector); + +switch (conn_state->color_format) { +case DRM_CONNECTOR_COLOR_FORMAT_RGB444 : +return intel_hdmi_compute_output_format (encoder, crtc_state, connector, + respect_downstream_limits, +INTEL_OUTPUT_FORMAT_RGB ); +case DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 : +return intel_hdmi_compute_output_format (encoder, crtc_state, connector, + respect_downstream_limits, +INTEL_OUTPUT_FORMAT_YCBCR444 ); +case DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 : +return intel_hdmi_compute_output_format (encoder, crtc_state, connector, + respect_downstream_limits, +INTEL_OUTPUT_FORMAT_YCBCR420 ); +case DRM_CONNECTOR_COLOR_FORMAT_AUTO : +return intel_hdmi_compute_formats_auto (encoder, crtc_state, conn_state, + respect_downstream_limits); +default : +MISSING_CASE (conn_state->color_format); +return -EINVAL ; + } +} +static bool intel_hdmi_is_cloned (const struct intel_crtc_state *crtc_state) { return crtc_state->uapi.encoder_mask &&
@@ -2740,6 +2769,20 @@ static const struct drm_connector_helper_funcs intel_hdmi_connector_helper_funcs .atomic_check = intel_hdmi_connector_atomic_check, }; +static void +intel_hdmi_attach_color_format_property (struct intel_connector *connector) +{ +unsigned long fmts =BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 ); + +if (connector->base.ycbcr_420_allowed) + fmts |=BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR420 ); + +if (intel_hdmi_can_ycbcr444 (connector)) + fmts |=BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ); + +drm_connector_attach_color_format_property (&connector->base, fmts); +} +static void intel_hdmi_add_properties (struct intel_hdmi *intel_hdmi,struct drm_connector *_connector) {
@@ -2752,6 +2795,7 @@ intel_hdmi_add_properties(struct intel_hdmi *intel_hdmi, struct drm_connector *_intel_attach_hdmi_colorspace_property (&connector->base);drm_connector_attach_content_type_property (&connector->base); +intel_hdmi_attach_color_format_property (connector);if (DISPLAY_VER (display) >=10 )drm_connector_attach_hdr_output_metadata_property (&connector->base);
Signature · 1 line
2.54.0
PATCH v15 14/28 drm/i915/dp: Implement "color format" DRM property
In reply to Nicolas FrattaroliImplement the "color format" DRM property for DP. The values of the property include RGB, YCbCr420, YCbCr444 and Auto. Auto will pick RGB, with a fallback to YCbCr420.
The mask of supported formats by the source exposed by the property is an optimistic scenario, as specific DFP-related caveats can't be established before an EDID is present.
Should the explicitly requested color format not be supported by the sink (or by the source in combination with the sink), then an error is returned to userspace, so that it can make a better choice.
--- drivers/gpu/drm/i915/display/intel_dp.c | 61 ++++++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +57 -4
@@ -3436,10 +3436,10 @@ intel_dp_compute_output_format(struct intel_encoder *encoder, }static int -intel_dp_compute_formats (struct intel_encoder *encoder, -struct intel_crtc_state *crtc_state, -struct drm_connector_state *conn_state, -bool respect_downstream_limits) +intel_dp_compute_formats_auto (struct intel_encoder *encoder, +struct intel_crtc_state *crtc_state, +struct drm_connector_state *conn_state, +bool respect_downstream_limits) {struct intel_display *display =to_intel_display (encoder);struct intel_dp *intel_dp =enc_to_intel_dp (encoder);
@@ -3475,6 +3475,34 @@ intel_dp_compute_formats(struct intel_encoder *encoder,return ret; } +static int +intel_dp_compute_formats (struct intel_encoder *encoder, +struct intel_crtc_state *crtc_state, +struct drm_connector_state *conn_state, +bool respect_downstream_limits) +{ +switch (conn_state->color_format) { +case DRM_CONNECTOR_COLOR_FORMAT_RGB444 : +return intel_dp_compute_output_format (encoder, crtc_state, conn_state, + respect_downstream_limits, +INTEL_OUTPUT_FORMAT_RGB ); +case DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 : +return intel_dp_compute_output_format (encoder, crtc_state, conn_state, + respect_downstream_limits, +INTEL_OUTPUT_FORMAT_YCBCR444 ); +case DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 : +return intel_dp_compute_output_format (encoder, crtc_state, conn_state, + respect_downstream_limits, +INTEL_OUTPUT_FORMAT_YCBCR420 ); +case DRM_CONNECTOR_COLOR_FORMAT_AUTO : +return intel_dp_compute_formats_auto (encoder, crtc_state, conn_state, + respect_downstream_limits); +default : +MISSING_CASE (conn_state->color_format); +return -EINVAL ; + } +} + void intel_dp_audio_compute_config(struct intel_encoder *encoder, struct intel_crtc_state *pipe_config,
@@ -7028,6 +7056,29 @@ intel_dp_has_gamut_metadata_dip(struct intel_encoder *encoder)return false; } +static void +intel_dp_attach_color_format_property (struct intel_dp *intel_dp) +{ +struct intel_connector *connector = intel_dp->attached_connector; +struct intel_digital_port *dig_port =dp_to_dig_port (intel_dp); +unsigned long fmts =BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 ); +bool has_pcon = false; + +if (!connector) +return ; + +if (dig_port &&intel_bios_encoder_is_lspcon (dig_port->base.devdata)) + has_pcon = true; + +if (has_pcon ||source_can_output (intel_dp,INTEL_OUTPUT_FORMAT_YCBCR420 )) + fmts |=BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR420 ); + +if (has_pcon ||source_can_output (intel_dp,INTEL_OUTPUT_FORMAT_YCBCR444 )) + fmts |=BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ); + +drm_connector_attach_color_format_property (&connector->base, fmts); +} +static void intel_dp_add_properties (struct intel_dp *intel_dp,struct drm_connector *_connector) {
@@ -7060,6 +7111,8 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *_connecif (HAS_VRR (display))drm_connector_attach_vrr_capable_property (&connector->base); + +intel_dp_attach_color_format_property (intel_dp); } static void
Signature · 1 line
2.54.0
PATCH v15 15/28 drm/rockchip: Add YUV422 output mode constants for VOP2
In reply to Nicolas FrattaroliThe Rockchip display controller has a general YUV422 output mode, and some SoC-specific connector-specific output modes for RK3576.
Add them, based on the values in downstream and the TRM (dsp_out_mode in RK3576 TRM Part 2, register POST*_CTRL_POST_DSP_CTRL).
--- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/rockchip/rockchip_drm_drv.h +4 -0
@@ -30,10 +30,14 @@#define ROCKCHIP_OUT_MODE_P565 2#define ROCKCHIP_OUT_MODE_BT656 5#define ROCKCHIP_OUT_MODE_S888 8 +#define ROCKCHIP_OUT_MODE_YUV422 9#define ROCKCHIP_OUT_MODE_S888_DUMMY 12#define ROCKCHIP_OUT_MODE_YUV420 14/* for use special outface */ #define ROCKCHIP_OUT_MODE_AAAA 15 +/* SoC specific output modes */ +#define ROCKCHIP_OUT_MODE_YUV422_RK3576_DP 12 +#define ROCKCHIP_OUT_MODE_YUV422_RK3576_HDMI 13/* output flags */ #define ROCKCHIP_OUTPUT_DSI_DUAL BIT(0)
Signature · 1 line
2.54.0
PATCH v15 16/28 drm/rockchip: vop2: Add RK3576 to the RG swap special case
In reply to Nicolas FrattaroliMuch like RK3588, RK3576 requires an RG swap to be performed for YUV444 8-bit and YUV444 10-bit bus formats.
Add its version to the already existing check for RK3588, so that YUV444 output is correct on this platform.
--- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +2 -1
@@ -337,7 +337,8 @@ static bool vop2_output_uv_swap(u32 bus_format, u32 output_mode)static bool vop2_output_rg_swap (struct vop2 *vop2,u32 bus_format) { -if (vop2->version ==VOP_VERSION_RK3588 ) { +if (vop2->version ==VOP_VERSION_RK3588 || + vop2->version ==VOP_VERSION_RK3576 ) {if (bus_format ==MEDIA_BUS_FMT_YUV8_1X24 || bus_format ==MEDIA_BUS_FMT_YUV10_1X30 )return true;
Signature · 1 line
2.54.0
PATCH v15 17/28 drm/rockchip: vop2: Recognise 10-bit YUV422 as YUV format
In reply to Nicolas FrattaroliThe Rockchip VOP2 video output driver has a "is_yuv_output" function, which returns true when a given bus format is a YUV format, and false otherwise.
This switch statement is lacking the bus format used for YUV422 10-bit.
Add the two component orderings of the YUV422 10-bit bus formats to the switch statement.
--- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +2 -0
@@ -352,6 +352,8 @@ static bool is_yuv_output(u32 bus_format)switch (bus_format) {case MEDIA_BUS_FMT_YUV8_1X24 :case MEDIA_BUS_FMT_YUV10_1X30 : +case MEDIA_BUS_FMT_YUYV10_1X20 : +case MEDIA_BUS_FMT_UYVY10_1X20 :case MEDIA_BUS_FMT_UYYVYY8_0_5X24 :case MEDIA_BUS_FMT_UYYVYY10_0_5X30 :case MEDIA_BUS_FMT_YUYV8_2X8 :
Signature · 1 line
2.54.0
PATCH v15 18/28 drm/rockchip: vop2: Set correct output format for RK3576 YUV422
In reply to Nicolas FrattaroliFor RK3576 to be able to output YUV422 signals, it first needs to be able to pick the right output mode in the display controller to do so.
The RK3576 hardware specifies different output formats depending on the used display protocol.
Adjust the written register value based on the SoC and connector, so other users of vcstate->output_mode don't have to care about this.
--- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +16 -0
@@ -1702,6 +1702,22 @@ static void vop2_crtc_atomic_enable(struct drm_crtc *crtc,if (vcstate->output_mode ==ROCKCHIP_OUT_MODE_AAAA && !(vp_data->feature &VOP2_VP_FEATURE_OUTPUT_10BIT )) out_mode =ROCKCHIP_OUT_MODE_P888 ; +else if (vcstate->output_mode ==ROCKCHIP_OUT_MODE_YUV422 && + vop2->version ==VOP_VERSION_RK3576 ) +switch (vcstate->output_type) { +case DRM_MODE_CONNECTOR_DisplayPort: +case DRM_MODE_CONNECTOR_eDP: + out_mode =ROCKCHIP_OUT_MODE_YUV422_RK3576_DP ; +break ; +case DRM_MODE_CONNECTOR_HDMIA : + out_mode =ROCKCHIP_OUT_MODE_YUV422_RK3576_HDMI ; +break ; +default : +drm_err (vop2->drm,"Unknown DRM_MODE_CONNECTOR %d\n" , + vcstate->output_type); +vop2_unlock (vop2); +return ; + }else out_mode = vcstate->output_mode;
Signature · 1 line
2.54.0
PATCH v15 19/28 drm/bridge: dw-hdmi-qp: Use common HDMI output bus fmts helper
In reply to Nicolas FrattaroliMake use of the common drm_bridge_funcs.atomic_get_output_bus_fmts helper for HDMI bridge connectors.
This allows dw-hdmi-qp HDMI bridges to participate in recursive bus format selection in a meaningful way.
--- drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c +1 -0
@@ -1190,6 +1190,7 @@ static int dw_hdmi_qp_cec_transmit(struct drm_bridge *bridge, u8 attempts,#endif /* CONFIG_DRM_DW_HDMI_QP_CEC */ static const struct drm_bridge_funcs dw_hdmi_qp_bridge_funcs = { + .atomic_get_output_bus_fmts = drm_atomic_helper_bridge_get_hdmi_output_bus_fmts, .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, .atomic_reset = drm_atomic_helper_bridge_reset,
Signature · 1 line
2.54.0
PATCH v15 20/28 drm/rockchip: dw_hdmi_qp: Implement "color format" DRM property
In reply to Nicolas FrattaroliSwitch between requested color formats by setting the right bus formats, configuring the VO GRF registers, and setting the right output mode.
To do this, the encoder's atomic_check queries the bus format of the first bridge, which was determined by the bridge chain recursive format selection. Pick the input format if it's !FIXED, otherwise, pick the output format.
The previously unused GRF register color format defines are redone as well. Both RK3588 and RK3576 use the same defines; it didn't look like this as there was a typo in the previously (unused) definition.
--- drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 107 ++++++++++++++++++++++--- 1 file changed, 98 insertions(+), 9 deletions(-)
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c +98 -9
@@ -11,6 +11,7 @@#include <linux/gpio/consumer.h> #include <linux/hw_bitfield.h> #include <linux/mfd/syscon.h> +#include <linux/media-bus-format.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/phy/phy.h>
@@ -44,10 +45,6 @@#define RK3576_8BPC 0x0#define RK3576_10BPC 0x6#define RK3576_COLOR_FORMAT_MASK GENMASK(7, 4) -#define RK3576_RGB 0x9 -#define RK3576_YUV422 0x1 -#define RK3576_YUV444 0x2 -#define RK3576_YUV420 0x3#define RK3576_CECIN_MASK BIT(3)#define RK3576_VO0_GRF_SOC_CON14 0x0038
@@ -75,8 +72,6 @@#define RK3588_8BPC 0x0#define RK3588_10BPC 0x6#define RK3588_COLOR_FORMAT_MASK GENMASK(3, 0) -#define RK3588_RGB 0x0 -#define RK3588_YUV420 0x3#define RK3588_SCLIN_MASK BIT(9)#define RK3588_SDAIN_MASK BIT(10)#define RK3588_MODE_MASK BIT(11)
@@ -88,6 +83,11 @@#define HOTPLUG_DEBOUNCE_MS 150#define MAX_HDMI_PORT_NUM 2 +#define RK_COLOR_FMT_RGB 0x0 +#define RK_COLOR_FMT_YUV422 0x1 +#define RK_COLOR_FMT_YUV444 0x2 +#define RK_COLOR_FMT_YUV420 0x3 +struct rockchip_hdmi_qp {struct device *dev;struct regmap *regmap;
@@ -116,6 +116,33 @@ static struct rockchip_hdmi_qp *to_rockchip_hdmi_qp(struct drm_encoder *encoder) return container_of(rkencoder, struct rockchip_hdmi_qp, encoder); } +/** +* dw_hdmi_qp_rockchip_bus_fmt_to_reg - converts a bus format to a GRF reg value +* @bus_fmt: One of the MEDIA_BUS_FMT_s allowed by this driver's atomic_check +* +* Returns: an unshifted value to be written to the COLOR_FORMAT GRF register +* on success, or %-EINVAL if the bus format is not supported. +*/ +static int __pure dw_hdmi_qp_rockchip_bus_fmt_to_reg (u32 bus_fmt) +{ +switch (bus_fmt) { +case MEDIA_BUS_FMT_RGB888_1X24 : +case MEDIA_BUS_FMT_RGB101010_1X30 : +return RK_COLOR_FMT_RGB ; +case MEDIA_BUS_FMT_UYVY8_1X16 : +case MEDIA_BUS_FMT_UYVY10_1X20 : +return RK_COLOR_FMT_YUV422 ; +case MEDIA_BUS_FMT_YUV8_1X24 : +case MEDIA_BUS_FMT_YUV10_1X30 : +return RK_COLOR_FMT_YUV444 ; +case MEDIA_BUS_FMT_UYYVYY8_0_5X24 : +case MEDIA_BUS_FMT_UYYVYY10_0_5X30 : +return RK_COLOR_FMT_YUV420 ; + } + +return -EINVAL ; +} +static void dw_hdmi_qp_rockchip_encoder_enable (struct drm_encoder *encoder) {struct rockchip_hdmi_qp *hdmi =to_rockchip_hdmi_qp (encoder);
@@ -131,29 +158,83 @@ static void dw_hdmi_qp_rockchip_encoder_enable(struct drm_encoder *encoder) hdmi->ctrl_ops->enc_init (hdmi,to_rockchip_crtc_state (crtc->state)); } +/** +* dw_hdmi_qp_rockchip_get_vop_format - get the bus format VOP should output +* @encoder: pointer to a &struct drm_encoder +* @conn_state: pointer to the current atomic &struct drm_connector_state +* +* Determines which bus format the Rockchip video processor should output as +* to feed into the bridge chain. +* +* Returns a MEDIA_BUS_FMT_* on success, or negative errno on error. +*/ +static int dw_hdmi_qp_rockchip_get_vop_format (struct drm_encoder *encoder, +struct drm_connector_state *conn_state) +{ + struct drm_bridge *bridge __free(drm_bridge_put) = NULL; +struct drm_bridge_state *bstate; + + bridge =drm_bridge_chain_get_first_bridge (encoder); +if (!bridge) +return -ENODEV ; + + bstate =drm_atomic_get_bridge_state (conn_state->state, bridge); +if (IS_ERR (bstate)) +return PTR_ERR (bstate); + +if (bstate->input_bus_cfg.format !=MEDIA_BUS_FMT_FIXED ) +return bstate->input_bus_cfg.format; + +return bstate->output_bus_cfg.format; +} +static int dw_hdmi_qp_rockchip_encoder_atomic_check (struct drm_encoder *encoder,struct drm_crtc_state *crtc_state,struct drm_connector_state *conn_state) { -struct rockchip_hdmi_qp *hdmi =to_rockchip_hdmi_qp (encoder);struct rockchip_crtc_state *s =to_rockchip_crtc_state (crtc_state); +struct rockchip_hdmi_qp *hdmi =to_rockchip_hdmi_qp (encoder);union phy_configure_opts phy_cfg = {}; +int ingest_fmt;int ret; + ingest_fmt =dw_hdmi_qp_rockchip_get_vop_format (encoder, conn_state); +if (ingest_fmt <0 ) +return -EINVAL ; +if (hdmi->tmds_char_rate == conn_state->hdmi.tmds_char_rate && - s->output_bpc == conn_state->hdmi.output_bpc) + s->output_bpc == conn_state->hdmi.output_bpc && + s->bus_format == ingest_fmt)return 0 ; +switch (ingest_fmt) { +case MEDIA_BUS_FMT_RGB888_1X24 : +case MEDIA_BUS_FMT_RGB101010_1X30 : +case MEDIA_BUS_FMT_YUV8_1X24 : +case MEDIA_BUS_FMT_YUV10_1X30 : + s->output_mode =ROCKCHIP_OUT_MODE_AAAA ; +break ; +case MEDIA_BUS_FMT_UYVY8_1X16 : + s->output_mode =ROCKCHIP_OUT_MODE_YUV422 ; +break ; +case MEDIA_BUS_FMT_UYYVYY8_0_5X24 : +case MEDIA_BUS_FMT_UYYVYY10_0_5X30 : + s->output_mode =ROCKCHIP_OUT_MODE_YUV420 ; +break ; +default : +return -EINVAL ; + } + phy_cfg.hdmi.tmds_char_rate = conn_state->hdmi.tmds_char_rate; phy_cfg.hdmi.bpc = conn_state->hdmi.output_bpc; ret =phy_configure (hdmi->phy, &phy_cfg);if (!ret) { hdmi->tmds_char_rate = conn_state->hdmi.tmds_char_rate; - s->output_mode =ROCKCHIP_OUT_MODE_AAAA ; s->output_type =DRM_MODE_CONNECTOR_HDMIA ; s->output_bpc = conn_state->hdmi.output_bpc; + s->bus_format = ingest_fmt; }else {dev_err (hdmi->dev,"Failed to configure phy: %d\n" , ret); }
@@ -383,6 +464,7 @@ static void dw_hdmi_qp_rk3588_io_init(struct rockchip_hdmi_qp *hdmi)static void dw_hdmi_qp_rk3576_enc_init (struct rockchip_hdmi_qp *hdmi,struct rockchip_crtc_state *state) { +int color =dw_hdmi_qp_rockchip_bus_fmt_to_reg (state->bus_format);u32 val;if (state->output_bpc ==10 )
@@ -390,12 +472,16 @@ static void dw_hdmi_qp_rk3576_enc_init(struct rockchip_hdmi_qp *hdmi,else val =FIELD_PREP_WM16 (RK3576_COLOR_DEPTH_MASK ,RK3576_8BPC ); +if (likely (color >=0 )) + val |=FIELD_PREP_WM16 (RK3576_COLOR_FORMAT_MASK , color); +regmap_write (hdmi->vo_regmap,RK3576_VO0_GRF_SOC_CON8 , val); }static void dw_hdmi_qp_rk3588_enc_init (struct rockchip_hdmi_qp *hdmi,struct rockchip_crtc_state *state) { +int color =dw_hdmi_qp_rockchip_bus_fmt_to_reg (state->bus_format);u32 val;if (state->output_bpc ==10 )
@@ -403,6 +489,9 @@ static void dw_hdmi_qp_rk3588_enc_init(struct rockchip_hdmi_qp *hdmi,else val =FIELD_PREP_WM16 (RK3588_COLOR_DEPTH_MASK ,RK3588_8BPC ); +if (likely (color >=0 )) + val |=FIELD_PREP_WM16 (RK3588_COLOR_FORMAT_MASK , color); +regmap_write (hdmi->vo_regmap, hdmi->port_id ?RK3588_GRF_VO1_CON6 :RK3588_GRF_VO1_CON3 , val);
Signature · 1 line
2.54.0
PATCH v15 21/28 drm/rockchip: dw_hdmi_qp: Set supported_formats platdata
In reply to Nicolas FrattaroliWith the introduction of the supported_formats member in the dw-hdmi-qp platform data struct, drivers that have access to this information should now set it.
Set it in the rockchip dw_hdmi_qp glue driver.
This allows this information to be passed down to the dw-hdmi-qp core, which sets it in the bridge it creates, and consequently will allow the common HDMI bridge code to act on it.
--- drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c +4 -0
@@ -602,6 +602,10 @@ static int dw_hdmi_qp_rockchip_bind(struct device *dev, struct device *master, plat_data.phy_data = hdmi; plat_data.max_bpc =10 ; + plat_data.supported_formats =BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 ); + encoder = &hdmi->encoder.encoder; encoder->possible_crtcs =drm_of_find_possible_crtcs (drm, dev->of_node);
Signature · 1 line
2.54.0
PATCH v15 22/28 drm/connector: Register color format property on HDMI connectors
In reply to Nicolas FrattaroliThe drmm_connector_hdmi_init function can figure out what DRM color formats are supported by a particular connector based on the supported HDMI format bitmask that's passed in.
Use it to register the drm color format property.
--- drivers/gpu/drm/drm_connector.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +4 -0
@@ -627,6 +627,10 @@ int drmm_connector_hdmi_init(struct drm_device *dev,if (max_bpc >8 )drm_connector_attach_hdr_output_metadata_property (connector); + ret =drm_connector_attach_color_format_property (connector, supported_formats); +if (ret) +return ret; + connector->hdmi.funcs = hdmi_funcs;return 0 ;
Signature · 1 line
2.54.0
PATCH v15 23/28 drm/tests: hdmi: Add tests for the color_format property
In reply to Nicolas FrattaroliAdd some KUnit tests to check the color_format property is working as expected with the HDMI state helper.
Existing tests are extended to also test the DRM_CONNECTOR_COLOR_FORMAT_AUTO case, in order to avoid duplicating test cases. For the explicitly selected color format cases, parameterized tests are added.
--- drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 236 +++++++++++++++++++++ 1 file changed, 236 insertions(+)
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c +236 -0
@@ -60,6 +60,23 @@ static struct drm_display_mode *find_preferred_mode(struct drm_connector *connecreturn preferred; } +static struct drm_display_mode *find_420_only_mode (struct drm_connector *connector) +{ +struct drm_device *drm = connector->dev; +struct drm_display_mode *mode; + +mutex_lock (&drm->mode_config.mutex); +list_for_each_entry (mode, &connector->modes, head) { +if (drm_mode_is_420_only (&connector->display_info, mode)) { +mutex_unlock (&drm->mode_config.mutex); +return mode; + } + } +mutex_unlock (&drm->mode_config.mutex); + +return NULL ; +} +static int set_connector_edid (struct kunit *test,struct drm_connector *connector,const void *edid,size_t edid_len) {
@@ -1547,6 +1564,7 @@ static void drm_test_check_max_tmds_rate_bpc_fallback_yuv420(struct kunit *test)* RGB/10bpc * - The chosen mode has a TMDS character rate lower than the display * supports in YUV422/12bpc. +* - The HDMI connector state's color format property is unset (i.e. AUTO) * * Then we will prefer to keep the RGB format with a lower bpc over * picking YUV422.
@@ -1609,6 +1627,7 @@ static void drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422(struct kunit conn_state = conn->state;KUNIT_ASSERT_NOT_NULL (test, conn_state); +KUNIT_ASSERT_EQ (test, conn_state->color_format,DRM_CONNECTOR_COLOR_FORMAT_AUTO );KUNIT_EXPECT_EQ (test, conn_state->hdmi.output_bpc,10 );KUNIT_EXPECT_EQ (test, conn_state->hdmi.output_format,DRM_OUTPUT_COLOR_FORMAT_RGB444 );
@@ -1626,6 +1645,7 @@ static void drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422(struct kunit* RGB/8bpc * - The chosen mode has a TMDS character rate lower than the display * supports in YUV420/12bpc. +* - The HDMI connector state's color format property is unset (i.e. AUTO) * * Then we will prefer to keep the RGB format with a lower bpc over * picking YUV420.
@@ -1687,6 +1707,7 @@ static void drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420(struct kunit conn_state = conn->state;KUNIT_ASSERT_NOT_NULL (test, conn_state); +KUNIT_ASSERT_EQ (test, conn_state->color_format,DRM_CONNECTOR_COLOR_FORMAT_AUTO );KUNIT_EXPECT_EQ (test, conn_state->hdmi.output_bpc,8 );KUNIT_EXPECT_EQ (test, conn_state->hdmi.output_format,DRM_OUTPUT_COLOR_FORMAT_RGB444 );
@@ -2198,6 +2219,217 @@ static void drm_test_check_disable_connector(struct kunit *test)drm_modeset_acquire_fini (&ctx); } +struct color_format_test_param { +enum drm_connector_color_format fmt; +enum drm_output_color_format expected; +int expected_ret; +const char *desc; +}; + +/* Test that if: +* - an HDMI connector supports RGB, YUV444, YUV422, and YUV420 +* - the display supports RGB, YUV444, YUV422, and YUV420 +* - the "color format" property is set +* then, for the preferred mode, for a given "color format" option: +* - DRM_CONNECTOR_COLOR_FORMAT_AUTO results in an output format of RGB +* - DRM_CONNECTOR_COLOR_FORMAT_YCBCR422 results in an output format of YUV422 +* - DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 results in an output format of YUV420 +* - DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 results in an output format of YUV444 +* - DRM_CONNECTOR_COLOR_FORMAT_RGB results in an HDMI output format of RGB +*/ +static void drm_test_check_hdmi_color_format (struct kunit *test) +{ +const struct color_format_test_param *param = test->param_value; +struct drm_atomic_helper_connector_hdmi_priv *priv; +struct drm_connector_state *conn_state; +struct drm_modeset_acquire_ctx ctx; +struct drm_crtc_state *crtc_state; +struct drm_atomic_commit *state; +struct drm_display_info *info; +struct drm_display_mode *preferred; +int ret; + + priv =drm_kunit_helper_connector_hdmi_init_with_edid_funcs (test, +BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR420 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ), +12 , + &dummy_connector_hdmi_funcs, + test_edid_hdmi_4k_rgb_yuv420_dc_max_340mhz); +KUNIT_ASSERT_NOT_NULL (test, priv); + +drm_modeset_acquire_init (&ctx,0 ); + +KUNIT_ASSERT_TRUE (test, priv->connector.ycbcr_420_allowed); + + info = &priv->connector.display_info; +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, info); + preferred =find_preferred_mode (&priv->connector); +KUNIT_ASSERT_TRUE (test,drm_mode_is_420 (info, preferred)); + + state =drm_kunit_helper_atomic_state_alloc (test, &priv->drm, &ctx); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, state); + + conn_state =drm_atomic_get_connector_state (state, &priv->connector); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, conn_state); + + conn_state->color_format = param->fmt; + + ret =drm_atomic_set_crtc_for_connector (conn_state, priv->crtc); +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state =drm_atomic_get_crtc_state (state, priv->crtc); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, crtc_state); + + ret =drm_atomic_set_mode_for_crtc (crtc_state, preferred); +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state->enable = true; + crtc_state->active = true; + + ret =drm_atomic_check_only (state); +KUNIT_EXPECT_EQ (test, ret, param->expected_ret); +KUNIT_EXPECT_EQ (test, conn_state->hdmi.output_format, param->expected); + +drm_modeset_drop_locks (&ctx); +drm_modeset_acquire_fini (&ctx); +} + +static const struct color_format_test_param hdmi_color_format_params[] = { + { + .fmt =DRM_CONNECTOR_COLOR_FORMAT_AUTO , + .expected =DRM_OUTPUT_COLOR_FORMAT_RGB444 , + .expected_ret =0 , + .desc ="AUTO -> RGB" + }, + { + .fmt =DRM_CONNECTOR_COLOR_FORMAT_YCBCR422 , + .expected =DRM_OUTPUT_COLOR_FORMAT_YCBCR422 , + .expected_ret =0 , + .desc ="YCBCR422 -> YUV422" + }, + { + .fmt =DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 , + .expected =DRM_OUTPUT_COLOR_FORMAT_YCBCR420 , + .expected_ret =0 , + .desc ="YCBCR420 -> YUV420" + }, + { + .fmt =DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 , + .expected =DRM_OUTPUT_COLOR_FORMAT_YCBCR444 , + .expected_ret =0 , + .desc ="YCBCR444 -> YUV444" + }, + { + .fmt =DRM_CONNECTOR_COLOR_FORMAT_RGB444 , + .expected =DRM_OUTPUT_COLOR_FORMAT_RGB444 , + .expected_ret =0 , + .desc ="RGB -> RGB" + }, +}; + +KUNIT_ARRAY_PARAM_DESC (check_hdmi_color_format, hdmi_color_format_params, desc); + +/* Test that if: +* - the HDMI connector supports RGB, YUV422, YUV420, and YUV444 +* - the display has a YUV420-only mode +* - the "color format" property is explicitly set (i.e. !AUTO) +* then: +* - color format DRM_CONNECTOR_COLOR_FORMAT_RGB444 will fail +* drm_atomic_check_only for the YUV420-only mode with -EINVAL +* - color format DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 will fail +* drm_atomic_check_only for the YUV420-only mode with -EINVAL +* - color format DRM_CONNECTOR_COLOR_FORMAT_YCBCR422 will fail +* drm_atomic_check_only for the YUV420-only mode with -EINVAL +* - color format DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 passes +* drm_atomic_check_only for the YUV420-only mode +*/ +static void drm_test_check_hdmi_color_format_420_only (struct kunit *test) +{ +const struct color_format_test_param *param = test->param_value; +struct drm_atomic_helper_connector_hdmi_priv *priv; +struct drm_connector_state *conn_state; +struct drm_modeset_acquire_ctx ctx; +struct drm_crtc_state *crtc_state; +struct drm_atomic_commit *state; +struct drm_display_mode *dank; +int ret; + + priv =drm_kunit_helper_connector_hdmi_init_with_edid_funcs (test, +BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR420 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ), +12 , + &dummy_connector_hdmi_funcs, + test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz); +KUNIT_ASSERT_NOT_NULL (test, priv); + +drm_modeset_acquire_init (&ctx,0 ); + + dank =find_420_only_mode (&priv->connector); +KUNIT_ASSERT_NOT_NULL (test, dank); + + state =drm_kunit_helper_atomic_state_alloc (test, &priv->drm, &ctx); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, state); + + conn_state =drm_atomic_get_connector_state (state, &priv->connector); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, conn_state); + + conn_state->color_format = param->fmt; + + ret =drm_atomic_set_crtc_for_connector (conn_state, priv->crtc); +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state =drm_atomic_get_crtc_state (state, priv->crtc); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, crtc_state); + + ret =drm_atomic_set_mode_for_crtc (crtc_state, dank); +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state->enable = true; + crtc_state->active = true; + + ret =drm_atomic_check_only (state); +KUNIT_EXPECT_EQ (test, ret, param->expected_ret); +if (!param->expected_ret) +KUNIT_EXPECT_EQ (test, conn_state->hdmi.output_format, param->expected); + +drm_modeset_drop_locks (&ctx); +drm_modeset_acquire_fini (&ctx); +}; + +static const struct color_format_test_param hdmi_color_format_420_only_params[] = { + { + .fmt =DRM_CONNECTOR_COLOR_FORMAT_RGB444 , + .expected =DRM_OUTPUT_COLOR_FORMAT_RGB444 , + .expected_ret = -EINVAL , + .desc ="RGB should fail" + }, + { + .fmt =DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 , + .expected =DRM_OUTPUT_COLOR_FORMAT_YCBCR444 , + .expected_ret = -EINVAL , + .desc ="YUV444 should fail" + }, + { + .fmt =DRM_CONNECTOR_COLOR_FORMAT_YCBCR422 , + .expected =DRM_OUTPUT_COLOR_FORMAT_YCBCR422 , + .expected_ret = -EINVAL , + .desc ="YUV422 should fail" + }, + { + .fmt =DRM_CONNECTOR_COLOR_FORMAT_YCBCR420 , + .expected =DRM_OUTPUT_COLOR_FORMAT_YCBCR420 , + .expected_ret =0 , + .desc ="YUV420 should work" + }, +}; + +KUNIT_ARRAY_PARAM_DESC (check_hdmi_color_format_420_only, + hdmi_color_format_420_only_params, desc); +static struct kunit_case drm_atomic_helper_connector_hdmi_check_tests[] = {KUNIT_CASE (drm_test_check_broadcast_rgb_auto_cea_mode),KUNIT_CASE (drm_test_check_broadcast_rgb_auto_cea_mode_vic_1),
@@ -2227,6 +2459,10 @@ static struct kunit_case drm_atomic_helper_connector_hdmi_check_tests[] = {KUNIT_CASE (drm_test_check_tmds_char_rate_rgb_8bpc),KUNIT_CASE (drm_test_check_tmds_char_rate_rgb_10bpc),KUNIT_CASE (drm_test_check_tmds_char_rate_rgb_12bpc), +KUNIT_CASE_PARAM (drm_test_check_hdmi_color_format, + check_hdmi_color_format_gen_params), +KUNIT_CASE_PARAM (drm_test_check_hdmi_color_format_420_only, + check_hdmi_color_format_420_only_gen_params),/* * TODO: We should have tests to check that a change in the * format triggers a CRTC mode change just like we do for the
Signature · 1 line
2.54.0
PATCH v15 24/28 drm/tests: hdmi: Add tests for HDMI helper's mode_valid
In reply to Nicolas FrattaroliAdd some KUnit tests to verify that the HDMI state helper's mode_valid implementation does not improperly reject chroma subsampled modes on the basis of their clock rate not being satisfiable in RGB.
--- drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 109 +++++++++++++++++++++ 1 file changed, 109 insertions(+)
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c +109 -0
@@ -77,6 +77,23 @@ static struct drm_display_mode *find_420_only_mode(struct drm_connector *connectreturn NULL ; } +static struct drm_display_mode *find_420_also_mode (struct drm_connector *connector) +{ +struct drm_device *drm = connector->dev; +struct drm_display_mode *mode; + +mutex_lock (&drm->mode_config.mutex); +list_for_each_entry (mode, &connector->modes, head) { +if (drm_mode_is_420_also (&connector->display_info, mode)) { +mutex_unlock (&drm->mode_config.mutex); +return mode; + } + } +mutex_unlock (&drm->mode_config.mutex); + +return NULL ; +} +static int set_connector_edid (struct kunit *test,struct drm_connector *connector,const void *edid,size_t edid_len) {
@@ -2745,11 +2762,103 @@ static void drm_test_check_mode_valid_reject_max_clock(struct kunit *test)KUNIT_EXPECT_EQ (test, preferred->clock,25200 ); } +/* +* Test that drm_hdmi_connector_mode_valid() will accept modes that require a +* 4:2:0 chroma subsampling, even if said mode would violate maximum clock +* constraints if it used RGB 4:4:4. +*/ +static void drm_test_check_mode_valid_yuv420_only_max_clock (struct kunit *test) +{ +struct drm_atomic_helper_connector_hdmi_priv *priv; +struct drm_display_mode *dank; +struct drm_connector *conn; + + priv =drm_kunit_helper_connector_hdmi_init_with_edid_funcs (test, +BIT (HDMI_COLORSPACE_RGB ) | +BIT (HDMI_COLORSPACE_YUV420 ), +8 , + &dummy_connector_hdmi_funcs, + test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz); +KUNIT_ASSERT_NOT_NULL (test, priv); + + conn = &priv->connector; +KUNIT_ASSERT_EQ (test, conn->display_info.max_tmds_clock,200 *1000 ); + + dank =find_420_only_mode (conn); +KUNIT_ASSERT_NOT_NULL (test, dank); +KUNIT_EXPECT_EQ (test, dank->hdisplay,3840 ); +KUNIT_EXPECT_EQ (test, dank->vdisplay,2160 ); + +/* +* Note: The mode's "clock" here is not accurate to the actual TMDS +* clock that HDMI will use for a subsampled mode. Hence, why the mode's +* clock is above the .max_tmds_clock of 200MHz. +*/ +KUNIT_EXPECT_EQ (test, dank->clock,297000 ); +} + +/* +* Test that drm_hdmi_connector_mode_valid() will reject modes that require +* 4:2:0 chroma subsampling, if the connector does not support 4:2:0. +*/ +static void +drm_test_check_mode_valid_reject_yuv420_only_connector (struct kunit *test) +{ +struct drm_atomic_helper_connector_hdmi_priv *priv; +struct drm_display_mode *dank; +struct drm_connector *conn; + + priv =drm_kunit_helper_connector_hdmi_init_with_edid_funcs (test, +BIT (HDMI_COLORSPACE_RGB ), +8 , + &dummy_connector_hdmi_funcs, + test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz); +KUNIT_ASSERT_NOT_NULL (test, priv); + + conn = &priv->connector; +KUNIT_ASSERT_EQ (test, conn->display_info.max_tmds_clock,200 *1000 ); + + dank =find_420_only_mode (conn); +KUNIT_EXPECT_NULL (test, dank); +} + +/* +* Test that drm_hdmi_connector_mode_valid() will accept modes that allow (among +* other color formats) 4:2:0 chroma subsampling, even if the connector does not +* support 4:2:0, but the mode's clock works for RGB 4:4:4. +*/ +static void +drm_test_check_mode_valid_accept_yuv420_also_connector_rgb (struct kunit *test) +{ +struct drm_atomic_helper_connector_hdmi_priv *priv; +struct drm_display_mode *mode; +struct drm_connector *conn; + + priv =drm_kunit_helper_connector_hdmi_init_with_edid_funcs (test, +BIT (HDMI_COLORSPACE_RGB ), +8 , + &dummy_connector_hdmi_funcs, + test_edid_hdmi_4k_rgb_yuv420_dc_max_340mhz); +KUNIT_ASSERT_NOT_NULL (test, priv); + + conn = &priv->connector; +KUNIT_ASSERT_EQ (test, conn->display_info.max_tmds_clock,340 *1000 ); + + mode =find_420_also_mode (conn); +KUNIT_ASSERT_NOT_NULL (test, mode); +KUNIT_EXPECT_EQ (test, mode->hdisplay,3840 ); +KUNIT_EXPECT_EQ (test, mode->vdisplay,2160 ); +KUNIT_EXPECT_EQ (test, mode->clock,297000 ); +} +static struct kunit_case drm_atomic_helper_connector_hdmi_mode_valid_tests[] = {KUNIT_CASE (drm_test_check_mode_valid),KUNIT_CASE (drm_test_check_mode_valid_reject),KUNIT_CASE (drm_test_check_mode_valid_reject_rate),KUNIT_CASE (drm_test_check_mode_valid_reject_max_clock), +KUNIT_CASE (drm_test_check_mode_valid_yuv420_only_max_clock), +KUNIT_CASE (drm_test_check_mode_valid_reject_yuv420_only_connector), +KUNIT_CASE (drm_test_check_mode_valid_accept_yuv420_also_connector_rgb), { } };
Signature · 1 line
2.54.0
PATCH v15 25/28 drm/tests: bridge: Add KUnit tests for bridge chain format selection
In reply to Nicolas FrattaroliWith the "color format" property, the bridge chain format selection has gained increased complexity. Instead of simply finding any sequence of bus formats that works, the bridge chain format selection needs to pick a sequence that results in the requested color format.
Add KUnit tests for this new logic. These take the form of some pleasant preprocessor macros to make it less cumbersome to define test bridges with a set of possible input and output formats.
The input and output formats are defined for bridges in the form of tuples, where the first member defines the input format, and the second member defines the output format that can be produced from this input format. This means the tests can construct scenarios in which not all inputs can be converted to all outputs.
Some tests are added to test interesting scenarios to exercise the bus format selection in the presence of a specific color format request.
Furthermore, tests are added to verify that bridge chains that end in an HDMI connector will always prefer RGB when the color format is DRM_CONNECTOR_COLOR_FORMAT_AUTO, as is the behaviour in the HDMI state helpers.
--- drivers/gpu/drm/tests/drm_bridge_test.c | 787 ++++++++++++++++++++++++++++++++ 1 file changed, 787 insertions(+)
drivers/gpu/drm/tests/drm_bridge_test.c +787 -0
@@ -2,15 +2,23 @@/* * Kunit test for drm_bridge functions */ +#include <linux/cleanup.h> +#include <linux/media-bus-format.h> +#include <drm/drm_atomic_state_helper.h> +#include <drm/drm_atomic_uapi.h> #include <drm/drm_bridge.h> #include <drm/drm_bridge_connector.h> #include <drm/drm_bridge_helper.h> +#include <drm/drm_edid.h> #include <drm/drm_kunit_helpers.h> +#include <drm/drm_managed.h> #include <kunit/device.h> #include <kunit/test.h> +#include "drm_kunit_edid.h" +/* * Mimick the typical "private" struct defined by a bridge driver, which * embeds a bridge plus other fields.
@@ -37,6 +45,21 @@ struct drm_bridge_init_priv {bool destroyed; }; +struct drm_bridge_chain_priv { +struct drm_device drm; +struct drm_encoder encoder; +struct drm_plane *plane; +struct drm_crtc *crtc; +struct drm_connector *connector; +unsigned int num_bridges; + +/** +* @test_bridges: array of pointers to &struct drm_bridge_priv entries +* of which the first @num_bridges entries are valid. +*/ +struct drm_bridge_priv **test_bridges; +}; +static struct drm_bridge_priv *bridge_to_priv (struct drm_bridge *bridge) { return container_of(bridge, struct drm_bridge_priv, bridge);
@@ -95,6 +118,229 @@ static const struct drm_bridge_funcs drm_test_bridge_atomic_funcs = { .atomic_reset = drm_atomic_helper_bridge_reset, }; +/** +* struct fmt_tuple - a tuple of input/output MEDIA_BUS_FMT_* +*/ +struct fmt_tuple { +u32 in_fmt; +u32 out_fmt; +}; + +/* +* Format mapping that only accepts RGB888, and outputs only RGB888 +*/ +static const struct fmt_tuple rgb8_passthrough[] = { + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_RGB888_1X24 }, +}; + +/* +* Format mapping that only accepts YUV444, and outputs only YUV444 +*/ +static const struct fmt_tuple yuv8_passthrough[] = { + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, +}; + +/* +* Format mapping where 8bpc RGB -> 8bpc YUV444, or ID(RGB) or ID(YUV444) +*/ +static const struct fmt_tuple rgb8_to_yuv8_or_id[] = { + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_RGB888_1X24 }, + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, +}; + +static const struct fmt_tuple rgb8_to_id_yuv8_or_yuv8_to_yuv422_yuv420[] = { + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_RGB888_1X24 }, + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_UYVY8_1X16 }, + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_UYYVYY8_0_5X24 }, +}; + +/* +* Format mapping where 8bpc YUV444 -> 8bpc RGB, or ID(YUV444) +*/ +static const struct fmt_tuple yuv8_to_rgb8_or_id[] = { + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_RGB888_1X24 }, +}; + +/* +* A format mapping that acts like a video processor that generates an RGB signal +*/ +static const struct fmt_tuple rgb_producer[] = { + {MEDIA_BUS_FMT_FIXED ,MEDIA_BUS_FMT_RGB888_1X24 }, + {MEDIA_BUS_FMT_FIXED ,MEDIA_BUS_FMT_RGB101010_1X30 }, + {MEDIA_BUS_FMT_FIXED ,MEDIA_BUS_FMT_RGB121212_1X36 }, +}; + +/* +* A format mapping that acts like a video processor that generates an 8-bit RGB, +* YUV444 or YUV420 signal +*/ +static const struct fmt_tuple rgb_yuv444_yuv420_producer[] = { + {MEDIA_BUS_FMT_FIXED ,MEDIA_BUS_FMT_RGB888_1X24 }, + {MEDIA_BUS_FMT_FIXED ,MEDIA_BUS_FMT_YUV8_1X24 }, + {MEDIA_BUS_FMT_FIXED ,MEDIA_BUS_FMT_UYYVYY8_0_5X24 }, +}; + +static const struct fmt_tuple rgb8_yuv444_yuv422_passthrough[] = { + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_RGB888_1X24 }, + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, + {MEDIA_BUS_FMT_UYVY8_1X16 ,MEDIA_BUS_FMT_UYVY8_1X16 }, +}; + +static const struct fmt_tuple yuv444_yuv422_rgb8_passthrough[] = { + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, + {MEDIA_BUS_FMT_UYVY8_1X16 ,MEDIA_BUS_FMT_UYVY8_1X16 }, + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_RGB888_1X24 }, +}; + +static bool fmt_in_list (const u32 fmt,const u32 *out_fmts,const size_t num_fmts) +{ +size_t i; + +for (i =0 ; i < num_fmts; i++) +if (out_fmts[i] == fmt) +return true; + +return false; +} + +/** +* get_tuples_out_fmts - Get unique output formats of a &struct fmt_tuple list +* @fmt_tuples: array of &struct fmt_tuple +* @num_fmt_tuples: number of entries in @fmt_tuples +* @out_fmts: target array to store the unique output bus formats +* +* Returns the number of unique output formats, i.e. the number of entries in +* @out_fmts that were populated with sensible values. +*/ +static size_t get_tuples_out_fmts (const struct fmt_tuple *fmt_tuples, +const size_t num_fmt_tuples,u32 *out_fmts) +{ +size_t num_unique =0 ; +size_t i; + +for (i =0 ; i < num_fmt_tuples; i++) +if (!fmt_in_list (fmt_tuples[i].out_fmt, out_fmts, num_unique)) + out_fmts[num_unique++] = fmt_tuples[i].out_fmt; + +return num_unique; +} + +#define DEFINE_FMT_FUNCS_FROM_TUPLES (name) \ +static u32 *drm_test_bridge_ ## name ## _out_fmts(struct drm_bridge *bridge, \ + struct drm_bridge_state *bridge_state, \ + struct drm_crtc_state *crtc_state, \ + struct drm_connector_state *conn_state, \ + unsigned int *num_output_fmts) \ +{ \ + u32 *out_fmts = kcalloc(ARRAY_SIZE((name)), sizeof(u32), GFP_KERNEL); \ + \ + if (out_fmts) \ + *num_output_fmts = get_tuples_out_fmts((name), ARRAY_SIZE((name)), out_fmts); \ + else \ + *num_output_fmts = 0; \ + \ + return out_fmts; \ +} \ + \ +static u32 *drm_test_bridge_ ## name ## _in_fmts(struct drm_bridge *bridge, \ + struct drm_bridge_state *bridge_state, \ + struct drm_crtc_state *crtc_state, \ + struct drm_connector_state *conn_state, \ + u32 output_fmt, \ + unsigned int *num_input_fmts) \ +{ \ + u32 *in_fmts = kcalloc(ARRAY_SIZE((name)), sizeof(u32), GFP_KERNEL); \ + unsigned int num_fmts = 0; \ + size_t i; \ + \ + if (!in_fmts) { \ + *num_input_fmts = 0; \ + return NULL; \ + } \ + \ + for (i = 0; i < ARRAY_SIZE((name)); i++) \ + if ((name)[i].out_fmt == output_fmt) \ + in_fmts[num_fmts++] = (name)[i].in_fmt; \ + \ + *num_input_fmts = num_fmts; \ + \ + return in_fmts; \ +} + +#define DRM_BRIDGE_ATOMIC_WITH_BUS_FMT_HDMI_FUNC (ident, input_fmts_func, output_fmts_func, \ + hdmi_write_infoframe_func, \ + hdmi_clear_infoframe_func) \ +static const struct drm_bridge_funcs (ident) = { \ + .atomic_enable = drm_test_bridge_atomic_enable, \ + .atomic_disable = drm_test_bridge_atomic_disable, \ + .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, \ + .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, \ + .atomic_reset = drm_atomic_helper_bridge_reset, \ + .atomic_get_input_bus_fmts = (input_fmts_func), \ + .atomic_get_output_bus_fmts = (output_fmts_func), \ + .hdmi_write_avi_infoframe = (hdmi_write_infoframe_func), \ + .hdmi_clear_avi_infoframe = (hdmi_clear_infoframe_func), \ + .hdmi_write_hdmi_infoframe = (hdmi_write_infoframe_func), \ + .hdmi_clear_hdmi_infoframe = (hdmi_clear_infoframe_func), \ +} + +#define DRM_BRIDGE_ATOMIC_WITH_BUS_FMT_FUNC (ident, input_fmts_func, output_fmts_func) \ + DRM_BRIDGE_ATOMIC_WITH_BUS_FMT_HDMI_FUNC(ident, input_fmts_func, output_fmts_func, \ + NULL, NULL) + +#define DRM_BRIDGE_ATOMIC_WITH_BUS_FMT (_name) \ + DRM_BRIDGE_ATOMIC_WITH_BUS_FMT_FUNC(_name ## _funcs, \ + drm_test_bridge_ ## _name ## _in_fmts, \ + drm_test_bridge_ ## _name ## _out_fmts) + +static int drm_test_bridge_write_infoframe_stub (struct drm_bridge *bridge, +const u8 *buffer,size_t len) +{ +return 0 ; +} + +static int drm_test_bridge_clear_infoframe_stub (struct drm_bridge *bridge) +{ +return 0 ; +} + +#define DRM_BRIDGE_ATOMIC_WITH_BUS_FMT_HDMI (_name) \ + DRM_BRIDGE_ATOMIC_WITH_BUS_FMT_HDMI_FUNC(_name ## _hdmi ## _funcs, \ + drm_test_bridge_ ## _name ## _in_fmts, \ + drm_test_bridge_ ## _name ## _out_fmts, \ + drm_test_bridge_write_infoframe_stub, \ + drm_test_bridge_clear_infoframe_stub) +DEFINE_FMT_FUNCS_FROM_TUPLES (rgb8_passthrough) +DRM_BRIDGE_ATOMIC_WITH_BUS_FMT (rgb8_passthrough); + +DEFINE_FMT_FUNCS_FROM_TUPLES (yuv8_passthrough) +DRM_BRIDGE_ATOMIC_WITH_BUS_FMT (yuv8_passthrough); + +DEFINE_FMT_FUNCS_FROM_TUPLES (rgb8_to_yuv8_or_id) +DRM_BRIDGE_ATOMIC_WITH_BUS_FMT (rgb8_to_yuv8_or_id); + +DEFINE_FMT_FUNCS_FROM_TUPLES (yuv8_to_rgb8_or_id) +DRM_BRIDGE_ATOMIC_WITH_BUS_FMT (yuv8_to_rgb8_or_id); + +DEFINE_FMT_FUNCS_FROM_TUPLES (rgb_producer) +DRM_BRIDGE_ATOMIC_WITH_BUS_FMT (rgb_producer); + +DEFINE_FMT_FUNCS_FROM_TUPLES (rgb_yuv444_yuv420_producer) +DRM_BRIDGE_ATOMIC_WITH_BUS_FMT (rgb_yuv444_yuv420_producer); + +DEFINE_FMT_FUNCS_FROM_TUPLES (rgb8_to_id_yuv8_or_yuv8_to_yuv422_yuv420) +DRM_BRIDGE_ATOMIC_WITH_BUS_FMT (rgb8_to_id_yuv8_or_yuv8_to_yuv422_yuv420); + +DEFINE_FMT_FUNCS_FROM_TUPLES (rgb8_yuv444_yuv422_passthrough) +DRM_BRIDGE_ATOMIC_WITH_BUS_FMT (rgb8_yuv444_yuv422_passthrough); + +DEFINE_FMT_FUNCS_FROM_TUPLES (yuv444_yuv422_rgb8_passthrough) +DRM_BRIDGE_ATOMIC_WITH_BUS_FMT (yuv444_yuv422_rgb8_passthrough); +DRM_BRIDGE_ATOMIC_WITH_BUS_FMT_HDMI (yuv444_yuv422_rgb8_passthrough); +KUNIT_DEFINE_ACTION_WRAPPER (drm_bridge_remove_wrapper, drm_bridge_remove, struct drm_bridge *);
@@ -178,6 +424,119 @@ drm_test_bridge_init(struct kunit *test, const struct drm_bridge_funcs *funcs)return priv; } +static struct drm_bridge_chain_priv * +drm_test_bridge_chain_init (struct kunit *test,unsigned int num_bridges, +const struct drm_bridge_funcs **funcs) +{ +struct drm_bridge_chain_priv *priv; +const struct drm_edid *edid; +struct drm_bridge *prev; +struct drm_encoder *enc; +struct drm_bridge *bridge; +struct drm_device *drm; +bool has_hdmi = false; +struct device *dev; +unsigned int i; +int ret; + + dev =drm_kunit_helper_alloc_device (test); +if (IS_ERR (dev)) +return ERR_CAST (dev); + + priv = drm_kunit_helper_alloc_drm_device(test, dev, struct drm_bridge_chain_priv, + drm,DRIVER_MODESET |DRIVER_ATOMIC ); +if (IS_ERR (priv)) +return ERR_CAST (priv); + + drm = &priv->drm; + + priv->test_bridges =drmm_kmalloc_array (drm, num_bridges,sizeof (*priv->test_bridges), +GFP_KERNEL ); +if (!priv->test_bridges) +return ERR_PTR (-ENOMEM ); + + priv->num_bridges = num_bridges; + +for (i =0 ; i < num_bridges; i++) { + priv->test_bridges[i] = devm_drm_bridge_alloc(dev, struct drm_bridge_priv, + bridge, funcs[i]); +if (IS_ERR (priv->test_bridges[i])) +return ERR_CAST (priv->test_bridges[i]); + + priv->test_bridges[i]->data = priv; + } + + priv->plane =drm_kunit_helper_create_primary_plane (test, drm,NULL ,NULL , +NULL ,0 ,NULL ); +if (IS_ERR (priv->plane)) +return ERR_CAST (priv->plane); + + priv->crtc =drm_kunit_helper_create_crtc (test, drm, priv->plane,NULL , +NULL ,NULL ); +if (IS_ERR (priv->crtc)) +return ERR_CAST (priv->crtc); + + enc = &priv->encoder; + ret =drmm_encoder_init (drm, enc,NULL ,DRM_MODE_ENCODER_TMDS ,NULL ); +if (ret) +return ERR_PTR (ret); + + enc->possible_crtcs =drm_crtc_mask (priv->crtc); + + prev =NULL ; +for (i =0 ; i < num_bridges; i++) { + bridge = &priv->test_bridges[i]->bridge; + bridge->type =DRM_MODE_CONNECTOR_VIRTUAL ; + +if (bridge->funcs->hdmi_write_hdmi_infoframe) { + has_hdmi = true; + bridge->ops |=DRM_BRIDGE_OP_HDMI ; + bridge->type =DRM_MODE_CONNECTOR_HDMIA ; + bridge->vendor ="LNX" ; + bridge->product ="KUnit" ; + bridge->supported_formats = (BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR422 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR420 )); + } + + ret =drm_kunit_bridge_add (test, bridge); +if (ret) +return ERR_PTR (ret); + + ret =drm_bridge_attach (enc, bridge, prev,0 ); +if (ret) +return ERR_PTR (ret); + + prev = bridge; + } + + priv->connector =drm_bridge_connector_init (drm, enc); +if (IS_ERR (priv->connector)) +return ERR_CAST (priv->connector); + +drm_connector_attach_encoder (priv->connector, enc); + +drm_mode_config_reset (drm); + +if (!has_hdmi) +return priv; + + scoped_guard(mutex, &drm->mode_config.mutex) { + edid =drm_edid_alloc (test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz, +ARRAY_SIZE (test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz)); +if (!edid) +return ERR_PTR (-EINVAL ); + +drm_edid_connector_update (priv->connector, edid); +KUNIT_ASSERT_GT (test,drm_edid_connector_add_modes (priv->connector),0 ); + + ret = priv->connector->funcs->fill_modes (priv->connector,4096 ,4096 ); + } + +return priv; +} +/* * Test that drm_bridge_get_current_state() returns the last committed * state for an atomic bridge.
@@ -506,14 +865,442 @@ static struct kunit_suite drm_bridge_alloc_test_suite = { .test_cases = drm_bridge_alloc_tests, }; +/** +* drm_test_bridge_chain_verify_fmt - Verify bridge chain format selection +* @test: pointer to KUnit test object +* @priv: pointer to a &struct drm_bridge_chain_priv for this chain +* @expected: constant array of &struct fmt_tuple describing the expected +* input and output bus formats +* @num_expected: number of entries in @expected +* +* Runs the KUNIT_EXPECT clauses to verify the bridge chain format selection +* resulted in the expected formats. If %0 is given as a format in a +* &struct fmt_tuple, then it is understood to mean "any". +* +* Must be called with the modeset lock held. +*/ +static void drm_test_bridge_chain_verify_fmt (struct kunit *test, +struct drm_bridge_chain_priv *priv, +const struct fmt_tuple *const expected, +const unsigned int num_expected) +{ +struct drm_bridge_state *bstate; +unsigned int i =0 ; + +drm_for_each_bridge_in_chain_scoped (&priv->encoder, bridge) { +KUNIT_ASSERT_LT (test, i, num_expected); + + bstate =drm_bridge_get_current_state (bridge); +if (expected[i].in_fmt) +KUNIT_EXPECT_EQ (test, bstate->input_bus_cfg.format, + expected[i].in_fmt); +if (expected[i].out_fmt) +KUNIT_EXPECT_EQ (test, bstate->output_bus_cfg.format, + expected[i].out_fmt); + + i++; + } + +KUNIT_ASSERT_EQ_MSG (test, i, num_expected, +"Fewer bridges (%u) than expected (%u)\n" , i, num_expected); +} + +/* +* Test that constructs a bridge chain in which an RGB888 producer is chained to +* two bridges that will convert from RGB to YUV and from YUV to RGB respectively. +* +* The test requests an output color_format of RGB using the color_format property, +* so to satisfy this request, the bridge chain must take a detour over YUV. +*/ +static void drm_test_bridge_rgb_yuv_rgb (struct kunit *test) +{ +static const struct drm_bridge_funcs *funcs[] = { + &rgb_producer_funcs, + &rgb8_to_yuv8_or_id_funcs, + &yuv8_to_rgb8_or_id_funcs, + }; +static const struct fmt_tuple expected[] = { + {MEDIA_BUS_FMT_FIXED ,MEDIA_BUS_FMT_RGB888_1X24 }, + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_RGB888_1X24 }, + }; +struct drm_connector_state *conn_state; +struct drm_modeset_acquire_ctx ctx; +struct drm_bridge_chain_priv *priv; +struct drm_crtc_state *crtc_state; +struct drm_atomic_commit *state; +struct drm_display_mode *mode; +int ret; + + priv =drm_test_bridge_chain_init (test,ARRAY_SIZE (funcs), funcs); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, priv); + +drm_modeset_acquire_init (&ctx,0 ); + + state =drm_kunit_helper_atomic_state_alloc (test, &priv->drm, &ctx); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, state); + +retry_commit: + conn_state =drm_atomic_get_connector_state (state, priv->connector); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, conn_state); + + mode =drm_kunit_display_mode_from_cea_vic (test, &priv->drm,16 ); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, mode); + + conn_state->color_format =DRM_CONNECTOR_COLOR_FORMAT_RGB444 ; + + ret =drm_atomic_set_crtc_for_connector (conn_state, priv->crtc); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state =drm_atomic_get_crtc_state (state, priv->crtc); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, crtc_state); + + ret =drm_atomic_set_mode_for_crtc (crtc_state, mode); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state->enable = true; + crtc_state->active = true; + + ret =drm_atomic_commit (state); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + +drm_test_bridge_chain_verify_fmt (test, priv, expected,ARRAY_SIZE (expected)); + +drm_modeset_drop_locks (&ctx); +drm_modeset_acquire_fini (&ctx); +} + +/* +* Test in which a bridge capable of producing RGB, YUV444 and YUV420 has to +* produce RGB and convert with a downstream bridge in the chain to reach the +* requested YUV444 color format, as no direct path exists between its YUV444 +* and the last bridge. +* +* The rationale behind this test is to devise a scenario in which naively +* assuming any format the video processor can output, and the connector +* requests, is the right format to pick, does not work. +*/ +static void drm_test_bridge_must_convert_to_yuv444 (struct kunit *test) +{ +static const struct drm_bridge_funcs *funcs[] = { + &rgb_yuv444_yuv420_producer_funcs, + &rgb8_passthrough_funcs, + &rgb8_to_id_yuv8_or_yuv8_to_yuv422_yuv420_funcs, + &rgb8_yuv444_yuv422_passthrough_funcs, + }; +static const struct fmt_tuple expected[] = { + {MEDIA_BUS_FMT_FIXED ,MEDIA_BUS_FMT_RGB888_1X24 }, + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_RGB888_1X24 }, + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, + }; +struct drm_connector_state *conn_state; +struct drm_modeset_acquire_ctx ctx; +struct drm_bridge_chain_priv *priv; +struct drm_crtc_state *crtc_state; +struct drm_atomic_commit *state; +struct drm_display_mode *mode; +int ret; + + priv =drm_test_bridge_chain_init (test,ARRAY_SIZE (funcs), funcs); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, priv); + +drm_modeset_acquire_init (&ctx,0 ); + + state =drm_kunit_helper_atomic_state_alloc (test, &priv->drm, &ctx); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, state); + +retry_commit: + conn_state =drm_atomic_get_connector_state (state, priv->connector); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, conn_state); + + mode =drm_kunit_display_mode_from_cea_vic (test, &priv->drm,16 ); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, mode); + + conn_state->color_format =DRM_CONNECTOR_COLOR_FORMAT_YCBCR444 ; + + ret =drm_atomic_set_crtc_for_connector (conn_state, priv->crtc); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state =drm_atomic_get_crtc_state (state, priv->crtc); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, crtc_state); + + ret =drm_atomic_set_mode_for_crtc (crtc_state, mode); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state->enable = true; + crtc_state->active = true; + + ret =drm_atomic_commit (state); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + +drm_test_bridge_chain_verify_fmt (test, priv, expected,ARRAY_SIZE (expected)); + +drm_modeset_drop_locks (&ctx); +drm_modeset_acquire_fini (&ctx); +} + +/* +* Test which checks that no matter the order of bus formats returned by an +* HDMI bridge, RGB is preferred on DRM_CONNECTOR_COLOR_FORMAT_AUTO if it's +* available. +*/ +static void drm_test_bridge_hdmi_auto_rgb (struct kunit *test) +{ +static const struct drm_bridge_funcs *funcs[] = { + &rgb_yuv444_yuv420_producer_funcs, + &yuv444_yuv422_rgb8_passthrough_hdmi_funcs, + }; +static const struct fmt_tuple expected[] = { + {MEDIA_BUS_FMT_FIXED ,MEDIA_BUS_FMT_RGB888_1X24 }, + {MEDIA_BUS_FMT_RGB888_1X24 ,MEDIA_BUS_FMT_RGB888_1X24 }, + }; +struct drm_connector_state *conn_state; +struct drm_modeset_acquire_ctx ctx; +struct drm_bridge_chain_priv *priv; +struct drm_crtc_state *crtc_state; +struct drm_atomic_commit *state; +struct drm_display_mode *mode; +int ret; + + priv =drm_test_bridge_chain_init (test,ARRAY_SIZE (funcs), funcs); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, priv); + +drm_modeset_acquire_init (&ctx,0 ); + + state =drm_kunit_helper_atomic_state_alloc (test, &priv->drm, &ctx); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, state); + +retry_commit: + conn_state =drm_atomic_get_connector_state (state, priv->connector); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, conn_state); + + mode =drm_kunit_display_mode_from_cea_vic (test, &priv->drm,16 ); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, mode); + +KUNIT_ASSERT_EQ (test, conn_state->color_format,DRM_CONNECTOR_COLOR_FORMAT_AUTO ); + + ret =drm_atomic_set_crtc_for_connector (conn_state, priv->crtc); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state =drm_atomic_get_crtc_state (state, priv->crtc); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, crtc_state); + + ret =drm_atomic_set_mode_for_crtc (crtc_state, mode); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state->enable = true; + crtc_state->active = true; + + ret =drm_atomic_commit (state); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + +KUNIT_EXPECT_EQ (test, conn_state->hdmi.output_format,DRM_OUTPUT_COLOR_FORMAT_RGB444 ); + +drm_test_bridge_chain_verify_fmt (test, priv, expected,ARRAY_SIZE (expected)); + +drm_modeset_drop_locks (&ctx); +drm_modeset_acquire_fini (&ctx); +} + +/* +* Test which checks that DRM_CONNECTOR_COLOR_FORMAT_AUTO on non-HDMI connectors +* will result in the first bus format on the output to be picked. +*/ +static void drm_test_bridge_auto_first (struct kunit *test) +{ +static const struct drm_bridge_funcs *funcs[] = { + &rgb_yuv444_yuv420_producer_funcs, + &yuv444_yuv422_rgb8_passthrough_funcs, + }; +static const struct fmt_tuple expected[] = { + {MEDIA_BUS_FMT_FIXED ,MEDIA_BUS_FMT_YUV8_1X24 }, + {MEDIA_BUS_FMT_YUV8_1X24 ,MEDIA_BUS_FMT_YUV8_1X24 }, + }; +struct drm_connector_state *conn_state; +struct drm_modeset_acquire_ctx ctx; +struct drm_bridge_chain_priv *priv; +struct drm_crtc_state *crtc_state; +struct drm_atomic_commit *state; +struct drm_display_mode *mode; +int ret; + + priv =drm_test_bridge_chain_init (test,ARRAY_SIZE (funcs), funcs); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, priv); + +drm_modeset_acquire_init (&ctx,0 ); + + state =drm_kunit_helper_atomic_state_alloc (test, &priv->drm, &ctx); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, state); + +retry_commit: + conn_state =drm_atomic_get_connector_state (state, priv->connector); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, conn_state); + + mode =drm_kunit_display_mode_from_cea_vic (test, &priv->drm,16 ); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, mode); + +KUNIT_ASSERT_EQ (test, conn_state->color_format,DRM_CONNECTOR_COLOR_FORMAT_AUTO ); + + ret =drm_atomic_set_crtc_for_connector (conn_state, priv->crtc); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state =drm_atomic_get_crtc_state (state, priv->crtc); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, crtc_state); + + ret =drm_atomic_set_mode_for_crtc (crtc_state, mode); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state->enable = true; + crtc_state->active = true; + + ret =drm_atomic_commit (state); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + +drm_test_bridge_chain_verify_fmt (test, priv, expected,ARRAY_SIZE (expected)); + +drm_modeset_drop_locks (&ctx); +drm_modeset_acquire_fini (&ctx); +} + +/* +* Test which checks that in a configuration of bridge chains where an RGB +* producer is hooked to a YUV444-only pass-through, the atomic commit fails as +* the bridge format selection cannot find a valid sequence of bus formats. +*/ +static void drm_test_bridge_rgb_yuv_no_path (struct kunit *test) +{ +static const struct drm_bridge_funcs *funcs[] = { + &rgb_producer_funcs, + &yuv8_passthrough_funcs, + &rgb8_yuv444_yuv422_passthrough_funcs, + }; +struct drm_connector_state *conn_state; +struct drm_modeset_acquire_ctx ctx; +struct drm_bridge_chain_priv *priv; +struct drm_crtc_state *crtc_state; +struct drm_atomic_commit *state; +struct drm_display_mode *mode; +int ret; + + priv =drm_test_bridge_chain_init (test,ARRAY_SIZE (funcs), funcs); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, priv); + +drm_modeset_acquire_init (&ctx,0 ); + + state =drm_kunit_helper_atomic_state_alloc (test, &priv->drm, &ctx); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, state); + +retry_commit: + conn_state =drm_atomic_get_connector_state (state, priv->connector); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, conn_state); + + mode =drm_kunit_display_mode_from_cea_vic (test, &priv->drm,16 ); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, mode); + + ret =drm_atomic_set_crtc_for_connector (conn_state, priv->crtc); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state =drm_atomic_get_crtc_state (state, priv->crtc); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, crtc_state); + + ret =drm_atomic_set_mode_for_crtc (crtc_state, mode); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state->enable = true; + crtc_state->active = true; + + ret =drm_atomic_commit (state); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_EXPECT_EQ (test, ret, -ENOTSUPP ); + +drm_modeset_drop_locks (&ctx); +drm_modeset_acquire_fini (&ctx); +} + +static struct kunit_case drm_bridge_bus_fmt_tests[] = { +KUNIT_CASE (drm_test_bridge_rgb_yuv_rgb), +KUNIT_CASE (drm_test_bridge_must_convert_to_yuv444), +KUNIT_CASE (drm_test_bridge_hdmi_auto_rgb), +KUNIT_CASE (drm_test_bridge_auto_first), +KUNIT_CASE (drm_test_bridge_rgb_yuv_no_path), + { } +}; + +static struct kunit_suite drm_bridge_bus_fmt_test_suite = { + .name ="drm_bridge_bus_fmt" , + .test_cases = drm_bridge_bus_fmt_tests, +}; +kunit_test_suites ( &drm_bridge_get_current_state_test_suite, &drm_bridge_helper_reset_crtc_test_suite, &drm_bridge_alloc_test_suite, + &drm_bridge_bus_fmt_test_suite, );MODULE_AUTHOR ("Maxime Ripard <[email protected]>" );MODULE_AUTHOR ("Luca Ceresoli <[email protected]>" ); +MODULE_AUTHOR ("Nicolas Frattaroli <[email protected]>" );MODULE_DESCRIPTION ("Kunit test for drm_bridge functions" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.54.0
PATCH v15 26/28 drm/tests: bridge: Add test for HDMI output bus formats helper
In reply to Nicolas FrattaroliThe common atomic_get_output_bus_fmts helper for HDMI bridge connectors, called drm_atomic_helper_bridge_get_hdmi_output_bus_fmts, should return an array of output bus formats depending on the supported formats of the connector, and the current output BPC.
Add a test to exercise some of this helper.
--- drivers/gpu/drm/tests/drm_bridge_test.c | 184 ++++++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+)
drivers/gpu/drm/tests/drm_bridge_test.c +184 -0
@@ -5,6 +5,7 @@#include <linux/cleanup.h> #include <linux/media-bus-format.h> +#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_state_helper.h> #include <drm/drm_atomic_uapi.h> #include <drm/drm_bridge.h>
@@ -118,6 +119,28 @@ static const struct drm_bridge_funcs drm_test_bridge_atomic_funcs = { .atomic_reset = drm_atomic_helper_bridge_reset, }; +static int dummy_clear_infoframe (struct drm_bridge *bridge) +{ +return 0 ; +} + +static int dummy_write_infoframe (struct drm_bridge *bridge,const u8 *buffer, +size_t len) +{ +return 0 ; +} + +static const struct drm_bridge_funcs drm_test_bridge_bus_fmts_funcs = { + .atomic_get_output_bus_fmts = drm_atomic_helper_bridge_get_hdmi_output_bus_fmts, + .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, + .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, + .atomic_reset = drm_atomic_helper_bridge_reset, + .hdmi_write_avi_infoframe = dummy_write_infoframe, + .hdmi_write_hdmi_infoframe = dummy_write_infoframe, + .hdmi_clear_avi_infoframe = dummy_clear_infoframe, + .hdmi_clear_hdmi_infoframe = dummy_clear_infoframe, +}; +/** * struct fmt_tuple - a tuple of input/output MEDIA_BUS_FMT_* */
@@ -537,6 +560,83 @@ drm_test_bridge_chain_init(struct kunit *test, unsigned int num_bridges,return priv; } +static struct drm_bridge_init_priv * +drm_test_bridge_hdmi_init (struct kunit *test,const struct drm_bridge_funcs *funcs, +unsigned int supported_formats,int max_bpc) +{ +struct drm_bridge_init_priv *priv; +struct drm_encoder *enc; +struct drm_bridge *bridge; +struct drm_device *drm; +struct device *dev; +int ret; + + dev =drm_kunit_helper_alloc_device (test); +if (IS_ERR (dev)) +return ERR_CAST (dev); + + priv =drm_kunit_helper_alloc_drm_device (test, dev, + struct drm_bridge_init_priv, drm, +DRIVER_MODESET |DRIVER_ATOMIC ); +if (IS_ERR (priv)) +return ERR_CAST (priv); + + priv->test_bridge = devm_drm_bridge_alloc(dev, struct drm_bridge_priv, bridge, funcs); +if (IS_ERR (priv->test_bridge)) +return ERR_CAST (priv->test_bridge); + + priv->test_bridge->data = priv; + + drm = &priv->drm; + priv->plane =drm_kunit_helper_create_primary_plane (test, drm, +NULL , +NULL , +NULL ,0 , +NULL ); +if (IS_ERR (priv->plane)) +return ERR_CAST (priv->plane); + + priv->crtc =drm_kunit_helper_create_crtc (test, drm, + priv->plane,NULL , +NULL , +NULL ); +if (IS_ERR (priv->crtc)) +return ERR_CAST (priv->crtc); + + enc = &priv->encoder; + ret =drmm_encoder_init (drm, enc,NULL ,DRM_MODE_ENCODER_TMDS ,NULL ); +if (ret) +return ERR_PTR (ret); + + enc->possible_crtcs =drm_crtc_mask (priv->crtc); + + bridge = &priv->test_bridge->bridge; + bridge->type =DRM_MODE_CONNECTOR_HDMIA ; + bridge->supported_formats = supported_formats; + bridge->max_bpc = max_bpc; + bridge->ops |=DRM_BRIDGE_OP_HDMI ; + bridge->vendor ="LNX" ; + bridge->product ="KUnit" ; + + ret =drm_kunit_bridge_add (test, bridge); +if (ret) +return ERR_PTR (ret); + + ret =drm_bridge_attach (enc, bridge,NULL ,0 ); +if (ret) +return ERR_PTR (ret); + + priv->connector =drm_bridge_connector_init (drm, enc); +if (IS_ERR (priv->connector)) +return ERR_CAST (priv->connector); + +drm_connector_attach_encoder (priv->connector, enc); + +drm_mode_config_reset (drm); + +return priv; +} +/* * Test that drm_bridge_get_current_state() returns the last committed * state for an atomic bridge.
@@ -784,10 +884,94 @@ static void drm_test_drm_bridge_helper_reset_crtc_legacy(struct kunit *test)KUNIT_EXPECT_EQ (test, bridge_priv->disable_count,1 ); } +/* +* Test that a bridge using the drm_atomic_helper_bridge_get_hdmi_output_bus_fmts() +* function for &drm_bridge_funcs.atomic_get_output_bus_fmts behaves as expected +* for an HDMI connector bridge. Does so by creating an HDMI bridge connector +* with RGB444, YCBCR444, and YCBCR420 (but not YCBCR422) as supported formats, +* sets the output depth to 8 bits per component, and then validates the returned +* list of bus formats. +*/ +static void drm_test_drm_bridge_helper_hdmi_output_bus_fmts (struct kunit *test) +{ +struct drm_connector_state *conn_state; +struct drm_bridge_state *bridge_state; +struct drm_modeset_acquire_ctx ctx; +struct drm_bridge_init_priv *priv; +struct drm_crtc_state *crtc_state; +struct drm_atomic_commit *state; +struct drm_display_mode *mode; +unsigned int num_output_fmts; +struct drm_bridge *bridge; +u32 *out_bus_fmts; +int ret; + + priv =drm_test_bridge_hdmi_init (test, &drm_test_bridge_bus_fmts_funcs, +BIT (DRM_OUTPUT_COLOR_FORMAT_RGB444 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR444 ) | +BIT (DRM_OUTPUT_COLOR_FORMAT_YCBCR420 ), +12 ); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, priv); + + bridge = &priv->test_bridge->bridge; + +drm_modeset_acquire_init (&ctx,0 ); + + state =drm_kunit_helper_atomic_state_alloc (test, &priv->drm, &ctx); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, state); + +retry_commit: + conn_state =drm_atomic_get_connector_state (state, priv->connector); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, conn_state); + + conn_state->hdmi.output_bpc =8 ; + + mode =drm_kunit_display_mode_from_cea_vic (test, &priv->drm,16 ); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, mode); + + ret =drm_atomic_set_crtc_for_connector (conn_state, priv->crtc); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state =drm_atomic_get_crtc_state (state, priv->crtc); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, crtc_state); + + ret =drm_atomic_set_mode_for_crtc (crtc_state, mode); +if (ret == -EDEADLK ) { +drm_modeset_backoff (&ctx); + goto retry_commit; + } +KUNIT_ASSERT_EQ (test, ret,0 ); + + crtc_state->enable = true; + crtc_state->active = true; + + bridge_state =drm_atomic_get_bridge_state (state, bridge); +KUNIT_ASSERT_NOT_ERR_OR_NULL (test, bridge_state); + + out_bus_fmts = bridge->funcs->atomic_get_output_bus_fmts ( + bridge, bridge_state, crtc_state, conn_state, &num_output_fmts); +KUNIT_EXPECT_NOT_NULL (test, out_bus_fmts); +KUNIT_EXPECT_EQ (test, num_output_fmts,3 ); + +KUNIT_EXPECT_EQ (test, out_bus_fmts[0 ],MEDIA_BUS_FMT_RGB888_1X24 ); +KUNIT_EXPECT_EQ (test, out_bus_fmts[1 ],MEDIA_BUS_FMT_YUV8_1X24 ); +KUNIT_EXPECT_EQ (test, out_bus_fmts[2 ],MEDIA_BUS_FMT_UYYVYY8_0_5X24 ); + +drm_modeset_drop_locks (&ctx); +drm_modeset_acquire_fini (&ctx); + +kfree (out_bus_fmts); +} +static struct kunit_case drm_bridge_helper_reset_crtc_tests[] = {KUNIT_CASE (drm_test_drm_bridge_helper_reset_crtc_atomic),KUNIT_CASE (drm_test_drm_bridge_helper_reset_crtc_atomic_disabled),KUNIT_CASE (drm_test_drm_bridge_helper_reset_crtc_legacy), +KUNIT_CASE (drm_test_drm_bridge_helper_hdmi_output_bus_fmts), { } };
Signature · 1 line
2.54.0
PATCH v15 27/28 drm/bridge: Document bridge chain format selection
In reply to Nicolas FrattaroliThe bridge chain format selection behaviour was, until now, undocumented. With the addition of the "color format" DRM property, it's not sufficiently complex enough that documentation is warranted, especially for driver authors trying to do the right thing.
Add a high-level overview of how the process is supposed to work, and mention what the display driver is supposed to do if it wants to make use of this functionality.
--- Documentation/gpu/drm-kms-helpers.rst | 6 ++++++ drivers/gpu/drm/drm_bridge.c | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+)
Documentation/gpu/drm-kms-helpers.rst +6 -0
@@ -171,6 +171,12 @@ Bridge Operations .. kernel-doc:: drivers/gpu/drm/drm_bridge.c :doc: bridge operations +Bridge Chain Format Selection +----------------------------- + +.. kernel-doc:: drivers/gpu/drm/drm_bridge.c + :doc: bridge chain format selection + Bridge Connector Helper -----------------------
drivers/gpu/drm/drm_bridge.c +40 -0
@@ -198,6 +198,46 @@* driver. */ +/** +* DOC: bridge chain format selection +* +* A bridge chain, from display output processor to connector, may contain +* bridges capable of converting between bus formats on their inputs, and +* output formats on their outputs. For example, a bridge may be able to convert +* from RGB to YCbCr 4:4:4, and pass through YCbCr 4:2:0 as-is, but not convert +* from RGB to YCbCr 4:2:0. This means not all input formats map to all output +* formats. +* +* Further adding to this, a desired output color format, as specified with the +* "color format" DRM property, might not correspond 1:1 to what the display +* driver should set at its output. The bridge chain it feeds into may only be +* able to reach the desired output format, if a conversion from a different +* starting format is performed. +* +* To deal with this complexity, the recursive bridge chain bus format selection +* logic starts with the last bridge in the chain, usually the connector, and +* then recursively walks the chain of bridges backwards to the first bridge, +* trying to find a path. +* +* For a display driver to work in such a scenario, it should read the first +* bridge's bridge state to figure out which bus format the chain resolved to. +* If the first bridge's input format resolved to %MEDIA_BUS_FMT_FIXED, then its +* output format should be used. +* +* Special handling is done for HDMI as it relates to format selection. Instead +* of directly using the "color format" DRM property for bridge chains that end +* in HDMI bridges, the bridge chain format selection logic will trust the logic +* that set the HDMI output format. For the common HDMI state helper +* functionality, this means that %DRM_CONNECTOR_COLOR_FORMAT_AUTO will allow +* fallbacks to YCBCr 4:2:0 if the bandwidth requirements would otherwise be too +* high but the mode and connector allow it. +* +* For bridge chains that do not end in an HDMI bridge, +* %DRM_CONNECTOR_COLOR_FORMAT_AUTO will be satisfied with the first output +* format on the last bridge for which it can find a path back to the first +* bridge. +*/ +/* Protect bridge_list and bridge_lingering_list */ static DEFINE_MUTEX (bridge_lock);static LIST_HEAD (bridge_list);
Signature · 1 line
2.54.0
PATCH v15 28/28 drm/connector: Update docs of "colorspace" for color format prop
In reply to Nicolas FrattaroliThe colorspace property's documentation states that BT2020_RGB and BT2020_YCC are equivalent, and the output format depends on the driver.
Now that there is a "color format" property that userspace can use to explicitly set a format, update the colorspace docs to mention this.
The behaviour here is not changed for userspace that doesn't know about the color format property yet, as the color format property defaults to "AUTO", where the choice of output format is left up to drivers.
--- drivers/gpu/drm/drm_connector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_connector.c +2 -1
@@ -2573,7 +2573,8 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);* conversion matrix and convert to the appropriate quantization * range. * The variants BT2020_RGB and BT2020_YCC are equivalent and the -* driver chooses between RGB and YCbCr on its own. +* driver chooses between RGB and YCbCr based on the color format +* property. * * SMPTE_170M_YCC: * BT709_YCC:
Signature · 1 line
2.54.0
✗ CI.checkpatch: warning for Add new general DRM property "color format" (rev12)
In reply to Nicolas Frattaroli== Series Details ==
== Series Details ==
Series: Add new general DRM property "color format" (rev12)
URL : https://patchwork.freedesktop.org/series/157911/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master 061140b9bc586ae7f40abc1249c97e1cc72d1b9d
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit b0a8ecd46d9ab299fd1a35edc298cc3f6d51eb99
Author: Nicolas Frattaroli <[email protected]> Date: Fri May 22 14:32:19 2026 +0200
drm/connector: Update docs of "colorspace" for color format prop
The colorspace property's documentation states that BT2020_RGB and BT2020_YCC are equivalent, and the output format depends on the driver.
Now that there is a "color format" property that userspace can use to explicitly set a format, update the colorspace docs to mention this.
The behaviour here is not changed for userspace that doesn't know about the color format property yet, as the color format property defaults to "AUTO", where the choice of output format is left up to drivers.
+ /mt/dim checkpatch 127c8434a6a018110189cdb654719a9844702ff7 drm-intel 71f669d05f25 drm/amd/display: Remove unnecessary SIGNAL_TYPE_HDMI_TYPE_A check d86b1d27b6df drm/display: hdmi-state-helper: Use default case for unsupported formats 27dfcbfe50af drm: Add new general DRM property "color format" 27de1857ec15 drm/connector: Let connectors have a say in their color format -:62: CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#62: FILE: include/drm/drm_connector.h:1798:
+ enum drm_connector_color_format (*color_format)(
total: 0 errors, 0 warnings, 1 checks, 46 lines checked b779ff9d32a2 drm/display: bridge_connector: Use HDMI color format for HDMI conns 5abe797bbd22 drm/bridge: Act on the DRM color format property -:105: WARNING:ENOTSUPP: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP #105: FILE: drivers/gpu/drm/drm_bridge.c:1292:
+ ret = -ENOTSUPP;
-:111: WARNING:ENOTSUPP: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP #111: FILE: drivers/gpu/drm/drm_bridge.c:1297:
+ if (ret != -ENOTSUPP) {
total: 0 errors, 2 warnings, 0 checks, 86 lines checked b3feb285e02e drm/atomic-helper: Add HDMI bridge output bus formats helper -:70: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #70: FILE: drivers/gpu/drm/drm_atomic_helper.c:4131:
+drm_atomic_helper_bridge_get_hdmi_output_bus_fmts(struct drm_bridge *bridge,
+ struct drm_bridge_state *bridge_state,
-:140: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #140: FILE: include/drm/drm_atomic_helper.h:300:
+drm_atomic_helper_bridge_get_hdmi_output_bus_fmts(struct drm_bridge *bridge,
+ struct drm_bridge_state *bridge_state,
total: 0 errors, 0 warnings, 2 checks, 101 lines checked ce5522007463 drm/display: hdmi-state-helper: Act on color format DRM property -:51: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #51: FILE: drivers/gpu/drm/display/drm_hdmi_state_helper.c:695:
+ drm_dbg_kms(connector->dev, "HDMI does not support color format '%d'.\n",
+ conn_state->color_format);
total: 0 errors, 0 warnings, 1 checks, 39 lines checked 5a403ea91f34 drm/display: hdmi-state-helper: Try subsampling in mode_valid 5d15acad9163 drm/amdgpu: Implement "color format" DRM property 3f1737f8d112 drm/i915/hdmi: Add YCBCR444 handling for sink formats bfda35d96865 drm/i915/dp: Add YCBCR444 handling for sink formats 945f9b2a0028 drm/i915/hdmi: Implement "color format" DRM property 082d9c10b81b drm/i915/dp: Implement "color format" DRM property b19ac7c915b3 drm/rockchip: Add YUV422 output mode constants for VOP2 2df097666139 drm/rockchip: vop2: Add RK3576 to the RG swap special case 76d08401eb0a drm/rockchip: vop2: Recognise 10-bit YUV422 as YUV format 5c4566273fbf drm/rockchip: vop2: Set correct output format for RK3576 YUV422 1ae5e60b5a92 drm/bridge: dw-hdmi-qp: Use common HDMI output bus fmts helper 0734b7814242 drm/rockchip: dw_hdmi_qp: Implement "color format" DRM property 758d152fa648 drm/rockchip: dw_hdmi_qp: Set supported_formats platdata 6347b51a05d8 drm/connector: Register color format property on HDMI connectors 2040666a1833 drm/tests: hdmi: Add tests for the color_format property -:113: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #113: FILE: drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2253:
+ priv = drm_kunit_helper_connector_hdmi_init_with_edid_funcs(test,
+ BIT(DRM_OUTPUT_COLOR_FORMAT_RGB444) |
-:220: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #220: FILE: drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2360:
+ priv = drm_kunit_helper_connector_hdmi_init_with_edid_funcs(test,
+ BIT(DRM_OUTPUT_COLOR_FORMAT_RGB444) |
total: 0 errors, 0 warnings, 2 checks, 278 lines checked 7918ea892f62 drm/tests: hdmi: Add tests for HDMI helper's mode_valid -:58: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #58: FILE: drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2777:
+ priv = drm_kunit_helper_connector_hdmi_init_with_edid_funcs(test,
+ BIT(HDMI_COLORSPACE_RGB) |
-:93: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #93: FILE: drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2812:
+ priv = drm_kunit_helper_connector_hdmi_init_with_edid_funcs(test,
+ BIT(HDMI_COLORSPACE_RGB),
-:119: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #119: FILE: drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:2838:
+ priv = drm_kunit_helper_connector_hdmi_init_with_edid_funcs(test,
+ BIT(HDMI_COLORSPACE_RGB),
total: 0 errors, 0 warnings, 3 checks, 126 lines checkedfdf49babefa1 drm/tests: bridge: Add KUnit tests for bridge chain format selection -:198: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'name' - possible side-effects? #198: FILE: drivers/gpu/drm/tests/drm_bridge_test.c:231:
+#define DEFINE_FMT_FUNCS_FROM_TUPLES(name) \
+static u32 *drm_test_bridge_ ## name ## _out_fmts(struct drm_bridge *bridge, \
+ struct drm_bridge_state *bridge_state, \ + struct drm_crtc_state *crtc_state, \ + struct drm_connector_state *conn_state, \ + unsigned int *num_output_fmts) \
+{ \
+ u32 *out_fmts = kcalloc(ARRAY_SIZE((name)), sizeof(u32), GFP_KERNEL); \
+ \
+ if (out_fmts) \
+ *num_output_fmts = get_tuples_out_fmts((name), ARRAY_SIZE((name)), out_fmts); \
+ else \
+ *num_output_fmts = 0; \
+ \
+ return out_fmts; \
+} \
+ \
+static u32 *drm_test_bridge_ ## name ## _in_fmts(struct drm_bridge *bridge, \
+ struct drm_bridge_state *bridge_state, \
+ struct drm_crtc_state *crtc_state, \
+ struct drm_connector_state *conn_state, \
+ u32 output_fmt, \
+ unsigned int *num_input_fmts) \
+{ \
+ u32 *in_fmts = kcalloc(ARRAY_SIZE((name)), sizeof(u32), GFP_KERNEL); \
+ unsigned int num_fmts = 0; \
+ size_t i; \
+ \
+ if (!in_fmts) { \
+ *num_input_fmts = 0; \
+ return NULL; \
+ } \
+ \
+ for (i = 0; i < ARRAY_SIZE((name)); i++) \
+ if ((name)[i].out_fmt == output_fmt) \
+ in_fmts[num_fmts++] = (name)[i].in_fmt; \
+ \
+ *num_input_fmts = num_fmts; \
+ \
+ return in_fmts; \
+}
-:240: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'hdmi_write_infoframe_func' - possible side-effects? #240: FILE: drivers/gpu/drm/tests/drm_bridge_test.c:273:
+#define DRM_BRIDGE_ATOMIC_WITH_BUS_FMT_HDMI_FUNC(ident, input_fmts_func, output_fmts_func, \
+ hdmi_write_infoframe_func, \
+ hdmi_clear_infoframe_func) \
+static const struct drm_bridge_funcs (ident) = { \
+ .atomic_enable = drm_test_bridge_atomic_enable, \
+ .atomic_disable = drm_test_bridge_atomic_disable, \
+ .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, \
+ .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, \
+ .atomic_reset = drm_atomic_helper_bridge_reset, \
+ .atomic_get_input_bus_fmts = (input_fmts_func), \
+ .atomic_get_output_bus_fmts = (output_fmts_func), \
+ .hdmi_write_avi_infoframe = (hdmi_write_infoframe_func), \
+ .hdmi_clear_avi_infoframe = (hdmi_clear_infoframe_func), \
+ .hdmi_write_hdmi_infoframe = (hdmi_write_infoframe_func), \
+ .hdmi_clear_hdmi_infoframe = (hdmi_clear_infoframe_func), \
+}
-:240: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'hdmi_clear_infoframe_func' - possible side-effects? #240: FILE: drivers/gpu/drm/tests/drm_bridge_test.c:273:
+#define DRM_BRIDGE_ATOMIC_WITH_BUS_FMT_HDMI_FUNC(ident, input_fmts_func, output_fmts_func, \
+ hdmi_write_infoframe_func, \
+ hdmi_clear_infoframe_func) \
+static const struct drm_bridge_funcs (ident) = { \
+ .atomic_enable = drm_test_bridge_atomic_enable, \
+ .atomic_disable = drm_test_bridge_atomic_disable, \
+ .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, \
+ .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, \
+ .atomic_reset = drm_atomic_helper_bridge_reset, \
+ .atomic_get_input_bus_fmts = (input_fmts_func), \
+ .atomic_get_output_bus_fmts = (output_fmts_func), \
+ .hdmi_write_avi_infoframe = (hdmi_write_infoframe_func), \
+ .hdmi_clear_avi_infoframe = (hdmi_clear_infoframe_func), \
+ .hdmi_write_hdmi_infoframe = (hdmi_write_infoframe_func), \
+ .hdmi_clear_hdmi_infoframe = (hdmi_clear_infoframe_func), \
+}
-:418: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #418: FILE: drivers/gpu/drm/tests/drm_bridge_test.c:527:
+ edid = drm_edid_alloc(test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz,
+ ARRAY_SIZE(test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz));
-:844: WARNING:ENOTSUPP: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP #844: FILE: drivers/gpu/drm/tests/drm_bridge_test.c:1274:
+ KUNIT_EXPECT_EQ(test, ret, -ENOTSUPP);
total: 0 errors, 1 warnings, 4 checks, 834 lines checked 00b13e87b7c8 drm/tests: bridge: Add test for HDMI output bus formats helper -:215: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #215: FILE: drivers/gpu/drm/tests/drm_bridge_test.c:955:
+ out_bus_fmts = bridge->funcs->atomic_get_output_bus_fmts(
total: 0 errors, 0 warnings, 1 checks, 212 lines checked e743405d05fa drm/bridge: Document bridge chain format selection b0a8ecd46d9a drm/connector: Update docs of "colorspace" for color format prop
Patchwork
CI✓ CI.KUnit: success for Add new general DRM property "color format" (rev12)
In reply to Nicolas Frattaroli== Series Details ==
== Series Details ==
Series: Add new general DRM property "color format" (rev12)
URL : https://patchwork.freedesktop.org/series/157911/
State : success
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [13:13:30] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [13:13:35] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [13:14:06] Starting KUnit Kernel (1/1)... [13:14:06] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [13:14:06] ================== guc_buf (11 subtests) =================== [13:14:06] [PASSED] test_smallest [13:14:06] [PASSED] test_largest [13:14:06] [PASSED] test_granular [13:14:06] [PASSED] test_unique [13:14:06] [PASSED] test_overlap [13:14:06] [PASSED] test_reusable [13:14:06] [PASSED] test_too_big [13:14:06] [PASSED] test_flush [13:14:06] [PASSED] test_lookup [13:14:06] [PASSED] test_data [13:14:06] [PASSED] test_class [13:14:06] ===================== [PASSED] guc_buf ===================== [13:14:06] =================== guc_dbm (7 subtests) =================== [13:14:06] [PASSED] test_empty [13:14:06] [PASSED] test_default [13:14:06] ======================== test_size ======================== [13:14:06] [PASSED] 4 [13:14:06] [PASSED] 8 [13:14:06] [PASSED] 32 [13:14:06] [PASSED] 256 [13:14:06] ==================== [PASSED] test_size ==================== [13:14:06] ======================= test_reuse ======================== [13:14:06] [PASSED] 4 [13:14:06] [PASSED] 8 [13:14:06] [PASSED] 32 [13:14:06] [PASSED] 256 [13:14:06] =================== [PASSED] test_reuse ==================== [13:14:06] =================== test_range_overlap ==================== [13:14:06] [PASSED] 4 [13:14:06] [PASSED] 8 [13:14:06] [PASSED] 32 [13:14:06] [PASSED] 256 [13:14:06] =============== [PASSED] test_range_overlap ================ [13:14:06] =================== test_range_compact ==================== [13:14:06] [PASSED] 4 [13:14:06] [PASSED] 8 [13:14:06] [PASSED] 32 [13:14:06] [PASSED] 256 [13:14:06] =============== [PASSED] test_range_compact ================ [13:14:06] ==================== test_range_spare ===================== [13:14:06] [PASSED] 4 [13:14:06] [PASSED] 8 [13:14:06] [PASSED] 32 [13:14:06] [PASSED] 256 [13:14:06] ================ [PASSED] test_range_spare ================= [13:14:06] ===================== [PASSED] guc_dbm ===================== [13:14:06] =================== guc_idm (6 subtests) =================== [13:14:06] [PASSED] bad_init [13:14:06] [PASSED] no_init [13:14:06] [PASSED] init_fini [13:14:06] [PASSED] check_used [13:14:06] [PASSED] check_quota [13:14:06] [PASSED] check_all [13:14:06] ===================== [PASSED] guc_idm ===================== [13:14:06] ================== no_relay (3 subtests) =================== [13:14:06] [PASSED] xe_drops_guc2pf_if_not_ready [13:14:06] [PASSED] xe_drops_guc2vf_if_not_ready [13:14:06] [PASSED] xe_rejects_send_if_not_ready [13:14:06] ==================== [PASSED] no_relay ===================== [13:14:06] ================== pf_relay (14 subtests) ================== [13:14:06] [PASSED] pf_rejects_guc2pf_too_short [13:14:06] [PASSED] pf_rejects_guc2pf_too_long [13:14:06] [PASSED] pf_rejects_guc2pf_no_payload [13:14:06] [PASSED] pf_fails_no_payload [13:14:06] [PASSED] pf_fails_bad_origin [13:14:06] [PASSED] pf_fails_bad_type [13:14:06] [PASSED] pf_txn_reports_error [13:14:06] [PASSED] pf_txn_sends_pf2guc [13:14:06] [PASSED] pf_sends_pf2guc [13:14:06] [SKIPPED] pf_loopback_nop [13:14:06] [SKIPPED] pf_loopback_echo [13:14:06] [SKIPPED] pf_loopback_fail [13:14:06] [SKIPPED] pf_loopback_busy [13:14:06] [SKIPPED] pf_loopback_retry [13:14:06] ==================== [PASSED] pf_relay ===================== [13:14:06] ================== vf_relay (3 subtests) =================== [13:14:06] [PASSED] vf_rejects_guc2vf_too_short [13:14:06] [PASSED] vf_rejects_guc2vf_too_long [13:14:06] [PASSED] vf_rejects_guc2vf_no_payload [13:14:06] ==================== [PASSED] vf_relay ===================== [13:14:06] ================ pf_gt_config (9 subtests) ================= [13:14:06] [PASSED] fair_contexts_1vf [13:14:06] [PASSED] fair_doorbells_1vf [13:14:06] [PASSED] fair_ggtt_1vf [13:14:06] ====================== fair_vram_1vf ====================== [13:14:06] [PASSED] 3.50 GiB [13:14:06] [PASSED] 11.5 GiB [13:14:06] [PASSED] 15.5 GiB [13:14:06] [PASSED] 31.5 GiB [13:14:06] [PASSED] 63.5 GiB [13:14:06] [PASSED] 1.91 GiB [13:14:06] ================== [PASSED] fair_vram_1vf ================== [13:14:06] ================ fair_vram_1vf_admin_only ================= [13:14:06] [PASSED] 3.50 GiB [13:14:06] [PASSED] 11.5 GiB [13:14:06] [PASSED] 15.5 GiB [13:14:06] [PASSED] 31.5 GiB [13:14:06] [PASSED] 63.5 GiB [13:14:06] [PASSED] 1.91 GiB [13:14:06] ============ [PASSED] fair_vram_1vf_admin_only ============= [13:14:06] ====================== fair_contexts ====================== [13:14:06] [PASSED] 1 VF [13:14:06] [PASSED] 2 VFs [13:14:06] [PASSED] 3 VFs [13:14:06] [PASSED] 4 VFs [13:14:06] [PASSED] 5 VFs [13:14:06] [PASSED] 6 VFs [13:14:06] [PASSED] 7 VFs [13:14:06] [PASSED] 8 VFs [13:14:06] [PASSED] 9 VFs [13:14:06] [PASSED] 10 VFs [13:14:06] [PASSED] 11 VFs [13:14:06] [PASSED] 12 VFs [13:14:06] [PASSED] 13 VFs [13:14:06] [PASSED] 14 VFs [13:14:06] [PASSED] 15 VFs [13:14:06] [PASSED] 16 VFs [13:14:06] [PASSED] 17 VFs [13:14:06] [PASSED] 18 VFs [13:14:06] [PASSED] 19 VFs [13:14:06] [PASSED] 20 VFs [13:14:06] [PASSED] 21 VFs [13:14:06] [PASSED] 22 VFs [13:14:06] [PASSED] 23 VFs [13:14:06] [PASSED] 24 VFs [13:14:06] [PASSED] 25 VFs [13:14:06] [PASSED] 26 VFs [13:14:06] [PASSED] 27 VFs [13:14:06] [PASSED] 28 VFs [13:14:06] [PASSED] 29 VFs [13:14:06] [PASSED] 30 VFs [13:14:06] [PASSED] 31 VFs [13:14:06] [PASSED] 32 VFs [13:14:06] [PASSED] 33 VFs [13:14:06] [PASSED] 34 VFs [13:14:06] [PASSED] 35 VFs [13:14:06] [PASSED] 36 VFs [13:14:06] [PASSED] 37 VFs [13:14:06] [PASSED] 38 VFs [13:14:06] [PASSED] 39 VFs [13:14:06] [PASSED] 40 VFs [13:14:06] [PASSED] 41 VFs [13:14:06] [PASSED] 42 VFs [13:14:06] [PASSED] 43 VFs [13:14:06] [PASSED] 44 VFs [13:14:06] [PASSED] 45 VFs [13:14:06] [PASSED] 46 VFs [13:14:06] [PASSED] 47 VFs [13:14:06] [PASSED] 48 VFs [13:14:06] [PASSED] 49 VFs [13:14:06] [PASSED] 50 VFs [13:14:06] [PASSED] 51 VFs [13:14:06] [PASSED] 52 VFs [13:14:06] [PASSED] 53 VFs [13:14:06] [PASSED] 54 VFs [13:14:06] [PASSED] 55 VFs [13:14:06] [PASSED] 56 VFs [13:14:06] [PASSED] 57 VFs [13:14:06] [PASSED] 58 VFs [13:14:06] [PASSED] 59 VFs [13:14:06] [PASSED] 60 VFs [13:14:06] [PASSED] 61 VFs [13:14:06] [PASSED] 62 VFs [13:14:06] [PASSED] 63 VFs [13:14:06] ================== [PASSED] fair_contexts ================== [13:14:06] ===================== fair_doorbells ====================== [13:14:06] [PASSED] 1 VF [13:14:06] [PASSED] 2 VFs [13:14:06] [PASSED] 3 VFs [13:14:06] [PASSED] 4 VFs [13:14:06] [PASSED] 5 VFs [13:14:06] [PASSED] 6 VFs [13:14:06] [PASSED] 7 VFs [13:14:06] [PASSED] 8 VFs [13:14:06] [PASSED] 9 VFs [13:14:06] [PASSED] 10 VFs [13:14:06] [PASSED] 11 VFs [13:14:06] [PASSED] 12 VFs [13:14:06] [PASSED] 13 VFs [13:14:06] [PASSED] 14 VFs [13:14:06] [PASSED] 15 VFs [13:14:06] [PASSED] 16 VFs [13:14:06] [PASSED] 17 VFs [13:14:06] [PASSED] 18 VFs [13:14:06] [PASSED] 19 VFs [13:14:06] [PASSED] 20 VFs [13:14:06] [PASSED] 21 VFs [13:14:06] [PASSED] 22 VFs [13:14:06] [PASSED] 23 VFs [13:14:06] [PASSED] 24 VFs [13:14:06] [PASSED] 25 VFs [13:14:06] [PASSED] 26 VFs [13:14:06] [PASSED] 27 VFs [13:14:06] [PASSED] 28 VFs [13:14:06] [PASSED] 29 VFs [13:14:06] [PASSED] 30 VFs [13:14:06] [PASSED] 31 VFs [13:14:06] [PASSED] 32 VFs [13:14:06] [PASSED] 33 VFs [13:14:06] [PASSED] 34 VFs [13:14:06] [PASSED] 35 VFs [13:14:06] [PASSED] 36 VFs [13:14:06] [PASSED] 37 VFs [13:14:06] [PASSED] 38 VFs [13:14:06] [PASSED] 39 VFs [13:14:06] [PASSED] 40 VFs [13:14:06] [PASSED] 41 VFs [13:14:06] [PASSED] 42 VFs [13:14:06] [PASSED] 43 VFs [13:14:06] [PASSED] 44 VFs [13:14:06] [PASSED] 45 VFs [13:14:06] [PASSED] 46 VFs [13:14:06] [PASSED] 47 VFs [13:14:06] [PASSED] 48 VFs [13:14:06] [PASSED] 49 VFs [13:14:06] [PASSED] 50 VFs [13:14:06] [PASSED] 51 VFs [13:14:06] [PASSED] 52 VFs [13:14:06] [PASSED] 53 VFs [13:14:06] [PASSED] 54 VFs [13:14:06] [PASSED] 55 VFs [13:14:06] [PASSED] 56 VFs [13:14:06] [PASSED] 57 VFs [13:14:06] [PASSED] 58 VFs [13:14:06] [PASSED] 59 VFs [13:14:06] [PASSED] 60 VFs [13:14:06] [PASSED] 61 VFs [13:14:06] [PASSED] 62 VFs [13:14:06] [PASSED] 63 VFs [13:14:06] ================= [PASSED] fair_doorbells ================== [13:14:06] ======================== fair_ggtt ======================== [13:14:06] [PASSED] 1 VF [13:14:06] [PASSED] 2 VFs [13:14:06] [PASSED] 3 VFs [13:14:06] [PASSED] 4 VFs [13:14:06] [PASSED] 5 VFs [13:14:06] [PASSED] 6 VFs [13:14:06] [PASSED] 7 VFs [13:14:06] [PASSED] 8 VFs [13:14:06] [PASSED] 9 VFs [13:14:06] [PASSED] 10 VFs [13:14:06] [PASSED] 11 VFs [13:14:06] [PASSED] 12 VFs [13:14:06] [PASSED] 13 VFs [13:14:06] [PASSED] 14 VFs [13:14:06] [PASSED] 15 VFs [13:14:06] [PASSED] 16 VFs [13:14:06] [PASSED] 17 VFs [13:14:06] [PASSED] 18 VFs [13:14:06] [PASSED] 19 VFs [13:14:06] [PASSED] 20 VFs [13:14:06] [PASSED] 21 VFs [13:14:06] [PASSED] 22 VFs [13:14:06] [PASSED] 23 VFs [13:14:06] [PASSED] 24 VFs [13:14:06] [PASSED] 25 VFs [13:14:06] [PASSED] 26 VFs [13:14:06] [PASSED] 27 VFs [13:14:06] [PASSED] 28 VFs [13:14:06] [PASSED] 29 VFs [13:14:06] [PASSED] 30 VFs [13:14:06] [PASSED] 31 VFs [13:14:06] [PASSED] 32 VFs [13:14:06] [PASSED] 33 VFs [13:14:06] [PASSED] 34 VFs [13:14:06] [PASSED] 35 VFs [13:14:06] [PASSED] 36 VFs [13:14:06] [PASSED] 37 VFs [13:14:06] [PASSED] 38 VFs [13:14:06] [PASSED] 39 VFs [13:14:06] [PASSED] 40 VFs [13:14:06] [PASSED] 41 VFs [13:14:06] [PASSED] 42 VFs [13:14:06] [PASSED] 43 VFs [13:14:06] [PASSED] 44 VFs [13:14:06] [PASSED] 45 VFs [13:14:06] [PASSED] 46 VFs [13:14:06] [PASSED] 47 VFs [13:14:06] [PASSED] 48 VFs [13:14:06] [PASSED] 49 VFs [13:14:06] [PASSED] 50 VFs [13:14:06] [PASSED] 51 VFs [13:14:06] [PASSED] 52 VFs [13:14:06] [PASSED] 53 VFs [13:14:06] [PASSED] 54 VFs [13:14:06] [PASSED] 55 VFs [13:14:06] [PASSED] 56 VFs [13:14:06] [PASSED] 57 VFs [13:14:06] [PASSED] 58 VFs [13:14:06] [PASSED] 59 VFs [13:14:06] [PASSED] 60 VFs [13:14:06] [PASSED] 61 VFs [13:14:06] [PASSED] 62 VFs [13:14:06] [PASSED] 63 VFs [13:14:06] ==================== [PASSED] fair_ggtt ==================== [13:14:06] ======================== fair_vram ======================== [13:14:06] [PASSED] 1 VF [13:14:06] [PASSED] 2 VFs [13:14:06] [PASSED] 3 VFs [13:14:06] [PASSED] 4 VFs [13:14:06] [PASSED] 5 VFs [13:14:06] [PASSED] 6 VFs [13:14:06] [PASSED] 7 VFs [13:14:06] [PASSED] 8 VFs [13:14:06] [PASSED] 9 VFs [13:14:06] [PASSED] 10 VFs [13:14:06] [PASSED] 11 VFs [13:14:06] [PASSED] 12 VFs [13:14:06] [PASSED] 13 VFs [13:14:06] [PASSED] 14 VFs [13:14:06] [PASSED] 15 VFs [13:14:06] [PASSED] 16 VFs [13:14:06] [PASSED] 17 VFs [13:14:06] [PASSED] 18 VFs [13:14:06] [PASSED] 19 VFs [13:14:06] [PASSED] 20 VFs [13:14:06] [PASSED] 21 VFs [13:14:06] [PASSED] 22 VFs [13:14:06] [PASSED] 23 VFs [13:14:06] [PASSED] 24 VFs [13:14:06] [PASSED] 25 VFs [13:14:06] [PASSED] 26 VFs [13:14:06] [PASSED] 27 VFs [13:14:06] [PASSED] 28 VFs [13:14:06] [PASSED] 29 VFs [13:14:06] [PASSED] 30 VFs [13:14:06] [PASSED] 31 VFs [13:14:06] [PASSED] 32 VFs [13:14:06] [PASSED] 33 VFs [13:14:06] [PASSED] 34 VFs [13:14:06] [PASSED] 35 VFs [13:14:06] [PASSED] 36 VFs [13:14:06] [PASSED] 37 VFs [13:14:06] [PASSED] 38 VFs [13:14:06] [PASSED] 39 VFs [13:14:06] [PASSED] 40 VFs [13:14:06] [PASSED] 41 VFs [13:14:06] [PASSED] 42 VFs [13:14:06] [PASSED] 43 VFs [13:14:06] [PASSED] 44 VFs [13:14:06] [PASSED] 45 VFs [13:14:06] [PASSED] 46 VFs [13:14:06] [PASSED] 47 VFs [13:14:06] [PASSED] 48 VFs [13:14:06] [PASSED] 49 VFs [13:14:06] [PASSED] 50 VFs [13:14:06] [PASSED] 51 VFs [13:14:06] [PASSED] 52 VFs [13:14:06] [PASSED] 53 VFs [13:14:06] [PASSED] 54 VFs [13:14:06] [PASSED] 55 VFs [13:14:06] [PASSED] 56 VFs [13:14:06] [PASSED] 57 VFs [13:14:06] [PASSED] 58 VFs [13:14:06] [PASSED] 59 VFs [13:14:06] [PASSED] 60 VFs [13:14:06] [PASSED] 61 VFs [13:14:06] [PASSED] 62 VFs [13:14:06] [PASSED] 63 VFs [13:14:06] ==================== [PASSED] fair_vram ==================== [13:14:06] ================== [PASSED] pf_gt_config =================== [13:14:06] ===================== lmtt (1 subtest) ===================== [13:14:06] ======================== test_ops ========================= [13:14:06] [PASSED] 2-level [13:14:06] [PASSED] multi-level [13:14:06] ==================== [PASSED] test_ops ===================== [13:14:06] ====================== [PASSED] lmtt ======================= [13:14:06] ================= pf_service (11 subtests) ================= [13:14:06] [PASSED] pf_negotiate_any [13:14:06] [PASSED] pf_negotiate_base_match [13:14:06] [PASSED] pf_negotiate_base_newer [13:14:06] [PASSED] pf_negotiate_base_next [13:14:06] [SKIPPED] pf_negotiate_base_older [13:14:06] [PASSED] pf_negotiate_base_prev [13:14:06] [PASSED] pf_negotiate_latest_match [13:14:06] [PASSED] pf_negotiate_latest_newer [13:14:06] [PASSED] pf_negotiate_latest_next [13:14:06] [SKIPPED] pf_negotiate_latest_older [13:14:06] [SKIPPED] pf_negotiate_latest_prev [13:14:06] =================== [PASSED] pf_service ==================== [13:14:06] ================= xe_guc_g2g (2 subtests) ================== [13:14:06] ============== xe_live_guc_g2g_kunit_default ============== [13:14:06] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [13:14:06] ============== xe_live_guc_g2g_kunit_allmem =============== [13:14:06] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [13:14:06] =================== [SKIPPED] xe_guc_g2g =================== [13:14:06] =================== xe_mocs (2 subtests) =================== [13:14:06] ================ xe_live_mocs_kernel_kunit ================ [13:14:06] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [13:14:06] ================ xe_live_mocs_reset_kunit ================= [13:14:06] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [13:14:06] ==================== [SKIPPED] xe_mocs ===================== [13:14:06] ================= xe_migrate (2 subtests) ================== [13:14:06] ================= xe_migrate_sanity_kunit ================= [13:14:06] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [13:14:06] ================== xe_validate_ccs_kunit ================== [13:14:06] ============= [SKIPPED] xe_validate_ccs_kunit ============== [13:14:06] =================== [SKIPPED] xe_migrate =================== [13:14:06] ================== xe_dma_buf (1 subtest) ================== [13:14:06] ==================== xe_dma_buf_kunit ===================== [13:14:06] ================ [SKIPPED] xe_dma_buf_kunit ================ [13:14:06] =================== [SKIPPED] xe_dma_buf =================== [13:14:06] ================= xe_bo_shrink (1 subtest) ================= [13:14:06] =================== xe_bo_shrink_kunit ==================== [13:14:06] =============== [SKIPPED] xe_bo_shrink_kunit =============== [13:14:06] ================== [SKIPPED] xe_bo_shrink ================== [13:14:06] ==================== xe_bo (2 subtests) ==================== [13:14:06] ================== xe_ccs_migrate_kunit =================== [13:14:06] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [13:14:06] ==================== xe_bo_evict_kunit ==================== [13:14:06] =============== [SKIPPED] xe_bo_evict_kunit ================ [13:14:06] ===================== [SKIPPED] xe_bo ====================== [13:14:06] ==================== args (13 subtests) ==================== [13:14:06] [PASSED] count_args_test [13:14:06] [PASSED] call_args_example [13:14:06] [PASSED] call_args_test [13:14:06] [PASSED] drop_first_arg_example [13:14:06] [PASSED] drop_first_arg_test [13:14:06] [PASSED] first_arg_example [13:14:06] [PASSED] first_arg_test [13:14:06] [PASSED] last_arg_example [13:14:06] [PASSED] last_arg_test [13:14:06] [PASSED] pick_arg_example [13:14:06] [PASSED] if_args_example [13:14:06] [PASSED] if_args_test [13:14:06] [PASSED] sep_comma_example [13:14:06] ====================== [PASSED] args ======================= [13:14:06] =================== xe_pci (3 subtests) ==================== [13:14:06] ==================== check_graphics_ip ==================== [13:14:06] [PASSED] 12.00 Xe_LP [13:14:06] [PASSED] 12.10 Xe_LP+ [13:14:06] [PASSED] 12.55 Xe_HPG [13:14:06] [PASSED] 12.60 Xe_HPC [13:14:06] [PASSED] 12.70 Xe_LPG [13:14:06] [PASSED] 12.71 Xe_LPG [13:14:06] [PASSED] 12.74 Xe_LPG+ [13:14:06] [PASSED] 20.01 Xe2_HPG [13:14:06] [PASSED] 20.02 Xe2_HPG [13:14:06] [PASSED] 20.04 Xe2_LPG [13:14:06] [PASSED] 30.00 Xe3_LPG [13:14:06] [PASSED] 30.01 Xe3_LPG [13:14:06] [PASSED] 30.03 Xe3_LPG [13:14:06] [PASSED] 30.04 Xe3_LPG [13:14:06] [PASSED] 30.05 Xe3_LPG [13:14:06] [PASSED] 35.10 Xe3p_LPG [13:14:06] [PASSED] 35.11 Xe3p_XPC [13:14:06] ================ [PASSED] check_graphics_ip ================ [13:14:06] ===================== check_media_ip ====================== [13:14:06] [PASSED] 12.00 Xe_M [13:14:06] [PASSED] 12.55 Xe_HPM [13:14:06] [PASSED] 13.00 Xe_LPM+ [13:14:06] [PASSED] 13.01 Xe2_HPM [13:14:06] [PASSED] 20.00 Xe2_LPM [13:14:06] [PASSED] 30.00 Xe3_LPM [13:14:06] [PASSED] 30.02 Xe3_LPM [13:14:06] [PASSED] 35.00 Xe3p_LPM [13:14:06] [PASSED] 35.03 Xe3p_HPM [13:14:06] ================= [PASSED] check_media_ip ================== [13:14:06] =================== check_platform_desc =================== [13:14:06] [PASSED] 0x9A60 (TIGERLAKE) [13:14:06] [PASSED] 0x9A68 (TIGERLAKE) [13:14:06] [PASSED] 0x9A70 (TIGERLAKE) [13:14:06] [PASSED] 0x9A40 (TIGERLAKE) [13:14:06] [PASSED] 0x9A49 (TIGERLAKE) [13:14:06] [PASSED] 0x9A59 (TIGERLAKE) [13:14:06] [PASSED] 0x9A78 (TIGERLAKE) [13:14:06] [PASSED] 0x9AC0 (TIGERLAKE) [13:14:06] [PASSED] 0x9AC9 (TIGERLAKE) [13:14:06] [PASSED] 0x9AD9 (TIGERLAKE) [13:14:06] [PASSED] 0x9AF8 (TIGERLAKE) [13:14:06] [PASSED] 0x4C80 (ROCKETLAKE) [13:14:06] [PASSED] 0x4C8A (ROCKETLAKE) [13:14:06] [PASSED] 0x4C8B (ROCKETLAKE) [13:14:06] [PASSED] 0x4C8C (ROCKETLAKE) [13:14:06] [PASSED] 0x4C90 (ROCKETLAKE) [13:14:06] [PASSED] 0x4C9A (ROCKETLAKE) [13:14:06] [PASSED] 0x4680 (ALDERLAKE_S) [13:14:06] [PASSED] 0x4682 (ALDERLAKE_S) [13:14:06] [PASSED] 0x4688 (ALDERLAKE_S) [13:14:06] [PASSED] 0x468A (ALDERLAKE_S) [13:14:06] [PASSED] 0x468B (ALDERLAKE_S) [13:14:06] [PASSED] 0x4690 (ALDERLAKE_S) [13:14:06] [PASSED] 0x4692 (ALDERLAKE_S) [13:14:06] [PASSED] 0x4693 (ALDERLAKE_S) [13:14:06] [PASSED] 0x46A0 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46A1 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46A2 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46A3 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46A6 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46A8 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46AA (ALDERLAKE_P) [13:14:06] [PASSED] 0x462A (ALDERLAKE_P) [13:14:06] [PASSED] 0x4626 (ALDERLAKE_P) [13:14:06] [PASSED] 0x4628 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46B0 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46B1 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46B2 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46B3 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46C0 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46C1 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46C2 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46C3 (ALDERLAKE_P) [13:14:06] [PASSED] 0x46D0 (ALDERLAKE_N) [13:14:06] [PASSED] 0x46D1 (ALDERLAKE_N) [13:14:06] [PASSED] 0x46D2 (ALDERLAKE_N) [13:14:06] [PASSED] 0x46D3 (ALDERLAKE_N) [13:14:06] [PASSED] 0x46D4 (ALDERLAKE_N) [13:14:06] [PASSED] 0xA721 (ALDERLAKE_P) [13:14:06] [PASSED] 0xA7A1 (ALDERLAKE_P) [13:14:06] [PASSED] 0xA7A9 (ALDERLAKE_P) [13:14:06] [PASSED] 0xA7AC (ALDERLAKE_P) [13:14:06] [PASSED] 0xA7AD (ALDERLAKE_P) [13:14:06] [PASSED] 0xA720 (ALDERLAKE_P) [13:14:06] [PASSED] 0xA7A0 (ALDERLAKE_P) [13:14:06] [PASSED] 0xA7A8 (ALDERLAKE_P) [13:14:06] [PASSED] 0xA7AA (ALDERLAKE_P) [13:14:06] [PASSED] 0xA7AB (ALDERLAKE_P) [13:14:06] [PASSED] 0xA780 (ALDERLAKE_S) [13:14:06] [PASSED] 0xA781 (ALDERLAKE_S) [13:14:06] [PASSED] 0xA782 (ALDERLAKE_S) [13:14:06] [PASSED] 0xA783 (ALDERLAKE_S) [13:14:06] [PASSED] 0xA788 (ALDERLAKE_S) [13:14:06] [PASSED] 0xA789 (ALDERLAKE_S) [13:14:06] [PASSED] 0xA78A (ALDERLAKE_S) [13:14:06] [PASSED] 0xA78B (ALDERLAKE_S) [13:14:06] [PASSED] 0x4905 (DG1) [13:14:06] [PASSED] 0x4906 (DG1) [13:14:06] [PASSED] 0x4907 (DG1) [13:14:06] [PASSED] 0x4908 (DG1) [13:14:06] [PASSED] 0x4909 (DG1) [13:14:06] [PASSED] 0x56C0 (DG2) [13:14:06] [PASSED] 0x56C2 (DG2) [13:14:06] [PASSED] 0x56C1 (DG2) [13:14:06] [PASSED] 0x7D51 (METEORLAKE) [13:14:06] [PASSED] 0x7DD1 (METEORLAKE) [13:14:06] [PASSED] 0x7D41 (METEORLAKE) [13:14:06] [PASSED] 0x7D67 (METEORLAKE) [13:14:06] [PASSED] 0xB640 (METEORLAKE) [13:14:06] [PASSED] 0x56A0 (DG2) [13:14:06] [PASSED] 0x56A1 (DG2) [13:14:06] [PASSED] 0x56A2 (DG2) [13:14:06] [PASSED] 0x56BE (DG2) [13:14:06] [PASSED] 0x56BF (DG2) [13:14:06] [PASSED] 0x5690 (DG2) [13:14:06] [PASSED] 0x5691 (DG2) [13:14:06] [PASSED] 0x5692 (DG2) [13:14:06] [PASSED] 0x56A5 (DG2) [13:14:06] [PASSED] 0x56A6 (DG2) [13:14:06] [PASSED] 0x56B0 (DG2) [13:14:06] [PASSED] 0x56B1 (DG2) [13:14:06] [PASSED] 0x56BA (DG2) [13:14:06] [PASSED] 0x56BB (DG2) [13:14:06] [PASSED] 0x56BC (DG2) [13:14:06] [PASSED] 0x56BD (DG2) [13:14:06] [PASSED] 0x5693 (DG2) [13:14:06] [PASSED] 0x5694 (DG2) [13:14:06] [PASSED] 0x5695 (DG2) [13:14:06] [PASSED] 0x56A3 (DG2) [13:14:06] [PASSED] 0x56A4 (DG2) [13:14:06] [PASSED] 0x56B2 (DG2) [13:14:06] [PASSED] 0x56B3 (DG2) [13:14:06] [PASSED] 0x5696 (DG2) [13:14:06] [PASSED] 0x5697 (DG2) [13:14:06] [PASSED] 0xB69 (PVC) [13:14:06] [PASSED] 0xB6E (PVC) [13:14:06] [PASSED] 0xBD4 (PVC) [13:14:06] [PASSED] 0xBD5 (PVC) [13:14:06] [PASSED] 0xBD6 (PVC) [13:14:06] [PASSED] 0xBD7 (PVC) [13:14:06] [PASSED] 0xBD8 (PVC) [13:14:06] [PASSED] 0xBD9 (PVC) [13:14:06] [PASSED] 0xBDA (PVC) [13:14:06] [PASSED] 0xBDB (PVC) [13:14:06] [PASSED] 0xBE0 (PVC) [13:14:06] [PASSED] 0xBE1 (PVC) [13:14:06] [PASSED] 0xBE5 (PVC) [13:14:06] [PASSED] 0x7D40 (METEORLAKE) [13:14:06] [PASSED] 0x7D45 (METEORLAKE) [13:14:06] [PASSED] 0x7D55 (METEORLAKE) [13:14:06] [PASSED] 0x7D60 (METEORLAKE) [13:14:06] [PASSED] 0x7DD5 (METEORLAKE) [13:14:06] [PASSED] 0x6420 (LUNARLAKE) [13:14:06] [PASSED] 0x64A0 (LUNARLAKE) [13:14:06] [PASSED] 0x64B0 (LUNARLAKE) [13:14:06] [PASSED] 0xE202 (BATTLEMAGE) [13:14:06] [PASSED] 0xE209 (BATTLEMAGE) [13:14:06] [PASSED] 0xE20B (BATTLEMAGE) [13:14:06] [PASSED] 0xE20C (BATTLEMAGE) [13:14:06] [PASSED] 0xE20D (BATTLEMAGE) [13:14:06] [PASSED] 0xE210 (BATTLEMAGE) [13:14:06] [PASSED] 0xE211 (BATTLEMAGE) [13:14:06] [PASSED] 0xE212 (BATTLEMAGE) [13:14:06] [PASSED] 0xE216 (BATTLEMAGE) [13:14:06] [PASSED] 0xE220 (BATTLEMAGE) [13:14:06] [PASSED] 0xE221 (BATTLEMAGE) [13:14:06] [PASSED] 0xE222 (BATTLEMAGE) [13:14:06] [PASSED] 0xE223 (BATTLEMAGE) [13:14:06] [PASSED] 0xB080 (PANTHERLAKE) [13:14:06] [PASSED] 0xB081 (PANTHERLAKE) [13:14:06] [PASSED] 0xB082 (PANTHERLAKE) [13:14:06] [PASSED] 0xB083 (PANTHERLAKE) [13:14:06] [PASSED] 0xB084 (PANTHERLAKE) [13:14:06] [PASSED] 0xB085 (PANTHERLAKE) [13:14:06] [PASSED] 0xB086 (PANTHERLAKE) [13:14:06] [PASSED] 0xB087 (PANTHERLAKE) [13:14:06] [PASSED] 0xB08F (PANTHERLAKE) [13:14:06] [PASSED] 0xB090 (PANTHERLAKE) [13:14:06] [PASSED] 0xB0A0 (PANTHERLAKE) [13:14:06] [PASSED] 0xB0B0 (PANTHERLAKE) [13:14:06] [PASSED] 0xFD80 (PANTHERLAKE) [13:14:06] [PASSED] 0xFD81 (PANTHERLAKE) [13:14:06] [PASSED] 0xD740 (NOVALAKE_S) [13:14:06] [PASSED] 0xD741 (NOVALAKE_S) [13:14:06] [PASSED] 0xD742 (NOVALAKE_S) [13:14:06] [PASSED] 0xD743 (NOVALAKE_S) [13:14:06] [PASSED] 0xD744 (NOVALAKE_S) [13:14:06] [PASSED] 0xD745 (NOVALAKE_S) [13:14:06] [PASSED] 0x674C (CRESCENTISLAND) [13:14:06] [PASSED] 0x674D (CRESCENTISLAND) [13:14:06] [PASSED] 0x674E (CRESCENTISLAND) [13:14:06] [PASSED] 0x674F (CRESCENTISLAND) [13:14:06] [PASSED] 0x6750 (CRESCENTISLAND) [13:14:06] [PASSED] 0xD750 (NOVALAKE_P) [13:14:06] [PASSED] 0xD751 (NOVALAKE_P) [13:14:07] [PASSED] 0xD752 (NOVALAKE_P) [13:14:07] [PASSED] 0xD753 (NOVALAKE_P) [13:14:07] [PASSED] 0xD754 (NOVALAKE_P) [13:14:07] [PASSED] 0xD755 (NOVALAKE_P) [13:14:07] [PASSED] 0xD756 (NOVALAKE_P) [13:14:07] [PASSED] 0xD757 (NOVALAKE_P) [13:14:07] [PASSED] 0xD75F (NOVALAKE_P) [13:14:07] =============== [PASSED] check_platform_desc =============== [13:14:07] ===================== [PASSED] xe_pci ====================== [13:14:07] =================== xe_rtp (2 subtests) ==================== [13:14:07] =============== xe_rtp_process_to_sr_tests ================ [13:14:07] [PASSED] coalesce-same-reg [13:14:07] [PASSED] no-match-no-add [13:14:07] [PASSED] match-or [13:14:07] [PASSED] match-or-xfail [13:14:07] [PASSED] no-match-no-add-multiple-rules [13:14:07] [PASSED] two-regs-two-entries [13:14:07] [PASSED] clr-one-set-other [13:14:07] [PASSED] set-field [13:14:07] [PASSED] conflict-duplicate [13:14:07] [PASSED] conflict-not-disjoint [13:14:07] [PASSED] conflict-reg-type [13:14:07] [PASSED] bad-mcr-reg-forced-to-regular [13:14:07] [PASSED] bad-regular-reg-forced-to-mcr [13:14:07] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [13:14:07] ================== xe_rtp_process_tests =================== [13:14:07] [PASSED] active1 [13:14:07] [PASSED] active2 [13:14:07] [PASSED] active-inactive [13:14:07] [PASSED] inactive-active [13:14:07] [PASSED] inactive-1st_or_active-inactive [13:14:07] [PASSED] inactive-2nd_or_active-inactive [13:14:07] [PASSED] inactive-last_or_active-inactive [13:14:07] [PASSED] inactive-no_or_active-inactive [13:14:07] ============== [PASSED] xe_rtp_process_tests =============== [13:14:07] ===================== [PASSED] xe_rtp ====================== [13:14:07] ==================== xe_wa (1 subtest) ===================== [13:14:07] ======================== xe_wa_gt ========================= [13:14:07] [PASSED] TIGERLAKE B0 [13:14:07] [PASSED] DG1 A0 [13:14:07] [PASSED] DG1 B0 [13:14:07] [PASSED] ALDERLAKE_S A0 [13:14:07] [PASSED] ALDERLAKE_S B0 [13:14:07] [PASSED] ALDERLAKE_S C0 [13:14:07] [PASSED] ALDERLAKE_S D0 [13:14:07] [PASSED] ALDERLAKE_P A0 [13:14:07] [PASSED] ALDERLAKE_P B0 [13:14:07] [PASSED] ALDERLAKE_P C0 [13:14:07] [PASSED] ALDERLAKE_S RPLS D0 [13:14:07] [PASSED] ALDERLAKE_P RPLU E0 [13:14:07] [PASSED] DG2 G10 C0 [13:14:07] [PASSED] DG2 G11 B1 [13:14:07] [PASSED] DG2 G12 A1 [13:14:07] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0 [13:14:07] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0 [13:14:07] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0 [13:14:07] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0 [13:14:07] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0 [13:14:07] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1 [13:14:07] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [13:14:07] ==================== [PASSED] xe_wa_gt ===================== [13:14:07] ====================== [PASSED] xe_wa ====================== [13:14:07] ============================================================ [13:14:07] Testing complete. Ran 603 tests: passed: 585, skipped: 18 [13:14:07] Elapsed time: 36.342s total, 4.287s configuring, 31.390s building, 0.622s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [13:14:07] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[13:14:08] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
In file included from ../drivers/gpu/drm/tests/drm_bridge_test.c:21:
../drivers/gpu/drm/tests/drm_kunit_edid.h:958:28: warning: ‘test_edid_hdmi_4k_rgb_yuv420_dc_max_340mhz’ defined but not used [-Wunused-const-variable=]
958 | static const unsigned char test_edid_hdmi_4k_rgb_yuv420_dc_max_340mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:726:28: warning: ‘test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz’ defined but not used [-Wunused-const-variable=]
726 | static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:612:28: warning: ‘test_edid_hdmi_1080p_rgb_yuv_dc_max_200mhz’ defined but not used [-Wunused-const-variable=]
612 | static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_200mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:498:28: warning: ‘test_edid_hdmi_1080p_rgb_max_340mhz’ defined but not used [-Wunused-const-variable=]
498 | static const unsigned char test_edid_hdmi_1080p_rgb_max_340mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:390:28: warning: ‘test_edid_hdmi_1080p_rgb_max_200mhz_hdr’ defined but not used [-Wunused-const-variable=]
390 | static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz_hdr[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:271:28: warning: ‘test_edid_hdmi_1080p_rgb_max_200mhz’ defined but not used [-Wunused-const-variable=]
271 | static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:163:28: warning: ‘test_edid_hdmi_1080p_rgb_max_100mhz’ defined but not used [-Wunused-const-variable=]
163 | static const unsigned char test_edid_hdmi_1080p_rgb_max_100mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:57:28: warning: ‘test_edid_dvi_1080p’ defined but not used [-Wunused-const-variable=]
57 | static const unsigned char test_edid_dvi_1080p[] = {
| ^~~~~~~~~~~~~~~~~~~[13:14:33] Starting KUnit Kernel (1/1)...
[13:14:33] ============================================================ Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [13:14:33] ============ drm_test_pick_cmdline (2 subtests) ============ [13:14:33] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [13:14:33] =============== drm_test_pick_cmdline_named =============== [13:14:33] [PASSED] NTSC [13:14:33] [PASSED] NTSC-J [13:14:33] [PASSED] PAL [13:14:33] [PASSED] PAL-M [13:14:33] =========== [PASSED] drm_test_pick_cmdline_named =========== [13:14:33] ============== [PASSED] drm_test_pick_cmdline ============== [13:14:33] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [13:14:33] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [13:14:33] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [13:14:33] =========== drm_validate_clone_mode (2 subtests) =========== [13:14:33] ============== drm_test_check_in_clone_mode =============== [13:14:33] [PASSED] in_clone_mode [13:14:33] [PASSED] not_in_clone_mode [13:14:33] ========== [PASSED] drm_test_check_in_clone_mode =========== [13:14:33] =============== drm_test_check_valid_clones =============== [13:14:33] [PASSED] not_in_clone_mode [13:14:33] [PASSED] valid_clone [13:14:33] [PASSED] invalid_clone [13:14:33] =========== [PASSED] drm_test_check_valid_clones =========== [13:14:33] ============= [PASSED] drm_validate_clone_mode ============= [13:14:33] ============= drm_validate_modeset (1 subtest) ============= [13:14:33] [PASSED] drm_test_check_connector_changed_modeset [13:14:33] ============== [PASSED] drm_validate_modeset =============== [13:14:33] ====== drm_test_bridge_get_current_state (2 subtests) ====== [13:14:33] [PASSED] drm_test_drm_bridge_get_current_state_atomic [13:14:33] [PASSED] drm_test_drm_bridge_get_current_state_legacy [13:14:33] ======== [PASSED] drm_test_bridge_get_current_state ======== [13:14:33] ====== drm_test_bridge_helper_reset_crtc (4 subtests) ====== [13:14:33] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [13:14:33] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [13:14:33] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy [13:14:33] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts [13:14:33] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [13:14:33] ============== drm_bridge_alloc (2 subtests) =============== [13:14:33] [PASSED] drm_test_drm_bridge_alloc_basic [13:14:33] [PASSED] drm_test_drm_bridge_alloc_get_put [13:14:33] ================ [PASSED] drm_bridge_alloc ================= [13:14:33] ============= drm_bridge_bus_fmt (5 subtests) ============== [13:14:33] [PASSED] drm_test_bridge_rgb_yuv_rgb [13:14:33] [PASSED] drm_test_bridge_must_convert_to_yuv444 [13:14:33] [PASSED] drm_test_bridge_hdmi_auto_rgb [13:14:33] [PASSED] drm_test_bridge_auto_first [13:14:33] [PASSED] drm_test_bridge_rgb_yuv_no_path [13:14:33] =============== [PASSED] drm_bridge_bus_fmt ================ [13:14:33] ============= drm_cmdline_parser (40 subtests) ============= [13:14:33] [PASSED] drm_test_cmdline_force_d_only [13:14:33] [PASSED] drm_test_cmdline_force_D_only_dvi [13:14:33] [PASSED] drm_test_cmdline_force_D_only_hdmi [13:14:33] [PASSED] drm_test_cmdline_force_D_only_not_digital [13:14:33] [PASSED] drm_test_cmdline_force_e_only [13:14:33] [PASSED] drm_test_cmdline_res [13:14:33] [PASSED] drm_test_cmdline_res_vesa [13:14:33] [PASSED] drm_test_cmdline_res_vesa_rblank [13:14:33] [PASSED] drm_test_cmdline_res_rblank [13:14:33] [PASSED] drm_test_cmdline_res_bpp [13:14:33] [PASSED] drm_test_cmdline_res_refresh [13:14:33] [PASSED] drm_test_cmdline_res_bpp_refresh [13:14:33] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [13:14:33] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [13:14:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [13:14:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [13:14:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [13:14:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [13:14:33] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [13:14:33] [PASSED] drm_test_cmdline_res_margins_force_on [13:14:33] [PASSED] drm_test_cmdline_res_vesa_margins [13:14:33] [PASSED] drm_test_cmdline_name [13:14:33] [PASSED] drm_test_cmdline_name_bpp [13:14:33] [PASSED] drm_test_cmdline_name_option [13:14:33] [PASSED] drm_test_cmdline_name_bpp_option [13:14:33] [PASSED] drm_test_cmdline_rotate_0 [13:14:33] [PASSED] drm_test_cmdline_rotate_90 [13:14:33] [PASSED] drm_test_cmdline_rotate_180 [13:14:33] [PASSED] drm_test_cmdline_rotate_270 [13:14:33] [PASSED] drm_test_cmdline_hmirror [13:14:33] [PASSED] drm_test_cmdline_vmirror [13:14:33] [PASSED] drm_test_cmdline_margin_options [13:14:33] [PASSED] drm_test_cmdline_multiple_options [13:14:33] [PASSED] drm_test_cmdline_bpp_extra_and_option [13:14:33] [PASSED] drm_test_cmdline_extra_and_option [13:14:33] [PASSED] drm_test_cmdline_freestanding_options [13:14:33] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [13:14:33] [PASSED] drm_test_cmdline_panel_orientation [13:14:33] ================ drm_test_cmdline_invalid ================= [13:14:33] [PASSED] margin_only [13:14:33] [PASSED] interlace_only [13:14:33] [PASSED] res_missing_x [13:14:33] [PASSED] res_missing_y [13:14:33] [PASSED] res_bad_y [13:14:33] [PASSED] res_missing_y_bpp [13:14:33] [PASSED] res_bad_bpp [13:14:33] [PASSED] res_bad_refresh [13:14:33] [PASSED] res_bpp_refresh_force_on_off [13:14:33] [PASSED] res_invalid_mode [13:14:33] [PASSED] res_bpp_wrong_place_mode [13:14:33] [PASSED] name_bpp_refresh [13:14:33] [PASSED] name_refresh [13:14:33] [PASSED] name_refresh_wrong_mode [13:14:33] [PASSED] name_refresh_invalid_mode [13:14:33] [PASSED] rotate_multiple [13:14:33] [PASSED] rotate_invalid_val [13:14:33] [PASSED] rotate_truncated [13:14:33] [PASSED] invalid_option [13:14:33] [PASSED] invalid_tv_option [13:14:33] [PASSED] truncated_tv_option [13:14:33] ============ [PASSED] drm_test_cmdline_invalid ============= [13:14:33] =============== drm_test_cmdline_tv_options =============== [13:14:33] [PASSED] NTSC [13:14:33] [PASSED] NTSC_443 [13:14:33] [PASSED] NTSC_J [13:14:33] [PASSED] PAL [13:14:33] [PASSED] PAL_M [13:14:33] [PASSED] PAL_N [13:14:33] [PASSED] SECAM [13:14:33] [PASSED] MONO_525 [13:14:33] [PASSED] MONO_625 [13:14:33] =========== [PASSED] drm_test_cmdline_tv_options =========== [13:14:33] =============== [PASSED] drm_cmdline_parser ================ [13:14:33] ========== drmm_connector_hdmi_init (20 subtests) ========== [13:14:33] [PASSED] drm_test_connector_hdmi_init_valid [13:14:33] [PASSED] drm_test_connector_hdmi_init_bpc_8 [13:14:33] [PASSED] drm_test_connector_hdmi_init_bpc_10 [13:14:33] [PASSED] drm_test_connector_hdmi_init_bpc_12 [13:14:33] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [13:14:33] [PASSED] drm_test_connector_hdmi_init_bpc_null [13:14:33] [PASSED] drm_test_connector_hdmi_init_formats_empty [13:14:33] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [13:14:33] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [13:14:33] [PASSED] supported_formats=0x9 yuv420_allowed=1 [13:14:33] [PASSED] supported_formats=0x9 yuv420_allowed=0 [13:14:33] [PASSED] supported_formats=0x5 yuv420_allowed=1 [13:14:33] [PASSED] supported_formats=0x5 yuv420_allowed=0 [13:14:33] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [13:14:33] [PASSED] drm_test_connector_hdmi_init_null_ddc [13:14:33] [PASSED] drm_test_connector_hdmi_init_null_product [13:14:33] [PASSED] drm_test_connector_hdmi_init_null_vendor [13:14:33] [PASSED] drm_test_connector_hdmi_init_product_length_exact [13:14:33] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [13:14:33] [PASSED] drm_test_connector_hdmi_init_product_valid [13:14:33] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [13:14:33] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [13:14:33] [PASSED] drm_test_connector_hdmi_init_vendor_valid [13:14:33] ========= drm_test_connector_hdmi_init_type_valid ========= [13:14:33] [PASSED] HDMI-A [13:14:33] [PASSED] HDMI-B [13:14:33] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [13:14:33] ======== drm_test_connector_hdmi_init_type_invalid ======== [13:14:33] [PASSED] Unknown [13:14:33] [PASSED] VGA [13:14:33] [PASSED] DVI-I [13:14:33] [PASSED] DVI-D [13:14:33] [PASSED] DVI-A [13:14:33] [PASSED] Composite [13:14:33] [PASSED] SVIDEO [13:14:33] [PASSED] LVDS [13:14:33] [PASSED] Component [13:14:33] [PASSED] DIN [13:14:33] [PASSED] DP [13:14:33] [PASSED] TV [13:14:33] [PASSED] eDP [13:14:33] [PASSED] Virtual [13:14:33] [PASSED] DSI [13:14:33] [PASSED] DPI [13:14:33] [PASSED] Writeback [13:14:33] [PASSED] SPI [13:14:33] [PASSED] USB [13:14:33] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [13:14:33] ============ [PASSED] drmm_connector_hdmi_init ============= [13:14:33] ============= drmm_connector_init (3 subtests) ============= [13:14:33] [PASSED] drm_test_drmm_connector_init [13:14:33] [PASSED] drm_test_drmm_connector_init_null_ddc [13:14:33] ========= drm_test_drmm_connector_init_type_valid ========= [13:14:33] [PASSED] Unknown [13:14:33] [PASSED] VGA [13:14:33] [PASSED] DVI-I [13:14:33] [PASSED] DVI-D [13:14:33] [PASSED] DVI-A [13:14:33] [PASSED] Composite [13:14:33] [PASSED] SVIDEO [13:14:33] [PASSED] LVDS [13:14:33] [PASSED] Component [13:14:33] [PASSED] DIN [13:14:33] [PASSED] DP [13:14:33] [PASSED] HDMI-A [13:14:33] [PASSED] HDMI-B [13:14:33] [PASSED] TV [13:14:33] [PASSED] eDP [13:14:33] [PASSED] Virtual [13:14:33] [PASSED] DSI [13:14:33] [PASSED] DPI [13:14:33] [PASSED] Writeback [13:14:33] [PASSED] SPI [13:14:33] [PASSED] USB [13:14:33] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [13:14:33] =============== [PASSED] drmm_connector_init =============== [13:14:33] ========= drm_connector_dynamic_init (6 subtests) ========== [13:14:33] [PASSED] drm_test_drm_connector_dynamic_init [13:14:33] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [13:14:33] [PASSED] drm_test_drm_connector_dynamic_init_not_added [13:14:33] [PASSED] drm_test_drm_connector_dynamic_init_properties [13:14:33] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [13:14:33] [PASSED] Unknown [13:14:33] [PASSED] VGA [13:14:33] [PASSED] DVI-I [13:14:33] [PASSED] DVI-D [13:14:33] [PASSED] DVI-A [13:14:33] [PASSED] Composite [13:14:33] [PASSED] SVIDEO [13:14:33] [PASSED] LVDS [13:14:33] [PASSED] Component [13:14:33] [PASSED] DIN [13:14:33] [PASSED] DP [13:14:33] [PASSED] HDMI-A [13:14:33] [PASSED] HDMI-B [13:14:33] [PASSED] TV [13:14:33] [PASSED] eDP [13:14:33] [PASSED] Virtual [13:14:33] [PASSED] DSI [13:14:33] [PASSED] DPI [13:14:33] [PASSED] Writeback [13:14:33] [PASSED] SPI [13:14:33] [PASSED] USB [13:14:33] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [13:14:33] ======== drm_test_drm_connector_dynamic_init_name ========= [13:14:33] [PASSED] Unknown [13:14:33] [PASSED] VGA [13:14:33] [PASSED] DVI-I [13:14:33] [PASSED] DVI-D [13:14:33] [PASSED] DVI-A [13:14:33] [PASSED] Composite [13:14:33] [PASSED] SVIDEO [13:14:33] [PASSED] LVDS [13:14:33] [PASSED] Component [13:14:33] [PASSED] DIN [13:14:33] [PASSED] DP [13:14:33] [PASSED] HDMI-A [13:14:33] [PASSED] HDMI-B [13:14:33] [PASSED] TV [13:14:33] [PASSED] eDP [13:14:33] [PASSED] Virtual [13:14:33] [PASSED] DSI [13:14:33] [PASSED] DPI [13:14:33] [PASSED] Writeback [13:14:33] [PASSED] SPI [13:14:33] [PASSED] USB [13:14:33] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [13:14:33] =========== [PASSED] drm_connector_dynamic_init ============ [13:14:33] ==== drm_connector_dynamic_register_early (4 subtests) ===== [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [13:14:33] ====== [PASSED] drm_connector_dynamic_register_early ======= [13:14:33] ======= drm_connector_dynamic_register (7 subtests) ======== [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_on_list [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_no_init [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [13:14:33] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [13:14:33] ========= [PASSED] drm_connector_dynamic_register ========== [13:14:33] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [13:14:33] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [13:14:33] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [13:14:33] === [PASSED] drm_connector_attach_broadcast_rgb_property === [13:14:33] ========== drm_get_tv_mode_from_name (2 subtests) ========== [13:14:33] ========== drm_test_get_tv_mode_from_name_valid =========== [13:14:33] [PASSED] NTSC [13:14:33] [PASSED] NTSC-443 [13:14:33] [PASSED] NTSC-J [13:14:33] [PASSED] PAL [13:14:33] [PASSED] PAL-M [13:14:33] [PASSED] PAL-N [13:14:33] [PASSED] SECAM [13:14:33] [PASSED] Mono [13:14:33] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [13:14:33] [PASSED] drm_test_get_tv_mode_from_name_truncated [13:14:33] ============ [PASSED] drm_get_tv_mode_from_name ============ [13:14:33] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [13:14:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [13:14:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [13:14:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [13:14:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [13:14:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [13:14:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [13:14:33] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [13:14:33] [PASSED] VIC 96 [13:14:33] [PASSED] VIC 97 [13:14:33] [PASSED] VIC 101 [13:14:33] [PASSED] VIC 102 [13:14:33] [PASSED] VIC 106 [13:14:33] [PASSED] VIC 107 [13:14:33] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [13:14:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [13:14:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [13:14:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [13:14:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [13:14:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [13:14:33] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [13:14:33] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [13:14:33] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [13:14:33] [PASSED] Automatic [13:14:33] [PASSED] Full [13:14:33] [PASSED] Limited 16:235 [13:14:33] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [13:14:33] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [13:14:33] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [13:14:33] == drm_hdmi_connector_get_output_format_name (2 subtests) == [13:14:33] === drm_test_drm_hdmi_connector_get_output_format_name ==== [13:14:33] [PASSED] RGB [13:14:33] [PASSED] YUV 4:2:0 [13:14:33] [PASSED] YUV 4:2:2 [13:14:33] [PASSED] YUV 4:4:4 [13:14:33] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [13:14:33] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [13:14:33] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [13:14:33] ============= drm_damage_helper (21 subtests) ============== [13:14:33] [PASSED] drm_test_damage_iter_no_damage [13:14:33] [PASSED] drm_test_damage_iter_no_damage_fractional_src [13:14:33] [PASSED] drm_test_damage_iter_no_damage_src_moved [13:14:33] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [13:14:33] [PASSED] drm_test_damage_iter_no_damage_not_visible [13:14:33] [PASSED] drm_test_damage_iter_no_damage_no_crtc [13:14:33] [PASSED] drm_test_damage_iter_no_damage_no_fb [13:14:33] [PASSED] drm_test_damage_iter_simple_damage [13:14:33] [PASSED] drm_test_damage_iter_single_damage [13:14:33] [PASSED] drm_test_damage_iter_single_damage_intersect_src [13:14:33] [PASSED] drm_test_damage_iter_single_damage_outside_src [13:14:33] [PASSED] drm_test_damage_iter_single_damage_fractional_src [13:14:33] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [13:14:33] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [13:14:33] [PASSED] drm_test_damage_iter_single_damage_src_moved [13:14:33] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [13:14:33] [PASSED] drm_test_damage_iter_damage [13:14:33] [PASSED] drm_test_damage_iter_damage_one_intersect [13:14:33] [PASSED] drm_test_damage_iter_damage_one_outside [13:14:33] [PASSED] drm_test_damage_iter_damage_src_moved [13:14:33] [PASSED] drm_test_damage_iter_damage_not_visible [13:14:33] ================ [PASSED] drm_damage_helper ================ [13:14:33] ============== drm_dp_mst_helper (3 subtests) ============== [13:14:33] ============== drm_test_dp_mst_calc_pbn_mode ============== [13:14:33] [PASSED] Clock 154000 BPP 30 DSC disabled [13:14:33] [PASSED] Clock 234000 BPP 30 DSC disabled [13:14:33] [PASSED] Clock 297000 BPP 24 DSC disabled [13:14:33] [PASSED] Clock 332880 BPP 24 DSC enabled [13:14:33] [PASSED] Clock 324540 BPP 24 DSC enabled [13:14:33] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [13:14:33] ============== drm_test_dp_mst_calc_pbn_div =============== [13:14:33] [PASSED] Link rate 2000000 lane count 4 [13:14:33] [PASSED] Link rate 2000000 lane count 2 [13:14:33] [PASSED] Link rate 2000000 lane count 1 [13:14:33] [PASSED] Link rate 1350000 lane count 4 [13:14:33] [PASSED] Link rate 1350000 lane count 2 [13:14:33] [PASSED] Link rate 1350000 lane count 1 [13:14:33] [PASSED] Link rate 1000000 lane count 4 [13:14:33] [PASSED] Link rate 1000000 lane count 2 [13:14:33] [PASSED] Link rate 1000000 lane count 1 [13:14:33] [PASSED] Link rate 810000 lane count 4 [13:14:33] [PASSED] Link rate 810000 lane count 2 [13:14:33] [PASSED] Link rate 810000 lane count 1 [13:14:33] [PASSED] Link rate 540000 lane count 4 [13:14:33] [PASSED] Link rate 540000 lane count 2 [13:14:33] [PASSED] Link rate 540000 lane count 1 [13:14:33] [PASSED] Link rate 270000 lane count 4 [13:14:33] [PASSED] Link rate 270000 lane count 2 [13:14:33] [PASSED] Link rate 270000 lane count 1 [13:14:33] [PASSED] Link rate 162000 lane count 4 [13:14:33] [PASSED] Link rate 162000 lane count 2 [13:14:33] [PASSED] Link rate 162000 lane count 1 [13:14:33] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [13:14:33] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [13:14:33] [PASSED] DP_ENUM_PATH_RESOURCES with port number [13:14:33] [PASSED] DP_POWER_UP_PHY with port number [13:14:33] [PASSED] DP_POWER_DOWN_PHY with port number [13:14:33] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [13:14:33] [PASSED] DP_ALLOCATE_PAYLOAD with port number [13:14:33] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [13:14:33] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [13:14:33] [PASSED] DP_QUERY_PAYLOAD with port number [13:14:33] [PASSED] DP_QUERY_PAYLOAD with VCPI [13:14:33] [PASSED] DP_REMOTE_DPCD_READ with port number [13:14:33] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [13:14:33] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [13:14:33] [PASSED] DP_REMOTE_DPCD_WRITE with port number [13:14:33] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [13:14:33] [PASSED] DP_REMOTE_DPCD_WRITE with data array [13:14:33] [PASSED] DP_REMOTE_I2C_READ with port number [13:14:33] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [13:14:33] [PASSED] DP_REMOTE_I2C_READ with transactions array [13:14:33] [PASSED] DP_REMOTE_I2C_WRITE with port number [13:14:33] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [13:14:33] [PASSED] DP_REMOTE_I2C_WRITE with data array [13:14:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [13:14:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [13:14:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [13:14:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [13:14:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [13:14:33] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [13:14:33] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [13:14:33] ================ [PASSED] drm_dp_mst_helper ================ [13:14:33] ================== drm_exec (7 subtests) =================== [13:14:33] [PASSED] sanitycheck [13:14:33] [PASSED] test_lock [13:14:33] [PASSED] test_lock_unlock [13:14:33] [PASSED] test_duplicates [13:14:33] [PASSED] test_prepare [13:14:33] [PASSED] test_prepare_array [13:14:33] [PASSED] test_multiple_loops [13:14:33] ==================== [PASSED] drm_exec ===================== [13:14:33] =========== drm_format_helper_test (17 subtests) =========== [13:14:33] ============== drm_test_fb_xrgb8888_to_gray8 ============== [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [13:14:33] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [13:14:33] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [13:14:33] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [13:14:33] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [13:14:33] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [13:14:33] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [13:14:33] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [13:14:33] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [13:14:33] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [13:14:33] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [13:14:33] ============== drm_test_fb_xrgb8888_to_mono =============== [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [13:14:33] ==================== drm_test_fb_swab ===================== [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ================ [PASSED] drm_test_fb_swab ================= [13:14:33] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [13:14:33] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [13:14:33] [PASSED] single_pixel_source_buffer [13:14:33] [PASSED] single_pixel_clip_rectangle [13:14:33] [PASSED] well_known_colors [13:14:33] [PASSED] destination_pitch [13:14:33] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [13:14:33] ================= drm_test_fb_clip_offset ================= [13:14:33] [PASSED] pass through [13:14:33] [PASSED] horizontal offset [13:14:33] [PASSED] vertical offset [13:14:33] [PASSED] horizontal and vertical offset [13:14:33] [PASSED] horizontal offset (custom pitch) [13:14:33] [PASSED] vertical offset (custom pitch) [13:14:33] [PASSED] horizontal and vertical offset (custom pitch) [13:14:33] ============= [PASSED] drm_test_fb_clip_offset ============= [13:14:33] =================== drm_test_fb_memcpy ==================== [13:14:33] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [13:14:33] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [13:14:33] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [13:14:33] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [13:14:33] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [13:14:33] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [13:14:33] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [13:14:33] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [13:14:33] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [13:14:33] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [13:14:33] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [13:14:33] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [13:14:33] =============== [PASSED] drm_test_fb_memcpy ================ [13:14:33] ============= [PASSED] drm_format_helper_test ============== [13:14:33] ================= drm_format (18 subtests) ================= [13:14:33] [PASSED] drm_test_format_block_width_invalid [13:14:33] [PASSED] drm_test_format_block_width_one_plane [13:14:33] [PASSED] drm_test_format_block_width_two_plane [13:14:33] [PASSED] drm_test_format_block_width_three_plane [13:14:33] [PASSED] drm_test_format_block_width_tiled [13:14:33] [PASSED] drm_test_format_block_height_invalid [13:14:33] [PASSED] drm_test_format_block_height_one_plane [13:14:33] [PASSED] drm_test_format_block_height_two_plane [13:14:33] [PASSED] drm_test_format_block_height_three_plane [13:14:33] [PASSED] drm_test_format_block_height_tiled [13:14:33] [PASSED] drm_test_format_min_pitch_invalid [13:14:33] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [13:14:33] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [13:14:33] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [13:14:33] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [13:14:33] [PASSED] drm_test_format_min_pitch_two_plane [13:14:33] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [13:14:33] [PASSED] drm_test_format_min_pitch_tiled [13:14:33] =================== [PASSED] drm_format ==================== [13:14:33] ============== drm_framebuffer (10 subtests) =============== [13:14:33] ========== drm_test_framebuffer_check_src_coords ========== [13:14:33] [PASSED] Success: source fits into fb [13:14:33] [PASSED] Fail: overflowing fb with x-axis coordinate [13:14:33] [PASSED] Fail: overflowing fb with y-axis coordinate [13:14:33] [PASSED] Fail: overflowing fb with source width [13:14:33] [PASSED] Fail: overflowing fb with source height [13:14:33] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [13:14:33] [PASSED] drm_test_framebuffer_cleanup [13:14:33] =============== drm_test_framebuffer_create =============== [13:14:33] [PASSED] ABGR8888 normal sizes [13:14:33] [PASSED] ABGR8888 max sizes [13:14:33] [PASSED] ABGR8888 pitch greater than min required [13:14:33] [PASSED] ABGR8888 pitch less than min required [13:14:33] [PASSED] ABGR8888 Invalid width [13:14:33] [PASSED] ABGR8888 Invalid buffer handle [13:14:33] [PASSED] No pixel format [13:14:33] [PASSED] ABGR8888 Width 0 [13:14:33] [PASSED] ABGR8888 Height 0 [13:14:33] [PASSED] ABGR8888 Out of bound height * pitch combination [13:14:33] [PASSED] ABGR8888 Large buffer offset [13:14:33] [PASSED] ABGR8888 Buffer offset for inexistent plane [13:14:33] [PASSED] ABGR8888 Invalid flag [13:14:33] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [13:14:33] [PASSED] ABGR8888 Valid buffer modifier [13:14:33] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [13:14:33] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [13:14:33] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [13:14:33] [PASSED] NV12 Normal sizes [13:14:33] [PASSED] NV12 Max sizes [13:14:33] [PASSED] NV12 Invalid pitch [13:14:33] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [13:14:33] [PASSED] NV12 different modifier per-plane [13:14:33] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [13:14:33] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [13:14:33] [PASSED] NV12 Modifier for inexistent plane [13:14:33] [PASSED] NV12 Handle for inexistent plane [13:14:33] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [13:14:33] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [13:14:33] [PASSED] YVU420 Normal sizes [13:14:33] [PASSED] YVU420 Max sizes [13:14:33] [PASSED] YVU420 Invalid pitch [13:14:33] [PASSED] YVU420 Different pitches [13:14:33] [PASSED] YVU420 Different buffer offsets/pitches [13:14:33] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [13:14:33] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [13:14:33] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [13:14:33] [PASSED] YVU420 Valid modifier [13:14:33] [PASSED] YVU420 Different modifiers per plane [13:14:33] [PASSED] YVU420 Modifier for inexistent plane [13:14:33] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [13:14:33] [PASSED] X0L2 Normal sizes [13:14:33] [PASSED] X0L2 Max sizes [13:14:33] [PASSED] X0L2 Invalid pitch [13:14:33] [PASSED] X0L2 Pitch greater than minimum required [13:14:33] [PASSED] X0L2 Handle for inexistent plane [13:14:33] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [13:14:33] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [13:14:33] [PASSED] X0L2 Valid modifier [13:14:33] [PASSED] X0L2 Modifier for inexistent plane [13:14:33] =========== [PASSED] drm_test_framebuffer_create =========== [13:14:33] [PASSED] drm_test_framebuffer_free [13:14:33] [PASSED] drm_test_framebuffer_init [13:14:33] [PASSED] drm_test_framebuffer_init_bad_format [13:14:33] [PASSED] drm_test_framebuffer_init_dev_mismatch [13:14:33] [PASSED] drm_test_framebuffer_lookup [13:14:33] [PASSED] drm_test_framebuffer_lookup_inexistent [13:14:33] [PASSED] drm_test_framebuffer_modifiers_not_supported [13:14:33] ================= [PASSED] drm_framebuffer ================= [13:14:33] ================ drm_gem_shmem (8 subtests) ================ [13:14:33] [PASSED] drm_gem_shmem_test_obj_create [13:14:33] [PASSED] drm_gem_shmem_test_obj_create_private [13:14:33] [PASSED] drm_gem_shmem_test_pin_pages [13:14:33] [PASSED] drm_gem_shmem_test_vmap [13:14:33] [PASSED] drm_gem_shmem_test_get_sg_table [13:14:33] [PASSED] drm_gem_shmem_test_get_pages_sgt [13:14:33] [PASSED] drm_gem_shmem_test_madvise [13:14:33] [PASSED] drm_gem_shmem_test_purge [13:14:33] ================== [PASSED] drm_gem_shmem ================== [13:14:33] === drm_atomic_helper_connector_hdmi_check (29 subtests) === [13:14:33] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [13:14:33] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [13:14:33] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [13:14:33] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [13:14:33] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [13:14:33] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [13:14:33] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [13:14:33] [PASSED] Automatic [13:14:33] [PASSED] Full [13:14:33] [PASSED] Limited 16:235 [13:14:33] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [13:14:33] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [13:14:33] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [13:14:33] [PASSED] drm_test_check_disable_connector [13:14:33] [PASSED] drm_test_check_hdmi_funcs_reject_rate [13:14:33] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [13:14:33] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [13:14:33] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [13:14:33] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [13:14:33] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [13:14:33] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [13:14:33] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [13:14:33] [PASSED] drm_test_check_output_bpc_dvi [13:14:33] [PASSED] drm_test_check_output_bpc_format_vic_1 [13:14:33] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [13:14:33] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [13:14:33] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [13:14:33] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [13:14:33] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [13:14:33] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [13:14:33] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [13:14:33] ============ drm_test_check_hdmi_color_format ============= [13:14:33] [PASSED] AUTO -> RGB [13:14:33] [PASSED] YCBCR422 -> YUV422 [13:14:33] [PASSED] YCBCR420 -> YUV420 [13:14:33] [PASSED] YCBCR444 -> YUV444 [13:14:33] [PASSED] RGB -> RGB [13:14:33] ======== [PASSED] drm_test_check_hdmi_color_format ========= [13:14:33] ======== drm_test_check_hdmi_color_format_420_only ======== [13:14:33] [PASSED] RGB should fail [13:14:33] [PASSED] YUV444 should fail [13:14:33] [PASSED] YUV422 should fail [13:14:33] [PASSED] YUV420 should work [13:14:33] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ==== [13:14:33] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [13:14:33] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [13:14:33] [PASSED] drm_test_check_broadcast_rgb_value [13:14:33] [PASSED] drm_test_check_bpc_8_value [13:14:33] [PASSED] drm_test_check_bpc_10_value [13:14:33] [PASSED] drm_test_check_bpc_12_value [13:14:33] [PASSED] drm_test_check_format_value [13:14:33] [PASSED] drm_test_check_tmds_char_value [13:14:33] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [13:14:33] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) = [13:14:33] [PASSED] drm_test_check_mode_valid [13:14:33] [PASSED] drm_test_check_mode_valid_reject [13:14:33] [PASSED] drm_test_check_mode_valid_reject_rate [13:14:33] [PASSED] drm_test_check_mode_valid_reject_max_clock [13:14:33] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock [13:14:33] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector [13:14:33] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb [13:14:33] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [13:14:33] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) = [13:14:33] [PASSED] drm_test_check_infoframes [13:14:33] [PASSED] drm_test_check_reject_avi_infoframe [13:14:33] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8 [13:14:33] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10 [13:14:33] [PASSED] drm_test_check_reject_audio_infoframe [13:14:33] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes === [13:14:33] ================= drm_managed (2 subtests) ================= [13:14:33] [PASSED] drm_test_managed_release_action [13:14:33] [PASSED] drm_test_managed_run_action [13:14:33] =================== [PASSED] drm_managed =================== [13:14:33] =================== drm_mm (6 subtests) ==================== [13:14:33] [PASSED] drm_test_mm_init [13:14:33] [PASSED] drm_test_mm_debug [13:14:33] [PASSED] drm_test_mm_align32 [13:14:33] [PASSED] drm_test_mm_align64 [13:14:33] [PASSED] drm_test_mm_lowest [13:14:33] [PASSED] drm_test_mm_highest [13:14:33] ===================== [PASSED] drm_mm ====================== [13:14:33] ============= drm_modes_analog_tv (5 subtests) ============= [13:14:33] [PASSED] drm_test_modes_analog_tv_mono_576i [13:14:33] [PASSED] drm_test_modes_analog_tv_ntsc_480i [13:14:33] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [13:14:33] [PASSED] drm_test_modes_analog_tv_pal_576i [13:14:33] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [13:14:33] =============== [PASSED] drm_modes_analog_tv =============== [13:14:33] ============== drm_plane_helper (2 subtests) =============== [13:14:33] =============== drm_test_check_plane_state ================ [13:14:33] [PASSED] clipping_simple [13:14:33] [PASSED] clipping_rotate_reflect [13:14:33] [PASSED] positioning_simple [13:14:33] [PASSED] upscaling [13:14:33] [PASSED] downscaling [13:14:33] [PASSED] rounding1 [13:14:33] [PASSED] rounding2 [13:14:33] [PASSED] rounding3 [13:14:33] [PASSED] rounding4 [13:14:33] =========== [PASSED] drm_test_check_plane_state ============ [13:14:33] =========== drm_test_check_invalid_plane_state ============ [13:14:33] [PASSED] positioning_invalid [13:14:33] [PASSED] upscaling_invalid [13:14:33] [PASSED] downscaling_invalid [13:14:33] ======= [PASSED] drm_test_check_invalid_plane_state ======== [13:14:33] ================ [PASSED] drm_plane_helper ================= [13:14:33] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [13:14:33] ====== drm_test_connector_helper_tv_get_modes_check ======= [13:14:33] [PASSED] None [13:14:33] [PASSED] PAL [13:14:33] [PASSED] NTSC [13:14:33] [PASSED] Both, NTSC Default [13:14:33] [PASSED] Both, PAL Default [13:14:33] [PASSED] Both, NTSC Default, with PAL on command-line [13:14:33] [PASSED] Both, PAL Default, with NTSC on command-line [13:14:33] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [13:14:33] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [13:14:33] ================== drm_rect (9 subtests) =================== [13:14:33] [PASSED] drm_test_rect_clip_scaled_div_by_zero [13:14:33] [PASSED] drm_test_rect_clip_scaled_not_clipped [13:14:33] [PASSED] drm_test_rect_clip_scaled_clipped [13:14:33] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [13:14:33] ================= drm_test_rect_intersect ================= [13:14:33] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [13:14:33] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [13:14:33] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [13:14:33] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [13:14:33] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [13:14:33] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [13:14:33] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [13:14:33] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [13:14:33] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [13:14:33] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [13:14:33] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [13:14:33] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [13:14:33] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [13:14:33] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [13:14:33] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [13:14:33] ============= [PASSED] drm_test_rect_intersect ============= [13:14:33] ================ drm_test_rect_calc_hscale ================ [13:14:33] [PASSED] normal use [13:14:33] [PASSED] out of max range [13:14:33] [PASSED] out of min range [13:14:33] [PASSED] zero dst [13:14:33] [PASSED] negative src [13:14:33] [PASSED] negative dst [13:14:33] ============ [PASSED] drm_test_rect_calc_hscale ============ [13:14:33] ================ drm_test_rect_calc_vscale ================ [13:14:33] [PASSED] normal use [13:14:33] [PASSED] out of max range [13:14:33] [PASSED] out of min range [13:14:33] [PASSED] zero dst [13:14:33] [PASSED] negative src [13:14:33] [PASSED] negative dst [13:14:33] ============ [PASSED] drm_test_rect_calc_vscale ============ [13:14:33] ================== drm_test_rect_rotate =================== [13:14:33] [PASSED] reflect-x [13:14:33] [PASSED] reflect-y [13:14:33] [PASSED] rotate-0 [13:14:33] [PASSED] rotate-90 [13:14:33] [PASSED] rotate-180 [13:14:33] [PASSED] rotate-270 [13:14:33] ============== [PASSED] drm_test_rect_rotate =============== [13:14:33] ================ drm_test_rect_rotate_inv ================= [13:14:33] [PASSED] reflect-x [13:14:33] [PASSED] reflect-y [13:14:33] [PASSED] rotate-0 [13:14:33] [PASSED] rotate-90 [13:14:33] [PASSED] rotate-180 [13:14:33] [PASSED] rotate-270 [13:14:33] ============ [PASSED] drm_test_rect_rotate_inv ============= [13:14:33] ==================== [PASSED] drm_rect ===================== [13:14:33] ============ drm_sysfb_modeset_test (1 subtest) ============ [13:14:33] ============ drm_test_sysfb_build_fourcc_list ============= [13:14:33] [PASSED] no native formats [13:14:33] [PASSED] XRGB8888 as native format [13:14:33] [PASSED] remove duplicates [13:14:33] [PASSED] convert alpha formats [13:14:33] [PASSED] random formats [13:14:33] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [13:14:33] ============= [PASSED] drm_sysfb_modeset_test ============== [13:14:33] ================== drm_fixp (2 subtests) =================== [13:14:33] [PASSED] drm_test_int2fixp [13:14:33] [PASSED] drm_test_sm2fixp [13:14:33] ==================== [PASSED] drm_fixp ===================== [13:14:33] ============================================================ [13:14:33] Testing complete. Ran 639 tests: passed: 639 [13:14:33] Elapsed time: 26.273s total, 1.769s configuring, 24.336s building, 0.143s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [13:14:33] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [13:14:35] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [13:14:44] Starting KUnit Kernel (1/1)... [13:14:44] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [13:14:44] ================= ttm_device (5 subtests) ================== [13:14:44] [PASSED] ttm_device_init_basic [13:14:44] [PASSED] ttm_device_init_multiple [13:14:44] [PASSED] ttm_device_fini_basic [13:14:44] [PASSED] ttm_device_init_no_vma_man [13:14:44] ================== ttm_device_init_pools ================== [13:14:44] [PASSED] No DMA allocations, no DMA32 required [13:14:44] [PASSED] DMA allocations, DMA32 required [13:14:44] [PASSED] No DMA allocations, DMA32 required [13:14:44] [PASSED] DMA allocations, no DMA32 required [13:14:44] ============== [PASSED] ttm_device_init_pools ============== [13:14:44] =================== [PASSED] ttm_device ==================== [13:14:44] ================== ttm_pool (8 subtests) =================== [13:14:44] ================== ttm_pool_alloc_basic =================== [13:14:44] [PASSED] One page [13:14:44] [PASSED] More than one page [13:14:44] [PASSED] Above the allocation limit [13:14:44] [PASSED] One page, with coherent DMA mappings enabled [13:14:44] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [13:14:44] ============== [PASSED] ttm_pool_alloc_basic =============== [13:14:44] ============== ttm_pool_alloc_basic_dma_addr ============== [13:14:44] [PASSED] One page [13:14:44] [PASSED] More than one page [13:14:44] [PASSED] Above the allocation limit [13:14:44] [PASSED] One page, with coherent DMA mappings enabled [13:14:44] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [13:14:44] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [13:14:44] [PASSED] ttm_pool_alloc_order_caching_match [13:14:44] [PASSED] ttm_pool_alloc_caching_mismatch [13:14:44] [PASSED] ttm_pool_alloc_order_mismatch [13:14:44] [PASSED] ttm_pool_free_dma_alloc [13:14:44] [PASSED] ttm_pool_free_no_dma_alloc [13:14:44] [PASSED] ttm_pool_fini_basic [13:14:44] ==================== [PASSED] ttm_pool ===================== [13:14:44] ================ ttm_resource (8 subtests) ================= [13:14:44] ================= ttm_resource_init_basic ================= [13:14:44] [PASSED] Init resource in TTM_PL_SYSTEM [13:14:44] [PASSED] Init resource in TTM_PL_VRAM [13:14:44] [PASSED] Init resource in a private placement [13:14:44] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [13:14:44] ============= [PASSED] ttm_resource_init_basic ============= [13:14:44] [PASSED] ttm_resource_init_pinned [13:14:44] [PASSED] ttm_resource_fini_basic [13:14:44] [PASSED] ttm_resource_manager_init_basic [13:14:44] [PASSED] ttm_resource_manager_usage_basic [13:14:44] [PASSED] ttm_resource_manager_set_used_basic [13:14:44] [PASSED] ttm_sys_man_alloc_basic [13:14:44] [PASSED] ttm_sys_man_free_basic [13:14:44] ================== [PASSED] ttm_resource =================== [13:14:44] =================== ttm_tt (15 subtests) =================== [13:14:44] ==================== ttm_tt_init_basic ==================== [13:14:44] [PASSED] Page-aligned size [13:14:44] [PASSED] Extra pages requested [13:14:44] ================ [PASSED] ttm_tt_init_basic ================ [13:14:44] [PASSED] ttm_tt_init_misaligned [13:14:44] [PASSED] ttm_tt_fini_basic [13:14:44] [PASSED] ttm_tt_fini_sg [13:14:44] [PASSED] ttm_tt_fini_shmem [13:14:44] [PASSED] ttm_tt_create_basic [13:14:44] [PASSED] ttm_tt_create_invalid_bo_type [13:14:44] [PASSED] ttm_tt_create_ttm_exists [13:14:44] [PASSED] ttm_tt_create_failed [13:14:44] [PASSED] ttm_tt_destroy_basic [13:14:44] [PASSED] ttm_tt_populate_null_ttm [13:14:44] [PASSED] ttm_tt_populate_populated_ttm [13:14:44] [PASSED] ttm_tt_unpopulate_basic [13:14:44] [PASSED] ttm_tt_unpopulate_empty_ttm [13:14:44] [PASSED] ttm_tt_swapin_basic [13:14:44] ===================== [PASSED] ttm_tt ====================== [13:14:44] =================== ttm_bo (14 subtests) =================== [13:14:44] =========== ttm_bo_reserve_optimistic_no_ticket =========== [13:14:44] [PASSED] Cannot be interrupted and sleeps [13:14:44] [PASSED] Cannot be interrupted, locks straight away [13:14:44] [PASSED] Can be interrupted, sleeps [13:14:44] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [13:14:44] [PASSED] ttm_bo_reserve_locked_no_sleep [13:14:44] [PASSED] ttm_bo_reserve_no_wait_ticket [13:14:44] [PASSED] ttm_bo_reserve_double_resv [13:14:44] [PASSED] ttm_bo_reserve_interrupted [13:14:44] [PASSED] ttm_bo_reserve_deadlock [13:14:44] [PASSED] ttm_bo_unreserve_basic [13:14:44] [PASSED] ttm_bo_unreserve_pinned [13:14:44] [PASSED] ttm_bo_unreserve_bulk [13:14:44] [PASSED] ttm_bo_fini_basic [13:14:44] [PASSED] ttm_bo_fini_shared_resv [13:14:44] [PASSED] ttm_bo_pin_basic [13:14:44] [PASSED] ttm_bo_pin_unpin_resource [13:14:44] [PASSED] ttm_bo_multiple_pin_one_unpin [13:14:44] ===================== [PASSED] ttm_bo ====================== [13:14:44] ============== ttm_bo_validate (22 subtests) =============== [13:14:44] ============== ttm_bo_init_reserved_sys_man =============== [13:14:44] [PASSED] Buffer object for userspace [13:14:44] [PASSED] Kernel buffer object [13:14:44] [PASSED] Shared buffer object [13:14:44] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [13:14:44] ============== ttm_bo_init_reserved_mock_man ============== [13:14:44] [PASSED] Buffer object for userspace [13:14:44] [PASSED] Kernel buffer object [13:14:44] [PASSED] Shared buffer object [13:14:44] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [13:14:44] [PASSED] ttm_bo_init_reserved_resv [13:14:44] ================== ttm_bo_validate_basic ================== [13:14:44] [PASSED] Buffer object for userspace [13:14:44] [PASSED] Kernel buffer object [13:14:44] [PASSED] Shared buffer object [13:14:44] ============== [PASSED] ttm_bo_validate_basic ============== [13:14:44] [PASSED] ttm_bo_validate_invalid_placement [13:14:44] ============= ttm_bo_validate_same_placement ============== [13:14:44] [PASSED] System manager [13:14:44] [PASSED] VRAM manager [13:14:44] ========= [PASSED] ttm_bo_validate_same_placement ========== [13:14:44] [PASSED] ttm_bo_validate_failed_alloc [13:14:44] [PASSED] ttm_bo_validate_pinned [13:14:44] [PASSED] ttm_bo_validate_busy_placement [13:14:44] ================ ttm_bo_validate_multihop ================= [13:14:44] [PASSED] Buffer object for userspace [13:14:44] [PASSED] Kernel buffer object [13:14:44] [PASSED] Shared buffer object [13:14:44] ============ [PASSED] ttm_bo_validate_multihop ============= [13:14:44] ========== ttm_bo_validate_no_placement_signaled ========== [13:14:44] [PASSED] Buffer object in system domain, no page vector [13:14:44] [PASSED] Buffer object in system domain with an existing page vector [13:14:44] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [13:14:44] ======== ttm_bo_validate_no_placement_not_signaled ======== [13:14:44] [PASSED] Buffer object for userspace [13:14:44] [PASSED] Kernel buffer object [13:14:44] [PASSED] Shared buffer object [13:14:44] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [13:14:44] [PASSED] ttm_bo_validate_move_fence_signaled [13:14:44] ========= ttm_bo_validate_move_fence_not_signaled ========= [13:14:44] [PASSED] Waits for GPU [13:14:44] [PASSED] Tries to lock straight away [13:14:44] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [13:14:44] [PASSED] ttm_bo_validate_swapout [13:14:44] [PASSED] ttm_bo_validate_happy_evict [13:14:44] [PASSED] ttm_bo_validate_all_pinned_evict [13:14:44] [PASSED] ttm_bo_validate_allowed_only_evict [13:14:44] [PASSED] ttm_bo_validate_deleted_evict [13:14:44] [PASSED] ttm_bo_validate_busy_domain_evict [13:14:44] [PASSED] ttm_bo_validate_evict_gutting [13:14:44] [PASSED] ttm_bo_validate_recrusive_evict [13:14:44] ================= [PASSED] ttm_bo_validate ================= [13:14:44] ============================================================ [13:14:44] Testing complete. Ran 102 tests: passed: 102 [13:14:44] Elapsed time: 11.352s total, 1.741s configuring, 9.396s building, 0.188s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
Patchwork
CI✗ i915.CI.BAT: failure for Add new general DRM property "color format" (rev12)
In reply to Nicolas Frattaroli== Series Details ==
== Series Details ==
Series: Add new general DRM property "color format" (rev12)
URL : https://patchwork.freedesktop.org/series/157910/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_18540 -> Patchwork_157910v12
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_157910v12 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_157910v12, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_157910v12/index.html
Participating hosts (42 -> 40)
------------------------------
Missing (2): bat-dg2-13 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_157910v12:
### IGT changes ###
#### Possible regressions ####
* igt@kms_cursor_legacy@basic-flip-after-cursor-atomic:
- fi-skl-6600u: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_18540/fi-skl-6600u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_157910v12/fi-skl-6600u/igt@[email protected]
Build changes
-------------
* Linux: CI_DRM_18540 -> Patchwork_157910v12
CI-20190529: 20190529
CI_DRM_18540: 127c8434a6a018110189cdb654719a9844702ff7 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8935: 8935
Patchwork_157910v12: 127c8434a6a018110189cdb654719a9844702ff7 @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_157910v12/index.html
Patchwork
CI✓ Xe.CI.BAT: success for Add new general DRM property "color format" (rev12)
In reply to Nicolas Frattaroli== Series Details ==
== Series Details ==
Series: Add new general DRM property "color format" (rev12)
URL : https://patchwork.freedesktop.org/series/157911/
State : success
== Summary ==
CI Bug Log - changes from xe-5116-127c8434a6a018110189cdb654719a9844702ff7_BAT -> xe-pw-157911v12_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (13 -> 13)
------------------------------
No changes in participating hosts
Changes
-------
No changes found
Build changes
-------------
* Linux: xe-5116-127c8434a6a018110189cdb654719a9844702ff7 -> xe-pw-157911v12
IGT_8936: 98b65acc4f6edf68cd52b30f27b83049c4c5c83b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-5116-127c8434a6a018110189cdb654719a9844702ff7: 127c8434a6a018110189cdb654719a9844702ff7
xe-pw-157911v12: 157911v12
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/index.html
Patchwork
CI✗ Xe.CI.FULL: failure for Add new general DRM property "color format" (rev12)
In reply to Nicolas Frattaroli== Series Details ==
== Series Details ==
Series: Add new general DRM property "color format" (rev12)
URL : https://patchwork.freedesktop.org/series/157911/
State : failure
== Summary ==
CI Bug Log - changes from xe-5116-127c8434a6a018110189cdb654719a9844702ff7_FULL -> xe-pw-157911v12_FULL
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with xe-pw-157911v12_FULL absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in xe-pw-157911v12_FULL, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (2 -> 2)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in xe-pw-157911v12_FULL:
### IGT changes ###
#### Possible regressions ####
* igt@kms_cursor_edge_walk@256x256-right-edge@pipe-a-dp-2:
- shard-bmg: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-1/igt@kms_cursor_edge_walk@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-3/igt@kms_cursor_edge_walk@[email protected]
* igt@kms_pm_rpm@i2c:
- shard-bmg: [PASS][3] -> [FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-8/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-4/igt@[email protected]
Known issues
------------
Here are the changes found in xe-pw-157911v12_FULL that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_async_flips@alternate-sync-async-flip-atomic@pipe-a-dp-2:
- shard-bmg: [PASS][5] -> [FAIL][6] ([Intel XE#3718] / [Intel XE#6078]) +1 other test fail
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-7/igt@kms_async_flips@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-10/igt@kms_async_flips@[email protected]
* igt@kms_big_fb@linear-max-hw-stride-32bpp-rotate-180-hflip:
- shard-bmg: NOTRUN -> [SKIP][7] ([Intel XE#7059] / [Intel XE#7085])
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_big_fb@x-tiled-64bpp-rotate-270:
- shard-bmg: NOTRUN -> [SKIP][8] ([Intel XE#2327])
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_big_fb@y-tiled-64bpp-rotate-270:
- shard-bmg: NOTRUN -> [SKIP][9] ([Intel XE#1124]) +2 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_bw@linear-tiling-1-displays-target-2560x1440p:
- shard-bmg: NOTRUN -> [SKIP][10] ([Intel XE#367])
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_ccs@missing-ccs-buffer-4-tiled-mtl-rc-ccs-cc:
- shard-bmg: NOTRUN -> [SKIP][11] ([Intel XE#2887]) +1 other test skip
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_chamelium_frames@dp-crc-fast:
- shard-bmg: NOTRUN -> [SKIP][12] ([Intel XE#2252]) +1 other test skip
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_color_pipeline@plane-lut3d-green-only@pipe-b-plane-0:
- shard-bmg: NOTRUN -> [SKIP][13] ([Intel XE#6969]) +10 other tests skip
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@kms_color_pipeline@[email protected]
* igt@kms_color_pipeline@plane-lut3d-green-only@pipe-d-plane-2:
- shard-bmg: NOTRUN -> [SKIP][14] ([Intel XE#6969] / [Intel XE#7006]) +1 other test skip
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@kms_color_pipeline@[email protected]
* igt@kms_cursor_crc@cursor-sliding-32x32:
- shard-bmg: NOTRUN -> [SKIP][15] ([Intel XE#2320])
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_cursor_edge_walk@256x256-right-edge:
- shard-bmg: [PASS][16] -> [ABORT][17] ([Intel XE#1727])
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-1/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-3/igt@[email protected]
* igt@kms_cursor_edge_walk@256x256-right-edge@pipe-d-dp-2:
- shard-bmg: [PASS][18] -> [INCOMPLETE][19] ([Intel XE#1727])
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-1/igt@kms_cursor_edge_walk@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-3/igt@kms_cursor_edge_walk@[email protected]
* igt@kms_fbc_dirty_rect@fbc-dirty-rectangle-out-visible-area:
- shard-bmg: NOTRUN -> [SKIP][20] ([Intel XE#4422] / [Intel XE#7442])
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_frontbuffer_tracking@drrs-1p-primscrn-pri-shrfb-draw-mmap-wc:
- shard-bmg: NOTRUN -> [SKIP][21] ([Intel XE#2311]) +10 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-pri-shrfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-wc:
- shard-bmg: NOTRUN -> [SKIP][22] ([Intel XE#4141])
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbchdr-abgr161616f-draw-render:
- shard-bmg: NOTRUN -> [SKIP][23] ([Intel XE#7061]) +1 other test skip
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-blt:
- shard-bmg: NOTRUN -> [SKIP][24] ([Intel XE#2313]) +6 other tests skip
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_hdr@static-toggle@pipe-a-hdmi-a-3-xrgb16161616f:
- shard-bmg: [PASS][25] -> [SKIP][26] ([Intel XE#7915]) +1 other test skip
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-6/igt@kms_hdr@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-1/igt@kms_hdr@[email protected]
* igt@kms_joiner@basic-big-joiner:
- shard-bmg: NOTRUN -> [SKIP][27] ([Intel XE#6901])
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_panel_fitting@legacy:
- shard-bmg: NOTRUN -> [SKIP][28] ([Intel XE#2486])
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_plane@pixel-format-4-tiled-modifier@pipe-a-plane-5:
- shard-bmg: NOTRUN -> [SKIP][29] ([Intel XE#7130]) +1 other test skip
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@kms_plane@[email protected]
* igt@kms_plane@pixel-format-y-tiled-gen12-mc-ccs-modifier-source-clamping:
- shard-bmg: NOTRUN -> [SKIP][30] ([Intel XE#7283])
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@kms_plane@pixel-format-y-tiled-gen12-mc-ccs-modifier-source-clamping.html
* igt@kms_psr2_sf@psr2-overlay-plane-move-continuous-sf:
- shard-bmg: NOTRUN -> [SKIP][31] ([Intel XE#1489])
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_psr@fbc-pr-basic:
- shard-bmg: NOTRUN -> [SKIP][32] ([Intel XE#2234] / [Intel XE#2850]) +2 other tests skip
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_sharpness_filter@filter-tap:
- shard-bmg: NOTRUN -> [SKIP][33] ([Intel XE#6503])
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@kms_vblank@crtc-id:
- shard-bmg: NOTRUN -> [ABORT][34] ([Intel XE#5545] / [Intel XE#7814]) +1 other test abort
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@xe_eudebug_online@writes-caching-vram-bb-vram-target-vram:
- shard-bmg: NOTRUN -> [SKIP][35] ([Intel XE#7636]) +3 other tests skip
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@xe_exec_basic@multigpu-once-basic-defer-mmap:
- shard-bmg: NOTRUN -> [SKIP][36] ([Intel XE#2322] / [Intel XE#7372]) +1 other test skip
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@xe_exec_fault_mode@once-multi-queue-invalid-fault:
- shard-bmg: NOTRUN -> [SKIP][37] ([Intel XE#7136])
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@xe_exec_multi_queue@few-execs-preempt-mode-priority:
- shard-bmg: NOTRUN -> [SKIP][38] ([Intel XE#6874]) +3 other tests skip
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@xe_exec_reset@cm-multi-queue-cat-error-on-secondary:
- shard-bmg: NOTRUN -> [SKIP][39] ([Intel XE#7866])
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@xe_exec_system_allocator@once-new-bo-map-nomemset:
- shard-lnl: NOTRUN -> [ABORT][40] ([Intel XE#8007])
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-lnl-2/igt@[email protected]
* igt@xe_exec_threads@threads-multi-queue-mixed-shared-vm-userptr:
- shard-bmg: NOTRUN -> [SKIP][41] ([Intel XE#7138]) +1 other test skip
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
* igt@xe_multigpu_svm@mgpu-pagefault-conflict:
- shard-bmg: NOTRUN -> [SKIP][42] ([Intel XE#6964])
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-2/igt@[email protected]
#### Possible fixes ####
* igt@kms_flip@flip-vs-expired-vblank@d-hdmi-a3:
- shard-bmg: [FAIL][43] ([Intel XE#3149] / [Intel XE#3321]) -> [PASS][44] +1 other test pass
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-4/igt@kms_flip@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-10/igt@kms_flip@[email protected]
* igt@kms_hdr@static-toggle-suspend@pipe-a-hdmi-a-3-xrgb16161616f:
- shard-bmg: [SKIP][45] ([Intel XE#7915]) -> [PASS][46] +1 other test pass
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-8/igt@kms_hdr@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-4/igt@kms_hdr@[email protected]
* igt@kms_vrr@seamless-rr-switch-virtual@pipe-a-edp-1:
- shard-lnl: [FAIL][47] ([Intel XE#2142]) -> [PASS][48] +1 other test pass
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-lnl-2/igt@kms_vrr@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-lnl-3/igt@kms_vrr@[email protected]
* igt@xe_exec_system_allocator@many-64k-mmap-file-nomemset:
- shard-bmg: [SKIP][49] ([Intel XE#6703]) -> [PASS][50] +74 other tests pass
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@xe_live_ktest@xe_dma_buf:
- shard-bmg: [FAIL][51] ([Intel XE#7736]) -> [PASS][52] +1 other test pass
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@xe_live_ktest@xe_dma_buf.html
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@xe_live_ktest@xe_dma_buf.html
* igt@xe_module_load@reload-no-display:
- shard-bmg: [DMESG-WARN][53] -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@xe_wedged@wedged-mode-toggle:
- shard-lnl: [ABORT][55] ([Intel XE#8007]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-lnl-8/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-lnl-2/igt@[email protected]
#### Warnings ####
* igt@kms_big_fb@linear-32bpp-rotate-90:
- shard-bmg: [SKIP][57] ([Intel XE#6703]) -> [SKIP][58] ([Intel XE#2327])
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-mtl-mc-ccs:
- shard-bmg: [SKIP][59] ([Intel XE#6703]) -> [SKIP][60] ([Intel XE#2887]) +3 other tests skip
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_content_protection@mei-interface:
- shard-bmg: [SKIP][61] ([Intel XE#6703]) -> [SKIP][62] ([Intel XE#7642])
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-64x21:
- shard-bmg: [SKIP][63] ([Intel XE#6703]) -> [SKIP][64] ([Intel XE#2320])
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_dsc@dsc-with-output-formats-with-bpc:
- shard-bmg: [SKIP][65] ([Intel XE#6703]) -> [SKIP][66] ([Intel XE#2244])
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-bmg: [SKIP][67] ([Intel XE#6703]) -> [SKIP][68] ([Intel XE#4156] / [Intel XE#7425])
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-shrfb-draw-render:
- shard-bmg: [SKIP][69] ([Intel XE#6703]) -> [SKIP][70] ([Intel XE#2311]) +6 other tests skip
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-shrfb-draw-render.html
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-shrfb-draw-render.html
* igt@kms_frontbuffer_tracking@fbc-argb161616f-draw-blt:
- shard-bmg: [SKIP][71] ([Intel XE#6703]) -> [SKIP][72] ([Intel XE#7061] / [Intel XE#7356])
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-blt:
- shard-bmg: [SKIP][73] ([Intel XE#6703]) -> [SKIP][74] ([Intel XE#2313]) +5 other tests skip
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-blt.html
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcpsrhdr-tiling-y:
- shard-bmg: [SKIP][75] ([Intel XE#6703]) -> [SKIP][76] ([Intel XE#7399]) +1 other test skip
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_hdr@brightness-with-hdr:
- shard-bmg: [SKIP][77] ([Intel XE#3544] / [Intel XE#7915] / [Intel XE#7916]) -> [SKIP][78] ([Intel XE#3544] / [Intel XE#7916])
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-7/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-10/igt@[email protected]
* igt@kms_hdr@brightness-with-hdr@pipe-a-hdmi-a-3-xrgb16161616f:
- shard-bmg: [SKIP][79] ([Intel XE#7915]) -> [SKIP][80] ([Intel XE#7916]) +1 other test skip
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-7/igt@kms_hdr@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-10/igt@kms_hdr@[email protected]
* igt@kms_psr2_sf@fbc-psr2-overlay-plane-move-continuous-sf:
- shard-bmg: [SKIP][81] ([Intel XE#6703]) -> [SKIP][82] ([Intel XE#1489]) +1 other test skip
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_psr@fbc-psr-sprite-plane-move:
- shard-bmg: [SKIP][83] ([Intel XE#6703]) -> [SKIP][84] ([Intel XE#2234] / [Intel XE#2850]) +1 other test skip
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_sharpness_filter@invalid-filter-with-nearest-neighbor:
- shard-bmg: [SKIP][85] ([Intel XE#6703]) -> [SKIP][86] ([Intel XE#6503])
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern:
- shard-bmg: [SKIP][87] ([Intel XE#2426] / [Intel XE#5848]) -> [FAIL][88] ([Intel XE#1729] / [Intel XE#7424])
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-8/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-4/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-bmg: [SKIP][89] ([Intel XE#2426] / [Intel XE#5848]) -> [SKIP][90] ([Intel XE#2509] / [Intel XE#7437])
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-1/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-5/igt@[email protected]
* igt@xe_eudebug_online@interrupt-reconnect:
- shard-bmg: [SKIP][91] ([Intel XE#6703]) -> [SKIP][92] ([Intel XE#7636]) +1 other test skip
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@xe_exec_fault_mode@twice-multi-queue-rebind:
- shard-bmg: [SKIP][93] ([Intel XE#6703]) -> [SKIP][94] ([Intel XE#7136]) +1 other test skip
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@xe_exec_multi_queue@two-queues-userptr:
- shard-bmg: [SKIP][95] ([Intel XE#6703]) -> [SKIP][96] ([Intel XE#6874]) +4 other tests skip
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@xe_exec_threads@threads-multi-queue-userptr:
- shard-bmg: [SKIP][97] ([Intel XE#6703]) -> [SKIP][98] ([Intel XE#7138]) +1 other test skip
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
* igt@xe_query@multigpu-query-hwconfig:
- shard-bmg: [SKIP][99] ([Intel XE#6703]) -> [SKIP][100] ([Intel XE#944])
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5116-127c8434a6a018110189cdb654719a9844702ff7/shard-bmg-2/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/shard-bmg-7/igt@[email protected]
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
[Intel XE#1727]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1727
[Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729
[Intel XE#2142]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2142
[Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234
[Intel XE#2244]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2244
[Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
[Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
[Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
[Intel XE#2327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2327
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2486]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2486
[Intel XE#2509]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2509
[Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
[Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
[Intel XE#3149]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3149
[Intel XE#3321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3321
[Intel XE#3544]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3544
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#3718]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3718
[Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
[Intel XE#4156]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4156
[Intel XE#4422]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4422
[Intel XE#5545]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5545
[Intel XE#5848]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5848
[Intel XE#6078]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6078
[Intel XE#6503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6503
[Intel XE#6703]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6703
[Intel XE#6874]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6874
[Intel XE#6901]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6901
[Intel XE#6964]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6964
[Intel XE#6969]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6969
[Intel XE#7006]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7006
[Intel XE#7059]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7059
[Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
[Intel XE#7085]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7085
[Intel XE#7130]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7130
[Intel XE#7136]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7136
[Intel XE#7138]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7138
[Intel XE#7283]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7283
[Intel XE#7356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7356
[Intel XE#7372]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7372
[Intel XE#7399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7399
[Intel XE#7424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7424
[Intel XE#7425]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7425
[Intel XE#7437]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7437
[Intel XE#7442]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7442
[Intel XE#7636]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7636
[Intel XE#7642]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7642
[Intel XE#7736]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7736
[Intel XE#7814]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7814
[Intel XE#7866]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7866
[Intel XE#7915]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7915
[Intel XE#7916]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7916
[Intel XE#8007]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8007
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
Build changes
-------------
* Linux: xe-5116-127c8434a6a018110189cdb654719a9844702ff7 -> xe-pw-157911v12
IGT_8936: 98b65acc4f6edf68cd52b30f27b83049c4c5c83b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-5116-127c8434a6a018110189cdb654719a9844702ff7: 127c8434a6a018110189cdb654719a9844702ff7
xe-pw-157911v12: 157911v12
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-157911v12/index.html