From: Federico Di Dio <eflags@paolyno.ath.cx>
To: linux-kernel@vger.kernel.org
Subject: Hidden IO-Ports: workarounded but WHY?
Date: Mon, 11 Jun 2007 01:44:29 +0200 [thread overview]
Message-ID: <20070610234429.GA2880@charm> (raw)
Hi everybody,
I have an IT8705F SuperIO on my motherboard and everything is working
but the voltage/temperature sensors (running kernel 2.6.21.3).
I read the specs and figured out how to get direct access to the chip:
you can setup it through IO port 0x2e (or 0x4e), and decide where the
sensors will be in the IO space (default: 0x290).
Everything about it is fine, but reading from (or writing to) ports
0x290-0x297 is useless (all I get is 0xff).
With a few lines of code I canged base port to 0xc00 and now it works,
it87.ko loads and works flawlessly; this puzzled me, so I tried a 2.4
kernel and discovered it just works, no need to change the base port.
I also look directly at the ports with DOS DEBUG and got the same
results.
A few facts:
1) The IT8705F is fine (BIOS, Win98, linux 2.4 are just happy
about it);
2) it works with kernel 2.4.33.3, it doesn't with 2.6.17.13;
3) disabling ACPI, hotplug and everything I tried is irrelevant;
4) the bug is NOT related to the it87 driver: reading the ports
right after a reboot (with no modules loaded) just returns 0xff,
while I'm sure I should get reasonable values (I read the whole
spec, so I'm not messing around with the wrong ports or anything like
that); the it87 driver, however, finds the chip, but when it
understands it's unable to do anything useful, it quits (ENODEV);
after altering the io port to something different, it runs just fine;
5) the io ports are not used by other devices. From /proc/ioports:
0201-0201 : ns558-pnp
0330-0331 : MPU401 UART
[...]
03f8-03ff : serial
0cf8-0cff : PCI conf1
so 0x290-0x297 should be as good as 0xc00-0xc07;
6) I have no idea of what, in the kernel, can cause such a behaviour ;)
I'm no kernel expert, but this sounds quite like an interesting
problem to me!
I can produce a detailed report, if you need more informations, but
I'm not subscribed to the lkml, so please CC: me any answer.
Ciao,
Federico Di Dio
reply other threads:[~2007-06-11 0:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070610234429.GA2880@charm \
--to=eflags@paolyno.ath.cx \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox