All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Blue Swirl <blauwirbel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: The OpenBIOS Mailinglist
	<openbios-WyKcznhUmzJg9hUCZPvPmw@public.gmane.org>,
	kevin-BG7uPxbsK//k1uMJSBkQmQ@public.gmane.org,
	qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org,
	kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [Qemu-devel] Re: [PATCHv8 00/16] boot order specification
Date: Sat, 11 Dec 2010 21:11:26 +0200	[thread overview]
Message-ID: <20101211191126.GA11897@redhat.com> (raw)
In-Reply-To: <AANLkTimsSBWPJZVJxRmHMv5oU9ma0R_wTroH-4+rTFho-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Sat, Dec 11, 2010 at 07:06:04PM +0000, Blue Swirl wrote:
> 2010/12/11 Gleb Natapov <gleb@redhat.com>:
> > On Sat, Dec 11, 2010 at 08:02:23PM +0200, Gleb Natapov wrote:
> >> On Sat, Dec 11, 2010 at 05:19:01PM +0000, Blue Swirl wrote:
> >> > >>                                                 What should we do with
> >> > >> ata-2@600 vs drive@1?
> >> > > There is no available IDE OF binding spec, so I when with the way
> >> > > OpenBIOS reports ata on qemu-x86. I have no idea what 600 in ata-2@600
> >> > > may mean, but looking at g3_beige_300.html there is no such node there
> >> > > and looking at any other device tree in http://penguinppc.org/historical/dev-trees-html/
> >> > > I haven't found one that use this kind of addressing for pci-ata.
> >> > > http://penguinppc.org/historical/dev-trees-html/g3bw_400.html for
> >> > > instance has pci@80000000/pci-bridge@d/pci-ata@1/ata-4. ata-2@600 kind of
> >> > > addressing is used by devices on mac-io bus which I do not think we
> >> > > emulate in qemu. So it looks like OpneBIOS is wrong here.
> >> >
> >> > We have PMAC IDE, but this device is CMD646, so mac-io bus addressing
> >> > rules should not be used.
> >> >
> >> So you agree that OpenBIOS is wrong here?
> >>
> >> > In this tree there are two disks connected to CMD646, named
> >> > /pci@80000000/pci-bridge@d/pci-ata@1/ata-4/disk and
> >> > /pci@80000000/pci-bridge@d/pci-ata@1/ata-4/disk@1:
> >> > http://penguinppc.org/historical/dev-trees-html/g4_pci_350.html
> >> You are saying that qemu creates paths like:
> >> /grackle@fec00000/ide@3/drive@1/disk@0
> >> /grackle@fec00000/ide@3/drive@1/disk@1
> >>
> >> I do not understand why qemu creates node drive@1. It should be drive@0
> >> according to the code. I'll look at why unit-address is incorrect for
> >> the node. But assuming that this problem is fixed then paths created by
> >> qemu is very similar to the paths in g4_pci_350.html. It looks like in
> >> g4_pci_350.html they omit unit address if it is zero.
> >>
> > Ah the problem is that we have not qdevified mac io bus. Since first to
> > ide disks are automatically attached to mac-io bus device paths for them
> > are incorrect. Next two ide devices will be attached to CMD646 and qemu
> > will generate correct device paths for them:
> >
> > qemu-system-ppc -drive if=none,id=hda,file=/dev/null -device ide-drive,drive=hda,bootindex=1
> > -drive if=none,id=cd,file=/dev/null -device ide-drive,drive=cd,bootindex=0 -nographic -drive
> > if=none,id=hdb,file=/dev/null -device ide-drive,drive=hdb,bus=ide.0,bootindex=2 -drive
> > if=none,id=hdc,file=/dev/null -device ide-drive,drive=hdc,bus=ide.0,bootindex=3
> > adding '/grackle@fec00000/ide@3/drive@1/disk@1' at index 0
> > adding '/grackle@fec00000/ide@3/drive@1/disk@0' at index 1
> > adding '/grackle@fec00000/ide@3/drive@0/disk@0' at index 2
> > adding '/grackle@fec00000/ide@3/drive@0/disk@1' at index 3
> 
> But why is the path almost the same as CMD646, shouldn't 'ide@3' be
> different since the PCI device is not the same?
>
It should, but since the mac io is not qdevified there is no qdev pci
device for it.
 
> > So the fix is to qdevify mac io bus.
> 
> OK.

--
			Gleb.

-- 
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you

WARNING: multiple messages have this Message-ID (diff)
From: Gleb Natapov <gleb@redhat.com>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: The OpenBIOS Mailinglist <openbios@openbios.org>,
	kevin@koconnor.net, qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] Re: [PATCHv8 00/16] boot order specification
Date: Sat, 11 Dec 2010 21:11:26 +0200	[thread overview]
Message-ID: <20101211191126.GA11897@redhat.com> (raw)
In-Reply-To: <AANLkTimsSBWPJZVJxRmHMv5oU9ma0R_wTroH-4+rTFho@mail.gmail.com>

On Sat, Dec 11, 2010 at 07:06:04PM +0000, Blue Swirl wrote:
> 2010/12/11 Gleb Natapov <gleb@redhat.com>:
> > On Sat, Dec 11, 2010 at 08:02:23PM +0200, Gleb Natapov wrote:
> >> On Sat, Dec 11, 2010 at 05:19:01PM +0000, Blue Swirl wrote:
> >> > >>                                                 What should we do with
> >> > >> ata-2@600 vs drive@1?
> >> > > There is no available IDE OF binding spec, so I when with the way
> >> > > OpenBIOS reports ata on qemu-x86. I have no idea what 600 in ata-2@600
> >> > > may mean, but looking at g3_beige_300.html there is no such node there
> >> > > and looking at any other device tree in http://penguinppc.org/historical/dev-trees-html/
> >> > > I haven't found one that use this kind of addressing for pci-ata.
> >> > > http://penguinppc.org/historical/dev-trees-html/g3bw_400.html for
> >> > > instance has pci@80000000/pci-bridge@d/pci-ata@1/ata-4. ata-2@600 kind of
> >> > > addressing is used by devices on mac-io bus which I do not think we
> >> > > emulate in qemu. So it looks like OpneBIOS is wrong here.
> >> >
> >> > We have PMAC IDE, but this device is CMD646, so mac-io bus addressing
> >> > rules should not be used.
> >> >
> >> So you agree that OpenBIOS is wrong here?
> >>
> >> > In this tree there are two disks connected to CMD646, named
> >> > /pci@80000000/pci-bridge@d/pci-ata@1/ata-4/disk and
> >> > /pci@80000000/pci-bridge@d/pci-ata@1/ata-4/disk@1:
> >> > http://penguinppc.org/historical/dev-trees-html/g4_pci_350.html
> >> You are saying that qemu creates paths like:
> >> /grackle@fec00000/ide@3/drive@1/disk@0
> >> /grackle@fec00000/ide@3/drive@1/disk@1
> >>
> >> I do not understand why qemu creates node drive@1. It should be drive@0
> >> according to the code. I'll look at why unit-address is incorrect for
> >> the node. But assuming that this problem is fixed then paths created by
> >> qemu is very similar to the paths in g4_pci_350.html. It looks like in
> >> g4_pci_350.html they omit unit address if it is zero.
> >>
> > Ah the problem is that we have not qdevified mac io bus. Since first to
> > ide disks are automatically attached to mac-io bus device paths for them
> > are incorrect. Next two ide devices will be attached to CMD646 and qemu
> > will generate correct device paths for them:
> >
> > qemu-system-ppc -drive if=none,id=hda,file=/dev/null -device ide-drive,drive=hda,bootindex=1
> > -drive if=none,id=cd,file=/dev/null -device ide-drive,drive=cd,bootindex=0 -nographic -drive
> > if=none,id=hdb,file=/dev/null -device ide-drive,drive=hdb,bus=ide.0,bootindex=2 -drive
> > if=none,id=hdc,file=/dev/null -device ide-drive,drive=hdc,bus=ide.0,bootindex=3
> > adding '/grackle@fec00000/ide@3/drive@1/disk@1' at index 0
> > adding '/grackle@fec00000/ide@3/drive@1/disk@0' at index 1
> > adding '/grackle@fec00000/ide@3/drive@0/disk@0' at index 2
> > adding '/grackle@fec00000/ide@3/drive@0/disk@1' at index 3
> 
> But why is the path almost the same as CMD646, shouldn't 'ide@3' be
> different since the PCI device is not the same?
>
It should, but since the mac io is not qdevified there is no qdev pci
device for it.
 
> > So the fix is to qdevify mac io bus.
> 
> OK.

--
			Gleb.

  parent reply	other threads:[~2010-12-11 19:11 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-08 11:34 [PATCHv8 00/16] boot order specification Gleb Natapov
2010-12-08 11:34 ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:34 ` [PATCHv8 01/16] Introduce fw_name field to DeviceInfo structure Gleb Natapov
2010-12-08 11:34   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:34 ` [PATCHv8 02/16] Introduce new BusInfo callback get_fw_dev_path Gleb Natapov
2010-12-08 11:34   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:34 ` [PATCHv8 03/16] Keep track of ISA ports ISA device is using in qdev Gleb Natapov
2010-12-08 11:34   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:34 ` [PATCHv8 04/16] Add get_fw_dev_path callback to ISA bus " Gleb Natapov
2010-12-08 11:34   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:34 ` [PATCHv8 05/16] Store IDE bus id in IDEBus structure for easy access Gleb Natapov
2010-12-08 11:34   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:34 ` [PATCHv8 06/16] Add get_fw_dev_path callback to IDE bus Gleb Natapov
2010-12-08 11:34   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:35 ` [PATCHv8 07/16] Add get_fw_dev_path callback for system bus Gleb Natapov
2010-12-08 11:35   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:35 ` [PATCHv8 08/16] Add get_fw_dev_path callback for pci bus Gleb Natapov
2010-12-08 11:35   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:35 ` [PATCHv8 09/16] Record which USBDevice USBPort belongs too Gleb Natapov
2010-12-08 11:35   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:35 ` [PATCHv8 10/16] Add get_fw_dev_path callback for usb bus Gleb Natapov
2010-12-08 11:35   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:35 ` [PATCHv8 11/16] Add get_fw_dev_path callback to scsi bus Gleb Natapov
2010-12-08 11:35   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:35 ` [PATCHv8 12/16] Add bootindex parameter to net/block/fd device Gleb Natapov
2010-12-08 11:35   ` [Qemu-devel] " Gleb Natapov
2011-01-28 13:29   ` Markus Armbruster
2011-01-28 13:29     ` Markus Armbruster
2011-01-28 15:53     ` Gleb Natapov
2011-01-28 15:53       ` Gleb Natapov
2011-01-28 17:19       ` Markus Armbruster
2011-01-28 17:19         ` Markus Armbruster
2011-02-02 15:08   ` Markus Armbruster
2011-02-02 15:08     ` Markus Armbruster
2011-02-02 15:10     ` Gleb Natapov
2011-02-02 15:10       ` Gleb Natapov
2011-02-02 15:12       ` Gleb Natapov
2011-02-02 15:12         ` Gleb Natapov
2010-12-08 11:35 ` [PATCHv8 13/16] Change fw_cfg_add_file() to get full file path as a parameter Gleb Natapov
2010-12-08 11:35   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:35 ` [PATCHv8 14/16] Add bootindex for option roms Gleb Natapov
2010-12-08 11:35   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:35 ` [PATCHv8 15/16] Add notifier that will be called when machine is fully created Gleb Natapov
2010-12-08 11:35   ` [Qemu-devel] " Gleb Natapov
2010-12-08 11:35 ` [PATCHv8 16/16] Pass boot device list to firmware Gleb Natapov
2010-12-08 11:35   ` [Qemu-devel] " Gleb Natapov
2010-12-11 15:13 ` [PATCHv8 00/16] boot order specification Blue Swirl
2010-12-11 15:13   ` [Qemu-devel] " Blue Swirl
     [not found]   ` <AANLkTi=-uEELKjvUz5Uu2w3=dqUj+DXXpTmhsN5zB2-Z-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-11 16:06     ` Gleb Natapov
2010-12-11 16:06       ` [Qemu-devel] " Gleb Natapov
     [not found]       ` <20101211160617.GA9026-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-12-11 17:19         ` Blue Swirl
2010-12-11 17:19           ` [Qemu-devel] " Blue Swirl
     [not found]           ` <AANLkTimdaoU45HAcvyoSfN3HdvsC3wjCYWKAGpKD4PMr-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-11 18:02             ` Gleb Natapov
2010-12-11 18:02               ` [Qemu-devel] " Gleb Natapov
     [not found]               ` <20101211180223.GA7994-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-12-11 18:27                 ` Gleb Natapov
2010-12-11 18:27                   ` Gleb Natapov
     [not found]                   ` <20101211182752.GA11388-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-12-11 19:06                     ` Blue Swirl
2010-12-11 19:06                       ` Blue Swirl
     [not found]                       ` <AANLkTimsSBWPJZVJxRmHMv5oU9ma0R_wTroH-4+rTFho-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-11 19:11                         ` Gleb Natapov [this message]
2010-12-11 19:11                           ` Gleb Natapov
2010-12-11 23:27                           ` Benjamin Herrenschmidt
2010-12-11 23:27                             ` Benjamin Herrenschmidt
2010-12-11 18:59                 ` Blue Swirl
2010-12-11 18:59                   ` [Qemu-devel] " Blue Swirl
2010-12-11 23:22       ` Benjamin Herrenschmidt
2010-12-14 19:59         ` Andreas Färber
2010-12-14 19:59           ` Andreas Färber
2010-12-14 20:31           ` Benjamin Herrenschmidt
2010-12-14 20:31             ` Benjamin Herrenschmidt
2010-12-14 23:02             ` Alexander Graf
2010-12-14 23:02               ` [Qemu-devel] " Alexander Graf
2010-12-17 14:05               ` Andreas Färber
2010-12-17 14:05                 ` Andreas Färber
2010-12-11 22:10 ` Blue Swirl
2010-12-11 22:10   ` [Qemu-devel] " Blue Swirl

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=20101211191126.GA11897@redhat.com \
    --to=gleb-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=blauwirbel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=kevin-BG7uPxbsK//k1uMJSBkQmQ@public.gmane.org \
    --cc=kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=openbios-WyKcznhUmzJg9hUCZPvPmw@public.gmane.org \
    --cc=qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.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.