All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Shevchenko, Andriy" <andriy.shevchenko@intel.com>
To: "Zha, Qipeng" <qipeng.zha@intel.com>,
	"dvhart@infradead.org" <dvhart@infradead.org>
Cc: "Xue, Gavin" <gavin.xue@intel.com>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>,
	"rjw@rjwysocki.net" <rjw@rjwysocki.net>,
	"Westerberg, Mika" <mika.westerberg@intel.com>
Subject: Re: [PATCH v7] platform:x86: add Intel P-Unit mailbox IPC driver
Date: Tue, 27 Oct 2015 12:30:31 +0000	[thread overview]
Message-ID: <1445949030.6332.26.camel@intel.com> (raw)
In-Reply-To: <C6287702A945AC47BE5DB5DFD4B5C6DD0381485F@SHSMSX104.ccr.corp.intel.com>

On Mon, 2015-10-26 at 08:51 +0000, Zha, Qipeng wrote:
> > So the ASL you provided was not what the Linux kernel is seeing,
> > correct?
> 
> > Can you please provide a DSDT disassembly from the running Linux
> > system please, such as:
> 
> > # cp /sys/firmware/acpi/tables/DSDT DSDT.dat # iasl -d DSDT.dat
> 
> > Then find this device in DSDT.dsl and paste it here please.
> 
> Sorry for late feedback,  got dsdt from lab machine since my board
> got broken,
> Please check.
> 
> Scope (\_SB)
>         {
>             Device (IPC1)
>             {
>                 Name (_ADR, Zero)  // _ADR: Address
>                 Name (_HID, "INT34D2")  // _HID: Hardware ID
>                 Name (_CID, "INT34D2")  // _CID: Compatible ID
>                 Name (_DDN, "Intel(R) IPCI controller ")  // _DDN:
> DOS Device Name
>                 Name (_UID, One)  // _UID: Unique ID
>                 Name (RBUF, ResourceTemplate ()
>                 {
>                     Memory32Fixed (ReadWrite,
>                         0x00000000,         // Address Base
>                         0x00002000,         // Address Length
>                         _Y08)
>                     Memory32Fixed (ReadWrite,
>                         0x00000000,         // Address Base
>                         0x00000004,         // Address Length
>                         _Y09)
>                     Memory32Fixed (ReadWrite,
>                         0x00000000,         // Address Base
>                         0x00000040,         // Address Length
>                         _Y0A)
>                     IO (Decode16,
>                         0x0400,             // Range Minimum
>                         0x0480,             // Range Maximum
>                         0x04,               // Alignment
>                         0x80,               // Length
>                         )
>                     Memory32Fixed (ReadWrite,
>                         0x00000000,         // Address Base
>                         0x00002000,         // Address Length
>                         _Y0B)
>                     Interrupt (ResourceConsumer, Level, ActiveLow,
> Exclusive, ,, )
>                     {
>                         0x00000028,
>                     }
>                 })
>                 Method (_CRS, 0, NotSerialized)  // _CRS: Current
> Resource Settings
>                 {
>                     CreateDWordField (RBUF, \_SB.IPC1._Y08._BAS,
> B0BA)  // _BAS: Base Address
>                     CreateDWordField (RBUF, \_SB.IPC1._Y08._LEN,
> B0LN)  // _LEN: Length
>                     Store (DD1A, B0BA)
>                     Store (DD1L, B0LN)

dd1a, dd1l has been stored to Resource 0

>                     CreateDWordField (RBUF, \_SB.IPC1._Y09._BAS,
> BM01)  // _BAS: Base Address
>                     CreateDWordField (RBUF, \_SB.IPC1._Y09._LEN,
> BML1)  // _LEN: Length
>                     CreateDWordField (RBUF, \_SB.IPC1._Y0A._BAS,
> BM02)  // _BAS: Base Address
>                     CreateDWordField (RBUF, \_SB.IPC1._Y0A._LEN,
> BML2)  // _LEN: Length
>                     Store (BMDA, BM01)
>                     Store (0x04, BML1)
>                     Store (BMIA, BM02)
>                     Store (0x40, BML2)

bmda, 0x04 -> Resource 1
bmia, 0x40 -> Resource 2

>                     CreateDWordField (RBUF, \_SB.IPC1._Y0B._BAS,
> B1BA)  // _BAS: Base Address
>                     CreateDWordField (RBUF, \_SB.IPC1._Y0B._LEN,
> B1LN)  // _LEN: Length
>                     Store (DD3A, B1BA)
>                     Store (DD3L, B1LN)

dd3a, dd3l -> Resource 3


Can you create a temporary method in the ->probe() of this driver to
iterate over resources and print them out? Or tell the values BIOS set
per values dd1a, dd1l, dd3a, dd3l, bmda, bmia.

AFAIU you are using only resources 0 and 1. Can you put here small
description of what each resource is meant for? (I guess couple of them
to P-Unit, and couple related to what you are trying to get, right?)

Also, it's not clear the purpose of IO resource. What is for?

>                     Return (RBUF)
>                 }
> 
>                 Method (_STA, 0, NotSerialized)  // _STA: Status
>                 {
>                     Return (0x0F)
>                 }

-- 
Andy Shevchenko <andriy.shevchenko@intel.com>
Intel Finland Oy
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

  reply	other threads:[~2015-10-27 12:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-09  8:49 [PATCH v7] platform:x86: add Intel P-Unit mailbox IPC driver Qipeng Zha
2015-10-09 13:33 ` Shevchenko, Andriy
2015-10-10  3:07   ` Zha, Qipeng
2015-10-15  5:16     ` Darren Hart
2015-10-21 12:51       ` Darren Hart
2015-10-22  1:01         ` Zha, Qipeng
2015-10-22  8:04           ` Darren Hart
2015-10-22  8:35             ` Shevchenko, Andriy
2015-10-22 15:18             ` Zha, Qipeng
2015-10-22 15:43               ` Darren Hart
2015-10-24 13:35                 ` Rafael J. Wysocki
2015-10-26  8:51                 ` Zha, Qipeng
2015-10-27 12:30                   ` Shevchenko, Andriy [this message]
2015-10-28  1:27                     ` Darren Hart
2015-10-30  6:11                       ` Zha, Qipeng
2015-10-30  9:56                         ` Shevchenko, Andriy
2015-10-15 10:35     ` Shevchenko, Andriy
2015-10-15 10:39       ` Shevchenko, Andriy
2015-10-15 15:29         ` Darren Hart
2015-10-15 15:36           ` Shevchenko, Andriy

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=1445949030.6332.26.camel@intel.com \
    --to=andriy.shevchenko@intel.com \
    --cc=dvhart@infradead.org \
    --cc=gavin.xue@intel.com \
    --cc=mika.westerberg@intel.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=qipeng.zha@intel.com \
    --cc=rjw@rjwysocki.net \
    /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.