RE: SELECT() returns 1 But FIONREAD says (Input/output error)

2007-06-01 Thread David Schwartz
> David Schwartz wrote: > >> The misunderstanding is from the docs. > >> The select() does not report device errors. > >> Select will just "more precisely, to see if a read will not block". > > This is a much slighter misunderstanding. The result

RE: SELECT() returns 1 But FIONREAD says (Input/output error)

2007-06-01 Thread David Schwartz
> The misunderstanding is from the docs. > The select() does not report device errors. > Select will just "more precisely, to see if a read will not block". This is a much slighter misunderstanding. The result of the 'select' function tells you nothing about what a particular 'read' will or will

RE: SELECT() returns 1 But FIONREAD says (Input/output error)

2007-06-01 Thread David Schwartz
> David Schwartz wrote: > > Nope. An errored connection is always ready for read/write -- there is > > nothing to wait for as far as the kernel is concerned. Your code keeps > > asking the kernel if something interesting has happened, the > > kernel keeps > > tel

RE: SELECT() returns 1 But FIONREAD says (Input/output error)

2007-06-01 Thread David Schwartz
David Schwartz wrote: Nope. An errored connection is always ready for read/write -- there is nothing to wait for as far as the kernel is concerned. Your code keeps asking the kernel if something interesting has happened, the kernel keeps telling it yes, and it refuses to do anything

RE: SELECT() returns 1 But FIONREAD says (Input/output error)

2007-06-01 Thread David Schwartz
The misunderstanding is from the docs. The select() does not report device errors. Select will just more precisely, to see if a read will not block. This is a much slighter misunderstanding. The result of the 'select' function tells you nothing about what a particular 'read' will or will not

RE: SELECT() returns 1 But FIONREAD says (Input/output error)

2007-06-01 Thread David Schwartz
David Schwartz wrote: The misunderstanding is from the docs. The select() does not report device errors. Select will just more precisely, to see if a read will not block. This is a much slighter misunderstanding. The result of the 'select' function tells you nothing about what

RE: SELECT() returns 1 But FIONREAD says (Input/output error)

2007-05-31 Thread David Schwartz
> i am using the GARMIN_GPS/usb driver to read a gps receiver. > In testing the ability of my software to recover from various errors, I > try this: unplug the gps/USB cable from the usb hub. > > Interestingly enough the thread spins. > the SELECT() waits for something to happen, and I get one

RE: SELECT() returns 1 But FIONREAD says (Input/output error)

2007-05-31 Thread David Schwartz
i am using the GARMIN_GPS/usb driver to read a gps receiver. In testing the ability of my software to recover from various errors, I try this: unplug the gps/USB cable from the usb hub. Interestingly enough the thread spins. the SELECT() waits for something to happen, and I get one channel

RE: epoll,threading

2007-05-30 Thread David Schwartz
> In my experience, it's not much the context switch by itself which causes > performance degradation, but the fact that with threads, you have to put > mutexes everywhere. And frankly, walking a list with locks everywhere > is quite slower than doing it in one run at a rate of 3 or 4 cycles per

RE: epoll,threading

2007-05-30 Thread David Schwartz
I mostly agree with your comments, so I'm only responding to the points I disagree with. > So in fact, converting a threaded program to a pure async model should > not improve it much because of the initial architectural design. But a > program written from scratch to be purely async should

RE: epoll,threading

2007-05-30 Thread David Schwartz
I mostly agree with your comments, so I'm only responding to the points I disagree with. So in fact, converting a threaded program to a pure async model should not improve it much because of the initial architectural design. But a program written from scratch to be purely async should perform

RE: epoll,threading

2007-05-30 Thread David Schwartz
In my experience, it's not much the context switch by itself which causes performance degradation, but the fact that with threads, you have to put mutexes everywhere. And frankly, walking a list with locks everywhere is quite slower than doing it in one run at a rate of 3 or 4 cycles per

RE: epoll,threading

2007-05-26 Thread David Schwartz
> Hello all, > > I want to know in detail about , what the events (epoll or /dev/poll or > select ) achieve in contrast to thread per client. > > i can have a thread per client and use send and recv system call directly > right? Why do i go for these event mechanisms? > > Please help me to

RE: epoll,threading

2007-05-26 Thread David Schwartz
Hello all, I want to know in detail about , what the events (epoll or /dev/poll or select ) achieve in contrast to thread per client. i can have a thread per client and use send and recv system call directly right? Why do i go for these event mechanisms? Please help me to understand

RE: [PATCH 1/2] msi: Invert the sense of the MSI enables.

2007-05-25 Thread David Schwartz
> Hmm... > I find in section 6.1: > > In addition to PCI INTx compatible interrupt emulation, PCI Express > > requires support of MSI or MSI-X or both. > Which suggests that INTx support is required. Unfortunately, this can be equally well read to suggest that MSI/MSI-X is not required, but

RE: [PATCH 1/2] msi: Invert the sense of the MSI enables.

2007-05-25 Thread David Schwartz
Hmm... I find in section 6.1: In addition to PCI INTx compatible interrupt emulation, PCI Express requires support of MSI or MSI-X or both. Which suggests that INTx support is required. Unfortunately, this can be equally well read to suggest that MSI/MSI-X is not required, but that

RE: scheduling oddity on 2.6.20.3 stock

2007-05-16 Thread David Schwartz
> > >> bunzip2 -c $file.bz2 |gzip -9 >$file.gz So here are some actual results from a dual P3-1Ghz machine (2.6.21.1, CFSv9). First lets time each operation individually: $ time bunzip2 -k linux-2.6.21.tar.bz2 real1m5.626s user1m2.240s sys 0m3.144s $ time gzip -9 linux-2.6.21.tar

RE: scheduling oddity on 2.6.20.3 stock

2007-05-16 Thread David Schwartz
> On Thu, 3 May 2007, David Schwartz wrote: > > >> I needed to recompress some files from .bz2 to .gz so I setup > a script to > >> do > >> > >> bunzip2 -c $file.bz2 |gzip -9 >$file.gz > >> > >> I expected that the two CPU heavy

RE: scheduling oddity on 2.6.20.3 stock

2007-05-16 Thread David Schwartz
On Thu, 3 May 2007, David Schwartz wrote: I needed to recompress some files from .bz2 to .gz so I setup a script to do bunzip2 -c $file.bz2 |gzip -9 $file.gz I expected that the two CPU heavy processes would end up on different cpu's and spend a little time shuffling data between

RE: scheduling oddity on 2.6.20.3 stock

2007-05-16 Thread David Schwartz
bunzip2 -c $file.bz2 |gzip -9 $file.gz So here are some actual results from a dual P3-1Ghz machine (2.6.21.1, CFSv9). First lets time each operation individually: $ time bunzip2 -k linux-2.6.21.tar.bz2 real1m5.626s user1m2.240s sys 0m3.144s $ time gzip -9 linux-2.6.21.tar

RE: Why can't we sleep in an ISR?

2007-05-15 Thread David Schwartz
> No, the term context here has a specific meaning. It refers to those > things which flow from the current pointer, including the virtual memory > space, file descriptor table, current uid, and so forth. And none of these things are used by an ISR. > Because the > current pointer is not

RE: Why can't we sleep in an ISR?

2007-05-15 Thread David Schwartz
No, the term context here has a specific meaning. It refers to those things which flow from the current pointer, including the virtual memory space, file descriptor table, current uid, and so forth. And none of these things are used by an ISR. Because the current pointer is not changed on

RE: fair clock use in CFS

2007-05-14 Thread David Schwartz
> Either you have a strange definition of fairness or you chose an > extremely > poor example, Ingo. In a fair scheduler I'd expect all tasks to > get the exact > same amount of time on the processor. Yes, as a long-term average. However, that is impossible to do in the short-term. Some taks has

RE: undeprecate raw driver.

2007-05-14 Thread David Schwartz
> On Mon, 14 May 2007, Bob Johnston wrote: > > Alan Cox lxorguk.ukuu.org.uk> writes: > > > > > > Why not just use the terms: > > > > * outdated - as a replacement for "deprecated". > > > > > > Because they don't actually mean the same thing ? > > > > "superseded" would probably be a better

RE: undeprecate raw driver.

2007-05-14 Thread David Schwartz
On Mon, 14 May 2007, Bob Johnston wrote: Alan Cox alan at lxorguk.ukuu.org.uk writes: Why not just use the terms: * outdated - as a replacement for deprecated. Because they don't actually mean the same thing ? superseded would probably be a better word, perhaps lacking the

RE: fair clock use in CFS

2007-05-14 Thread David Schwartz
Either you have a strange definition of fairness or you chose an extremely poor example, Ingo. In a fair scheduler I'd expect all tasks to get the exact same amount of time on the processor. Yes, as a long-term average. However, that is impossible to do in the short-term. Some taks has to

RE: Definition of fairness (was Re: [patch] CFS scheduler, -v11)

2007-05-09 Thread David Schwartz
> Ex: consider two equally important tasks T1 and T2 running on > same CPU and > whose execution nature is: > > T1 = 100% cpu hog > T2 = 60% cpu hog (run for 600ms, sleep for 400ms) > > Over a arbitrary observation period of 10 sec, > > T1 was ready to run for all 10sec >

RE: Definition of fairness (was Re: [patch] CFS scheduler, -v11)

2007-05-09 Thread David Schwartz
Ex: consider two equally important tasks T1 and T2 running on same CPU and whose execution nature is: T1 = 100% cpu hog T2 = 60% cpu hog (run for 600ms, sleep for 400ms) Over a arbitrary observation period of 10 sec, T1 was ready to run for all 10sec T2 was

RE: scheduling oddity on 2.6.20.3 stock

2007-05-03 Thread David Schwartz
> I needed to recompress some files from .bz2 to .gz so I setup a script to > do > > bunzip2 -c $file.bz2 |gzip -9 >$file.gz > > I expected that the two CPU heavy processes would end up on different > cpu's and spend a little time shuffling data between the two cpu's on a > system (dual core

RE: scheduling oddity on 2.6.20.3 stock

2007-05-03 Thread David Schwartz
I needed to recompress some files from .bz2 to .gz so I setup a script to do bunzip2 -c $file.bz2 |gzip -9 $file.gz I expected that the two CPU heavy processes would end up on different cpu's and spend a little time shuffling data between the two cpu's on a system (dual core opteron)

RE: [PATCH] [39/40] i386: Export paravirt_ops for non GPL modulestoo

2007-04-30 Thread David Schwartz
> FWIW I think doing this first will be better, exposing _all_ to non GNU > modules will weaken whatever case we might have to take it away later. > So, NACK from me too. > I don't want to hear the whining; but it was allowed in .22, so why > should we not be able to do this in .23 or

RE: [PATCH] [39/40] i386: Export paravirt_ops for non GPL modulestoo

2007-04-30 Thread David Schwartz
FWIW I think doing this first will be better, exposing _all_ to non GNU modules will weaken whatever case we might have to take it away later. So, NACK from me too. I don't want to hear the whining; but it was allowed in .22, so why should we not be able to do this in .23 or whatever.

RE: Pin an IRQ to a particular CPU

2007-04-26 Thread David Schwartz
> Hello, > > In an effort to increase over all throughput of my Linux NFS file > server, I thought about trying to force an IRQ, for the NIC, to be > serviced by a particular CPU. Is this possible? > > TIA, > Phy /proc/irq/*/smp_affinity I would recommend automatic balancing and leave it at

RE: Pin an IRQ to a particular CPU

2007-04-26 Thread David Schwartz
Hello, In an effort to increase over all throughput of my Linux NFS file server, I thought about trying to force an IRQ, for the NIC, to be serviced by a particular CPU. Is this possible? TIA, Phy /proc/irq/*/smp_affinity I would recommend automatic balancing and leave it at that.

RE: Re[2]: sendfile to nonblocking socket

2007-04-24 Thread David Schwartz
> DS> Threads plus epoll is another. > 20k threads and maybe more is too much :). Look at http://nginx.net/ > senction "Architecture and scalability" for example. > DS> It really depends upon how much performance you need > all, that hardware can take and hold :) Why would you want 20k threads?

RE: sendfile to nonblocking socket

2007-04-24 Thread David Schwartz
> David Schwartz пишет: > > You have a misunderstanding about the semantics of 'sendfile'. > The 'sendfile' function is just a more efficient version of a > read followed by a write. If you did a read followed by a write, > it would block as well (in the read). > > >

RE: sendfile to nonblocking socket

2007-04-24 Thread David Schwartz
David Schwartz пишет: You have a misunderstanding about the semantics of 'sendfile'. The 'sendfile' function is just a more efficient version of a read followed by a write. If you did a read followed by a write, it would block as well (in the read). DS sendfile function is not just

RE: Re[2]: sendfile to nonblocking socket

2007-04-24 Thread David Schwartz
DS Threads plus epoll is another. 20k threads and maybe more is too much :). Look at http://nginx.net/ senction Architecture and scalability for example. DS It really depends upon how much performance you need all, that hardware can take and hold :) Why would you want 20k threads? You

RE: sendfile to nonblocking socket

2007-04-23 Thread David Schwartz
> As I see, nonblocking mode is enabled - sendfile sends less than asked. > But 2G via single 30 seconds sendfile call - this is blocking call. How > can I avoid that? I prefer sendfile as fastest way to send file > content to network socket. The problem with sendfile block on >

RE: sendfile to nonblocking socket

2007-04-23 Thread David Schwartz
As I see, nonblocking mode is enabled - sendfile sends less than asked. But 2G via single 30 seconds sendfile call - this is blocking call. How can I avoid that? I prefer sendfile as fastest way to send file content to network socket. The problem with sendfile block on nonblocking

RE: Memory Allocation

2007-04-17 Thread David Schwartz
> My test machine is a Dell Precision 490 with dual 5140 processors and > 3GB of RAM. If I reduced kMaxSize to (2048 * 2048 * 236) is works. > However, I need to allocate an array of char that is (2048 * 2048 * 256) > and maybe even as large at (2048 * 2048 * 512). > > Obviously I have enough

RE: Memory Allocation

2007-04-17 Thread David Schwartz
My test machine is a Dell Precision 490 with dual 5140 processors and 3GB of RAM. If I reduced kMaxSize to (2048 * 2048 * 236) is works. However, I need to allocate an array of char that is (2048 * 2048 * 256) and maybe even as large at (2048 * 2048 * 512). Obviously I have enough physical

RE: Help Understanding Linux memory management

2007-04-11 Thread David Schwartz
> 1) When physical memory runs low, the memory manager will try to use > memory currently allocated to the pagecache. Is this true? Yes. > 2) When vm.overcommit_memory = 2 (overcommit disabled), and memory runs > low, it appears that the memory manager does not try to use memory > currently

RE: Help Understanding Linux memory management

2007-04-11 Thread David Schwartz
1) When physical memory runs low, the memory manager will try to use memory currently allocated to the pagecache. Is this true? Yes. 2) When vm.overcommit_memory = 2 (overcommit disabled), and memory runs low, it appears that the memory manager does not try to use memory currently

RE: Rebuilding and checksumming the Linux kernel

2007-04-01 Thread David Schwartz
> I'm working on a project with teams spread across the world and we all > work on the same repository patching the kernel and then integrating > into a common main branch. Even though we label the source code, we > would like to make sure that we are all building the same kernel by > running

RE: Rebuilding and checksumming the Linux kernel

2007-04-01 Thread David Schwartz
I'm working on a project with teams spread across the world and we all work on the same repository patching the kernel and then integrating into a common main branch. Even though we label the source code, we would like to make sure that we are all building the same kernel by running md5sum

RE: Why is NCQ enabled by default by libata? (2.6.20)

2007-03-29 Thread David Schwartz
> But when writing, what is the difference between queuing multiple tagged > writes, and sending down multiple untagged cached writes that complete > immediately and actually hit the disk later? Either way the host keeps > sending writes to the disk until it's buffers are full, and the disk

RE: RSDL v0.31

2007-03-29 Thread David Schwartz
Bill Davidsen wrote: > I agree for giving a process more than a fair share, but I don't think > "latency" is the best term for what you describe later. If you think of > latency as the time between a process unblocking and the time when it > gets CPU, that is a more traditional interpretation.

RE: RSDL v0.31

2007-03-29 Thread David Schwartz
Bill Davidsen wrote: I agree for giving a process more than a fair share, but I don't think latency is the best term for what you describe later. If you think of latency as the time between a process unblocking and the time when it gets CPU, that is a more traditional interpretation. I'm not

RE: Why is NCQ enabled by default by libata? (2.6.20)

2007-03-29 Thread David Schwartz
But when writing, what is the difference between queuing multiple tagged writes, and sending down multiple untagged cached writes that complete immediately and actually hit the disk later? Either way the host keeps sending writes to the disk until it's buffers are full, and the disk is

RE: About GCC4 Optimization

2007-03-24 Thread David Schwartz
> So what gcc does may be technically legal, but it's still a horribly > bad thing to do. Sadly, some gcc people seem to care more > about "letter > of the law" than "sanity and quality of implementation". You know, it would be one thing if they were consistent. A policy that, by default, you

RE: About GCC4 Optimization

2007-03-24 Thread David Schwartz
So what gcc does may be technically legal, but it's still a horribly bad thing to do. Sadly, some gcc people seem to care more about letter of the law than sanity and quality of implementation. You know, it would be one thing if they were consistent. A policy that, by default, you get all

RE: [PATCH RESEND 1/1] crypto API: RSA algorithm patch (kernel version 2.6.20.1)

2007-03-21 Thread David Schwartz
> If you can't read protect your kernel, you can't write protect it > either. This is so misleading as to basically be false. It is true that any security scheme that can prevent people from taking money out of my account can also prevent people from putting money in. However, the set of people

RE: Why is /dev on a different filesystem ? [Kernel 2.6.20.3]

2007-03-21 Thread David Schwartz
> So, obviously, /dev is on /, but the stat(2) says no. > Who is right, and where is the bug ? > > Kernel 2.4 had it right : /dev was on /, no doubt. Have a look at the contents of /proc/mounts and all will be clear. DS - To unsubscribe from this list: send the line "unsubscribe

RE: RSDL v0.31

2007-03-21 Thread David Schwartz
> there were multiple attempts with renicing X under the vanilla > scheduler, and they were utter failures most of the time. _More_ people > complained about interactivity issues _after_ X has been reniced to -5 > (or -10) than people complained about "nice 0" interactivity issues to > begin

RE: RSDL v0.31

2007-03-21 Thread David Schwartz
there were multiple attempts with renicing X under the vanilla scheduler, and they were utter failures most of the time. _More_ people complained about interactivity issues _after_ X has been reniced to -5 (or -10) than people complained about nice 0 interactivity issues to begin with.

RE: Why is /dev on a different filesystem ? [Kernel 2.6.20.3]

2007-03-21 Thread David Schwartz
So, obviously, /dev is on /, but the stat(2) says no. Who is right, and where is the bug ? Kernel 2.4 had it right : /dev was on /, no doubt. Have a look at the contents of /proc/mounts and all will be clear. DS - To unsubscribe from this list: send the line unsubscribe linux-kernel in

RE: [PATCH RESEND 1/1] crypto API: RSA algorithm patch (kernel version 2.6.20.1)

2007-03-21 Thread David Schwartz
If you can't read protect your kernel, you can't write protect it either. This is so misleading as to basically be false. It is true that any security scheme that can prevent people from taking money out of my account can also prevent people from putting money in. However, the set of people I

RE: UDP packets scheduling

2007-03-19 Thread David Schwartz
> can anyone suggest me a proper way how to schedule UDP packets to > transmit at > some given rate? > > E.g., I have two boxes both having 10 GE interfaces. One box is able to > transmit at 9.9Gbps, the other one is able to receive only at > about 5.5Gbps. > Flow control must be turned off for

RE: UDP packets scheduling

2007-03-19 Thread David Schwartz
can anyone suggest me a proper way how to schedule UDP packets to transmit at some given rate? E.g., I have two boxes both having 10 GE interfaces. One box is able to transmit at 9.9Gbps, the other one is able to receive only at about 5.5Gbps. Flow control must be turned off for some

RE: RSDL v0.31

2007-03-18 Thread David Schwartz
> P.S. "utter failure" was too harsh. What sticks in my craw is that the > world has to adjust to fit this new scheduler. > > -Mike Even when it's totally clear that this scheduler is doing what you asked it do while the old one wasn't? It still bothers you that now you have to ask for

RE: is RSDL an "unfair" scheduler too?

2007-03-18 Thread David Schwartz
> I didn't suggest adding any unfairness! I suggested being fair by > user/job/process instead of being fair by thread (which is actually > unfair as it favors multi threaded processes over single threaded > processes). Wouldn't that be unfair because it favors multi-user approaches over

RE: is RSDL an unfair scheduler too?

2007-03-18 Thread David Schwartz
I didn't suggest adding any unfairness! I suggested being fair by user/job/process instead of being fair by thread (which is actually unfair as it favors multi threaded processes over single threaded processes). Wouldn't that be unfair because it favors multi-user approaches over

RE: RSDL v0.31

2007-03-18 Thread David Schwartz
P.S. utter failure was too harsh. What sticks in my craw is that the world has to adjust to fit this new scheduler. -Mike Even when it's totally clear that this scheduler is doing what you asked it do while the old one wasn't? It still bothers you that now you have to ask for what

RE: [ck] Re: is RSDL an "unfair" scheduler too?

2007-03-17 Thread David Schwartz
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of jos poortvliet > Sent: Saturday, March 17, 2007 5:24 AM > To: [EMAIL PROTECTED] > Cc: Con Kolivas; Ingo Molnar; Al Boldi; Mike Galbraith; > linux-kernel@vger.kernel.org; Nicholas Miell; Linus Torvalds;

RE: [ck] Re: is RSDL an unfair scheduler too?

2007-03-17 Thread David Schwartz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of jos poortvliet Sent: Saturday, March 17, 2007 5:24 AM To: [EMAIL PROTECTED] Cc: Con Kolivas; Ingo Molnar; Al Boldi; Mike Galbraith; linux-kernel@vger.kernel.org; Nicholas Miell; Linus Torvalds; Andrew

RE: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread David Schwartz
> There's a distinction between giving it more cpu and giving it higher > priority: the important part about having high priority is getting low > latency access to the cpu when its needed. I agree. Tasks that voluntarily relinquish their timeslices should get lower latency compared to other

RE: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread David Schwartz
> * Mike Galbraith <[EMAIL PROTECTED]> wrote: > > > [...] The situation as we speak is that you can run cpu intensive > > tasks while watching eye-candy. With RSDL, you can't, you feel the > > non-interactive load instantly. [...] > > i have to agree with Mike that this is a material regression

RE: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread David Schwartz
* Mike Galbraith [EMAIL PROTECTED] wrote: [...] The situation as we speak is that you can run cpu intensive tasks while watching eye-candy. With RSDL, you can't, you feel the non-interactive load instantly. [...] i have to agree with Mike that this is a material regression that cannot

RE: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread David Schwartz
There's a distinction between giving it more cpu and giving it higher priority: the important part about having high priority is getting low latency access to the cpu when its needed. I agree. Tasks that voluntarily relinquish their timeslices should get lower latency compared to other

RE: RSDL-mm 0.28

2007-03-12 Thread David Schwartz
> > There's a substantial performance hit for not yield, so we probably > > want to investigate alternate semantics for it. It seems reasonable > > for apps to say "let me not hog the CPU" without completely expiring > > them. Imagine you're in the front of the line (aka queue) and you > > spend

RE: RSDL-mm 0.28

2007-03-12 Thread David Schwartz
There's a substantial performance hit for not yield, so we probably want to investigate alternate semantics for it. It seems reasonable for apps to say let me not hog the CPU without completely expiring them. Imagine you're in the front of the line (aka queue) and you spend a moment

Re: License violation?

2007-03-02 Thread David Schwartz
> I have a GPL driver (written by me) with workarounds, since I hadn't > know-how, > when I wrote it. Now I've got 2.4 proprietary driver from the vendor. > Is use of > the 2.4 driver know-how OK? (And could be such driver merged?) Unless you made some kind of agreement with the copyright

Re: License violation?

2007-03-02 Thread David Schwartz
I have a GPL driver (written by me) with workarounds, since I hadn't know-how, when I wrote it. Now I've got 2.4 proprietary driver from the vendor. Is use of the 2.4 driver know-how OK? (And could be such driver merged?) Unless you made some kind of agreement with the copyright holder or

RE: GPL vs non-GPL device drivers

2007-02-25 Thread David Schwartz
> > Right, but *why* is he doing that? The answer: It is the most > > practical way > > to write his driver. > Most practical way to get something Windows compatible is to pirate > Windows; I do not think that gives me permission to do so. This is comparing apples to oranges because Windows has

RE: GPL vs non-GPL device drivers

2007-02-25 Thread David Schwartz
> But... how does situation change when Evil Linker does #include > from his > binary-only part? Right, but *why* is he doing that? The answer: It is the most practical way to write his driver. > I believe situation in this case changes a lot... And that's what > embedded people are doing; I

RE: GPL vs non-GPL device drivers

2007-02-25 Thread David Schwartz
But... how does situation change when Evil Linker does #include pop3/gpl_header_file_with_some_inline_functions.h from his binary-only part? Right, but *why* is he doing that? The answer: It is the most practical way to write his driver. I believe situation in this case changes a lot... And

RE: GPL vs non-GPL device drivers

2007-02-25 Thread David Schwartz
Right, but *why* is he doing that? The answer: It is the most practical way to write his driver. Most practical way to get something Windows compatible is to pirate Windows; I do not think that gives me permission to do so. This is comparing apples to oranges because Windows has an

RE: GPL vs non-GPL device drivers

2007-02-19 Thread David Schwartz
Combined responses > On 2/20/07, Michael K. Edwards <[EMAIL PROTECTED]> wrote: > > There is no legal meaning to "combining" two works of authorship under > > the Berne Convention or any national implementation thereof. If you > > "compile" or "collect" them, you're in one area of law, and if you

RE: GPL vs non-GPL device drivers

2007-02-19 Thread David Schwartz
> On 2/20/07, David Schwartz <[EMAIL PROTECTED]> wrote: > > There is no such thing as the "combined work". If I put a DVD > > of The Phantom > > Menace in the same box as a DVD of The Big Lebowski, the box is not a > > "combined work".

RE: GPL vs non-GPL device drivers

2007-02-19 Thread David Schwartz
> On Saturday 17 February 2007 15:19, David Schwartz wrote: > > Static Controls argued that taking the TLP was the only practical way to > > make a cartridge that would work with that printer. > Which shows how that case is different from writing Linux drivers. For

RE: GPL vs non-GPL device drivers

2007-02-19 Thread David Schwartz
> Sigh. VJ is distributing the linux kernel with proprietary > extensions. If you want to argue that the proprietary extensions in > isolation are not derivative works of the kernel, fine, you might have > a case, but the combined work, which VJ is distributing is *clearly* a > derivative work

RE: GPL vs non-GPL device drivers

2007-02-19 Thread David Schwartz
Sigh. VJ is distributing the linux kernel with proprietary extensions. If you want to argue that the proprietary extensions in isolation are not derivative works of the kernel, fine, you might have a case, but the combined work, which VJ is distributing is *clearly* a derivative work and

RE: GPL vs non-GPL device drivers

2007-02-19 Thread David Schwartz
On Saturday 17 February 2007 15:19, David Schwartz wrote: Static Controls argued that taking the TLP was the only practical way to make a cartridge that would work with that printer. Which shows how that case is different from writing Linux drivers. For example, looking at the example

RE: GPL vs non-GPL device drivers

2007-02-19 Thread David Schwartz
On 2/20/07, David Schwartz [EMAIL PROTECTED] wrote: There is no such thing as the combined work. If I put a DVD of The Phantom Menace in the same box as a DVD of The Big Lebowski, the box is not a combined work. If you can't even agree on that the legal concept of a combined work

RE: GPL vs non-GPL device drivers

2007-02-19 Thread David Schwartz
Combined responses On 2/20/07, Michael K. Edwards [EMAIL PROTECTED] wrote: There is no legal meaning to combining two works of authorship under the Berne Convention or any national implementation thereof. If you compile or collect them, you're in one area of law, and if you create a

RE: GPL vs non-GPL device drivers

2007-02-17 Thread David Schwartz
> You're saying that there's no other way to interface device drivers to > an operating system than the current Linux driver model? Interfacing an X1900 graphics card to FreeBSD and interfacing an X1900 graphics card to Linux are two different ideas. They are *not* two expressions of the same

RE: GPL vs non-GPL device drivers

2007-02-17 Thread David Schwartz
> On 2/17/07, Alexandre Oliva <[EMAIL PROTECTED]> wrote: > > Per this principle, it would seem that only source code and > > hand-crafted object code would be governed by copyright, since > > compilation is also an automated process. > Well, compilation is probably equivalent to "translation",

RE: GPL vs non-GPL device drivers

2007-02-17 Thread David Schwartz
> On Saturday 17 February 2007 03:42, David Schwartz wrote: > > > Again, see Lexmark v. Static Controls. If "make a toner cartridge that > > works > > with a particular Lexmark printer" is a functional idea, why is "make a > > graphics driver that wo

RE: GPL vs non-GPL device drivers

2007-02-17 Thread David Schwartz
(combined responses) > On Feb 17, 2007, "David Schwartz" <[EMAIL PROTECTED]> wrote: > > >> Linking with kernel exported symbols in a kernel module is by many > >> people considered creating a work derived from the kernel. > > That's simply

RE: GPL vs non-GPL device drivers

2007-02-17 Thread David Schwartz
(combined responses) On Feb 17, 2007, David Schwartz [EMAIL PROTECTED] wrote: Linking with kernel exported symbols in a kernel module is by many people considered creating a work derived from the kernel. That's simply unreasonable. It is the most clear settled law that only a creative

RE: GPL vs non-GPL device drivers

2007-02-17 Thread David Schwartz
On Saturday 17 February 2007 03:42, David Schwartz wrote: Again, see Lexmark v. Static Controls. If make a toner cartridge that works with a particular Lexmark printer is a functional idea, why is make a graphics driver that works with a particular Linux kernel not? What

RE: GPL vs non-GPL device drivers

2007-02-17 Thread David Schwartz
On 2/17/07, Alexandre Oliva [EMAIL PROTECTED] wrote: Per this principle, it would seem that only source code and hand-crafted object code would be governed by copyright, since compilation is also an automated process. Well, compilation is probably equivalent to translation, which is

RE: GPL vs non-GPL device drivers

2007-02-17 Thread David Schwartz
You're saying that there's no other way to interface device drivers to an operating system than the current Linux driver model? Interfacing an X1900 graphics card to FreeBSD and interfacing an X1900 graphics card to Linux are two different ideas. They are *not* two expressions of the same

RE: GPL vs non-GPL device drivers

2007-02-16 Thread David Schwartz
> Linking with kernel exported symbols in a kernel module is by many > people considered creating a work derived from the kernel. That's simply unreasonable. It is the most clear settled law that only a creative process can create a work for copyright purposes. Linking is an automated process,

RE: GPL vs non-GPL device drivers

2007-02-16 Thread David Schwartz
> On 2/16/07, David Schwartz <[EMAIL PROTECTED]> wrote: > > (See, among other cases, Lexmark. v. Static > > Controls.) A copyright is not a patent, you can only own > > something if there > > are multiple equally good ways to do it and you claim *one* of them

RE: GPL vs non-GPL device drivers

2007-02-16 Thread David Schwartz
> > That's exactly what they're doing. Knowing only the *function* of his > > program, they are claiming it must obey their licensing terms. > > They have no > > idea exactly how he chose to implement that function, but claim > > they must > > own it anyway. > They are not claiming ownership of

RE: GPL vs non-GPL device drivers

2007-02-16 Thread David Schwartz
> On Thu, Feb 15, 2007 at 04:38:41PM -0800, David Schwartz wrote: > > Just to be perfectly clear, it is an outrageous claim that *every* > > *possible* kernel module must be a derivative work of the > > kernel. Copyright > > *cannot* protect every possible way

RE: GPL vs non-GPL device drivers

2007-02-16 Thread David Schwartz
> What are you talking about? This is not about software patents AT ALL. Yes, it is. The difference between a copyright and a patent is this simple -- a copyright protects the one particular way you chose to do something and a patent protects every possible way of doing the same thing (or

RE: GPL vs non-GPL device drivers

2007-02-16 Thread David Schwartz
> I'll say that again, for everyone else who is reading this: the GPL > makes it really clear that extensions to a GPL work are required to be > distributed under the terms of the GPL. All this junk about > "derivative works" is just the legal jargon used to implement the > intent of the GPL.

<    1   2   3   4   5   6   7   >