Re: Problems installing on Dell R830

2017-04-27 Thread Andrew Daugherity
I think the bootloader is seeing more RAM than is actually there.  Regions
0-15 are contiguous, except for a 256kB hole at 640kB, and total 2.25GB
(2304MB) memory.  Not sure about regions 16 & 17, but they're tiny
(~13MB).  Region 18 is exactly 510GB, so we have 2.25 + 510 = 512.25 GB, or
256MB more memory than is actually installed in the system.

And in relation to Mike's comment, that 510GB region starts at 4GB, so it
does indeed go past 512GB.

For comparison, here's my output from what should be very similar hardware
-- a Dell R230 with 8GB:
>> OpenBSD/amd64 BOOT 3.33
boot> machine memory
Region 0: type 1 at 0x0 for 624KB
Region 1: type 2 at 0x9c000 for 16KB
Region 2: type 2 at 0xe for 128KB
Region 3: type 1 at 0x10 for 2036884KB
Region 4: type 2 at 0x7c625000 for 131104KB
Region 5: type 1 at 0x8462d000 for 145860KB
Region 6: type 4 at 0x8d49e000 for 4KB
Region 7: type 1 at 0x8d49f000 for 2304KB
Region 8: type 2 at 0x8d6df000 for 25132KB
Region 9: type 4 at 0x8ef6a000 for 192KB
Region 10: type 3 at 0x8ef9a000 for 312KB
Region 11: type 1 at 0x8efe8000 for 96KB
Region 12: type 2 at 0x8f00 for 16384KB
Region 13: type 2 at 0xe000 for 262144KB
Region 14: type 2 at 0xe00fd000 for 4KB
Region 15: type 2 at 0xfd00 for 24576KB
Region 16: type 2 at 0xfe00 for 68KB
Region 17: type 2 at 0xfec0 for 4KB
Region 18: type 2 at 0xfed0 for 4KB
Region 19: type 2 at 0xfed1 for 32KB
Region 20: type 2 at 0xfed18000 for 4KB
Region 21: type 2 at 0xfed19000 for 4KB
Region 22: type 2 at 0xfed84000 for 4KB
Region 23: type 2 at 0xfee0 for 4KB
Region 24: type 2 at 0xff40 for 12288KB
Region 25: type 1 at 0x1 for 6029312KB
Low ram: 624KB  High ram: 2036884KB
Total free memory: 8215080KB

(pasted from a serial console, so no typos)

I likewise have 2.25GB (2304MB) at the start, then 256MB in region 13 (the
4kB in region 14 overlaps this), and then 5.75GB (5888MB) in region 25
(regions 15-24 total ~36MB).

Wait a minute, that also adds up to 256MB (+36MB) more RAM than I have
installed (8.25 vs 8 GB), but my system boots fine.  Now I'm more
confused... I don't know what to make of the extra 256MB, but it's possible
your system's crossing the 512GB boundary may be the issue.

-Andrew


Re: Problems installing on Dell R830

2017-04-26 Thread Mike Larkin
On Thu, Apr 27, 2017 at 10:20:38AM +1000, adr...@close.wattle.id.au wrote:
> Hi Mike,
> 
> > huh? I thought you said it fails after displaying the copyright message.
> > boot> is shown long before that.
> 
> Sorry, not enough coffee.
> 
> [..snip..]
> >> OpenBSD/amd64 CDBOOT 3.28
> boot> mach mem
> Region 0: type 1 at 0x0 for 624KB
> Region 1: type 2 at 0x9c000 for 16KB
> Region 2: type 3 at 0xe for 128KB
> Region 3: type 1 at 0x100 for 1823020KB
> Region 4: type 2 at 0x6f54b000 for 6148KB
> Region 5: type 1 at 0x6fb4c000 for 171252KB
> Region 6: type 2 at 0x7a289000 for 12808KB
> Region 7: type 4 at 0x7af0b000 for 10432KB
> Region 8: type 3 at 0x7b93b000 for 1500KB
> Region 9: type 1 at 0x7bab2000 for 220KB
> Region 10: type 3 at 0x7bae9000 for 88KB
> Region 11: type 1 at 0x7baff000 for 4KB
> Region 12: type 2 at 0x7bb0 for 5120KB
> Region 13: type 2 at 0x7c00 for 61440KB
> Region 14: type 2 at 0x7fc0 for 4096KB
> Region 15: type 2 at 0x8000 for 262144KB
> Region 16: type 2 at 0cfeda8000 for 16KB
> Region 17: type 2 at 0xff31 for 13248KB
> Region 18: type 1 at 0x1 for 534773760KB
> Low ram: 624KB  High ram: 1823020KB
> Total free memory: 536768880KB
> [..snip..]
> 
> ... with apologies for any typos as I copied that manually from the screen.
> 
> Thanks.
> 
> Adrian Close
> 

try removing some RAM, at least that will tell us if this is the issue or
if it is something else.

-ml



Re: Problems installing on Dell R830

2017-04-26 Thread adrian
Hi Job,

>Make a photo to prevent typos.

No problem.  I wasn't sure if the list would like attachments, but here it is 
(attached).

Thanks,

Adrian Close

Re: Problems installing on Dell R830

2017-04-26 Thread Job Snijders
Hi Adrian,

Make a photo to prevent typos.

Kind regards,

Job

On Thu, Apr 27, 2017 at 1:20 AM,   wrote:
> Hi Mike,
>
>> huh? I thought you said it fails after displaying the copyright message.
>> boot> is shown long before that.
>
> Sorry, not enough coffee.
>
> [..snip..]
>>> OpenBSD/amd64 CDBOOT 3.28
> boot> mach mem
> Region 0: type 1 at 0x0 for 624KB
> Region 1: type 2 at 0x9c000 for 16KB
> Region 2: type 3 at 0xe for 128KB
> Region 3: type 1 at 0x100 for 1823020KB
> Region 4: type 2 at 0x6f54b000 for 6148KB
> Region 5: type 1 at 0x6fb4c000 for 171252KB
> Region 6: type 2 at 0x7a289000 for 12808KB
> Region 7: type 4 at 0x7af0b000 for 10432KB
> Region 8: type 3 at 0x7b93b000 for 1500KB
> Region 9: type 1 at 0x7bab2000 for 220KB
> Region 10: type 3 at 0x7bae9000 for 88KB
> Region 11: type 1 at 0x7baff000 for 4KB
> Region 12: type 2 at 0x7bb0 for 5120KB
> Region 13: type 2 at 0x7c00 for 61440KB
> Region 14: type 2 at 0x7fc0 for 4096KB
> Region 15: type 2 at 0x8000 for 262144KB
> Region 16: type 2 at 0cfeda8000 for 16KB
> Region 17: type 2 at 0xff31 for 13248KB
> Region 18: type 1 at 0x1 for 534773760KB
> Low ram: 624KB  High ram: 1823020KB
> Total free memory: 536768880KB
> [..snip..]
>
> ... with apologies for any typos as I copied that manually from the screen.
>
> Thanks.
>
> Adrian Close
>



Re: Problems installing on Dell R830

2017-04-26 Thread adrian
Hi Mike,

> huh? I thought you said it fails after displaying the copyright message.
> boot> is shown long before that.

Sorry, not enough coffee.

[..snip..]
>> OpenBSD/amd64 CDBOOT 3.28
boot> mach mem
Region 0: type 1 at 0x0 for 624KB
Region 1: type 2 at 0x9c000 for 16KB
Region 2: type 3 at 0xe for 128KB
Region 3: type 1 at 0x100 for 1823020KB
Region 4: type 2 at 0x6f54b000 for 6148KB
Region 5: type 1 at 0x6fb4c000 for 171252KB
Region 6: type 2 at 0x7a289000 for 12808KB
Region 7: type 4 at 0x7af0b000 for 10432KB
Region 8: type 3 at 0x7b93b000 for 1500KB
Region 9: type 1 at 0x7bab2000 for 220KB
Region 10: type 3 at 0x7bae9000 for 88KB
Region 11: type 1 at 0x7baff000 for 4KB
Region 12: type 2 at 0x7bb0 for 5120KB
Region 13: type 2 at 0x7c00 for 61440KB
Region 14: type 2 at 0x7fc0 for 4096KB
Region 15: type 2 at 0x8000 for 262144KB
Region 16: type 2 at 0cfeda8000 for 16KB
Region 17: type 2 at 0xff31 for 13248KB
Region 18: type 1 at 0x1 for 534773760KB
Low ram: 624KB  High ram: 1823020KB
Total free memory: 536768880KB
[..snip..]

... with apologies for any typos as I copied that manually from the screen.

Thanks.

Adrian Close



Re: Problems installing on Dell R830

2017-04-26 Thread Mike Larkin
On Thu, Apr 27, 2017 at 09:33:39AM +1000, adr...@close.wattle.id.au wrote:
> Hi Mike,
> 
> On Thu, Apr 27, 2017 at 09:08:18AM +1000, adr...@close.wattle.id.au wrote:
> 
> > Can you show the output of "mach mem" from boot>   ?
> 
> It faults before it displays the "boot>" prompt, so that's tricky.
> Is the result of that still useful if I pull some memory out?
> 
> >512GB is the limit for physmem in OpenBSD amd64 (I believe, last time I 
> >looked,
> unless someone upped it). It's possible the bios remapped some memory past
> 512GB and we got confused.
> 
> I'll see if I can find anything obvious in the BIOS settings along those 
> lines.
> 
> Thanks,
> 
> Adrian Close
> 

huh? I thought you said it fails after displaying the copyright message.

boot> is shown long before that.



Re: Problems installing on Dell R830

2017-04-26 Thread adrian
Hi Mike,

On Thu, Apr 27, 2017 at 09:08:18AM +1000, adr...@close.wattle.id.au wrote:

> Can you show the output of "mach mem" from boot>   ?

It faults before it displays the "boot>" prompt, so that's tricky.
Is the result of that still useful if I pull some memory out?

>512GB is the limit for physmem in OpenBSD amd64 (I believe, last time I looked,
unless someone upped it). It's possible the bios remapped some memory past
512GB and we got confused.

I'll see if I can find anything obvious in the BIOS settings along those lines.

Thanks,

Adrian Close



Re: Problems installing on Dell R830

2017-04-26 Thread Mike Larkin
On Thu, Apr 27, 2017 at 09:08:18AM +1000, adr...@close.wattle.id.au wrote:
> Hi Mike,
> 
> Thanks for your reply.
> 
> > how much memory does the machine have?
> 
> This Dell R830 has 512GB of RAM (which is the definitely the biggest machine 
> I've ever tried to install OpenBSD on).  There is a decent delay between the 
> copyright message and the page fault.
> 
> It's destined to go into production as a Linux-based hypervisor (sorry), but 
> I've got some time with it before that needs to happen so I thought I'd try 
> to spin up OpenBSD on it.
> 
> Thanks,
> 
> Adrian Close
> 

Your crash pointed to something in pagezero, and the faulting address
was something really odd.

Can you show the output of "mach mem" from boot>   ?

512GB is the limit for physmem in OpenBSD amd64 (I believe, last time I looked,
unless someone upped it). It's possible the bios remapped some memory past
512GB and we got confused.

-ml



Re: Problems installing on Dell R830

2017-04-26 Thread adrian
Hi Mike,

Thanks for your reply.

> how much memory does the machine have?

This Dell R830 has 512GB of RAM (which is the definitely the biggest machine 
I've ever tried to install OpenBSD on).  There is a decent delay between the 
copyright message and the page fault.

It's destined to go into production as a Linux-based hypervisor (sorry), but 
I've got some time with it before that needs to happen so I thought I'd try to 
spin up OpenBSD on it.

Thanks,

Adrian Close



Re: Problems installing on Dell R830

2017-04-26 Thread Mike Larkin
On Wed, Apr 26, 2017 at 03:55:34PM +1000, adr...@close.wattle.id.au wrote:
> Hi all,
> 
> It's been a long time since I posted here, so apologies if I slip up on the 
> netiquette.
> 
> I'm trying to install on a Dell R830 but I can't get the installer to boot - 
> it crashes with a page fault after displaying the initial copyright message:
> 
> [..snip..]
> fatal page fault in supervisor mode
> trap type 6 code 2 rip 8100195d cs 8 rflags 10246 cr2  f807ffef000
> cpl e rsp 81a05ba8
> panic: trap type 6, code=2, pc=8100195d
> [..snip..]
> 
> I've tried booting 6.0, 6.1 and the current snapshot with similar results.  
> Other Dell hardware I have access to (eg. R630, R620) works OK.  Normally I'd 
> try disabling stuff in UKC, but booting with "-c" has the same result and no 
> UKC> prompt.
> 
> Does anyone have any suggestions on how I might get this going?
> 
> Thanks,
> 
> Adrian Close
> 
> 

how much memory does the machine have?



Problems installing on Dell R830

2017-04-25 Thread adrian
Hi all,

It's been a long time since I posted here, so apologies if I slip up on the 
netiquette.

I'm trying to install on a Dell R830 but I can't get the installer to boot - it 
crashes with a page fault after displaying the initial copyright message:

[..snip..]
fatal page fault in supervisor mode
trap type 6 code 2 rip 8100195d cs 8 rflags 10246 cr2  f807ffef000
cpl e rsp 81a05ba8
panic: trap type 6, code=2, pc=8100195d
[..snip..]

I've tried booting 6.0, 6.1 and the current snapshot with similar results.  
Other Dell hardware I have access to (eg. R630, R620) works OK.  Normally I'd 
try disabling stuff in UKC, but booting with "-c" has the same result and no 
UKC> prompt.

Does anyone have any suggestions on how I might get this going?

Thanks,

Adrian Close