Query: debug lm78 not seen on ISA bus with 2.6.14-rc1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

Still have problems with lm78 on 2.6.14-rc1.

Given these added debug statements:

--- linux-2.6.14-rc1/drivers/hwmon/lm78.c-orig  2005-09-14 10:52:47.000000000 +1000
+++ linux-2.6.14-rc1/drivers/hwmon/lm78.c       2005-09-14 13:48:02.000000000 +1000
@@ -494,6 +494,7 @@
                goto ERROR0;
        }

+       dev_dbg(&adapter->dev, "got device\n");
        /* Reserve the ISA region */
        if (is_isa)
                if (!request_region(address, LM78_EXTENT,
@@ -502,9 +503,11 @@
                        goto ERROR0;
                }

+       dev_dbg(&adapter->dev, "reserves ISA region\n");
        /* Probe whether there is anything available on this address. Already
           done for SMBus clients */
        if (kind < 0) {
+               dev_dbg(&adapter->dev, "kind < 0\n");
                if (is_isa) {

 #define REALLY_SLOW_IO
@@ -515,16 +518,19 @@
                                err = -ENODEV;
                                goto ERROR1;
                        }
+                       dev_dbg(&adapter->dev, "done +2\n");
                        if (inb_p(address + 3) != i) {
                                err = -ENODEV;
                                goto ERROR1;
                        }
+                       dev_dbg(&adapter->dev, "done +3\n");  <<== does not get here
                        if (inb_p(address + 7) != i) {
                                err = -ENODEV;
                                goto ERROR1;
                        }
 #undef REALLY_SLOW_IO

+                       dev_dbg(&adapter->dev, "after REALLY_SLOW_IO\n");
                        /* Let's just hope nothing breaks here */
                        i = inb_p(address + 5) & 0x7f;
                        outb_p(~i & 0x7f, address + 5);
@@ -533,6 +539,7 @@
                                err = -ENODEV;
                                goto ERROR1;
                        }
+                       dev_dbg(&adapter->dev, "after hope nothing breaks here\n");
                }
        }

I get:
# modprobe lm78

[/var/log/debug]
Sep 14 13:51:01 silly kernel: i2c_adapter i2c-9191: Driver lm78-isa registered
Sep 14 13:51:01 silly kernel: i2c_adapter i2c-9191: got device
Sep 14 13:51:01 silly kernel: i2c_adapter i2c-9191: reserves ISA region
Sep 14 13:51:01 silly kernel: i2c_adapter i2c-9191: kind < 0
Sep 14 13:51:01 silly kernel: i2c_adapter i2c-9191: done +2


If I do:
# rmmod lm78
# modprobe lm78 force_lm78=9191,0x290

I get the same now:
[/var/log/debug]
Sep 14 13:53:54 silly kernel: i2c_adapter i2c-9191: Driver lm78-isa unregistered
Sep 14 13:53:58 silly kernel: i2c_adapter i2c-9191: Driver lm78-isa registered
Sep 14 13:53:58 silly kernel: i2c_adapter i2c-9191: got device
Sep 14 13:53:58 silly kernel: i2c_adapter i2c-9191: reserves ISA region
Sep 14 13:53:58 silly kernel: i2c_adapter i2c-9191: kind < 0
Sep 14 13:53:58 silly kernel: i2c_adapter i2c-9191: done +2

# lsmod
Module                  Size  Used by
lm78                   17396  0
hwmon_vid               1984  1 lm78
i2c_isa                 4192  1 lm78
nfsd                   92008  8
exportfs                4512  1 nfsd
tulip                  41536  0
e100                   32964  0

this is linux-2.6.14-rc1 on:
  http://bugsplatter.mine.nu/test/boxen/silly/

I'm not sure where to go next?  Ideas, cluebats please?


Yes, it works on 2.6.13.1 with Jean Delvare's force option:

login as: root
Authenticating with public key "grant at peetoo" from agent
Last login: Wed Sep 14 11:11:59 2005 from magpie.mire.mine.nu
Linux 2.6.13.1a.

The best cure for insomnia is to get a  lot of sleep.
                -- W. C. Fields

root at silly:~# sensors
No sensors found!
root at silly:~# modprobe lm78 force_lm78=9191,0x290
root at silly:~# sensors
lm78-isa-0290
Adapter: ISA adapter
VCore 1:   +2.03 V  (min =  +2.18 V, max =  +0.59 V)   ALARM
VCore 2:   +1.49 V  (min =  +1.30 V, max =  +0.35 V)   ALARM
+3.3V:     +3.34 V  (min =  +1.44 V, max =  +0.70 V)   ALARM
+5V:       +5.08 V  (min =  +5.62 V, max =  +2.42 V)   ALARM
+12V:     +11.61 V  (min =  +4.07 V, max = +14.59 V)
-12V:     -10.35 V  (min =  -0.00 V, max = -11.01 V)   ALARM
-5V:       -4.70 V  (min =  -4.79 V, max =  -0.00 V)
fan1:        0 RPM  (min = 15340 RPM, div = 2)          ALARM
fan2:        0 RPM  (min = 14062 RPM, div = 2)          ALARM
fan3:        0 RPM  (min = 67500 RPM, div = 2)          ALARM
temp:      +26.0?C  (high =   +64?C, hyst =   +60?C)
vid:       +3.50 V
alarms:   Chassis intrusion detection                  ALARM

root at silly:~# lsmod
Module                  Size  Used by
lm78                   16504  0              (i2c_isa is compiled in)
i2c_sensor              2816  1 lm78
nfsd                   92008  8
exportfs                4512  1 nfsd
i2c_piix4               7376  0
tulip                  42496  0
e100                   30656  0

Thanks,
Grant.





[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux