All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] Emaculation bug reports
       [not found]                     ` <56897639.9080500@ilande.co.uk>
@ 2016-01-03 20:59                       ` Programmingkid
  2016-01-04  3:18                         ` Programmingkid
  0 siblings, 1 reply; 3+ messages in thread
From: Programmingkid @ 2016-01-03 20:59 UTC (permalink / raw)
  To: Mark Cave-Ayland
  Cc: The OpenBIOS Mailinglist, qemu-ppc@nongnu.org list:PowerPC,
	qemu-devel qemu-devel


On Jan 3, 2016, at 2:27 PM, Mark Cave-Ayland wrote:

> On 03/01/16 19:01, Programmingkid wrote:
> 
>>>> The rtl8139 did not work on the mac99 target. I didn't see the timeout message.
>>>> I did use your rtl8139 patchset fix.
>>> 
>>> I think this might be because we're missing an interrupt mapping as they
>>> are currently hard-coded in OpenBIOS.
>>> 
>>> Quick hack alert: take a look at OpenBIOS's drivers/pci.c and in
>>> particular ob_pci_host_set_interrupt_map(). See how at the moment we
>>> patch in hard-coded interrupt-parent nodes to link each device node to
>>> the interrupt controller? Maybe try adding something like the following
>>> for the rtl8139 card:
>>> 
>>>       target_node = find_dev("/pci/pci10ec,8139");
>>>       set_int_property(target_node, "interrupt-parent", dnode);
>>> 
>>> Does that then get the rtl8139 card to work under -M mac99 correctly?
>> 
>> Sorry it doesn't. I paste your code right below the "if (dnode) {".
> 
> Ah well. Thought it was worth a quick shot.

I did find out that the driver's init() and start() methods are never called. Using the ioreg command I can see the rtl8139 in the PCI slot. The NIC does work in Linux using the mac99 target. Note: I implemented your second set of patches for the rtl8139 and the booting from cd patchset.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Emaculation bug reports
  2016-01-03 20:59                       ` [Qemu-devel] Emaculation bug reports Programmingkid
@ 2016-01-04  3:18                         ` Programmingkid
  2016-01-04 14:19                           ` [Qemu-devel] [OpenBIOS] " Mark Cave-Ayland
  0 siblings, 1 reply; 3+ messages in thread
From: Programmingkid @ 2016-01-04  3:18 UTC (permalink / raw)
  To: Mark Cave-Ayland, qemu-devel qemu-devel,
	The OpenBIOS Mailinglist, qemu-ppc@nongnu.org list:PowerPC


On Jan 3, 2016, at 3:59 PM, Programmingkid wrote:

> 
> On Jan 3, 2016, at 2:27 PM, Mark Cave-Ayland wrote:
> 
>> On 03/01/16 19:01, Programmingkid wrote:
>> 
>>>>> The rtl8139 did not work on the mac99 target. I didn't see the timeout message.
>>>>> I did use your rtl8139 patchset fix.
>>>> 
>>>> I think this might be because we're missing an interrupt mapping as they
>>>> are currently hard-coded in OpenBIOS.
>>>> 
>>>> Quick hack alert: take a look at OpenBIOS's drivers/pci.c and in
>>>> particular ob_pci_host_set_interrupt_map(). See how at the moment we
>>>> patch in hard-coded interrupt-parent nodes to link each device node to
>>>> the interrupt controller? Maybe try adding something like the following
>>>> for the rtl8139 card:
>>>> 
>>>>      target_node = find_dev("/pci/pci10ec,8139");
>>>>      set_int_property(target_node, "interrupt-parent", dnode);
>>>> 
>>>> Does that then get the rtl8139 card to work under -M mac99 correctly?
>>> 
>>> Sorry it doesn't. I paste your code right below the "if (dnode) {".
>> 
>> Ah well. Thought it was worth a quick shot.
> 
> I did find out that the driver's init() and start() methods are never called. Using the ioreg command I can see the rtl8139 in the PCI slot. The NIC does work in Linux using the mac99 target. Note: I implemented your second set of patches for the rtl8139 and the booting from cd patchset.

Also found out that the USB support in QEMU does not work when using the mac99 target with Mac OS 10.4.11. It does work on the g3beige target. I think there might be a problem with PCI. Both USB and the RTL8139 NIC are emulated PCI cards. So the question to answer is why do PCI cards fail to work.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [OpenBIOS] Emaculation bug reports
  2016-01-04  3:18                         ` Programmingkid
@ 2016-01-04 14:19                           ` Mark Cave-Ayland
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Cave-Ayland @ 2016-01-04 14:19 UTC (permalink / raw)
  To: Programmingkid, qemu-devel qemu-devel, The OpenBIOS Mailinglist,
	qemu-ppc@nongnu.org list:PowerPC

On 04/01/16 03:18, Programmingkid wrote:

>> I did find out that the driver's init() and start() methods are never called. Using the ioreg command I can see the rtl8139 in the PCI slot. The NIC does work in Linux using the mac99 target. Note: I implemented your second set of patches for the rtl8139 and the booting from cd patchset.
> 
> Also found out that the USB support in QEMU does not work when using the mac99 target with Mac OS 10.4.11. It does work on the g3beige target. I think there might be a problem with PCI. Both USB and the RTL8139 NIC are emulated PCI cards. So the question to answer is why do PCI cards fail to work.

Well I finally got around to installing Darwin 8.0.1 on both g3beige and
mac99 to test my patches, and the v2 patchset works fine for both here :)

There is some talk on the emaculation forums that the rtl8139 driver
worked fine for 10.4 vanilla but failed after a 10.4.11 upgrade, so
maybe something changed in a later version? Can you try debugging with
the latest v2 patchset applied OpenBIOS to try and work out what is
different?


ATB,

Mark.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-04 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1451767460-13224-1-git-send-email-mark.cave-ayland@ilande.co.uk>
     [not found] ` <1451767460-13224-5-git-send-email-mark.cave-ayland@ilande.co.uk>
     [not found]   ` <alpine.BSF.2.20.1601022338080.17051@zero.eik.bme.hu>
     [not found]     ` <568855A4.6080308@ilande.co.uk>
     [not found]       ` <FD9D9BCF-E3A3-4189-B21B-D71FCC3B6EF3@gmail.com>
     [not found]         ` <5688FEB1.9040101@ilande.co.uk>
     [not found]           ` <16C32059-6DAB-44A3-B259-D7C98028EE27@gmail.com>
     [not found]             ` <56894F41.7070503@ilande.co.uk>
     [not found]               ` <FBE47F73-10A4-42CC-91FB-86047C381340@gmail.com>
     [not found]                 ` <568963C7.3050208@ilande.co.uk>
     [not found]                   ` <D62ADECC-D9AD-4449-A3B2-EAA9C3301EA4@gmail.com>
     [not found]                     ` <56897639.9080500@ilande.co.uk>
2016-01-03 20:59                       ` [Qemu-devel] Emaculation bug reports Programmingkid
2016-01-04  3:18                         ` Programmingkid
2016-01-04 14:19                           ` [Qemu-devel] [OpenBIOS] " Mark Cave-Ayland

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.