On Tue, Jun 23, 2015 at 02:57:51PM -0600, Tom Schutter wrote:
> I installed 5.7 from 
> http://ftp3.usa.openbsd.org/pub/OpenBSD/5.7/amd64/install57.iso
> in a Windows Server 2012 R2 Hyper-V VM using the "Legacy Network
> Adapter".  I always get a kernel panic in the de(4) driver during boot.
> If I remove the legacy NIC from the VM config, then I successfully
> boot, but obviously with no network access.

I looked into this last year but lost interest. It seems like the DMA buffer
is being placed past the UVM constraint for DMA ( eg > 4GB). I'm not sure
why that's happening, I only spent a day or so looking at it before I got
bored and moved on to something else.

A side note - the same config on hyperV seems to work on i386, but I noticed
some strange clock skewing using that config so I gave up on that also.

Another side note - disabling de(4) in config and letting the kernel fall back
to dc(4) gets past this particular panic but doesn't allow any traffic
to pass.

-ml

> 
> What additional information can I provide to help with diagnosis and
> create a proper bug report?
> 
> >> OpenBSD/amd64 BOOT 3.28
> ...
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> de0 at pci0 dev 10 function 0 "DEC 21140" rev 0x20panic: Non dma-reachable 
> buffer at curaddr 0x107762b70(raw)
> Stopped at      Debugger+0x9:   leave
> Debugger() at Debugger+0x9
> panic() at panic+0xfe
> _bus_dmamap_load_buffer() at _bus_dmamap_load_buffer+0x1b6
> _bus_dmamap_load() at _bus_dmamap_load+0x7f
> tulip_busdma_init() at tulip_busdma_init+0xa0
> tulip_attach() at tulip_attach+0x2a4
> config_attach() at config_attach+0x1bc
> pci_probe_device() at pci_probe_device+0x467
> pci_enumerate_bus() at pci_enumerate_bus+0xe9
> config_attach() at config_attach+0x1bc
> end trace frame: 0xffffffff81a28e60, count: 0
> RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
> DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
> ddb> trace
> Debugger() at Debugger+0x9
> panic() at panic+0xfe
> _bus_dmamap_load_buffer() at _bus_dmamap_load_buffer+0x1b6
> _bus_dmamap_load() at _bus_dmamap_load+0x7f
> tulip_busdma_init() at tulip_busdma_init+0xa0
> tulip_attach() at tulip_attach+0x2a4
> config_attach() at config_attach+0x1bc
> pci_probe_device() at pci_probe_device+0x467
> pci_enumerate_bus() at pci_enumerate_bus+0xe9
> config_attach() at config_attach+0x1bc
> cpu_configure() at cpu_configure+0x1b
> main() at main+0x3df
> end trace frame: 0x0, count: -14
> ddb> ps
>    PID   PPID   PGRP    UID  S     FLAGS  WAIT             COMMAND
> *    0     -1      0      0  7   0x10200                   swapper
> 
> -- 
> Tom Schutter

Reply via email to