Skip to content

Commit 9424911

Browse files
committed
Merge tag 'drm-fixes-for-v4.13-rc8' of git://people.freedesktop.org/~airlied/linux
Pull drm fixes from Dave Airlie: "Two fixes (a vmwgfx and core drm fix) in the queue for 4.13 final, hopefully that is it" * tag 'drm-fixes-for-v4.13-rc8' of git://people.freedesktop.org/~airlied/linux: drm/vmwgfx: Fix F26 Wayland screen update issue drm/bridge/sii8620: Fix memory corruption
2 parents c02bf3e + 58aec87 commit 9424911

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

drivers/gpu/drm/bridge/sil-sii8620.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,9 @@ static void sii8620_mt_read_devcap(struct sii8620 *ctx, bool xdevcap)
597597
static void sii8620_mt_read_devcap_reg_recv(struct sii8620 *ctx,
598598
struct sii8620_mt_msg *msg)
599599
{
600-
u8 reg = msg->reg[0] & 0x7f;
600+
u8 reg = msg->reg[1] & 0x7f;
601601

602-
if (msg->reg[0] & 0x80)
602+
if (msg->reg[1] & 0x80)
603603
ctx->xdevcap[reg] = msg->ret;
604604
else
605605
ctx->devcap[reg] = msg->ret;

drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,10 +1567,34 @@ vmw_kms_atomic_check_modeset(struct drm_device *dev,
15671567
}
15681568

15691569

1570+
/**
1571+
* vmw_kms_atomic_commit - Perform an atomic state commit
1572+
*
1573+
* @dev: DRM device
1574+
* @state: the driver state object
1575+
* @nonblock: Whether nonblocking behaviour is requested
1576+
*
1577+
* This is a simple wrapper around drm_atomic_helper_commit() for
1578+
* us to clear the nonblocking value.
1579+
*
1580+
* Nonblocking commits currently cause synchronization issues
1581+
* for vmwgfx.
1582+
*
1583+
* RETURNS
1584+
* Zero for success or negative error code on failure.
1585+
*/
1586+
int vmw_kms_atomic_commit(struct drm_device *dev,
1587+
struct drm_atomic_state *state,
1588+
bool nonblock)
1589+
{
1590+
return drm_atomic_helper_commit(dev, state, false);
1591+
}
1592+
1593+
15701594
static const struct drm_mode_config_funcs vmw_kms_funcs = {
15711595
.fb_create = vmw_kms_fb_create,
15721596
.atomic_check = vmw_kms_atomic_check_modeset,
1573-
.atomic_commit = drm_atomic_helper_commit,
1597+
.atomic_commit = vmw_kms_atomic_commit,
15741598
};
15751599

15761600
static int vmw_kms_generic_present(struct vmw_private *dev_priv,

0 commit comments

Comments
 (0)