Re: ioremap()/iounmap() problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, 2009-01-21 at 19:23 +0000, ext Russell King - ARM Linux wrote:
> On Mon, Jan 19, 2009 at 03:49:40PM +0200, Tomi Valkeinen wrote:
> > The original problem remains, it looks to me that iounmap() doesn't free
> > the memory, and thus ioremap will fail after couple of loops.
> > 
> > I get the following error on console:
> > 
> > vmap allocation for size 16781312 failed: use vmalloc=<size> to increase
> > size.
> > 
> > I don't know too much about memory management, but I'll try to dig
> > deeper in to this.
> > 
> > What I don't understand is that in __arm_ioremap_pfn() there's
> > get_vm_area(), and later in the function, in case of error, that area is
> > vunmap()ed. But there's no vunmap() done anywhere else in the code for
> > area sections, so who does free it?
> 
> Yes, the error I pointed out is not the only issue with this code.
> 
> You might consider trying my patch which was sent in this thread to Matt
> Gerassimoff.  And if you see anyone whinging that it won't work for
> whatever reason, please ignore them and just test the patch.  You will
> not be disappointed.

Sorry it took so long to test. The patch indeed works fine, thanks! And
the test loop works also fine even without any schedulings, contrary of
what was speculated. (Not that it matters in real usage).

I'll do some more testing and report if I see any oddities.

 Tomi


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux