Re: correct use of bus_dmamap_sync

2005-10-26 Thread Dinesh Nair
On 10/26/05 04:10 John Baldwin said the following: Yes, and on some archs the sync() operations do have memory barriers in place, but there isn't any bounce buffering with bus_dmamem_alloc() memory. and in _bus_dmamap_load() in /usr/src/sys/i386/i386/busdma_machdep.c, apparently if the

Is it possible to mmap() raw disk device?

2005-10-26 Thread Xin LI
Dear folks, When we were trying to make a userland FS application we have encountered Invalid Argument when doing mmap() over an open descriptor to a disk device. The program goes here: #includesys/types.h #includesys/stat.h #include

Re: [Fwd: Re: use of bus_dmamap_sync]

2005-10-26 Thread Dinesh Nair
On 10/26/05 10:39 Scott Long said the following: Apparently the original poster sent his question to me in private, then sent it again to the mailing list right as I was responding in private. apologies on that, scott. an initial search only turned up your message in the archives, but

Re: [Fwd: Re: use of bus_dmamap_sync]

2005-10-26 Thread John Baldwin
On Wednesday 26 October 2005 04:47 am, Dinesh Nair wrote: On 10/26/05 10:39 Scott Long said the following: Apparently the original poster sent his question to me in private, then sent it again to the mailing list right as I was responding in private. apologies on that, scott. an initial

Re: [Fwd: Re: use of bus_dmamap_sync]

2005-10-26 Thread Scott Long
John Baldwin wrote: On Wednesday 26 October 2005 04:47 am, Dinesh Nair wrote: On 10/26/05 10:39 Scott Long said the following: Apparently the original poster sent his question to me in private, then sent it again to the mailing list right as I was responding in private. apologies on that,

Re: [Fwd: Re: use of bus_dmamap_sync]

2005-10-26 Thread Dinesh Nair
On 10/26/05 23:54 Scott Long said the following: The value of the map is an implementation detail, which is why it's an opaque typedef. Portable code should always assume that the map has valid data. Now, specifically for i386, if you have a device with a right, so for portability's sake,

Xyplex terminal server via ttyd0

2005-10-26 Thread ray
Here's one for anyone bored out there :-) I have a cluster here running FreeBSD and years back I got an old Xyplex Maxserver 40 1640 terminal server off ebay. Basically it's a box that has a bunch of serial ports on it and one 10 mbit ethernet port. You assign an IP# to the ethernet port, then

Re: FreeBSD 5/6/7 kernel emulator for NetBSD 2.x

2005-10-26 Thread Lennart Augustsson
You'll never get a driver that looks exactly right for one OS to work with another, even with an emulation layer. For instance, FreeBSD doesn't have an activate method for device drivers whereas NetBSD and OpenBSD do. And there are examples of the reverse. So shared drivers will have some

Re: devinfo(3) problem...

2005-10-26 Thread Daniel Rudy
At about the time of 10/25/2005 12:50 PM, victor cruceru stated the following: Hi Daniel, Yes, this is the fix. And yes, I think that the bug was reported (at least on a mailing list...) BTW: I dare to suggest to fully upgrade your system to the latest 6.0, it is a huge step forward from 5.4.

Re: [Fwd: Re: use of bus_dmamap_sync]

2005-10-26 Thread John Baldwin
On Wednesday 26 October 2005 11:54 am, Scott Long wrote: Perhaps on i386. Each arch implements sync(). Argh, it does look like the memory barriers needed on e.g., Alpha aren't used with static buffers because of the map != NULL check in sys/busdma.h. *sigh* I guess archs that need

Re: correct use of bus_dmamap_sync

2005-10-26 Thread John Baldwin
On Wednesday 26 October 2005 02:13 am, Dinesh Nair wrote: On 10/26/05 04:10 John Baldwin said the following: Yes, and on some archs the sync() operations do have memory barriers in place, but there isn't any bounce buffering with bus_dmamem_alloc() memory. and in _bus_dmamap_load() in

Re: devinfo(3) problem...

2005-10-26 Thread John Baldwin
On Wednesday 26 October 2005 01:17 pm, Daniel Rudy wrote: At about the time of 10/25/2005 12:50 PM, victor cruceru stated the following: Hi Daniel, Yes, this is the fix. And yes, I think that the bug was reported (at least on a mailing list...) BTW: I dare to suggest to fully upgrade

Re: Re: where to release proc.p_stats

2005-10-26 Thread David Schultz
On Mon, Oct 24, 2005, nocool wrote: Can memory management system utilize COW to supply zero-filled page to kernel or user process. That is to say: When processes want zeroed page, we give them a mirror of one already zerod pages. If they just read, they can read zero from the back page.

Re: correct use of bus_dmamap_sync

2005-10-26 Thread Dinesh Nair
On 10/27/05 01:20 John Baldwin said the following: On i386, yes. It won't on sparc64 when using an IOMMU for example. The whole point of using bus_dma is to not use vtophys() since by doing that you are righto, so for platform portability, we'd still need to use it there though. Yes,

Re: correct use of bus_dmamap_sync

2005-10-26 Thread Scott Long
John Baldwin wrote: On Wednesday 26 October 2005 02:13 am, Dinesh Nair wrote: On 10/26/05 04:10 John Baldwin said the following: Yes, and on some archs the sync() operations do have memory barriers in place, but there isn't any bounce buffering with bus_dmamem_alloc() memory. and in

Re: usb umass

2005-10-26 Thread Daniel Molina Wegener
On Wed, Oct 26, 2005 at 05:08:24AM +, Chrystian Lopez wrote: que onda hola estoy inetentando montar my memoria usbcon usbdevs -v Ok, es un pendrive supongo. me aparece con el driver usb0 Sera el dispositivo usb0?, ese es solo el puerto USB, no el dispositivo umass

Re: devinfo(3) problem...

2005-10-26 Thread Daniel Rudy
At about the time of 10/26/2005 11:25 AM, John Baldwin stated the following: On Wednesday 26 October 2005 01:17 pm, Daniel Rudy wrote: At about the time of 10/25/2005 12:50 PM, victor cruceru stated the following: Hi Daniel, Yes, this is the fix. And yes, I think that the bug was reported (at

Re: correct use of bus_dmamap_sync

2005-10-26 Thread Dinesh Nair
On 10/27/05 04:16 Scott Long said the following: an example would be using (BUS_DMASYNC_POSTREAD|BUS_DMASYNC_PREWRITE) which would be 0x03 in freebsd 4.x and 0x06 in freebsd 5.x. the gotcha is that 0x03 in freebsd 4.x is BUS_DMASYNC_POSTWRITE. so therefore,