Re: Sym53c875 problem with last 2_5 updates

2 messages, 2 authors, 2001-03-19 · open the first message on its own page

Re: Sym53c875 problem with last 2_5 updates

From: Tom Rini <hidden>
Date: 2001-03-16 17:46:13

On Fri, Mar 16, 2001 at 06:22:04PM +0100, Stefano Coluccini wrote:
quoted
On Fri, Mar 16, 2001 at 09:38:47AM +0100, Stefano Coluccini wrote:
quoted
  few days ago (I don't remember the exact date) I have
resynced my local
quoted
repository of 2_5 and today I have recompiled a kernel. While before the
updates my sym53c875 based board had always worked fine, now the driver
unsuccesfully try to download script on the chip continually. I
have seen
quoted
that the sym53c8xx.c file is changed, in fact I have correct the problem
replacing the new file with the old.
I have not found any mention of sym53c8xx.c change in the changesets at
http://www.bitmover.com:8888//home/ppc/linuxppc_2_5 so I have
thinked it can
quoted
be an erroneous update ... it is possible ?
It got updated when I updated 2_5 with some of the changes from 2_4.  What
machine is this?
My machine is a Motorola MVME5100 with a PMC150-K mezzanine card based on
the sym53c875 chip.
quoted
 Search the linuxppc-dev list, as Geert had this same problem
on his LongTrail.
Yes, Geert had the same problem, but following the thread it seems to me
that     it is still unsolved, or I have not understand ?
I have not the necessary skill on SCSI to find and patch the problem, but
the developer(s) working on that can use me as tester or other.
The problem is actually w/ PCI resources, if I remember it correctly.
It's a problem in phys_to_bus, or so Geert determined.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

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

RE: Sym53c875 problem with last 2_5 updates

From: Ron Bianco <hidden>
Date: 2001-03-19 20:24:06

Hi,

I'm not using 2.5.x on our embedded 8240 board with sym53c895 chip, but did run into a similar kind of problem with some
of our boards.   The nominal version of the sym53c8xx.c file is 1.3c.

It seems that in the sym53c8xx_pci_init() function, the method used to read the PCI config registers is unreliable.
The pcibios_read_config_dword() method is better.   Also, it is assumed that the script ram base address has already
been set during PCI configuration.  I had to add code to the PCI config to set it anyway.

Hope this helps and is not too out of date with all the various changes in 2.4.x etc.
I didn't know anyone else was having a problem with it, so I didn't post my hack.

regards, Ron

Early on in the function sym53c8xx_pci_init():

#if LINUX_VERSION_CODE > LinuxVersionCode(2,1,92)
	pdev = pci_find_slot(bus, device_fn);
	vendor_id = pdev->vendor;
	device_id = pdev->device;
	irq = pdev->irq;
	i =	0;
	i =	pci_get_base_address(pdev, i, &io_port);
	printk("1-sym53c8xx_pci_init- io_port: 0x%08X\n", io_port );
	i =	pci_get_base_address(pdev, i, &base);
	printk("1-sym53c8xx_pci_init- base: 0x%08X\n", base );
	(void)	pci_get_base_address(pdev, i, &base_2);           // left in for comparison.

**** these next 3 lines are mine ********
	printk("1-sym53c8xx_pci_init- script ram base: 0x%08X\n", base_2 );

	pcibios_read_config_dword(bus, device_fn, PCI_BASE_ADDRESS_2, (u_int32 *)&base_2);

	printk("11-sym53c8xx_pci_init- script ram base: 0x%08X\n", base_2 );

#else
-----Original Message-----
From: owner-linuxppc-embedded@lists.linuxppc.org
[mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of Tom Rini
Sent: Friday, March 16, 2001 9:46 AM
To: Stefano Coluccini
Cc: Linuxppc-Embedded
Subject: Re: Sym53c875 problem with last 2_5 updates



On Fri, Mar 16, 2001 at 06:22:04PM +0100, Stefano Coluccini wrote:
quoted
quoted
On Fri, Mar 16, 2001 at 09:38:47AM +0100, Stefano Coluccini wrote:
quoted
  few days ago (I don't remember the exact date) I have
resynced my local
quoted
repository of 2_5 and today I have recompiled a kernel. While before the
updates my sym53c875 based board had always worked fine, now the driver
unsuccesfully try to download script on the chip continually. I
have seen
quoted
that the sym53c8xx.c file is changed, in fact I have correct the problem
replacing the new file with the old.
I have not found any mention of sym53c8xx.c change in the changesets at
http://www.bitmover.com:8888//home/ppc/linuxppc_2_5 so I have
thinked it can
quoted
be an erroneous update ... it is possible ?
It got updated when I updated 2_5 with some of the changes from 2_4.  What
machine is this?
My machine is a Motorola MVME5100 with a PMC150-K mezzanine card based on
the sym53c875 chip.
quoted
 Search the linuxppc-dev list, as Geert had this same problem
on his LongTrail.
Yes, Geert had the same problem, but following the thread it seems to me
that     it is still unsolved, or I have not understand ?
I have not the necessary skill on SCSI to find and patch the problem, but
the developer(s) working on that can use me as tester or other.
The problem is actually w/ PCI resources, if I remember it correctly.
It's a problem in phys_to_bus, or so Geert determined.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help