Re: Updating corecode's nvidia driver

2010-11-11 Thread elekktretterr
> Well, the poll stuff is easy  We don't have poll support in the
> kernel anymore, you need to rewrite those as kq filters. See any other
> driver for details.
>

I figured as much.

Can you please point me to a specific place in the source code where I can
learn about kq filters, and maybe even show me "the old way and the new
way" next to each other for comparison?

I've managed to unbreak couple of the problems but now Im stuck on

nvidia_ctl.c:86: warning: 'struct dev_poll_args' declared inside parameter
list

Thanks,
Petr



Re: Updating corecode's nvidia driver

2010-11-11 Thread Samuel J. Greear
On Thu, Nov 11, 2010 at 9:45 PM,   wrote:
> Currently gives a compile error upon running "make"
>
> In file included from nvidia_ctl.c:14:
> nv-freebsd.h:267: error: field 'rsel' has incomplete type
> nv-freebsd.h: In function 'pmap_mapdev_attr':
> nv-freebsd.h:351: error: too few arguments to function 'kmem_alloc_nofault'
> nvidia_ctl.c: At top level:
> nvidia_ctl.c:19: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'nvidia_ctl_poll'
> nvidia_ctl.c:26: error: unknown field 'd_poll' specified in initializer
> nvidia_ctl.c:26: error: 'nvidia_ctl_poll' undeclared here (not in a function)
> nvidia_ctl.c:86: warning: 'struct dev_poll_args' declared inside parameter
> list
> nvidia_ctl.c:86: warning: its scope is only this definition or
> declaration, which is probably not what you want
> nvidia_ctl.c:87: warning: no previous prototype for 'nvidia_ctl_poll'
> nvidia_ctl.c: In function 'nvidia_ctl_poll':
> nvidia_ctl.c:88: error: dereferencing pointer to incomplete type
> nvidia_ctl.c:105: warning: implicit declaration of function 'selrecord'
> nvidia_ctl.c:105: warning: nested extern declaration of 'selrecord'
> nvidia_ctl.c:106: error: dereferencing pointer to incomplete type
> nvidia_ctl.c:109: error: dereferencing pointer to incomplete type
>
> Is this too difficult to unbreak? I just had a look at nv-freebsd.h:267
> and it's defining a variable rsel of type struct selinfo, but I have no
> idea where that's coming from. Any clues?
>
> Thanks,
> Petr
>
>
>

Well, the poll stuff is easy  We don't have poll support in the
kernel anymore, you need to rewrite those as kq filters. See any other
driver for details.

Sam


Updating corecode's nvidia driver

2010-11-11 Thread elekktretterr
Currently gives a compile error upon running "make"

In file included from nvidia_ctl.c:14:
nv-freebsd.h:267: error: field 'rsel' has incomplete type
nv-freebsd.h: In function 'pmap_mapdev_attr':
nv-freebsd.h:351: error: too few arguments to function 'kmem_alloc_nofault'
nvidia_ctl.c: At top level:
nvidia_ctl.c:19: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'nvidia_ctl_poll'
nvidia_ctl.c:26: error: unknown field 'd_poll' specified in initializer
nvidia_ctl.c:26: error: 'nvidia_ctl_poll' undeclared here (not in a function)
nvidia_ctl.c:86: warning: 'struct dev_poll_args' declared inside parameter
list
nvidia_ctl.c:86: warning: its scope is only this definition or
declaration, which is probably not what you want
nvidia_ctl.c:87: warning: no previous prototype for 'nvidia_ctl_poll'
nvidia_ctl.c: In function 'nvidia_ctl_poll':
nvidia_ctl.c:88: error: dereferencing pointer to incomplete type
nvidia_ctl.c:105: warning: implicit declaration of function 'selrecord'
nvidia_ctl.c:105: warning: nested extern declaration of 'selrecord'
nvidia_ctl.c:106: error: dereferencing pointer to incomplete type
nvidia_ctl.c:109: error: dereferencing pointer to incomplete type

Is this too difficult to unbreak? I just had a look at nv-freebsd.h:267
and it's defining a variable rsel of type struct selinfo, but I have no
idea where that's coming from. Any clues?

Thanks,
Petr




Re: vlc assertion: z->z_Magic == ZALLOC_SLAB_MAGIC in _slabfree

2010-11-11 Thread Siju George
On Thu, Nov 11, 2010 at 7:01 PM, Venkatesh Srinivas
 wrote:
>
> Cool,
>
> Do you happen to have the core dump? (It should be a file like
> vlc.core or something) in the directory where you ran VLC.
>

Oh yes I uploaded it to

leaf:/home/sgeorge/crash

Thanks for looking into it :-)

By the way from your name I guess we are from the same country and
neighboring state?
I am From Kerala, India. Are you from Tamilnadu?

Thanks again :-D

--Siju


contribs q/a & ext2 rw access?

2010-11-11 Thread Diego

Hi,

just chrooted httpd for a DF blog
but i need to manage 'safely' some work related data hosted on the 
Ubuntu Maverik 10.10


i mean safely since i'm on migration from ext filesystem given fact
i had gross file corruption several times working with usual 1/4 G wav
for advertising projects. in fact the data corruption are 'motherboard 
related' (DMA chipsets).

fact is that BSDs have better deadlocks check over DMA resulting in
less data errors for very-heavy-access random files as those i work on.

now the technical issue.

any ideas for mount_ext2 rw support?

i tried ok ext4 as ro.

i use:
> mount_ext2 -o rw /dev/ad2s5 /media/linux
mount_ext2fs: /dev/ad2s5: Invalid argument

my idea is to set up a linux netboot perhaps using the original ext4 
host access, leaving hammer image as ro until truly into 'man hammer'


i also 'shamelessly use squashfs' for the netboot so i'll be on those 
tools asap if jesus helps.


secondly.
how does team develop on contribs? i'm an available alpha/beta tester 
with rough *nx (17+ yrs) and some patching & c skills / high availability



thank you


Re: Recommend me an AGP card for DragonFly

2010-11-11 Thread Max Herrgard

Steve O'Hara-Smith wrote:

On Mon, 08 Nov 2010 09:56:41 +0100
Max Herrgard  wrote:


Hi list,

I feel it's time to get something faster than my old Matrox G450 to run
with the DragonFly box. Any recommendations? I don't want to upgrade to
PCIe yet as I would need to build a completly new box for that. And I
want 3D acceleration in X. I will probably do some ghetto silent cooling
thing, so not a too hot chip ;-)


You're probably pretty much OK with almost any AGP ATI card, I've
had good results with a couple of 9200SE cards, an old All-In-Wonder
(Hercules branded) and an X1650 - that last is probably a bit too hot
though (fan on card and an extra power connector).



ceh from #netbsd.se hooked me up with a free Radeon 9200 (passive 
cooled). I put it in box, changed driver in xorg.conf to 'radeon', 
started X and ran glxgears:


8422 frames in 5.0 seconds = 1684.248 FPS

My old Matrox did ~350 FPS.

So that means instant 3D accl on DragonFly x86_64 with MesaLib-7.4.4nb3.


I'm so stoked right now :)
Max


Re: vlc assertion: z->z_Magic == ZALLOC_SLAB_MAGIC in _slabfree

2010-11-11 Thread Chris Turner

Venkatesh Srinivas wrote:

Do you happen to have the core dump? (It should be a file like
vlc.core or something) in the directory where you ran VLC.


also - as far as functionality goes in the meantime,
many of these multimedia apps have selectable output plugins -
you might have better luck using a different one for the time being?

cheers,

- Chris


Re: vlc assertion: z->z_Magic == ZALLOC_SLAB_MAGIC in _slabfree

2010-11-11 Thread Venkatesh Srinivas
On Thu, Nov 11, 2010 at 3:59 AM, Siju George  wrote:
> Hi,
>
> Playing an flv file using vlc was giving distorted sound. KInd of echoing.
> After I quit the player it crashed with
>
> =
> [0x282e00b0] main libvlc: Running vlc with the default interface. Use
> 'cvlc' to use vlc without interface.
> [flv @ 0x28509000]skipping flv packet: type 18, size 5307, flags 0
> Compiler did not align stack variables. Libavcodec has been miscompiled
> and may be very slow or crash. This is not a bug in libavcodec,
> but in the compiler. You may try recompiling using gcc >= 4.2.
> Do not report crashes to FFmpeg developers.
> mdb:71, lastbuf:0 skipping granule 0
> QPainter::begin: Paint device returned engine == 0, type: 1
> [0x28443920] pulse audio output: No. of Audio Channels: 2
> mdb:255, lastbuf:0 skipping granule 0
> mdb:255, lastbuf:0 skipping granule 0
> mdb:255, lastbuf:110 skipping granule 0
> mdb:255, lastbuf:110 skipping granule 0
> mdb:255, lastbuf:219 skipping granule 0
> assertion: z->z_Magic == ZALLOC_SLAB_MAGIC in _slabfree
> Abort trap: 6 (core dumped)
> ==
>
> The sound still continued with greater speed for some more time and then 
> stopped
>
> vlc-1.0.6nb4     2.9-DEVELOPMENT DragonFly
> v2.9.1.10.g4d623-DEVELOPMENT #1: Wed Nov 10 12:14:34 IST 2010
>

Cool,

Do you happen to have the core dump? (It should be a file like
vlc.core or something) in the directory where you ran VLC.

-- vs



vlc assertion: z->z_Magic == ZALLOC_SLAB_MAGIC in _slabfree

2010-11-11 Thread Siju George
Hi,

Playing an flv file using vlc was giving distorted sound. KInd of echoing.
After I quit the player it crashed with

=
[0x282e00b0] main libvlc: Running vlc with the default interface. Use
'cvlc' to use vlc without interface.
[flv @ 0x28509000]skipping flv packet: type 18, size 5307, flags 0
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. You may try recompiling using gcc >= 4.2.
Do not report crashes to FFmpeg developers.
mdb:71, lastbuf:0 skipping granule 0
QPainter::begin: Paint device returned engine == 0, type: 1
[0x28443920] pulse audio output: No. of Audio Channels: 2
mdb:255, lastbuf:0 skipping granule 0
mdb:255, lastbuf:0 skipping granule 0
mdb:255, lastbuf:110 skipping granule 0
mdb:255, lastbuf:110 skipping granule 0
mdb:255, lastbuf:219 skipping granule 0
assertion: z->z_Magic == ZALLOC_SLAB_MAGIC in _slabfree
Abort trap: 6 (core dumped)
==

The sound still continued with greater speed for some more time and then stopped

vlc-1.0.6nb4 2.9-DEVELOPMENT DragonFly
v2.9.1.10.g4d623-DEVELOPMENT #1: Wed Nov 10 12:14:34 IST 2010

thanks

Siju