All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Yinghai Lu <yinghai@kernel.org>
Cc: Corey Minyard <minyard@acm.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Len Brown <len.brown@intel.com>, Myron Stowe <myron.stowe@hp.com>,
	openipmi-developer@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ipmi: Fix ACPI detecting with regspacing
Date: Mon, 26 Jul 2010 22:57:07 +0100	[thread overview]
Message-ID: <20100726215707.GA6007@srcf.ucam.org> (raw)
In-Reply-To: <4C4E0292.4010004@kernel.org>

On Mon, Jul 26, 2010 at 02:48:02PM -0700, Yinghai Lu wrote:
> 
> after the commint that change ipmi_si detecting sequence from SMBIOS/ACPI to ACPI/SMBIOS,
> 
> | commit 754d453185275951d39792865927ec494fa1ebd8
> | Author: Matthew Garrett <mjg@redhat.com>
> | Date:   Wed May 26 14:43:47 2010 -0700
> |
> |    ipmi: change device discovery order
> |
> |    The ipmi spec provides an ordering for si discovery.  Change the driver to
> |    match, with the exception of preferring smbios to SPMI as HPs (at least)
> |    contain accurate information in the former but not the latter.
> 
> ipmi_si can not be initialized.
> 
> [  138.799739] calling  init_ipmi_devintf+0x0/0x109 @ 1
> [  138.805050] ipmi device interface
> [  138.818131] initcall init_ipmi_devintf+0x0/0x109 returned 0 after 12797 usecs
> [  138.822998] calling  init_ipmi_si+0x0/0xa90 @ 1
> [  138.840276] IPMI System Interface driver.
> [  138.846137] ipmi_si: probing via ACPI
> [  138.849225] ipmi_si 00:09: [io  0x0ca2] regsize 1 spacing 1 irq 0
> [  138.864438] ipmi_si: Adding ACPI-specified kcs state machine
> [  138.870893] ipmi_si: probing via SMBIOS
> [  138.880945] ipmi_si: Adding SMBIOS-specified kcs state machineipmi_si: duplicate interface
> [  138.896511] ipmi_si: probing via SPMI
> [  138.899861] ipmi_si: Adding SPMI-specified kcs state machineipmi_si: duplicate interface
> [  138.917095] ipmi_si: Trying ACPI-specified kcs state machine at i/o address 0xca2, slave address 0x0, irq 0
> [  138.928658] ipmi_si: Interface detection failed
> [  138.953411] initcall init_ipmi_si+0x0/0xa90 returned 0 after 110847 usecs
> 
> in smbios has
> DMI/SMBIOS
> Handle 0x00C5, DMI type 38, 18 bytes
> IPMI Device Information
>         Interface Type: KCS (Keyboard Control Style)
>         Specification Version: 2.0
>         I2C Slave Address: 0x00
>         NV Storage Device: Not Present
>         Base Address: 0x0000000000000CA2 (I/O)
>         Register Spacing: 32-bit Boundaries
> in DSDT has
>                     Device (BMC)
>                     {
> 
>                         Name (_HID, EisaId ("IPI0001"))
>                         Method (_STA, 0, NotSerialized)
>                         {
>                             If (LEqual (OSN, Zero))
>                             {
>                                 Return (Zero)
>                             }
> 
>                             Return (0x0F)
>                         }
> 
>                         Name (_STR, Unicode ("IPMI_KCS"))
>                         Name (_UID, Zero)
>                         Name (_CRS, ResourceTemplate ()
>                         {
>                             IO (Decode16,
>                                 0x0CA2,             // Range Minimum
>                                 0x0CA2,             // Range Maximum
>                                 0x00,               // Alignment
>                                 0x01,               // Length
>                                 )
>                             IO (Decode16,
>                                 0x0CA6,             // Range Minimum
>                                 0x0CA6,             // Range Maximum
>                                 0x00,               // Alignment
>                                 0x01,               // Length
>                                 )
>                         })
>                         Method (_IFT, 0, NotSerialized)
>                         {
>                             Return (One)
>                         }
> 
>                         Method (_SRV, 0, NotSerialized)
>                         {
>                             Return (0x0200)
>                         }
>                     }
> so the reg spacing should be 4 instead of 1.
> 
> Try to calculate regspacing for this kind of system.
> 
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>

Acked-by: Matthew Garrett <mjg@redhat.com>

-- 
Matthew Garrett | mjg59@srcf.ucam.org

  reply	other threads:[~2010-07-26 21:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 21:48 [PATCH] ipmi: Fix ACPI detecting with regspacing Yinghai Lu
2010-07-26 21:57 ` Matthew Garrett [this message]
2010-07-27 15:34 ` Bjorn Helgaas
2010-07-27 17:07   ` Yinghai Lu
2010-07-27 17:23     ` Bjorn Helgaas
2010-07-27 17:28       ` Yinghai Lu
2010-07-27 17:41         ` Bjorn Helgaas
2010-07-28 19:22           ` Andrew Morton
2010-07-28 19:31             ` Yinghai Lu

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=20100726215707.GA6007@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=akpm@linux-foundation.org \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minyard@acm.org \
    --cc=myron.stowe@hp.com \
    --cc=openipmi-developer@lists.sourceforge.net \
    --cc=yinghai@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.