All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: qemu-devel@nongnu.org
Cc: Anthony Liguori <aliguori@us.ibm.com>,
	Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH 27/30] unin_pci: remove phantom qdev devices in unin_pci
Date: Sun, 08 Jan 2012 03:04:22 +0100	[thread overview]
Message-ID: <4F08F9A6.6040602@suse.de> (raw)
In-Reply-To: <1325551939-24749-28-git-send-email-aliguori@us.ibm.com>

Am 03.01.2012 01:52, schrieb Anthony Liguori:
> Same problem as with grackle.  This code can't possibly work.

For the record, this comment was not updated for v2: It does work.

The name conflict needs to be resolved, e.g., by adding -pcihost to the
SysBus device names.

Andreas

> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
> ---
>  hw/unin_pci.c |   77 ---------------------------------------------------------
>  1 files changed, 0 insertions(+), 77 deletions(-)
> 
> diff --git a/hw/unin_pci.c b/hw/unin_pci.c
> index 14d9914..b3365fe 100644
> --- a/hw/unin_pci.c
> +++ b/hw/unin_pci.c
> @@ -301,93 +301,16 @@ PCIBus *pci_pmac_u3_init(qemu_irq *pic,
>      return d->host_state.bus;
>  }
>  
> -static int unin_main_pci_host_init(PCIDevice *d)
> -{
> -    d->config[0x0C] = 0x08; // cache_line_size
> -    d->config[0x0D] = 0x10; // latency_timer
> -    d->config[0x34] = 0x00; // capabilities_pointer
> -    return 0;
> -}
> -
> -static int unin_agp_pci_host_init(PCIDevice *d)
> -{
> -    d->config[0x0C] = 0x08; // cache_line_size
> -    d->config[0x0D] = 0x10; // latency_timer
> -    //    d->config[0x34] = 0x80; // capabilities_pointer
> -    return 0;
> -}
> -
> -static int u3_agp_pci_host_init(PCIDevice *d)
> -{
> -    /* cache line size */
> -    d->config[0x0C] = 0x08;
> -    /* latency timer */
> -    d->config[0x0D] = 0x10;
> -    return 0;
> -}
> -
> -static int unin_internal_pci_host_init(PCIDevice *d)
> -{
> -    d->config[0x0C] = 0x08; // cache_line_size
> -    d->config[0x0D] = 0x10; // latency_timer
> -    d->config[0x34] = 0x00; // capabilities_pointer
> -    return 0;
> -}
> -
> -static PCIDeviceInfo unin_main_pci_host_info = {
> -    .qdev.name = "uni-north",
> -    .qdev.size = sizeof(PCIDevice),
> -    .init      = unin_main_pci_host_init,
> -    .vendor_id = PCI_VENDOR_ID_APPLE,
> -    .device_id = PCI_DEVICE_ID_APPLE_UNI_N_PCI,
> -    .revision  = 0x00,
> -    .class_id  = PCI_CLASS_BRIDGE_HOST,
> -};
> -
> -static PCIDeviceInfo u3_agp_pci_host_info = {
> -    .qdev.name = "u3-agp",
> -    .qdev.size = sizeof(PCIDevice),
> -    .init      = u3_agp_pci_host_init,
> -    .vendor_id = PCI_VENDOR_ID_APPLE,
> -    .device_id = PCI_DEVICE_ID_APPLE_U3_AGP,
> -    .revision  = 0x00,
> -    .class_id  = PCI_CLASS_BRIDGE_HOST,
> -};
> -
> -static PCIDeviceInfo unin_agp_pci_host_info = {
> -    .qdev.name = "uni-north-agp",
> -    .qdev.size = sizeof(PCIDevice),
> -    .init      = unin_agp_pci_host_init,
> -    .vendor_id = PCI_VENDOR_ID_APPLE,
> -    .device_id = PCI_DEVICE_ID_APPLE_UNI_N_AGP,
> -    .revision  = 0x00,
> -    .class_id  = PCI_CLASS_BRIDGE_HOST,
> -};
> -
> -static PCIDeviceInfo unin_internal_pci_host_info = {
> -    .qdev.name = "uni-north-pci",
> -    .qdev.size = sizeof(PCIDevice),
> -    .init      = unin_internal_pci_host_init,
> -    .vendor_id = PCI_VENDOR_ID_APPLE,
> -    .device_id = PCI_DEVICE_ID_APPLE_UNI_N_I_PCI,
> -    .revision  = 0x00,
> -    .class_id  = PCI_CLASS_BRIDGE_HOST,
> -};
> -
>  static void unin_register_devices(void)
>  {
>      sysbus_register_dev("uni-north", sizeof(UNINState),
>                          pci_unin_main_init_device);
> -    pci_qdev_register(&unin_main_pci_host_info);
>      sysbus_register_dev("u3-agp", sizeof(UNINState),
>                          pci_u3_agp_init_device);
> -    pci_qdev_register(&u3_agp_pci_host_info);
>      sysbus_register_dev("uni-north-agp", sizeof(UNINState),
>                          pci_unin_agp_init_device);
> -    pci_qdev_register(&unin_agp_pci_host_info);
>      sysbus_register_dev("uni-north-pci", sizeof(UNINState),
>                          pci_unin_internal_init_device);
> -    pci_qdev_register(&unin_internal_pci_host_info);
>  }
>  
>  device_init(unin_register_devices)

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

  reply	other threads:[~2012-01-08  2:05 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-03  0:51 [Qemu-devel] qom: add QEMU Object Model type hierarchy to qdev (v2) Anthony Liguori
2012-01-03  0:51 ` [Qemu-devel] [PATCH 01/30] macio: convert to qdev Anthony Liguori
2012-01-03  0:51 ` [Qemu-devel] [PATCH 02/30] openpic: remove dead code to make a PCI device version Anthony Liguori
2012-01-03  0:51 ` [Qemu-devel] [PATCH 03/30] ppc: remove ppc440 bamboo board support Anthony Liguori
2012-01-05 15:16   ` François Revol
2012-01-13 10:59   ` Benjamin Herrenschmidt
2012-01-13 11:04     ` Andreas Färber
2012-01-13 11:45       ` Paolo Bonzini
2012-01-13 12:30         ` Alexander Graf
2012-01-13 14:24           ` Andreas Färber
2012-01-13 14:29             ` Alexander Graf
2012-01-03  0:51 ` [Qemu-devel] [PATCH 04/30] ppc_prep: convert host bridge to qdev Anthony Liguori
2012-01-03 14:57   ` Andreas Färber
2012-01-07  0:11     ` Andreas Färber
2012-01-03  0:51 ` [Qemu-devel] [PATCH 05/30] pseries: Remove hcalls callback Anthony Liguori
2012-01-03  0:51 ` [Qemu-devel] [PATCH 06/30] pci: call reset unconditionally Anthony Liguori
2012-01-03  0:51 ` [Qemu-devel] [PATCH 07/30] qom: add the base Object class (v2) Anthony Liguori
2012-01-03  9:02   ` Paolo Bonzini
2012-01-03  0:51 ` [Qemu-devel] [PATCH 08/30] qdev: integrate with QEMU Object Model (v2) Anthony Liguori
2012-01-03  0:51 ` [Qemu-devel] [PATCH 09/30] qdev: move qdev->info to class Anthony Liguori
2012-01-08  2:27   ` Andreas Färber
2012-01-03  0:51 ` [Qemu-devel] [PATCH 10/30] qdev: don't access name through info Anthony Liguori
2012-01-03  9:06   ` Paolo Bonzini
2012-01-03 13:39     ` Anthony Liguori
2012-01-03 13:41       ` Paolo Bonzini
2012-01-03  0:52 ` [Qemu-devel] [PATCH 11/30] qdev: use a wrapper to access reset and promote reset to a class method Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 12/30] qdev: add a interface to register subclasses Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 13/30] qdev: add class_init to DeviceInfo Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 14/30] qdev: prepare source tree for code conversion Anthony Liguori
2012-01-04 14:07   ` Andreas Färber
2012-01-04 14:24     ` Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 15/30] isa: convert to QEMU Object Model Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 16/30] usb: " Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 17/30] ccid: " Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 18/30] ssi: " Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 19/30] i2c: rename i2c_slave -> I2CSlave Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 20/30] i2c: smbus: convert to QEMU Object Model Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 21/30] hda-codec: " Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 22/30] ide: " Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 23/30] scsi: " Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 24/30] spapr: convert to QEMU Object Model (v2) Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 25/30] virtio-serial: convert to QEMU Object Model Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 26/30] grackle: remove broken pci device Anthony Liguori
2012-01-08  1:46   ` Aurelien Jarno
2012-01-08  1:55     ` Andreas Färber
2012-01-03  0:52 ` [Qemu-devel] [PATCH 27/30] unin_pci: remove phantom qdev devices in unin_pci Anthony Liguori
2012-01-08  2:04   ` Andreas Färber [this message]
2012-01-03  0:52 ` [Qemu-devel] [PATCH 28/30] pci: convert to QEMU Object Model Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 29/30] sysbus: " Anthony Liguori
2012-01-03  0:52 ` [Qemu-devel] [PATCH 30/30] virtio-s390: " Anthony Liguori

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=4F08F9A6.6040602@suse.de \
    --to=afaerber@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.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.