Re: FXP breakage

2003-04-03 Thread Chuck McCrobie

--- Pete Carah <[EMAIL PROTECTED]> wrote:
> This may be just my infamous vaio acting up again,
> but since the 
> recent commit to fxp driver (Monday?) I get a panic
> on device probe
> (page fault in kernel mode).
> 
> That and the way the pccbb act up (always return 0
> for event and
> status register reads, and don't reset pending
> interrupt on event reg
> write) make me think that something is awry with the
> way acpi/pci 
> allocate memory for the device windows.
> 
> I know there is something funny with the aml/asl
> since almost everything
> ends up on irq 9 also...
> 
> I also sometimes see the lock order problem with pcm
> but mostly just missing
> interrupts (choppy sound that comes out slow but in
> the right order).
> PCM is responding to display interrupts...
> 
> -- Pete

I wondered what that crash was on boot-up.  Sometimes
it does boot though!  Anyway...

I also have almost everything on IRQ9.  I'm not sure
its FreeBSD - I think its the Vaio :(  Just checked
Windows 2000 and it lists USB, video, network,
firewire, audio _ALL_ on IRQ9.

Perhaps your pcm problems come from the interrupt not
being delivered at all - try moving a USB mouse while
your audio is playing.  I have a hacky-hack to make my
vaio's audio play normally.  I noticed that since the
audio and usb share an interrupt, moving a USB mouse
gets the pcm interrupt handler called - which results
in normal sound.

Sorry, I don't have my own web page address handy - I
never go there ;)  I'll send it privately.

Chuck McCrobie
[EMAIL PROTECTED]



__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AC97 sound problems with current

2003-03-27 Thread Chuck McCrobie

--- John Hay <[EMAIL PROTECTED]> wrote:
> > 
> > | > There is a calibration step in the driver to
> determine the clock rate of th
> > | e 
> > | > AC97 link.  What you are seeing is the
> calibration step failing and setting
> > |  a 
> > | > bogus ac97 link rate.  I took a cursory look a
> couple of weeks back and it 
> > | > smelt like the timecounter initialization
> point changed, but haven't gotten
> > |  
> > | > around to looking closer and fixing the
> driver.
> > 
> > It's definitely nothing to do with the timecounter
> - quick test on other h/w 
> > along similar lines.  I don't access to an ich
> board to test on - it's 
> > probably obvious, but I'm not seeing it just now
> with visual inspection...
> 
> It doesn't look like it is the timecounters. I just
> added some printfs
> and it looks like this:
> 
> pcm0: measured ac97 link rate at 51200 Hz
> t1 1.098359, t2 1.098363
> ociv 0, nciv 1, bytes 8192
> tsc1 445813142, tsc2 445821922, diff 8780
> 
> The tsc values are just from rdtsc(), I added tsc1 =
> rdtsc() just above
> the first microtime() and tsc2 just after the last.
> My machine is a 1.8G
> P4 (ICH2), so the timecounter values seem correct.
> 
> I have kernel around the middle of Feb that gets the
> value right and one
> from March 4 that gets it all wrong.
> 
> John
> -- 
> John Hay -- [EMAIL PROTECTED] /
> [EMAIL PROTECTED]
> ___
> [EMAIL PROTECTED] mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

I also see this problem.  On my machine, I dumped the
t1 and t2 variables - there's only about 3 microsecond
difference!.

It seems the calibration loop is entered, but that CIV
is immediately updated to the next index, thus getting
out of the loop after about 3-4 microseconds.

I thought something with the setup of the registers or
maybe a blocksize issue, but I'm getting out of my
element here.

I can try various testing and debug code if needed.

Chuck McCrobie
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Linux Emulation Panic

2003-01-13 Thread Chuck McCrobie
Thank you.  That was it.  Booted from
/boot/cvsup/kernel, loaded modules from
/boot/kernel/*.  Now, if I can just figure out
"read-conf" and friends in loader.

It seems I have to manually:

loader> unload
loader> set kernel=cvsup
loader> set kernelname=/boot/cvsup/kernel
loader> set module_path=/boot/cvsup
loader> boot

I want to have two different kernels - one I know
works (older -current) and the latest cvsup of
-current.

Then, I would like to:

loader> "some-command-to-load-alternate-configuration"

I suppose that's read-conf, but that doesn't seem to
like me :(

I have: /boot/cvsup.conf as:

unload
kernel=cvsup
kernelname=/boot/cvsup/kernel
module_path=/boot/cvsup

then I use:

loader> read-conf cvsup.conf

but the changes don't take effect.  Oh well, maybe
some more experimentation later...

Thanks,

Chuck McCrobie


--- Kenneth Culver <[EMAIL PROTECTED]> wrote:
> What exactly were you running? I use linux emulation
> on -CURRENT right now
> for mozilla and a few other packages, and havn't had
> any panics... you
> might have your kernel modules out of sync with your
> kernel.
> 
> Ken
> 
> On Mon, 13 Jan 2003, Chuck McCrobie wrote:
> 
> > Two panics produced when using Linux emulation on
> a
> > machine CVSUP'ed two hours ago.  Both very easy to
> > produce.  Am I the only one running Linux
> emulation on
> >  -current?  Or is something wacked-ifed with this
> > machine?
> >
> > Thanks,
> >
> > Chuck McCrobie
> > [EMAIL PROTECTED]
> >


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Sony VAIO GRX-670 Touchpad Support in -current

2003-01-13 Thread Chuck McCrobie
Should this be a "send-pr" or can someone commit it
from here?

Thank you,

Chuck McCrobie
[EMAIL PROTECTED]



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


psm.c.diff
Description: psm.c.diff


Linux Emulation Panic

2003-01-13 Thread Chuck McCrobie
Two panics produced when using Linux emulation on a
machine CVSUP'ed two hours ago.  Both very easy to
produce.  Am I the only one running Linux emulation on
 -current?  Or is something wacked-ifed with this
machine?

Thanks,

Chuck McCrobie
[EMAIL PROTECTED]




1.  cd /usr/ports/emulators/linux_base ; make install
(hand-typed, sorry for typo's)

Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x2c
fault code = supervisor read, page not present
instruction pointer = 0x08:0xc4670534
stack pointer = 0x10:0xdcb45c98
frame pointer = 0x10:0xdcb45c9c
code segment = base 0x0, limit 0xf, type 0x1b
 = DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 1516 (glibc_post_upgrade)
kernel: type 12 trap, code=0
Stopped at stackgap_init+0x14: mol 0x2c(%eax),%edx

db> trace
stackgrap_init(dcv45cd0,c047d023,c4360c78,c4361540,dcb45ce0)
at stackgap_init+0x14
linux_execve(c4361540,dcb45d10,dcb45cfc,dcb45d00,3) at
linux_execve+0x17
syscall(2f,2f,2f,8048816,bfbfea50) at syscall+0x2aa
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (11, Linux ELF, linux_execve),
eip=0x80486c2, esp=0xbfbfea2c, ebp=0xbfbfea38


2.  kldload linux ; /compat/linux/sbin/ldconfig




__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Vaio ACPI and PCCARD problems

2003-01-02 Thread Chuck McCrobie
--- Pete Carah <[EMAIL PROTECTED]> wrote:
> This is a Vaio R505ES.  Looks as if acpi is both
> totally necessary
> and doesn't work right.

 

> psm doesn't work (fails probe too).  Complains about
> unable to 
> allocate irq.
> 

You might try this.  I have a Sony Vaio GRX-670 and
the touch pad didn't work.  Took me a while to track
down this one line change ;)  Don't know if the R505ES
has the same issue...



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


psm.diff
Description: psm.diff


Touchpad support in -current for Sony Vaio GRX-670

2002-12-27 Thread Chuck McCrobie
Seems the 670 needs a slight addition to psm.c for its
touchpad.  Can this be committed?

I'm using Yahoo because the mailing list doesn't like
my "real" address.  Please excuse the formatting.

*** /usr/src/sys/isa/psm.c  Thu Dec 12 21:35:39
2002
--- psm.c   Fri Nov 29 01:49:22 2002
***
*** 2880,2885 
--- 2880,2886 
{ 0x80374d24, "IBM PS/2 mouse port"
},/*IBM3780,ThinkPad */
{ 0x81374d24, "IBM PS/2 mouse port"
},/*IBM3781,ThinkPad */
{ 0x0490d94d, "SONY VAIO PS/2 mouse
port"},/*SNY9004,Vaio*/
+   { 0x0390d94d, "SONY VAIO PS/2 mouse
port"},/*SNY9003,VaioGRX670*/
{ 0 }
  };


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message