Re: ACPI problems with Dell laptops (was: Laptop choices)

2005-11-23 Thread Ted Faber
On Wed, Nov 23, 2005 at 08:51:20PM +0100, Greg 'groggy' Lehey wrote:
 On Tuesday, 22 November 2005 at 17:12:46 -0800, Graham North wrote:
  Am currently trying to choose between a couple of laptops, the luck
  winner of which will have Freebsd loaded alongside WinXP.
 
  Dell Latitude d600 with Radeon 9000? video, intel pro wireless
  or
  IBM R51 - Intel Extreme2, intel pro wireless.
  The main differences will likely be the video and maybe bios, acpi...?
  Can someone suggest to me whether these are both safe choices?
  Am I better off installing 5.4 or 6.0?
 
 I've had both Dell and ThinkPad (no longer IBM).  I prefer Dell,
 despite their attempts to convince me otherwise.
 
 However, we currently seem to have significant ACPI problems with Dell
 laptops.  I'm writing this on an Inspiron 6000 running 7-CURRENT, but
 the same problems occur with 6.0: if I enable ACPI, timing goes to
 hell, and some things just time out.

Is *that* what's happening to my 6000 running CURRENT?

I've noticed that under load my bfe0 interface sometimes just wanders
off and needs to be re-ifconfiged to get going again.  And its
throughput generally sucks, but I haven't had a chance to try to run
things down.

If you want someone to check patches or try to reproduce problems,
please let me know.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpGslowNRaKG.pgp
Description: PGP signature


Re: Signal 11 on X server startup (Was: HEADSUP: XFree86 4.3.0 update

2003-03-16 Thread Ted Faber
On Fri, Mar 14, 2003 at 02:48:26AM -0500, Andrew J Caines wrote:
 Starting the server as normal with xinit gives normal startup messages, then fails
 with a signal 11:

I have this problem, too.  Same nv server.  I'm happy to provide
details.  One that might help is that this is an Athelon XP 1800.

Let me know what you need to debug with.


pgp0.pgp
Description: PGP signature


Re: nv with NVidia Riva 128 broken in 4.3.0

2003-03-28 Thread Ted Faber
On Fri, Mar 28, 2003 at 06:38:00PM -0800, Eric Anholt wrote:
 On Tue, 2003-03-18 at 01:32, Andrew J Caines wrote:
  Three out of three folks seeing the server segfault on startup are using
  the nv driver on a NVidia Riva 128 card. There does not appear to be a
  workaround or fix.
  
  Is this now a known problem to us and/or the XFree86 folks?
  
  Is anyone successfully using the 4.3.0 nv driver on a Riva 128?
 
 Sorry for not responding to this.  I'm not aware of a fix, and the nv
 driver maintainer couldn't reproduce it on linux.  I've created bug #71
 in XFree86 bugzilla to track this:
 http://bugs.xfree86.org/cgi-bin/bugzilla/show_bug.cgi?id=71

I think I could get him a FreeBSD core file if that would help.


pgp0.pgp
Description: PGP signature
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


PATA disks/DVD not detected on ATI IXP 700 - cannot boot

2009-09-16 Thread Ted Faber
Hi.

I'm trying to upgrade a machine to a new motherboard (the ECS
A790GXM-AD3 AM3 790GX) my FreeBSD 7-STABLE system (GENERIC kernel,
compiled from source on 10 Sept 2009) reaches the point where it's going
to mount the root file system and can't find the disk.  It drops me into
the manual specification of root file system menu, but there are no
GEOM-managed disks to choose from.  

There's only one drive in the system, a PATA-connected drive that boots
correctly under the old (and I do mean old, circa 2005) motherboard.
Booting from an install/rescue CDROM on a PATA_connected drive proceeds
about the same: boots but cannot find the CDROM to mount.  SATA drives
seem to be found correctly, but I don't have any with FreeBSD on them. 

The ATA controller reports itself as an ATI IXP 700.

There's more info on the motherboard here:
http://www.newegg.com/Product/Product.aspx?Item=N82E16813135236nm_mc=TEMC-RMA-Approvelcm_mmc=TEMC-RMA-Approvel-_-Content-_-text-_-

I haven't tried to boot from a USB drive yet, because ATA has so rarely
failed me in the past, but I'm happy to do whatever will help to provide
more diagnostic info.  (The machine is at home, so I won't be able to do
much data-gathering until tonight.)

Thanks for any help.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpsjCtVt974B.pgp
Description: PGP signature


Re: PATA disks/DVD not detected on ATI IXP 700 - cannot boot (dmesg attached)

2009-09-18 Thread Ted Faber
On Wed, Sep 16, 2009 at 09:13:27AM -0700, Ted Faber wrote:
 Hi.
 
 I'm trying to upgrade a machine to a new motherboard (the ECS
 A790GXM-AD3 AM3 790GX) my FreeBSD 7-STABLE system (GENERIC kernel,
 compiled from source on 10 Sept 2009) reaches the point where it's going
 to mount the root file system and can't find the disk.  It drops me into
 the manual specification of root file system menu, but there are no
 GEOM-managed disks to choose from.  
[...]

I managed to boot FreeBSD on this motherboard using a USB key.  Attached
is the dmesg from a verbose boot.  Any help would be appreciated.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.2-STABLE #6: Thu Sep 17 17:01:48 PDT 2009
r...@ylum.lunabase.org:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel /boot/kernel/kernel at 0xc0e85000.
Preloaded elf module /boot/kernel/geom_label.ko at 0xc0e851a8.
Preloaded elf module /boot/kernel/acpi.ko at 0xc0e85258.
module_register: module g_label already exists!
Module g_label failed to register: 17
Calibrating clock(s) ... i8254 clock: 1193240 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter i8254 frequency 1193182 Hz quality 0
Calibrating TSC clock ... TSC clock: 3000128259 Hz
CPU: AMD Athlon(tm) II X2 250 Processor (3000.13-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x100f62  Stepping = 2
  
Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT
  Features2=0x802009SSE3,MON,CX16,POPCNT
  AMD 
Features=0xee500800SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!
  AMD 
Features2=0x37ffLAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT
  TSC: P-state invariant
  Cores per package: 2
Data TLB: 48 entries, fully associative
Instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory  = 3489333248 (3327 MB)
Physical memory chunk(s):
0x1000 - 0x0009dfff, 643072 bytes (157 pages)
0x0010 - 0x003f, 3145728 bytes (768 pages)
0x01025000 - 0xcc4cdfff, 3410661376 bytes (832681 pages)
avail memory = 3409977344 (3252 MB)
Table 'FACP' at 0xcffb0200
Table 'APIC' at 0xcffb0390
MADT: Found table at 0xcffb0390
MP Configuration Table version 1.1 found at 0xc00fc2b0
APIC: Using the MADT enumerator.
MADT: Found CPU APIC ID 0 ACPI ID 1: enabled
SMP: Added CPU 0 (AP)
MADT: Found CPU APIC ID 1 ACPI ID 2: enabled
SMP: Added CPU 1 (AP)
MADT: Found CPU APIC ID 130 ACPI ID 3: disabled
MADT: Found CPU APIC ID 131 ACPI ID 4: disabled
ACPI APIC Table: 051909 APIC2009
INTR: Adding local APIC 1 as a target
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
bios32: Found BIOS32 Service Directory header at 0xc00f
bios32: Entry = 0xf0010 (c00f0010)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xf+0x31
pnpbios: Found PnP BIOS data at 0xc00f4ea0
pnpbios: Entry = f:664a  Rev = 1.0
Other BIOS signatures found:
APIC: CPU 0 has ACPI ID 1
APIC: CPU 1 has ACPI ID 2
ULE: setup cpu group 0
ULE: setup cpu 0
ULE: adding cpu 0 to group 0: cpus 1 mask 0x1
ULE: setup cpu group 1
ULE: setup cpu 1
ULE: adding cpu 1 to group 1: cpus 1 mask 0x2
ACPI: RSDP @ 0x0xf9580/0x0014 (v  0 ACPIAM)
ACPI: RSDT @ 0x0xcffb/0x003C (v  1 051909 RSDT2009 0x20090519 MSFT 
0x0097)
ACPI: FACP @ 0x0xcffb0200/0x0084 (v  1 051909 FACP2009 0x20090519 MSFT 
0x0097)
ACPI Warning (tbfadt-0505): Optional field Pm2ControlBlock has zero address 
or length:0   0/1 [20070320]
ACPI: DSDT @ 0x0xcffb0440/0xA5C4 (v  1  1 1000 0x INTL 
0x20051117)
ACPI: FACS @ 0x0xcffbe000/0x0040
ACPI: APIC @ 0x0xcffb0390/0x006C (v  1 051909 APIC2009 0x20090519 MSFT 
0x0097)
ACPI: MCFG @ 0x0xcffb0400/0x003C (v  1 051909 OEMMCFG  0x20090519 MSFT 
0x0097)
ACPI: OEMB @ 0x0xcffbe040/0x0072 (v  1 051909 OEMB2009 0x20090519 MSFT 
0x0097)
ACPI: HPET @ 0x0xcffbaa10/0x0038 (v  1 051909 OEMHPET  0x20090519 MSFT 
0x0097)
ACPI: SSDT @ 0x0xcffbaa50/0x0458 (v  1 A M I  POWERNOW 0x0001 AMD  
0x0001)
MADT: Found IO APIC ID 2, Interrupt 0 at 0xfec0
ioapic0: Routing external 8259A's - intpin 0
MADT: Interrupt override: source 0, irq 2
ioapic0: Routing IRQ 0 - intpin 2
MADT: Interrupt override: source 9, irq 9
ioapic0: intpin 9 trigger: level
ioapic0: intpin 9 polarity: low
ioapic0 Version 2.1 irqs 0-23 on motherboard
cpu0

Re: PATA disks/DVD not detected on ATI IXP 700 - cannot boot (dmesg attached)

2009-09-21 Thread Ted Faber
On Mon, Sep 21, 2009 at 12:39:17PM -0400, Jung-uk Kim wrote:
 On Friday 18 September 2009 11:52 pm, Ted Faber wrote:
  On Wed, Sep 16, 2009 at 09:13:27AM -0700, Ted Faber wrote:
   Hi.
  
   I'm trying to upgrade a machine to a new motherboard (the ECS
   A790GXM-AD3 AM3 790GX) my FreeBSD 7-STABLE system (GENERIC
   kernel, compiled from source on 10 Sept 2009) reaches the point
   where it's going to mount the root file system and can't find the
   disk.  It drops me into the manual specification of root file
   system menu, but there are no GEOM-managed disks to choose from.
 
  [...]
 
  I managed to boot FreeBSD on this motherboard using a USB key. 
  Attached is the dmesg from a verbose boot.  Any help would be
  appreciated.
 
 This is a known problem and should be fixed in 8.0.  Sorry, I haven't 
 had time to back-port the code.  Proabably it's good time to consider 
 testing 8.0-RC1. ;-)

Thanks for getting back to me.  It does seem to be fixed in 8.0-RC1 (and
thanks for that fix, too).  That is, 8.0-RC1 finds the drive, but...

8.0 (RELENG_8, from last night) doesn't seem to find the FBSD partitions
on the drive.  It finds the drive and the BIOS partition (slice).  It
fails on my old motherboard (not the one above) that boots 7.2-STABLE
just fine.  It drops me into the menu to manually configure the root
partition, but doesn't accept either the native device names for the
root partition (/dev/ad0s1a) or a geom label (/dev/label/root).  The
list of GEOM devices only includes ad0 and ad0s1.

The disk isn't dangerously dedicated, but I only added geom labels to
the partitions last night.  The glabels work fine under 7.2-STABLE, but
RELENG_8 seems to ignore them.  I've attached output from fdisk,
bsdlabel, and glabel in case I'm misinterpreting them.

I've been waiting for a free moment to write a more complete report, but
since I've got your attention...

Any ideas?  I'll be able to run more diagnostics under 8.0 tonight.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG
*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 488392002 (238472 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 14/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED
# /dev/ad0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  419430404.2BSD0 0 0 
  b: 20971520  4194304  swap
  c: 4883920020unused0 0 # raw part, don't 
edit
  d: 41943040 251658244.2BSD 2048 16384 28552 
  e: 421283138 671088644.2BSD0 0 0 
  Name  Status  Components
label/root N/A  ad0s1a
label/swap N/A  ad0s1b
 label/var N/A  ad0s1d
 label/usr N/A  ad0s1e


pgpEIGEa7vAvj.pgp
Description: PGP signature


Re: PATA disks/DVD not detected on ATI IXP 700 - cannot boot (dmesg attached)

2009-09-22 Thread Ted Faber
On Tue, Sep 22, 2009 at 01:54:42PM +0300, Andriy Gapon wrote:
  Any ideas?  I'll be able to run more diagnostics under 8.0 tonight.
 
 This could be another of GEOM_PART_BSD vs GEOM_BSD issues.
 I think this topic has been discussed several times recently on -current.

This looks like the problem.  Thanks for the pointer.  I remembered
something like this, but couldn't put my finger on it.  Just to make
life easier for the next guy the thread with this message (which
includes the dd hex that fixes it) seems to cover it.

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=774931+0+archive/2009/freebsd-current/20090118.freebsd-current

Which looks like the exact right thing for me.  I'll follow up when I
know for sure, but thanks much for the pointer!

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgptoQEzKQOgc.pgp
Description: PGP signature


Re: PATA disks/DVD not detected on ATI IXP 700 - cannot boot (dmesg attached)

2009-09-23 Thread Ted Faber
On Wed, Sep 23, 2009 at 08:27:58AM +0400, Andrey V. Elsukov wrote:
 Jung-uk Kim wrote:
 This is a known problem and should be fixed in 8.0.  Sorry, I haven't 
 had time to back-port the code.  Proabably it's good time to consider 
 testing 8.0-RC1. ;-)
 
 Hi,
 
 Can you look at this?
 http://butcher.heavennet.ru/patches/kernel/ata/ata-ati-r191568-backport-to-RELENG_7.diff
 
 So, it isn't tested (sorry, i don't have any test machines with RELENG_7, 
 only HEAD :)
 Ted and Dennis can you try it?

I jumped forward to RELENG_8 to get the box up, and dropping back to
RELENG_7 is a little bit painful, bit I'll try to give it a shot later
this week.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpWlScJlf7r2.pgp
Description: PGP signature


Re: PATA disks/DVD not detected on ATI IXP 700 - cannot boot (dmesg attached)

2009-09-23 Thread Ted Faber
On Tue, Sep 22, 2009 at 08:31:39AM -0700, Ted Faber wrote:
 On Tue, Sep 22, 2009 at 01:54:42PM +0300, Andriy Gapon wrote:
   Any ideas?  I'll be able to run more diagnostics under 8.0 tonight.
  
  This could be another of GEOM_PART_BSD vs GEOM_BSD issues.
  I think this topic has been discussed several times recently on -current.
 
 This looks like the problem.  Thanks for the pointer.  I remembered
 something like this, but couldn't put my finger on it.  Just to make
 life easier for the next guy the thread with this message (which
 includes the dd hex that fixes it) seems to cover it.
 
 http://docs.freebsd.org/cgi/getmsg.cgi?fetch=774931+0+archive/2009/freebsd-current/20090118.freebsd-current
 
 Which looks like the exact right thing for me.  I'll follow up when I
 know for sure, but thanks much for the pointer!

Clearing the old bsdlabel as described in the mail message above fixed
my problem seeing the partition table.  Now I have to fix the apparently
wonky memory,,, sigh


-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpEy5GFog7id.pgp
Description: PGP signature


Re: pcm problem in 4.4-PRERELEASE

2001-08-13 Thread Ted Faber

On Tue, Aug 14, 2001 at 07:26:46AM +0200, Andre Albsmeier wrote:
 On Tue, 07-Aug-2001 at 07:25:36 -, Conrad Sabatier wrote:
  Since upgrading to 4.4-PRERELEASE, I can't get mtv to do audio anymore.
  The following message appears in the console window:
  
  pcm0: play interrupt timeout, channel dead
  
  I've tried both with and without esd enabled.  Same results.
  
  Strangely enough, mpg123 works just fine.
 
 On thing I forgot in my other mail regarding this, I am using:
 
 andre@bali:~cat /dev/sndstat 
 FreeBSD Audio Driver (newpcm) Aug  3 2001 12:12:07
 Installed devices:
 pcm0: SB16 DSP 4.16 at io 0x220 irq 5 drq 1:5 (1p/1r/0v channels duplex)
 
 
 Conrad, what hardware have you got?

I dunno what he's got, but I have:

praxis:~$ cat /dev/sndstat 
FreeBSD Audio Driver (newpcm) Aug 13 2001 22:13:30
Installed devices:
pcm0: SB16 DSP 4.13 at io 0x220 irq 5 drq 1:5 (1p/1r/0v channels duplex)

And I'm seeing the same symptoms.  If I use the play command with sox
(from ports, recompiled for the new kernel) I get a short blip as
though the sample is playing too fast, th esame effect I get just
catting an AU to /dev/audio.  No such problem until I cvsupped today.
Last cvsup was approx 12 days ago.


 PGP signature


Re: IRQ Problems with Stable

2001-08-23 Thread Ted Faber

On Thu, Aug 23, 2001 at 04:07:52PM -0600, Warner Losh wrote:
 In message [EMAIL PROTECTED] Ted Faber writes:

 Right.  Using PCI interrupts means you don't get a choice.  You must
 use the shared interrupt pin.

OK.  Does this place requirements on the driver that I'm not aware of
(which would be any requirements)?  I'm using ed0.

 
 : Here's a dmesg -v showing the boot and card insertion, the kernel
 : config file, and the /etc/pccard.conf .  I think everything else is
 : recent -STABLE.
 : 
 : Let me know if there are things I can try or any way to help out.
 : 
 : And I know you're working enormously hard on the PCCARD stuff, and I
 : really appreciate all your work.  Thanks.
 
 Try hw.pcic.init_route=1 in your /boot/loader.conf file.

I tried that, and hw.pcic.init_routing=1 as well.  :-) No luck. :-(

 
 If that doesn't work, I'll try a Friend's Lifebook C-5120 (or maybe it
 is a 5130) tonight.

Great.  Is there any other information I can give you to make this
easier?

 PGP signature


resume slow on Thinkpad T42 FreeBSD 8-STABLE

2010-02-24 Thread Ted Faber
Hi,

I'm running a recent (yesterday) FreeBSD 8-STABLE on my T42.  When I
resume from suspend the fan starts screen returns immediately (to text
mode) and then the system idles for about a minute until it shakes
itself awake.  The keyboard LEDs cycle, the disk runs and X returns.

I don't recall this stutter under FreeBSD 7.  I've tried both settings
of hw.acpi.reset_video and neither helps (nor hurts).  BIOS is also
upgraded to the most recent and the stutter occurred with before and
after the upgrade.

I have attached a trace of a boot -v going through the cycle.  The
t_delta entries happen after the machine wakes but before it restores
itself.  There'a also sometimes a message from acpi_ec0 saying that the
EC woke up before the sleep event, but I wasn't able to capture it
during this trace.

Any help would be appreciated, and I'm happy to provide more data on
request.


-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-STABLE #26: Tue Feb 23 17:40:06 PST 2010
r...@praxis.lunabase.org:/usr/obj/usr/src/sys/GENERIC i386
Preloaded elf kernel /boot/kernel/kernel at 0xc101b000.
Preloaded elf module /boot/kernel/snd_ich.ko at 0xc101b1a8.
Preloaded elf module /boot/kernel/sound.ko at 0xc101b254.
Preloaded elf module /boot/kernel/acpi_ibm.ko at 0xc101b300.
Preloaded elf module /boot/modules/video4bsd.ko at 0xc101b3b0.
Timecounter i8254 frequency 1193182 Hz quality 0
Calibrating TSC clock ... TSC clock: 1698567746 Hz
CPU: Intel(R) Pentium(R) M processor 1.70GHz (1698.57-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6d6  Stepping = 6
  
Features=0xafe9f9bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE
  Features2=0x180EST,TM2

Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries
Data TLB: 4 KB Pages, 4-way set associative, 128 entries
Instruction TLB: 4 MB pages, fully associative, 2 entries
2nd-level cache: 2-MB, 8-way set associative, 64-byte line size
1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size
Data TLB: 4 MB Pages, 4-way set associative, 8 entries
1st-level data cache: 32 KB, 8-way set associative, 64 byte line size
real memory  = 1610612736 (1536 MB)
Physical memory chunk(s):
0x1000 - 0x0009dfff, 643072 bytes (157 pages)
0x0010 - 0x003f, 3145728 bytes (768 pages)
0x01426000 - 0x5e412fff, 1560203264 bytes (380909 pages)
avail memory = 1558867968 (1486 MB)
bios32: Found BIOS32 Service Directory header at 0xc00f6d20
bios32: Entry = 0xfd750 (c00fd750)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xfd6e0+0x1f6
pnpbios: Found PnP BIOS data at 0xc00f6da0
pnpbios: Entry = f:b616  Rev = 1.0
pnpbios: Event flag at 4b4
Other BIOS signatures found:
ULE: setup cpu 0
video4bsd: /dev/video0..9, /dev/video_daemon0..9
snd_unit_init() u=0x00ff8000 [512] d=0x7c00 [32] c=0x03ff [1024]
feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 feeder_rate_min=1 
feeder_rate_max=2016000 feeder_rate_round=25
wlan: 802.11 Link Layer
null: null device, zero device
random: entropy source, Software, Yarrow
nfslock: pseudo-device
io: I/O
kbd: new array size 4
kbd1 at kbdmux0
mem: memory
Pentium Pro MTRR support enabled
hptrr: RocketRAID 17xx/2xxx SATA controller driver v1.2
ACPI: RSDP 0xf6d70 00024 (v2 IBM   )
ACPI: XSDT 0x5ff6a672 0004C (v1 IBMTP-1R3230  LTP )
ACPI: FACP 0x5ff6a700 000F4 (v3 IBMTP-1R3230 IBM  0001)
ACPI Warning: 32/64X length mismatch in Gpe1Block: 0/32 (20100121/tbfadt-625)
ACPI Warning: Optional field Gpe1Block has zero address or length:0
102C/0 (20100121/tbfadt-655)
ACPI: DSDT 0x5ff6a8e7 0C530 (v1 IBMTP-1R3230 MSFT 010E)
ACPI: FACS 0x5ff78000 00040
ACPI: SSDT 0x5ff6a8b4 00033 (v1 IBMTP-1R3230 MSFT 010E)
ACPI: ECDT 0x5ff76e17 00052 (v1 IBMTP-1R3230 IBM  0001)
ACPI: TCPA 0x5ff76e69 00032 (v1 IBMTP-1R3230 PTL  0001)
ACPI: BOOT 0x5ff76fd8 00028 (v1 IBMTP-1R3230  LTP 0001)
npx0: INT 16 interface
acpi0: IBM TP-1R on motherboard
acpi0: [MPSAFE]
acpi0: [ITHREAD]
acpi_ec0: Embedded Controller: GPE 0x1c, ECDT port 0x62,0x66 on acpi0
pci_open(1):mode 1 addr port (0x0cf8) is 0x8000f904
pci_open(1a):   mode1res=0x8000 (0x8000)
pci_cfgcheck:   device 0 [class=06] [hdr=00] is there (id=33408086)
pcibios: BIOS version 2.10
AcpiOsDerivePciId: \\_SB_.PCI0.MHCS - bus 0 dev 0 func 0
AcpiOsDerivePciId: \\_SB_.PCI0.PCI1.CBS0.CBUS - bus 2 dev 0 func 0
AcpiOsDerivePciId: \\_SB_.PCI0.PCI1.CBS1.CBUS - bus 2 dev 0 func 1
AcpiOsDerivePciId

Re: resume slow on Thinkpad T42 FreeBSD 8-STABLE

2010-02-25 Thread Ted Faber
On Thu, Feb 25, 2010 at 05:18:22PM +1100, Ian Smith wrote:
 On Wed, 24 Feb 2010, Ted Faber wrote:
 
   I'm running a recent (yesterday) FreeBSD 8-STABLE on my T42.  When I
   resume from suspend the fan starts screen returns immediately (to text
   mode) and then the system idles for about a minute until it shakes
   itself awake.  The keyboard LEDs cycle, the disk runs and X returns.
 
 Good to hear, Ted .. I thought it was just me :)  Your symptoms appear 
 entirely identical to mine as posted on Dec 13th to mobile@ and acpi@, 
 see thread 'Thinkpad T23 60 second stall on resuming 8.0-RELEASE/i386' 
 http://lists.freebsd.org/pipermail/freebsd-acpi/2009-December/006192.html
 
 Nate Lawson thought it an ATA rather than an ACPI problem and I assume 
 he's likely right, but I've had too much $work (and too little solar 
 power during an exceptionally wet summer) to follow it up.

Yeah, that sounds like the problem.  I'll poke at ata if I get the
chance, but that seems unlikely for a while.

 In case relevant, my ad0 is a 120GB Fujitsu MHV2120AH, but your TOSHIBA 
 MK4026GAX looks more likely to be the original disk?

Likely, but I can't be sure.  I bought it used.

 
 I've no time to spend on hunting this now, and know nothing about ATA 
 anyway, assuming that's where the problem lies, but I'll be quick to 
 test any suggested solution/s!

Like I say, assuming I ever get free time, I'll have a look.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpfYrpQjWj13.pgp
Description: PGP signature


Re: [ HEADS UP ] Ports unstable for the next 10 days

2010-04-13 Thread Ted Faber
On Sun, Mar 28, 2010 at 04:38:28PM +0300, Ion-Mihai Tetcu wrote:
 Hi,
 
 
 As announced before, a few big commits, that touch some thousands ports
 are being done: png, curl, x11, gnome, kde4. The target ETA is 6-7
 April. 

I didn't see any mial, but figured I'd check.  Are ports still unstable?

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpWwPAicZasS.pgp
Description: PGP signature


Re: resume slow on Thinkpad T42 FreeBSD 8-STABLE

2010-09-22 Thread Ted Faber
On Wed, Sep 22, 2010 at 07:51:00PM +1000, Ian Smith wrote:
 On Thu, 25 Feb 2010 17:35:51 -0800, Ted Faber wrote:
   On Thu, Feb 25, 2010 at 05:18:22PM +1100, Ian Smith wrote:
On Wed, 24 Feb 2010, Ted Faber wrote:

  I'm running a recent (yesterday) FreeBSD 8-STABLE on my T42.  When I
  resume from suspend the fan starts screen returns immediately (to text
  mode) and then the system idles for about a minute until it shakes
  itself awake.  The keyboard LEDs cycle, the disk runs and X returns.

Good to hear, Ted .. I thought it was just me :)  Your symptoms appear 
entirely identical to mine as posted on Dec 13th to mobile@ and acpi@, 
see thread 'Thinkpad T23 60 second stall on resuming 8.0-RELEASE/i386' 
http://lists.freebsd.org/pipermail/freebsd-acpi/2009-December/006192.html

Nate Lawson thought it an ATA rather than an ACPI problem and I assume 
he's likely right, but I've had too much $work (and too little solar 
power during an exceptionally wet summer) to follow it up.
   
   Yeah, that sounds like the problem.  I'll poke at ata if I get the
   chance, but that seems unlikely for a while.
   
In case relevant, my ad0 is a 120GB Fujitsu MHV2120AH, but your TOSHIBA 
MK4026GAX looks more likely to be the original disk?
   
   Likely, but I can't be sure.  I bought it used.
   

I've no time to spend on hunting this now, and know nothing about ATA 
anyway, assuming that's where the problem lies, but I'll be quick to 
test any suggested solution/s!
   
   Like I say, assuming I ever get free time, I'll have a look.
 
 Brought my Thinkpad T23 (actually a replacement, similar model, same HD) 
 to '8.1-STABLE #0: Sun Sep 5 15:53:00 EST 2010' but this issue persists, 
 as it does if booted from 8.1-i386-memstick, HD present but not mounted; 
 this one has the CDRW rather than the original's DVD-ROM, if relevant.
 
 Before excruciating detail of the issue in mobile@ and acpi@ again in 
 hope of debugging hints, have you (Ted or anyone) any further news on 
 Thinkpad T-series (or other) 60 second stalls/freezes on S3 resume?
 
 [Please read the abovementioned thread before asking any questions]

Sorry, Ian, I don't have anything new, wrt the ATA.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpiUYdMalxfu.pgp
Description: PGP signature


Re: ATI Radeon LW RV200 Mobility 7500 M7 locks up on X exit

2011-02-14 Thread Ted Faber
On Sat, Feb 12, 2011 at 03:20:54PM -0700, Warren Block wrote:
 On Fri, 11 Feb 2011, Ted Faber wrote:
 
  For the last couple weeks (maybe more) I've been having an intermittent
  problem on my Thinkpad T42 where exiting X causes my screen to lock up
  and the system seems to stop doing anything.  Lately it's happening
  about every 3rd time.
 
 My T42 is months out of date and needs updating, but I haven't seen that 
 issue before.  Have you made any changes to xorg-related stuff lately? 
 There are some things in your xorg.conf Device section that might be 
 questionable, but if it was working before...

I commented all the options out and still see the problem.

What did you see that looked suspect?

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpldqOtwyoXb.pgp
Description: PGP signature


Re: ATI Radeon LW RV200 Mobility 7500 M7 locks up on X exit

2011-02-14 Thread Ted Faber
On Fri, Feb 11, 2011 at 10:52:43PM -0800, Chris H wrote:
 I noticed a potential issue in the output of your attached Xorg.conf.

Can you tell me what looked fishy?  I'm happy to poke it it.

 Bottom line (for me anyway) has been that if I disable hald(8), I have nearly
 no (video related) issues. This is both on x86  amd64 systems.

When I turn off hald, X xan no longer find the mouse and keyboard.  I
can probably hard wire them down, but I get the impression that lots of
other gnome-ish things will get confused w/o hald.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpvVVuOmcQ1a.pgp
Description: PGP signature


Re: ATI Radeon LW RV200 Mobility 7500 M7 locks up on X exit

2011-02-14 Thread Ted Faber
On Mon, Feb 14, 2011 at 08:58:31PM -0700, Warren Block wrote:
 Updated the T42 tonight, which has the same video.  -STABLE as of today, 
 all ports updated as of today, and it seems fine.  At least no lock up 
 on restarting X or shutting down.  Your xorg.conf had some interesting 
 things, including XAA acceleration, which I didn't notice before. 
 Here's the one from this machine, comments stripped.  Composite enabled 
 does not provide composite, but otherwise no problems noticed:

I tried that xorg.conf, and still got the lockups.  The acceleration was
less effective as well.

I've attached the xorg.conf I'm using, which is pretty close to the one
you sent, as well as the log from /var/log/Xorg.0.log

I still see the lockups.

-- 
http://www.lunabase.org/~faber
Unexpected attachment? http://www.lunabase.org/~faber/FAQ.html#SIG
Section ServerLayout
Identifier X.org Configured
Screen  0  Screen0 0 0
#   InputDeviceMouse0 CorePointer
#   InputDeviceKeyboard0 CoreKeyboard
EndSection

Section ServerFlags
#   Option AutoAddDevices Off
#   Option AutoEnableDevices Off
#   Option AllowEmptyInput Off
EndSection

Section Files
#RgbPath  /usr/local/share/X11/rgb
ModulePath   /usr/local/lib/xorg/modules
FontPath /usr/local/lib/X11/fonts/misc/
FontPath /usr/local/lib/X11/fonts/TTF/
FontPath /usr/local/lib/X11/fonts/OTF
FontPath /usr/local/lib/X11/fonts/Type1/
FontPath /usr/local/lib/X11/fonts/100dpi/
FontPath /usr/local/lib/X11/fonts/75dpi/
EndSection

Section Module
Load  extmod
# Load  record
Load  dbe
Load  glx
Load  GLcore
Load  xtrap
Load  dri
Load  freetype
Load  type1
EndSection

#Section InputDevice
#   Identifier  Keyboard0
#   Driver  kbd
#EndSection

#Section InputDevice
#   Identifier  Mouse0
#   Driver  mouse
#   Option  Protocol auto
#   Option  Device /dev/sysmouse
#   Option  ZAxisMapping 4 5 6 7
#EndSection

Section Monitor
Identifier   Monitor0
VendorName   Monitor Vendor
ModelNameMonitor Model
EndSection

Section Device
### Available Driver options are:-
### Values: i: integer, f: float, bool: True/False,
### string: String, freq: f Hz/kHz/MHz
### [arg]: arg optional
#Option NoAccel   # [bool]
#Option SWcursor  # [bool]
#Option Dac6Bit   # [bool]
#Option Dac8Bit   # [bool]
#Option BusType   # [str]
#Option CPPIOMode # [bool]
#Option CPusecTimeout # i
#Option AGPMode   # i
#Option AGPFastWrite  # [bool]
#Option AGPSize   # i
#Option GARTSize  # i
#Option RingSize  # i
#Option BufferSize# i
#Option EnableDepthMoves  # [bool]
#Option EnablePageFlip# [bool]
#Option NoBackBuffer  # [bool]
#Option DMAForXv  # [bool]
#Option FBTexPercent  # i
#Option DepthBits # i
#Option PCIAPERSize   # i
#Option AccelDFS  # [bool]
#Option DDCMode   # [bool]
#Option IgnoreEDID# [bool]
#Option DisplayPriority   # [str]
#Option PanelSize # [str]
#Option ForceMinDotClock  # freq
#Option ColorTiling   # [bool]
#Option VideoKey  # i
#Option RageTheatreCrystal# i
#Option RageTheatreTunerPort  # i
#Option RageTheatreCompositePort  # i
#Option RageTheatreSVideoPort # i
#Option TunerType # i
#Option RageTheatreMicrocPath # str
#Option RageTheatreMicrocType # str
#Option ScalerWidth   # i
#Option RenderAccel   # [bool]
#Option SubPixelOrder # [str]
#Option ShowCache # [bool]
#Option DynamicClocks # [bool]
#Option VGAAccess # [bool]
#Option ReverseDDC# [bool]
#Option LVDSProbePLL  # [bool]
#Option AccelMethod   # str
#Option DRI   # [bool]
#Option ConnectorTable# str
#Option DefaultConnectorTable # [bool]
#Option DefaultTMDSPLL# [bool]
#Option

Re: ATI Radeon LW RV200 Mobility 7500 M7 locks up on X exit

2011-02-15 Thread Ted Faber
On Mon, Feb 14, 2011 at 11:40:01PM -0700, Warren Block wrote:
 On Mon, 14 Feb 2011, Ted Faber wrote:
 
  On Mon, Feb 14, 2011 at 08:58:31PM -0700, Warren Block wrote:
  Updated the T42 tonight, which has the same video.  -STABLE as of today,
  all ports updated as of today, and it seems fine.  At least no lock up
  on restarting X or shutting down.  Your xorg.conf had some interesting
  things, including XAA acceleration, which I didn't notice before.
  Here's the one from this machine, comments stripped.  Composite enabled
  does not provide composite, but otherwise no problems noticed:
 
  I tried that xorg.conf, and still got the lockups.  The acceleration was
  less effective as well.
 
 EXA is what it picks by default, and I did find that composite works 
 now.  The ChipID matches yours, 0x4c57.  The BIOS on this system is 3.23 
 (1RETDRWW), it has 1.5G of RAM.  I have dbus, hal, and moused enabled in 
 rc.conf.

All that is the same as mine (down to the 1.5 G of RAM (!)).

I do have an IBM wireless card in it that didn't come with the box but
is one of the models that thinkwiki.org recommends.  I also have an SSD
in for the disk, but that's the extent of the oddness (I hope).

-- 
http://www.lunabase.org/~faber
Unexpected attachment? http://www.lunabase.org/~faber/FAQ.html#SIG


pgpc7BqvdAbhW.pgp
Description: PGP signature


Re: ATI Radeon LW RV200 Mobility 7500 M7 locks up on X exit

2011-02-15 Thread Ted Faber
On Tue, Feb 15, 2011 at 09:17:41AM -0700, Warren Block wrote:
 On Tue, 15 Feb 2011, Boris Kochergin wrote:
 
  Ahoy. Just thought I'd add what I've observed about the problem. Back when 
  I 
  first encountered it on a T42, in the 7.x or 8.x days, it would manifest 
  itself reliably on X shutdown, but only when X was shut down for the second 
  time since the machine had been booted (ditching the ATI driver in favor of 
  VESA was a workaround). Nowadays, on T40s and T42s running -CURRENT, it is 
  sporadic, but much more frequent when the laptops are running on battery as 
  opposed to AC power. Whether or not HAL is present doesn't seem to affect 
  it.
 
 Maybe ACPI related.  I haven't seen the problem at all (ever, that I can 
 recall), but haven't been testing on battery.  Still using 
 xf86-video-ati-6.13.2 on this one, but the new 6.14.0 might make a 
 difference.

FWIW, I'm using xf86-video-ati-6.13.2 as well.  I also have a slow
resume problem, so ACPI problems are a possibility.  There's an ACPI
error in the boot log of my initial message.

-- 
http://www.lunabase.org/~faber
Unexpected attachment? http://www.lunabase.org/~faber/FAQ.html#SIG


pgpVHLAEgL6jE.pgp
Description: PGP signature


Re: ATI Radeon LW RV200 Mobility 7500 M7 locks up on X exit

2011-02-15 Thread Ted Faber
On Tue, Feb 15, 2011 at 10:54:54AM -0700, Warren Block wrote:
 On Tue, 15 Feb 2011, Ted Faber wrote:
 
  FWIW, I'm using xf86-video-ati-6.13.2 as well.  I also have a slow
  resume problem, so ACPI problems are a possibility.  There's an ACPI
  error in the boot log of my initial message.
 
 Do you have the lockup-on-shutdown problem if there have been no 
 suspend/resume actions?

Yes.

-- 
http://www.lunabase.org/~faber
Unexpected attachment? http://www.lunabase.org/~faber/FAQ.html#SIG


pgpGgpCaSVUya.pgp
Description: PGP signature


Re: linux-f10-flashplugin

2011-09-29 Thread Ted Faber
On Thu, Sep 29, 2011 at 02:41:39PM -0400, Michael Butler wrote:
 On 09/29/11 13:57, Norbert Augenstein wrote:
  On Wed, Sep 28, 2011 at 10:08:25PM +0400, S.N.Grigoriev wrote:
  28.09.2011, 21:10, Conrad J. Sabatierconr...@cox.net:
  On Wed, 28 Sep 2011 11:50:08 -0500
  Conrad J. Sabatierconr...@cox.net  wrote:
 
   [ .. snip .. ]
 
 
  Actually, now that I think of it, I think the way I did it was this:
 
  cd /home/conrads/.mozilla/plugins
 
  /usr/local/lib/nspluginwrapper/x86_64/freebsd/npconfig
  -i /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
 
  And npwrapper.libflashplayer.so was created
  under /home/conrads/.mozilla/plugins.
 
  Hope this helps.
 
  I've done it. No results.
 
   ... same problem here, but the last i did yesterday was a
   'freebsd-update' to 8.2-RELEASEp3
 
   after 'freebsd-update rollback' flash is working again.
   can someone look at this?
 
 Another data-point; when it fails, it records ..
 
 (npviewer.bin:62652): Gtk-WARNING **: cannot open display: :0
 *** NSPlugin Wrapper *** ERROR: failed to initialize plugin-side RPC 
 client connection
 NOTE: child process received `Goodbye', closing down
 
   .. in .xsession-errors :-(

I see that as well as:

(process:5430): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

(npviewer.bin:5430): GLib-WARNING **: getpwuid_r(): failed due
to unknown user id (2139)

(npviewer.bin:5430): Gtk-WARNING **: cannot open display: :0.0
*** NSPlugin Wrapper *** ERROR: failed to initialize plugin-side
RPC client connection
NOTE: child process received `Goodbye', closing down


I haven't explored the getpwuid_r thing.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpa67wIKijUI.pgp
Description: PGP signature


Re: linux-f10-flashplugin

2011-09-29 Thread Ted Faber
On Thu, Sep 29, 2011 at 10:06:59PM +0200, Alexander Leidinger wrote:
 On Thu, 29 Sep 2011 12:50:01 -0700 Ted Faber fa...@isi.edu wrote:
 
  On Thu, Sep 29, 2011 at 02:41:39PM -0400, Michael Butler wrote:
   On 09/29/11 13:57, Norbert Augenstein wrote:
On Wed, Sep 28, 2011 at 10:08:25PM +0400, S.N.Grigoriev wrote:
28.09.2011, 21:10, Conrad J. Sabatierconr...@cox.net:
On Wed, 28 Sep 2011 11:50:08 -0500
Conrad J. Sabatierconr...@cox.net  wrote:
 
 
  I see that as well as:
  
  (process:5430): Gtk-WARNING **: Locale not supported by C library.
  Using the fallback 'C' locale.
  
  (npviewer.bin:5430): GLib-WARNING **: getpwuid_r(): failed due
  to unknown user id (2139)
  
  (npviewer.bin:5430): Gtk-WARNING **: cannot open display: :0.0
  *** NSPlugin Wrapper *** ERROR: failed to initialize
  plugin-side RPC client connection
  NOTE: child process received `Goodbye', closing down
  
  
  I haven't explored the getpwuid_r thing.
  
 
 Can you all please confirm that you run the most recent FreeBSD version
 (of your branch), as in with the recent security fixes? There are
 reports that one of them may have caused what you see.

$ uname -a
FreeBSD vim.isi.edu 8.2-STABLE FreeBSD 8.2-STABLE #4: Wed Sep 28 09:08:38 PDT 
2011 r...@vim.isi.edu:/usr/obj/usr/src/sys/GENERIC amd64

I did a make update and then compiled and installed, which took about 40
minutes.  The update was triggered by seeing the security fixes on the
RSS feed.

I can grab new sources and reinstall if you think it's worth it.


-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpSjmDuhMrdq.pgp
Description: PGP signature


Re: linux-f10-flashplugin

2011-09-29 Thread Ted Faber
On Thu, Sep 29, 2011 at 01:05:40PM -0700, Jeremy Chadwick wrote:
 On Thu, Sep 29, 2011 at 12:50:01PM -0700, Ted Faber wrote:
  
  (process:5430): Gtk-WARNING **: Locale not supported by C library.
  Using the fallback 'C' locale.
 
 This would indicate you're messing with LANG, LC_*, or similar
 environment variables and that the locale you've chosen isn't valid.
 env in your shell should show them all, unless you're doing
 environment setting changes in X-related dotfiles (if that's possible; I
 do not jack squat about X, Gtk, etc.)

Well, all together now: I didn't change anything.  That is, I have not
modified my LC_ALL setting:

$ /usr/bin/env | grep LC
LC_ALL=en_US.UTF-8
$ /compat/linux/usr/bin/env  | grep LC
LC_ALL=en_US.UTF-8

 
  (npviewer.bin:5430): GLib-WARNING **: getpwuid_r(): failed due
  to unknown user id (2139)
  ...
  I haven't explored the getpwuid_r thing.
 
 Running id 2139 should return something other than no such user.  If
 not, your environment is looking up something that has such ownership.

2139 is my uid, and both linux and native FreeBSD seem to agree:

$ /usr/bin/id
uid=2139(faber) gid=134(div7)
groups=134(div7),0(wheel),5(operator),80(www),169(dartgrp),259(sys413),335(cs555fac),356(arpisi),387(crisis),402(ilense),546(xcp),584(webdiv7),605(rfcdev),7001(abac)
$ /compat/linux/usr/bin/id
uid=2139 gid=134(div7) 
groups=0(wheel),5(operator),80(www),169,259,335,356,387,402,546,584,605,7001(abac)


 I don't know if it's a file or a piece of C code that is intentionally
 looking for UID 2139.  This UID is not defined in /usr/ports/UIDs so
 it's not coming from a port using the existing USERS/GROUPS ports
 framework.  If it's a file it's keying off of, meaning file ownership,
 then possibly find / -user 2139 -ls might turn up something.

2139 is my id: the id of the user running firefox (and presumably the
plugin).

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgp6Fw0YsVPya.pgp
Description: PGP signature


Re: linux-f10-flashplugin

2011-09-29 Thread Ted Faber
On Thu, Sep 29, 2011 at 02:31:59PM -0700, Jeremy Chadwick wrote:
  I can grab new sources and reinstall if you think it's worth it.
 
 Did you rebuild ports (particularly glib, which appears to be what's
 spitting out the getpwuid_r() error) after you did this?

I've rebuilt firefox and glib, still the same.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgps7g8wf6OnK.pgp
Description: PGP signature


Re: linux-f10-flashplugin

2011-09-29 Thread Ted Faber
On Thu, Sep 29, 2011 at 03:01:44PM -0700, Jeremy Chadwick wrote:
 On Thu, Sep 29, 2011 at 02:40:09PM -0700, Ted Faber wrote:
  On Thu, Sep 29, 2011 at 01:05:40PM -0700, Jeremy Chadwick wrote:
   On Thu, Sep 29, 2011 at 12:50:01PM -0700, Ted Faber wrote:
(npviewer.bin:5430): GLib-WARNING **: getpwuid_r(): failed due
to unknown user id (2139)
...
I haven't explored the getpwuid_r thing.
   
   Running id 2139 should return something other than no such user.  If
   not, your environment is looking up something that has such ownership.
  
  2139 is my uid, and both linux and native FreeBSD seem to agree:
  
  $ /usr/bin/id
  uid=2139(faber) gid=134(div7)
  groups=134(div7),0(wheel),5(operator),80(www),169(dartgrp),259(sys413),335(cs555fac),356(arpisi),387(crisis),402(ilense),546(xcp),584(webdiv7),605(rfcdev),7001(abac)
  $ /compat/linux/usr/bin/id
  uid=2139 gid=134(div7) 
  groups=0(wheel),5(operator),80(www),169,259,335,356,387,402,546,584,605,7001(abac)
 
 I can only speculate what's going on here, but there's a lot of
 inconsistencies in UID-username and GID-group name mappings shown in
 the Linux id program there.
 
 On a native CentOS box, /usr/bin/id *does* return a username alongside
 the uid number.  Example:
 
 $ /usr/bin/id
 uid=1535(jdc) gid=1535(jdc) groups=101(cvsusers),110(netops),{snipped}
 
 So what I'm getting at: I don't know if the error from glib complaining
 about getpwuid_r() unknown user id is actually saying the UID 2139
 is unknown, or if it's saying the passwd struct details aren't filled
 in completely.  Taken from getpwuid_r(3) RETURN VALUES section:
 
The functions getpwent_r(), getpwnam_r(), and getpwuid_r() return 0
if no error occurred, or an error number to indicate failure.
It is not an error if a matching entry is not found.  (Thus, if
result is NULL and the return value is 0, no matching entry exists.)
 
 Likewise I would expect the group names to be expanded as well -- it's
 expanding some of them, but not all.  Why doesn't it know about GIDs
 169, 259, 335, 356, 387, 402, 546, 584, and 605?

Um, because my NIS was incorrectly configured.  Sorry for the blind
alley.

Adding nis and nisplus to the relevant entries in
/compat/linux/etc/nsswitch.conf means that linux id works dandy:

$ /compat/linux/usr/bin/id
uid=2139(faber) gid=134(div7) 
groups=0(wheel),5(operator),80(www),169(dartgrp),259(sys413),335(cs555fac),356(arpisi),387(crisis),402(ilense),546(xcp),584(webdiv7),605(rfcdev),7001(abac)

and the getpwnam_r error disappears.

The flashplugin still fails with the errors:
---
(process:52959): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

(npviewer.bin:52959): Gtk-WARNING **: cannot open display: :0.0
*** NSPlugin Wrapper *** ERROR: failed to initialize plugin-side RPC client 
connection
NOTE: child process received `Goodbye', closing down

(process:52979): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

(npviewer.bin:52979): Gtk-WARNING **: cannot open display: :0.0
*** NSPlugin Wrapper *** ERROR: failed to initialize plugin-side RPC client 
connection
NOTE: child process received `Goodbye', closing down
---

Sorry for the NIS noise.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpbbjXOn2JHq.pgp
Description: PGP signature


Re: linux-f10-flashplugin (unrelated Locale not supported message)

2011-09-30 Thread Ted Faber
On Fri, Sep 30, 2011 at 09:21:12PM +0200, Alexander Leidinger wrote:
 On Thu, 29 Sep 2011 16:13:50 -0700 Ted Faber fa...@isi.edu wrote:
 
  (process:52979): Gtk-WARNING **: Locale not supported by C library.
  Using the fallback 'C' locale.
 
 I would expect something like this if you use a valid FreeBSD locale
 specification which is not valid on Linux. For example on FreeBSD the
 iso 8859-XX locales have to be written differently. Maybe in your case
 we have something similar, a locale which exists in FreeBSD with a
 slightly different name than on Linux (Fedora 10 in the case of the
 linuxulator).

FWIW, I use:

$ echo $LC_ALL
en_US.UTF-8


-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpLi3k9VXNqO.pgp
Description: PGP signature


Re: linux-f10-flashplugin

2011-10-05 Thread Ted Faber
On Fri, Sep 30, 2011 at 08:55:56AM -0700, Kevin Oberman wrote:
 For those who missed it, this is a problem in the Linux emulation. See
 the announcement from the the FreeBSD Security Officer. for details,
 but the recent security patch triggered the problem by adding  check
 for the _UN data structure which is 4 bytes longer in Linux than on
 FreeBSD. The emulation layer has been passing the structure unmodified
 to the kernel and it is now being rejected.The message states that
 Colin is working on a patch to the emulation code which should be
 available shortly.
 
 http://docs.freebsd.org/cgi/getmsg.cgi?fetch=14130+0+current/freebsd-emulation

I installed 8-STABLE from sources today and this fix is in there and
works for me.

-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG


pgpPQbIC3XSvt.pgp
Description: PGP signature


nscd and passwd_compat

2011-10-05 Thread Ted Faber
After the recent discussion of nscd here, I turned it on and after
fooling with various configuration files I think I have it up, but I'm
getting a warning(?) message from many programs when they call
_nsdispatch:

dbus[3037]: NSSWITCH(_nsdispatch): cache, passwd_compat, getpwnam_r, not
found, and no fallback provided
dbus[3037]: NSSWITCH(_nsdispatch): cache, passwd_compat, getpwnam_r, not
found, and no fallback provided

I am using passwd_compat, and I think I have nscd compiled to cahce it
and passwd, but the message gives me pause.  Everything is still
resolving, but I'm wondering if I'm getting any benefit. 

I tried running nscd with debugging messages (-t -s -d) and didn't see
anything change when another program generated the message.

I've attached my /etc/nsswitch.conf and /etc/nscd.conf

Any feedback would be great.


-- 
Ted Faber
http://www.isi.edu/~faber   PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG
#
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: src/etc/nsswitch.conf,v 1.1.10.1 2009/08/03 08:13:06 kensmith Exp $
#
group: compat
group_compat: cache nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: cache nis
shells: files
services: compat
services_compat: cache nis
protocols: files
rpc: files
#
# Default caching daemon configuration file
# $FreeBSD: src/etc/nscd.conf,v 1.2.4.1 2009/08/03 08:13:06 kensmith Exp $
#

enable-cache passwd yes
enable-cache passwd_compat yes
enable-cache group yes
enable-cache group_compat yes
enable-cache hosts yes
enable-cache services yes
enable-cache services_compat yes
enable-cache protocols yes
enable-cache rpc yes
enable-cache networks yes


pgpQGcbEVyAVh.pgp
Description: PGP signature