clock is not changing on 4.9 amd64

2011-07-24 Thread Jiří Navrátil
Hello,

I just installed OpenBSD 4.9 / amd64 from install49.iso / CD. I'm testing
softraid, which is working great, thank you.

Unfortunately I found, that time is not changing on mp kernel and also on sp
kernel. I booted back to install49 CD, and date is increasing seconds there.
On the installed machine is time not changing = uptime is not working, and so
on.

Is this something I can change on SW side? Or this must be a HW issue?

I have next two problems, which I can live with and don't know if they can be
related (dhclient freeze, so I have to use static configuration; I can invoke
UKC via boot -c command during booting, but I can't type in UKC)

My two dmesg are listed.

Thank you for some recommendation, if possible.

Best regards,
Jiri

OpenBSD 4.9 (GENERIC.MP) #819: Wed Mar  2 06:57:49 MST 2011
   dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3621650432 (3453MB)
avail mem = 351172 (3348MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf (60 entries)
bios0: vendor Phoenix Technologies, LTD version ASUS M2A-VM HDMI ACPI BIOS
Revision 0502 date 03/29/2007
bios0: ASUSTeK Computer INC. M2A-VM HDMI
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SSDT HPET MCFG APIC
acpi0: wakeup devices USB0(S5) USB1(S5) USB2(S5) USB3(S5) USB4(S5) USB5(S5)
AZAL(S3) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4)
PCE8(S4) UAR1(S5) UAR2(S5) PS2M(S5) PS2K(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 6000+, 3000.27 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 6000+, 2999.89 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P2P_)
acpiprt2 at acpi0: bus -1 (PCE2)
acpiprt3 at acpi0: bus -1 (PCE3)
acpiprt4 at acpi0: bus -1 (PCE4)
acpiprt5 at acpi0: bus -1 (PCE5)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus 2 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (AGP_)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpitz0 at acpi0: critical temperature 75 degC
acpibtn0 at acpi0: PWRB
aibs0 at acpi0: RTMP RVLT RFAN GGRP GITM SITM
cpu0: PowerNow! K8 2999 MHz: speeds: 3000 2800 2600 2400 2200 2000 1800 1000
MHz
pci0 at mainbus0 bus 0
mem address conflict 0xfed0/0x400
pchb0 at pci0 dev 0 function 0 ATI RS690 Host rev 0x00
ppb0 at pci0 dev 1 function 0 ATI RS690 PCIE rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 ATI Radeon X1250 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 7 function 0 ATI RS690 PCIE rev 0x00
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2 (0x3800), apic
2 int 19 (irq 10), address 00:1b:fc:1f:7d:e3
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
ahci0 at pci0 dev 18 function 0 ATI SB600 SATA rev 0x00: apic 2 int 22 (irq
11), AHCI 1.1
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, SAMSUNG HD501LJ, CR10 SCSI3 0/direct
fixed
sd0: 476940MB, 512 bytes/sec, 976773168 sec total
sd1 at scsibus0 targ 1 lun 0: ATA, SAMSUNG HD501LJ, CR10 SCSI3 0/direct
fixed
sd1: 476940MB, 512 bytes/sec, 976773168 sec total
sd2 at scsibus0 targ 2 lun 0: ATA, SAMSUNG HD501LJ, CR10 SCSI3 0/direct
fixed
sd2: 476940MB, 512 bytes/sec, 976773168 sec total
sd3 at scsibus0 targ 3 lun 0: ATA, SAMSUNG HD501LJ, CR10 SCSI3 0/direct
fixed
sd3: 476940MB, 512 bytes/sec, 976773168 sec total
ohci0 at pci0 dev 19 function 0 ATI SB600 USB rev 0x00: apic 2 int 16 (irq
3), version 1.0, legacy support
ohci1 at pci0 dev 19 function 1 ATI SB600 USB rev 0x00: apic 2 int 17 (irq
11), version 1.0, legacy support
ohci2 at pci0 dev 19 function 2 ATI SB600 USB rev 0x00: apic 2 int 18 (irq
5), version 1.0, legacy support
ohci3 at pci0 dev 19 function 3 ATI SB600 USB rev 0x00: apic 

Re: clock is not changing on 4.9 amd64

2011-07-24 Thread Stuart Henderson
On 2011/07/24 10:29, JiEC- NavrC!til wrote:
 I just installed OpenBSD 4.9 / amd64 from install49.iso / CD. I'm testing
 softraid, which is working great, thank you.
 
 Unfortunately I found, that time is not changing on mp kernel and also on sp
 kernel. I booted back to install49 CD, and date is increasing seconds there.
 On the installed machine is time not changing = uptime is not working, and so
 on.
 
 Is this something I can change on SW side? Or this must be a HW issue?
 
 I have next two problems, which I can live with and don't know if they can be
 related (dhclient freeze, so I have to use static configuration; I can invoke
 UKC via boot -c command during booting, but I can't type in UKC)

Look at sysctl kern.timecounter; for example

kern.timecounter.tick=1
kern.timecounter.timestepwarnings=0
kern.timecounter.hardware=acpitimer0
kern.timecounter.choice=i8254(0) acpitimer0(1000) dummy(-100)

You can change kern.timecounter.hardware to one of the other values
in kern.timecounter.choice and see if that works any better.
It's not all that common but for example some machines seem to
have problems with acpitimer and may work better with another
choice.



Re: clock is not changing on 4.9 amd64

2011-07-24 Thread Jiří Navrátil
Hi Stuart,

Thank you very much for quick and precise help.

sysctl kern.timecounter.hardware=i8254
kern.timecounter.hardware: acpihpet0 - i8254

solved my problem!

Thank you. I trust so much OpenBSD and people around it.

PS: Give me call, if you will visit Prague in heard of Europe someday. I will
be glad to show you historical centre in 2 hours, if this will be interesting
to you or invite you to a Czech beer Plzen.

Best regards,
Jiri

--
Jiri Navratil, http://www.navratil.cz,  +420 777 224 245

24. 7. 2011 v 11:42, Stuart Henderson:

 Look at sysctl kern.timecounter; for example

 kern.timecounter.tick=1
 kern.timecounter.timestepwarnings=0
 kern.timecounter.hardware=acpitimer0
 kern.timecounter.choice=i8254(0) acpitimer0(1000) dummy(-100)

 You can change kern.timecounter.hardware to one of the other values
 in kern.timecounter.choice and see if that works any better.
 It's not all that common but for example some machines seem to
 have problems with acpitimer and may work better with another
 choice.