Skip to content

Commit 2fd0e5f

Browse files
committed
Merge tag 'drm-misc-fixes-2022-01-27' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
* drm/ast: Revert 1600x800 with 108MHz PCLK * drm/atomic: fix CRTC handling during modeset * drm/privacy-screen: Honor acpi=off * drm/ttm: build fix for ARCH=um Signed-off-by: Dave Airlie <[email protected]> From: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 23ecd4c + 7fde14d commit 2fd0e5f

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

drivers/gpu/drm/ast/ast_tables.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,6 @@ static const struct ast_vbios_enhtable res_1360x768[] = {
282282
};
283283

284284
static const struct ast_vbios_enhtable res_1600x900[] = {
285-
{1800, 1600, 24, 80, 1000, 900, 1, 3, VCLK108, /* 60Hz */
286-
(SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 3, 0x3A },
287285
{1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75, /* 60Hz CVT RB */
288286
(SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo |
289287
AST2500PreCatchCRT), 60, 1, 0x3A },

drivers/gpu/drm/drm_atomic.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,8 +1327,10 @@ int drm_atomic_check_only(struct drm_atomic_state *state)
13271327

13281328
drm_dbg_atomic(dev, "checking %p\n", state);
13291329

1330-
for_each_new_crtc_in_state(state, crtc, new_crtc_state, i)
1331-
requested_crtc |= drm_crtc_mask(crtc);
1330+
for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
1331+
if (new_crtc_state->enable)
1332+
requested_crtc |= drm_crtc_mask(crtc);
1333+
}
13321334

13331335
for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) {
13341336
ret = drm_atomic_plane_check(old_plane_state, new_plane_state);
@@ -1377,8 +1379,10 @@ int drm_atomic_check_only(struct drm_atomic_state *state)
13771379
}
13781380
}
13791381

1380-
for_each_new_crtc_in_state(state, crtc, new_crtc_state, i)
1381-
affected_crtc |= drm_crtc_mask(crtc);
1382+
for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
1383+
if (new_crtc_state->enable)
1384+
affected_crtc |= drm_crtc_mask(crtc);
1385+
}
13821386

13831387
/*
13841388
* For commits that allow modesets drivers can add other CRTCs to the

drivers/gpu/drm/drm_privacy_screen_x86.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ static bool __init detect_thinkpad_privacy_screen(void)
3333
unsigned long long output;
3434
acpi_status status;
3535

36+
if (acpi_disabled)
37+
return false;
38+
3639
/* Get embedded-controller handle */
3740
status = acpi_get_devices("PNP0C09", acpi_set_handle, NULL, &ec_handle);
3841
if (ACPI_FAILURE(status) || !ec_handle)

0 commit comments

Comments
 (0)