Date: Mon, 30 Apr 2007 04:18:42 +0900 From: Takeharu KATO <takeharu1219@ybb.ne.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/112254: ichwd for ICH8 Message-ID: <4634EF92.1030505@ybb.ne.jp> Resent-Message-ID: <200704291950.l3TJo4Th048776@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 112254 >Category: kern >Synopsis: ICH8 support for ichwd driver and some bug fix. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Apr 29 19:50:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Takeharu KATO >Release: FreeBSD 7.0-CURRENT i386 >Organization: none >Environment: System: FreeBSD aeon 7.0-CURRENT FreeBSD 7.0-CURRENT #3: Thu Apr 26 01:21:09 JST 2007 root@aeon:/usr/obj/usr/src/sys/GENERIC i386 machine : i386 PC/AT os : FreeBSD 7.0-CURRENT (2007/04/25 snapshot) target : ichwd watchdog device driver. >Description: I found current ichwd driver can not work on recent ICH-N mother boards. And more, I found some serious bugs as follows: issue-1) ichwd can not set timeout value properly (SERIOUS). The ichwd driver regards timer tick interval of the watchdog device as 1.8 seconds. But according to the manual of ICH, it should be 0.6 seconds(I confirm that it is true on my box at least). issue-2) ichwd can not work on ICH6/ICH8. The ichwd driver does not support ICH6 and ICH8 chipsets. To support such kind of chipsets, it is needed to add TCO version 2 relevant functions into the driver. issue-3) some device id does not refect to acctual device type PCI device id 0x27b8 in ichwd.h (device id for ICH5) is not correct. According to PCI device data base (http://www.pcidatabe.com), this should be ICH7. And more, ICH7 needs TCO version 2 relevant codes which is described above. >How-To-Repeat: Execute watchdogd(8) on ICH6/ICH7/ICH8 mother boards as follows: # kldload ichwd # /usr/sbin/watchdogd issue-1) After invoke watchdogd, type following command: # killall -9 watchdogd The box will reboot in 6--7 seconds(This should be 16 seconds.). issue-2) and issue-3) Execute watchdogd(8) on ICH6/ICH7/ICH8 mother boards. The driver does not show any kind of chipset name (ICH X) on these machines. >Fix: I wrote the patch to fix problems above. To fix problems which are described above, apply the patch which is attached this PR. P.S. This patch is reviewed by nork@FreeBSD.org --------------000605050301040302040202 Content-Type: application/x-gzip; name="ichwd-ich8-support-20070429.patch.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="ichwd-ich8-support-20070429.patch.gz" H4sICI7lNEYCA2ljaHdkLWljaDgtc3VwcG9ydC0yMDA3MDQyOS5wYXRjaAC1Wm1z2kgS/iz/ itnk4gJL2JLAQMwltbx5Ta0xKSDO7d1eqYQkjGpBoiThOJVkf/t1z4ykkSxejOtcrgKknme6 e57pl5Fsdz4nlbvNOiCutfhqn/uB+3DBvlrsUvzrpFKpFAhJXxybtGG8fkl0/UqtXml1oqtq 40SW5SyCNPQ9KlpVCcrpVzWNif76K6k0NEVXiYwfDQIXDOO6M+kNeqU3/7gOHAe+X5EwsC7C b+GF7TxexNAn5K3rWcuN7ZB/itdxysXHE3JCwsiMXAs+go0VMZUMkHQtJ/Mj/M9/yQfy/aQi fSf3/bveaDzoGYO7af9WIb3+/aDbh99Nvalq7bZC3gy8yFkS/pt8NSNrYfsPJHJXTvCG/FQO wenkcDrH4XRy+nTax+IM80DD45C6OY267WNxhnmgIzXq5Xzd6xyLM8wDHalRP4vTPxKlM87h dC764+OwrvNY152L65djDbo3lwkO/sgj7AOoV1W1P0kXjP/eAqMq+H/3+fYWNZMP2r17ti8I EKIdCNfJw3VeA9fJa9dpvw5u/5ZWDofr5rXrvkq7Q7b3C7Tr5Zei96qlOGSrv0C7Psru3PFU uYPhDtr4yqFwh+19heh74ZLdu2f7Umv3w0EAqQ+pbBpR6sNi1x0I9yUP9+U1cA0mnMI1tqAd CJc3tvEqYxvD3o2ShevdHL8UzbyxzVcZ26TKiXBblDsUbpSHG+2BS7MHfMGL5GdLKBqhNLSW ZhgaQuFIL7Ro0aqpVUXTiKxpqqJrWLbuH0fe2s7c9eLi82vgRo4RWb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777fd790wAbtYoEnHNzV1y20YzgT0bQIjLlBj53jJydMgOXnqsJOncSYBx2DC QQAC2TV2qqzp9KG9ftiqi097EUVtqirqwg83fP5gmx4ZiJPnny/jUJ0NXcflENQSUEfP3IgX DhWsXdfrwH9yVxizl473EEGQg/bB9KB+hmLdDonPjihxQnwARI9TBJO/9IzpoPu7JGmgKftL /Rv3zGjJXCUkeyftdPF+taapz+9js4t3a+kt8QEDdRH904XB6eM2vA/REwzF0mxKn7IOPDdy zSW5N5cbh7Yv9zrNTyfyUQ4pmTN8Tqae16GztsoUqshB9cQ/jF4r13NXmxW5gHb5iX6LH7nB hDH6M4oB3HBwB5DD/ujzVNJP/gfDWyplXTAAAA== --------------000605050301040302040202-- >Release-Note: >Audit-Trail: >Unformatted: This is a multi-part message in MIME format. --------------000605050301040302040202 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4634EF92.1030505>