linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: FireWire + Apple PB G3: some success
@ 2000-03-03 10:07 Benjamin Herrenschmidt
  0 siblings, 0 replies; 11+ messages in thread
From: Benjamin Herrenschmidt @ 2000-03-03 10:07 UTC (permalink / raw)
  To: Ryuichi Oikawa, linuxppc-dev


On Fri, Mar 3, 2000, Ryuichi Oikawa <roikawa@rr.iij4u.or.jp> wrote:

>BBTW, I'm new in the MOL source and I need some information/explanation.
>Today I tried to add RageLTPro OF properties to MOL oftree.nw,
>insert it into the pci device tree and mmu map full 16MB aperture
>in thw video driver(on PB G3). I could run the drawing engine within
>MacOS manually, but ATI's extension didn't seem to recognize the chip
>at all. I even tried to load & insert into the driver properties field
>the driver extracted from ATI Driver update file, but no success.
>I don't understand MOL interface mechanism yet(and unfortunately
>my macos complier, symantec c++ doesn't work on recent system).
>
>What is the correct way to accelerate MOL video?

I don't think we can use MacOS ATI accelerator. It's tightly coupled with
the ATI driver (which handles also allocation of fb memory for QuickTime,
YUV overlay, interrupts, etc..) and will certainly break as soon as we
switch MOL console out.

We have to write our own MacOS accelerator using Apple's QD accel APIs.
Unfortunately, those APIs are under NDA and a driver using them can not
be released in source code form. I do have those APIs and I will try to
write some kind of interface layer that sends some of QD commands to MOL
so we can build chip-specific accel modules, but this layer will have to
reside in a non-GPL'd MacOS extension, and I didn't have time to do it yet.

Another possibility is to patch, from a MacOS extension, some QD
functions are directly route them to the emulator instead of using Apple
acceleration hooks.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: FireWire + Apple PB G3: some success
@ 2000-03-03 19:46 Dan Bethe
  0 siblings, 0 replies; 11+ messages in thread
From: Dan Bethe @ 2000-03-03 19:46 UTC (permalink / raw)
  To: linuxppc-dev


--- Benjamin Herrenschmidt <bh40@calva.net> wrote:
>
> On Fri, Mar 3, 2000, Ryuichi Oikawa <roikawa@rr.iij4u.or.jp> wrote:
>
> >BBTW, I'm new in the MOL source and I need some
> information/explanation.
> >Today I tried to add RageLTPro OF properties to MOL oftree.nw,

> Another possibility is to patch, from a MacOS extension, some QD
> functions are directly route them to the emulator instead of using
> Apple
> acceleration hooks.

	I just want to say that I have tremendous respect for anyone who's
even trying this kind of thing.  I bought my Powerbook around March of
1999, with the full intention of running Linux on it as much as humanly
possible.
	If it's significantly easier to implement 3D hardware support in MOL,
than it is to implement it natively in GLX, then I'll support that.
Hopefully it will provide a monitor or even reverse engineering
environment for us to eventually have native support.
	I'm serious, guys.  I invested in this machine for the long haul,
knowing only that at least basic bare functional hardware support
existed for it in LinuxPPC.  I intended to help you guys out as much as
I can, in any way possible.  I just started reading my "humanistic
programming in Applesoft BASIC" book, and I'm learning all about how to
format text I/O  :>  so hopefully I'll soon be able to help implement
LinuxPPC hardware support.
	I provide intrinsic support for anyone who wants to make this thing
kick as much ass as it does in MacOS, and I'm sure we can work out some
kind of extrinsic support as well, such as cash, cookies, pizza, or a
fellow tester.  You name it, and I'm there.

=====
"Don't expect your own messiah; this neverworld which you desire is
only in your mind." -- http://www.dreamtheater.net/songb4.htm#IV5

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* FireWire + Apple PB G3: some success
@ 2000-02-23 10:24 Albrecht Dre_
  2000-02-23 23:58 ` Andreas Bombe
  0 siblings, 1 reply; 11+ messages in thread
From: Albrecht Dre_ @ 2000-02-23 10:24 UTC (permalink / raw)
  To: FireWire devel; +Cc: LinuxPPC-Dev Liste


[I am new to the FireWire list, so please excuse me if this is not new for you.
Sorry, this is a quite long message]

I had some success with Newer Tech's FireWire2Go CardBus device on an Apple
PowerBook G3/333 (aka "Lombard") with LinuxPPC 2.2.14pre9.  This is what I did:

* added Ryuichi Oikawa patch to the kernel which enables the pci scan to "see"
CardBus devices without the PCMCIA package (there is a japanese description at
http://www.rr.iij4u.or.jp/~roikawa/others.html [which I can't read], but the
patch seems to work really fine)

* used the FireWire package for 2.2.14.  As always with LinuxPPC, I had to patch
the pcilynx driver, as OpenFirmware (Apple's "BIOS") does not activate all
devices automatically:

--- snip here -----------------------------------------------------------------
--- pcilynx.c.orig      Wed Feb 23 10:47:21 2000
+++ pcilynx.c   Wed Feb 23 10:52:33 2000
@@ -1212,6 +1212,7 @@
         struct ti_lynx *lynx; /* shortcut to currently handled device */
         unsigned long page;
         unsigned int i;
+       unsigned short w;

         if (num_of_cards == MAX_PCILYNX_CARDS) {
                 PRINT_G(KERN_WARNING, "cannot handle more than %d cards.  "
@@ -1225,7 +1226,8 @@
         lynx->id = num_of_cards-1;
         lynx->dev = dev;

-        pci_set_master(dev);
+       pci_read_config_word (dev, PCI_COMMAND, &w);
+       pci_write_config_word (dev, PCI_COMMAND, w | PCI_COMMAND_MASTER |
PCI_COMMAND_MEMORY | PCI_COMMAND_IO);

         if (!request_irq(dev->irq, lynx_irq_handler, SA_SHIRQ,
                          PCILYNX_DRIVER_NAME, lynx)) {
--- patch ends here -----------------------------------------------------------

* `modprobe pcilynx' gives the following kernel messages:

kernel: ieee1394: registered pcilynx driver, initializing now
kernel: pcilynx: looking for PCILynx cards
kernel: pcilynx0: allocated interrupt 0
kernel: pcilynx0: allocated PCL memory 65536 Bytes @ 0xc12f0000
kernel: pcilynx0: remapped memory spaces reg 0xd8887000, rom 0xd88ab001, ram
0xd8889000, aux 0xd889a000
kernel: pcilynx0: found 1394a conform PHY (using extended register set)
kernel: pcilynx0: PHY vendor id 0x00c02d
kernel: pcilynx0: PHY product id 0x303562
kernel: pcilynx0: resetting bus on request
kernel: ieee1394: detected 1 pcilynx adapter

* remaining questions:

I have a FW disk attached to the bus, but when I run testlibraw, it is not seen:

[root@tirilap133 src]# ./testlibraw
successfully got handle
current generation number: 0
1 card(s) found
  nodes on bus:  0, card name: pcilynx
using first card found: 0 nodes on bus, local ID is 0

doing transactions with custom tag handler

using standard tag handler and synchronous calls
[root@tirilap133 src]#

Is this normal, or where ist the problem?

Thanks, Albrecht.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-03-03 19:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-03 10:07 FireWire + Apple PB G3: some success Benjamin Herrenschmidt
  -- strict thread matches above, loose matches on Subject: below --
2000-03-03 19:46 Dan Bethe
2000-02-23 10:24 Albrecht Dre_
2000-02-23 23:58 ` Andreas Bombe
2000-02-24  2:44   ` [Linux1394-devel] " Maxim S. Shatskih
2000-02-24 16:17     ` Andreas Bombe
2000-02-28 12:59       ` Albrecht Dre_
2000-02-28 19:02         ` Andreas Bombe
2000-02-29 16:07         ` Ryuichi Oikawa
2000-02-29 16:45           ` Benjamin Herrenschmidt
2000-03-02 17:22             ` Ryuichi Oikawa
2000-03-01  7:30           ` Albrecht Dre_

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).