rtl8187: feedback transmitted packets using tx close descriptor for 8187B
Quoted 4 lines · Larry Finger
Quoted 1 line
Signed-off-by Herton Ronaldo KrzesinskiTested-by Larry Finger <[email protected]>
I tried with this combo:
compat-wireless: master-2008-10-31
wireless-testing: v2.6.28-rc2-4239-gd80fe00
and applying the two patches on top, they applies cleanly and compile okay except for some warnings in a different module about missing symbols (<something>_sta) but the result dies very painfully with a kernel oops:
-------------
BUG: unable to handle kernel NULL pointer dereference at 0000000000000307 IP: [<ffffffffa0105988>] rtl8187_probe+0x7f/0x836 [rtl8187] PGD 754c4067 PUD 751d5067 PMD 0 Oops: 0002 [1] SMP CPU 0 Modules linked in: rtl8187(+) snd_page_alloc video firewire_ohci firewire_core shpchp pcspkr eeprom_93cx6 output ac battery joydev r8169 crc_itu_t soundcore i2c_piix4 k8temp hwmon pata_atiixp radeon drm i2c_algo_bit i2c_core Pid: 829, comm: modprobe Not tainted 2.6.27.4-73.fc10.x86_64 #1 RIP: 0010:[<ffffffffa0105988>] [<ffffffffa0105988>] rtl8187_probe+0x7f/0x836 [rtl8187] RSP: 0018:ffff880074de1c48 EFLAGS: 00010246 RAX: ffffffffa0108520 RBX: ffff880074de1cd0 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffff8800754763c8 RDI: 0000000000000040 RBP: ffff880074de1d08 R08: 00000000000003e8 R09: ffff8800776ed868 R10: ffff8800754761c4 R11: 000000000000000a R12: 0000000000000000 R13: ffff8800754762e0 R14: 0000000000000038 R15: ffff880074958000 FS: 00007f5c8bef66f0(0000) GS:ffffffff8158a100(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 0000000000000307 CR3: 0000000074dc6000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process modprobe (pid: 829, threadinfo ffff880074de0000, task ffff880075420000) Stack: ffff880074de1cb8 ffffffff8110d22f ffff880074de1c78 ffff880074de1c78 ffff88007402af50 ffff88007402af50 ffffffffa0108520 ffff88007487a000 ffff880074958000 ffffffff81031023 ffff880074de1ca8 ffffffff81353562 Call Trace: [<ffffffff8110d22f>] ? sysfs_addrm_finish+0x69/0x20e [<ffffffff81031023>] ? need_resched+0x1e/0x28 [<ffffffff81353562>] ? _cond_resched+0x9/0x38 [<ffffffff81353aee>] ? mutex_lock+0x22/0x33 [<ffffffff81240d08>] ? usb_match_one_id+0x2b/0x88 [<ffffffff812412df>] ? usb_autopm_do_device+0xc8/0xd4 [<ffffffff812418b5>] usb_probe_interface+0x10e/0x14b [<ffffffff811f64c4>] driver_probe_device+0xc0/0x16e [<ffffffff811f65c1>] __driver_attach+0x4f/0x79 [<ffffffff811f6572>] ? __driver_attach+0x0/0x79 [<ffffffff811f5d57>] bus_for_each_dev+0x4f/0x89 [<ffffffff811f630f>] driver_attach+0x1c/0x1e [<ffffffff811f5677>] bus_add_driver+0xb7/0x201 [<ffffffff811f67b0>] driver_register+0xa8/0x128 [<ffffffff81241aff>] usb_register_driver+0x80/0xe4 [<ffffffffa00bb000>] ? rtl8187_init+0x0/0x20 [rtl8187] [<ffffffffa00bb01e>] rtl8187_init+0x1e/0x20 [rtl8187] [<ffffffff8100a047>] do_one_initcall+0x47/0x12e [<ffffffff81065be1>] sys_init_module+0xa9/0x1b6 [<ffffffff8101024a>] system_call_fastpath+0x16/0x1b Code: 24 e1 e9 98 07 00 00 48 81 eb 88 00 00 00 48 89 5d 80 4c 8b 60 40 48 8d 5d c8 48 8b 85 70 ff ff ff 4d 8d 74 24 38 48 83 78 10 01 <41> 0f 94 84 24 07 03 00 00 48 8b 85 78 ff ff ff 49 8b 55 28 48 RIP [<ffffffffa0105988>] rtl8187_probe+0x7f/0x836 [rtl8187] RSP <ffff880074de1c48> CR2: 0000000000000307 ---[ end trace aed852fa39b00f8c ]---
---------
Hin-Tak
Quoted 7 lines · On Wednesday 05 November 2008 00:02:07 Hin-Tak Leung wrote:
Quoted 5 lines · Larry Finger
Quoted 1 line
Signed-off-by Herton Ronaldo KrzesinskiTested-by Larry Finger <[email protected]>
Quoted 8 lines
I tried with this combo:
compat-wireless: master-2008-10-31
wireless-testing: v2.6.28-rc2-4239-gd80fe00and applying the two patches on top, they applies cleanly and compile okay except for some warnings in a different module about missing symbols (<something>_sta) but the result dies very painfully with a kernel oops:
Looks like something bad in combination of compat-wireless plus kernel 2.6.27.4-73.fc10.x86_64, please try a plain wireless-testing tree with the two patches.
Quoted 57 lines
-------------
BUG: unable to handle kernel NULL pointer dereference at 0000000000000307 IP: [<ffffffffa0105988>] rtl8187_probe+0x7f/0x836 [rtl8187] PGD 754c4067 PUD 751d5067 PMD 0 Oops: 0002 [1] SMP CPU 0 Modules linked in: rtl8187(+) snd_page_alloc video firewire_ohci
firewire_coreshpchp pcspkreeprom_93cx6output ac battery joydev r8169crc_itu_tsoundcorei2c_piix4k8temp hwmonpata_atiixpradeon drmi2c_algo_biti2c_corePid: 829, comm: modprobe Not tainted 2.6.27.4-73.fc10.x86_64 #1RIP: 0010:[<ffffffffa0105988>] [<ffffffffa0105988>] rtl8187_probe+0x7f/0x836 [rtl8187] RSP: 0018:ffff880074de1c48 EFLAGS: 00010246 RAX: ffffffffa0108520 RBX: ffff880074de1cd0 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffff8800754763c8 RDI: 0000000000000040 RBP: ffff880074de1d08 R08: 00000000000003e8 R09: ffff8800776ed868 R10: ffff8800754761c4 R11: 000000000000000a R12: 0000000000000000 R13: ffff8800754762e0 R14: 0000000000000038 R15: ffff880074958000 FS: 00007f5c8bef66f0(0000) GS:ffffffff8158a100(0000)knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0:
000000008005003b
CR2: 0000000000000307 CR3:0000000074dc6000CR4:00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6:00000000ffff0ff0DR7: 0000000000000400 Process modprobe (pid: 829, threadinfoffff880074de0000, taskffff880075420000) Stack:ffff880074de1cb8ffffffff8110d22fffff880074de1c78ffff880074de1c78ffff88007402af50ffff88007402af50ffffffffa0108520ffff88007487a000ffff880074958000ffffffff81031023ffff880074de1ca8ffffffff81353562Call Trace:
[<ffffffff8110d22f>] ?sysfs_addrm_finish+0x69/0x20e[<ffffffff81031023>] ?need_resched+0x1e/0x28[<ffffffff81353562>] ?_cond_resched+0x9/0x38[<ffffffff81353aee>] ?mutex_lock+0x22/0x33[<ffffffff81240d08>] ?usb_match_one_id+0x2b/0x88[<ffffffff812412df>] ?usb_autopm_do_device+0xc8/0xd4[<ffffffff812418b5>] usb_probe_interface+0x10e/0x14b [<ffffffff811f64c4>] driver_probe_device+0xc0/0x16e [<ffffffff811f65c1>] __driver_attach+0x4f/0x79 [<ffffffff811f6572>] ? __driver_attach+0x0/0x79 [<ffffffff811f5d57>] bus_for_each_dev+0x4f/0x89 [<ffffffff811f630f>] driver_attach+0x1c/0x1e [<ffffffff811f5677>] bus_add_driver+0xb7/0x201 [<ffffffff811f67b0>] driver_register+0xa8/0x128 [<ffffffff81241aff>] usb_register_driver+0x80/0xe4 [<ffffffffa00bb000>] ? rtl8187_init+0x0/0x20 [rtl8187] [<ffffffffa00bb01e>] rtl8187_init+0x1e/0x20 [rtl8187] [<ffffffff8100a047>] do_one_initcall+0x47/0x12e [<ffffffff81065be1>] sys_init_module+0xa9/0x1b6 [<ffffffff8101024a>] system_call_fastpath+0x16/0x1b Code: 24 e1 e9 98 07 00 00 48 81 eb 88 00 00 00 48 89 5d 80 4c 8b 60 40 488d 5d c8 48 8b 85 70 ff ff ff 4d 8d 74 24 38 48 83 78 10 01 <41> 0f 94 84 24 07 03 00 00 48 8b 85 78 ff ff ff 49 8b 55 28 48
RIP [<ffffffffa0105988>]rtl8187_probe+0x7f/0x836[rtl8187]
RSP <ffff880074de1c48>
CR2: 0000000000000307
Quoted 5 lines
---[ end trace aed852fa39b00f8c ]------------
Hin-Tak
--
[]'s
Herton
Quoted 5 lines · Herton Ronaldo Krzesinski
Quoted 3 lines
and applying the two patches on top, they applies cleanly and compile okay except for some warnings in a different module about missing symbols (<something>_sta) but the result dies very painfully with a kernel oops:
Looks like something bad in combination of compat-wireless plus kernel 2.6.27.4-73.fc10.x86_64, please try a plain wireless-testing tree with the two patches.
Hmm, I'll have to check, but I was a bit puzzled that compat-wireless didn't build the mac80211 module and the fc10 kernel didn't have one either. (and early kernels have a mac80211.ko). Has this been made obsolete, or did the fc10 kernel shipped it compiled-in and for some good/bad reason compat-wireless doesn't build modules that are compiled in? (obviously there is no point in building a module the older version of which is compiled in since it won't be used...)
The status.retry_count vs status.rate[0].count change must be in mac80211.ko or some other more generic module?
Hin-TakP.S. I know building a whole wireless-testing kernel is the way to go, but it takes *very long*...
Quoted 18 lines · On Wednesday 05 November 2008 15:11:40 Hin-Tak Leung wrote:
Quoted 8 lines · Herton Ronaldo Krzesinski
Quoted 4 lines
and applying the two patches on top, they applies cleanly and compile okay except for some warnings in a different module about missing symbols (<something>_sta) but the result dies very painfully with a kernel oops:
Looks like something bad in combination of compat-wireless plus kernel 2.6.27.4-73.fc10.x86_64, please try a plain wireless-testing tree with the two patches.
Hmm, I'll have to check, but I was a bit puzzled that compat-wireless didn't build the mac80211 module and the fc10 kernel didn't have one either. (and early kernels have a mac80211.ko). Has this been made obsolete, or did the fc10 kernel shipped it compiled-in and for some good/bad reason compat-wireless doesn't build modules that are compiled in? (obviously there is no point in building a module the older version of which is compiled in since it won't be used...)
Quoted 2 lines
The status.retry_count vs status.rate[0].count change must be in mac80211.ko or some other more generic module?
Don't know about fc10 kernel, but the changes also include mac80211.ko
Quoted 4 lines
Hin-Tak
P.S. I know building a whole wireless-testing kernel is the way to go, but it takes *very long*...
--
[]'s
Herton
Quoted 2 lines · Herton Ronaldo Krzesinski
Don't know about fc10 kernel, but the changes also include mac80211.ko
Yes, I know the change includes mac802111.ko, that's why I was surprised that mac80211.ko didn't get built with compat-wireless.
Turned out that fc10 kernels have mac80211 built-in rather than as modules, so there is no way of replacing them with compat-wireless. I am going to install a 2.6.27.x-fc9... (I am using a 2.6.27.x-fc10 for some x11-xorg drivers because there wasn't a 2.6.27.x-fc9 when I looked - and the first 2.6.27-x.fc9 has just hit koji).
I'll fill a bug in redhat's bugzilla. :-).
Quoted 8 lines · Hin-Tak Leung
Quoted 2 lines · Herton Ronaldo Krzesinski
Don't know about fc10 kernel, but the changes also include mac80211.ko
Yes, I know the change includes mac802111.ko, that's why I was surprised that mac80211.ko didn't get built with compat-wireless.
Turned out that fc10 kernels have mac80211 built-in rather than as modules, so there is no way of replacing them with compat-wireless.
Umm I have an FC10 box and I see a mac80211.ko. But of course, I have an early release of FC10, its on 2.6.27-0.244.rc2.git1.fc10.x86_64.
Did the new ones really put it built in?
Luis
Quoted 6 lines · Luis R. Rodriguez
Umm I have an FC10 box and I see a mac80211.ko. But of course, I have an
early release of FC10, its on 2.6.27-0.244.rc2.git1.fc10.x86_64.Did the new ones really put it built in?
Yes,
$ grep 'MAC80211=' /boot/config-2.6.2*fc10* /boot/config-2.6.27.4-69.fc10.x86_64:CONFIG_MAC80211=y /boot/config-2.6.27.4-73.fc10.x86_64:CONFIG_MAC80211=y
I looked through koji and found it was removed between 0.345.rc7.fc10
0.339.rc7.fc10
but the log entry between does not say why.
I filed this as https://bugzilla.redhat.com/show_bug.cgi?id=470143 , if John wants to grab it before somebody else assign it his way :-).
Hin-Tak
Quoted 13 lines · Hin-Tak Leung
Quoted 6 lines · Luis R. Rodriguez
Umm I have an FC10 box and I see a mac80211.ko. But of course, I have an
early release of FC10, its on 2.6.27-0.244.rc2.git1.fc10.x86_64.Did the new ones really put it built in?
Yes,
$ grep 'MAC80211=' /boot/config-2.6.2*fc10* /boot/config-2.6.27.4-69.fc10.x86_64:CONFIG_MAC80211=y /boot/config-2.6.27.4-73.fc10.x86_64:CONFIG_MAC80211=y
Quoted 6 lines
I looked through koji and found it was removed between 0.345.rc7.fc10
0.339.rc7.fc10
but the log entry between does not say why.I filed this as https://bugzilla.redhat.com/show_bug.cgi?id=470143 ,
Thanks, I've put this on the wiki:
http://wireless.kernel.org/en/users/Download#DoIneedthisonFedora.3F
Quoted 1 line
if John wants to grab it before somebody else assign it his way :-).
Luis
--- On Wed, 5/11/08, Herton Ronaldo Krzesinski <[email protected]> wrote:
Tested-by Hin-Tak Leung <[email protected]>
Okay, I managed to patch compat-wireless and install it (with 2.6.27.4-24.fc9.x86_64 which has mac80211 as a module, not compiled-in).
I am having the stuck-at-1Mb problem, so rate control does not work.
Before installing compat-wireless, I think the rate started at 36Mb and moves up to 54Mb and get stuck at 54Mb as soon as any traffic is getting through; after installing the patched compat-wireless, the rate changes beteen 1Mb and 9Mb for a bit but get stuck at 1Mb as soon as any substantial traffic is getting through. I can manually switch it with "iwconfig wlan2 rate 36M", for example, but with an auto, "iwconfig wlan2 rate 36M auto", it drops back to 1Mb very soon.
Baring changes in the rest of the wireless stack (which might come to the same thing), it is probably the changes surrounding status.rate[0].count vs status.retry_count which causes the 1Mb-rate-stuck...
Did Larry get the v2 patches to do rate-control working (i.e. the rate actually changing with demand), or not? Larry's reply was "the rate-control mechanism works the way it did before" - I am not sure about the "it did" bit - same as v1 (rate stuck at 1Mb) or same as the prototype patch for 2.6.27 (rate changing with demand)?
Hin-Tak
Quoted 6 lines · Hin-Tak Leung
Before installing compat-wireless, I think the rate started at 36Mb and moves up to 54Mb and get stuck at 54Mb as soon as any traffic is getting through; after installing the patched compat-wireless, the rate changes beteen 1Mb and 9Mb for a bit but get stuck at 1Mb as soon as any substantial traffic is getting through. I can manually switch it with "iwconfig wlan2 rate 36M", for example, but with an auto, "iwconfig wlan2 rate 36M auto", it drops back to 1Mb very soon.
Baring changes in the rest of the wireless stack (which might come to the same thing), it is probably the changes surrounding status.rate[0].count vs status.retry_count which causes the 1Mb-rate-stuck...
Did Larry get the v2 patches to do rate-control working (i.e. the rate actually changing with demand), or not? Larry's reply was "the rate-control mechanism works the way it did before" - I am not sure about the "it did" bit - same as v1 (rate stuck at 1Mb) or same as the prototype patch for 2.6.27 (rate changing with demand)?
On my system is started at 1 Mbs and rapidly moved to 54Mbs. It went so quickly that by the time I started a ping, switched terminals, and issued an ivconfig, it was already at 54 Mbs.
Larry
Quoted 5 lines · Larry Finger
On my system is started at 1 Mbs and rapidly moved to 54Mbs. It went so quickly
that by the time I started a ping, switched terminals, and issued an ivconfig,
it was already at 54 Mbs.
Okay, I was writing too soon. My rate does go up and down now (pinging the other end of the wireless link, it varies between 12Mb to 36Mb). I don't know why it was stuck at 1Mb for a while earlier (10-20 minutes while I was doing a fair bit of web browsing, etc), nor why it is go up and down now :-(.
Hin-Tak
Quoted 5 lines · Larry Finger
On my system is started at 1 Mbs and rapidly moved to 54Mbs. It went so quickly
that by the time I started a ping, switched terminals, and issued an ivconfig,
it was already at 54 Mbs.
Seems that in my situation (my access point is a slow machine), the behavior of the rate control mechanism depends on the *type* of work load - I was restoring a firefox session with a lot of windows, and it is stuck at 1Mb all the time. But once all the windows are stored, doing a ping I can indeed have the rate going up (and eventually coming down) to 24-36Mb.
Hin-Tak
Quoted 2 lines · Hin-Tak Leung
Seems that in my situation (my access point is a slow machine), the behavior of the rate control mechanism depends on the *type* of work load - I was restoring a firefox session with a lot of windows, and it is stuck at 1Mb all the time. But once all the windows are stored, doing a ping I can indeed have the rate going up (and eventually coming down) to 24-36Mb.
Are those default pings? It may work differently with those short packets thaqn it does with the longer ones found with browsing.
Larry
Quoted 10 lines · Larry Finger
Quoted 2 lines · Hin-Tak Leung
Seems that in my situation (my access point is a slow
machine), the behavior of the rate control mechanism depends on the *type* of work load - I was restoring a firefox session with a lot of windows, and it is stuck at 1Mb all the time. But once all the windows are stored, doing a ping I can indeed have the rate going up (and eventually coming down) to 24-36Mb.
Quoted 3 lines
Are those default pings? It may work differently with those short packets thaqn
it does with the longer ones found with browsing.
Yes, just default "ping 192.168.0.1" without any options. I wonder if
pid is clever enough to work out that my upstream bandwidth is only 2Mb/s (web browsing obviously goes outside) and not letting it go over 1Mb/s.
Also wondering about latency: in the absence of browser traffic, I can ping the AP/routing-machine with 0.07s round-trip time, but it increases to almost 2s when restoring a firefox session. I tried to see if pinging - which is between the client and the AP - changes the rate, compared to firefox which depends on limited upstream bandwidth. It didn't, and given how poor ping works during such time, it isn't surprising.
Hin-Tak
Quoted 13 lines · Hin-Tak Leung
Quoted 6 lines · Luis R. Rodriguez
Umm I have an FC10 box and I see a mac80211.ko. But of course, I have an
early release of FC10, its on 2.6.27-0.244.rc2.git1.fc10.x86_64.Did the new ones really put it built in?
Yes,
$ grep 'MAC80211=' /boot/config-2.6.2*fc10* /boot/config-2.6.27.4-69.fc10.x86_64:CONFIG_MAC80211=y /boot/config-2.6.27.4-73.fc10.x86_64:CONFIG_MAC80211=y
Quoted 7 lines
I looked through koji and found it was removed between 0.345.rc7.fc10
0.339.rc7.fc10
but the log entry between does not say why.I filed this as https://bugzilla.redhat.com/show_bug.cgi?id=470143 , if John wants to grab it before somebody else assign it his way :-).
That decision was made against my advice -- I don't know that I can change it.
John
Signature · 2 lines
John W. Linville Linux should be at the core [email protected] of your literate lifestyle.
Quoted 19 lines · John W. Linville
Quoted 18 lines · Hin-Tak Leung
Quoted 6 lines · Luis R. Rodriguez
Umm I have an FC10 box and I see a mac80211.ko. But of course, I have an
early release of FC10, its on 2.6.27-0.244.rc2.git1.fc10.x86_64.Did the new ones really put it built in?
Yes,
$ grep 'MAC80211=' /boot/config-2.6.2*fc10* /boot/config-2.6.27.4-69.fc10.x86_64:CONFIG_MAC80211=y /boot/config-2.6.27.4-73.fc10.x86_64:CONFIG_MAC80211=yI looked through koji and found it was removed between 0.345.rc7.fc10
0.339.rc7.fc10
but the log entry between does not say why.
Quoted 5 lines
Quoted 2 lines
I filed this as https://bugzilla.redhat.com/show_bug.cgi?id=470143 , if John wants to grab it before somebody else assign it his way :-).
That decision was made against my advice -- I don't know that I can change it.
But you did, yay!
Luis
The actual throughput transferring a 700MB file via sftp between my client and the AP doesn't go much over 50KB/s (according to sftp's progress meter). It used to be over 400KB/s under the same situation. The rate shown by iwconfig is consistently 1Mb/s while manually setting it to 36/48Mb doesn't
change the throughput. (at the moment it is looking like it will take 4
hours to transfer, instead of the usual 20+ minutes).
how can I see what's wrong? (I have another few hours while it finishes, and of course, I can always try again...).