Re: Physical memory allocation

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

 



Hi,
There is a restiction on the contiguous physical memory allocation in the
driver (128KB).
To allocate contiguous physical memory, the method used by you i.e.
reserving memory
at boot time(linux OS does not use it) is best approach.
Two patches are available for managing this reserved memory:
1) bigphysarea
2) Allocator
  The reserved memory can be managed using these patches. This patch
provides APIs
  which can be used by the driver  for allocation and freeing.

Regards,
Anj


----- Original Message -----
From: "Prokopenko, Konstantyn" <kproko@analogic.com>
To: <kernelnewbies@nl.linux.org>
Sent: Monday, February 23, 2004 10:23 PM
Subject: Physical memory allocation


> Hello,
>
> Can I allocate 100Mbytes of physical contiguous memory within my driver
(for
> DMA ring-buffer purpose)?
> vmalloc can allocate such a big buffer but the pages are contiguous in the
> virtual space.
> Currently I tell kernel not to manage a chunk of memory upon bootup. Than
I
> map a known address of the physical chunk into virtual space and
> use it within kernel and user land.
> I would like to allocate it within a driver instead.
>
>
> Regards,
> Konstantyn
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux