Re: inteldrm changes cause high temperature / fan speeds

2020-02-25 Thread Tero Koskinen

Hi,

Alex Karle wrote on 25.2.2020 6.51:

Hi Tero,

Apologies if this breaks the threading -- I wasn't subscribed to misc@
at the time the original was sent.

Have you (or any others) dug any deeper into this? 


My problem was more or less "solved" when the power supply from
my Optiplex died. Instead of fixing the supply, I simply recycled
the device and bought PC Engines APU2.

I still have another slightly newer Optiplex (running Linux), but
not sure when I will have time to test the latest OpenBSD on it
(might take many months).

Yours,
 Tero





Re: inteldrm changes cause high temperature / fan speeds

2019-11-13 Thread Tero Koskinen

Ted Unangst wrote on 13.11.2019 8.52:

Tero Koskinen wrote:

Eventually I pinned the problem down to April 14/15:

FAULTY 091f8f6587f dlg  Mon Apr 15 02:59:41 2019 +  the myx_cmd
FAULTY 1bbcb699ab8 dlg  Mon Apr 15 00:28:29 2019 +  there's a bunch
PROBLEM! 7f4dd37977d jsg  Sun Apr 14 10:14:50 2019 +  Update shared
drm code
OK 505701c75b3 visa Sun Apr 14 08:51:31 2019 +  Add lock

I must admit that I don't have yet any idea how to fix
the problematic commit (or what is actually wrong there).


This is not too surprising. It's still a bit of a mystery what's different
between machines that behave fine and those that don't.

I have the same machine, and it's never been problematic.

I note I'm at the same old bios I had when I first purchased it.
bios0: vendor LENOVO version "N23ET61W (1.36 )" date 01/17/2019


Note that my device is a desktop computer (Dell Optiplex 990)
with ultra small form factor (USFF) case - not Thinkpad or other laptop.

Otherwise I don't mind if fan or cpu is running at 100%, but
I am worried about the temperature. Idle 70C and 80+ C in
use temperatures will kill the device sooner or later (small case,
not so good ventilation).

Otto Moerbeek wrote on 13.11.2019 8.25:
>
> If you run top -S, do you see any process taking lots of CPU?

Nothing suspicious. I have some daemons, but they are mostly idle.

load averages:  0.06,  0.03,  0.00 
   gurb.koti 16:45:10
104 processes: 102 idle, 2 on processor 
 up  0:28
CPU0 states:  0.0% user,  0.0% nice,  0.0% sys,  0.0% spin,  0.0% intr, 
100% idle
CPU1 states:  0.0% user,  0.0% nice,  0.0% sys,  0.0% spin,  0.0% intr, 
100% idle
CPU2 states:  0.0% user,  0.0% nice,  0.0% sys,  0.0% spin,  0.0% intr, 
100% idle
CPU3 states:  0.0% user,  0.0% nice,  0.0% sys,  0.0% spin,  0.0% intr, 
100% idle

Memory: Real: 322M/1296M act/tot Free: 2542M Cache: 587M Swap: 0K/8189M

  PID USERNAME PRI NICE  SIZE   RES STATE WAIT  TIMECPU COMMAND
24353 root -2200K   11M sleep/3   -28:19  0.00% idle3
38595 root -2200K   11M sleep/2   -28:15  0.00% idle2
28685 root -2200K   11M sleep/1   -28:13  0.00% idle1
29534 root -2200K   11M sleep/0   -28:12  0.00% idle0
43437 _gitea100  129M   73M onproc/3  thrslee   0:04  0.00% gitea
20526 root  1000K   11M sleep/0   bored 0:01  0.00% softnet
0 root -1800K   11M sleep/0   schedul   0:01  0.00% swapper
93389 root -2200K   11M sleep/0   bored 0:01  0.00% 
softclock

66152 root  1000K   11M sleep/2   bored 0:01  0.00% systqmp
1 root  100  476K  444K idle  wait  0:01  0.00% init
83453 root  1000K   11M idle  bored 0:01  0.00% drmwq
49657 root  1000K   11M idle  bored 0:01  0.00% drmwq
61541 root  1000K   11M idle  usbatsk   0:01  0.00% usbatsk
51529 root  1000K   11M idle  bored 0:01  0.00% drmlwq
 9367 root  1000K   11M idle  bored 0:01  0.00% drmubwq
64175 root -1800K   11M idle  bored 0:01  0.00% smr
 2195 root  1000K   11M idle  bored 0:01  0.00% crynlk
7 root  1000K   11M idle  bored 0:01  0.00% drmtskl
 2429 root  1000K   11M idle  bored 0:01  0.00% drmlwq
38115 root  1000K   11M idle  bored 0:01  0.00% drmubwq
40710 root -1800K   11M sleep/1   reaper0:01  0.00% reaper
58981 root  68   200K   11M idle  pgzero0:01  0.00% 
zerothread
18061 www20   22M   27M sleep/1   select0:01  0.00% 
python2.7

29049 tkoskine  280 1504K 3624K onproc/0  - 0:00  0.00% top
77959 _unbound   20   33M   26M sleep/1   kqread0:00  0.00% unbound
 2955 www20   17M   21M sleep/0   select0:00  0.00% 
python2.7
45267 www20   13M   17M sleep/0   select0:00  0.00% 
python2.7

 5164 tkoskine   20 2128K 3068K sleep/0   kqread0:00  0.00% tmux
63466 root   20 1456K 4152K idle  poll  0:00  0.00% sshd
63357 _nsd   20   99M   83M idle  kqread0:00  0.00% nsd
92852 root  1800K   11M sleep/0   syncer0:00  0.00% update
48008 root   20 1616K 2044K sleep/0   poll  0:00  0.00% smbd
25978 root   20  800K  600K idle  kqread0:00  0.00% slaacd
95670 _nsd   20   32M   32M idle  poll  0:00  0.00% nsd
36212 root  1000K   11M idle  bored 0:00  0.00% i915
75047 root -2200K   11M idle  schto 0:00  0.00% 
i915/signal:2
53280 root -2200K   11M idle  schto 0:00  0.00% 
i915/signal:1
28187 root  1000K   11M idle  bored 0:00  0.00% 
i915-userptr-acq
78907 root -2200K   11M idle

inteldrm changes cause high temperature / fan speeds (was: Downgrade 6.6 to 6.5)

2019-11-12 Thread Tero Koskinen
Hi,

Sorry if someone gets this twice. My first version didn't go to the list.

cho...@jtan.com wrote on 6.11.2019 19.52:
> Theo de Raadt writes:
>> I have some sort of X1rev6 and I don't see the problem.
>>
>> The situation is you have the hardware, and you also have the sourcecode,
>> and the repository to traverse investigate the problem.
>>
>> That sounds hard, until you give it a try.
> 
> To be fair, it *is* hard. 

I have same problem on my Dell Optiplex 990 (running in "headless" mode,
no monitor attached!).

After upgrade from 6.5-stable to 6.6-current, CPU temperature
increased from 50C to 70C..80C and the fans are running at full speed.

So, I went and cloned OpenBSD src tree from https://github.com/openbsd/src/

Then I started bisecting kernel commits from 6.5-release to 6.6-current:
 > ls -1 kernels
bsd.apr10.a72c25aac8e43fe
bsd.apr14.505701c75b30a46033a8
bsd.apr23.53d03815630664
bsd.apr27.c1f77a6b17d5a799d322
bsd.apr29.47170b90f4a74
bsd.apr5.b2516e1f98d4a5f7757
bsd.jul31.ddc1a6c2c17
bsd.jun.b2a28ec4ea
bsd.jun1.535cf6c2b
bsd.may1.4a0e86bfb04cce9
bsd.may19.01b2b04ad452620a32
 >

(Note the list isn't complete. I noticed that kernel became backwards
incompatible at some point in April and I had to create a temporary
6.5 installation on another disk.)

Eventually I pinned the problem down to April 14/15:

FAULTY 091f8f6587f dlg  Mon Apr 15 02:59:41 2019 +  the myx_cmd
FAULTY 1bbcb699ab8 dlg  Mon Apr 15 00:28:29 2019 +  there's a bunch
PROBLEM! 7f4dd37977d jsg  Sun Apr 14 10:14:50 2019 +  Update shared 
drm code
OK 505701c75b3 visa Sun Apr 14 08:51:31 2019 +  Add lock

I must admit that I don't have yet any idea how to fix
the problematic commit (or what is actually wrong there).

Reverting 7f4dd37977d didn't work for latest 6.6-current as there
have been too many changes after that.

I also tried to check the latest changes from linux-4.19.y,
but didn't spot anything useful.

Yours,
  Tero


dmesg:
OpenBSD 6.6-current (GENERIC.MP) #452: Mon Nov 11 19:08:23 MST 2019
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4153880576 (3961MB)
avail mem = 4015665152 (3829MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf2650 (71 entries)
bios0: vendor Dell Inc. version "A19" date 08/26/2015
bios0: Dell Inc. OptiPlex 990
acpi0 at bios0: ACPI 4.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC TCPA SSDT MCFG HPET BOOT SSDT SSDT DMAR SLIC
acpi0: wakeup devices EHC1(S3) EHC2(S3) HDEF(S4) GLAN(S4) RP01(S4) 
PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) 
PXSX(S4) RP06(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.69 MHz, 06-2a-07
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.35 MHz, 06-2a-07
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.35 MHz, 06-2a-07
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz, 2494.35 MHz, 06-2a-07
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 

Re: OpenBSD firefox useragent Facebook

2015-02-19 Thread Tero Koskinen

Hi,

19.2.2015, 19:53, Erling Westenvik kirjoitti:

On Wed, Feb 18, 2015 at 02:52:28PM -0500, trondd wrote:

And what do you think your user agent is when you connect through
those other gateways?  ipchicken.com should tell you.


I'm aware what my user agent is. However, I started to wonder whether my
user agent string might confuse Facebook.


Have you tried to change the user agent? For example with
User Agent Switcher extension:
https://addons.mozilla.org/en/firefox/addon/user-agent-switcher/

And a year ago one person had MTU problem with Facebook:
http://marc.info/?l=openbsd-miscm=138058804118691w=2

Yours,
 Tero



Re: ada95 : gnat 4.6 : compile time warnings

2014-02-04 Thread Tero Koskinen

Hi,

4.2.2014 16:20, Tobias Ulmer wrote:

On Tue, Feb 04, 2014 at  04:36:22AM -0500, Mayuresh Kathe wrote:

 hello.adb gnatbind -x hello.ali gnatlink hello.ali
 
/usr/local/lib/gcc/x86_64-unknown-openbsd5.4/4.6.4/adalib/libgnat.a(adaint.o)(.text+0x3f3):

 In function `__gnat_os_filename':
 /usr/obj/gcc-4.6.4/build-amd64/gcc/ada/rts/adaint.c:714: warning:
 strcpy() is almost always misused, please use strlcpy()
 
/usr/local/lib/gcc/x86_64-unknown-openbsd5.4/4.6.4/adalib/libgnat.a(cstreams.o)(.text+0x12c):

 In function `__gnat_full_name':
 /usr/obj/gcc-4.6.4/build-amd64/gcc/ada/rts/cstreams.c:237: warning:
 strcat() is almost always misused, please use strlcat()
 
/usr/local/lib/gcc/x86_64-unknown-openbsd5.4/4.6.4/adalib/libgnat.a(adaint.o)(.text+0x1c8):

 In function `__gnat_try_lock':
 /usr/obj/gcc-4.6.4/build-amd64/gcc/ada/rts/adaint.c:552: warning:
 sprintf() is often misused, please use snprintf()

For OpenBSD 4.5 and gcc 4.3, I managed to get rid of most of these
warnings. You can see my custom port at
http://sourceforge.net/p/gnuada/code/HEAD/tree/trunk/OpenBSD/current/lang/gcc/

relevant patches are here:
http://sourceforge.net/p/gnuada/code/HEAD/tree/trunk/OpenBSD/current/lang/gcc/4.3/patches/

For example:
http://sourceforge.net/p/gnuada/code/HEAD/tree/trunk/OpenBSD/current/lang/gcc/4.3/patches/patch-gcc_ada_adaint_c


In addition, many buffers are  allocated on the Ada side, and the

 buffer size is not known in the C files due to a variety of very poor
 design choices.

I managed to pass the buffer length from Ada side to C code in
some cases. No idea did I do it correctly, but it seemed to work.


I've tried fixing this rats  nest before, and got lost. I don't plan

 on trying again.

Same problem here. Ada runtime (or Ada in general) in gcc
is quite complex thing and I didn't have time to continue
working on the port, so I had to give up and hope that
someone else will continue.

Yours,
 Tero



Re: Oxford PCI-e serial card support?

2011-04-13 Thread Tero Koskinen
On Fri, 25 Mar 2011 14:07:09 -0600 Mark Leonard wrote:

 Hi,
 
 I've recently purchased a 16-port PCI-e serial card with Oxford UARTs.
 OpenBSD 4.8 detects the Oxford chips, but doesn't seem to be able to
 use the 'unknown product 0xc308'. This thread
 http://www.mail-archive.com/misc@openbsd.org/msg100575.html implies
 that most of the steps to support this card may have already been
 taken.

Update to that earlier thread:
I have been running a patch below for a while and baud rate seems to
be correct on amd64 at least. I have tested my card against one
ARM development board and with custom max232 circuit using
xbee or usb-ftdi on the other side [1].

I think Stuart Henderson tried some similar diff, but couldn't get
it working properly.

(For a card with 8 uarts and different id, the diff needs to be
modified a little.)

Index: dev/pci//pcidevs
===
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1590
diff -u -p -u -r1.1590 pcidevs
--- dev/pci//pcidevs26 Jan 2011 07:09:09 -  1.1590
+++ dev/pci//pcidevs13 Apr 2011 17:24:23 -
@@ -4481,6 +4481,7 @@ product OXFORD2 EXSYS_EX41098 0x9511  Exs
 product OXFORD2 OX16PCI954P0x9513  OX16PCI954 Parallel
 product OXFORD2 OX16PCI952 0x9521  OX16PCI952
 product OXFORD2 OX16PCI952P0x9523  OX16PCI952 Parallel
+product OXFORD2 OX16PCIE9520xc158  OX16PCIE952
 
 /* Pacific Data products */
 product PDC QSTOR_SATA 0x2068  QStor SATA
Index: dev/pci//pcidevs.h
===
RCS file: /cvs/src/sys/dev/pci/pcidevs.h,v
retrieving revision 1.1587
diff -u -p -u -r1.1587 pcidevs.h
--- dev/pci//pcidevs.h  26 Jan 2011 07:10:53 -  1.1587
+++ dev/pci//pcidevs.h  13 Apr 2011 17:24:25 -
@@ -4486,6 +4486,7 @@
 #definePCI_PRODUCT_OXFORD2_OX16PCI954P 0x9513  /* OX16PCI954 
Parallel */
 #definePCI_PRODUCT_OXFORD2_OX16PCI952  0x9521  /* OX16PCI952 */
 #definePCI_PRODUCT_OXFORD2_OX16PCI952P 0x9523  /* OX16PCI952 
Parallel */
+#definePCI_PRODUCT_OXFORD2_OX16PCIE952 0xc158  /* OX16PCIE952 
*/
 
 /* Pacific Data products */
 #definePCI_PRODUCT_PDC_QSTOR_SATA  0x2068  /* QStor SATA */
Index: dev/pci//pcidevs_data.h
===
RCS file: /cvs/src/sys/dev/pci/pcidevs_data.h,v
retrieving revision 1.1582
diff -u -p -u -r1.1582 pcidevs_data.h
--- dev/pci//pcidevs_data.h 26 Jan 2011 07:10:53 -  1.1582
+++ dev/pci//pcidevs_data.h 13 Apr 2011 17:24:28 -
@@ -15040,6 +15040,10 @@ static const struct pci_known_product pc
OX16PCI952 Parallel,
},
{
+   PCI_VENDOR_OXFORD2, PCI_PRODUCT_OXFORD2_OX16PCIE952,
+   OX16PCIE952,
+   },
+   {
PCI_VENDOR_PDC, PCI_PRODUCT_PDC_QSTOR_SATA,
QStor SATA,
},
Index: dev/pci//pucdata.c
===
RCS file: /cvs/src/sys/dev/pci/pucdata.c,v
retrieving revision 1.72
diff -u -p -u -r1.72 pucdata.c
--- dev/pci//pucdata.c  22 Jul 2010 17:16:10 -  1.72
+++ dev/pci//pucdata.c  13 Apr 2011 17:24:28 -
@@ -897,6 +897,17 @@ const struct puc_device_description puc_
{ PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
},
},
+#if 1  
+   /* Oxford Semiconductor OX16PCIE952 PCIe `950 UARTs - 128 byte FIFOs */
+   {   /* Oxford Semiconductor OX16PCIE952 UARTs, */
+   {   PCI_VENDOR_OXFORD2, PCI_PRODUCT_OXFORD2_OX16PCIE952,0, 0 },
+   {   0x, 0x, 0, 0 },
+   {
+   { PUC_PORT_TYPE_COM, 0x10, 0x1000, 400 * 8 * 2},
+   { PUC_PORT_TYPE_COM, 0x10, 0x1200, 400 * 8 * 2},
+   },
+   },
+#endif
 
/* Oxford Semiconductor OX16PCI952 PCI Parallel port */
{   /* Oxford Semiconductor OX16PCI952 Parallel port, */


-- 
Tero Koskinen tero.koski...@iki.fi

[1] http://www.flickr.com/photos/66708330@N00/5613690175/



Re: amd64/i386 kernel freezes on Asus M4A785TD-V EVO mobo

2011-03-17 Thread Tero Koskinen
:de
ulpt0 at uhub2 port 2 configuration 1 interface 0 Brother HL-1450 series rev 
1.00/1.00 addr 2
ulpt0: using bi-directional mode
uhidev0 at uhub3 port 2 configuration 1 interface 0 Logitech USB Optical 
Mouse rev 2.00/43.01 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub3 port 3 configuration 1 interface 0 BTC USB Multimedia 
Keyboard rev 1.10/1.00 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub3 port 3 configuration 1 interface 1 BTC USB Multimedia 
Keyboard rev 1.10/1.00 addr 3
uhidev2: iclass 3/0, 3 report ids
uhid0 at uhidev2 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 2: input=3, output=0, feature=0
uhid2 at uhidev2 reportid 3: input=3, output=0, feature=8
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 1 targets
sd3 at scsibus3 targ 0 lun 0: OPENBSD, SR RAID 0, 004 SCSI2 0/direct fixed
sd3: 286172MB, 512 bytes/sec, 586082048 sec total
root on sd0a swap on sd0b dump on sd0b


Index: dsdt.c
===
RCS file: /cvs/src/sys/dev/acpi/dsdt.c,v
retrieving revision 1.181
diff -u -p -r1.181 dsdt.c
--- dsdt.c  2 Jan 2011 04:56:57 -   1.181
+++ dsdt.c  18 Mar 2011 05:12:14 -
@@ -1145,7 +1145,8 @@ aml_evalexpr(int64_t lhs, int64_t rhs, i
res = (lhs ^ rhs);
break;
case AMLOP_NOT:
-   res = ~(lhs);
+   /* res = ~(lhs); */
+   res = (!lhs);
break;
 
/* Conversion/misc */

-- 
Tero Koskinen tero.koski...@iki.fi



Re: amd64/i386 kernel freezes on Asus M4A785TD-V EVO mobo

2011-03-16 Thread Tero Koskinen
On Mon, 14 Mar 2011 21:06:26 -0400 Scott McEachern wrote:

   I bought some new hardware the other day, including an Asus M4A785TD-V 
 EVO motherboard and an AMD Phenom II X6 1100T CPU.
 
 The problem is that the kernel freezes when booting 
...
  If anyone has any suggestions, I'd love to hear them.  I'm dying to get 
 my OS of choice working on this machine!

I have exactly same motherboard with Phenom II X4. For me, it helps
when I disable acpi. (boot -c  disable acpi during the boot)

OpenBSD 4.9-beta (GENERIC.MP) #780: Thu Jan 20 17:21:34 MST 2011
t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3487105024 (3325MB)
avail mem = 3380256768 (3223MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f000 (68 entries)
bios0: vendor American Megatrends Inc. version 2103 date 06/18/2010
bios0: ASUSTeK Computer INC. M4A785TD-V EVO
acpi at bios0 not configured
mpbios0 at bios0: Intel MP Specification 1.4
...

-- 
Tero Koskinen tero.koski...@iki.fi



Re: amd64/i386 kernel freezes on Asus M4A785TD-V EVO mobo

2011-03-16 Thread Tero Koskinen
softraid0 at root
scsibus3 at softraid0: 1 targets
sd3 at scsibus3 targ 0 lun 0: OPENBSD, SR RAID 0, 004 SCSI2 0/direct fixed
sd3: 286172MB, 512 bytes/sec, 586082048 sec total
root on sd0a swap on sd0b dump on sd0b



-- 
Tero Koskinen tero.koski...@iki.fi



Re: amd64/i386 kernel freezes on Asus M4A785TD-V EVO mobo

2011-03-16 Thread Tero Koskinen
Replying to myself,

On Wed, 16 Mar 2011 21:50:15 +0200 Tero Koskinen wrote:
 Booting with ACPI enabled still stops after acpihpet. I think I debugged
 the problem at some point last year and found that acpi code went into
 busyloop and never exited, but I already forgot the details.

Turning on ACPI debug and capturing some parts of the output was easier
than I though. Picture quality isn't perfect, but I hope someone can
make some sense out of it.

Pictures here:
http://www.flickr.com/photos/66708330@N00/5532418739/
http://www.flickr.com/photos/66708330@N00/5533005322/

There is also a short video (3.6M):
http://iki.fi/tero.koskinen/openbsd/acpi1/VIDEO0019.3gp

These are from 4.9-beta GENERIC.MP kernel.

-- 
Tero Koskinen tero.koski...@iki.fi



Delock PCI Express serial card not recognized

2011-03-07 Thread Tero Koskinen
 support
rum0 at uhub0 port 1 Ralink Technology RT2573 rev 2.00/0.01 addr 2
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:0e:2e:c4:a9:de
ulpt0 at uhub2 port 2 configuration 1 interface 0 Brother HL-1450 series rev 
1.00/1.00 addr 2
ulpt0: using bi-directional mode
uhidev0 at uhub3 port 2 configuration 1 interface 0 Logitech USB Optical 
Mouse rev 2.00/43.01 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub3 port 3 configuration 1 interface 0 BTC USB Multimedia 
Keyboard rev 1.10/1.00 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub3 port 3 configuration 1 interface 1 BTC USB Multimedia 
Keyboard rev 1.10/1.00 addr 3
uhidev2: iclass 3/0, 3 report ids
uhid0 at uhidev2 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 2: input=3, output=0, feature=0
uhid2 at uhidev2 reportid 3: input=3, output=0, feature=8
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
softraid0: sd3 was not shutdown properly
scsibus3 at softraid0: 1 targets
sd3 at scsibus3 targ 0 lun 0: OPENBSD, SR RAID 0, 004 SCSI2 0/direct fixed
sd3: 286172MB, 512 bytes/sec, 586082048 sec total
root on sd0a swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
umass0 at uhub0 port 4 configuration 1 interface 0 JMicron USB to ATA/ATAPI 
Bridge rev 2.00/1.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd4 at scsibus4 targ 1 lun 0: ST350041, 8AS,  SCSI2 0/direct fixed
sd4: 476940MB, 512 bytes/sec, 976773168 sec total


Index: dev/pci/pcidevs
===
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1590
diff -u -p -r1.1590 pcidevs
--- dev/pci/pcidevs 26 Jan 2011 07:09:09 -  1.1590
+++ dev/pci/pcidevs 7 Mar 2011 19:35:44 -
@@ -4481,6 +4481,7 @@ product OXFORD2 EXSYS_EX41098 0x9511  Exs
 product OXFORD2 OX16PCI954P0x9513  OX16PCI954 Parallel
 product OXFORD2 OX16PCI952 0x9521  OX16PCI952
 product OXFORD2 OX16PCI952P0x9523  OX16PCI952 Parallel
+product OXFORD2 OX16PCIE9520xc158  OX16PCIE952
 
 /* Pacific Data products */
 product PDC QSTOR_SATA 0x2068  QStor SATA
Index: dev/pci/pcidevs.h
===
RCS file: /cvs/src/sys/dev/pci/pcidevs.h,v
retrieving revision 1.1587
diff -u -p -r1.1587 pcidevs.h
--- dev/pci/pcidevs.h   26 Jan 2011 07:10:53 -  1.1587
+++ dev/pci/pcidevs.h   7 Mar 2011 19:35:46 -
@@ -4486,6 +4486,7 @@
 #definePCI_PRODUCT_OXFORD2_OX16PCI954P 0x9513  /* OX16PCI954 
Parallel */
 #definePCI_PRODUCT_OXFORD2_OX16PCI952  0x9521  /* OX16PCI952 */
 #definePCI_PRODUCT_OXFORD2_OX16PCI952P 0x9523  /* OX16PCI952 
Parallel */
+#definePCI_PRODUCT_OXFORD2_OX16PCIE952 0xc158  /* OX16PCIE952 
*/
 
 /* Pacific Data products */
 #definePCI_PRODUCT_PDC_QSTOR_SATA  0x2068  /* QStor SATA */
Index: dev/pci/pcidevs_data.h
===
RCS file: /cvs/src/sys/dev/pci/pcidevs_data.h,v
retrieving revision 1.1582
diff -u -p -r1.1582 pcidevs_data.h
--- dev/pci/pcidevs_data.h  26 Jan 2011 07:10:53 -  1.1582
+++ dev/pci/pcidevs_data.h  7 Mar 2011 19:35:49 -
@@ -15040,6 +15040,10 @@ static const struct pci_known_product pc
OX16PCI952 Parallel,
},
{
+   PCI_VENDOR_OXFORD2, PCI_PRODUCT_OXFORD2_OX16PCIE952,
+   OX16PCIE952,
+   },
+   {
PCI_VENDOR_PDC, PCI_PRODUCT_PDC_QSTOR_SATA,
QStor SATA,
},
Index: dev/pci/pucdata.c
===
RCS file: /cvs/src/sys/dev/pci/pucdata.c,v
retrieving revision 1.72
diff -u -p -r1.72 pucdata.c
--- dev/pci/pucdata.c   22 Jul 2010 17:16:10 -  1.72
+++ dev/pci/pucdata.c   7 Mar 2011 19:35:50 -
@@ -897,6 +897,17 @@ const struct puc_device_description puc_
{ PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
},
},
+#if 1  
+   /* Oxford Semiconductor OX16PCIE952 PCIe `950 UARTs - 128 byte FIFOs */
+   {   /* Oxford Semiconductor OX16PCIE952 UARTs, */
+   {   PCI_VENDOR_OXFORD2, PCI_PRODUCT_OXFORD2_OX16PCIE952,0, 0 },
+   {   0x, 0x, 0, 0 },
+   {
+   { PUC_PORT_TYPE_COM, 0x10, 0x200, COM_FREQ },
+   { PUC_PORT_TYPE_COM, 0x14, 0x200, COM_FREQ },
+   },
+   },
+#endif
 
/* Oxford Semiconductor OX16PCI952 PCI Parallel port */
{   /* Oxford Semiconductor OX16PCI952 Parallel port, */


-- 
Tero Koskinen tero.koski...@iki.fi

[1] 
http://www.delock.com/produkte/gruppen/pci-express/Delock_PCI_Express_2_x_Serial_89220.html



Re: Delock PCI Express serial card not recognized

2011-03-07 Thread Tero Koskinen
On Mon, 7 Mar 2011 22:59:36 + (UTC) Stuart Henderson wrote:
 The PCIE parts use quite different addresses. You can try these:
 
 { PUC_PORT_TYPE_COM, 0x10, 0x1000, 400 * 8 },
 { PUC_PORT_TYPE_COM, 0x10, 0x1200, 400 * 8 },

Thanks, with these values the system doesn't freeze anymore and
I can send data from one port to another.

 The speeds will almost certainly be wrong, you'll probably need to
 cu -s 4800 to get a 9600 baud connection with this (the divisor should 
 be 400 * 16 but I couldn't get this to work, for more info see
 http://marc.info/?l=openbsd-techm=126446213208560w=2).
 
 I may have datasheets for this somewhere...you can learn some things
 from the linux driver too, they have some fancy stuff to work out how
 many ports the devices have, etc.

I tried to look at drivers/serial/8250_pci.c at one point, but couldn't
find anything special for these oxford cards. (I also didn't realize that
first_offset = 0x1000, .uart_offset = 0x200 maps into 0x1000/0x1200 on
OpenBSD, so I probably missed other things too.)

-- 
Tero Koskinen tero.koski...@iki.fi



ACPI not working on ASUS motherboard with AMD Phenon II

2010-01-26 Thread Tero Koskinen
: 2GB DDR3 SDRAM PC3-10600
pciide0 at pci0 dev 20 function 1 ATI SB700 IDE rev 0x00: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: HL-DT-ST, DVDRAM GH22LS50, TL02 ATAPI 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
azalia1 at pci0 dev 20 function 2 ATI SBx00 HD Audio rev 0x00: apic 4 int 16 
(irq 10)
azalia1: codecs: VIA/0x0397
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 ATI SB700 ISA rev 0x00
ppb2 at pci0 dev 20 function 4 ATI SB600 PCI rev 0x00
pci3 at ppb2 bus 3
em0 at pci3 dev 7 function 0 Intel PRO/1000GT (82541GI) rev 0x05: apic 4 int 
22 (irq 11), address 00:1b:21:54:4b:8d
VIA VT6306 FireWire rev 0xc0 at pci3 dev 8 function 0 not configured
ohci4 at pci0 dev 20 function 5 ATI SB700 USB rev 0x00: apic 4 int 18 (irq 
10), version 1.0, legacy support
pchb1 at pci0 dev 24 function 0 AMD AMD64 10h HyperTransport rev 0x00
pchb2 at pci0 dev 24 function 1 AMD AMD64 10h Address Map rev 0x00
pchb3 at pci0 dev 24 function 2 AMD AMD64 10h DRAM Cfg rev 0x00
km0 at pci0 dev 24 function 3 AMD AMD64 10h Misc Cfg rev 0x00
pchb4 at pci0 dev 24 function 4 AMD AMD64 10h Link Cfg rev 0x00
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 ATI OHCI root hub rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 ATI OHCI root hub rev 1.00/1.00 addr 1
usb4 at ohci2: USB revision 1.0
uhub4 at usb4 ATI OHCI root hub rev 1.00/1.00 addr 1
usb5 at ohci3: USB revision 1.0
uhub5 at usb5 ATI OHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8712F rev 8, EC port 0x290
usb6 at ohci4: USB revision 1.0
uhub6 at usb6 ATI OHCI root hub rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uhub7 at uhub0 port 5 Genesys Logic USB2.0 Hub rev 2.00/7.02 addr 2
umsm0 at uhub7 port 3 configuration 1 interface 0 HUAWEI Technologies HUAWEI 
Mobile Modem rev 1.10/0.00 addr 3
ucom0 at umsm0
umsm1 at uhub7 port 3 configuration 1 interface 1 HUAWEI Technologies HUAWEI 
Mobile Modem rev 1.10/0.00 addr 3
ucom1 at umsm1
umass0 at uhub7 port 3 configuration 1 interface 2 HUAWEI Technologies HUAWEI 
Mobile Modem rev 1.10/0.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
cd1 at scsibus2 targ 1 lun 0: HUAWEI, Mass Storage, 2.31 SCSI2 5/cdrom 
removable
uhidev0 at uhub3 port 1 configuration 1 interface 0 Logitech USB Receiver rev 
2.00/57.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 16 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub3 port 1 configuration 1 interface 1 Logitech USB Receiver rev 
2.00/57.00 addr 2
uhidev1: iclass 3/0, 17 report ids
uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0
uhid1 at uhidev1 reportid 16: input=6, output=6, feature=0
uhid2 at uhidev1 reportid 17: input=19, output=19, feature=0
uhidev2 at uhub3 port 3 configuration 1 interface 0 BTC USB Multimedia 
Keyboard rev 1.10/1.00 addr 3
uhidev2: iclass 3/1
ukbd0 at uhidev2: 8 modifier keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev3 at uhub3 port 3 configuration 1 interface 1 BTC USB Multimedia 
Keyboard rev 1.10/1.00 addr 3
uhidev3: iclass 3/0, 3 report ids
uhid3 at uhidev3 reportid 1: input=1, output=0, feature=0
uhid4 at uhidev3 reportid 2: input=3, output=0, feature=0
uhid5 at uhidev3 reportid 3: input=3, output=0, feature=8
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 1 targets
sd3 at scsibus4 targ 0 lun 0: OPENBSD, SR RAID 0, 003 SCSI2 0/direct fixed
sd3: 286173MB, 512 bytes/sec, 586082817 sec total
root on sd0a swap on sd0b dump on sd0b


-- 
Tero Koskinen tero.koski...@iki.fi



Re: ACPI not working on ASUS motherboard with AMD Phenon II

2010-01-26 Thread Tero Koskinen
On Wed, 27 Jan 2010 00:38:23 +0200 Tero Koskinen wrote:

 Hi,
...
 Partial because, acpidump dies at one point:
 $ sudo acpidump
 ...
 Method(RDMB, 1) {
 Acquire(ECMU, 0x1388)
 Acquire(MLMU, 0x1388)
 CFG_
 0x5
 Segmentation fault
 $ sudo gdb acpidump acpidump.core
 (gdb) bt
 #0  0x0040487f in ?? ()

Here is a better stacktrace:
(gdb) bt
#0  0x00405349 in aml_new_name (parent=0x0, name=0x20fb68abf IOBA)
at /usr/src/usr.sbin/acpidump/aml/aml_name.c:281
#1  0x00405738 in aml_nameman (env=0xbd4ee0, dp=0x20fb68abf IOBA,
flag=1) at /usr/src/usr.sbin/acpidump/aml/aml_name.c:390
#2  0x0040551c in aml_create_name (env=0xbd4ee0, dp=0x20fb68abf
IOBA)
at /usr/src/usr.sbin/acpidump/aml/aml_name.c:345
#3  0x00403c4a in asl_dump_oparg (dpp=0x7f7f2348, indent=5,
mnem=0x510eb5 Name, fmt=0x510eb2 Nt)
at /usr/src/usr.sbin/acpidump/asl_dump.c:770
#4  0x00403f8f in asl_dump_termobj (dpp=0x7f7f2370, indent=5)
at /usr/src/usr.sbin/acpidump/asl_dump.c:874
#5  0x0040498c in asl_dump_objectlist (dpp=0x7f7f23d8,
end=0x20fb68b1b
\024K\aWRMB\002[#ECMU\210\023[#MLMU\210\023CFG_\n\005\bIOBA, indent=5) at
/usr/src/usr.sbin/acpidump/asl_dump.c:1186
#6  0x00402ee3 in asl_dump_defmethod (dpp=0x7f7f2458, indent=4)
at /usr/src/usr.sbin/acpidump/asl_dump.c:325
#7  0x00403fd3 in asl_dump_termobj (dpp=0x7f7f2480, indent=4)
at /usr/src/usr.sbin/acpidump/asl_dump.c:886
#8  0x0040498c in asl_dump_objectlist (dpp=0x7f7f24c8,
end=0x20fb68fbf
\024\021EPTS\001 \nECENPPTSh\024\021EWAK\001 \nECENWWAKh[\202+PIC_\b_HID\vAP
\b_CRS\021\030\n\025G\001 , indent=4)
at /usr/src/usr.sbin/acpidump/asl_dump.c:1186
#9  0x00403a2e in asl_dump_defif (dpp=0x7f7f2548, indent=3)
---Type return to continue, or q return to quit---
at /usr/src/usr.sbin/acpidump/asl_dump.c:703
#10 0x004048c0 in asl_dump_termobj (dpp=0x7f7f2570, indent=3)
at /usr/src/usr.sbin/acpidump/asl_dump.c:1151
#11 0x0040498c in asl_dump_objectlist (dpp=0x7f7f25d8,
end=0x20fb6ab20 [\2026P0PC\b_ADR\f\004, indent=3)
at /usr/src/usr.sbin/acpidump/asl_dump.c:1186
#12 0x00403623 in asl_dump_defdevice (dpp=0x7f7f2658, indent=2)
at /usr/src/usr.sbin/acpidump/asl_dump.c:583
#13 0x0040427b in asl_dump_termobj (dpp=0x7f7f2680, indent=2)
at /usr/src/usr.sbin/acpidump/asl_dump.c:961
#14 0x0040498c in asl_dump_objectlist (dpp=0x7f7f26e8,
end=0x20fb6b198 \020M\037\\_GPE\024H\f_L18, indent=2)
at /usr/src/usr.sbin/acpidump/asl_dump.c:1186
#15 0x00403623 in asl_dump_defdevice (dpp=0x7f7f2768, indent=1)
at /usr/src/usr.sbin/acpidump/asl_dump.c:583
#16 0x0040427b in asl_dump_termobj (dpp=0x7f7f2790, indent=1)
at /usr/src/usr.sbin/acpidump/asl_dump.c:961
#17 0x0040498c in asl_dump_objectlist (dpp=0x7f7f27f8,
end=0x20fb6b3b5 \020K*/\004_SB_PCI0SBRGASOC\bG0T0\022\035\a\f,
indent=1)
at /usr/src/usr.sbin/acpidump/asl_dump.c:1186
#18 0x00402c02 in asl_dump_defscope (dpp=0x7f7f2878, indent=0)
at /usr/src/usr.sbin/acpidump/asl_dump.c:229
#19 0x00403fa0 in asl_dump_termobj (dpp=0x7f7f28a0, indent=0)
---Type return to continue, or q return to quit---
at /usr/src/usr.sbin/acpidump/asl_dump.c:877
#20 0x0040498c in asl_dump_objectlist (dpp=0x7f7f28d8,
end=0x20fb73a5e , indent=0) at
/usr/src/usr.sbin/acpidump/asl_dump.c:1186
#21 0x00401758 in acpi_dump_dsdt (
dp=0x20fb66474
\bOSTY[\200ACMS\001\nr\n\002[\201\020ACMS\001ICMS\bDCMS\b[\206\025ICMSDCMS\
001, end=0x20fb73a5e )
at /usr/src/usr.sbin/acpidump/acpi.c:172
#22 0x0040159f in acpi_handle_dsdt (dsdp=0x20fb66450)
at /usr/src/usr.sbin/acpidump/acpi.c:113
#23 0x004015f7 in acpi_handle_facp (facp=0x20e54a224)
at /usr/src/usr.sbin/acpidump/acpi.c:125
#24 0x00401fca in acpi_handle_rsdt (rsdp=0x20e54a000)
at /usr/src/usr.sbin/acpidump/acpi.c:355
#25 0x00404bff in asl_dump_from_devmem ()
at /usr/src/usr.sbin/acpidump/acpidump.c:67
#26 0x00404ca5 in main (argc=1, argv=0x7f7f29f0)
at /usr/src/usr.sbin/acpidump/acpidump.c:97
(gdb)

It seems that parent is NULL for some reason.

--
Tero Koskinen tero.koski...@iki.fi



Re: 3G not navigate

2009-05-22 Thread Tero Koskinen
Hi,

On Fri, 22 May 2009 01:02:31 -0300 (BRT) Murilo da Silva Ijanc wrote:

 Hello misc@,
 
 I am trying to use 3G technology in OpenBSD.

I have Huawei E220. After a few days of tweaking, I got it working pretty
well. There are some caveats however. (See below)

 $ ping -c 4 www.google.com
 PING google.navigation.opendns.com (208.69.32.231): 56 data bytes
 64 bytes from 208.69.32.231: icmp_seq=0 ttl=51 time=679.708 ms

For some reason ping times are big with user space ppp.
(600+ ms vs. 150ms with in-kernel ppp)

 lynx www.openbsd.org
 
 HTTP request sent; waiting for response.
  .. 10 min . 20 min

With user space ppp, I had to set MTU to 900 before web browsing
worked. I think I did that using set mrru 900 in /etc/ppp/ppp.conf.

I recommend that you try kernel mode ppp using pppd. There you can
use bigger MTU/MRRU.

My setup is following:
$ cat /etc/ppp/mokkula
#!/bin/sh

ifconfig ppp0 destroy 1/dev/null 21
ifconfig ppp0 create
route delete default 1/dev/null 21
/usr/sbin/pppd /dev/cuaU0 460800 connect '/usr/sbin/chat -f 
/etc/ppp/peers/elisa2.chat'
sleep 12

$ cat /etc/ppp/peers/elisa2.chat
ABORT BUSY
ABORT ERROR
ABORT NO CARRIER
ABORT VOICE
ABORT NO DIALTONE
 AT
OK AT+CGDCONT=1,IP,internet,0.0.0.0,0,0
OK ATDT*99#
TIMEOUT 40
CONNECT \c

$ cat /etc/ppp/options
debug
/dev/cuaU0
460800
lock
persist
noauth
0.0.0.0:10.0.0.2
netmask 255.255.255.255
ipcp-accept-local
ipcp-accept-remote
noipdefault
crtscts
deflate 0
bsdcomp 0
noccp
novj
novjccomp
nopcomp
#nodetach
mru 1440
refuse-chap
connect '/usr/sbin/chat -f /etc/ppp/peers/elisa2.chat' 
$

Like others suggested, enabling debug option gives you some hints.
Also, using cu directly (cu -s 460800 -l /dev/cuaU0) and sending
AT commands gives you more hints. (For example, you might be required
to give PIN code with AT+CPIN command.)

-- 
Tero Koskinen tero.koski...@iki.fi



Re: Support for Brother HL1430

2007-12-16 Thread Tero Koskinen
On Thu, 13 Dec 2007 05:07:59 +0100 Rico Secada wrote:
 Hi.
 
 I looked at the http://openbsd.org/i386.html#hardware, but ofcourse it
 doesn't say anything about printers :-)

OpenPrinting.org is pretty good resource for printers, although it
focuses mostly to Linux systems. For example, see
http://openprinting.org/show_printer.cgi?recnum=Brother-HL-1430

 Does the OpenBSD 4.2 package of ghostscript support Brother HL1430? Is
 it possible to get this printer running without having to patch
 ghostscript?

Try apsfilter and ghostscript's ljet4 driver.

 Best regards.
 
 Rico.

-- 
Tero Koskinen - http://iki.fi/tero.koskinen/



Re: anyone using netbeans ?

2007-11-28 Thread Tero Koskinen
On Wed, 28 Nov 2007 11:28:35 -0500 Nick Guenther wrote:
 On 11/28/07, Didier Wiroth [EMAIL PROTECTED] wrote:
  Hello,
  I'm running current (amd64) with netbeans and jdk1.5.
  The ouput window of netbeans generates squares and is unreadable.
 
  You can view a screenshot of the problem here (look at the output window):
  http://www.wiroth.net/images/netbeans.png

I have experienced same problem, screenshot:
http://iki.fi/tero.koskinen/corrupted-netbeans-ant-output.png

It happens only with Netbeans. Other Java/Swing apps (like MagicDraw,
Struts Console) are fine.

  How can I solve this problem in netbeans?

I don't have solution. As a work-around I use Eclipse or ViM.

 Looks like a font problem. I'm guessing Netbeans is trying to use
 fonts you don't have installed?
 Can you change the font preferences anywhere in Netbeans?

I am not sure it is a font problem. Now and then the console
output is fine and in the next moment the output is again plain squares.
Changing font preferences haven't helped me.

System:
OpenBSD 4.2-current (GENERIC) #553: Sun Nov 18 19:23:03 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
netbeans-5.5p0
freefonts-0.10p0
ghostscript-fonts-8.11p0
jmk-fonts-3.0p0
sdl-ttf-2.0.8p3
terminus-font-4.20p0
jdk-1.5.0.13

-- 
Tero Koskinen - http://iki.fi/tero.koskinen/