Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions drivers/gpu/drm/apple/iomfb_v14_7.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ static const struct dcp_v14_board dcp_v14_board_j514c = {
.handoff = "apple,t6031-handoff",
.promotion = true,
.log_bringup = true,
/* Its 120 Hz panel runs the J516C image: unstamped, it presents at 60 fps. */
.swap_timestamps = true,
};

static const struct dcp_v14_board *const dcp_v14_boards[] = {
Expand Down
10 changes: 5 additions & 5 deletions drivers/gpu/drm/apple/v14-board-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* and which DCP firmware image a record admits. The J516C (T6031) record
* admits only the T6030 image, whose IOMFB layouts were validated, and
* refuses every other. Which DCPs stamp their swaps: the internal panel of a
* T6030 board and of the J516C record; the J514C and T8122 panels and external
* T6030 board and of the J516C and J514C records; the T8122 panels and external
* processors keep zero timestamps, byte for byte.
*/
#include <kunit/test.h>
Expand Down Expand Up @@ -196,7 +196,7 @@ static void v14_board_unchanged(struct kunit *test)
KUNIT_EXPECT_TRUE(test, known);
}

/* The T6030 and J516C internal panels stamp their swaps. */
/* The T6030, J516C and J514C internal panels stamp their swaps. */
static void v14_board_swap_timestamps(struct kunit *test)
{
const struct dcp_v14_board *j516c_b, *j514c_b, *t6030_b, *j613_b;
Expand All @@ -209,13 +209,13 @@ static void v14_board_swap_timestamps(struct kunit *test)
KUNIT_ASSERT_TRUE(test, j516c_b && j514c_b && t6030_b && j613_b);

KUNIT_EXPECT_TRUE(test, j516c_b->swap_timestamps);
KUNIT_EXPECT_FALSE(test, j514c_b->swap_timestamps);
KUNIT_EXPECT_TRUE(test, j514c_b->swap_timestamps);
KUNIT_EXPECT_TRUE(test, t6030_b->swap_timestamps);
KUNIT_EXPECT_FALSE(test, j613_b->swap_timestamps);

KUNIT_EXPECT_TRUE(test, dcp_v14_board_stamps_swaps(j516c_b, false));
/* The J514C, the external role, the T8122 panel, no record. */
KUNIT_EXPECT_FALSE(test, dcp_v14_board_stamps_swaps(j514c_b, false));
KUNIT_EXPECT_TRUE(test, dcp_v14_board_stamps_swaps(j514c_b, false));
/* The external role, the T8122 panel, no record. */
KUNIT_EXPECT_FALSE(test, dcp_v14_board_stamps_swaps(j516c_b, true));
KUNIT_EXPECT_TRUE(test, dcp_v14_board_stamps_swaps(t6030_b, false));
KUNIT_EXPECT_FALSE(test, dcp_v14_board_stamps_swaps(j613_b, false));
Expand Down
Loading