Re: Intel GM45 hangs

2013-07-22 Thread janis

Well trying to go backwards is always a bit of a risk.
To be sure things are as intended you're best off starting
with a 5.3 install and updating src/xenocara to a point
before the commit with an eye on current.html


I took an empty harddrive, installed 5.3 on it, then

# cd /usr
# cvs -d anon...@anoncvs.eu.openbsd.org:/cvs checkout -D 2013-06-05 -P 
src ports xenocara


Tried to compile, but got an error:

In file included from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
 from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_cmp.c:34:
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18: 
error: asn1.h: No such file or directory
In file included from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
 from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_get.c:34:
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18: 
error: asn1.h: No such file or directory
In file included from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
 from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_put.c:34:
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18: 
error: asn1.h: No such file or directory
In file included from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
 from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_free.c:34:
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18: 
error: asn1.h: No such file or directory
In file included from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
 from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_length.c:34:
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18: 
error: asn1.h: No such file or directory
In file included from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
 from 
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_copy.c:34:
/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18: 
error: asn1.h: No such file or directory

mkdep: compile failed.
*** Error 1 in lib/libkrb5 (bsd.dep.mk:22 '.depend': 
@files=/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_cmp.c 
/usr/src/lib/libk...)

*** Error 1 in lib (bsd.subdir.mk:48 'depend')
*** Error 1 in /usr/src (Makefile:82 'build')

How do I get it to compile?



Re: Intel GM45 hangs

2013-07-22 Thread Jonathan Gray
On Mon, Jul 22, 2013 at 10:08:27AM +0300, ja...@cieti.lv wrote:
 Well trying to go backwards is always a bit of a risk.
 To be sure things are as intended you're best off starting
 with a 5.3 install and updating src/xenocara to a point
 before the commit with an eye on current.html
 
 I took an empty harddrive, installed 5.3 on it, then
 
 # cd /usr
 # cvs -d anon...@anoncvs.eu.openbsd.org:/cvs checkout -D 2013-06-05
 -P src ports xenocara
 
 Tried to compile, but got an error:
 
 In file included from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
  from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_cmp.c:34:
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18:
 error: asn1.h: No such file or directory
 In file included from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
  from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_get.c:34:
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18:
 error: asn1.h: No such file or directory
 In file included from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
  from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_put.c:34:
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18:
 error: asn1.h: No such file or directory
 In file included from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
  from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_free.c:34:
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18:
 error: asn1.h: No such file or directory
 In file included from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
  from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_length.c:34:
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18:
 error: asn1.h: No such file or directory
 In file included from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_locl.h:52,
  from
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_copy.c:34:
 /usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/libasn1.h:45:18:
 error: asn1.h: No such file or directory
 mkdep: compile failed.
 *** Error 1 in lib/libkrb5 (bsd.dep.mk:22 '.depend':
 @files=/usr/src/lib/libkrb5/../../kerberosV/src/lib/asn1/der_cmp.c
 /usr/src/lib/libk...)
 *** Error 1 in lib (bsd.subdir.mk:48 'depend')
 *** Error 1 in /usr/src (Makefile:82 'build')
 
 How do I get it to compile?

Can you show the file that is including asn1.h?  None of the mentioned
files ever included it directly according to cvsweb.



Re: Intel GM45 hangs

2013-07-22 Thread janis

Can you show the file that is including asn1.h?  None of the mentioned
files ever included it directly according to cvsweb.


It's here: /usr/src/kerberosV/src/lib/asn1/libasn1.h

--
/*
 * Copyright (c) 1997 Kungliga Tekniska Högskolan
 * (Royal Institute of Technology, Stockholm, Sweden).
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *notice, this list of conditions and the following disclaimer in 
the
 *documentation and/or other materials provided with the 
distribution.

 *
 * 3. Neither the name of the Institute nor the names of its 
contributors
 *may be used to endorse or promote products derived from this 
software

 *without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' 
AND

 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE 
LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
GOODS

 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 
WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF

 * SUCH DAMAGE.
 */

/* $KTH: libasn1.h,v 1.7 1999/12/02 17:05:02 joda Exp $ */

#ifndef __LIBASN1_H__
#define __LIBASN1_H__

#ifdef HAVE_CONFIG_H
#include config.h
#endif

#include stdlib.h
#include errno.h
#include asn1.h
#include der.h
#include asn1_err.h
#include parse_units.h

#endif /* __LIBASN1_H__ */
--



Re: Intel GM45 hangs

2013-07-22 Thread janis
Meanwhile I reinstalled my system from a snapshot to get rid of the 
bastard I created previously by building old xenocara, tried to run 
openarena and got something new -- machine hanged completely, after 
reset here is what I found in /var/log/messages:


Jul 22 11:16:47 janis /bsd: render error detected, EIR: 0x0010
Jul 22 11:16:47 janis /bsd:   IPEIR: 0x
Jul 22 11:16:47 janis /bsd:   IPEHR: 0x60020100
Jul 22 11:16:47 janis /bsd:   INSTDONE_0: 0x
Jul 22 11:16:47 janis /bsd:   INSTDONE_1: 0xbff8
Jul 22 11:16:47 janis /bsd:   INSTDONE_2: 0x
Jul 22 11:16:47 janis /bsd:   INSTDONE_3: 0x
Jul 22 11:16:47 janis /bsd:   INSTPS: 0x0001f02e
Jul 22 11:16:47 janis /bsd:   ACTHD: 0x02f6434c
Jul 22 11:16:47 janis /bsd: page table error
Jul 22 11:16:47 janis /bsd:   PGTBL_ER: 0x0080
Jul 22 11:16:47 janis /bsd: error: [drm:pid2:i915_report_and_clear_eir] 
*ERROR* EIR stuck: 0x0010, masking
Jul 22 11:16:53 janis /bsd: error: [drm:pid2:i915_hangcheck_hung] 
*ERROR* Hangcheck timer elapsed... GPU hung

Jul 22 11:16:53 janis /bsd: render error detected, EIR: 0x0010
Jul 22 11:16:53 janis /bsd:   IPEIR: 0x
Jul 22 11:16:53 janis /bsd:   IPEHR: 0x60020100
Jul 22 11:16:53 janis /bsd:   INSTDONE_0: 0x
Jul 22 11:16:53 janis /bsd:   INSTDONE_1: 0xbff8
Jul 22 11:16:53 janis /bsd:   INSTDONE_2: 0x
Jul 22 11:16:53 janis /bsd:   INSTDONE_3: 0x
Jul 22 11:16:53 janis /bsd:   INSTPS: 0x0001f02e
Jul 22 11:16:53 janis /bsd:   ACTHD: 0x02f6434c
Jul 22 11:16:53 janis /bsd: page table error
Jul 22 11:16:53 janis /bsd:   PGTBL_ER: 0x0080

I can repeat it reliably.



Re: Intel GM45 hangs

2013-07-22 Thread janis

There is something wrong with your cvs checkout, it should look
be 1.9 not 1.7 and look like:
http://www.openbsd.org/cgi-bin/cvsweb/src/kerberosV/src/lib/asn1/Attic/libasn1.h?rev=1
 \
.1.1.2;content-type=text%2Fplain


What would be the correct command to get a source from 2013-06-05?



Re: Intel GM45 hangs

2013-07-22 Thread Jonathan Gray
On Mon, Jul 22, 2013 at 12:04:44PM +0300, ja...@cieti.lv wrote:
 There is something wrong with your cvs checkout, it should look
 be 1.9 not 1.7 and look like:
 http://www.openbsd.org/cgi-bin/cvsweb/src/kerberosV/src/lib/asn1/Attic/libasn1.h?rev=1
  \
 .1.1.2;content-type=text%2Fplain
 
 What would be the correct command to get a source from 2013-06-05?

It seems 1.9 is only on the vendor branch, so your checkout is likely fine.
Did you forget to run make obj before make build?  Something odd seems
to be occuring.



Re: Intel GM45 hangs

2013-07-22 Thread janis
It seems 1.9 is only on the vendor branch, so your checkout is likely 
fine.
Did you forget to run make obj before make build?  Something odd 
seems

to be occuring.


No, I did not forget make obj. I did like this:

# rm -rf /usr/obj/*
# cd /usr/src
# make obj
# cd /usr/src/etc  env DESTDIR=/ make distrib-dirs
# cd /usr/src
# make build



Re: Intel GM45 hangs

2013-07-22 Thread janis
Is anyone else here running OpenBSD on a machine with GM45 video chip? I 
can reproduce the problem on different machine too:


dmesg:
OpenBSD 5.4 (GENERIC.MP) #32: Sat Jul 20 22:50:21 MDT 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4105912320 (3915MB)
avail mem = 395504 (3804MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe0010 (44 entries)
bios0: vendor LENOVO version 6JET93WW (1.51 ) date 03/26/2012
bios0: LENOVO 2847DNG
acpi0 at bios0: rev 4
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET MCFG APIC BOOT SLIC SSDT SSDT SSDT
acpi0: wakeup devices P0P2(S4) P0P1(S4) USB0(S3) USB1(S3) USB2(S3) 
USBR(S3) EHC1(S3) USB3(S3) USB4(S3) USB5(S3) EHC2(S3) HDEF(S4) PXSX(S4) 
RP01(S4) PXSX(S4) RP02(S4) [...]

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 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: Intel(R) Core(TM)2 Duo CPU T6670 @ 2.20GHz, 2194.85 MHz
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,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF

cpu0: 2MB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 291MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T6670 @ 2.20GHz, 3203.97 MHz
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,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF

cpu1: 2MB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P2)
acpiprt2 at acpi0: bus 9 (P0P1)
acpiprt3 at acpi0: bus 2 (RP01)
acpiprt4 at acpi0: bus 3 (RP02)
acpiprt5 at acpi0: bus 4 (RP03)
acpiprt6 at acpi0: bus 5 (RP04)
acpiprt7 at acpi0: bus 6 (RP05)
acpiprt8 at acpi0: bus 8 (RP06)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, C1, PSS
acpicpu1 at acpi0: C2, C1, PSS
acpitz0 at acpi0: critical temperature is 105 degC
acpithinkpad0 at acpi0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model 42T4848 serial 20289 type LION oem LGC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
cpu0: Enhanced SpeedStep 2194 MHz: speeds: 2201, 2200, 1600, 1200 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
vga1 at pci0 dev 2 function 0 Intel GM45 Video rev 0x07
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1366x768
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
Intel GM45 Video rev 0x07 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2 int 
16
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2 int 
21
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 2 int 
19
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2 int 
19

usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03: msi
azalia0: codecs: Realtek ALC269, Intel/0x2802, using Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: msi
pci1 at ppb0 bus 2
JMicron SD/MMC rev 0x20 at pci1 dev 0 function 0 not configured
sdhc0 at pci1 dev 0 function 2 JMicron SD Host Controller rev 0x20: 
apic 2 int 16

sdmmc0 at sdhc0
JMicron Memory Stick rev 0x20 at pci1 dev 0 function 3 not configured
JMicron xD rev 0x20 at pci1 dev 0 function 4 not configured
ppb1 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: msi
pci2 at ppb1 bus 3
ppb2 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: msi
pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 Intel 82801I PCIE rev 0x03: msi
pci4 at ppb3 bus 5
Realtek 8188CE rev 0x01 at pci4 dev 0 function 0 not configured
ppb4 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: msi
pci5 at ppb4 bus 6
ppb5 at pci0 dev 28 function 5 Intel 82801I PCIE rev 0x03: msi
pci6 at ppb5 bus 8
re0 at pci6 dev 0 function 0 Realtek 8168 rev 0x03: RTL8168D/8111D 
(0x2800), apic 2 int 17, address e8:9a:8f:6e:89:01

rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 2 int 
23
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x03: apic 2 int 
19
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x03: apic 2 int 
18
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x03: apic 2 int 
23

usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb6 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x93
pci7 at ppb6 bus 9
pcib0 at pci0 dev