Re: [RFD w/info-PATCH] device arguments from lookup, partion code

2001-05-22 Thread Matthew Wilcox
On Tue, May 22, 2001 at 04:31:37PM +0100, Alan Cox wrote: `the class of devices in question' was cryptographic devices, and possibly other transactional DSPs. I don't consider audio to be transactional. in any case, you can do transactional things with two threads, as long as they each

Re: alpha iommu fixes

2001-05-22 Thread Albert D. Cahalan
David S. Miller writes: What are these devices, and what drivers just program the cards to start the dma on those hundred mbyte of ram? Hmmm, I have a few cards that are used that way. They are used for communication between nodes of a cluster. One might put 16 cards in a system. The cards

Re: ECN is on!

2001-05-22 Thread Alan Cox
Matti Aarnio writes: I am contemplating to periodically turn off the ECN bit to let email out, but DaveM has veto there. I veto, the whole point of moving to ECN was to make a statement and get people to fix their kit. We will remove these people, that's all. Since HTML email also

RE: ECN is on!

2001-05-22 Thread Christian, Chip
Not to mention, not everyone on the list runs their own mailservers. -Original Message- From: Steve Modica [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 12:28 To: Rogier Wolff Cc: Richard Gooch; Brent D. Norris; David S. Miller; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL

Re: [RFD w/info-PATCH] device arguments from lookup, partion code

2001-05-22 Thread Alan Cox
`the class of devices in question' was cryptographic devices, and possibly other transactional DSPs. I don't consider audio to be transactional. in any case, you can do transactional things with two threads, as long as they each have their own fd on the device. Think of the fd as your

Re: Gameport analog joystick broken in 2.4.4-ac13

2001-05-22 Thread Alan Cox
I have an analog joystick plugged into the gameport of a Soundblaster AWE64. In 2.4.4-ac12 this was recognized and worked just fine. Under ac13 the recognition is incomplete - it seems to identify that there is a NS558 gameport device present, but not that there is a joystick plugged into

Re: ECN is on!

2001-05-22 Thread Matti Aarnio
FOLKS, I HAVE ALL THE TIME USED 'Reply-To:' HEADER POINTING TO linux-kernel -- INSTEAD OF ALL THE LISTS... If you want to continue this, do it there. (Before I decide to taboo Re: ECN is on! subject line..) On Tue, May 22, 2001 at 12:23:29PM -0400, Richard Gooch wrote: ... Well,

UML cross-platform build problems (was Re: [PATCH] include/linux/coda.h)

2001-05-22 Thread Jan Harkes
On Tue, May 22, 2001 at 09:40:19AM -0700, Ryan Cumming wrote: On Tue, 22 May 2001, Alan Cox wrote: If __linux__ is not defined by the cross compiler, then the cross compiler is broken. A cross compiler has the same environment as the native compiler for the target. The only stuff that

Re: Ext2, fsync() and MTA's?

2001-05-22 Thread Stephen C. Tweedie
Hi, On Tue, May 22, 2001 at 11:54:55AM -0500, Oliver Xymoron wrote: That's probably the right thing to add. I'd vote for an async flag instead. Why??? Why change the default behaviour to be something much slower? I was suggesting an async flag _in addition_ to the sync flag,

Re: add page argument to copy/clear_user_page

2001-05-22 Thread Linus Torvalds
On Mon, 21 May 2001, Paul Mackerras wrote: As for the `to' argument, yes it is redundant since it is just kmap(page). And why not let clear_page() just do that itself? The only place that doesn't already do kmap(page) is basically get_zeroed_page(), and the only reason it doesn't do that is

Re: Why side-effects on open(2) are evil. (was Re: [RFD w/info-PATCH]device arguments from lookup)

2001-05-22 Thread Daniel Phillips
On Tuesday 22 May 2001 17:24, Oliver Xymoron wrote: On Mon, 21 May 2001, Daniel Phillips wrote: On Monday 21 May 2001 19:16, Oliver Xymoron wrote: What I'd like to see: - An interface for registering an array of related devices (almost always two: raw and ctl) and their legacy

Strange italics with -ac kernels

2001-05-22 Thread Sid Boyce
In KDE and sometimes also seen in netscape, I get displays in italics which I don't in any non-ac kernels. All KDE menus now show up in discontinuous italics that are not really readable. I'm using XFree86-4.0.3, KDE-2.1.1 and an NVidia 32Meg TNT2 M64 card, but I've had the same with much

Re: PATCH: more esssolo1 cleanups

2001-05-22 Thread Jeff Garzik
Looks ok. General comment: the code to search through the list of PCI devices and drivers to find the one associated with our minor should be in a separate function, if that code appears more than once. esssolo_find_minor or somesuch... -- Jeff Garzik | Are you the police? Building 1024

Re: [RFD w/info-PATCH] device arguments from lookup, partion code

2001-05-22 Thread Jan Harkes
On Mon, May 21, 2001 at 03:10:32PM -0700, Linus Torvalds wrote: That, in turn, might be as simple as changing the ioctl incoming arguments of cmd,arg into a structure like type,cmd,inbuf,inlen,outbuf,outlen. At least make sure that the 'kioctl' returns the number of bytes placed into the

Re: Why side-effects on open(2) are evil. (was Re: [RFD w/info-PATCH]devicearguments from lookup)

2001-05-22 Thread Oliver Xymoron
On Tue, 22 May 2001, Daniel Phillips wrote: I don't think it's likely to be even workable. Just consider the directory entry for a moment - is it going to be marked d or [cb]? It's going to be marked 'd', it's a directory, not a file. Are we talking about the same proposal? The one where

Re: [RFD w/info-PATCH] device arguments from lookup, partion code in userspace

2001-05-22 Thread Andries . Brouwer
What is the communication between user space and kernel that transports device identities? It doesn't change, the same symbolic names still work. But today, unless you think of devfs or so, device identities are not transported by symbolic names. They are given by device numbers. [Yes,

Re: Why side-effects on open(2) are evil. (was Re: [RFD w/info-PATCH]device arguments from lookup)

2001-05-22 Thread Alexander Viro
On Wed, 23 May 2001, Edgar Toernig wrote: And with special ctrl devices (ie /dev/ttyS0 and /dev/ttyS0ctrl): This _may_ work for some kind of devices. But serial ports are one example where it simply will _not_. It requires that you know the That's quite funny, you know...

Re: Why side-effects on open(2) are evil. (was Re: [RFD w/info-PATCH]device arguments from lookup)

2001-05-22 Thread Edgar Toernig
Daniel Phillips wrote: On Tuesday 22 May 2001 17:24, Oliver Xymoron wrote: On Mon, 21 May 2001, Daniel Phillips wrote: On Monday 21 May 2001 19:16, Oliver Xymoron wrote: What I'd like to see: - An interface for registering an array of related devices (almost always two:

Re: Ext2, fsync() and MTA's?

2001-05-22 Thread Stephen C. Tweedie
Hi, On Tue, May 22, 2001 at 10:50:51AM -0500, Oliver Xymoron wrote: On Mon, 21 May 2001, Theodore Tso wrote: On Mon, May 21, 2001 at 06:47:58PM +0100, Stephen C. Tweedie wrote: Just set chattr +S on the spool dir. That's what the flag is for. The biggest problem with that is that

Re: Why side-effects on open(2) are evil. (was Re: [RFD w/info-PATCH]device arguments from lookup)

2001-05-22 Thread Linus Torvalds
On Tue, 22 May 2001, Andreas Dilger wrote: Actually, the LVM snapshot interface has (optional) hooks into the filesystem to ensure that it is consistent at the time the snapshot is created. Note that this is still fundamentally a broken interface: the filesystem may not _have_ a block

Re: Why side-effects on open(2) are evil. (was Re: [RFD w/info-PATCH]device arguments from lookup)

2001-05-22 Thread Peter J. Braam
On Tue, 22 May 2001, Linus Torvalds wrote: On Tue, 22 May 2001, Andreas Dilger wrote: Actually, the LVM snapshot interface has (optional) hooks into the filesystem to ensure that it is consistent at the time the snapshot is created. But I think that LVM is implemented the wrong way

Re: Fix for an SMP locking bug in NFS code

2001-05-22 Thread Alan Cox
I've already run this by Trond so I'm sending this patch without further ado. It adds a lock_kernel around a call into NLM code, and removes an extraneous (really) lock_kernel in sys_fcntl64. [EMAIL PROTECTED] is the locking code maintainer if he's not already seen this - To unsubscribe

Re: alpha iommu fixes

2001-05-22 Thread Jonathan Lundell
At 11:12 PM +1200 2001-05-22, Chris Wedgwood wrote: On Mon, May 21, 2001 at 03:19:54AM -0700, David S. Miller wrote: Electrically (someone correct me, I'm probably wrong) PCI is limited to 6 physical plug-in slots I believe, let's say it's 8 to choose an arbitrary larger number to

Re: VIA's Southbridge bug: Latest (pseudo-)patch

2001-05-22 Thread Alan Cox
Not just crap hardware, but also vendors who refuse to release proper material required for writing drivers. NVidia springs to my mind. Not that the kernel list is the best place to bring this up, but NVIDIA would NOT be on that list. They are by far one of the best companies out there

Re: alpha iommu fixes

2001-05-22 Thread Alan Cox
ISA cards can do sg? AHA1542 scsi for one. It wasnt that uncommon. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Re: [PATCH] include/linux/coda.h

2001-05-22 Thread Alan Cox
Sorry, I should've been more specific. I'm trying to compile the Linux kernel (2.4.5pre3) on a FreeBSD machine, which actually works quite well with this patch applied. This is the only place in the core that FreeBSD gets hung up Why is your cross compiler outputting different symbols to a

Re: 2.4.4 - I2O printer port weirdness

2001-05-22 Thread Alan Cox
I2C Printer port detects , then 0x378 detects too but both are parport0 ? SMSC Super-IO detection, now testing Ports 2F0, 370 ... parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP] Thata your parallel port i2c-philips-par.o: i2c Philips parallel port adapter module i2c-philips-par.o:

Re: Xircom RealPort versus 3COM 3C3FEM656C

2001-05-22 Thread Alan Cox
I currently have three Xircom RealPort Carbus modem/fast ethernet cards. The current driver blows major chunks (it has very poor performance, and stops working under load). I'm told the driver issues are because of hardware issues. The really nice feature of this card is the form factor

Re: Why side-effects on open(2) are evil. (was Re: [RFD w/info-PATCH]device arguments from lookup)

2001-05-22 Thread Peter J. Braam
Andreas, I think that the issue is something different. Suppose the snapshot has been created. I know that this can be done safely with the API's you allude to. Life goes on and the journal FS keeps changing the file system and if the system doesn't crash, everything is fine: blocks get

Re: Why side-effects on open(2) are evil. (was Re: [RFD w/info-PATCH]device arguments from lookup)

2001-05-22 Thread Daniel Phillips
On Tuesday 22 May 2001 19:49, Oliver Xymoron wrote: On Tue, 22 May 2001, Daniel Phillips wrote: I don't think it's likely to be even workable. Just consider the directory entry for a moment - is it going to be marked d or [cb]? It's going to be marked 'd', it's a directory, not a

Re: alpha iommu fixes

2001-05-22 Thread Richard Henderson
On Tue, May 22, 2001 at 05:00:16PM +0200, Andrea Arcangeli wrote: I'm also wondering if ISA needs the sg to start on a 64k boundary, Traditionally, ISA could not do DMA across a 64k boundary. The only ISA card I have (a soundblaster compatible) appears to work without caring for this, but I

Re: alpha iommu fixes

2001-05-22 Thread Andrea Arcangeli
On Tue, May 22, 2001 at 07:55:18PM +0400, Ivan Kokshaysky wrote: Yes. Though those races more likely would cause silent data corruption, but not immediate crash. Ok. I wasn't sure if it was crashing or not for you. Andrea - To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [RFD w/info-PATCH] device arguments from lookup, partion code

2001-05-22 Thread Alan Cox
Thats a bit pathetic. So I have to fill my app with expensive pthread locks or hack all the drivers and totally change the multi-open sematics in the ABI huh? For the sound. And remember each open of /dev/audio is a different channel potentially (ie its a factory) - To unsubscribe from

Re: [PATCH] include/linux/coda.h

2001-05-22 Thread Jan Harkes
On Tue, May 22, 2001 at 04:57:24PM +0100, David Woodhouse wrote: The kernel compiles quite happily with compilers which aren't targetted specifically at Linux -- the CODA compatibility cruft being the one exception. I often just comment out the CODA includes from linux/fs.h to get round

[PATCH] drivers/media/video/zr36120.c (repost)

2001-05-22 Thread Philip Wang
Greetings, I wanted to repost this zr36120 patch, both because so far it has gone unnoticed, and because there was a problem with the text formatting which is now fixed. There is a bug in zr36120.c of not freeing memory on error paths. This one is particularly dangerous, because kmalloc

ECN is on!

2001-05-22 Thread Matti Aarnio
... and immediately I have been able to verify a bunch of domains/servers which won't get thru when incoming connection has ECN.I tested all of these with Linux running ECN, and Solaris 2.6 without ECN. When Solaris got connection, and ECN-Linux didn't, domain and its server got listed.

Re: alpha iommu fixes

2001-05-22 Thread Jonathan Lundell
At 10:24 PM +0100 2001-05-22, Alan Cox wrote: On the main board, and not just the old ones. These days it's typically in the chipset's south bridge. Third-party DMA is sometimes called fly-by DMA. The ISA card is a slave, as is memory, and the DMA chip reads from one ands writes to the

Re: alpha iommu fixes

2001-05-22 Thread Richard Henderson
On Tue, May 22, 2001 at 04:40:17PM -0400, Jeff Garzik wrote: ISA cards can do sg? No, but the host iommu can. The isa card sees whatever view of memory presented to it by the iommu. r~ - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

Re: Xircom RealPort versus 3COM 3C3FEM656C

2001-05-22 Thread Ion Badulescu
On Tue, 22 May 2001 20:10:41 +0100 (BST), Alan Cox [EMAIL PROTECTED] wrote: Before you give up on the xircom thing, try the -ac kernel and set the box up to use xircom_cb not xircom_tulip_cb That might help a lot It doesn't, it still performs poorly with any of the three available drivers

Re: scheduling callbacks in user space triggered via kernel....

2001-05-22 Thread Alan Cox
Is there a method to schedule user mode code from kernel agent? You can wake user processes,send them signals etc but ingeneral its not a good idea registers with the kernel mode agent with a function/parm to run, then when the callback is appropriate the kerenl agent triggers this callback

Re: [RFD w/info-PATCH] device arguments from lookup, partio

2001-05-22 Thread Petr Vandrovec
[trimmed cc list down a bit - my MUA does not allow for so long CC:] On 22 May 01 at 9:33, Jan Harkes wrote: something like, ssize_t kioctl(int fd, int type, int cmd, void *inbuf, size_t inlen, void *outbuf, size_t outlen); If we are inventing new API, then if we could

Re: ECN is on!

2001-05-22 Thread Tony Hoyle
Richard Gooch wrote: In fact, hopefully he's still in a dark mood, and he may take up the suggestion to bounce mails of the following type: - MIME encoded - HTML encoded - quoted printables (those stupid =20 things are particuarly hard to read). Surely it'd be better to get the list to

Re: ECN is on!

2001-05-22 Thread Richard Gooch
Brent D. Norris writes: I veto, the whole point of moving to ECN was to make a statement and get people to fix their kit. We will remove these people, that's all. Isn't this a problem though because the messge saying that ECN was enabled was set after ECN was enabled? Thus these

Re: ECN is on!

2001-05-22 Thread Matthias Andree
Richard Gooch [EMAIL PROTECTED] writes: Sure, Dave is being bloody-minded, but that's the only way we'll see people get off their fat, lazy asses and fix their broken systems. In fact, hopefully he's still in a dark mood, and he may take up the suggestion to bounce mails of the following

Re: ECN is on!

2001-05-22 Thread Richard Gooch
Alan Cox writes: Matti Aarnio writes: I am contemplating to periodically turn off the ECN bit to let email out, but DaveM has veto there. I veto, the whole point of moving to ECN was to make a statement and get people to fix their kit. We will remove these people, that's

Re: ECN is on!

2001-05-22 Thread Steve Modica
David S. Miller wrote: Matti Aarnio writes: I am contemplating to periodically turn off the ECN bit to let email out, but DaveM has veto there. I veto, the whole point of moving to ECN was to make a statement and get people to fix their kit. We will remove these people, that's

Re: Changes in Kernel

2001-05-22 Thread Vivek Dasmohapatra
On Tue, 22 May 2001, Alan Cox wrote: Are there specific reasons you cannot just use the existing ioctls to load fonts ? The console driver already supports Klingon for example. What are the issues - writing right - left ? No, but in some scripts [devanagari anyway] you only ever write a

Re: alpha iommu fixes

2001-05-22 Thread Alan Cox
On Tue, May 22, 2001 at 05:00:16PM +0200, Andrea Arcangeli wrote: I'm also wondering if ISA needs the sg to start on a 64k boundary, Traditionally, ISA could not do DMA across a 64k boundary. The ISA dmac on the x86 needs a 64K boundary (128K for 16bit) because it did not carry the 16 bit

Re: alpha iommu fixes

2001-05-22 Thread Ivan Kokshaysky
On Tue, May 22, 2001 at 04:29:16PM +0200, Andrea Arcangeli wrote: Ivan could you test the above fix on the platforms that needs the align_entry hack? That was one of the first things I noticed, and I've tried exactly that (2 instead of ~1UL). No, it wasn't the cause of the crashes on pyxis, so

Re: [PATCH] include/linux/coda.h

2001-05-22 Thread Alan Cox
When compiling the kernel under FreeBSD, __KERNEL__ is defined, but __linux__ is not. I think this is an error on the part of the header file, because on non-Linux build environments, which would otherwise compile the Linux kernel correctly, do not have __linux__ defined. Thats a problem

Re: [patch] s_maxbytes handling

2001-05-22 Thread Alan Cox
verification tests. So unless you can cite page and paragraph from SuS and the LFS spec I think the 0 might in fact be correct.. I don't know the standards Alan, but returning zero from write() when f_pos is at s_maxbytes will make a lot of apps hang up. dd, bash and zsh certainly do.

Re: Changes in Kernel

2001-05-22 Thread Alan Cox
We are interested in making some changes to the linux kernel so that it supports some indian type fonts on the console... so what are the special things that we sould take care of so that our work would be included in the kernel-distribution, and how do we proceed about getting it included

Re: why DMAable memory restriction ?

2001-05-22 Thread Alan Cox
In the linux kernel there is a limitation on the amount of contiguous DMAable memory that can be allocated (I guess about 128K). Does anobody know what is the reason 128K or so , if you are lucky. for such a restriction ? Is there any plan to remove Because the pages are contiguous so you

Re: [RFD w/info-PATCH] device arguments from lookup, partion code in userspace

2001-05-22 Thread Daniel Phillips
On Monday 21 May 2001 14:43, [EMAIL PROTECTED] wrote: How about: # mkpart /dev/sda /dev/mypartition -o size=1024k,type=swap # ls /dev/mypartition basesizedevicetype Generally, we shouldn't care which order the kernel enumerates devices in or which

Re: [RFD w/info-PATCH] device arguments from lookup, partion code

2001-05-22 Thread Alan Cox
For _devices_, though? I don't expect my mouse to work if gpm and xfree both try to consume device events from the same filp. Heck, it doesn't even work when they try to consume events from the same inode :-) I think this is a reasonable restriction for the class of devices in question.

[PATCH] net/wanrouter/wanproc.c

2001-05-22 Thread Akash Jain
Hi All, I am working with Dawson Engler's meta-compillation group @ Stanford. In net/wanrouter/wanproc.c the authors check for a bad copy_to_user and immediately return -EFAULT. However, it is necessary to rollback some allocated memory. This can leak memory over time, thus leading to system

Re: [RFD w/info-PATCH] device arguments from lookup, partion code in userspace

2001-05-22 Thread Daniel Phillips
On Monday 21 May 2001 10:14, Lars Marowsky-Bree wrote: On 2001-05-19T16:25:47, Daniel Phillips [EMAIL PROTECTED] said: How about: # mkpart /dev/sda /dev/mypartition -o size=1024k,type=swap # ls /dev/mypartition base sizedevice type # cat /dev/mypartition/size

Re: Dead symbols in CMl1

2001-05-22 Thread Alan Cox
CONFIG_BAGETBSM (Baget Backplane Shared Memory support) Set in arch/mips64/config.in, not used anywhere. Not all mips stuff is merged CONFIG_ACPI_INTERPRETER (ACPI interpreter) Set in arch/ia64/config.in, not used anywhere. Not all IA64 stuff is merged - although this might

Re: alpha iommu fixes

2001-05-22 Thread Andrea Arcangeli
While merging all the recent fixes in my tree and while reserving the pci32 space above -1M to have a dynamic window of almost 1G without dropping down the direct window, I noticed and fixed a severe bug, and so now I started to wonder if the real reason of the crash when an invalid entry is

Re: Xircom RealPort versus 3COM 3C3FEM656C

2001-05-22 Thread Jeff Garzik
On Tue, 22 May 2001, Alan Cox wrote: I currently have three Xircom RealPort Carbus modem/fast ethernet cards. The current driver blows major chunks (it has very poor performance, and stops working under load). I'm told the driver issues are because of hardware issues. The really nice

Re: alpha iommu fixes

2001-05-22 Thread Jonathan Lundell
At 2:02 PM -0700 2001-05-22, Richard Henderson wrote: On Tue, May 22, 2001 at 01:48:23PM -0700, Jonathan Lundell wrote: 64KB for 8-bit DMA; 128KB for 16-bit DMA. [...] This doesn't apply to bus-master DMA, just the legacy (8237) stuff. Would this 8237 be something on the ISA card, or

Re: [PATCH] include/linux/coda.h

2001-05-22 Thread David Woodhouse
[EMAIL PROTECTED] said: Why is your cross compiler outputting different symbols to a linux native compiler ? If __linux__ is not defined by the cross compiler, then the cross compiler is broken. A cross compiler has the same environment as the native compiler for the target. The only

Re: alpha iommu fixes

2001-05-22 Thread Jonathan Lundell
At 1:28 PM -0700 2001-05-22, Richard Henderson wrote: On Tue, May 22, 2001 at 05:00:16PM +0200, Andrea Arcangeli wrote: I'm also wondering if ISA needs the sg to start on a 64k boundary, Traditionally, ISA could not do DMA across a 64k boundary. The only ISA card I have (a soundblaster

<    1   2   3   4   5