Port-ofppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Pegasos interrupt mapping and dmamem_alloc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
On Nov 3, 2007, at 11:46, Tim Rightnour wrote:
But then a new crash! The _dma_phys_to_bus_mem() function in the
pci_bus_dma_tag structure was not initialized! I don't know why
you are
making a difference between pci_bus_dma_tag for macppc and for the
rest?
Usng the macppc-version instead, which initializes the two missing
function
pointers, fixes the problem:
Because the macppc one isn't correct. They are using thier own
internal
versions of the routines, as opposed to the generic powerpc ones.
I keep
forgetting to ask Macallan if they still need this hack or not. I
suspect they
do not.
I'll have a look - I dimly remember trying to get rid of them but
then deciding to leave them in place for the time being - not sure
why though.
It looks like macppc uses the generic ones, so we can probably just
set the
PHYS_TO_BUS_MEM and BUS_MEM_TO_PHYS macros in ofppc/include/bus.h
to those
two functions, and things will be good to go.
On macppc busaddr == physaddr for memory mapped PCI stuff at least.
But also a new problem: now attaching ofb0 freezes the system...
*sigh*
It's probably not worth fiddling with ofb. I was talking to
Macallan, and he
said macppc will be dumping that driver in favor of genfb.
ofb contains a bunch of macppc-specific hacks, I doubt its anywhere
near portable.
have fun
Michael
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iQEVAwUBRyybwcpnzkX8Yg2nAQJt1wgAlnH4oPgd8wlYTdT54jHDbB6Md9IPXPNN
0h4iXYhuhTQGuQnfpbXLmx04mzGgLkrMJ313dhDF88sQpdvWbZZqN0UY0+jbkHd5
QoY+3yr2ivkISLlFdAD0Z8Gd/vLPOknMkKiGDYcsmbh8WrS3uF3GAnFrK/D+ATQ5
Ro8zxsqEzhzZSZdtf6Gx4mHG17deUTWI72g46CVX/zqnpUQcPg7JZD80KK1Txv3k
PoOI+Uk2DUOHpozQ2GZrhH7fGIxoIuOBH2IXWR1UP54z9CQVLxO8yfhRgIXu5T2c
252yXQc88ZRfS+HvVYqbLCGySmt1i6BLS89DKpG71d9DsjexPBHnxg==
=8v2u
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iQEVAwUBRyyb/spnzkX8Yg2nAQJ24wf9GFvYTy5To8sVaV7nU5YNn1o1vPqHiFXk
NOZQunaUm+vF1zR178L1w6PIzDSAgNAynoY0v8eF4Rfs3p7A/yRkqJ8+wqt0//+I
osBNPUPwkwo7Q54rkoVZWKmfYhVczoK9ZrZNTKwCDDnkcjdONi0f5CR/wpkA1Ei3
MkmM7W2rtgIWAHtAijP3Lj3VCeTHFIMKYOA+C9UsYdKgcW1XOC2k0vl9KfrWYceV
i46hWBmew0VG+BLVWhmEJ9tQ6A5ihABjklAstBNjzrSQrl6dJFb2UcaCvmHe5n4m
7T7M1/8FTtRYCED8FWYfgIZd2q1t4rCXzFsIK6bBvhrEF3yq0Ru7jQ==
=eX4/
-----END PGP SIGNATURE-----
Home |
Main Index |
Thread Index |
Old Index