Re: [Xen-devel] [RFC PATCH 10/12] libacpi: build ACPI MCFG table if requested

2018-05-29 Thread Alexey G
On Tue, 29 May 2018 08:36:49 -0600 "Jan Beulich" wrote: On 12.03.18 at 19:33, wrote: >> --- a/tools/libacpi/acpi2_0.h >> +++ b/tools/libacpi/acpi2_0.h >> @@ -422,6 +422,25 @@ struct acpi_20_slit { >> }; >> >> /* >> + * PCI Express Memory Mapped Configuration Description Table >> + */

Re: [Xen-devel] [RFC PATCH 10/12] libacpi: build ACPI MCFG table if requested

2018-05-29 Thread Jan Beulich
>>> On 12.03.18 at 19:33, wrote: > --- a/tools/libacpi/acpi2_0.h > +++ b/tools/libacpi/acpi2_0.h > @@ -422,6 +422,25 @@ struct acpi_20_slit { > }; > > /* > + * PCI Express Memory Mapped Configuration Description Table > + */ > +struct mcfg_range_entry { > +uint64_t base_address; > +

Re: [Xen-devel] [RFC PATCH 10/12] libacpi: build ACPI MCFG table if requested

2018-03-20 Thread Alexey G
On Tue, 20 Mar 2018 09:03:56 + Roger Pau Monné wrote: >On Tue, Mar 20, 2018 at 07:46:04AM +1000, Alexey G wrote: >> On Mon, 19 Mar 2018 17:33:34 + >> Roger Pau Monné wrote: >> >> >On Tue, Mar 13, 2018 at 04:33:55AM +1000, Alexey Gerasimenko

Re: [Xen-devel] [RFC PATCH 10/12] libacpi: build ACPI MCFG table if requested

2018-03-20 Thread Roger Pau Monné
On Tue, Mar 20, 2018 at 07:46:04AM +1000, Alexey G wrote: > On Mon, 19 Mar 2018 17:33:34 + > Roger Pau Monné wrote: > > >On Tue, Mar 13, 2018 at 04:33:55AM +1000, Alexey Gerasimenko wrote: > >> This adds construct_mcfg() function to libacpi which allows to build > >>

Re: [Xen-devel] [RFC PATCH 10/12] libacpi: build ACPI MCFG table if requested

2018-03-19 Thread Alexey G
On Mon, 19 Mar 2018 17:33:34 + Roger Pau Monné wrote: >On Tue, Mar 13, 2018 at 04:33:55AM +1000, Alexey Gerasimenko wrote: >> This adds construct_mcfg() function to libacpi which allows to build >> MCFG table for a given mmconfig_addr/mmconfig_len pair if the >>

Re: [Xen-devel] [RFC PATCH 10/12] libacpi: build ACPI MCFG table if requested

2018-03-19 Thread Roger Pau Monné
On Tue, Mar 13, 2018 at 04:33:55AM +1000, Alexey Gerasimenko wrote: > This adds construct_mcfg() function to libacpi which allows to build MCFG > table for a given mmconfig_addr/mmconfig_len pair if the ACPI_HAS_MCFG > flag was specified in acpi_config struct. > > The maximum bus number is

[Xen-devel] [RFC PATCH 10/12] libacpi: build ACPI MCFG table if requested

2018-03-12 Thread Alexey Gerasimenko
This adds construct_mcfg() function to libacpi which allows to build MCFG table for a given mmconfig_addr/mmconfig_len pair if the ACPI_HAS_MCFG flag was specified in acpi_config struct. The maximum bus number is calculated from mmconfig_len using MCFG_SIZE_TO_NUM_BUSES macro (1MByte of MMIO