Re: bus_setup_intr (9)

2009-02-12 Thread Paolo Pisati
Alexej Sokolov wrote: from man: int bus_setup_intr(device_t dev, struct resource *r, int flags, driver_filter_t filter, driver_intr_t ithread, void *arg, void **cookiep); The function filter returns value of type driver_filter_t (int). This function will run if interrupt

Re: INTR_FILTER?

2009-01-30 Thread Paolo Pisati
Andriy Gapon wrote: INTR_FILTER - what does it do? It doesn't seem to be documented anywhere, but seems to affect interrupt code. for a bit more information about interrupt filtering, see here: http://lists.freebsd.org/pipermail/freebsd-hackers/2007-February/019704.html -- bye, P.

smbus i2c: why i2c is not enabled on ich?

2008-09-21 Thread Paolo Pisati
Any reason why i2c mode in not enable in ichsmb? [EMAIL PROTECTED]:0:31:3:class=0x0c0500 card=0x82d81043 chip=0x266a8086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '82801FB (ICH6) SMBus Controller' class = serial bus subclass = SMBus [EMAIL

Re: Lost interrupts during boot

2007-06-08 Thread Paolo Pisati
I testing booting with a combo USB/Firewire carbus card, but no interrupts are genereated. If I plug the card in when the computer is not cold, it works fine. Any ideas? Does the cardbus driver generate a dummy interrupt to make sure that any outstanding interrupts are cleared? how old is

Re: HEADS UP: interrupt filtering newbus API breakage

2007-02-21 Thread Paolo Pisati
On Tue, Feb 20, 2007 at 10:17:21AM -0800, Doug Barton wrote: Paolo Pisati wrote: So, if none as anything against it, i'm going to commit this work on Friday 23 around 14:00 UTC, so speak now or forever hold your peace. With any kind of luck this is redundant information for you, but I

HEADS UP: interrupt filtering newbus API breakage

2007-02-20 Thread Paolo Pisati
Hi developers, after re@ approval, i'm ready to commit my first interrupt filtering patch that contains _JUST_ the modification to the newbus API: no new features, no improvement to the interrupt handling, etcetc The patches against a 4 weeks old HEAD are here:

Re: qemu is unusable on my smp box

2006-05-13 Thread Paolo Pisati
On Sat, May 13, 2006 at 02:05:58PM +0200, Ivan Voras wrote: Paolo Pisati wrote: all these problems occur on a dualcore pentiumd 920 (2.8Ghz), 2gb ram, intel 945g (X in vesa mode- agp doesn't attach) (see dmesg attached), while the exact same freesbie images runs fine on a 6.1 [EMAIL

qemu is unusable on my smp box

2006-05-12 Thread Paolo Pisati
with latest qemu port (but i tried to downgrade it down to 7.2.something and it didn't change), on a 6.1 host (see NEWLUXOR kernel config file attached), running a 6.1 freesbie image (see IPFW kernel config attached) qemu showed the following problems: 1) when i launch qemu, many times it

[patch] Redirect and LSNAT support in ipfw

2006-02-18 Thread Paolo Pisati
Hi, as a continuation of my Summer of Code project Improve libalias i just decided to release a new version with: 1) dinamyc address support via interface name (ipfw nat 111 config if tun0) 2) redirect and LSNAT support in ipfw following closely the natd syntax. The only difference

EVENTHANDLER and ifaddr_event

2005-12-10 Thread Paolo Pisati
Hi hackers, i'm using EVENTHANDLER(ifaddr_event, ...) to monitor nic address change on FreeBSD 6.x. It's working fine but my callback function is called 2 times per address change, and i don't understand why. Is it the supposed behavior? Thanks -- Paolo

Re: IPFW NATD = NAT POOL

2005-09-22 Thread Paolo Pisati
On Thu, Sep 22, 2005 at 08:41:16AM +, Nate Nielsen wrote: No. I think each instance of natd (at least last time I looked at it) could only use one IP address as it's public address. FYI you can use nat inside ipfw[*]: ipfw nat 1 config ip 192.168.0.123 ipfw nat 2 config ip 192.168.0.456

Summer of Code 2005: Improve Libalias

2005-09-06 Thread Paolo Pisati
Hi guys, Summer of Code is finished so i released my work about libalias, and i would appreciate if anyone try it out and report. There's a tarball here: http://ubi8.imc.pi.cnr.it/~flag/libalias/libalias.tgz or if you prefer perforce:

Re: i915 AGP not supported aka PR kern/80396

2005-05-22 Thread Paolo Pisati
On Sat, May 21, 2005 at 03:17:21PM +0200, Paolo Pisati wrote: (i already sent an email to Eric some days ago but i didn't receive any ack so i try here...) can anyone take a look at this? as the comments say, agp still doesn't work... anything i can do to help? Eric? [snip] i

i915 AGP not supported aka PR kern/80396

2005-05-21 Thread Paolo Pisati
(i already sent an email to Eric some days ago but i didn't receive any ack so i try here...) can anyone take a look at this? as the comments say, agp still doesn't work... anything i can do to help? Eric? verbose boot: FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 [EMAIL

Spin down hard disk: any suggestions?

2005-05-07 Thread Paolo Pisati
As the subject says i'm trying to spin down/turn off/ put in energy safe/etcetc automatically my usb disk. I'm running 5.x and the only way to reliably calm down my disk was to umount it. The 'trick' was to use automount and periodically check umount it, but i thought there should be better

sysctl stuff and your article in daemon news zine 200305

2004-09-16 Thread Paolo Pisati
Hi guys i was looking for some material about sysctl stuff when i found out phk's article in daemonews. Sysctl are simple to use but i'm stuck with SYSCTL_ADD_PROC(). Lets' take this: sysctl_ctx_init(xxx_clist); o = SYSCTL_ADD_NODE(xxx_clist,

Installing minibsd inside vmware virtual disk

2004-09-14 Thread Paolo Pisati
Hi guys, [the long story] i've a problem while i try to install minibsd inside a virtual disk of vmware3 running on top of FreeBSD. I obtained minibsd scripts form the freesbie cvs, unpacked in a dir on my disk, executed all the scripts and generated a iso containing a complete minibsd system.

Library (ab)use in kernel land

2004-08-28 Thread Paolo Pisati
As a general rule of thumb, which are the safe libraries we can link against while developing a kernel module? I mean, can i use libc functions? All of them? And what about the other libraries in the base system? Thanks. -- Paolo Italian FreeBSD User Group: http://www.gufi.org

Playing with mbuf in userland

2004-08-22 Thread Paolo Pisati
Hi, i'm developing a little app that manipulates mbuf. Right now i'm still working on it as userland app but i would like to test it with some real mbufs straight from the stack. Do you know how i can get some of these structs in an easy way? I mean, is it possible to copy some of these struct

Re: Confused about HyperThreading and Performance

2003-11-12 Thread Paolo Pisati
On Wed, Nov 12, 2003 at 02:28:25PM -0500, Daniel Ellard wrote: My questions: did you try setting: machdep.cpu_idle_hlt: 1 ? It should help on HTT system. -- Paolo Italian FreeBSD User Group: http://www.gufi.org ___ [EMAIL PROTECTED] mailing list

Ngctl hangs while it tries to connect to my netgraph node

2003-08-29 Thread Paolo Pisati
[cc: net cause it belongs there even] This is my situation now: [EMAIL PROTECTED] n_dimensions]# ngctl msg classifier_mast: stop ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C and this is ps axl: 0 416 203 0 -20 0 900 440 netgra D+v10:00.01 ngctl msg cl and if i

Re: new routing protocol

2003-08-20 Thread Paolo Pisati
On Tue, Aug 19, 2003 at 04:02:40PM -0700, Jerry Toung wrote: My problem is dealing with debuging and portability. With this raw approach I guess I will have to run builkernel and installkernel all the time. How can I avoid that? I thought about kernel modules, but I don't know what

Netgraph node, first steps in kernel land and a bloody crash dump

2003-07-31 Thread Paolo Pisati
Hi guys, still here with my netgraph node. Today, after a couple of nice days without a problem, i spent the last 4 hours trying to understand why the hell, my module crash my stable box. DISCLAIMER: this is my first real attempt to work in kernel land, so it's quite possibile that i did

[newbie] Allocating memory in kernel land

2003-06-30 Thread Paolo Pisati
Hi guys, as the subject says, i'm a newbie in kernel and i'm facing the task to port a userland program in kernel land (actually inside a netgraph node) and i was wondering how to threat the memory inside the kernel: are there any important things i should be aware of? like memory/stack limit,

[Netgraph] Inserting a node in a running net config. (ADSL PPPOE)

2003-06-25 Thread Paolo Pisati
As the subject says, i've 2 netgraph nodes communicating and exchanging datac, but i would like to insert my own node in the middle, is it possible? i've an adsl internet conncetion, so when my compueter boots, the netgraph nodes are already there working, buti would like to conncet my own node

Simple question about profiling

2003-02-18 Thread Paolo Pisati
I've to confess this my first serious profile session, and i found something really strange (at least for me... =P) [flag@law3 src]$ gprof proto3 [snip] % cumulative self self total time seconds secondscalls ms/call ms/call name 74.4 39.2639.26

Crash dump with attach =P

2002-10-02 Thread Paolo Pisati
sorry... =P -- Paolo Italian FreeBSD User Group: http://www.gufi.org Script started on Wed Oct 2 14:42:26 2002 GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or

Crash dump in attach

2002-10-02 Thread Paolo Pisati
It looks like i've finally achieved my first crash dump: see it in attach thanks -- Paolo Italian FreeBSD User Group: http://www.gufi.org To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

coredump incomplete

2002-10-01 Thread Paolo Pisati
I'm trying to reproduce a bug of my system, and create a dump but, just after my system rebooted, at the end of the boot process, savecore found a seek problem or something like that and the vmcore created was of only 10 bytes!!! =P which errors did i make?!?!? -- Paolo Italian FreeBSD

Crash dump problem

2002-10-01 Thread Paolo Pisati
After a spontaneous reboot, i received this msg: checking for core dump: savecore: reboot after panic: page fault Oct 1 23:13:22 southcross savecore: reboot after panic: page fault savecore: system went down at Tue Oct 1 23:09:20 2002 savecore: writing compressed core to

Do u think I can trust memtest from ports?

2002-09-30 Thread Paolo Pisati
If I load the agp module and i run memtest, i got a lot of errors (and in the past i exprienced even system crash), while if i don't load agp module and i run memtest everything is ok: why the agp module gives me these memory problems? bye -- Paolo Italian FreeBSD User Group:

Hey, is there space for a newbie? =)

2002-09-24 Thread Paolo Pisati
Hi guys, as I said in the subject i'm a newbies of the kernel, but i used FreeBSD for years, so when the time to write my final thesis in my university arrived i immediately thought to help in some way the FreeBSD group. Here there's a mini list of things i would like to work on, tell me

Writing a file system? Docs? Info? Article?

2002-03-28 Thread Paolo Pisati
Sometimes ago, I heard someone wanted to write a fs example (article? howto?) just to teach how to write a real fs under FreeBSD. I'm looking for this kind of info, any good pointer is welcome... -- Paolo Italian FreeBSD User Group: http://www.gufi.org To Unsubscribe: send mail to [EMAIL

First prg with sysctl

2001-10-13 Thread Paolo Pisati
Someone can tell me why this piece of code doesn't work? #includestdio.h #include sys/types.h #include sys/socket.h #include sys/sysctl.h #include sys/time.h #include net/if.h #include net/if_mib.h int main(void) { int mib[5], *count; mib[0]=CTL_NET; mib[1]=PF_LINK;