FireWire fixes
Linus, please pull from the for-linus branch at
git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6.git for-linus
to receive a hardware quirk entry and a small makefile correction. Thanks.
Heikki Lindholm (1):
firewire: ohci: activate cycle timer register quirk on Ricoh chips
Stefan Richter (1):
firewire: nosy: fix build when CONFIG_FIREWIRE=N
drivers/Makefile | 2 +- drivers/firewire/ohci.c | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)
Full log and diff:
commit 8702d33aa6e6d753ef99163afe48aba1323374ef
Author: Stefan Richter <[email protected]> Date: Wed Sep 15 13:02:44 2010 +0200
firewire: nosy: fix build when CONFIG_FIREWIRE=N
drivers/firewire/nosy* is a stand-alone driver that does not depend on CONFIG_FIREWIRE. Hence let make descend into drivers/firewire/ also if that option is off.
The stand-alone driver drivers/ieee1394/init_ohci1394_dma* will soon be moved into drivers/firewire/ too and will require the same makefile fix.
Side effect:
As mentioned in https://bugzilla.novell.com/show_bug.cgi?id=586172#c24
this influences the order in which either firewire-ohci or ohci1394 is going to be bound to an OHCI-1394 controller in case of a modular build of both drivers if no modprobe blacklist entries are configured. However, a user of such a setup cannot expect deterministic behavior anyway. The Kconfig help and the migration guide at ieee1394.wiki.kernel.org recommend blacklist entries when a dual IEEE 1394 stack build is being used. (The coexistence period of the two stacks is planned to end soon.)
drivers/Makefile +1 -1
@@ -50,7 +50,7 @@ obj-$(CONFIG_SPI) += spi/ obj-y += net/ obj-$(CONFIG_ATM) += atm/ obj-$(CONFIG_FUSION) += message/ -obj-$(CONFIG_FIREWIRE) += firewire/ +obj-y += firewire/ obj-y += ieee1394/ obj-$(CONFIG_UIO) += uio/ obj-y += cdrom/
commit 970f4be85ae6ecf97b711a3a2a1d5cecd3ea0534
Author: Heikki Lindholm <[email protected]> Date: Mon Sep 6 22:30:45 2010 +0300
firewire: ohci: activate cycle timer register quirk on Ricoh chips
The Ricoh FireWire controllers appear to have the non-atomic cycle timer register access bug, so, activate the driver workaround by default.
The behaviour was observed on:
Ricoh Co Ltd R5C552 IEEE 1394 Controller [1180:0552] and Ricoh Co Ltd R5C832 IEEE 1394 Controller [1180:0832] (rev 04).
drivers/firewire/ohci.c +1 -0
@@ -263,6 +263,7 @@ static const struct { {PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB38X_FW, QUIRK_NO_MSI}, {PCI_VENDOR_ID_NEC, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, {PCI_VENDOR_ID_VIA, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, + {PCI_VENDOR_ID_RICOH, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, {PCI_VENDOR_ID_APPLE, PCI_DEVICE_ID_APPLE_UNI_N_FW, QUIRK_BE_HEADERS}, };
Signature · 3 lines
Stefan Richter -=====-==-=- =--= =---= http://arcgraph.de/sr/
Quoted 9 lines · Stefan Richter
Linus, please pull from the for-linus branch at
git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6.git for-linusto receive a hardware quirk entry and a small makefile correction. Thanks.
Heikki Lindholm (1):
firewire: ohci: activate cycle timer register quirk on Ricoh chips
That did it, the strange oops I had with new firewire stack is gone. (I have the Ricoh chip in the laptop)
However the new stack is still very much unusable:
Running new stack on the laptop + old stack on the desktop gave me about 18-30 Mbit/s speeds varying all the time.
Running both with the new stack results in corrupted packets and sftp exits immediately.
The problems I so hoped to be fixed in new stack still persist:
Cable disconection/reconnection still results in the link loss till ifconfig down/up.
Suspend/resume also results in the link loss.
Driver still has panics on some occasions.
Best regards,
Maxim Levitsky
Quoted 82 lines
Stefan Richter (1):
firewire: nosy: fix build whenCONFIG_FIREWIRE=Ndrivers/Makefile | 2 +- drivers/firewire/ohci.c | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)Full log and diff:
commit
8702d33aa6e6d753ef99163afe48aba1323374efAuthor: Stefan Richter <[email protected]> Date: Wed Sep 15 13:02:44 2010 +0200firewire: nosy: fix build when
CONFIG_FIREWIRE=N
drivers/firewire/nosy*is a stand-alone driver that does not depend onCONFIG_FIREWIRE. Hence let make descend intodrivers/firewire/also if that option is off.The stand-alone driver
drivers/ieee1394/init_ohci1394_dma*will soon be moved intodrivers/firewire/too and will require the same makefile fix.Side effect:
As mentioned in https://bugzilla.novell.com/show_bug.cgi?id=586172#c24
this influences the order in which either firewire-ohci or ohci1394 is going to be bound to an OHCI-1394 controller in case of a modular build of both drivers if no modprobe blacklist entries are configured. However, a user of such a setup cannot expect deterministic behavior anyway. TheKconfighelp and the migration guide at ieee1394.wiki.kernel.org recommend blacklist entries when a dual IEEE 1394 stack build is being used. (The coexistence period of the two stacks is planned to end soon.)Cc Michal Marek <[email protected]>Signed-off-by Stefan Richter <[email protected]>drivers/Makefile +1
-1@@ -50,7 +50,7 @@ obj-$(CONFIG_SPI) += spi/ obj-y += net/ obj-$(CONFIG_ATM) += atm/ obj-$(CONFIG_FUSION) += message/ -obj-$(CONFIG_FIREWIRE) += firewire/ +obj-y += firewire/ obj-y += ieee1394/ obj-$(CONFIG_UIO) += uio/ obj-y += cdrom/commit
970f4be85ae6ecf97b711a3a2a1d5cecd3ea0534Author: Heikki Lindholm <[email protected]> Date: Mon Sep 6 22:30:45 2010 +0300firewire: ohci: activate cycle timer register quirk on Ricoh chips
The Ricoh FireWire controllers appear to have the non-atomic cycle timer register access bug, so, activate the driver workaround by default.
The behaviour was observed on:
Ricoh Co Ltd R5C552 IEEE 1394 Controller [1180:0552] and Ricoh Co Ltd R5C832 IEEE 1394 Controller [1180:0832] (rev 04).Signed-off-by Heikki Lindholm <[email protected]>Signed-off-by Stefan Richter <[email protected]>drivers/firewire/ohci.c +1
-0@@ -263,6 +263,7 @@ static const struct { {PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB38X_FW, QUIRK_NO_MSI}, {PCI_VENDOR_ID_NEC, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, {PCI_VENDOR_ID_VIA, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, + {PCI_VENDOR_ID_RICOH, PCI_ANY_ID, QUIRK_CYCLE_TIMER}, {PCI_VENDOR_ID_APPLE, PCI_DEVICE_ID_APPLE_UNI_N_FW, QUIRK_BE_HEADERS}, };
Quoted 4 lines · Maxim Levitsky
Running new stack on the laptop + old stack on the desktop gave me about 18-30 Mbit/s speeds varying all the time.
Running both with the new stack results in corrupted packets and sftp exits immediately.
firewire-net, the IP over 1394 driver, is still marked as experimental not because somebody forgot to remove that mark but because we mean it. But so is its older counterpart, eth1394. Both eth1394 and firewire-net are chronically
underused and undermaintained.
Quoted 6 lines
The problems I so hoped to be fixed in new stack still persist:
Cable disconection/reconnection still results in the link loss till ifconfig down/up.
Suspend/resume also results in the link loss.
Sounds like something that shouldn't be too hard to fix by anybody who can spare the time. Surely a higher-level problem somewhere in firewire-net.
Quoted 1 line
Driver still has panics on some occasions.
At the moment I suspect that this OTOH might not be a firewire-net problem but possibly a race in firewire-ohci which is only triggered by workload as firewire-net imposes it (heavy AT context usage).
Signature · 3 lines
Stefan Richter -=====-==-=- =--= =--=- http://arcgraph.de/sr/
Quoted 10 lines · Stefan Richter
Quoted 4 lines · Maxim Levitsky
Running new stack on the laptop + old stack on the desktop gave me about 18-30 Mbit/s speeds varying all the time.
Running both with the new stack results in corrupted packets and sftp exits immediately.firewire-net, the IP over 1394 driver, is still marked as experimental not because somebody forgot to remove that mark but because we mean it. But so is its older counterpart, eth1394. Both eth1394 and firewire-net are chronically
underused and undermaintained.
I sure do understand it!
I just did another round of testing and report the results.
Do you have an idea what could cause such low speeds?
Quoted 8 lines
Quoted 7 lines
The problems I so hoped to be fixed in new stack still persist:
Cable disconection/reconnection still results in the link loss till ifconfig down/up.
Suspend/resume also results in the link loss.
Quoted 8 lines
Sounds like something that shouldn't be too hard to fix by anybody who can spare the time. Surely a higher-level problem somewhere in firewire-net.
Quoted 1 line
Driver still has panics on some occasions.
At the moment I suspect that this OTOH might not be a firewire-net problem but possibly a race in firewire-ohci which is only triggered by workload as firewire-net imposes it (heavy AT context usage).
Thanks for information!
Best regards,
Maxim Levitsky
Quoted 8 lines · Peter Stuge
Quoted 4 lines · Stefan Richter
Quoted 2 lines
Cable disconection/reconnection still results in the link loss till ifconfig down/up.
Surely a higher-level problem somewhere in firewire-net.
How to deal with cable glitch? The cable might as well never be attached again. A timeout? How long? There's a timeout also in SBP-2 IIRC?
Not that.
I mean I expect that if I plug the cable in, I expect the interface to start working right away, without need of ifconfig up/down as is the case with ethernet.
(assuming that I did set the IP of the interface beforehand).
Best regards,
Maxim Levitsky
Quoted 4 lines · Stefan Richter
Quoted 2 lines
Cable disconection/reconnection still results in the link loss till ifconfig down/up.
Surely a higher-level problem somewhere in firewire-net.
How to deal with cable glitch? The cable might as well never be attached again. A timeout? How long? There's a timeout also in SBP-2 IIRC?
//Peter