linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/RFT PATCH 0/2 v2] rtl8187: implement conf_tx callback/correctly ack tx pkts
@ 2008-11-04 13:50 Herton Ronaldo Krzesinski
  2008-11-04 13:50 ` [RFC/RFT PATCH v2 1/2] rtl8187: implement conf_tx callback to configure tx queues Herton Ronaldo Krzesinski
  2008-11-04 13:50 ` [RFC/RFT PATCH v2 2/2] rtl8187: feedback transmitted packets using tx close descriptor for 8187B Herton Ronaldo Krzesinski
  0 siblings, 2 replies; 30+ messages in thread
From: Herton Ronaldo Krzesinski @ 2008-11-04 13:50 UTC (permalink / raw)
  To: linux-wireless
  Cc: Larry Finger, Hin-Tak Leung, John W Linville, Johannes Berg,
	Michael Wu, Andrea Merello, Herton Ronaldo Krzesinski

Two patches for two current issues in rtl8187:
- First it should implement conf_tx callback, instead of hardcoding some tx
  queue values.
- The second one should make rate control work for 8187B sending correct
  feedback about transmitted packet status, using one of the Bulk In endpoints
  that provides this info.

Please test and check if there are issues.

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [RFC/RFT PATCH v2 2/2] rtl8187: feedback transmitted packets using tx close descriptor for 8187B
@ 2008-11-05  2:02 Hin-Tak Leung
  2008-11-05 15:42 ` Herton Ronaldo Krzesinski
  0 siblings, 1 reply; 30+ messages in thread
From: Hin-Tak Leung @ 2008-11-05  2:02 UTC (permalink / raw)
  To: Herton Ronaldo Krzesinski, Larry Finger
  Cc: linux-wireless, John W Linville, Johannes Berg, Michael Wu,
	Andrea Merello

--- On Tue, 4/11/08, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> > Signed-off-by: Herton Ronaldo Krzesinski
> <herton@mandriva.com.br>
> 
> Tested-by: Larry Finger <Larry.Finger@lwfinger.net>

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



      

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2008-11-06 20:49 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-04 13:50 [RFC/RFT PATCH 0/2 v2] rtl8187: implement conf_tx callback/correctly ack tx pkts Herton Ronaldo Krzesinski
2008-11-04 13:50 ` [RFC/RFT PATCH v2 1/2] rtl8187: implement conf_tx callback to configure tx queues Herton Ronaldo Krzesinski
2008-11-04 22:30   ` Larry Finger
2008-11-04 23:11     ` Felix Fietkau
2008-11-05 15:33       ` Herton Ronaldo Krzesinski
2008-11-04 13:50 ` [RFC/RFT PATCH v2 2/2] rtl8187: feedback transmitted packets using tx close descriptor for 8187B Herton Ronaldo Krzesinski
2008-11-04 20:27   ` Hin-Tak Leung
2008-11-04 21:30     ` Herton Ronaldo Krzesinski
2008-11-04 22:31   ` Larry Finger
2008-11-05 11:29     ` Johannes Berg
2008-11-05 15:38       ` Herton Ronaldo Krzesinski
2008-11-05 15:40         ` Johannes Berg
2008-11-05 15:59           ` Herton Ronaldo Krzesinski
  -- strict thread matches above, loose matches on Subject: below --
2008-11-05  2:02 Hin-Tak Leung
2008-11-05 15:42 ` Herton Ronaldo Krzesinski
2008-11-05 17:11   ` Hin-Tak Leung
2008-11-05 21:36     ` Herton Ronaldo Krzesinski
2008-11-05 22:05       ` Hin-Tak Leung
2008-11-05 22:43         ` Luis R. Rodriguez
2008-11-05 23:16           ` Hin-Tak Leung
2008-11-05 23:35             ` Luis R. Rodriguez
2008-11-06 14:14             ` John W. Linville
2008-11-06 18:53               ` Luis R. Rodriguez
2008-11-06  0:00       ` Hin-Tak Leung
2008-11-06  0:18         ` Larry Finger
2008-11-06  1:02           ` Hin-Tak Leung
2008-11-06  1:36           ` Hin-Tak Leung
2008-11-06  1:42             ` Larry Finger
2008-11-06  4:23               ` Hin-Tak Leung
2008-11-06 20:49               ` Hin-Tak Leung

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).