Re: solidrun marvell macchiatobin

2017-05-31 Thread Hrvoje Popovski
On 31.5.2017. 23:17, Patrick Wildt wrote:
> Are you following my Twitter or what? ;)  I just posted a picture
> of that board, arrived on the doorsteps today.  I'll be having a
> look.

perfect box for MP firewall :)



Re: solidrun marvell macchiatobin

2017-05-31 Thread Patrick Wildt
On Wed, May 31, 2017 at 09:19:31PM +0200, Hrvoje Popovski wrote:
> Hi arm gurus,
> 
> does openbsd support solid-run marvell armada family boards?
> 
> primary this little cute firewall :)
> 
> https://www.solid-run.com/marvell-armada-family/armada-8040-community-board/
> 
> 
> if there are any interest in this box i'm willing to donate it for
> development ..
> 
> 

Are you following my Twitter or what? ;)  I just posted a picture
of that board, arrived on the doorsteps today.  I'll be having a
look.

Patrick



Re: Blank screen after boot with Radeon HD 5450

2017-05-31 Thread Maximilian Pichler
On Wed, May 31, 2017 at 3:44 PM, Allan Streib  wrote:
>> You may be able to get a higher resolution by decreasing the refresh rate:
>>
>> $ gtf 2560 1440 33
>>
>>   # 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
>>   Modeline "2560x1440_33.00"  162.77  2560 2688 2960 3360  1440 1441
>> 1444 1468  -HSync +Vsync
>>
>> $ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
>> 1441 1444 1468 -HSync +Vsync
>> $ xrandr --addmode DVI-0 2560x1440_33.00
>> $ xrandr --output DVI-0  --mode 2560x1440_33.00
>
> Yes, that actually worked! I tried first at 50Hz and it did not, but
> 33Hz is working at 2560x1440 (but not in console however, I don't know
> how to specify a different mode there, if it's even possible).

DVI limits the clock frequency to 165 MHz (the first number on the
mode line). You may be able to go beyond that by using a DisplayPort
cable instead.



Re: Blank screen after boot with Radeon HD 5450

2017-05-31 Thread Allan Streib
Sorry for the noise -- I hit send before I was finished formatting my
prior reply.

Maximilian Pichler  writes:

> If and when I get my hands on another monitor I'll definitely try it
> out. (Although ultimately it would be nice to get it working with this
> one, as it works fine under Linux. This is a Dell U2515H.)

Interesting, that's the same model I have.

> You may be able to get a higher resolution by decreasing the refresh rate:
>
> $ gtf 2560 1440 33
>
>   # 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
>   Modeline "2560x1440_33.00"  162.77  2560 2688 2960 3360  1440 1441
> 1444 1468  -HSync +Vsync
>
> $ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
> 1441 1444 1468 -HSync +Vsync
> $ xrandr --addmode DVI-0 2560x1440_33.00
> $ xrandr --output DVI-0  --mode 2560x1440_33.00

Yes, that actually worked! I tried first at 50Hz and it did not, but
33Hz is working at 2560x1440 (but not in console however, I don't know
how to specify a different mode there, if it's even possible).

Thanks!

Allan



Re: Blank screen after boot with Radeon HD 5450

2017-05-31 Thread Allan Streib
Maximilian Pichler  writes:

> If and when I get my hands on another monitor I'll definitely try it
> out. (Although ultimately it would be nice to get it working with this
> one, as it works fine under Linux. This is a Dell U2515H.)

Interesting, that's the same model I have.

 You may be able to get a higher resolution by decreasing the refresh rate:

 $ gtf 2560 1440 33

   # 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
   Modeline "2560x1440_33.00"  162.77  2560 2688 2960 3360  1440 1441
 1444 1468  -HSync +Vsync

 $ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
 1441 1444 1468 -HSync +Vsync
 $ xrandr --addmode DVI-0 2560x1440_33.00
 $ xrandr --output DVI-0  --mode 2560x1440_33.00



battlestar pledge

2017-05-31 Thread tomr
I guess there aren't too many people playing battlestar on OpenBSD these
days.

I noticed this when entering a space battle:

 96814 battlestar CALL  ioctl(1,TIOCGETA,0x83c2c197c78)
 96814 battlestar PLDG  ioctl, "tty", errno 1 Operation not permitted

Which seems to be rectified by adding "tty" to line 53 of battlestar.c

if (pledge("stdio rpath wpath cpath tty", NULL) == -1)

Hope that helps (and/or saves the galaxy),
tom

p.s. apologies for lack of a proper patch



solidrun marvell macchiatobin

2017-05-31 Thread Hrvoje Popovski
Hi arm gurus,

does openbsd support solid-run marvell armada family boards?

primary this little cute firewall :)

https://www.solid-run.com/marvell-armada-family/armada-8040-community-board/


if there are any interest in this box i'm willing to donate it for
development ..




Re: newsyslog: timestamp (date) instead of 0, 1, 2, ... in new log file name

2017-05-31 Thread theed
I have exactly the same concern / request.  newsyslog should be
able to archive with dates rather than count.  I'd code it as a flag to 
newsyslog if I had the time.  Or the skill, really.  sysadmin != coder.  
I'm just agreeing because sometimes magical kernel hackers fix 
my problems for me.

Having static date based names for the gzipped archived log files 
makes for cleaner backups, and much easier recovery of log files 
from backups when tracing a problem.

For instance:
authlog.20170531.gz 

If there's a name collision with just day, then I'd add time
authlog.20170531T123456.gz




--
View this message in context: 
http://openbsd-archive.7691.n7.nabble.com/newsyslog-timestamp-date-instead-of-0-1-2-in-new-log-file-name-tp317952p319767.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: Blank screen after boot with Radeon HD 5450

2017-05-31 Thread Maximilian Pichler
On Wed, May 31, 2017 at 2:06 PM, Allan Streib  wrote:
> I think you should try another monitor if at all possible. Perhaps your
> monitor just goes into power-save mode with an incompatible signal.

If and when I get my hands on another monitor I'll definitely try it
out. (Although ultimately it would be nice to get it working with this
one, as it works fine under Linux. This is a Dell U2515H.)

> My xrandr shows the 2560x1440 mode at 59.95Hz, I'm assuming that's close
> enough to 60Hz that it should work? Or could that be the problem? The
> highest I can get working is 2048x1152.
>
> Screen 0: minimum 320 x 200, current 4096 x 1152, maximum 8192 x 8192
> DVI-0 connected primary 2048x1152+0+0 (normal left inverted right x axis y 
> axis) 553mm x 311mm
>2560x1440 59.95 +
>2048x1152 60.00*
>1920x1200 59.95
>[...]

You may be able to get a higher resolution by decreasing the refresh rate:

$ gtf 2560 1440 33

  # 2560x1440 @ 33.00 Hz (GTF) hsync: 48.44 kHz; pclk: 162.77 MHz
  Modeline "2560x1440_33.00"  162.77  2560 2688 2960 3360  1440 1441
1444 1468  -HSync +Vsync

$ xrandr --newmode 2560x1440_33.00 162.77 2560 2688 2960 3360 1440
1441 1444 1468 -HSync +Vsync
$ xrandr --addmode DVI-0 2560x1440_33.00
$ xrandr --output DVI-0  --mode 2560x1440_33.00



Re: Blank screen after boot with Radeon HD 5450

2017-05-31 Thread Allan Streib
Maximilian Pichler  writes:

> Just tried another graphics card (VisionTek Radeon HD 6350), with
> identical results: the boot messages are shown, then the signal is
> lost.
>

I think you should try another monitor if at all possible. Perhaps your
monitor just goes into power-save mode with an incompatible signal. On
mine, it pops up a message that asks me to set my video card to "2560 x
1140 60Hz" which, according to the dmesg, it should already be:

   radeondrm0: 2560x1440

My xrandr shows the 2560x1440 mode at 59.95Hz, I'm assuming that's close
enough to 60Hz that it should work? Or could that be the problem? The
highest I can get working is 2048x1152.

Screen 0: minimum 320 x 200, current 4096 x 1152, maximum 8192 x 8192
DVI-0 connected primary 2048x1152+0+0 (normal left inverted right x axis y 
axis) 553mm x 311mm
   2560x1440 59.95 +
   2048x1152 60.00* 
   1920x1200 59.95  
   [...]



Re: Blank screen after boot with Radeon HD 5450

2017-05-31 Thread Maximilian Pichler
Just tried another graphics card (VisionTek Radeon HD 6350), with
identical results: the boot messages are shown, then the signal is
lost.



Re: smtpd doesn't start

2017-05-31 Thread Choose a display name
>Did you ever post smtpd.conf? This issue seems odd.

I did, but for some reason my messages are damaged
on the marc. Here it is on the nabble, the third message.
http://openbsd-archive.7691.n7.nabble.com/smtpd-doesn-t-start-td319036.html

rspamd or spamassasin

2017-05-31 Thread Markus Rosjat

Hi there,

I'm going to build a new mailserver with openSMTP and Dovecot and I was 
wondering what is used for additional spamfiltering for this kind of 
setup. I looked around and saw that rspamd is somewhat in favor but 
since I'm new to the openSMTP thing (had courier befor) I was wondering 
which of the tools mentions is the best fit.


regards

--
Markus Rosjatfon: +49 351 8107223mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before 
you print it, think about your responsibility and commitment to the 
ENVIRONMENT




Re: smtpd doesn't start

2017-05-31 Thread Craig Skinner
Hi Peter,

On Tue, 30 May 2017 12:32:35 +0200 Peter Hessler wrote:
> On 2017 May 30 (Tue) at 10:37:37 +0100 (+0100), Craig Skinner wrote:
> :.localdomain (.local interferes with iStuff, avoid it)
> :.internal
> :.private
> :.priv
> :.lan
> 
> NO NO NO NO NO NO NO NO NO
> 
> All of those domains may (or have been) issued by ICANN, and can be
> used for real.


RFC 2606 (& 6761, section 6) reserves the following TLDs for private testing:
.test
.example
.invalid
.localhost
(These were created for testing, not for production.)

http://en.wikipedia.org/wiki/.test
http://en.wikipedia.org/wiki/.example
http://en.wikipedia.org/wiki/.invalid
http://en.wikipedia.org/wiki/.localhost


'.local' is reserved as a pseudo-TLD for link-local hostnames that can
be resolved via Multicast DNS http://en.wikipedia.org/wiki/.local


Similar to 'localhost', '.localdomain' is "reserved" for internal usage.

Hence the traditional default 'localhost.localdomain' on new installs.

Also regarded as "reserved" are the other pseudo-TLDs mentioned.

Cool,
-- 
Craig Skinner | http://linkd.in/yGqkv7



Optimizing for PF with high number of states and searches

2017-05-31 Thread Kevin Gee
Hi all,

We have an oldish (2013) but well-spec'd pair of servers  (active-backup) ,
running OpenBSD 6.0 and PF.
The only difference between the server hardware is that the primary has two
physical processors, the secondary has one.

This primary firewall is worked pretty hard (see pfctl -si below) and of
late it seems to struggle when load increases.
If we fail over to the secondary we see jitter/dropped packets on priority
traffic.
If we reload PF we often see jitter (testing with world-ping) and drops of
icmp (which has prio 7) which seem to settle if we reload PF again.
If I make a change the queue config, I need to reboot.

Problems seem to coincide with spikes in congestion, congestion is usually
approx 0.7/s if it rises much above 1 we see problems.

Most of the CPU cores aren't used much, two of the 8 cores average about
40%, one went up to 75% when I had problem with a ruleset.

I am trying to get hard figures rather than a 'feeling'.  Stats that seem
high are when there are problems (see vmstat output at the bottom, when
things are relatively quiet , context switching and interrupts are <3000).

context-switching > 15,000
interrupts >14,000
Searches > 500,000
net.inet.ip.ifq.len is usually < 100 (I've seen it at >700 briefly). This
seems to suggest that changing  net.inet.ip.ifq.maxlen may not make a
difference.

FWIW the ruleset as loaded is around 1300 lines when displayed with pfctl
-vvsr

I am looking for ways to optimize performance and would appreciate any
suggestions as to what to try and what stats to look at.
The alternative is to buy new hardware, but need to be convinced a faster
processor will make a big difference.

1) I am thinking of trying higher values of net.inet.ip.ifq.maxlen,
currently 2048. I tried 2500, didn't see much difference but suspect I can
go quite a bit higher. Does this setting require a reboot and am I right in
thinking this may help congestion, lower interrupts and context-switching?
2) Memory use is low according to collectd/snmp graphs , we have plenty can
we utilise it more?
3) Is an upgrade to OpenBSD 6.1 likely to make a significant difference?
4) We log all dropped traffic to pflog0, will disk I/O be a problem?

Sorry for vagueness, thanks in advance.
Kevin.



Possibly useful output and spec below:

Hardware:

2 x Quad Core Intel(R) Xeon(R) CPU E5-2637 v2 @ 3.50GHz, 3600.54 MH
OpenBSD 6.0 GENERIC.MP#2 amd64


NICs
Inside type ix 10Gbps, e,g,   ix1 at pci5 dev 0 function 1 "Intel 82599"
rev 0x01
Outside and pfsync type em 1Gbps e.g. em1 at pci2 dev 0 function 1 "Intel
I350" rev 0x01

Of the 8 cores, two average about 40% utilisation.  One of them peaked at
about 75% when struggling.
Memory =64Gbps


[LIVE]root@ar1300:~# pfctl -si
Status: Enabled for 0 days 09:04:42  Debug: err

State Table  Total Rate
  current entries  1205635
  searches 16678281544 <(667)%20828-1544>
510320.1/s
  inserts157481830 4818.6/s
  removals   156276195 4781.7/s
Counters
  match  149125447 4562.9/s
  bad-offset 00.0/s
  fragment   00.0/s
  short   33950.1/s
  normalize2960.0/s
  memory 00.0/s
  bad-timestamp  00.0/s
  congestion 145230.4/s
  ip-option  00.0/s
  proto-cksum00.0/s
  state-mismatch1039493.2/s
  state-insert   103970.3/s
  state-limit00.0/s
  src-limit  00.0/s
  synproxy   00.0/s
  translate  00.0/s
  no-route   00.0/s

[LIVE]root@ar1300:~# vmstat -si
   4096 bytes per page
   16257397 pages managed
   16007891 pages free
  13720 pages active
   4146 pages inactive
  0 pages being paged out
 16 pages wired
2000987 pages zeroed
  4 pages reserved for pagedaemon
  6 pages reserved for kernel
   16830030 swap pages
  0 swap pages in use
  0 total anon's in system
  0 free anon's
  119821710 page faults
  119081179 traps
  474725184 interrupts
  510456927 cpu context switches
 255355 fpu context switches
3224063 software interrupts
  317594717 syscalls
  0 pagein operations
 329258 forks
640 forks where vmspace is shared
 37 kernel map entries
   51141141 zeroed page hits
    zeroed page misses
  0 number of times the pagedaemon woke up
  0 revolutions of the 

Re: siteXX.tgz with /home/user/.ssh/authorized_keys results in empty file

2017-05-31 Thread Theo Buehler
> >How about not overwriting already existing files?
> >
> >Index: install.sub
> >===
> >RCS file: /var/cvs/src/distrib/miniroot/install.sub,v
> >retrieving revision 1.1011
> >diff -u -p -r1.1011 install.sub
> >--- install.sub  28 May 2017 09:24:56 -  1.1011
> >+++ install.sub  30 May 2017 00:18:16 -
> >@@ -2919,7 +2919,7 @@ do_install(){
> > 
> > _home=/mnt$_home
> > mkdir -p $_home
> >-(cd /mnt/etc/skel; cp -pR . $_home)
> >+(cd /mnt/etc/skel; pax -rw -k -pe . $_home)
> 
> If that's what it does, I'm all for it. 

It is: -rw is copy mode, -k keeps existing files, -pe preserves owners,
permissions, times, etc like cp -p.

I committed the diff, so it should be fixed in the next snapshot.



Re: macbook only sees 3GB of ram

2017-05-31 Thread Jan Stary
On May 31 01:08:01, dera...@openbsd.org wrote:
> 1. it works, be happy.

I am.

> 2. the memory map from the bios is being honoured; the kernel makes
>conservative decisions to honours it, as a result it works.  see 1.

memory map conflict 0xbef0/0x10
memory map conflict 0xbf00/0x100
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffb/0x3

Is this the place in the dmesg where the kernel makes those decisions?

> 3. if you want to drill down further and get access to more memory,
> you have the source code AND the hardware.
> 
> 4. if you don't want to drill down, but just want to bitch,

Somehow, asking on the mailing list seems to escape you
as neither "drilling" nor "just want to bitch".

> sorry noone
> cares enough to do anything about this without the hardware, so go get
> a padded box for it and maybe we can find a developer who will take the
> machine off your hands.

If there is someone who is interested enough,
please let me know off-list and I will send the machine.

Jan

> > On May 31 08:48:09, h...@stare.cz wrote:
> > > This is current/amd64 on an old MacBook A1181 (dmesg below).
> > > Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
> > > However, dmesg still reports around 3GB.
> > > 
> > > No, it's not the old dmesg; yes, I have checked. In fact,
> > > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > > 
> > > It's not a hardwware issue - the MacOS that dualboots this machine
> > > sees and uses the 4GB. Am I missing something obvious?
> > > 
> > > OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
> > > h...@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > > real mem = 3171909632 (3024MB)
> > > avail mem = 3070050304 (2927MB)
> > 
> > Here is a fresh upgrade to the latest snapshot
> > - the issue is the same.
> > 
> > 
> > OpenBSD 6.1-current (GENERIC.MP) #87: Tue May 30 21:05:25 MDT 2017
> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 3171909632 (3024MB)
> > avail mem = 3070050304 (2927MB)
> > mpath0 at root
> > scsibus0 at mpath0: 256 targets
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (37 entries)
> > bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 
> > 06/27/07
> > bios0: Apple Inc. MacBook2,1
> > acpi0 at bios0: rev 2
> > acpi0: sleep states S0 S3 S4 S5
> > acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
> > acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) 
> > USB3(S3) USB4(S3) USB7(S3) EC__(S3)
> > acpitimer0 at acpi0: 3579545 Hz, 24 bits
> > acpihpet0 at acpi0: 14318179 Hz
> > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> > cpu0 at mainbus0: apid 0 (boot processor)
> > cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.59 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,NXE,LONG,LAHF,PERF,SENSOR
> > cpu0: 4MB 64b/line 16-way L2 cache
> > cpu0: smt 0, core 0, package 0
> > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> > cpu0: apic clock running at 166MHz
> > cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> > cpu1 at mainbus0: apid 1 (application processor)
> > cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.26 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,NXE,LONG,LAHF,PERF,SENSOR
> > cpu1: 4MB 64b/line 16-way L2 cache
> > cpu1: smt 0, core 1, package 0
> > ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
> > acpimcfg0 at acpi0 addr 0xf000, bus 0-255
> > acpiec0 at acpi0
> > acpiprt0 at acpi0: bus 0 (PCI0)
> > acpiprt1 at acpi0: bus 1 (RP01)
> > acpiprt2 at acpi0: bus 2 (RP02)
> > acpiprt3 at acpi0: bus 3 (PCIB)
> > acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 
> > mwait), PSS
> > acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 
> > mwait), PSS
> > acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
> > acpiac0 at acpi0: AC unit online
> > acpibtn0 at acpi0: LID0
> > "APP0002" at acpi0 not configured
> > acpibtn1 at acpi0: PWRB
> > acpibtn2 at acpi0: SLPB
> > "APP0001" at acpi0 not configured
> > "APP0003" at acpi0 not configured
> > "ACPI0001" at acpi0 not configured
> > acpivideo0 at acpi0: GFX0
> > cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 
> > 1333, 1000 MHz
> > memory map conflict 0xbef0/0x10
> > memory map conflict 0xbf00/0x100
> > memory map conflict 0xf00f8000/0x1000
> > memory map conflict 0xfed1c000/0x4000
> > memory map conflict 

Re: macbook only sees 3GB of ram

2017-05-31 Thread Theo de Raadt
1. it works, be happy.

2. the memory map from the bios is being honoured; the kernel makes
   conservative decisions to honours it, as a result it works.  see 1.

3. if you want to drill down further and get access to more memory,
you have the source code AND the hardware.

4. if you don't want to drill down, but just want to bitch, sorry noone
   cares enough to do anything about this without the hardware, so go get
   a padded box for it and maybe we can find a developer who will take the
   machine off your hands.

> On May 31 08:48:09, h...@stare.cz wrote:
> > This is current/amd64 on an old MacBook A1181 (dmesg below).
> > Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
> > However, dmesg still reports around 3GB.
> > 
> > No, it's not the old dmesg; yes, I have checked. In fact,
> > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> > 
> > It's not a hardwware issue - the MacOS that dualboots this machine
> > sees and uses the 4GB. Am I missing something obvious?
> > 
> > OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
> > h...@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 3171909632 (3024MB)
> > avail mem = 3070050304 (2927MB)
> 
> Here is a fresh upgrade to the latest snapshot
> - the issue is the same.
> 
> 
> OpenBSD 6.1-current (GENERIC.MP) #87: Tue May 30 21:05:25 MDT 2017
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3171909632 (3024MB)
> avail mem = 3070050304 (2927MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (37 entries)
> bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
> bios0: Apple Inc. MacBook2,1
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
> acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) 
> USB3(S3) USB4(S3) USB7(S3) EC__(S3)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.59 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,NXE,LONG,LAHF,PERF,SENSOR
> cpu0: 4MB 64b/line 16-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 166MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.26 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,NXE,LONG,LAHF,PERF,SENSOR
> cpu1: 4MB 64b/line 16-way L2 cache
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
> acpimcfg0 at acpi0 addr 0xf000, bus 0-255
> acpiec0 at acpi0
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (RP01)
> acpiprt2 at acpi0: bus 2 (RP02)
> acpiprt3 at acpi0: bus 3 (PCIB)
> acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 
> mwait), PSS
> acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 
> mwait), PSS
> acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
> acpiac0 at acpi0: AC unit online
> acpibtn0 at acpi0: LID0
> "APP0002" at acpi0 not configured
> acpibtn1 at acpi0: PWRB
> acpibtn2 at acpi0: SLPB
> "APP0001" at acpi0 not configured
> "APP0003" at acpi0 not configured
> "ACPI0001" at acpi0 not configured
> acpivideo0 at acpi0: GFX0
> cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 
> 1333, 1000 MHz
> memory map conflict 0xbef0/0x10
> memory map conflict 0xbf00/0x100
> memory map conflict 0xf00f8000/0x1000
> memory map conflict 0xfed1c000/0x4000
> memory map conflict 0xfffb/0x3
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
> inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
> drm0 at inteldrm0
> intagp0 at inteldrm0
> agp0 at intagp0: aperture at 0xc000, size 0x1000
> inteldrm0: apic 1 int 16
> inteldrm0: 1280x800, 32bpp
> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
> vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and 
> Frequency, rev 0x03) at pci0 dev 7 function 0 not configured
> azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi

Re: macbook only sees 3GB of ram

2017-05-31 Thread Jan Stary
On May 31 08:48:09, h...@stare.cz wrote:
> This is current/amd64 on an old MacBook A1181 (dmesg below).
> Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
> However, dmesg still reports around 3GB.
> 
> No, it's not the old dmesg; yes, I have checked. In fact,
> spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
> 
> It's not a hardwware issue - the MacOS that dualboots this machine
> sees and uses the 4GB. Am I missing something obvious?
> 
> OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
> h...@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3171909632 (3024MB)
> avail mem = 3070050304 (2927MB)

Here is a fresh upgrade to the latest snapshot
- the issue is the same.


OpenBSD 6.1-current (GENERIC.MP) #87: Tue May 30 21:05:25 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3171909632 (3024MB)
avail mem = 3070050304 (2927MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (37 entries)
bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
bios0: Apple Inc. MacBook2,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) 
USB3(S3) USB4(S3) USB7(S3) EC__(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.59 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,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.26 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,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-255
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (PCIB)
acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 
mwait), PSS
acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 
mwait), PSS
acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
"APP0002" at acpi0 not configured
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
"APP0001" at acpi0 not configured
"APP0003" at acpi0 not configured
"ACPI0001" at acpi0 not configured
acpivideo0 at acpi0: GFX0
cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 1333, 
1000 MHz
memory map conflict 0xbef0/0x10
memory map conflict 0xbf00/0x100
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffb/0x3
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0: apic 1 int 16
inteldrm0: 1280x800, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency, 
rev 0x03) at pci0 dev 7 function 0 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Sigmatel STAC9220/1
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC 
rev. A3 (0x2): msi
msk0 at mskc0 port A: address 00:1b:63:36:2b:5d
eephy0 at msk0 phy 0: 88E Gigabit PHY, rev. 2
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17
athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 4, address 00:1c:b3:c4:b2:ae
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 

macbook only sees 3GB of ram

2017-05-31 Thread Jan Stary
This is current/amd64 on an old MacBook A1181 (dmesg below).
Until yesterday it had 2+1 GB of RAM, now it has 2+2 GB.
However, dmesg still reports around 3GB.

No, it's not the old dmesg; yes, I have checked. In fact,
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM
spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL6 SO-DIMM

It's not a hardwware issue - the MacOS that dualboots this machine
sees and uses the 4GB. Am I missing something obvious?

Jan


OpenBSD 6.1-current (GENERIC.MP) #0: Sat May 20 12:31:37 CEST 2017
h...@macbook.stare.cz:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3171909632 (3024MB)
avail mem = 3070050304 (2927MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (37 entries)
bios0: vendor Apple Inc. version "MB21.88Z.00A5.B07.0706270922" date 06/27/07
bios0: Apple Inc. MacBook2,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) 
USB3(S3) USB4(S3) USB7(S3) EC__(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.56 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,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz, 2161.25 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,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-255
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (PCIB)
acpicpu0 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 
mwait), PSS
acpicpu1 at acpi0: !C3(100@55 mwait@0x31), !C2(500@1 mwait@0x10), C1(1000@1 
mwait), PSS
acpisbs0 at acpi0: SBS0 model "ASMB016" serial 19351 type LION oem "DP"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
"APP0002" at acpi0 not configured
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
"APP0001" at acpi0 not configured
"APP0003" at acpi0 not configured
"ACPI0001" at acpi0 not configured
acpivideo0 at acpi0: GFX0
cpu0: Enhanced SpeedStep 2161 MHz: speeds: 2167, 2000, 1833, 1667, 1500, 1333, 
1000 MHz
memory map conflict 0xbef0/0x10
memory map conflict 0xbf00/0x100
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffb/0x3
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0: apic 1 int 16
inteldrm0: 1280x800, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency, 
rev 0x03) at pci0 dev 7 function 0 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Sigmatel STAC9220/1
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC 
rev. A3 (0x2): msi
msk0 at mskc0 port A: address 00:1b:63:36:2b:5d
eephy0 at msk0 phy 0: 88E Gigabit PHY, rev. 2
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17
athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 4, address 00:1c:b3:c4:b2:ae
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 21
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 

Re: Blank screen after boot with Radeon HD 5450

2017-05-31 Thread Mihai Popescu
On Wed, May 31, 2017 at 1:02 AM, Luis Coronado  wrote:
> xrandr over ssh? even if you run it with -X it will display something from
> the machine running the ssh client (and the local X server) not the ssh
> server one :s
>
> -l
>
> On Tue, May 30, 2017 at 3:08 PM, Mihai Popescu  wrote:
>>
>> What is the output of xrandr plain command, without any parameters? Do
>> not use display numbers or anything else, type it like this 'xrandr'
>> using a ssh connection on the non working configuration.
>>
>

It looks like xrandr reports are not helpful. I think you shoudl
enable the onboard card, find a second monitor from a friend and try
to boot with both monitor connected. Then you can debug.