From: ynezz@true.cz (Petr Štetiar)
To: linux-arm-kernel@lists.infradead.org
Subject: ep93xx/ts72xx: Kernel 2.6.36 problems introduced with commit 5bc23d32d
Date: Sun, 31 Oct 2010 19:21:57 +0100 [thread overview]
Message-ID: <20101031182157.GY15069@ibawizard.net> (raw)
Hi,
I'm so far happy user of 2.6.34.7 on ts72xx(mach-ep93xx) and few days ago I've
rebased the patchset[1](kernel config[2]) against 2.6.36. All seems to work
fine, except my WiFi USB dongle, which is Belkin F6D4050v2 with Ralink rt3070
chipset. To compile the WiFi driver on 2.6.36 I've to patch it little bit,
because there was some rename of the usb_buffer_* functions in 2.6.35, so
here's my patch for 2.6.36:
+/* see http://kerneltrap.org/mailarchive/git-commits-head/2010/4/30/32383 */
+#ifndef usb_buffer_alloc
+#define usb_buffer_alloc usb_alloc_coherent
+#define usb_buffer_free usb_free_coherent
+#endif
+
Now when I try to ifup the ra0 interface on 2.6.36 the driver fails to
allocate four USB TX ring buffers (using usb_alloc_coherent), which are
actually about 200kB each. It fails all the time just at allocation of the
last, 4th buffer, it can allocate the 3 previous buffers without any problem.
It's the same behaviour always, I can reproduce it 100%. The allocation fails
at arch/arm/mm/vmregion.c:
[...]
37 struct arm_vmregion *
38 arm_vmregion_alloc(struct arm_vmregion_head *head, size_t size, gfp_t gfp)
[...]
56 list_for_each_entry(c, &head->vm_list, vm_list) {
57 if ((addr + size) < addr)
58 goto nospc;
59 if ((addr + size) <= c->vm_start)
60 goto found;
61 addr = c->vm_end;
62 if (addr > end)
63 goto nospc;
64 }
The allocation of the 4th buffer fails here and goes to nospc label. When I've
reverted commit mentioned in the subject:
Revert "ARM: DMA coherent allocator: align remapped addresses"
This reverts commit 5bc23d32d86a132b5636a48dca0fa2528ef69ff9.
the driver can now allocate the buffers and seems to work on 2.6.36. How to
proceed now? I know, that the driver is pile of crap, but it works for me(tm)
quite well on 2.6.34.7, so I don't know how to fix this. Thank you for any
suggestions.
-- ynezz
1. http://github.com/ynezz/linux-2.6/tree/ts72xx-2.6.36.y
2. http://github.com/ynezz/linux-2.6/commit/780f7c8dbe52c06c7a4610de8d09fd91f572fa56
next reply other threads:[~2010-10-31 18:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-31 18:21 Petr Štetiar [this message]
2010-10-31 18:31 ` ep93xx/ts72xx: Kernel 2.6.36 problems introduced with commit 5bc23d32d Russell King - ARM Linux
2010-10-31 19:00 ` Petr Štetiar
2010-10-31 19:08 ` Petr Štetiar
2010-10-31 20:52 ` Russell King - ARM Linux
2010-10-31 22:30 ` Petr Štetiar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101031182157.GY15069@ibawizard.net \
--to=ynezz@true.cz \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox