public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* GPL question: using large contiguous memory in proprietary driver.
@ 2008-10-14 21:56 Kaz Kylheku
  2008-10-14 22:05 ` Peter Zijlstra
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Kaz Kylheku @ 2008-10-14 21:56 UTC (permalink / raw)
  To: linux-kernel

Hi all,

I have the following question. Suppose that some proprietary driver
(otherwise completely clean, based only on non-GPL symbols)
requires a large buffer of physically contiguous memory.

A GPL-ed driver could get this memory by having some boot-time
code compiled into the kernel which calls bootmem_alloc during
kernel initialization. This function would stash the address of the
memory into some global variable which is exported for the
module to use.

How do you solve this problem in a proprietary driver? It seems
like the above solution taints the kernel, because the kernel
provides a symbol which exists only for the sake of supporting
a proprietary driver.

Would it be okay to have a mechanism like this:
Suppose that  on the kernel command line, you could
request a boot-time memory allocation and give it a name.
For instance, the parameter:

   boot_alloc=foo,8192K

would create an 8192 kilobyte allocation, and associate it
with the string "foo".   A non-GPL function would be provided to
find the address of this memory, using the string "foo"
as the key. The proprietary driver would document the
requirement that it needs a memory region of at least
8192K, under the name "foo".

Help! :)

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

end of thread, other threads:[~2008-10-15 14:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14 21:56 GPL question: using large contiguous memory in proprietary driver Kaz Kylheku
2008-10-14 22:05 ` Peter Zijlstra
2008-10-14 22:10 ` Alexey Dobriyan
2008-10-14 23:18   ` Kaz Kylheku
2008-10-14 22:12 ` Chris Friesen
2008-10-14 23:23   ` Kaz Kylheku
2008-10-15  2:21     ` Chris Friesen
2008-10-15  5:23       ` David Newall
2008-10-15  5:30     ` Adrian Bunk
2008-10-15  9:05     ` Alan Cox
2008-10-15 13:21     ` John Stoffel
2008-10-14 23:39   ` Kaz Kylheku
2008-10-15 11:26     ` Nick Piggin
2008-10-15 13:54 ` Mark Hounschell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox