linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PPC405GPWalnutPciBusMaster
@ 2001-04-19  1:44 Hideo Noda
  2001-04-19  2:36 ` PPC405GPWalnutPciBusMaster andrew may
  2001-05-14 10:44 ` PPC405GPWalnutPciBusMaster machael thailer
  0 siblings, 2 replies; 8+ messages in thread
From: Hideo Noda @ 2001-04-19  1:44 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

I am trying to install Intel eepro100 onto WalnutPPC405GP.
Basic PCI settings seem good but no frame is transmitted.
The environment is WalnutPPC305GP with HardHatLinux 2.4.2 from
MonraVista.

I can read or write eepro configuration registers and other control
registers via PCI memory space.
But Bus Master operations do not seem functional. I am confirmed that
MASTER operation bit in eepro100 is enabled.
I think some more settings are needed for PPC405GP built-in PCI control
registers and/or Walnut board jumpers/dipswitches.

Has anyone tried PCI cards with BUS MASTER operations for Walnut
PPC405GP?

Thanks in advance,

Hideo


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

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

* Re: PPC405GPWalnutPciBusMaster
  2001-04-19  1:44 PPC405GPWalnutPciBusMaster Hideo Noda
@ 2001-04-19  2:36 ` andrew may
  2001-04-19  8:07   ` AW: PPC405GPWalnutPciBusMaster Stefan Roese
  2001-05-14 10:44 ` PPC405GPWalnutPciBusMaster machael thailer
  1 sibling, 1 reply; 8+ messages in thread
From: andrew may @ 2001-04-19  2:36 UTC (permalink / raw)
  To: Hideo Noda; +Cc: linuxppc-embedded


On Thu, Apr 19, 2001 at 10:44:08AM +0900, Hideo Noda wrote:
> Has anyone tried PCI cards with BUS MASTER operations for Walnut
> PPC405GP?

I have tried and failed. I have other things to work on right now
so I have just delayed looking into it anymore until the 2.0 CDK
comes out. I think that should be by the end of the month.

I think there is a problem with the virt_to_phys matching the
PTM1/BAR1. In the preliminary 405gp docs that I have Fig 17-59
on page 17-62 give a good overview on how things need to be
setup on the chip, but I am not sure on what the values
need to be.


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

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

* AW: PPC405GPWalnutPciBusMaster
  2001-04-19  2:36 ` PPC405GPWalnutPciBusMaster andrew may
@ 2001-04-19  8:07   ` Stefan Roese
  2001-04-19 15:05     ` PPC405GPWalnutPciBusMaster acmay
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Roese @ 2001-04-19  8:07 UTC (permalink / raw)
  To: Linuxppc-Embedded


> On Thu, Apr 19, 2001 at 10:44:08AM +0900, Hideo Noda wrote:
> > Has anyone tried PCI cards with BUS MASTER operations for Walnut
> > PPC405GP?
>
> I have tried and failed. I have other things to work on right now
> so I have just delayed looking into it anymore until the 2.0 CDK
> comes out. I think that should be by the end of the month.
>
> I think there is a problem with the virt_to_phys matching the
> PTM1/BAR1. In the preliminary 405gp docs that I have Fig 17-59
> on page 17-62 give a good overview on how things need to be
> setup on the chip, but I am not sure on what the values
> need to be.

Which bootloader/firmware are you using? The pci configuration should be
done within the bootloader. If you are using PPCBoot, I am not shure if the
configuration is correct regarding the busmaster setup (although I did the
port based on the IBM OpenBios). The bus master functionality was never
tested - sorry for that.

Stefan.

*******************************************
esd gmbh
Vahrenwalder Str. 205
D-30165 Hannover
Phone: +49-511-37298-0
Fax:   +49-511-37298-198
email: stefan.roese@esd-electronics.com
www:   http://www.esd-electronics.de
*******************************************


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

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

* Re: PPC405GPWalnutPciBusMaster
  2001-04-19  8:07   ` AW: PPC405GPWalnutPciBusMaster Stefan Roese
@ 2001-04-19 15:05     ` acmay
  0 siblings, 0 replies; 8+ messages in thread
From: acmay @ 2001-04-19 15:05 UTC (permalink / raw)
  To: Stefan Roese; +Cc: Linuxppc-Embedded


On Thu, Apr 19, 2001 at 10:07:55AM +0200, Stefan Roese wrote:
>
> > On Thu, Apr 19, 2001 at 10:44:08AM +0900, Hideo Noda wrote:
> > > Has anyone tried PCI cards with BUS MASTER operations for Walnut
> > > PPC405GP?
> >
> > I have tried and failed. I have other things to work on right now
> > so I have just delayed looking into it anymore until the 2.0 CDK
> > comes out. I think that should be by the end of the month.
> >
> > I think there is a problem with the virt_to_phys matching the
> > PTM1/BAR1. In the preliminary 405gp docs that I have Fig 17-59
> > on page 17-62 give a good overview on how things need to be
> > setup on the chip, but I am not sure on what the values
> > need to be.
>
> Which bootloader/firmware are you using? The pci configuration should be
> done within the bootloader. If you are using PPCBoot, I am not shure if the
> configuration is correct regarding the busmaster setup (although I did the
> port based on the IBM OpenBios). The bus master functionality was never
> tested - sorry for that.

I am just using the OpenBios for now. We will be spinning our own board
within the year so I was going to delay looking into doing the PPCBoot
code until then. I was able to look at the PCI registers when the kernel
booted and they appeared to be OK. For the hell of it I tried to change them
in the kernel and it hung during boot. I did not see in the docs the constraints
on when I could change those registers. Is it possible to do it very early in
the Linux boot code?
Thanks
--
Andrew May


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

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

* RE: PPC405GPWalnutPciBusMaster
@ 2001-04-19 15:06 Cagle, John
  0 siblings, 0 replies; 8+ messages in thread
From: Cagle, John @ 2001-04-19 15:06 UTC (permalink / raw)
  To: 'linuxppc-embedded@lists.linuxppc.org'


Try this command before loading the eepro100 driver module:

	setpci -s 0:0.1 14.L=0x8

It seems that the latest openbios doesn't program the PCI bridge registers
appropriately.

Regards,
John
jcagle@kernel.org

> -----Original Message-----
> From: Hideo Noda [mailto:Hideo_Noda@mutoh.co.jp]
> Sent: Wednesday, April 18, 2001 8:44 PM
> To: linuxppc-embedded@lists.linuxppc.org
> Subject: PPC405GPWalnutPciBusMaster
>
>
>
> Hi,
>
> I am trying to install Intel eepro100 onto WalnutPPC405GP.
> Basic PCI settings seem good but no frame is transmitted.
> The environment is WalnutPPC305GP with HardHatLinux 2.4.2 from
> MonraVista.
>
> I can read or write eepro configuration registers and other control
> registers via PCI memory space.
> But Bus Master operations do not seem functional. I am confirmed that
> MASTER operation bit in eepro100 is enabled.
> I think some more settings are needed for PPC405GP built-in
> PCI control
> registers and/or Walnut board jumpers/dipswitches.
>
> Has anyone tried PCI cards with BUS MASTER operations for Walnut
> PPC405GP?
>
> Thanks in advance,
>
> Hideo
>
>

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

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

* Re: PPC405GPWalnutPciBusMaster
  2001-04-19  1:44 PPC405GPWalnutPciBusMaster Hideo Noda
  2001-04-19  2:36 ` PPC405GPWalnutPciBusMaster andrew may
@ 2001-05-14 10:44 ` machael thailer
  2001-05-16  5:58   ` PPC405GPWalnutPciBusMaster John Cagle
  1 sibling, 1 reply; 8+ messages in thread
From: machael thailer @ 2001-05-14 10:44 UTC (permalink / raw)
  To: Hideo Noda, linuxppc-embedded


Now I have the same problem as you meet before.
Have you find a good solutions?
Thank you very mcuh.

machael

>
> Hi,
>
> I am trying to install Intel eepro100 onto WalnutPPC405GP.
> Basic PCI settings seem good but no frame is transmitted.
> The environment is WalnutPPC305GP with HardHatLinux 2.4.2 from
> MonraVista.
>
> I can read or write eepro configuration registers and other control
> registers via PCI memory space.
> But Bus Master operations do not seem functional. I am confirmed that
> MASTER operation bit in eepro100 is enabled.
> I think some more settings are needed for PPC405GP built-in PCI control
> registers and/or Walnut board jumpers/dipswitches.
>
> Has anyone tried PCI cards with BUS MASTER operations for Walnut
> PPC405GP?
>
> Thanks in advance,
>
> Hideo
>
>
>


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

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

* Re: PPC405GPWalnutPciBusMaster
       [not found] <fc.106ccf27106ccf2715ebed273b9aca00.25700d@mutoh.co.jp>
@ 2001-05-15 23:46 ` Hideo Noda
  0 siblings, 0 replies; 8+ messages in thread
From: Hideo Noda @ 2001-05-15 23:46 UTC (permalink / raw)
  To: linuxppc-embedded


We are running pci cards very well.

The boot loader we used was openbios, which was already
installed in the flash.
We ported a part of ppcboot to linux kernel to complete
the pci configuration. Now pci is running well on our Walnut.

What we did was:

add the function
"void pci_init(void)" in <cpu/ppc4xx/405gp_pci.c> in ppcboot
directory

into
"void __init pcibios_init(void)" in <linux/arch/ppc/kernel/pci.c>

Some minor changes were needed such as functions/macros
renaming.


The conclusion is that ppcboot configures pci well.

Above is one of solutions.
Swapping openbios with ppcboot will be good.
Downloading and running ppcboot, then downloading linux by
ppcboot seems well.

hideo



"dony.he@huawei.com" wrote:

> Now I have the same problem as you meet before.
> Have you find a good solutions?
> Thank you very mcuh.
>
> machael
>
> >
> > Hi,
> >
> > I am trying to install Intel eepro100 onto WalnutPPC405GP.
> > Basic PCI settings seem good but no frame is transmitted.
> > The environment is WalnutPPC305GP with HardHatLinux 2.4.2 from
> > MonraVista.
> >
> > I can read or write eepro configuration registers and other control
> > registers via PCI memory space.
> > But Bus Master operations do not seem functional. I am confirmed that
> > MASTER operation bit in eepro100 is enabled.
> > I think some more settings are needed for PPC405GP built-in PCI control
> > registers and/or Walnut board jumpers/dipswitches.
> >
> > Has anyone tried PCI cards with BUS MASTER operations for Walnut
> > PPC405GP?
> >
> > Thanks in advance,
> >
> > Hideo
> >
> >
> >


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

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

* Re: PPC405GPWalnutPciBusMaster
  2001-05-14 10:44 ` PPC405GPWalnutPciBusMaster machael thailer
@ 2001-05-16  5:58   ` John Cagle
  0 siblings, 0 replies; 8+ messages in thread
From: John Cagle @ 2001-05-16  5:58 UTC (permalink / raw)
  To: linuxppc-embedded


Until a newer kernel is released by Monta Vista that includes a fix,
you can use setpci to change the settings of the PCI bridge as follows:

  setpci -s 0:0.1 14.L=0x8

Then you should be able to "insmod eepro100"...

Regards,
John

On Mon, May 14, 2001 at 06:44:31PM +0800, machael thailer wrote:
>
> Now I have the same problem as you meet before.
> Have you find a good solutions?
> Thank you very mcuh.
>
> machael
>
> >
> > Hi,
> >
> > I am trying to install Intel eepro100 onto WalnutPPC405GP.
> > Basic PCI settings seem good but no frame is transmitted.
> > The environment is WalnutPPC305GP with HardHatLinux 2.4.2 from
> > MonraVista.
> >
> > I can read or write eepro configuration registers and other control
> > registers via PCI memory space.
> > But Bus Master operations do not seem functional. I am confirmed that
> > MASTER operation bit in eepro100 is enabled.
> > I think some more settings are needed for PPC405GP built-in PCI control
> > registers and/or Walnut board jumpers/dipswitches.
> >
> > Has anyone tried PCI cards with BUS MASTER operations for Walnut
> > PPC405GP?
> >
> > Thanks in advance,
> >
> > Hideo

------------------------------
John Cagle <jcagle@kernel.org>

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

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

end of thread, other threads:[~2001-05-16  5:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-19  1:44 PPC405GPWalnutPciBusMaster Hideo Noda
2001-04-19  2:36 ` PPC405GPWalnutPciBusMaster andrew may
2001-04-19  8:07   ` AW: PPC405GPWalnutPciBusMaster Stefan Roese
2001-04-19 15:05     ` PPC405GPWalnutPciBusMaster acmay
2001-05-14 10:44 ` PPC405GPWalnutPciBusMaster machael thailer
2001-05-16  5:58   ` PPC405GPWalnutPciBusMaster John Cagle
  -- strict thread matches above, loose matches on Subject: below --
2001-04-19 15:06 PPC405GPWalnutPciBusMaster Cagle, John
     [not found] <fc.106ccf27106ccf2715ebed273b9aca00.25700d@mutoh.co.jp>
2001-05-15 23:46 ` PPC405GPWalnutPciBusMaster Hideo Noda

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).