Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1340192

RE: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers

From Gabriele Paoloni <gabriele.paoloni@huawei.com>
Newsgroups linux.kernel
Subject RE: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers
Date 2016-02-23 03:50 +0100
Message-ID <r5bcZ-7aX-7@gated-at.bofh.it> (permalink)
References (1 earlier) <r0kqD-7hS-39@gated-at.bofh.it> <r0ld0-7On-11@gated-at.bofh.it> <r0zJ0-vX-1@gated-at.bofh.it> <r0AYp-1sa-5@gated-at.bofh.it> <r0EfE-3qm-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Mark

> -----Original Message-----
> From: Gabriele Paoloni
> Sent: 10 February 2016 22:45
> To: Mark Rutland
> Cc: Guohanjun (Hanjun Guo); Wangzhou (B); liudongdong (C); Linuxarm;
> qiujiang; bhelgaas@google.com; arnd@arndb.de; Lorenzo.Pieralisi@arm.com;
> tn@semihalf.com; linux-pci@vger.kernel.org; linux-
> kernel@vger.kernel.org; xuwei (O); linux-acpi@vger.kernel.org;
> jcm@redhat.com; zhangjukuo; Liguozhu (Kenneth); linux-arm-
> kernel@lists.infradead.org
> Subject: RE: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for
> HiSilicon SoCs Host Controllers
> 
> > -----Original Message-----
> > From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-
> > owner@vger.kernel.org] On Behalf Of Mark Rutland
> > Sent: 10 February 2016 11:13
> > To: Gabriele Paoloni
> > Cc: Guohanjun (Hanjun Guo); Wangzhou (B); liudongdong (C); Linuxarm;
> > qiujiang; bhelgaas@google.com; arnd@arndb.de;
> > Lorenzo.Pieralisi@arm.com; tn@semihalf.com; linux-pci@vger.kernel.org;
> > linux-kernel@vger.kernel.org; xuwei (O); linux-acpi@vger.kernel.org;
> > jcm@redhat.com; zhangjukuo; Liguozhu (Kenneth); linux-arm-
> > kernel@lists.infradead.org
> > Subject: Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for
> > HiSilicon SoCs Host Controllers
> >
> > On Wed, Feb 10, 2016 at 09:52:36AM +0000, Gabriele Paoloni wrote:
> > > Hi Mark
> > >
> > > > On Tue, Feb 09, 2016 at 05:34:20PM +0000, Gabriele Paoloni wrote:
> > > > > From: gabriele paoloni <gabriele.paoloni@huawei.com>
> > > > > +/*
> > > > > + * Retrieve rc_dbi base and size from _DSD
> > > > > + * Name (_DSD, Package () {
> > > > > + *	ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
> > > > > + *	Package () {
> > > > > + *	Package () {"rc-dbi", Package () { 0x0, 0xb0080000, 0x0,
> > 0x10000
> > > > }},
> > > > > + *	}
> > > > > + *	})
> > > > > + */
> > > >
> > > > As above, this does not look right. ACPI has standard mechanisms
> > for
> > > > describing addresses. Making something up like this is not a good
> > idea.
> > >
> > > I am quite new to ACPI, may I ask you to explain a bit?
> >
> > ACPI has standard mechanisms for describing certain resources, and
> > these
> > should not be described in _DSD. Memory or IO address regions are
> such
> > resources (in _CRS, IIRC), and should not be described in _DSD.
> 
> Hi Mark,
> 
> In my case I think in need to look into the MCFG object as the problem
> I have is RC using a different range than the rest of the hierarchy.
> 
> I'll investigate this and try to come with a solution in v4

I have looked into this and in our case we cannot use the
standard MCFG object to pass the RC config space addresses.

The reason is that in our HW we have the config base addresses of the 
root complex ports that are less than 0x100000 byte distant one from
the other as we only map the first 0x10000 bytes.

Now the MCFG acpi framework always fix the MCFG resource size to 0x100000
for each bus; therefore if we pass our RC addresses through MCFG we end
up with a resource conflict.

To give you a practical example we are in a situation where we have:

port0: [0x00000000b0080000 - 0x00000000b0080000 + 0x10000]
port1: [0x00000000b0090000 - 0x00000000b0090000 + 0x10000]
port2: [0x00000000b00A0000 - 0x00000000b00A0000 + 0x10000]
port3: [0x00000000b00B0000 - 0x00000000b00B0000 + 0x10000]
  
So if we pass the base addresses through MCFG the resources
will overlap as MCFG will consider 0x100000 size for each base
address of the root complex (only the RC bus uses that address)

So far I do not see many option other than using _DSD to pass
these RC config base addresses.

Thanks and Regards

Gab 

> 
> Many Thanks
> 
> Gab
> 
> >
> > Thanks,
> > Mark.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2016-02-09 18:40 +0100
  Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Mark Rutland <mark.rutland@arm.com> - 2016-02-09 19:30 +0100
    RE: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2016-02-10 11:00 +0100
      Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Mark Rutland <mark.rutland@arm.com> - 2016-02-10 12:20 +0100
        RE: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2016-02-10 15:50 +0100
          RE: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2016-02-23 03:50 +0100
            Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Bjorn Helgaas <helgaas@kernel.org> - 2016-02-24 02:20 +0100
              RE: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2016-02-24 07:50 +0100
                Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Bjorn Helgaas <helgaas@kernel.org> - 2016-02-24 16:30 +0100
                RE: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2016-02-25 04:10 +0100
                Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-02-25 13:10 +0100
                Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Bjorn Helgaas <helgaas@kernel.org> - 2016-02-25 21:00 +0100
                Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-02-25 22:30 +0100
                Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Bjorn Helgaas <helgaas@kernel.org> - 2016-03-02 15:40 +0100
                RE: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2016-02-27 10:10 +0100
                Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-02-29 12:40 +0100
                RE: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2016-03-03 15:30 +0100
                Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-03-01 20:30 +0100
                Re: [RFC PATCH v3 3/3] PCI/ACPI: hisi: Add ACPI support for  HiSilicon SoCs Host Controllers Bjorn Helgaas <helgaas@kernel.org> - 2016-03-02 17:00 +0100

csiph-web