From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luca Tettamanti" Subject: Re: [lm-sensors] Could the k8temp driver be interfering with ACPI? Date: Sun, 15 Apr 2007 22:59:00 +0200 Message-ID: <68676e00704151359g18bf6935wcb2144bcbcf4edd2@mail.gmail.com> References: <45D5EA88.7090300@redhat.com> <200704131459.45867.bjorn.helgaas@hp.com> <20070415114159.05026483@hyperion.delvare> <200704151431.41503.bjorn.helgaas@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from wr-out-0506.google.com ([64.233.184.238]:49217 "EHLO wr-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753949AbXDOU7D (ORCPT ); Sun, 15 Apr 2007 16:59:03 -0400 Received: by wr-out-0506.google.com with SMTP id 76so1300276wra for ; Sun, 15 Apr 2007 13:59:01 -0700 (PDT) In-Reply-To: <200704151431.41503.bjorn.helgaas@hp.com> Content-Disposition: inline Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Bjorn Helgaas Cc: Jean Delvare , Pavel Machek , linux-kernel , lm-sensors@lm-sensors.org, linux-acpi@vger.kernel.org, Chuck Ebbert On 4/15/07, Bjorn Helgaas wrote: > On Sunday 15 April 2007 03:41, Jean Delvare wrote: > > On Fri, 13 Apr 2007 14:59:45 -0600, Bjorn Helgaas wrote: > > > Of course, there are always BIOS defects. But if we could make a > > > case that a BIOS that doesn't declare the resources used by the AML > > > is defective, we could add quirks to reserve the undeclared resources. > > > > Only realistic if the list of systems needing a quirk is small. Do you > > think that would be the case? > > I don't know. I confess that I don't clearly understand the problem > yet. It sounds like the sensor drivers want to talk to hardware that > ACPI methods might also use. Exactly. > But I missed the details, such as the specific devices in question, > which ports they use, how they are described in ACPI, which AML > methods use those ports, and which non-ACPI drivers also use them. The original report was about the temperature sensors of K8 cpus. It happens that ACPI reads the sensors while the linux driver is using it and gets garbage (and shut down the system). The problem is more generic though, and applies to all hardware monitoring chips for which a driver exists. > It also sounds like the non-ACPI drivers provide much more > functionality than ACPI exposes. I'd like to understand this, > too, because an obvious way to solve the problem would be to > drop the non-ACPI drivers. Problem is that ACPI may access the sensors anyway (e.g. via SMM). > Is this extra functionality available > on Windows? If so, do we know whether Windows uses non-ACPI drivers > or whether they have some smarter way to use ACPI? Usually ACPI exposes 1 or 2 temperature readings (CPU and motherboard), while the hw driver can also provide fans and voltages measurements. Vendors usually provides a monitoring utility for Win that also exposes these information. It's not known whether there's a way to avoid conflicting accesses between ACPI and the raw driver; it's possible that it's vendor-specific and not documented. Luca