Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jean Delvare
Date: Sunday, March 4, 2007 - 3:54 am

Hi David,

On Sat, 3 Mar 2007 08:47:21 -0700, David Hubbard wrote:

I've been thinking about it too, but I could convince myself quickly
that it would never work, so I didn't bother posting about it ;)

As you found out yourself, it isn't trivial to allocate the ports
dynamically. Either you'll end up with lots of 1-address ranges, or
you'll allocate more than is actually needed, or you'll need a
buddy-allocator like mechanism to merge contiguous ranges. This sounds
quite complex to get right. And very costly, too. I don't know the
exact algorithm to find out whether an I/O range is already allocated
or not, and by who, but having to do it for each port access from AML,
forever, sounds like a huge overhead.

On top of that, there is a risk that another driver already requested
the I/O range. And we do not want to prevent ACPI from accessing it!
OK, it would be cleaner that the current situation in a way, but it
could also have bad consequences as was underlined elsewhere in this
thread.

What we want is to grant access to the resources to at least ACPI (and
ACPI only if we can't do better), or if possible to both ACPI and
individual drivers but with some mechanism avoiding concurrent access
(be it a mutex or a port forwarder.)

-- 
Jean Delvare
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Could the k8temp driver be interfering with ACPI?, Chuck Ebbert, (Fri Feb 16, 10:31 am)
Re: Could the k8temp driver be interfering with ACPI?, Chuck Ebbert, (Fri Feb 16, 11:14 am)
Re: Could the k8temp driver be interfering with ACPI?, Chuck Ebbert, (Fri Feb 16, 12:31 pm)
Re: Could the k8temp driver be interfering with ACPI?, Andi Kleen, (Fri Feb 16, 12:59 pm)
Re: [lm-sensors] Could the k8temp driver be interfering wi ..., Henrique de Moraes H ..., (Fri Mar 2, 6:47 am)
Re: [lm-sensors] Could the k8temp driver be interfering wi ..., Henrique de Moraes H ..., (Fri Mar 2, 2:22 pm)
Re: [lm-sensors] Could the k8temp driver be interfering wi ..., Jean Delvare, (Sun Mar 4, 3:54 am)
Re: [lm-sensors] Could the k8temp driver be interfering wi ..., Alexey Starikovskiy, (Fri Mar 9, 3:39 am)
Re: [lm-sensors] Could the k8temp driver be interfering wi ..., Alexey Starikovskiy, (Fri Mar 9, 10:35 am)
Re: [lm-sensors] Could the k8temp driver be interfering wi ..., richardvoigt@gmail.com, (Sun Mar 18, 12:36 pm)
Re: Could the k8temp driver be interfering with ACPI?, Jean Delvare, (Mon Apr 2, 8:48 am)
RE: Could the k8temp driver be interfering with ACPI?, Moore, Robert, (Mon Apr 2, 1:55 pm)
Re: Could the k8temp driver be interfering with ACPI?, Jean Delvare, (Mon Apr 2, 10:49 pm)
Re: Could the k8temp driver be interfering with ACPI?, Jean Delvare, (Tue Apr 3, 12:21 am)
RE: Could the k8temp driver be interfering with ACPI?, Moore, Robert, (Wed Apr 4, 2:35 pm)