* [Qemu-devel] [PATCH V2] hw/pcie-pci-bridge: restrict to X86 and ARM
@ 2017-11-09 12:43 Marcel Apfelbaum
2017-11-09 12:46 ` Thomas Huth
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Apfelbaum @ 2017-11-09 12:43 UTC (permalink / raw)
To: qemu-devel; +Cc: marcel, mst, thuth, zuban32s, cohuck
The PCIE-PCI bridge is specific to "pure" PCIe systems
(on QEMU we have X86 and ARM), it does not make sense to
have if in other archs.
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
---
V1 -> V2:
Addressed Thomas and Cornelia comments:
- Conditioned the pcie-pci-bridge compilation on
the PCIe Root CONFIG_PCIE_PORT
- Tweaked subject PCI -> PCIe
Thanks,
Marcel
hw/pci-bridge/Makefile.objs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/pci-bridge/Makefile.objs b/hw/pci-bridge/Makefile.objs
index 666db37da2..83539f02e5 100644
--- a/hw/pci-bridge/Makefile.objs
+++ b/hw/pci-bridge/Makefile.objs
@@ -1,8 +1,10 @@
-common-obj-y += pci_bridge_dev.o pcie_pci_bridge.o
+common-obj-y += pci_bridge_dev.o
common-obj-$(CONFIG_PCIE_PORT) += pcie_root_port.o gen_pcie_root_port.o
common-obj-$(CONFIG_PXB) += pci_expander_bridge.o
+common-obj-$(CONFIG_PCIE_PCI_BRIDGE) += pcie_pci_bridge.o
common-obj-$(CONFIG_XIO3130) += xio3130_upstream.o xio3130_downstream.o
common-obj-$(CONFIG_IOH3420) += ioh3420.o
common-obj-$(CONFIG_I82801B11) += i82801b11.o
# NewWorld PowerMac
common-obj-$(CONFIG_DEC_PCI) += dec.o
+CONFIG_PCIE_PCI_BRIDGE=$(CONFIG_PCIE_PORT)
--
2.13.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH V2] hw/pcie-pci-bridge: restrict to X86 and ARM
2017-11-09 12:43 [Qemu-devel] [PATCH V2] hw/pcie-pci-bridge: restrict to X86 and ARM Marcel Apfelbaum
@ 2017-11-09 12:46 ` Thomas Huth
2017-11-09 12:47 ` Marcel Apfelbaum
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2017-11-09 12:46 UTC (permalink / raw)
To: Marcel Apfelbaum, qemu-devel; +Cc: mst, zuban32s, cohuck
On 09.11.2017 13:43, Marcel Apfelbaum wrote:
> The PCIE-PCI bridge is specific to "pure" PCIe systems
> (on QEMU we have X86 and ARM), it does not make sense to
> have if in other archs.
>
> Reported-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
> ---
>
> V1 -> V2:
> Addressed Thomas and Cornelia comments:
> - Conditioned the pcie-pci-bridge compilation on
> the PCIe Root CONFIG_PCIE_PORT
> - Tweaked subject PCI -> PCIe
>
> Thanks,
> Marcel
>
> hw/pci-bridge/Makefile.objs | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/hw/pci-bridge/Makefile.objs b/hw/pci-bridge/Makefile.objs
> index 666db37da2..83539f02e5 100644
> --- a/hw/pci-bridge/Makefile.objs
> +++ b/hw/pci-bridge/Makefile.objs
> @@ -1,8 +1,10 @@
> -common-obj-y += pci_bridge_dev.o pcie_pci_bridge.o
> +common-obj-y += pci_bridge_dev.o
> common-obj-$(CONFIG_PCIE_PORT) += pcie_root_port.o gen_pcie_root_port.o
> common-obj-$(CONFIG_PXB) += pci_expander_bridge.o
> +common-obj-$(CONFIG_PCIE_PCI_BRIDGE) += pcie_pci_bridge.o
> common-obj-$(CONFIG_XIO3130) += xio3130_upstream.o xio3130_downstream.o
> common-obj-$(CONFIG_IOH3420) += ioh3420.o
> common-obj-$(CONFIG_I82801B11) += i82801b11.o
> # NewWorld PowerMac
> common-obj-$(CONFIG_DEC_PCI) += dec.o
> +CONFIG_PCIE_PCI_BRIDGE=$(CONFIG_PCIE_PORT)
Shouldn't that last line rather go into default-configs/pci.mak instead?
AFAIK we normally don't do "^CONFIG_xxx=" in normal Makefiles ... ?
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH V2] hw/pcie-pci-bridge: restrict to X86 and ARM
2017-11-09 12:46 ` Thomas Huth
@ 2017-11-09 12:47 ` Marcel Apfelbaum
0 siblings, 0 replies; 3+ messages in thread
From: Marcel Apfelbaum @ 2017-11-09 12:47 UTC (permalink / raw)
To: Thomas Huth, qemu-devel; +Cc: mst, zuban32s, cohuck
On 09/11/2017 14:46, Thomas Huth wrote:
> On 09.11.2017 13:43, Marcel Apfelbaum wrote:
>> The PCIE-PCI bridge is specific to "pure" PCIe systems
>> (on QEMU we have X86 and ARM), it does not make sense to
>> have if in other archs.
>>
>> Reported-by: Thomas Huth <thuth@redhat.com>
>> Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
>> ---
>>
>> V1 -> V2:
>> Addressed Thomas and Cornelia comments:
>> - Conditioned the pcie-pci-bridge compilation on
>> the PCIe Root CONFIG_PCIE_PORT
>> - Tweaked subject PCI -> PCIe
>>
>> Thanks,
>> Marcel
>>
>> hw/pci-bridge/Makefile.objs | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/hw/pci-bridge/Makefile.objs b/hw/pci-bridge/Makefile.objs
>> index 666db37da2..83539f02e5 100644
>> --- a/hw/pci-bridge/Makefile.objs
>> +++ b/hw/pci-bridge/Makefile.objs
>> @@ -1,8 +1,10 @@
>> -common-obj-y += pci_bridge_dev.o pcie_pci_bridge.o
>> +common-obj-y += pci_bridge_dev.o
>> common-obj-$(CONFIG_PCIE_PORT) += pcie_root_port.o gen_pcie_root_port.o
>> common-obj-$(CONFIG_PXB) += pci_expander_bridge.o
>> +common-obj-$(CONFIG_PCIE_PCI_BRIDGE) += pcie_pci_bridge.o
>> common-obj-$(CONFIG_XIO3130) += xio3130_upstream.o xio3130_downstream.o
>> common-obj-$(CONFIG_IOH3420) += ioh3420.o
>> common-obj-$(CONFIG_I82801B11) += i82801b11.o
>> # NewWorld PowerMac
>> common-obj-$(CONFIG_DEC_PCI) += dec.o
>> +CONFIG_PCIE_PCI_BRIDGE=$(CONFIG_PCIE_PORT)
>
> Shouldn't that last line rather go into default-configs/pci.mak instead?
> AFAIK we normally don't do "^CONFIG_xxx=" in normal Makefiles ... ?
I was looking for that file... thanks!
Marcel
>
> Thomas
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-09 12:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-09 12:43 [Qemu-devel] [PATCH V2] hw/pcie-pci-bridge: restrict to X86 and ARM Marcel Apfelbaum
2017-11-09 12:46 ` Thomas Huth
2017-11-09 12:47 ` Marcel Apfelbaum
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.