summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon/atom.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/radeon/atom.c')
-rw-r--r--sys/dev/pci/drm/radeon/atom.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/radeon/atom.c b/sys/dev/pci/drm/radeon/atom.c
index dccf8300c49..31856f8e881 100644
--- a/sys/dev/pci/drm/radeon/atom.c
+++ b/sys/dev/pci/drm/radeon/atom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atom.c,v 1.1 2013/08/12 04:11:53 jsg Exp $ */
+/* $OpenBSD: atom.c,v 1.2 2014/01/23 00:57:10 jsg Exp $ */
/*
* Copyright 2008 Advanced Micro Devices, Inc.
*
@@ -1224,12 +1224,17 @@ int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params)
int r;
rw_enter_write(&ctx->rwlock);
+ /* reset data block */
+ ctx->data_block = 0;
/* reset reg block */
ctx->reg_block = 0;
/* reset fb window */
ctx->fb_base = 0;
/* reset io mode */
ctx->io_mode = ATOM_IO_MM;
+ /* reset divmul */
+ ctx->divmul[0] = 0;
+ ctx->divmul[1] = 0;
r = atom_execute_table_locked(ctx, index, params);
rw_exit_write(&ctx->rwlock);
return r;