diff --git a/drivers/gpu/drm/apple/iomfb_v14_7.c b/drivers/gpu/drm/apple/iomfb_v14_7.c index aa02ce3c72fc..5957230e2cab 100644 --- a/drivers/gpu/drm/apple/iomfb_v14_7.c +++ b/drivers/gpu/drm/apple/iomfb_v14_7.c @@ -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[] = { diff --git a/drivers/gpu/drm/apple/v14-board-test.c b/drivers/gpu/drm/apple/v14-board-test.c index 65cd2d1cb688..47adc2ad9803 100644 --- a/drivers/gpu/drm/apple/v14-board-test.c +++ b/drivers/gpu/drm/apple/v14-board-test.c @@ -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 @@ -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; @@ -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));