Subject: kern/13420: lm(4) does not identify LM81 chip
To: None <gnats-bugs@gnats.netbsd.org>
From: None <svs@ropnet.ru>
List: netbsd-bugs
Date: 07/09/2001 11:15:24
>Number:         13420
>Category:       kern
>Synopsis:       lm(4) does not identify LM81 chip
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 09 11:13:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Svishchev
>Release:        1.5
>Organization:
>Environment:
>Description:
The lm(4) driver does not identify the LM81 chip at attach time.  This
does not prevent it from working, though:

% envstat
   IN 0   IN 1   IN 2   IN 3   IN 4   IN 5   IN 6   Temp  Fan 1  Fan 2  Fan 3
    Vcc    Vcc    Vcc    Vcc    Vcc    Vcc    Vcc   degC    RPM    RPM    RPM
   2.00   1.49   3.41   4.50  11.55 -11.57  -5.06 170.00   7417      0      0

>How-To-Repeat:
Boot a kernel configured with

lm0 at isa? port 0x290

on a system with Iwill BD100 motherboard.  Notice that

lm0 at isa0 port 0x290-0x297: Unknow chip (ID 128)

is printed at boot time.

>Fix:
--- sys/dev/ic/nslm7xvar.h  Fri Aug  4 18:11:40 2000
+++ sys.svs/dev/ic/nslm7xvar.h  Mon Jul  2 12:36:21 2001
@@ -65,6 +65,7 @@
 #define LM_ID_LM78 0x00
 #define LM_ID_LM78J  0x40
 #define LM_ID_LM79 0xC0
+#define LM_ID_LM81 0x80
 #define LM_ID_MASK 0xFE

 /*
--- sys/dev/ic/nslm7x.c Fri Aug  4 18:11:39 2000
+++ sys.svs/dev/ic/nslm7x.c Mon Jul  2 21:30:09 2001
@@ -241,6 +241,9 @@
  case LM_ID_LM79:
    printf(": LM79\n");
    break;
+ case LM_ID_LM81:
+   printf(": LM81\n");
+   break;
  default:
    return 0;
  } 

>Release-Note:
>Audit-Trail:
>Unformatted: