Serialization of IO
So I've gone back to the drawing board, and reviewed this issue as thoroughly as I can. The issue is PCI reads/writes can overlap with each other (not just writes). This shouldn't generally be an issue but if some reads take a while, for example, there could be another read/write on its way on another CPU and at least for our PCI 11n devices that will make them angry. Some PCI hosts don't seem to do this but some others do. It should be noted this issue is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized ah->config.serialize_regmode. We do that now only on non-UP systems. The last patch in the series is perhaps overkill -- but it would deal with rare case of a UP system coming up and you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.
Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/2009-02-11/serialization-v2.patch
This applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to come back.
I've been trying to look for a more neater way to guarantee serialization but so far this is what I have. I do wonder, for example, if some of the atomic.h (atomic_inc_and_test()) stuff may let us use it to somehow serialize CPU entry into a read/write. Although its not designed for it may be worth considering. I also some of the most evil code I've seen lately on drivers/pci/quirks.c and did wonder if there was a fix we can re-use through there but didn't see anything. If you know have any other ideas please let me know.
Luis
Quoted 29 lines · Luis R. Rodriguez
So I've gone back to the drawing board, and reviewed this issue as thoroughly as I can. The issue is PCI reads/writes can overlap with each other (not just writes). This shouldn't generally be an issue but if some reads take a while, for example, there could be another read/write on its way on another CPU and at least for our PCI 11n devices that will make them angry. Some PCI hosts don't seem to do this but some others do. It should be noted this issue is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now only on non-UP systems. The last patch in the series is perhaps overkill -- but it would deal with rare case of a UP system coming up and you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/2009-02-11/serialization-v2.patch
This applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to come back.
Quoted 8 lines
I've been trying to look for a more neater way to guarantee serialization but so far this is what I have. I do wonder, for example, if some of the
atomic.h(atomic_inc_and_test()) stuff may let us use it to somehow serialize CPU entry into a read/write. Although its not designed for it may be worth considering. I also some of the most evil code I've seen lately ondrivers/pci/quirks.cand did wonder if there was a fix we can re-use through there but didn't see anything. If you know have any other ideas please let me know.
Can someone who is able to reproduce the SMP issue please try these patches?
Luis
Quoted 50 lines
Quoted 29 lines · Luis R. Rodriguez
So I've gone back to the drawing board, and reviewed this issue as thoroughly as I can. The issue is PCI reads/writes can overlap with each other (not just writes). This shouldn't generally be an issue but if some reads take a while, for example, there could be another read/write on its way on another CPU and at least for our PCI 11n devices that will make them angry. Some PCI hosts don't seem to do this but some others do. It should be noted this issue is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now only on non-UP systems. The last patch in the series is perhaps overkill -- but it would deal with rare case of a UP system coming up and you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/2009-02-11/serialization-v2.patch
This applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to come back.
Quoted 9 lines
I've been trying to look for a more neater way to guarantee serialization
but so far this is what I have. I do wonder, for example, if some of theatomic.h(atomic_inc_and_test()) stuff may let us use it to somehow serialize CPU entry into a read/write. Although its not designed for it may be worth considering. I also some of the most evil code I've seen lately ondrivers/pci/quirks.cand did wonder if there was a fix we can re-use through there but didn't see anything. If you know have any other ideas please let me know.Can someone who is able to reproduce the SMP issue please try these patches?
Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Quoted 6 lines
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Hi Luis,
I am currently on holiday. I have patched the system. But had some issues because with the UDEV and also my notebook wouldnt connect anymore to the AP.
I had not had the time to dig into.
Sunday I will investigate it further.
Is it possible to create the patch against the mainstream RC instead of the RC4-wl? Then I can test it faster.
Sorry for the delay.
greetings,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 65 lines · On Monday 16 February 2009 11:18:28 W. van den Akker wrote:
Quoted 52 lines
On Wed, Feb 11, 2009 at 12:07 AM, Luis R. Rodriguez
Quoted 30 lines · <[email protected]> wrote:
So I've gone back to the drawing board, and reviewed this issue as thoroughly as I can. The issue is PCI reads/writes can overlap with each other (not just writes). This shouldn't generally be an issue but if some reads take a while, for example, there could be another read/write on its way on another CPU and at least for our PCI 11n devices that will make them angry. Some PCI hosts don't seem to do this but some others do. It should be noted this issue is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now only on non-UP systems. The last patch in the series is perhaps overkill -- but it would deal with rare case of a UP system coming up and you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/2009-
02-11/serialization-v2.patchThis applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to come back.
Quoted 9 lines
I've been trying to look for a more neater way to guarantee serialization
but so far this is what I have. I do wonder, for example, if some of theatomic.h(atomic_inc_and_test()) stuff may let us use it to somehow serialize CPU entry into a read/write. Although its not designed for it may be worth considering. I also some of the most evil code I've seen lately ondrivers/pci/quirks.cand did wonder if there was a fix we can re-use through there but didn't see anything. If you know have any other ideas please let me know.Can someone who is able to reproduce the SMP issue please try these patches?
Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-develQuoted 4 lines
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.Hi Luis,
I am currently on holiday. I have patched the system. But had some issues because with the UDEV and also my notebook wouldnt connect anymore to the AP.
I had not had the time to dig into.
Sunday I will investigate it further.
Quoted 5 lines
Is it possible to create the patch against the mainstream RC instead of the RC4-wl? Then I can test it faster.
Sorry for the delay.
I grabbed the latest git-testing today and applied the patch. The server is running for almost 2 hours now with a double CPU. No problems yet found. I have stressed the system. But no hangups.
Also the previous problems with UDEV are gone with this testing version.
So.... it looks like the patch is working for SMP systems
I will report tomorrow if its still up and running. But it looks promissing.
Greetings,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 76 lines · W. van den Akker
Quoted 65 lines · On Monday 16 February 2009 11:18:28 W. van den Akker wrote:
Quoted 52 lines
On Wed, Feb 11, 2009 at 12:07 AM, Luis R. Rodriguez
Quoted 30 lines · <[email protected]> wrote:
So I've gone back to the drawing board, and reviewed this issue as thoroughly as I can. The issue is PCI reads/writes can overlap with each other (not just writes). This shouldn't generally be an issue but if some reads take a while, for example, there could be another read/write on its way on another CPU and at least for our PCI 11n devices that will make them angry. Some PCI hosts don't seem to do this but some others do. It should be noted this issue is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now only on non-UP systems. The last patch in the series is perhaps overkill -- but it would deal with rare case of a UP system coming up and you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/2009-
02-11/serialization-v2.patchThis applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to come back.
Quoted 9 lines
I've been trying to look for a more neater way to guarantee serialization
but so far this is what I have. I do wonder, for example, if some of theatomic.h(atomic_inc_and_test()) stuff may let us use it to somehow serialize CPU entry into a read/write. Although its not designed for it may be worth considering. I also some of the most evil code I've seen lately ondrivers/pci/quirks.cand did wonder if there was a fix we can re-use through there but didn't see anything. If you know have any other ideas please let me know.Can someone who is able to reproduce the SMP issue please try these patches?
Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-develQuoted 4 lines
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.Hi Luis,
I am currently on holiday. I have patched the system. But had some issues because with the UDEV and also my notebook wouldnt connect anymore to the AP.
I had not had the time to dig into.
Sunday I will investigate it further.Quoted 5 lines
Is it possible to create the patch against the mainstream RC instead of the RC4-wl? Then I can test it faster.
Sorry for the delay.
I grabbed the latest git-testing today and applied the patch. The server is running for almost 2 hours now with a double CPU. No problems yet found. I have stressed the system. But no hangups.
Quoted 5 lines
Also the previous problems with UDEV are gone with this testing version.
So.... it looks like the patch is working for SMP systems
I will report tomorrow if its still up and running. But it looks promissing.
Willem,
thanks for the feedback so far -- you're the first to report back success on the patches curing your issues. I believe you may have also enabled maxcpus=1 before so just want to confirm that if you did have that that you removed that from your grub conf for the shiny new kernel + serialization patches.
Luis
Quoted 86 lines · On Monday 23 February 2009 18:31:46 Luis R. Rodriguez wrote:
Quoted 76 lines · W. van den Akker
Quoted 66 lines · On Monday 16 February 2009 11:18:28 W. van den Akker wrote:
Quoted 53 lines
On Wed, Feb 11, 2009 at 12:07 AM, Luis R. Rodriguez
Quoted 31 lines · <[email protected]> wrote:
So I've gone back to the drawing board, and reviewed this issue as thoroughly as I can. The issue is PCI reads/writes can overlap with each other (not just writes). This shouldn't generally be an issue but if some reads take a while, for example, there could be another read/write on its way on another CPU and at least for our PCI 11n devices that will make them angry. Some PCI hosts don't seem to do this but some others do. It should be noted this issue is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now only on non-UP systems. The last patch in the series is perhaps overkill -- but it would deal with rare case of a UP system coming up and you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/2
009-02-11/serialization-v2.patchThis applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to come back.
Quoted 9 lines
I've been trying to look for a more neater way to guarantee serialization
but so far this is what I have. I do wonder, for example, if some of theatomic.h(atomic_inc_and_test()) stuff may let us use it to somehow serialize CPU entry into a read/write. Although its not designed for it may be worth considering. I also some of the most evil code I've seen lately ondrivers/pci/quirks.cand did wonder if there was a fix we can re-use through there but didn't see anything. If you know have any other ideas please let me know.Can someone who is able to reproduce the SMP issue please try these patches?
Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-develQuoted 4 lines
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.Hi Luis,
I am currently on holiday. I have patched the system. But had some issues because with the UDEV and also my notebook wouldnt connect anymore to the AP.
I had not had the time to dig into.
Sunday I will investigate it further.Quoted 4 lines
Is it possible to create the patch against the mainstream RC instead of the RC4-wl? Then I can test it faster.
Sorry for the delay.
I grabbed the latest git-testing today and applied the patch. The server is running for almost 2 hours now with a double CPU. No problems yet found. I have stressed the system. But no hangups.
Quoted 6 lines
Also the previous problems with UDEV are gone with this testing version.
So.... it looks like the patch is working for SMP systems
I will report tomorrow if its still up and running. But it looks promissing.
Willem,
Quoted 7 lines
thanks for the feedback so far -- you're the first to report back success on the patches curing your issues. I believe you may have also enabled maxcpus=1 before so just want to confirm that if you did have that that you removed that from your grub conf for the shiny new kernel + serialization patches.
Luis
Correct, I downloaded the last testing-writeless.. applied the patch and removed the maxcpus=1 from the grub conf.
The server is showing 2 CPUs.
Now almost 24 hours up and running without any problems.
gr,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 93 lines · W. van den Akker
Quoted 92 lines · On Monday 23 February 2009 18:31:46 Luis R. Rodriguez wrote:
Quoted 76 lines · W. van den Akker
Quoted 66 lines · On Monday 16 February 2009 11:18:28 W. van den Akker wrote:
Quoted 53 lines
On Wed, Feb 11, 2009 at 12:07 AM, Luis R. Rodriguez
Quoted 31 lines · <[email protected]> wrote:
So I've gone back to the drawing board, and reviewed this issue as thoroughly as I can. The issue is PCI reads/writes can overlap with each other (not just writes). This shouldn't generally be an issue but if some reads take a while, for example, there could be another read/write on its way on another CPU and at least for our PCI 11n devices that will make them angry. Some PCI hosts don't seem to do this but some others do. It should be noted this issue is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now only on non-UP systems. The last patch in the series is perhaps overkill -- but it would deal with rare case of a UP system coming up and you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/2
009-02-11/serialization-v2.patchThis applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to come back.
Quoted 9 lines
I've been trying to look for a more neater way to guarantee serialization
but so far this is what I have. I do wonder, for example, if some of theatomic.h(atomic_inc_and_test()) stuff may let us use it to somehow serialize CPU entry into a read/write. Although its not designed for it may be worth considering. I also some of the most evil code I've seen lately ondrivers/pci/quirks.cand did wonder if there was a fix we can re-use through there but didn't see anything. If you know have any other ideas please let me know.Can someone who is able to reproduce the SMP issue please try these patches?
Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-develQuoted 4 lines
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.Hi Luis,
I am currently on holiday. I have patched the system. But had some issues because with the UDEV and also my notebook wouldnt connect anymore to the AP.
I had not had the time to dig into.
Sunday I will investigate it further.Quoted 4 lines
Is it possible to create the patch against the mainstream RC instead of the RC4-wl? Then I can test it faster.
Sorry for the delay.
I grabbed the latest git-testing today and applied the patch. The server is running for almost 2 hours now with a double CPU. No problems yet found. I have stressed the system. But no hangups.
Quoted 6 lines
Also the previous problems with UDEV are gone with this testing version.
So.... it looks like the patch is working for SMP systems
I will report tomorrow if its still up and running. But it looks promissing.
Willem,
thanks for the feedback so far -- you're the first to report back success on the patches curing your issues. I believe you may have also enabled maxcpus=1 before so just want to confirm that if you did have that that you removed that from your grub conf for the shiny new kernel + serialization patches.
Quoted 7 lines
Quoted 1 line
Luis
Correct, I downloaded the last testing-writeless.. applied the patch and removed the maxcpus=1 from the grub conf.
The server is showing 2 CPUs.
Now almost 24 hours up and running without any problems.
Thanks for the confirmation -- are you using AR5416 PCI? Just want to confirm as well.
Luis
Quoted 1 line · On Monday 23 February 2009 18:48:09 Luis R. Rodriguez wrote:
On Mon, Feb 23, 2009 at 9:45 AM, W. van den Akker <[email protected]>
Quoted 103 lines · wrote:
Quoted 96 lines · On Monday 23 February 2009 18:31:46 Luis R. Rodriguez wrote:
Quoted 95 lines · W. van den Akker
Quoted 78 lines · On Monday 16 February 2009 11:18:28 W. van den Akker wrote:
Quoted 68 lines
Quoted 55 lines
On Wed, Feb 11, 2009 at 12:07 AM, Luis R. Rodriguez
Quoted 32 lines · <[email protected]> wrote:
So I've gone back to the drawing board, and reviewed this issue as thoroughly as I can. The issue is PCI reads/writes can overlap with each other (not just writes). This shouldn't generally be an issue but if some reads take a while, for example, there could be another read/write on its way on another CPU and at least for our PCI 11n devices that will make them angry. Some PCI hosts don't seem to do this but some others do. It should be noted this issue is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now only on non-UP systems. The last patch in the series is perhaps overkill -- but it would deal with rare case of a UP system coming up and you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9
k/2 009-02-11/serialization-v2.patchThis applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to come back.
Quoted 10 lines
I've been trying to look for a more neater way to guarantee serialization
but so far this is what I have. I do wonder, for example, if some of theatomic.h(atomic_inc_and_test()) stuff may let us use it to somehow serialize CPU entry into a read/write. Although its not designed for it may be worth considering. I also some of the most evil code I've seen lately ondrivers/pci/quirks.cand did wonder if there was a fix we can re-use through there but didn't see anything. If you know have any other ideas please let me know.Can someone who is able to reproduce the SMP issue please try these patches?
Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-develQuoted 4 lines
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.Hi Luis,
I am currently on holiday. I have patched the system. But had some issues because with the UDEV and also my notebook wouldnt connect anymore to the AP.
I had not had the time to dig into.
Sunday I will investigate it further.Quoted 4 lines
Is it possible to create the patch against the mainstream RC instead of the RC4-wl? Then I can test it faster.
Sorry for the delay.
I grabbed the latest git-testing today and applied the patch. The server is running for almost 2 hours now with a double CPU. No problems yet found. I have stressed the system. But no hangups.
Quoted 7 lines
Also the previous problems with UDEV are gone with this testing version.
So.... it looks like the patch is working for SMP systems
I will report tomorrow if its still up and running. But it looks promissing.
Willem,
thanks for the feedback so far -- you're the first to report back success on the patches curing your issues. I believe you may have also enabled maxcpus=1 before so just want to confirm that if you did have that that you removed that from your grub conf for the shiny new kernel
+ serialization patches.Quoted 6 lines
Quoted 1 line
Luis
Correct, I downloaded the last testing-writeless.. applied the patch and removed the maxcpus=1 from the grub conf.
The server is showing 2 CPUs.
Now almost 24 hours up and running without any problems.
Quoted 4 lines
Thanks for the confirmation -- are you using AR5416 PCI? Just want to confirm as well.
Luis
Yes, its a WMP300N v2 PCI card with a AR5416.
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 1 line · On Monday 23 February 2009 18:48:09 Luis R. Rodriguez wrote:
On Mon, Feb 23, 2009 at 9:45 AM, W. van den Akker <[email protected]>
Quoted 103 lines · wrote:
Quoted 96 lines · On Monday 23 February 2009 18:31:46 Luis R. Rodriguez wrote:
Quoted 95 lines · W. van den Akker
Quoted 78 lines · On Monday 16 February 2009 11:18:28 W. van den Akker wrote:
Quoted 68 lines
Quoted 55 lines
On Wed, Feb 11, 2009 at 12:07 AM, Luis R. Rodriguez
Quoted 32 lines · <[email protected]> wrote:
So I've gone back to the drawing board, and reviewed this issue as thoroughly as I can. The issue is PCI reads/writes can overlap with each other (not just writes). This shouldn't generally be an issue but if some reads take a while, for example, there could be another read/write on its way on another CPU and at least for our PCI 11n devices that will make them angry. Some PCI hosts don't seem to do this but some others do. It should be noted this issue is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now only on non-UP systems. The last patch in the series is perhaps overkill -- but it would deal with rare case of a UP system coming up and you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9
k/2 009-02-11/serialization-v2.patchThis applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to come back.
Quoted 10 lines
I've been trying to look for a more neater way to guarantee serialization
but so far this is what I have. I do wonder, for example, if some of theatomic.h(atomic_inc_and_test()) stuff may let us use it to somehow serialize CPU entry into a read/write. Although its not designed for it may be worth considering. I also some of the most evil code I've seen lately ondrivers/pci/quirks.cand did wonder if there was a fix we can re-use through there but didn't see anything. If you know have any other ideas please let me know.Can someone who is able to reproduce the SMP issue please try these patches?
Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-develQuoted 4 lines
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.Hi Luis,
I am currently on holiday. I have patched the system. But had some issues because with the UDEV and also my notebook wouldnt connect anymore to the AP.
I had not had the time to dig into.
Sunday I will investigate it further.Quoted 4 lines
Is it possible to create the patch against the mainstream RC instead of the RC4-wl? Then I can test it faster.
Sorry for the delay.
I grabbed the latest git-testing today and applied the patch. The server is running for almost 2 hours now with a double CPU. No problems yet found. I have stressed the system. But no hangups.
Quoted 7 lines
Also the previous problems with UDEV are gone with this testing version.
So.... it looks like the patch is working for SMP systems
I will report tomorrow if its still up and running. But it looks promissing.
Willem,
thanks for the feedback so far -- you're the first to report back success on the patches curing your issues. I believe you may have also enabled maxcpus=1 before so just want to confirm that if you did have that that you removed that from your grub conf for the shiny new kernel
+ serialization patches.Quoted 6 lines
Quoted 1 line
Luis
Correct, I downloaded the last testing-writeless.. applied the patch and removed the maxcpus=1 from the grub conf.
The server is showing 2 CPUs.
Now almost 24 hours up and running without any problems.
Quoted 4 lines
Thanks for the confirmation -- are you using AR5416 PCI? Just want to confirm as well.
Luis
hmmm,
After 23,5 hours of problemless working the server hangs. Also without any trace or oops.
Close but no sigar.... anyhow ... I think we are almost there.
gr,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 109 lines · W. van den Akker
Quoted 1 line · On Monday 23 February 2009 18:48:09 Luis R. Rodriguez wrote:
On Mon, Feb 23, 2009 at 9:45 AM, W. van den Akker <[email protected]>
Quoted 106 lines · wrote:
Quoted 96 lines · On Monday 23 February 2009 18:31:46 Luis R. Rodriguez wrote:
Quoted 95 lines · W. van den Akker
Quoted 78 lines · On Monday 16 February 2009 11:18:28 W. van den Akker wrote:
Quoted 68 lines
Quoted 55 lines
On Wed, Feb 11, 2009 at 12:07 AM, Luis R. Rodriguez
Quoted 32 lines · <[email protected]> wrote:
So I've gone back to the drawing board, and reviewed this issue as thoroughly as I can. The issue is PCI reads/writes can overlap with each other (not just writes). This shouldn't generally be an issue but if some reads take a while, for example, there could be another read/write on its way on another CPU and at least for our PCI 11n devices that will make them angry. Some PCI hosts don't seem to do this but some others do. It should be noted this issue is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now only on non-UP systems. The last patch in the series is perhaps overkill -- but it would deal with rare case of a UP system coming up and you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9
k/2 009-02-11/serialization-v2.patchThis applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to come back.
Quoted 10 lines
I've been trying to look for a more neater way to guarantee serialization
but so far this is what I have. I do wonder, for example, if some of theatomic.h(atomic_inc_and_test()) stuff may let us use it to somehow serialize CPU entry into a read/write. Although its not designed for it may be worth considering. I also some of the most evil code I've seen lately ondrivers/pci/quirks.cand did wonder if there was a fix we can re-use through there but didn't see anything. If you know have any other ideas please let me know.Can someone who is able to reproduce the SMP issue please try these patches?
Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-develQuoted 4 lines
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.Hi Luis,
I am currently on holiday. I have patched the system. But had some issues because with the UDEV and also my notebook wouldnt connect anymore to the AP.
I had not had the time to dig into.
Sunday I will investigate it further.Quoted 4 lines
Is it possible to create the patch against the mainstream RC instead of the RC4-wl? Then I can test it faster.
Sorry for the delay.
I grabbed the latest git-testing today and applied the patch. The server is running for almost 2 hours now with a double CPU. No problems yet found. I have stressed the system. But no hangups.
Quoted 7 lines
Also the previous problems with UDEV are gone with this testing version.
So.... it looks like the patch is working for SMP systems
I will report tomorrow if its still up and running. But it looks promissing.
Willem,
thanks for the feedback so far -- you're the first to report back success on the patches curing your issues. I believe you may have also enabled maxcpus=1 before so just want to confirm that if you did have that that you removed that from your grub conf for the shiny new kernel
+ serialization patches.Quoted 6 lines
Quoted 1 line
Luis
Correct, I downloaded the last testing-writeless.. applied the patch and removed the maxcpus=1 from the grub conf.
The server is showing 2 CPUs.
Now almost 24 hours up and running without any problems.Thanks for the confirmation -- are you using AR5416 PCI? Just want to confirm as well.
Quoted 7 lines
Quoted 1 line
Luis
hmmm,
After 23,5 hours of problemless working the server hangs. Also without any trace or oops.
Close but no sigar.... anyhow ... I think we are almost there.
We may be dealing with two separate issues here. Before the serialization patches (or if you revert them) how long before you box hangs?
Luis
Quoted 143 lines
Quoted 133 lines · W. van den Akker
Quoted 1 line · On Monday 23 February 2009 18:48:09 Luis R. Rodriguez wrote:
On Mon, Feb 23, 2009 at 9:45 AM, W. van den Akker <[email protected]>
Quoted 130 lines · wrote:
Quoted 7 lines · On Monday 23 February 2009 18:31:46 Luis R. Rodriguez wrote:
Quoted 6 lines · W. van den Akker
Quoted 5 lines · On Monday 16 February 2009 11:18:28 W. van den Akker wrote:
Quoted 4 lines
Quoted 4 lines
On Wed, Feb 11, 2009 at 12:07 AM, Luis R. Rodriguez
Quoted 1 line · <[email protected]> wrote:
So I've gone back to the drawing board, and reviewed this
issue
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
as thoroughly as I can. The issue is PCI reads/writes can
overlap
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
with each other (not just writes). This shouldn't generally
be an
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
issue but if some reads take a while, for example, there
could be
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
another read/write on its way on another CPU and at least for
our
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
PCI 11n devices that will make them angry. Some PCI hosts
don't
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
seem to do this but some others do. It should be noted this
issue
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now onlyon
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
non-UP systems. The last patch in the series is perhaps
overkill
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
-- but it would deal with rare case of a UP system coming up
and
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.
Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9
k/2 009-02-11/serialization-v2.patchQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
This applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to
come
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
back.
I've been trying to look for a more neater way to guarantee serialization
but so far this is what I have. I do wonder, for example, ifsome
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
of the
atomic.h(atomic_inc_and_test()) stuff may let us useit
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
to somehow serialize CPU entry into a read/write. Although
its
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
not designed for it may be worth considering. I also some of
the
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
most evil code I've seen lately on
drivers/pci/quirks.canddid
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
wonder if there was a fix we can re-use through there but
didn't
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 2 lines
see anything. If you know have any other ideas please let me know.
Can someone who is able to reproduce the SMP issue please try these patches?
Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-develQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.Hi Luis,
I am currently on holiday. I have patched the system. But had
some
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
issues because with the UDEV and also my notebook wouldnt
connect
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
anymore to the AP.
I had not had the time to dig into.
Sunday I will investigate it further.Is it possible to create the patch against the mainstream RC
instead
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 3 lines
of the RC4-wl? Then I can test it faster.
Sorry for the delay.
I grabbed the latest git-testing today and applied the patch. The server is running for almost 2 hours now with a double CPU. No problems yet found. I have stressed the system. But no hangups.
Also the previous problems with UDEV are gone with this testing version.
So.... it looks like the patch is working for SMP systems
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
I will report tomorrow if its still up and running. But it looks promissing.
Willem,
thanks for the feedback so far -- you're the first to report back success on the patches curing your issues. I believe you may have
also
Quoted 1 line
Quoted 1 line
enabled maxcpus=1 before so just want to confirm that if you did
have
Quoted 1 line
Quoted 1 line
that that you removed that from your grub conf for the shiny new
kernel
Quoted 5 lines
Quoted 3 lines
+ serialization patches.
Luis
Correct, I downloaded the last testing-writeless.. applied the patch
and
Quoted 3 lines
removed the maxcpus=1 from the grub conf.
The server is showing 2 CPUs.
Now almost 24 hours up and running without any problems.Thanks for the confirmation -- are you using AR5416 PCI? Just want to confirm as well.
Quoted 7 lines
Quoted 1 line
Luis
hmmm,
After 23,5 hours of problemless working the server hangs. Also without any trace or oops.
Close but no sigar.... anyhow ... I think we are almost there.
Quoted 5 lines
We may be dealing with two separate issues here. Before the serialization patches (or if you revert them) how long before you box hangs?
Luis
Before the patches applied the box hangs within minutes. After the patch the box operated 23.5 hours without problems.
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 143 lines · W. van den Akker
Quoted 143 lines
Quoted 140 lines · W. van den Akker
Quoted 1 line · On Monday 23 February 2009 18:48:09 Luis R. Rodriguez wrote:
On Mon, Feb 23, 2009 at 9:45 AM, W. van den Akker <[email protected]>
Quoted 123 lines · wrote:
Quoted 7 lines · On Monday 23 February 2009 18:31:46 Luis R. Rodriguez wrote:
Quoted 6 lines · W. van den Akker
Quoted 5 lines · On Monday 16 February 2009 11:18:28 W. van den Akker wrote:
Quoted 4 lines
Quoted 4 lines
On Wed, Feb 11, 2009 at 12:07 AM, Luis R. Rodriguez
Quoted 1 line · <[email protected]> wrote:
So I've gone back to the drawing board, and reviewed this
issue
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
as thoroughly as I can. The issue is PCI reads/writes can
overlap
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
with each other (not just writes). This shouldn't generally
be an
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
issue but if some reads take a while, for example, there
could be
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
another read/write on its way on another CPU and at least for
our
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
PCI 11n devices that will make them angry. Some PCI hosts
don't
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
seem to do this but some others do. It should be noted this
issue
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
is not present on our pre-802.11n devices or our new 11n PCI-express devices.
So with clarified, here's a second attempt at serialization. The first patch wasn't doing anything because we never initialized
ah->config.serialize_regmode. We do that now onlyon
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
non-UP systems. The last patch in the series is perhaps
overkill
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
-- but it would deal with rare case of a UP system coming up
and
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
you hotplugging a second CPU later. It may also help with suspend, but don't quote me on that yet.
Anyway, here's the latest stab at it:
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9
k/2 009-02-11/serialization-v2.patchQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
This applies against today's wireless-testing/compat-wireless updates.
Please test and let me know if ath9k with PCI devices on HT/Multi-CPU issues are corrected by it.
Known issue: ping flood in a terminal makes it painful to
come
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
back.
I've been trying to look for a more neater way to guarantee serialization
but so far this is what I have. I do wonder, for example, ifsome
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
of the
atomic.h(atomic_inc_and_test()) stuff may let us useit
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
to somehow serialize CPU entry into a read/write. Although
its
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
not designed for it may be worth considering. I also some of
the
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
most evil code I've seen lately on
drivers/pci/quirks.canddid
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
wonder if there was a fix we can re-use through there but
didn't
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 2 lines
see anything. If you know have any other ideas please let me know.
Can someone who is able to reproduce the SMP issue please try these patches?
? Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-develQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.Hi Luis,
I am currently on holiday. I have patched the system. But had
some
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
issues because with the UDEV and also my notebook wouldnt
connect
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
anymore to the AP.
I had not had the time to dig into.
Sunday I will investigate it further.Is it possible to create the patch against the mainstream RC
instead
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 3 lines
of the RC4-wl? Then I can test it faster.
Sorry for the delay.
I grabbed the latest git-testing today and applied the patch. The server is running for almost 2 hours now with a double CPU. No problems yet found. I have stressed the system. But no hangups.
Also the previous problems with UDEV are gone with this testing version.
So.... it looks like the patch is working for SMP systems
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
I will report tomorrow if its still up and running. But it looks promissing.
Willem,
thanks for the feedback so far -- you're the first to report back success on the patches curing your issues. I believe you may have
also
Quoted 1 line
Quoted 1 line
enabled maxcpus=1 before so just want to confirm that if you did
have
Quoted 1 line
Quoted 1 line
that that you removed that from your grub conf for the shiny new
kernel
Quoted 5 lines
Quoted 3 lines
+ serialization patches.
? Luis
Correct, I downloaded the last testing-writeless.. applied the patch
and
Quoted 8 lines
Quoted 3 lines
removed the maxcpus=1 from the grub conf.
The server is showing 2 CPUs.
Now almost 24 hours up and running without any problems.Thanks for the confirmation -- are you using AR5416 PCI? Just want to confirm as well.
? Luis
hmmm,
After 23,5 hours of problemless working the server hangs. Also without any trace or oops.
Close but no sigar.... anyhow ... I think we are almost there.
Quoted 8 lines
Quoted 5 lines
We may be dealing with two separate issues here. Before the serialization patches (or if you revert them) how long before you box hangs?
? Luis
Before the patches applied the box hangs within minutes. After the patch the box operated 23.5 hours without problems.
Excellent so we will push these in -- please give the new series a shot that I just posted.
Luis