* PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
@ 2005-03-28 23:23 Sven Luther
  2005-03-31 14:28 ` Tom Rini
  0 siblings, 1 reply; 17+ messages in thread
From: Sven Luther @ 2005-03-28 23:23 UTC (permalink / raw)
  To: linuxppc-dev
Hello,
I have been investigating the prep breakage of the sym53c8xx driver on my
powerstack II in recent kernels, and traced it to the residual data patch,
or more exactly to the whole prep_pci.c/prep_setup.c patches that where
introduced between 2.6.9-rc1 and 2.6.9-rc1-bk1. I didn't have time to find
more details as the patch is not so small, and seems to do many things, and
linux.bkbits.net seems done right now.
Mmm, after a bit more of investigation, the changeset breaking it is :
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/08/16 10:35:18-07:00 trini@kernel.crashing.org
#   ppc32: On PReP, use residual data for PCI dev -> IRQ, and use it.
#
#   Signed-off-by: Leigh Brown <leigh@solinno.co.uk>
#   Signed-off-by: Tom Rini <trini@kernel.crashing.org>
#
# include/asm-ppc/residual.h
#   2004/08/16 10:35:09-07:00 trini@kernel.crashing.org +7 -0
#   This adds a function to use the residual data to determine the IRQ
#   for a given PCI device, and changes prep_pcibios_fixup() to use it.
#
# arch/ppc/platforms/residual.c
#   2004/08/16 10:35:09-07:00 trini@kernel.crashing.org +60 -0
#   This adds a function to use the residual data to determine the IRQ
#   for a given PCI device, and changes prep_pcibios_fixup() to use it.
#
# arch/ppc/platforms/prep_pci.c
#   2004/08/16 10:35:09-07:00 trini@kernel.crashing.org +37 -23
#   This adds a function to use the residual data to determine the IRQ
#   for a given PCI device, and changes prep_pcibios_fixup() to use it.
Mmm, i guess this makes sense, since it seems the sym53c8xx doesn'y find its
irq anymore or something. Tom Rini, or Leigh Brown, do you have any comments
on this one ? 
Friendly,
Sven Luther
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-03-28 23:23 PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch Sven Luther
@ 2005-03-31 14:28 ` Tom Rini
  2005-03-31 18:45   ` Sven Luther
  0 siblings, 1 reply; 17+ messages in thread
From: Tom Rini @ 2005-03-31 14:28 UTC (permalink / raw)
  To: Sven Luther; +Cc: linuxppc-dev
On Tue, Mar 29, 2005 at 01:23:55AM +0200, Sven Luther wrote:
> Hello,
> 
> I have been investigating the prep breakage of the sym53c8xx driver on my
> powerstack II in recent kernels, and traced it to the residual data patch,
> or more exactly to the whole prep_pci.c/prep_setup.c patches that where
> introduced between 2.6.9-rc1 and 2.6.9-rc1-bk1. I didn't have time to find
> more details as the patch is not so small, and seems to do many things, and
> linux.bkbits.net seems done right now.
> 
> Mmm, after a bit more of investigation, the changeset breaking it is :
> 
> # This is a BitKeeper generated diff -Nru style patch.
> #
> # ChangeSet
> #   2004/08/16 10:35:18-07:00 trini@kernel.crashing.org
> #   ppc32: On PReP, use residual data for PCI dev -> IRQ, and use it.
> #
> #   Signed-off-by: Leigh Brown <leigh@solinno.co.uk>
> #   Signed-off-by: Tom Rini <trini@kernel.crashing.org>
> #
> # include/asm-ppc/residual.h
> #   2004/08/16 10:35:09-07:00 trini@kernel.crashing.org +7 -0
> #   This adds a function to use the residual data to determine the IRQ
> #   for a given PCI device, and changes prep_pcibios_fixup() to use it.
> #
> # arch/ppc/platforms/residual.c
> #   2004/08/16 10:35:09-07:00 trini@kernel.crashing.org +60 -0
> #   This adds a function to use the residual data to determine the IRQ
> #   for a given PCI device, and changes prep_pcibios_fixup() to use it.
> #
> # arch/ppc/platforms/prep_pci.c
> #   2004/08/16 10:35:09-07:00 trini@kernel.crashing.org +37 -23
> #   This adds a function to use the residual data to determine the IRQ
> #   for a given PCI device, and changes prep_pcibios_fixup() to use it.
> 
> Mmm, i guess this makes sense, since it seems the sym53c8xx doesn'y find its
> irq anymore or something. Tom Rini, or Leigh Brown, do you have any comments
> on this one ? 
Well, we'd need to be certain it's this patch.  If it's this patch, I
think Leigh was suggesting at the time that the fix would be to fixup
the residual data with the correct information.
But what also went in were changes to specific irq maps, based on what
fixed a given machine for someone else, so one of those changes could
also be it.
-- 
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-03-31 14:28 ` Tom Rini
@ 2005-03-31 18:45   ` Sven Luther
  2005-04-05  0:03     ` Christian
  0 siblings, 1 reply; 17+ messages in thread
From: Sven Luther @ 2005-03-31 18:45 UTC (permalink / raw)
  To: Tom Rini; +Cc: linuxppc-dev
On Thu, Mar 31, 2005 at 07:28:13AM -0700, Tom Rini wrote:
> On Tue, Mar 29, 2005 at 01:23:55AM +0200, Sven Luther wrote:
> > Hello,
> > 
> > I have been investigating the prep breakage of the sym53c8xx driver on my
> > powerstack II in recent kernels, and traced it to the residual data patch,
> > or more exactly to the whole prep_pci.c/prep_setup.c patches that where
> > introduced between 2.6.9-rc1 and 2.6.9-rc1-bk1. I didn't have time to find
> > more details as the patch is not so small, and seems to do many things, and
> > linux.bkbits.net seems done right now.
> > 
> > Mmm, after a bit more of investigation, the changeset breaking it is :
> > 
> > # This is a BitKeeper generated diff -Nru style patch.
> > #
> > # ChangeSet
> > #   2004/08/16 10:35:18-07:00 trini@kernel.crashing.org
> > #   ppc32: On PReP, use residual data for PCI dev -> IRQ, and use it.
> > #
> > #   Signed-off-by: Leigh Brown <leigh@solinno.co.uk>
> > #   Signed-off-by: Tom Rini <trini@kernel.crashing.org>
> > #
> > # include/asm-ppc/residual.h
> > #   2004/08/16 10:35:09-07:00 trini@kernel.crashing.org +7 -0
> > #   This adds a function to use the residual data to determine the IRQ
> > #   for a given PCI device, and changes prep_pcibios_fixup() to use it.
> > #
> > # arch/ppc/platforms/residual.c
> > #   2004/08/16 10:35:09-07:00 trini@kernel.crashing.org +60 -0
> > #   This adds a function to use the residual data to determine the IRQ
> > #   for a given PCI device, and changes prep_pcibios_fixup() to use it.
> > #
> > # arch/ppc/platforms/prep_pci.c
> > #   2004/08/16 10:35:09-07:00 trini@kernel.crashing.org +37 -23
> > #   This adds a function to use the residual data to determine the IRQ
> > #   for a given PCI device, and changes prep_pcibios_fixup() to use it.
> > 
> > Mmm, i guess this makes sense, since it seems the sym53c8xx doesn'y find its
> > irq anymore or something. Tom Rini, or Leigh Brown, do you have any comments
> > on this one ? 
> 
> Well, we'd need to be certain it's this patch.  If it's this patch, I
> think Leigh was suggesting at the time that the fix would be to fixup
> the residual data with the correct information.
I got through all the changesets one by one, and it is most definitively this
one. i unapply it and it works, i apply it and it breaks.
/me went through a couple hours of binary diff in this way monday evening :/
> But what also went in were changes to specific irq maps, based on what
> fixed a given machine for someone else, so one of those changes could
> also be it.
Nope, it is most definitively the patch above which causes the problem.
I believe the new irq setting method is borked somehow.
Friendly,
Sven Luther
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-03-31 18:45   ` Sven Luther
@ 2005-04-05  0:03     ` Christian
  2005-04-05  5:39       ` Sven Luther
  0 siblings, 1 reply; 17+ messages in thread
From: Christian @ 2005-04-05  0:03 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Tom Rini
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sven Luther wrote:
>>># This is a BitKeeper generated diff -Nru style patch.
>>>#
>>># ChangeSet
>>>#   2004/08/16 10:35:18-07:00 trini@kernel.crashing.org
>>>#   ppc32: On PReP, use residual data for PCI dev -> IRQ, and use it.
>
> I got through all the changesets one by one, and it is most definitively this
> one. i unapply it and it works, i apply it and it breaks.
i can confirm this one.
the changesets are listed here:
http://linux.bkbits.net:8080/linux-2.6/patch@1.1803.125.6
...and because i had some troubles getting a GNU diff-style patch with
/usr/bin/bk, i made one against 2.6.11.6:
http://nerdbynature.de/bits/hal/2.6.11.6/1.1803.125.6.diff
more info and dmesg under:
http://nerdbynature.de/bits/hal/2.6.11.6/
to summarize: i don't know exactly which changes, but *some* changes had
to be made to arch/ppc/platforms/prep_pci.c to get the network card
working [1] again (network code kept locking up the machine). after this
issue was resolved, i too noticed the scsi errors [2] others were
complaing about.
thanks to all involved,
Christian.
[1] http://ozlabs.org/pipermail/linuxppc-dev/2004-December/017954.html
[2] http://nerdbynature.de/bits/hal/2.6.11-rc5/dmesg
- --
BOFH excuse #307:
emissions from GSM-phones
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCUdW5C/PVm5+NVoYRAnBFAKDWoLrgNglNCIuVNLMZcJXccp7K6QCfSyIp
i4H8VpqUw3e7WiyqpsqYs54=
=WD3X
-----END PGP SIGNATURE-----
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-05  0:03     ` Christian
@ 2005-04-05  5:39       ` Sven Luther
  2005-04-05 14:38         ` Tom Rini
  0 siblings, 1 reply; 17+ messages in thread
From: Sven Luther @ 2005-04-05  5:39 UTC (permalink / raw)
  To: Christian; +Cc: linuxppc-dev, Tom Rini
On Tue, Apr 05, 2005 at 02:03:06AM +0200, Christian wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Sven Luther wrote:
> >>># This is a BitKeeper generated diff -Nru style patch.
> >>>#
> >>># ChangeSet
> >>>#   2004/08/16 10:35:18-07:00 trini@kernel.crashing.org
> >>>#   ppc32: On PReP, use residual data for PCI dev -> IRQ, and use it.
> >
> > I got through all the changesets one by one, and it is most definitively this
> > one. i unapply it and it works, i apply it and it breaks.
> 
> i can confirm this one.
> 
> the changesets are listed here:
> http://linux.bkbits.net:8080/linux-2.6/patch@1.1803.125.6
> 
> ...and because i had some troubles getting a GNU diff-style patch with
> /usr/bin/bk, i made one against 2.6.11.6:
> 
> http://nerdbynature.de/bits/hal/2.6.11.6/1.1803.125.6.diff
> 
> more info and dmesg under:
> 
> http://nerdbynature.de/bits/hal/2.6.11.6/
> 
> to summarize: i don't know exactly which changes, but *some* changes had
> to be made to arch/ppc/platforms/prep_pci.c to get the network card
> working [1] again (network code kept locking up the machine). after this
> issue was resolved, i too noticed the scsi errors [2] others were
> complaing about.
The issue seems obvious, the patch adds some different way of setting the
irqs, based on the residual data, which fails to do what it should on the
powerstack, and thus the irqs are fully left uninitialized. 
Friendly,
Sven Luther
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-05  5:39       ` Sven Luther
@ 2005-04-05 14:38         ` Tom Rini
  2005-04-05 15:23           ` Sven Luther
  2005-04-06  1:47           ` Christian
  0 siblings, 2 replies; 17+ messages in thread
From: Tom Rini @ 2005-04-05 14:38 UTC (permalink / raw)
  To: Sven Luther; +Cc: linuxppc-dev
On Tue, Apr 05, 2005 at 07:39:31AM +0200, Sven Luther wrote:
> On Tue, Apr 05, 2005 at 02:03:06AM +0200, Christian wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Sven Luther wrote:
> > >>># This is a BitKeeper generated diff -Nru style patch.
> > >>>#
> > >>># ChangeSet
> > >>>#   2004/08/16 10:35:18-07:00 trini@kernel.crashing.org
> > >>>#   ppc32: On PReP, use residual data for PCI dev -> IRQ, and use it.
> > >
> > > I got through all the changesets one by one, and it is most definitively this
> > > one. i unapply it and it works, i apply it and it breaks.
> > 
> > i can confirm this one.
> > 
> > the changesets are listed here:
> > http://linux.bkbits.net:8080/linux-2.6/patch@1.1803.125.6
> > 
> > ...and because i had some troubles getting a GNU diff-style patch with
> > /usr/bin/bk, i made one against 2.6.11.6:
> > 
> > http://nerdbynature.de/bits/hal/2.6.11.6/1.1803.125.6.diff
> > 
> > more info and dmesg under:
> > 
> > http://nerdbynature.de/bits/hal/2.6.11.6/
> > 
> > to summarize: i don't know exactly which changes, but *some* changes had
> > to be made to arch/ppc/platforms/prep_pci.c to get the network card
> > working [1] again (network code kept locking up the machine). after this
> > issue was resolved, i too noticed the scsi errors [2] others were
> > complaing about.
> 
> The issue seems obvious, the patch adds some different way of setting the
> irqs, based on the residual data, which fails to do what it should on the
> powerstack, and thus the irqs are fully left uninitialized. 
Can either of you verify that say 2.6.11.6 w/ "noresidual" on the
command-line works?  Thanks.
-- 
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-05 14:38         ` Tom Rini
@ 2005-04-05 15:23           ` Sven Luther
  2005-04-05 15:47             ` Tom Rini
  2005-04-06  1:47           ` Christian
  1 sibling, 1 reply; 17+ messages in thread
From: Sven Luther @ 2005-04-05 15:23 UTC (permalink / raw)
  To: Tom Rini; +Cc: linuxppc-dev
On Tue, Apr 05, 2005 at 07:38:02AM -0700, Tom Rini wrote:
> On Tue, Apr 05, 2005 at 07:39:31AM +0200, Sven Luther wrote:
> > On Tue, Apr 05, 2005 at 02:03:06AM +0200, Christian wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > > 
> > > Sven Luther wrote:
> > > >>># This is a BitKeeper generated diff -Nru style patch.
> > > >>>#
> > > >>># ChangeSet
> > > >>>#   2004/08/16 10:35:18-07:00 trini@kernel.crashing.org
> > > >>>#   ppc32: On PReP, use residual data for PCI dev -> IRQ, and use it.
> > > >
> > > > I got through all the changesets one by one, and it is most definitively this
> > > > one. i unapply it and it works, i apply it and it breaks.
> > > 
> > > i can confirm this one.
> > > 
> > > the changesets are listed here:
> > > http://linux.bkbits.net:8080/linux-2.6/patch@1.1803.125.6
> > > 
> > > ...and because i had some troubles getting a GNU diff-style patch with
> > > /usr/bin/bk, i made one against 2.6.11.6:
> > > 
> > > http://nerdbynature.de/bits/hal/2.6.11.6/1.1803.125.6.diff
> > > 
> > > more info and dmesg under:
> > > 
> > > http://nerdbynature.de/bits/hal/2.6.11.6/
> > > 
> > > to summarize: i don't know exactly which changes, but *some* changes had
> > > to be made to arch/ppc/platforms/prep_pci.c to get the network card
> > > working [1] again (network code kept locking up the machine). after this
> > > issue was resolved, i too noticed the scsi errors [2] others were
> > > complaing about.
> > 
> > The issue seems obvious, the patch adds some different way of setting the
> > irqs, based on the residual data, which fails to do what it should on the
> > powerstack, and thus the irqs are fully left uninitialized. 
> 
> Can either of you verify that say 2.6.11.6 w/ "noresidual" on the
> command-line works?  Thanks.
Notice that last i checked, there was a typo which forced you to say
"nopresidual", and i think i did add this when i was testing, and it didn't
help.
Will try booting the debian 2.6.11-1 powerpc kernels which should include all
2.6.11.6 patches.
Friendly,
Sven Luther
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-05 15:23           ` Sven Luther
@ 2005-04-05 15:47             ` Tom Rini
  0 siblings, 0 replies; 17+ messages in thread
From: Tom Rini @ 2005-04-05 15:47 UTC (permalink / raw)
  To: Sven Luther; +Cc: linuxppc-dev
On Tue, Apr 05, 2005 at 05:23:22PM +0200, Sven Luther wrote:
> On Tue, Apr 05, 2005 at 07:38:02AM -0700, Tom Rini wrote:
> > On Tue, Apr 05, 2005 at 07:39:31AM +0200, Sven Luther wrote:
> > > On Tue, Apr 05, 2005 at 02:03:06AM +0200, Christian wrote:
> > > > -----BEGIN PGP SIGNED MESSAGE-----
> > > > Hash: SHA1
> > > > 
> > > > Sven Luther wrote:
> > > > >>># This is a BitKeeper generated diff -Nru style patch.
> > > > >>>#
> > > > >>># ChangeSet
> > > > >>>#   2004/08/16 10:35:18-07:00 trini@kernel.crashing.org
> > > > >>>#   ppc32: On PReP, use residual data for PCI dev -> IRQ, and use it.
> > > > >
> > > > > I got through all the changesets one by one, and it is most definitively this
> > > > > one. i unapply it and it works, i apply it and it breaks.
> > > > 
> > > > i can confirm this one.
> > > > 
> > > > the changesets are listed here:
> > > > http://linux.bkbits.net:8080/linux-2.6/patch@1.1803.125.6
> > > > 
> > > > ...and because i had some troubles getting a GNU diff-style patch with
> > > > /usr/bin/bk, i made one against 2.6.11.6:
> > > > 
> > > > http://nerdbynature.de/bits/hal/2.6.11.6/1.1803.125.6.diff
> > > > 
> > > > more info and dmesg under:
> > > > 
> > > > http://nerdbynature.de/bits/hal/2.6.11.6/
> > > > 
> > > > to summarize: i don't know exactly which changes, but *some* changes had
> > > > to be made to arch/ppc/platforms/prep_pci.c to get the network card
> > > > working [1] again (network code kept locking up the machine). after this
> > > > issue was resolved, i too noticed the scsi errors [2] others were
> > > > complaing about.
> > > 
> > > The issue seems obvious, the patch adds some different way of setting the
> > > irqs, based on the residual data, which fails to do what it should on the
> > > powerstack, and thus the irqs are fully left uninitialized. 
> > 
> > Can either of you verify that say 2.6.11.6 w/ "noresidual" on the
> > command-line works?  Thanks.
> 
> Notice that last i checked, there was a typo which forced you to say
> "nopresidual", and i think i did add this when i was testing, and it didn't
> help.
That's a problem, as 'noresidual' was supposed to disable the new stuff
introduced here, for boxes that it may have broken.
-- 
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-05 14:38         ` Tom Rini
  2005-04-05 15:23           ` Sven Luther
@ 2005-04-06  1:47           ` Christian
  2005-04-06  1:58             ` Christian
  2005-04-06 18:50             ` Tom Rini
  1 sibling, 2 replies; 17+ messages in thread
From: Christian @ 2005-04-06  1:47 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Tom Rini
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tom Rini wrote:
> Can either of you verify that say 2.6.11.6 w/ "noresidual" on the
> command-line works?  Thanks.
i booted vanilla 2.6.11.6 with noresidual (and "nopresidual" too, as Sven
sugggested), but the scsi errors did not went away :(
on a side note, and perhaps totally unrelated: i always have
PROC_PREPRESIDUAL=y in my .config, but i never had /proc/residual as
promised from the help text.
thanks,
Christian.
- --
BOFH excuse #48:
bad ether in the cables
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCUz+hC/PVm5+NVoYRApdaAJ90DeNHRdmHHnQBflMrWyFt1/vO6gCfQixe
jLOm8vmTPNR+xKR9K6Yk9Fs=
=GnEk
-----END PGP SIGNATURE-----
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-06  1:47           ` Christian
@ 2005-04-06  1:58             ` Christian
  2005-04-06 18:50             ` Tom Rini
  1 sibling, 0 replies; 17+ messages in thread
From: Christian @ 2005-04-06  1:58 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Tom Rini
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christian wrote:
> i booted vanilla 2.6.11.6 with noresidual (and "nopresidual" too, as Sven
> sugggested), but the scsi errors did not went away :(
um, no, worse that that: the scsi error kicks in for sym0:0:0:
sym0:0:0: DEVICE RESET operation started.
(...then it would continue until sym0:15:0, see [1])
then the machine locked up completely, not even SYSRQ works any more.
that happened when booting with "noresidual" and even with PREP_RESIDUAL=n
(in the .config).
thanks,
Christian.
[1] http://nerdbynature.de/bits/hal/2.6.11-rc5/dmesg
- --
BOFH excuse #48:
bad ether in the cables
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCU0ItC/PVm5+NVoYRAnVMAJ9L1eQLopn6ckMUkC+lNVnwsoKUCACfa2Tj
zqXc3jjKeiXpdYuih+wlZqs=
=GRwp
-----END PGP SIGNATURE-----
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-06  1:47           ` Christian
  2005-04-06  1:58             ` Christian
@ 2005-04-06 18:50             ` Tom Rini
  2005-04-08 11:36               ` Leigh Brown
  1 sibling, 1 reply; 17+ messages in thread
From: Tom Rini @ 2005-04-06 18:50 UTC (permalink / raw)
  To: Christian; +Cc: linuxppc-dev
On Wed, Apr 06, 2005 at 03:47:13AM +0200, Christian wrote:
> Tom Rini wrote:
> > Can either of you verify that say 2.6.11.6 w/ "noresidual" on the
> > command-line works?  Thanks.
> 
> i booted vanilla 2.6.11.6 with noresidual (and "nopresidual" too, as Sven
> sugggested), but the scsi errors did not went away :(
> 
> on a side note, and perhaps totally unrelated: i always have
> PROC_PREPRESIDUAL=y in my .config, but i never had /proc/residual as
> promised from the help text.
Odd.  I thought that only happened if you had no residual data at all
(which can happen on Powerstacks, esp if netbooting the kernel).  But in
that case the new code shouldn't be hit at all.  Leigh?
-- 
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-06 18:50             ` Tom Rini
@ 2005-04-08 11:36               ` Leigh Brown
  2005-04-08 14:54                 ` Tom Rini
  2005-04-09 11:33                 ` [PATCH 2.6.11+] ppc32: Make the Powerstack II Pro4000 boot again Leigh Brown
  0 siblings, 2 replies; 17+ messages in thread
From: Leigh Brown @ 2005-04-08 11:36 UTC (permalink / raw)
  To: Tom Rini; +Cc: linuxppc-dev
Tom Rini said:
> On Wed, Apr 06, 2005 at 03:47:13AM +0200, Christian wrote:
>> Tom Rini wrote:
>> > Can either of you verify that say 2.6.11.6 w/ "noresidual" on the
>> > command-line works?  Thanks.
>>
>> i booted vanilla 2.6.11.6 with noresidual (and "nopresidual" too, as
>> Sven
>> sugggested), but the scsi errors did not went away :(
>>
>> on a side note, and perhaps totally unrelated: i always have
>> PROC_PREPRESIDUAL=y in my .config, but i never had /proc/residual as
>> promised from the help text.
>
> Odd.  I thought that only happened if you had no residual data at all
> (which can happen on Powerstacks, esp if netbooting the kernel).  But in
> that case the new code shouldn't be hit at all.  Leigh?
Hi, I'm back from my holidays, and have had a look at this.  As I spent
lots of time understanding the horrendous mess that was
prep_pcibios_fixup(), I'd be loath to back out the changes I made
(especially as they work so well for me ;-) ).
It turns out that prep_pib_init() is the culprit.  Although it would
appear to be coded for the non-openpic case, it obviously doesn't work.
The old version of prep_pcibios_fixup() only called it if there is an
openpic on the machine.  We can restore that behaviour with the
following patch:
--- prep_pci.c.orig	2005-04-08 11:49:25.743718088 +0000
+++ prep_pci.c	2005-04-08 12:23:00.541422280 +0000
@@ -1245,8 +1245,13 @@
 		pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
 	}
-	/* Setup the Winbond or Via PIB */
-	prep_pib_init();
+	/* Setup the Winbond or Via PIB - prep_pib_init() is coded for
+	 * the non-openpic case, but it breaks (at least) the Utah
+	 * (Powerstack II Pro4000), so only call it if we have an
+	 * openpic.
+	 */
+	if (have_openpic)
+		prep_pib_init();
 }
 static void __init
I've no idea even what machines would be affected by this, but it
fixes Sven's problem and restores the old behaviour, so that
can't be bad.
I guess fixing prep_pib_init() would be the better solution but
I wouldn't know where to start.  If this band-aid is good enough
I can submit a proper patch, if you like.
Cheers,
Leigh.
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-08 11:36               ` Leigh Brown
@ 2005-04-08 14:54                 ` Tom Rini
  2005-04-08 15:51                   ` Christian
  2005-04-09 11:33                 ` [PATCH 2.6.11+] ppc32: Make the Powerstack II Pro4000 boot again Leigh Brown
  1 sibling, 1 reply; 17+ messages in thread
From: Tom Rini @ 2005-04-08 14:54 UTC (permalink / raw)
  To: Leigh Brown; +Cc: linuxppc-dev
On Fri, Apr 08, 2005 at 12:36:02PM +0100, Leigh Brown wrote:
> Tom Rini said:
> > On Wed, Apr 06, 2005 at 03:47:13AM +0200, Christian wrote:
> >> Tom Rini wrote:
> >> > Can either of you verify that say 2.6.11.6 w/ "noresidual" on the
> >> > command-line works?  Thanks.
> >>
> >> i booted vanilla 2.6.11.6 with noresidual (and "nopresidual" too, as
> >> Sven
> >> sugggested), but the scsi errors did not went away :(
> >>
> >> on a side note, and perhaps totally unrelated: i always have
> >> PROC_PREPRESIDUAL=y in my .config, but i never had /proc/residual as
> >> promised from the help text.
> >
> > Odd.  I thought that only happened if you had no residual data at all
> > (which can happen on Powerstacks, esp if netbooting the kernel).  But in
> > that case the new code shouldn't be hit at all.  Leigh?
> 
> Hi, I'm back from my holidays, and have had a look at this.  As I spent
> lots of time understanding the horrendous mess that was
> prep_pcibios_fixup(), I'd be loath to back out the changes I made
> (especially as they work so well for me ;-) ).
> 
> It turns out that prep_pib_init() is the culprit.  Although it would
> appear to be coded for the non-openpic case, it obviously doesn't work.
> The old version of prep_pcibios_fixup() only called it if there is an
> openpic on the machine.  We can restore that behaviour with the
> following patch:
> 
> --- prep_pci.c.orig	2005-04-08 11:49:25.743718088 +0000
> +++ prep_pci.c	2005-04-08 12:23:00.541422280 +0000
> @@ -1245,8 +1245,13 @@
>  		pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
>  	}
> 
> -	/* Setup the Winbond or Via PIB */
> -	prep_pib_init();
> +	/* Setup the Winbond or Via PIB - prep_pib_init() is coded for
> +	 * the non-openpic case, but it breaks (at least) the Utah
> +	 * (Powerstack II Pro4000), so only call it if we have an
> +	 * openpic.
> +	 */
> +	if (have_openpic)
> +		prep_pib_init();
>  }
> 
>  static void __init
> 
> I've no idea even what machines would be affected by this, but it
> fixes Sven's problem and restores the old behaviour, so that
> can't be bad.
> 
> I guess fixing prep_pib_init() would be the better solution but
> I wouldn't know where to start.  If this band-aid is good enough
> I can submit a proper patch, if you like.
If this works, I'd like to see this get into 2.6.12.  Please re-send to
akpm / this list.  Assuming it's just the above:
Acked-by: Tom Rini <trini@kernel.crashing.org>
-- 
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-08 14:54                 ` Tom Rini
@ 2005-04-08 15:51                   ` Christian
  2005-04-08 15:57                     ` Tom Rini
  0 siblings, 1 reply; 17+ messages in thread
From: Christian @ 2005-04-08 15:51 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Tom Rini
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tom Rini wrote:
> 
> If this works, I'd like to see this get into 2.6.12.  Please re-send to
> akpm / this list.  Assuming it's just the above:
> Acked-by: Tom Rini <trini@kernel.crashing.org>
yes! i just applied Leigh's patch (thanks!) to a pristine 2.6.11.6 and my
PReP here booted fine:
  http://www.nerdbynature.de/bits/hal/2.6.11.6/leigh/
thank you,
Christian.
- --
BOFH excuse #284:
Electrons on a bender
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCVqiLC/PVm5+NVoYRAmsZAJ9PlBmKEi/lASAtY4xx+74FzBxxkQCggjoy
IBqhEVSNEgm7BhOVEJfBWY0=
=XgaG
-----END PGP SIGNATURE-----
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch ...
  2005-04-08 15:51                   ` Christian
@ 2005-04-08 15:57                     ` Tom Rini
  0 siblings, 0 replies; 17+ messages in thread
From: Tom Rini @ 2005-04-08 15:57 UTC (permalink / raw)
  To: Christian; +Cc: linuxppc-dev
On Fri, Apr 08, 2005 at 05:51:40PM +0200, Christian wrote:
> Tom Rini wrote:
> > 
> > If this works, I'd like to see this get into 2.6.12.  Please re-send to
> > akpm / this list.  Assuming it's just the above:
> > Acked-by: Tom Rini <trini@kernel.crashing.org>
> 
> yes! i just applied Leigh's patch (thanks!) to a pristine 2.6.11.6 and my
> PReP here booted fine:
>   http://www.nerdbynature.de/bits/hal/2.6.11.6/leigh/
Great.  Leigh, can you also submit to gregkh for 2.6.11.7?  Thanks.
-- 
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply	[flat|nested] 17+ messages in thread
* [PATCH 2.6.11+] ppc32: Make the Powerstack II Pro4000 boot again
  2005-04-08 11:36               ` Leigh Brown
  2005-04-08 14:54                 ` Tom Rini
@ 2005-04-09 11:33                 ` Leigh Brown
  2005-04-13  5:18                   ` Greg KH
  1 sibling, 1 reply; 17+ messages in thread
From: Leigh Brown @ 2005-04-09 11:33 UTC (permalink / raw)
  To: Andrew Morton, Greg KH; +Cc: linuxppc-dev, Tom Rini
On Fri, 8 Apr 2005 07:54:31 -0700 Tom Rini wrote:
> On Fri, Apr 08, 2005 at 12:36:02PM +0100, Leigh Brown wrote:
> > Tom Rini said:
> > > On Wed, Apr 06, 2005 at 03:47:13AM +0200, Christian wrote:
> > >> Tom Rini wrote:
> > >> > Can either of you verify that say 2.6.11.6 w/ "noresidual" on the
> > >> > command-line works?  Thanks.
> > >>
> > >> i booted vanilla 2.6.11.6 with noresidual (and "nopresidual" too, as
> > >> Sven sugggested), but the scsi errors did not went away :(
> > >>
> > >> on a side note, and perhaps totally unrelated: i always have
> > >> PROC_PREPRESIDUAL=y in my .config, but i never had /proc/residual as
> > >> promised from the help text.
> > >
> > > Odd.  I thought that only happened if you had no residual data at all
> > > (which can happen on Powerstacks, esp if netbooting the kernel).  But
> > > in that case the new code shouldn't be hit at all.  Leigh?
> > 
> > Hi, I'm back from my holidays, and have had a look at this.  As I spent
> > lots of time understanding the horrendous mess that was
> > prep_pcibios_fixup(), I'd be loath to back out the changes I made
> > (especially as they work so well for me ;-) ).
> > 
> > It turns out that prep_pib_init() is the culprit.  Although it would
> > appear to be coded for the non-openpic case, it obviously doesn't work.
> > The old version of prep_pcibios_fixup() only called it if there is an
> > openpic on the machine.  We can restore that behaviour with the
> > following patch:
> > 
> > --- prep_pci.c.orig	2005-04-08 11:49:25.743718088 +0000
> > +++ prep_pci.c	2005-04-08 12:23:00.541422280 +0000
> > @@ -1245,8 +1245,13 @@
> >  		pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
> >  	}
> > 
> > -	/* Setup the Winbond or Via PIB */
> > -	prep_pib_init();
> > +	/* Setup the Winbond or Via PIB - prep_pib_init() is coded for
> > +	 * the non-openpic case, but it breaks (at least) the Utah
> > +	 * (Powerstack II Pro4000), so only call it if we have an
> > +	 * openpic.
> > +	 */
> > +	if (have_openpic)
> > +		prep_pib_init();
> >  }
> > 
> >  static void __init
> > 
> > I've no idea even what machines would be affected by this, but it
> > fixes Sven's problem and restores the old behaviour, so that
> > can't be bad.
> > 
> > I guess fixing prep_pib_init() would be the better solution but
> > I wouldn't know where to start.  If this band-aid is good enough
> > I can submit a proper patch, if you like.
> 
> If this works, I'd like to see this get into 2.6.12.  Please re-send to
> akpm / this list.  Assuming it's just the above:
> Acked-by: Tom Rini <trini@kernel.crashing.org>
On Fri, 8 Apr 2005 08:57:17 -0700, Tom Rini wrote:
> On Fri, Apr 08, 2005 at 05:51:40PM +0200, Christian wrote:
> > Tom Rini wrote:
> > > 
> > > If this works, I'd like to see this get into 2.6.12.  Please re-send to
> > > akpm / this list.  Assuming it's just the above:
> > > Acked-by: Tom Rini <trini@kernel.crashing.org>
> > 
> > yes! i just applied Leigh's patch (thanks!) to a pristine 2.6.11.6 and my
> > PReP here booted fine:
> >   http://www.nerdbynature.de/bits/hal/2.6.11.6/leigh/
> 
> Great.  Leigh, can you also submit to gregkh for 2.6.11.7?  Thanks.
This patch restores the original behaviour of prep_pcibios_fixup() to
only call prep_pib_init() on machines with an openpic.  This allows
the Powerstack II Pro4000 to boot again.
Signed-off-by: Leigh Brown <leigh@solinno.co.uk>
--- linux-2.6/arch/ppc/platforms/prep_pci.c.orig	2005-04-08 16:55:53.336800298 +0200
+++ linux-2.6/arch/ppc/platforms/prep_pci.c	2005-04-08 16:56:01.818070165 +0200
@@ -1245,8 +1245,13 @@
 		pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
 	}
 
-	/* Setup the Winbond or Via PIB */
-	prep_pib_init();
+	/* Setup the Winbond or Via PIB - prep_pib_init() is coded for
+	 * the non-openpic case, but it breaks (at least) the Utah
+	 * (Powerstack II Pro4000), so only call it if we have an
+	 * openpic.
+	 */
+	if (have_openpic)
+		prep_pib_init();
 }
 
 static void __init
^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: [PATCH 2.6.11+] ppc32: Make the Powerstack II Pro4000 boot again
  2005-04-09 11:33                 ` [PATCH 2.6.11+] ppc32: Make the Powerstack II Pro4000 boot again Leigh Brown
@ 2005-04-13  5:18                   ` Greg KH
  0 siblings, 0 replies; 17+ messages in thread
From: Greg KH @ 2005-04-13  5:18 UTC (permalink / raw)
  To: Leigh Brown; +Cc: Andrew Morton, linuxppc-dev, Tom Rini
On Sat, Apr 09, 2005 at 12:33:17PM +0100, Leigh Brown wrote:
> On Fri, 8 Apr 2005 07:54:31 -0700 Tom Rini wrote:
> > On Fri, Apr 08, 2005 at 12:36:02PM +0100, Leigh Brown wrote:
> > > Tom Rini said:
> > > > On Wed, Apr 06, 2005 at 03:47:13AM +0200, Christian wrote:
> > > >> Tom Rini wrote:
> > > >> > Can either of you verify that say 2.6.11.6 w/ "noresidual" on the
> > > >> > command-line works?  Thanks.
> > > >>
> > > >> i booted vanilla 2.6.11.6 with noresidual (and "nopresidual" too, as
> > > >> Sven sugggested), but the scsi errors did not went away :(
> > > >>
> > > >> on a side note, and perhaps totally unrelated: i always have
> > > >> PROC_PREPRESIDUAL=y in my .config, but i never had /proc/residual as
> > > >> promised from the help text.
> > > >
> > > > Odd.  I thought that only happened if you had no residual data at all
> > > > (which can happen on Powerstacks, esp if netbooting the kernel).  But
> > > > in that case the new code shouldn't be hit at all.  Leigh?
> > > 
> > > Hi, I'm back from my holidays, and have had a look at this.  As I spent
> > > lots of time understanding the horrendous mess that was
> > > prep_pcibios_fixup(), I'd be loath to back out the changes I made
> > > (especially as they work so well for me ;-) ).
> > > 
> > > It turns out that prep_pib_init() is the culprit.  Although it would
> > > appear to be coded for the non-openpic case, it obviously doesn't work.
> > > The old version of prep_pcibios_fixup() only called it if there is an
> > > openpic on the machine.  We can restore that behaviour with the
> > > following patch:
> > > 
> > > --- prep_pci.c.orig	2005-04-08 11:49:25.743718088 +0000
> > > +++ prep_pci.c	2005-04-08 12:23:00.541422280 +0000
> > > @@ -1245,8 +1245,13 @@
> > >  		pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
> > >  	}
> > > 
> > > -	/* Setup the Winbond or Via PIB */
> > > -	prep_pib_init();
> > > +	/* Setup the Winbond or Via PIB - prep_pib_init() is coded for
> > > +	 * the non-openpic case, but it breaks (at least) the Utah
> > > +	 * (Powerstack II Pro4000), so only call it if we have an
> > > +	 * openpic.
> > > +	 */
> > > +	if (have_openpic)
> > > +		prep_pib_init();
> > >  }
> > > 
> > >  static void __init
> > > 
> > > I've no idea even what machines would be affected by this, but it
> > > fixes Sven's problem and restores the old behaviour, so that
> > > can't be bad.
> > > 
> > > I guess fixing prep_pib_init() would be the better solution but
> > > I wouldn't know where to start.  If this band-aid is good enough
> > > I can submit a proper patch, if you like.
> > 
> > If this works, I'd like to see this get into 2.6.12.  Please re-send to
> > akpm / this list.  Assuming it's just the above:
> > Acked-by: Tom Rini <trini@kernel.crashing.org>
> 
> On Fri, 8 Apr 2005 08:57:17 -0700, Tom Rini wrote:
> > On Fri, Apr 08, 2005 at 05:51:40PM +0200, Christian wrote:
> > > Tom Rini wrote:
> > > > 
> > > > If this works, I'd like to see this get into 2.6.12.  Please re-send to
> > > > akpm / this list.  Assuming it's just the above:
> > > > Acked-by: Tom Rini <trini@kernel.crashing.org>
> > > 
> > > yes! i just applied Leigh's patch (thanks!) to a pristine 2.6.11.6 and my
> > > PReP here booted fine:
> > >   http://www.nerdbynature.de/bits/hal/2.6.11.6/leigh/
> > 
> > Great.  Leigh, can you also submit to gregkh for 2.6.11.7?  Thanks.
> 
> This patch restores the original behaviour of prep_pcibios_fixup() to
> only call prep_pib_init() on machines with an openpic.  This allows
> the Powerstack II Pro4000 to boot again.
> 
> Signed-off-by: Leigh Brown <leigh@solinno.co.uk>
The proper place for -stable patches, is to have them sent to
stable@kernel.org with a valid changelog comment (not a ton of
context...)
Please do that, and it will be reviewed.
Also, is this patch already in mainline?
thanks,
greg k-h
^ permalink raw reply	[flat|nested] 17+ messages in thread
end of thread, other threads:[~2005-04-13  8:01 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-28 23:23 PREP sym53c8xx sym53c8xx brokeness due to 2.6.9-rc1-bk1 introduced residual data patch Sven Luther
2005-03-31 14:28 ` Tom Rini
2005-03-31 18:45   ` Sven Luther
2005-04-05  0:03     ` Christian
2005-04-05  5:39       ` Sven Luther
2005-04-05 14:38         ` Tom Rini
2005-04-05 15:23           ` Sven Luther
2005-04-05 15:47             ` Tom Rini
2005-04-06  1:47           ` Christian
2005-04-06  1:58             ` Christian
2005-04-06 18:50             ` Tom Rini
2005-04-08 11:36               ` Leigh Brown
2005-04-08 14:54                 ` Tom Rini
2005-04-08 15:51                   ` Christian
2005-04-08 15:57                     ` Tom Rini
2005-04-09 11:33                 ` [PATCH 2.6.11+] ppc32: Make the Powerstack II Pro4000 boot again Leigh Brown
2005-04-13  5:18                   ` Greg KH
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).