Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Apr 2009 17:28:03 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        freebsd-current@freebsd.org
Subject:   ichwd: option to globally disable SMI
Message-ID:  <49DA1173.1080606@icyb.net.ua>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090605060706050509000707
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit


Our ichwd driver attempts to disable TCO SMI generation to avoid potentially
unhelpful SMI handler's handling of watchdog timeout.

Recent ICH versions allow TCO SMI bit to be locked down (typically by BIOS), so
that it can not be changed later. ichwd driver at present doesn't check result of
changing the bit, so it doesn't report a failure.
If the bit is locked and SMI handler is indeed unhelpful the only remaining
possibility is to try to disable SMI completely. This bit too can be locked, but
there is a chance that it is not.

I am attaching a patch that makes ichwd check and report result of SMI bit
operations and also try to disable SMI globally if permitted by
hw.ichwd.use_global_smi tunable.

This patch could be useful to you if the following two conditions are met:
1. existing ichwd driver successfully attaches and does not produce any
errors/warnings;
2. kill -9 on watchdogd doesn't result in machine being rebooted after timeout;

I am using this patch on DG33TL motherboard for couple of weeks now. I do not see
any side-effects from disabling SMI and watchdog works as expected.

P.S. I tried to contact Intel's customer support about my problem and I was told
that watchdog is supported by Intel only on Extreme Edition motherboards, which my
motherboard is not. I wonder if anybody here uses FreeBSD with such a motherboard
and ichwd works properly indeed.

-- 
Andriy Gapon

--------------090605060706050509000707
Content-Type: text/plain;
 name="ichwd-7.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="ichwd-7.diff"

ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaWNod2QvaWNod2QuYyBiL3N5cy9kZXYvaWNod2QvaWNo
d2QuYwppbmRleCAzNWY4YjVmLi5hNDM4N2EyIDEwMDY0NAotLS0gYS9zeXMvZGV2L2ljaHdk
L2ljaHdkLmMKKysrIGIvc3lzL2Rldi9pY2h3ZC9pY2h3ZC5jCkBAIC02Miw2ICs2Miw3IE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otLyogYml0IGRlZmluaXRpb25zIGZvciBTTUlfRU4gYW5kIFNN
SV9TVFMgKi8KKy8qIFNNSS1yZWxhdGVkIGJpdCBkZWZpbml0aW9ucyAqLworI2RlZmluZSBT
TUlfR0JMX0VOCQkweDAwMDEKICNkZWZpbmUgU01JX1RDT19FTgkJMHgyMDAwCi0jZGVmaW5l
IFNNSV9UQ09fU1RTCQkweDIwMDAKIAogLyogdGltZXIgdmFsdWUgbWFzayBmb3IgVENPX1JM
RCBhbmQgVENPX1RNUiAqLwogI2RlZmluZSBUQ09fVElNRVJfTUFTSwkJMHgxZgo=
--------------090605060706050509000707
Content-Type: text/plain;
 name="ichwd-head.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="ichwd-head.diff"

ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaWNod2QvaWNod2QuYyBiL3N5cy9kZXYvaWNod2QvaWNo
d2QuYwppbmRleCA3MTY2MmE1Li5hNDM4N2EyIDEwMDY0NAotLS0gYS9zeXMvZGV2L2ljaHdk
L2ljaHdkLmMKKysrIGIvc3lzL2Rldi9pY2h3ZC9pY2h3ZC5jCkBAIC02Miw2ICs2Miw3IEBA
IF9fRkJTRElEKCIkRnJlZUJTRCQiKTsKICNpbmNsdWRlIDxzeXMva2VybmVsLmg+CiAjaW5j
bHVkZSA8c3lzL21vZHVsZS5oPgogI2luY2x1ZGUgPHN5cy9zeXN0bS5oPgorI2luY2x1ZGUg
PHN5cy9zeXNjdGwuaD4KICNpbmNsdWRlIDxzeXMvYnVzLmg+CiAjaW5jbHVkZSA8bWFjaGlu
ZS9idXMuaD4KICNpbmNsdWRlIDxzeXMvcm1hbi5oPgpAQCAtNzIsNiArNzMsMTQgQEAgX19G
QlNESUQoIiRGcmVlQlNEJCIpOwogCiAjaW5jbHVkZSA8ZGV2L2ljaHdkL2ljaHdkLmg+CiAK
Kworc3RhdGljIGludCB1c2VfZ2xvYmFsX3NtaSA9IDA7CisKK1NZU0NUTF9OT0RFKF9od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HN1Y2NlZWRlZCAqLworCXZhbCA9
IGljaHdkX3JlYWRfc21pXzQoc2MsIFNNSV9FTik7CisJaWYgKCh2YWwgJiAoU01JX1RDT19F
TiB8IFNNSV9HQkxfRU4pKSAhPSAoU01JX1RDT19FTiB8IFNNSV9HQkxfRU4pKQorCQlwcmlu
dGYoImNvdWxkIG5vdCBlbmFibGUgU01JcywgYml0cyBtaWdodCBiZSBsb2NrZWQgYnkgQklP
U1xuIik7CiB9CiAKIC8qCmRpZmYgLS1naXQgYS9zeXMvZGV2L2ljaHdkL2ljaHdkLmggYi9z
eXMvZGV2L2ljaHdkL2ljaHdkLmgKaW5kZXggNTFlZDI2ZC4uOGUyYmRiYSAxMDA2NDQKLS0t
IGEvc3lzL2Rldi9pY2h3ZC9pY2h3ZC5oCisrKyBiL3N5cy9kZXYvaWNod2QvaWNod2QuaApA
QCAtMTMxLDkgKzEzMSw5IEBAIHN0cnVjdCBpY2h3ZF9zb2Z0YyB7CiAjZGVmaW5lIFRDTzFf
Q05UCQkweDA4IC8qIFRDTyBDb250cm9sIDEgKi8KICNkZWZpbmUgVENPMl9DTlQJCTB4MDgg
LyogVENPIENvbnRyb2wgMiAqLwogCi0vKiBiaXQgZGVmaW5pdGlvbnMgZm9yIFNNSV9FTiBh
bmQgU01JX1NUUyAqLworLyogU01JLXJlbGF0ZWQgYml0IGRlZmluaXRpb25zICovCisjZGVm
aW5lIFNNSV9HQkxfRU4JCTB4MDAwMQogI2RlZmluZSBTTUlfVENPX0VOCQkweDIwMDAKLSNk
ZWZpbmUgU01JX1RDT19TVFMJCTB4MjAwMAogCiAvKiB0aW1lciB2YWx1ZSBtYXNrIGZvciBU
Q09fUkxEIGFuZCBUQ09fVE1SICovCiAjZGVmaW5lIFRDT19USU1FUl9NQVNLCQkweDFmCg==
--------------090605060706050509000707--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49DA1173.1080606>