diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-01-23 00:57:11 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-01-23 00:57:11 +0000 |
commit | 04fda01bf7e40b775d95ce844b117ccb2ee37ab5 (patch) | |
tree | c38c3413fb1acb22f320c3251482db09ec47a840 /sys/dev/pci | |
parent | 32c205bbf9304ffef5cb88f81117b7e0368944b2 (diff) |
drm/radeon/atom: initialize more atom interpretor elements to 0
From Alex Deucher
566bdd38a2a524bf1ca2e9292ee8ca8ad336edf9 in ubuntu 3.8
42a21826dc54583cdb79cc8477732e911ac9c376 in mainline linux
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/radeon/atom.c | 7 |
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; |