hello Jonathan,

On Tue, Jun 16, 2026 at 04:49:18PM +1000, Jonathan Gray wrote:
> On Mon, Jun 15, 2026 at 11:07:36PM +0300, Petre Rodan wrote:
> > On Mon, Jun 15, 2026 at 02:09:13PM +1000, Jonathan Gray wrote:
> > > On Sun, Jun 14, 2026 at 09:52:53PM +0300, Petre Rodan wrote:
> > > >  9:0:0: ATI Navi 21
> > > >         0x0000: Vendor ID: 1002, Product ID: 73bf
> > > >         0x0004: Command: 0006, Status: 0010
> > > >         0x0008: Class: 03 Display, Subclass: 00 VGA,
> > > >                 Interface: 00, Revision: c3
> > > >         0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
> > > >                 Cache Line Size: 10
> > > >         0x0010: BAR mem prefetchable 64bit addr: 
> > > > 0x0000007800000000/0x400000000
> > > >         0x0018: BAR mem prefetchable 64bit addr: 
> > > > 0x0000007c00000000/0x10000000
> > > >         0x0020: BAR io addr: 0x0000e000/0x0100
> > > >         0x0024: BAR mem 32bit addr: 0xfca00000/0x00100000
> > > 
> > > framebuffer memory is described by pci bar 0x10
> > > 
> > > the window size here is already 16GB, even without resizing the bar
> > > 
> > > can you try this diff to force visible vram to 512MB?
> > > 
> > > Index: sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
> > > ===================================================================
> > > RCS file: /cvs/src/sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c,v
> > > diff -u -p -r1.20 amdgpu_gmc.c
> > > --- sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c       25 May 2026 08:56:32 
> > > -0000      1.20
> > > +++ sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c       15 Jun 2026 03:53:34 
> > > -0000
> > > @@ -216,6 +216,8 @@ void amdgpu_gmc_vram_location(struct amd
> > >   uint64_t vis_limit = (uint64_t)amdgpu_vis_vram_limit << 20;
> > >   uint64_t limit = (uint64_t)amdgpu_vram_limit << 20;
> > >  
> > > + vis_limit = 512ULL << 20;
> > > +
> > >   mc->vram_start = base;
> > >   mc->vram_end = mc->vram_start + mc->mc_vram_size - 1;
> > >   if (limit < mc->real_vram_size)
> > 
> > I compared the amdgpu driver behaviour in OpenBSD vs Linux kernel 6.18.35 
> > and to me it looks like the errors start at this bsd specific #ifdef block:
> > 
> > RCS file: /cvs/src/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c,v
> > diff -u -p -r1.30 amdgpu_ttm.c
> > --- amdgpu_ttm.c    9 Mar 2026 23:57:53 -0000       1.30
> > +++ amdgpu_ttm.c    15 Jun 2026 19:00:39 -0000
> > @@ -2022,x +2022,y @@ int amdgpu_ttm_init(struct amdgpu_device
> >  #else
> >     if (bus_space_map(adev->memt, adev->gmc.aper_base,
> >         adev->gmc.visible_vram_size,                
> >         BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_PREFETCHABLE,
> >         &adev->mman.aper_bsh)) {
> >             adev->mman.aper_base_kaddr = NULL;
> > +        printf("~~~ explicit NULL, visible_vram_size 0x%llX\n", 
> > adev->gmc.visible_vram_size);
> >     } else {
> >             adev->mman.aper_base_kaddr = bus_space_vaddr(adev->memt,
> >                 adev->mman.aper_bsh);
> > +        printf("~~~ aper_base_kaddr %p, visible_vram_size 0x%llX\n", 
> > adev->mman.aper_base_kaddr,
> > +               adev->gmc.visible_vram_size);
> >     }
> >  #endif
> > 
> > <TLDR>
> > in OpenBSD if bus_space_map() is true then aper_base_kaddr is explicitly 
> > NULLed out,
> > and for some reason this happens if visible_vram_size > 2GB.
> > in Linux aper_base_kaddr is a non-NULL pointer in all my tests.
> > </TLDR>
> > 
> > # in OpenBSD with vis_limit between 512-2048MB, startx is happy to use the 
> > modsetting driver:
> > 
> > VRAM: 16368M 0x0000008000000000 - 0x00000083FEFFFFFF (16368M used)
> > GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF                
> > ~~~ aper_base_kaddr 0xffff8000699ea000, visible_vram_size 0x80000000
> > amdgpu0: SIENNA_CICHLID GC 10.3.0 60 CU rev 0x01                        
> > amdgpu0: 1920x1080, 32bpp                       
> > wsdisplay0 at amdgpu0 mux 1
> > 
> > 
> > # in OpenBSD with vis_limit >= 2560UL<<20, aper_base_kaddr is explicitly 
> > set to NULL and the init failure chain happens:
> > 
> > VRAM: 16368M 0x0000008000000000 - 0x00000083FEFFFFFF (16368M used)
> > GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF                
> > ~~~ explicit NULL, visible_vram_size 0xA0000000     
> > [drm] *ERROR* v11 visible_vram_size a0000000 or aper_base_kaddr 0x0 is not 
> > initialized.
> > drm:pid0:psp_sw_init *ERROR* Failed to process memory training!             
> >            
> > drm:pid0:amdgpu_device_ip_init *ERROR* sw_init of IP block <psp> failed -22
> > drm:pid0:amdgpu_device_init *ERROR* amdgpu_device_ip_init failed           
> > drm:pid0:amdgpu_driver_load_kms *ERROR* Fatal error during GPU init
> > WARNING !amdgpu_irq_enabled(adev, src, type) failed at 
> > /sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c:650
> > 
> > 
> > # in linux, even with the default unlimited vis_limit, aper_base_kaddr does 
> > not get NULLed out:
> > 
> > [    8.101797] amdgpu 0000:09:00.0: amdgpu: VRAM: 16368M 0x0000008000000000 
> > - 0x00000083FEFFFFFF (16368M used)
> > [    8.101799] amdgpu 0000:09:00.0: amdgpu: GART: 512M 0x0000000000000000 - 
> > 0x000000001FFFFFFF
> > [    8.101809] [drm] Detected VRAM RAM=16368M, BAR=16384M
> > [    8.101810] [drm] RAM width 256bits GDDR6
> > [    8.101908] amdgpu: ~~~ aper_base_kaddr 00000000dbe1887b, 
> > visible_vram_size 0x3FF000000
> > [    8.101937] amdgpu 0000:09:00.0: amdgpu: amdgpu: 16368M of VRAM memory 
> > ready
> > [    8.101939] amdgpu 0000:09:00.0: amdgpu: amdgpu: 16002M of GTT memory 
> > ready.
> > 
> > am I getting warmer?
> 
> My 8GB Vega 56 shows up with a 256M window so I can't test on hardware.
> Can you try the below diff and report back the dmesg changes?

my pleasure. thank you for taking your time.

>  33:0:0: ATI Radeon Rx Vega
>       0x0000: Vendor ID: 1002, Product ID: 687f
>       0x0004: Command: 0007, Status: 0010
>       0x0008: Class: 03 Display, Subclass: 00 VGA,
>               Interface: 00, Revision: c3
>       0x000c: BIST: 00, Header Type: 80, Latency Timer: 00,
>               Cache Line Size: 10
>       0x0010: BAR mem prefetchable 64bit addr: 0x00000000e0000000/0x10000000
>       0x0018: BAR mem prefetchable 64bit addr: 0x00000000f0000000/0x00200000
>       0x0020: BAR io addr: 0x0000e000/0x0100
>       0x0024: BAR mem 32bit addr: 0xfcb00000/0x00080000
> 
> Index: sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c,v
> diff -u -p -r1.73 amdgpu_drv.c
> --- sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c   15 Jun 2026 02:46:12 -0000      
> 1.73
> +++ sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c   16 Jun 2026 05:29:53 -0000
> @@ -3409,6 +3409,8 @@ amdgpu_attach(struct device *parent, str
>               printf(": can't get framebuffer info\n");
>               return;
>       }
> +printf("\n%s pci_mapreg_info fb_aper_offset 0x%lx fb_aper_size 0x%lx\n",
> +    __func__, adev->fb_aper_offset, adev->fb_aper_size);
>  
>       if (adev->fb_aper_offset == 0) {
>               bus_size_t start, end, pci_mem_end;
> @@ -3432,6 +3434,8 @@ amdgpu_attach(struct device *parent, str
>                       pci_conf_write(pa->pa_pc, pa->pa_tag,
>                           AMDGPU_PCI_MEM + 4, (uint64_t)base >> 32);
>               adev->fb_aper_offset = base;
> +printf("\n%s fallback fb_aper_offset 0x%lx fb_aper_size 0x%lx\n",
> +    __func__, adev->fb_aper_offset, adev->fb_aper_size);
>       }
>  
>       if (adev->family >= CHIP_BONAIRE)
> Index: sys/arch/amd64/amd64/bus_space.c
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/amd64/bus_space.c,v
> diff -u -p -r1.31 bus_space.c
> --- sys/arch/amd64/amd64/bus_space.c  4 Jun 2026 05:22:04 -0000       1.31
> +++ sys/arch/amd64/amd64/bus_space.c  16 Jun 2026 05:45:39 -0000
> @@ -381,8 +381,10 @@ bus_space_map(bus_space_tag_t t, bus_add
>        */
>       error = extent_alloc_region(ex, bpa, size,
>           EX_NOWAIT | (ioport_malloc_safe ? EX_MALLOCOK : 0));
> -     if (error)
> +     if (error) {
> +printf("\n%s extent_alloc_region error %d\n", __func__, error);
>               return (error);
> +     }
>  
>       /*
>        * For I/O space, that's all she wrote.
> @@ -414,6 +416,7 @@ bus_space_map(bus_space_tag_t t, bus_add
>                           bpa, size);
>                       printf("bus_space_map: can't free region\n");
>               }
> +printf("\n%s x86_mem_add_mapping error %d\n", __func__, error);
>       }
>  
>       return (error);
> @@ -522,8 +525,10 @@ x86_mem_add_mapping(bus_addr_t bpa, bus_
>       map_size = endpa - pa;
>  
>       va = (vaddr_t)km_alloc(map_size, &kv_any, &kp_none, &kd_nowait);
> -     if (va == 0)
> +     if (va == 0) {
> +printf("\n%s km_alloc ENOMEM\n", __func__);
>               return (ENOMEM);
> +     }
>  
>       *bshp = (bus_space_handle_t)(va + (bpa & PGOFSET));

I took the liberty of adding a few more printfs in order to dig a bit deeper.
and I got stuck in uvm_addr_invoke(), which calls an unknown to me uaddr_select 
function via a pointer.
the particular pointer address being used does not seem to belong to the 
_select functions within uvm_addr.c however - see the dmesg outputs. so maybe 
there is a place where &kv_any's _select function used was created from scratch?

attached you'll find 3 files:
- current patch against /sys OPENBSD_7_9 for printf context
- dmesg with vis_limit 4GB, resizebar and above 4G decoding enabled in bios
- dmesg with vis_limit 4GB, resizebar and above 4G decoding disabled in bios

I guess you're no longer interested in the 2GB vis_limit since it will not 
trigger any additional err messages.
also I see no notable changes if I enable/disable those 2 options in bios, I 
will leave them on from now on.

I am used to write code for 16bit microcontrollers so please allow me to 
accommodate a bit with this virtual memory mapping madness :)

best regards,
peter
OpenBSD 7.9-stable (GENERIC.MP) #34: Tue Jun 16 20:14:27 EEST 2026
    [email protected]:/sys/arch/amd64/compile/GENERIC.MP
real mem = 34228465664 (32642MB)
avail mem = 33163096064 (31626MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.3 @ 0xbd9ec000 (52 entries)
bios0: vendor American Megatrends International, LLC. version "F67" date 
10/28/2025
bios0: Gigabyte Technology Co., Ltd. B450 AORUS M
efi0 at bios0: UEFI 2.7
efi0: American Megatrends rev 0x50011
acpi0 at bios0: ACPI 6.2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT SSDT SSDT SSDT FIDT MCFG HPET IVRS FPDT VFCT BGRT 
PCCT SSDT CRAT CDIT SSDT SSDT WSMT APIC SSDT
acpi0: wakeup devices GPP0(S4) GPP1(S4) GPP3(S4) GPP4(S4) GPP5(S4) GPP6(S4) 
GPP7(S4) GPP8(S4) GPP9(S4) GPPA(S4) GPPB(S4) GPPC(S4) GPPD(S4) GPPE(S4) 
GPPF(S4) GP10(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimcfg0 at acpi0
acpimcfg0: addr 0xf0000000, bus 0-127
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu0: cpuid 1 
edx=178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT>
 
ecx=76f8320b<SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND>
cpu0: cpuid 6 eax=4<ARAT> ecx=1<EFFFREQ>
cpu0: cpuid 7.0 
ebx=219c97a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
 ecx=40068c<UMIP,PKU> edx=10
cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES>
cpu0: cpuid 80000001 edx=2fd3fbff<NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG> 
ecx=75c237ff<LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX>
cpu0: cpuid 80000007 edx=6799<HWPSTATE,ITSC>
cpu0: cpuid 80000008 
ebx=111ef657<IBPB,IBRS,STIBP,STIBP_ALL,IBRS_PREF,IBRS_SM,SSBD>
cpu0: cpuid 8000001F 
eax=1780f<SME,SEV,PFLUSH_MSR,SEVES,REQ64BITHOST,RESTINJ,ALTINJ,DBGSTSW,VTE> 
ecx=1fd edx=1
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB 64b/line 
8-way L2 cache, 32MB 64b/line 16-way L3 cache
cpu0: smt 0, core 0, package 0, type P
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu1: smt 0, core 1, package 0, type P
cpu2 at mainbus0: apid 4 (application processor)
cpu2: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu2: smt 0, core 2, package 0, type P
cpu3 at mainbus0: apid 6 (application processor)
cpu3: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu3: smt 0, core 3, package 0, type P
cpu4 at mainbus0: apid 8 (application processor)
cpu4: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu4: smt 0, core 4, package 0, type P
cpu5 at mainbus0: apid 10 (application processor)
cpu5: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu5: smt 0, core 5, package 0, type P
cpu6 at mainbus0: apid 12 (application processor)
cpu6: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu6: smt 0, core 6, package 0, type P
cpu7 at mainbus0: apid 14 (application processor)
cpu7: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu7: smt 0, core 7, package 0, type P
cpu8 at mainbus0: apid 16 (application processor)
cpu8: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu8: smt 0, core 8, package 0, type P
cpu9 at mainbus0: apid 18 (application processor)
cpu9: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu9: smt 0, core 9, package 0, type P
cpu10 at mainbus0: apid 20 (application processor)
cpu10: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu10: smt 0, core 10, package 0, type P
cpu11 at mainbus0: apid 22 (application processor)
cpu11: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu11: smt 0, core 11, package 0, type P
cpu12 at mainbus0: apid 24 (application processor)
cpu12: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu12: smt 0, core 12, package 0, type P
cpu13 at mainbus0: apid 26 (application processor)
cpu13: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu13: smt 0, core 13, package 0, type P
cpu14 at mainbus0: apid 28 (application processor)
cpu14: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu14: smt 0, core 14, package 0, type P
cpu15 at mainbus0: apid 30 (application processor)
cpu15: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu15: smt 0, core 15, package 0, type P
cpu16 at mainbus0: apid 1 (application processor)
cpu16: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu16: smt 1, core 0, package 0, type SP
cpu17 at mainbus0: apid 3 (application processor)
cpu17: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu17: smt 1, core 1, package 0, type SP
cpu18 at mainbus0: apid 5 (application processor)
cpu18: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu18: smt 1, core 2, package 0, type SP
cpu19 at mainbus0: apid 7 (application processor)
cpu19: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu19: smt 1, core 3, package 0, type SP
cpu20 at mainbus0: apid 9 (application processor)
cpu20: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu20: smt 1, core 4, package 0, type SP
cpu21 at mainbus0: apid 11 (application processor)
cpu21: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu21: smt 1, core 5, package 0, type SP
cpu22 at mainbus0: apid 13 (application processor)
cpu22: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu22: smt 1, core 6, package 0, type SP
cpu23 at mainbus0: apid 15 (application processor)
cpu23: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu23: smt 1, core 7, package 0, type SP
cpu24 at mainbus0: apid 17 (application processor)
cpu24: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu24: smt 1, core 8, package 0, type SP
cpu25 at mainbus0: apid 19 (application processor)
cpu25: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu25: smt 1, core 9, package 0, type SP
cpu26 at mainbus0: apid 21 (application processor)
cpu26: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu26: smt 1, core 10, package 0, type SP
cpu27 at mainbus0: apid 23 (application processor)
cpu27: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu27: smt 1, core 11, package 0, type SP
cpu28 at mainbus0: apid 25 (application processor)
cpu28: AMD Ryzen 9 5950X 16-Core Processor, 3400.01 MHz, 19-21-02, patch 
0a201213
cpu28: smt 1, core 12, package 0, type SP
cpu29 at mainbus0: apid 27 (application processor)
cpu29: AMD Ryzen 9 5950X 16-Core Processor, 3400.02 MHz, 19-21-02, patch 
0a201213
cpu29: smt 1, core 13, package 0, type SP
cpu30 at mainbus0: apid 29 (application processor)
cpu30: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu30: smt 1, core 14, package 0, type SP
cpu31 at mainbus0: apid 31 (application processor)
cpu31: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu31: smt 1, core 15, package 0, type SP
ioapic0 at mainbus0: apid 33 pa 0xfec00000, version 21, 24 pins, can't remap
ioapic1 at mainbus0: apid 34 pa 0xfec01000, version 21, 32 pins, can't remap
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (GPP0)
acpiprt2 at acpi0: bus -1 (GPP1)
acpiprt3 at acpi0: bus -1 (GPP3)
acpiprt4 at acpi0: bus -1 (GPP4)
acpiprt5 at acpi0: bus -1 (GPP5)
acpiprt6 at acpi0: bus -1 (GPP6)
acpiprt7 at acpi0: bus -1 (GPP7)
acpiprt8 at acpi0: bus 7 (GPP8)
acpiprt9 at acpi0: bus -1 (GPP9)
acpiprt10 at acpi0: bus -1 (GPPA)
acpiprt11 at acpi0: bus -1 (GPPB)
acpiprt12 at acpi0: bus -1 (GPPC)
acpiprt13 at acpi0: bus -1 (GPPD)
acpiprt14 at acpi0: bus -1 (GPPE)
acpiprt15 at acpi0: bus -1 (GPPF)
acpiprt16 at acpi0: bus -1 (GP10)
acpiprt17 at acpi0: bus 10 (GP12)
acpiprt18 at acpi0: bus 11 (GP13)
acpiprt19 at acpi0: bus -1 (GP30)
acpiprt20 at acpi0: bus -1 (GP31)
acpiprt21 at acpi0: bus 2 (GPP2)
acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
acpicmos0 at acpi0
com0 at acpi0 UAR1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo
com0: console
acpibtn0 at acpi0: PWRB
amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 7, 184 pins
"AMDIF030" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpicpu0 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu1 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu2 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu3 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu4 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu5 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu6 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu7 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu8 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu9 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu10 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu11 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu12 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu13 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu14 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu15 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu16 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu17 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu18 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu19 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu20 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu21 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu22 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu23 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu24 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu25 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu26 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu27 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu28 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu29 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu30 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu31 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpitz0 at acpi0
acpitz0: critical temperature is 20 degC
cpu0: 3400 MHz: speeds: 3400 2800 2200 MHz
pci0 at mainbus0 bus 0
ksmn0 at pci0 dev 0 function 0 "AMD 17h Root Complex" rev 0x00
"AMD 17h IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
pchb0 at pci0 dev 1 function 0 "AMD 17h Host" rev 0x00
ppb0 at pci0 dev 1 function 1 "AMD 17h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
nvme0 at pci1 dev 0 function 0 "Samsung SM981/PM981" rev 0x00: msix, NVMe 1.3
nvme0: Samsung SSD 970 EVO Plus 500GB, firmware 2B2QEXM7, serial S4EVNF0M495440L
scsibus1 at nvme0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <NVMe, Samsung SSD 970, 2B2Q>
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
ppb1 at pci0 dev 1 function 3 "AMD 17h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
xhci0 at pci2 dev 0 function 0 vendor "AMD", unknown product 0x43d5 rev 0x01: 
msix, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
ahci0 at pci2 dev 0 function 1 "AMD 400 Series AHCI" rev 0x01: msi, AHCI 1.3.1
ahci0: port busy after first PMP probe FIS
ahci0: port busy after first PMP probe FIS
ahci0: port 0: 6.0Gb/s
ahci0: port busy after first PMP probe FIS
ahci0: port busy after first PMP probe FIS
ahci0: port 1: 6.0Gb/s
ahci0: port busy after first PMP probe FIS
ahci0: port busy after first PMP probe FIS
ahci0: port 4: 6.0Gb/s
ahci0: port busy after first PMP probe FIS
ahci0: port busy after first PMP probe FIS
ahci0: port 5: 6.0Gb/s
scsibus2 at ahci0: 32 targets
sd1 at scsibus2 targ 0 lun 0: <ATA, Samsung SSD 850, EXM0> naa.500253885014df6d
sd1: 488386MB, 512 bytes/sector, 1000215216 sectors, thin
sd2 at scsibus2 targ 1 lun 0: <ATA, EMTEC X150 480GB, SBFM> naa.0000000000000000
sd2: 457862MB, 512 bytes/sector, 937703088 sectors, thin
sd3 at scsibus2 targ 4 lun 0: <ATA, Samsung SSD 870, SVT0> naa.5002538fc2525f70
sd3: 953869MB, 512 bytes/sector, 1953525168 sectors, thin
sd4 at scsibus2 targ 5 lun 0: <ATA, SATA SSD, SBFM> 
t10.ATA_SATA_SSD_511220812063001400_
sd4: 457862MB, 512 bytes/sector, 937703088 sectors, thin
ppb2 at pci2 dev 0 function 2 "AMD 400 Series PCIE" rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci3 dev 0 function 0 "AMD 400 Series PCIE" rev 0x01: msi
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x16: RTL8168H/8111H (0x5400), 
msi, address e0:d5:5e:d9:f1:c4
rgephy0 at re0 phy 7: RTL8251, rev. 0
ppb4 at pci3 dev 1 function 0 "AMD 400 Series PCIE" rev 0x01: msi
pci5 at ppb4 bus 5
ppb5 at pci3 dev 4 function 0 "AMD 400 Series PCIE" rev 0x01: msi
pci6 at ppb5 bus 6
azalia0 at pci6 dev 0 function 0 vendor "Creative Labs", unknown product 0x000b 
rev 0x03: msi
azalia0: No codecs found
pchb1 at pci0 dev 2 function 0 "AMD 17h Host" rev 0x00
pchb2 at pci0 dev 3 function 0 "AMD 17h Host" rev 0x00
ppb6 at pci0 dev 3 function 1 "AMD 17h PCIE" rev 0x00: msi
pci7 at ppb6 bus 7
ppb7 at pci7 dev 0 function 0 "ATI PCIE" rev 0xc3
pci8 at ppb7 bus 8
ppb8 at pci8 dev 0 function 0 "ATI PCIE" rev 0x00
pci9 at ppb8 bus 9
amdgpu0 at pci9 dev 0 function 0 "ATI Navi 21" rev 0xc3
[II] amdgpu_attach pci_mapreg_info fb_aper_offset 0x7800000000 fb_aper_size 
0x400000000

drm0 at amdgpu0
amdgpu0: msi
azalia1 at pci9 dev 0 function 1 "ATI Navi 2x HD Audio" rev 0x00: msi
azalia1: no supported codecs
pchb3 at pci0 dev 4 function 0 "AMD 17h Host" rev 0x00
pchb4 at pci0 dev 5 function 0 "AMD 17h Host" rev 0x00
pchb5 at pci0 dev 7 function 0 "AMD 17h Host" rev 0x00
ppb9 at pci0 dev 7 function 1 "AMD 17h PCIE" rev 0x00
pci10 at ppb9 bus 10
vendor "AMD", unknown product 0x148a (class instrumentation unknown subclass 
0x00, rev 0x00) at pci10 dev 0 function 0 not configured
pchb6 at pci0 dev 8 function 0 "AMD 17h Host" rev 0x00
ppb10 at pci0 dev 8 function 1 "AMD 17h PCIE" rev 0x00
pci11 at ppb10 bus 11
vendor "AMD", unknown product 0x1485 (class instrumentation unknown subclass 
0x00, rev 0x00) at pci11 dev 0 function 0 not configured
ccp0 at pci11 dev 0 function 1 "AMD 17h Crypto" rev 0x00
xhci1 at pci11 dev 0 function 3 "AMD 17h xHCI" rev 0x00: msix, xHCI 1.10
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
piixpm0 at pci0 dev 20 function 0 "AMD FCH SMBus" rev 0x61: SMI
iic0 at piixpm0
admtemp0 at iic0 addr 0x18: Xeon
iic0: addr 0x19 00=00 01=00 02=00 03=00 04=00 05=c2 06=1c 07=22 08=00 words 
00=00ef 01=0000 02=0000 03=0000 04=0000 05=c298 06=1c85 07=2221
admtemp1 at iic0 addr 0x1a: Xeon
iic0: addr 0x1b 00=00 01=00 02=00 03=00 04=00 05=c2 06=1c 07=22 08=00 words 
00=00ef 01=0000 02=0000 03=0000 04=0000 05=c2a0 06=1c85 07=2221
spdmem0 at iic0 addr 0x50: 8GB DDR4 SDRAM PC4-19200
spdmem1 at iic0 addr 0x51: 8GB DDR4 SDRAM PC4-19200
spdmem2 at iic0 addr 0x52: 8GB DDR4 SDRAM PC4-19200
spdmem3 at iic0 addr 0x53: 8GB DDR4 SDRAM PC4-19200
iic1 at piixpm0
pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51
pchb7 at pci0 dev 24 function 0 "AMD 17h Data Fabric" rev 0x00
pchb8 at pci0 dev 24 function 1 "AMD 17h Data Fabric" rev 0x00
pchb9 at pci0 dev 24 function 2 "AMD 17h Data Fabric" rev 0x00
pchb10 at pci0 dev 24 function 3 "AMD 17h Data Fabric" rev 0x00
pchb11 at pci0 dev 24 function 4 "AMD 17h Data Fabric" rev 0x00
pchb12 at pci0 dev 24 function 5 "AMD 17h Data Fabric" rev 0x00
pchb13 at pci0 dev 24 function 6 "AMD 17h Data Fabric" rev 0x00
pchb14 at pci0 dev 24 function 7 "AMD 17h Data Fabric" rev 0x00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0 mux 1
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: SVM/RVI
efifb at mainbus0 not configured
uhidev0 at uhub0 port 8 configuration 1 interface 0 "Lenovo TrackPoint Keyboard 
II" rev 2.00/1.27 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub0 port 8 configuration 1 interface 1 "Lenovo TrackPoint Keyboard 
II" rev 2.00/1.27 addr 2
uhidev1: iclass 3/1, 22 report ids
ums0 at uhidev1 reportid 1: 3 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev1 reportid 5: input=1, output=0, feature=0
ucc0 at uhidev1 reportid 16: 767 usages, 20 keys, array
wskbd2 at ucc0 mux 1
uhid1 at uhidev1 reportid 18: input=1, output=0, feature=0
uhid2 at uhidev1 reportid 19: input=7, output=0, feature=7
uhid3 at uhidev1 reportid 21: input=2, output=0, feature=0
uhid4 at uhidev1 reportid 22: input=2, output=0, feature=0
uhidev2 at uhub0 port 8 configuration 1 interface 2 "Lenovo TrackPoint Keyboard 
II" rev 2.00/1.27 addr 2
uhidev2: iclass 3/0, 4 report ids
uhid5 at uhidev2 reportid 4: input=0, output=0, feature=31
uhidev3 at uhub1 port 2 configuration 1 interface 0 "Logitech USB Receiver" rev 
2.00/44.01 addr 2
uhidev3: iclass 3/1
ukbd1 at uhidev3: 8 variable keys, 6 key codes
wskbd3 at ukbd1 mux 1
uhidev4 at uhub1 port 2 configuration 1 interface 1 "Logitech USB Receiver" rev 
2.00/44.01 addr 2
uhidev4: iclass 3/1, 8 report ids
ums1 at uhidev4 reportid 2: 16 buttons, Z and W dir
wsmouse1 at ums1 mux 0
ucc1 at uhidev4 reportid 3: 767 usages, 20 keys, array
wskbd4 at ucc1 mux 1
uhid6 at uhidev4 reportid 4: input=1, output=0, feature=0
uhid7 at uhidev4 reportid 8: input=1, output=0, feature=0
uhidev5 at uhub1 port 2 configuration 1 interface 2 "Logitech USB Receiver" rev 
2.00/44.01 addr 2
uhidev5: iclass 3/0, 33 report ids
uhidpp0 at uhidev5 device 1 mouse "G305"
uhid8 at uhidev5 reportid 32: input=14, output=14, feature=0
uhid9 at uhidev5 reportid 33: input=31, output=31, feature=0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd4a (8771cb604d7fb178.a) swap on sd4b dump on sd4b

[EE] uvm_addr_invoke uaddr_select err 12, _sel_fct@0xffffffff8260d4ce
rnd_sel 0xffffffff814cd6a0
kbootstrap_sel 0xffffffff814cdb10
bestfit_sel 0xffffffff814cdc20
pivot_sel 0xffffffff814cdde0
stack_brk_sel 0xffffffff814ce0c0

[EE] uvm_addr_invoke uaddr_select err 12, _sel_fct@0xffffffff8260d4ce
rnd_sel 0xffffffff814cd6a0
kbootstrap_sel 0xffffffff814cdb10
bestfit_sel 0xffffffff814cdc20
pivot_sel 0xffffffff814cdde0
stack_brk_sel 0xffffffff814ce0c0

[EE] uvm_map uvm_map_findspace err

[EE] km_alloc uvm_map(_, 0xffffffff830f4b78, 0x100000000, _, 
0xffffffffffffffff, 0x0, 0x1323) err after 0 retries

[EE] x86_mem_add_mapping km_alloc ENOMEM

[EE] bus_space_map x86_mem_add_mapping error 12
[EE] aper_base_kaddr=NULL, visible_vram_size=0x100000000
[drm] *ERROR* visible_vram_size 100000000 or aper_base_kaddr 0x0 is not 
initialized.
drm:pid0:psp_sw_init *ERROR* Failed to process memory training!
drm:pid0:amdgpu_device_ip_init *ERROR* sw_init of IP block <psp> failed -22
drm:pid0:amdgpu_device_init *ERROR* amdgpu_device_ip_init failed
drm:pid0:amdgpu_driver_load_kms *ERROR* Fatal error during GPU init
WARNING !amdgpu_irq_enabled(adev, src, type) failed at 
/sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c:650
efifb0 at mainbus0: 3840x2160, 32bpp
wsdisplay0 at efifb0 mux 1
pckbd_enable: command error
wskbd1: connecting to wsdisplay0
wskbd2: connecting to wsdisplay0
wskbd3: connecting to wsdisplay0
wskbd4: connecting to wsdisplay0
wsdisplay0: screen 0-5 added (std, vt100 emulation)
OpenBSD 7.9-stable (GENERIC.MP) #34: Tue Jun 16 20:14:27 EEST 2026
    [email protected]:/sys/arch/amd64/compile/GENERIC.MP
real mem = 34228465664 (32642MB)
avail mem = 33163137024 (31626MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.3 @ 0xbd9ec000 (52 entries)
bios0: vendor American Megatrends International, LLC. version "F67" date 
10/28/2025
bios0: Gigabyte Technology Co., Ltd. B450 AORUS M
efi0 at bios0: UEFI 2.7
efi0: American Megatrends rev 0x50011
acpi0 at bios0: ACPI 6.2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT SSDT SSDT SSDT FIDT MCFG HPET IVRS FPDT VFCT BGRT 
PCCT SSDT CRAT CDIT SSDT SSDT WSMT APIC SSDT
acpi0: wakeup devices GPP0(S4) GPP1(S4) GPP3(S4) GPP4(S4) GPP5(S4) GPP6(S4) 
GPP7(S4) GPP8(S4) GPP9(S4) GPPA(S4) GPPB(S4) GPPC(S4) GPPD(S4) GPPE(S4) 
GPPF(S4) GP10(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimcfg0 at acpi0
acpimcfg0: addr 0xf0000000, bus 0-127
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu0: cpuid 1 
edx=178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT>
 
ecx=76f8320b<SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND>
cpu0: cpuid 6 eax=4<ARAT> ecx=1<EFFFREQ>
cpu0: cpuid 7.0 
ebx=219c97a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
 ecx=40068c<UMIP,PKU> edx=10
cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES>
cpu0: cpuid 80000001 edx=2fd3fbff<NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG> 
ecx=75c237ff<LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX>
cpu0: cpuid 80000007 edx=6799<HWPSTATE,ITSC>
cpu0: cpuid 80000008 
ebx=111ef657<IBPB,IBRS,STIBP,STIBP_ALL,IBRS_PREF,IBRS_SM,SSBD>
cpu0: cpuid 8000001F 
eax=1780f<SME,SEV,PFLUSH_MSR,SEVES,REQ64BITHOST,RESTINJ,ALTINJ,DBGSTSW,VTE> 
ecx=1fd edx=1
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB 64b/line 
8-way L2 cache, 32MB 64b/line 16-way L3 cache
cpu0: smt 0, core 0, package 0, type P
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu1: smt 0, core 1, package 0, type P
cpu2 at mainbus0: apid 4 (application processor)
cpu2: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu2: smt 0, core 2, package 0, type P
cpu3 at mainbus0: apid 6 (application processor)
cpu3: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu3: smt 0, core 3, package 0, type P
cpu4 at mainbus0: apid 8 (application processor)
cpu4: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu4: smt 0, core 4, package 0, type P
cpu5 at mainbus0: apid 10 (application processor)
cpu5: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu5: smt 0, core 5, package 0, type P
cpu6 at mainbus0: apid 12 (application processor)
cpu6: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu6: smt 0, core 6, package 0, type P
cpu7 at mainbus0: apid 14 (application processor)
cpu7: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu7: smt 0, core 7, package 0, type P
cpu8 at mainbus0: apid 16 (application processor)
cpu8: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu8: smt 0, core 8, package 0, type P
cpu9 at mainbus0: apid 18 (application processor)
cpu9: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 0a201213
cpu9: smt 0, core 9, package 0, type P
cpu10 at mainbus0: apid 20 (application processor)
cpu10: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu10: smt 0, core 10, package 0, type P
cpu11 at mainbus0: apid 22 (application processor)
cpu11: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu11: smt 0, core 11, package 0, type P
cpu12 at mainbus0: apid 24 (application processor)
cpu12: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu12: smt 0, core 12, package 0, type P
cpu13 at mainbus0: apid 26 (application processor)
cpu13: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu13: smt 0, core 13, package 0, type P
cpu14 at mainbus0: apid 28 (application processor)
cpu14: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu14: smt 0, core 14, package 0, type P
cpu15 at mainbus0: apid 30 (application processor)
cpu15: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu15: smt 0, core 15, package 0, type P
cpu16 at mainbus0: apid 1 (application processor)
cpu16: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu16: smt 1, core 0, package 0, type SP
cpu17 at mainbus0: apid 3 (application processor)
cpu17: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu17: smt 1, core 1, package 0, type SP
cpu18 at mainbus0: apid 5 (application processor)
cpu18: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu18: smt 1, core 2, package 0, type SP
cpu19 at mainbus0: apid 7 (application processor)
cpu19: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu19: smt 1, core 3, package 0, type SP
cpu20 at mainbus0: apid 9 (application processor)
cpu20: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu20: smt 1, core 4, package 0, type SP
cpu21 at mainbus0: apid 11 (application processor)
cpu21: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu21: smt 1, core 5, package 0, type SP
cpu22 at mainbus0: apid 13 (application processor)
cpu22: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu22: smt 1, core 6, package 0, type SP
cpu23 at mainbus0: apid 15 (application processor)
cpu23: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu23: smt 1, core 7, package 0, type SP
cpu24 at mainbus0: apid 17 (application processor)
cpu24: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu24: smt 1, core 8, package 0, type SP
cpu25 at mainbus0: apid 19 (application processor)
cpu25: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu25: smt 1, core 9, package 0, type SP
cpu26 at mainbus0: apid 21 (application processor)
cpu26: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu26: smt 1, core 10, package 0, type SP
cpu27 at mainbus0: apid 23 (application processor)
cpu27: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu27: smt 1, core 11, package 0, type SP
cpu28 at mainbus0: apid 25 (application processor)
cpu28: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu28: smt 1, core 12, package 0, type SP
cpu29 at mainbus0: apid 27 (application processor)
cpu29: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu29: smt 1, core 13, package 0, type SP
cpu30 at mainbus0: apid 29 (application processor)
cpu30: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu30: smt 1, core 14, package 0, type SP
cpu31 at mainbus0: apid 31 (application processor)
cpu31: AMD Ryzen 9 5950X 16-Core Processor, 3400.00 MHz, 19-21-02, patch 
0a201213
cpu31: smt 1, core 15, package 0, type SP
ioapic0 at mainbus0: apid 33 pa 0xfec00000, version 21, 24 pins, can't remap
ioapic1 at mainbus0: apid 34 pa 0xfec01000, version 21, 32 pins, can't remap
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (GPP0)
acpiprt2 at acpi0: bus -1 (GPP1)
acpiprt3 at acpi0: bus -1 (GPP3)
acpiprt4 at acpi0: bus -1 (GPP4)
acpiprt5 at acpi0: bus -1 (GPP5)
acpiprt6 at acpi0: bus -1 (GPP6)
acpiprt7 at acpi0: bus -1 (GPP7)
acpiprt8 at acpi0: bus 7 (GPP8)
acpiprt9 at acpi0: bus -1 (GPP9)
acpiprt10 at acpi0: bus -1 (GPPA)
acpiprt11 at acpi0: bus -1 (GPPB)
acpiprt12 at acpi0: bus -1 (GPPC)
acpiprt13 at acpi0: bus -1 (GPPD)
acpiprt14 at acpi0: bus -1 (GPPE)
acpiprt15 at acpi0: bus -1 (GPPF)
acpiprt16 at acpi0: bus -1 (GP10)
acpiprt17 at acpi0: bus 10 (GP12)
acpiprt18 at acpi0: bus 11 (GP13)
acpiprt19 at acpi0: bus -1 (GP30)
acpiprt20 at acpi0: bus -1 (GP31)
acpiprt21 at acpi0: bus 2 (GPP2)
acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
acpicmos0 at acpi0
com0 at acpi0 UAR1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo
com0: console
acpibtn0 at acpi0: PWRB
amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 7, 184 pins
"AMDIF030" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpicpu0 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu1 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu2 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu3 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu4 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu5 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu6 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu7 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu8 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu9 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu10 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu11 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu12 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu13 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu14 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu15 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu16 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu17 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu18 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu19 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu20 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu21 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu22 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu23 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu24 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu25 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu26 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu27 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu28 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu29 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu30 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpicpu31 at acpi0: C2(0@18 io@0x414), C1(0@1 mwait), PSS
acpitz0 at acpi0
acpitz0: critical temperature is 20 degC
cpu0: 3400 MHz: speeds: 3400 2800 2200 MHz
pci0 at mainbus0 bus 0
ksmn0 at pci0 dev 0 function 0 "AMD 17h Root Complex" rev 0x00
"AMD 17h IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
pchb0 at pci0 dev 1 function 0 "AMD 17h Host" rev 0x00
ppb0 at pci0 dev 1 function 1 "AMD 17h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
nvme0 at pci1 dev 0 function 0 "Samsung SM981/PM981" rev 0x00: msix, NVMe 1.3
nvme0: Samsung SSD 970 EVO Plus 500GB, firmware 2B2QEXM7, serial S4EVNF0M495440L
scsibus1 at nvme0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <NVMe, Samsung SSD 970, 2B2Q>
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
ppb1 at pci0 dev 1 function 3 "AMD 17h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
xhci0 at pci2 dev 0 function 0 vendor "AMD", unknown product 0x43d5 rev 0x01: 
msix, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
ahci0 at pci2 dev 0 function 1 "AMD 400 Series AHCI" rev 0x01: msi, AHCI 1.3.1
ahci0: port busy after first PMP probe FIS
ahci0: port busy after first PMP probe FIS
ahci0: port 0: 6.0Gb/s
ahci0: port busy after first PMP probe FIS
ahci0: port busy after first PMP probe FIS
ahci0: port 1: 6.0Gb/s
ahci0: port busy after first PMP probe FIS
ahci0: port busy after first PMP probe FIS
ahci0: port 4: 6.0Gb/s
ahci0: port busy after first PMP probe FIS
ahci0: port busy after first PMP probe FIS
ahci0: port 5: 6.0Gb/s
scsibus2 at ahci0: 32 targets
sd1 at scsibus2 targ 0 lun 0: <ATA, Samsung SSD 850, EXM0> naa.500253885014df6d
sd1: 488386MB, 512 bytes/sector, 1000215216 sectors, thin
sd2 at scsibus2 targ 1 lun 0: <ATA, EMTEC X150 480GB, SBFM> naa.0000000000000000
sd2: 457862MB, 512 bytes/sector, 937703088 sectors, thin
sd3 at scsibus2 targ 4 lun 0: <ATA, Samsung SSD 870, SVT0> naa.5002538fc2525f70
sd3: 953869MB, 512 bytes/sector, 1953525168 sectors, thin
sd4 at scsibus2 targ 5 lun 0: <ATA, SATA SSD, SBFM> 
t10.ATA_SATA_SSD_511220812063001400_
sd4: 457862MB, 512 bytes/sector, 937703088 sectors, thin
ppb2 at pci2 dev 0 function 2 "AMD 400 Series PCIE" rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci3 dev 0 function 0 "AMD 400 Series PCIE" rev 0x01: msi
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x16: RTL8168H/8111H (0x5400), 
msi, address e0:d5:5e:d9:f1:c4
rgephy0 at re0 phy 7: RTL8251, rev. 0
ppb4 at pci3 dev 1 function 0 "AMD 400 Series PCIE" rev 0x01: msi
pci5 at ppb4 bus 5
ppb5 at pci3 dev 4 function 0 "AMD 400 Series PCIE" rev 0x01: msi
pci6 at ppb5 bus 6
azalia0 at pci6 dev 0 function 0 vendor "Creative Labs", unknown product 0x000b 
rev 0x03: msi
azalia0: codecs: Creative Labs/0x000d
audio0 at azalia0
pchb1 at pci0 dev 2 function 0 "AMD 17h Host" rev 0x00
pchb2 at pci0 dev 3 function 0 "AMD 17h Host" rev 0x00
ppb6 at pci0 dev 3 function 1 "AMD 17h PCIE" rev 0x00: msi
pci7 at ppb6 bus 7
ppb7 at pci7 dev 0 function 0 "ATI PCIE" rev 0xc3
pci8 at ppb7 bus 8
ppb8 at pci8 dev 0 function 0 "ATI PCIE" rev 0x00
pci9 at ppb8 bus 9
amdgpu0 at pci9 dev 0 function 0 "ATI Navi 21" rev 0xc3
[II] amdgpu_attach pci_mapreg_info fb_aper_offset 0x7800000000 fb_aper_size 
0x400000000

drm0 at amdgpu0
amdgpu0: msi
azalia1 at pci9 dev 0 function 1 "ATI Navi 2x HD Audio" rev 0x00: msi
azalia1: no supported codecs
pchb3 at pci0 dev 4 function 0 "AMD 17h Host" rev 0x00
pchb4 at pci0 dev 5 function 0 "AMD 17h Host" rev 0x00
pchb5 at pci0 dev 7 function 0 "AMD 17h Host" rev 0x00
ppb9 at pci0 dev 7 function 1 "AMD 17h PCIE" rev 0x00
pci10 at ppb9 bus 10
vendor "AMD", unknown product 0x148a (class instrumentation unknown subclass 
0x00, rev 0x00) at pci10 dev 0 function 0 not configured
pchb6 at pci0 dev 8 function 0 "AMD 17h Host" rev 0x00
ppb10 at pci0 dev 8 function 1 "AMD 17h PCIE" rev 0x00
pci11 at ppb10 bus 11
vendor "AMD", unknown product 0x1485 (class instrumentation unknown subclass 
0x00, rev 0x00) at pci11 dev 0 function 0 not configured
ccp0 at pci11 dev 0 function 1 "AMD 17h Crypto" rev 0x00
xhci1 at pci11 dev 0 function 3 "AMD 17h xHCI" rev 0x00: msix, xHCI 1.10
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
piixpm0 at pci0 dev 20 function 0 "AMD FCH SMBus" rev 0x61: SMI
iic0 at piixpm0
admtemp0 at iic0 addr 0x18: Xeon
iic0: addr 0x19 00=00 01=00 02=00 03=00 04=00 05=c2 06=1c 07=22 08=00 words 
00=00ef 01=0000 02=0000 03=0000 04=0000 05=c29c 06=1c85 07=2221
admtemp1 at iic0 addr 0x1a: Xeon
iic0: addr 0x1b 00=00 01=00 02=00 03=00 04=00 05=c2 06=1c 07=22 08=00 words 
00=00ef 01=0000 02=0000 03=0000 04=0000 05=c2a4 06=1c85 07=2221
spdmem0 at iic0 addr 0x50: 8GB DDR4 SDRAM PC4-19200
spdmem1 at iic0 addr 0x51: 8GB DDR4 SDRAM PC4-19200
spdmem2 at iic0 addr 0x52: 8GB DDR4 SDRAM PC4-19200
spdmem3 at iic0 addr 0x53: 8GB DDR4 SDRAM PC4-19200
iic1 at piixpm0
pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51
pchb7 at pci0 dev 24 function 0 "AMD 17h Data Fabric" rev 0x00
pchb8 at pci0 dev 24 function 1 "AMD 17h Data Fabric" rev 0x00
pchb9 at pci0 dev 24 function 2 "AMD 17h Data Fabric" rev 0x00
pchb10 at pci0 dev 24 function 3 "AMD 17h Data Fabric" rev 0x00
pchb11 at pci0 dev 24 function 4 "AMD 17h Data Fabric" rev 0x00
pchb12 at pci0 dev 24 function 5 "AMD 17h Data Fabric" rev 0x00
pchb13 at pci0 dev 24 function 6 "AMD 17h Data Fabric" rev 0x00
pchb14 at pci0 dev 24 function 7 "AMD 17h Data Fabric" rev 0x00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0 mux 1
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: SVM/RVI
efifb at mainbus0 not configured
uhidev0 at uhub0 port 8 configuration 1 interface 0 "Lenovo TrackPoint Keyboard 
II" rev 2.00/1.27 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub0 port 8 configuration 1 interface 1 "Lenovo TrackPoint Keyboard 
II" rev 2.00/1.27 addr 2
uhidev1: iclass 3/1, 22 report ids
ums0 at uhidev1 reportid 1: 3 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev1 reportid 5: input=1, output=0, feature=0
ucc0 at uhidev1 reportid 16: 767 usages, 20 keys, array
wskbd2 at ucc0 mux 1
uhid1 at uhidev1 reportid 18: input=1, output=0, feature=0
uhid2 at uhidev1 reportid 19: input=7, output=0, feature=7
uhid3 at uhidev1 reportid 21: input=2, output=0, feature=0
uhid4 at uhidev1 reportid 22: input=2, output=0, feature=0
uhidev2 at uhub0 port 8 configuration 1 interface 2 "Lenovo TrackPoint Keyboard 
II" rev 2.00/1.27 addr 2
uhidev2: iclass 3/0, 4 report ids
uhid5 at uhidev2 reportid 4: input=0, output=0, feature=31
uhidev3 at uhub1 port 2 configuration 1 interface 0 "Logitech USB Receiver" rev 
2.00/44.01 addr 2
uhidev3: iclass 3/1
ukbd1 at uhidev3: 8 variable keys, 6 key codes
wskbd3 at ukbd1 mux 1
uhidev4 at uhub1 port 2 configuration 1 interface 1 "Logitech USB Receiver" rev 
2.00/44.01 addr 2
uhidev4: iclass 3/1, 8 report ids
ums1 at uhidev4 reportid 2: 16 buttons, Z and W dir
wsmouse1 at ums1 mux 0
ucc1 at uhidev4 reportid 3: 767 usages, 20 keys, array
wskbd4 at ucc1 mux 1
uhid6 at uhidev4 reportid 4: input=1, output=0, feature=0
uhid7 at uhidev4 reportid 8: input=1, output=0, feature=0
uhidev5 at uhub1 port 2 configuration 1 interface 2 "Logitech USB Receiver" rev 
2.00/44.01 addr 2
uhidev5: iclass 3/0, 33 report ids
uhidpp0 at uhidev5 device 1 mouse "G305"
uhid8 at uhidev5 reportid 32: input=14, output=14, feature=0
uhid9 at uhidev5 reportid 33: input=31, output=31, feature=0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd4a (8771cb604d7fb178.a) swap on sd4b dump on sd4b

[EE] uvm_addr_invoke uaddr_select err 12, _sel_fct@0xffffffff8261179f
rnd_sel 0xffffffff81b0f800
kbootstrap_sel 0xffffffff81b0fc70
bestfit_sel 0xffffffff81b0fd80
pivot_sel 0xffffffff81b0ff40
stack_brk_sel 0xffffffff81b10220

[EE] uvm_addr_invoke uaddr_select err 12, _sel_fct@0xffffffff8261179f
rnd_sel 0xffffffff81b0f800
kbootstrap_sel 0xffffffff81b0fc70
bestfit_sel 0xffffffff81b0fd80
pivot_sel 0xffffffff81b0ff40
stack_brk_sel 0xffffffff81b10220

[EE] uvm_map uvm_map_findspace err

[EE] km_alloc uvm_map(_, 0xffffffff830eab78, 0x100000000, _, 
0xffffffffffffffff, 0x0, 0x1323) err after 0 retries

[EE] x86_mem_add_mapping km_alloc ENOMEM

[EE] bus_space_map x86_mem_add_mapping error 12
[EE] aper_base_kaddr=NULL, visible_vram_size=0x100000000
[drm] *ERROR* visible_vram_size 100000000 or aper_base_kaddr 0x0 is not 
initialized.
drm:pid0:psp_sw_init *ERROR* Failed to process memory training!
drm:pid0:amdgpu_device_ip_init *ERROR* sw_init of IP block <psp> failed -22
drm:pid0:amdgpu_device_init *ERROR* amdgpu_device_ip_init failed
drm:pid0:amdgpu_driver_load_kms *ERROR* Fatal error during GPU init
WARNING !amdgpu_irq_enabled(adev, src, type) failed at 
/sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c:650
efifb0 at mainbus0: 3840x2160, 32bpp
wsdisplay0 at efifb0 mux 1
pckbd_enable: command error
wskbd1: connecting to wsdisplay0
wskbd2: connecting to wsdisplay0
wskbd3: connecting to wsdisplay0
wskbd4: connecting to wsdisplay0
wsdisplay0: screen 0-5 added (std, vt100 emulation)
Index: arch/amd64/amd64/bus_space.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/bus_space.c,v
diff -u -p -r1.30 bus_space.c
--- arch/amd64/amd64/bus_space.c        17 Sep 2025 18:39:50 -0000      1.30
+++ arch/amd64/amd64/bus_space.c        16 Jun 2026 17:21:58 -0000
@@ -381,8 +381,10 @@ bus_space_map(bus_space_tag_t t, bus_add
         */
        error = extent_alloc_region(ex, bpa, size,
            EX_NOWAIT | (ioport_malloc_safe ? EX_MALLOCOK : 0));
-       if (error)
+       if (error) {
+        printf("\n[EE] %s extent_alloc_region error %d\n", __func__, error);
                return (error);
+    }
 
        /*
         * For I/O space, that's all she wrote.
@@ -414,6 +416,7 @@ bus_space_map(bus_space_tag_t t, bus_add
                            bpa, size);
                        printf("bus_space_map: can't free region\n");
                }
+        printf("\n[EE] %s x86_mem_add_mapping error %d\n", __func__, error);
        }
 
        return (error);
@@ -522,8 +525,10 @@ x86_mem_add_mapping(bus_addr_t bpa, bus_
        map_size = endpa - pa;
 
        va = (vaddr_t)km_alloc(map_size, &kv_any, &kp_none, &kd_nowait);
-       if (va == 0)
+       if (va == 0) {
+        printf("\n[EE] %s km_alloc ENOMEM\n", __func__);
                return (ENOMEM);
+    }
 
        *bshp = (bus_space_handle_t)(va + (bpa & PGOFSET));
 
Index: dev/pci/drm/amd/amdgpu/amdgpu_drv.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c,v
diff -u -p -r1.70 amdgpu_drv.c
--- dev/pci/drm/amd/amdgpu/amdgpu_drv.c 12 Apr 2026 23:12:22 -0000      1.70
+++ dev/pci/drm/amd/amdgpu/amdgpu_drv.c 16 Jun 2026 17:22:10 -0000
@@ -3410,6 +3410,9 @@ amdgpu_attach(struct device *parent, str
                return;
        }
 
+    printf("\n[II] %s pci_mapreg_info fb_aper_offset 0x%lx fb_aper_size 
0x%lx\n",
+           __func__, adev->fb_aper_offset, adev->fb_aper_size);
+
        if (adev->fb_aper_offset == 0) {
                bus_size_t start, end, pci_mem_end;
                bus_addr_t base;
@@ -3432,6 +3435,8 @@ amdgpu_attach(struct device *parent, str
                        pci_conf_write(pa->pa_pc, pa->pa_tag,
                            AMDGPU_PCI_MEM + 4, (uint64_t)base >> 32);
                adev->fb_aper_offset = base;
+        printf("\n[EE] %s fallback fb_aper_offset 0x%lx fb_aper_size 0x%lx\n",
+               __func__, adev->fb_aper_offset, adev->fb_aper_size);
        }
 
        if (adev->family >= CHIP_BONAIRE)
Index: dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c,v
diff -u -p -r1.17 amdgpu_gmc.c
--- dev/pci/drm/amd/amdgpu/amdgpu_gmc.c 9 Mar 2026 23:57:53 -0000       1.17
+++ dev/pci/drm/amd/amdgpu/amdgpu_gmc.c 16 Jun 2026 17:22:11 -0000
@@ -216,6 +216,9 @@ void amdgpu_gmc_vram_location(struct amd
        uint64_t vis_limit = (uint64_t)amdgpu_vis_vram_limit << 20;
        uint64_t limit = (uint64_t)amdgpu_vram_limit << 20;
 
+       //vis_limit = 2048ULL << 20;
+       vis_limit = 4096ULL << 20;
+
        mc->vram_start = base;
        mc->vram_end = mc->vram_start + mc->mc_vram_size - 1;
        if (limit < mc->real_vram_size)
Index: dev/pci/drm/amd/amdgpu/amdgpu_ttm.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c,v
diff -u -p -r1.30 amdgpu_ttm.c
--- dev/pci/drm/amd/amdgpu/amdgpu_ttm.c 9 Mar 2026 23:57:53 -0000       1.30
+++ dev/pci/drm/amd/amdgpu/amdgpu_ttm.c 16 Jun 2026 17:22:14 -0000
@@ -2022,9 +2022,12 @@ int amdgpu_ttm_init(struct amdgpu_device
            BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_PREFETCHABLE,
            &adev->mman.aper_bsh)) {
                adev->mman.aper_base_kaddr = NULL;
+        printf("[EE] aper_base_kaddr=NULL, visible_vram_size=0x%llX\n", 
adev->gmc.visible_vram_size);
        } else {
                adev->mman.aper_base_kaddr = bus_space_vaddr(adev->memt,
                    adev->mman.aper_bsh);
+        printf("[II] aper_base_kaddr=%p, visible_vram_size=0x%llX\n", 
adev->mman.aper_base_kaddr,
+               adev->gmc.visible_vram_size);
        }
 #endif
 
Index: dev/pci/drm/amd/amdgpu/amdgpu_vm.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c,v
diff -u -p -r1.31 amdgpu_vm.c
--- dev/pci/drm/amd/amdgpu/amdgpu_vm.c  7 Apr 2026 09:50:17 -0000       1.31
+++ dev/pci/drm/amd/amdgpu/amdgpu_vm.c  16 Jun 2026 17:22:18 -0000
@@ -2744,7 +2744,8 @@ error_free_root:
                vm->pasid = 0;
        }
        amdgpu_vm_pt_free_root(adev, vm);
-       amdgpu_bo_unreserve(vm->root.bo);
+       if (vm->root.bo)
+               amdgpu_bo_unreserve(vm->root.bo);
        amdgpu_bo_unref(&root_bo);
 
 error_free_delayed:
Index: uvm/uvm_addr.c
===================================================================
RCS file: /cvs/src/sys/uvm/uvm_addr.c,v
diff -u -p -r1.37 uvm_addr.c
--- uvm/uvm_addr.c      4 Sep 2024 07:54:53 -0000       1.37
+++ uvm/uvm_addr.c      16 Jun 2026 17:22:25 -0000
@@ -381,8 +381,10 @@ uvm_addr_invoke(struct vm_map *map, stru
 
        hint &= ~((vaddr_t)PAGE_MASK);
        if (hint != 0 &&
-           !(hint >= uaddr->uaddr_minaddr && hint < uaddr->uaddr_maxaddr))
+           !(hint >= uaddr->uaddr_minaddr && hint < uaddr->uaddr_maxaddr)) {
+        printf("\n[EE] %s hint err\n", __func__);
                return ENOMEM;
+    }
 
        vm_map_assert_anylock(map);
 
@@ -401,7 +403,14 @@ uvm_addr_invoke(struct vm_map *map, stru
                            uaddr->uaddr_minaddr, uaddr->uaddr_maxaddr,
                            *addr_out, sz);
                }
-       }
+       } else {
+        printf("\n[EE] %s uaddr_select err %d, _sel_fct@%p\n", __func__, 
error, uaddr->uaddr_functions->uaddr_name);
+        printf("rnd_sel %p\n", &uaddr_rnd_select);
+        printf("kbootstrap_sel %p\n", &uaddr_kbootstrap_select);
+        printf("bestfit_sel %p\n", &uaddr_bestfit_select);
+        printf("pivot_sel %p\n", &uaddr_pivot_select);
+        printf("stack_brk_sel %p\n", &uaddr_stack_brk_select);
+    }
 
        return error;
 }
@@ -477,8 +486,9 @@ uaddr_lin_select(struct vm_map *map, str
         */
        guard_sz = ((map->flags & VM_MAP_GUARDPAGES) == 0 ? 0 : PAGE_SIZE);
 
-       if (uaddr->uaddr_maxaddr - uaddr->uaddr_minaddr - guard_sz < sz)
-               return ENOMEM;
+       if (uaddr->uaddr_maxaddr - uaddr->uaddr_minaddr - guard_sz < sz) {
+        return ENOMEM;
+    }
        return uvm_addr_linsearch(map, uaddr, entry_out, addr_out, 0, sz,
            align, offset, 1, uaddr->uaddr_minaddr, uaddr->uaddr_maxaddr - sz,
            0, guard_sz);
@@ -541,6 +551,7 @@ uaddr_rnd_select(struct vm_map *map, str
 
        if (uaddr->uaddr_maxaddr - guard_sz < sz)
                return ENOMEM;
+
        minaddr = uvm_addr_align_forward(uaddr->uaddr_minaddr, align, offset);
        maxaddr = uvm_addr_align_backward(uaddr->uaddr_maxaddr - sz - guard_sz,
            align, offset);
Index: uvm/uvm_km.c
===================================================================
RCS file: /cvs/src/sys/uvm/uvm_km.c,v
diff -u -p -r1.159 uvm_km.c
--- uvm/uvm_km.c        13 Nov 2025 10:55:51 -0000      1.159
+++ uvm/uvm_km.c        16 Jun 2026 17:22:25 -0000
@@ -537,6 +537,7 @@ km_alloc(size_t sz, const struct kmem_va
        int pla_flags;
        int pla_maxseg;
        vaddr_t va, sva = 0;
+    uint64_t cnt;
 
        KASSERT(sz == round_page(sz));
 
@@ -561,7 +562,7 @@ km_alloc(size_t sz, const struct kmem_va
 
        if (uvm_pglistalloc(sz, kp->kp_constraint->ucr_low,
            kp->kp_constraint->ucr_high, pla_align, kp->kp_boundary,
-           &pgl, pla_maxseg, pla_flags)) {     
+           &pgl, pla_maxseg, pla_flags)) {
                return (NULL);
        }
 
@@ -622,6 +623,7 @@ alloc_va:
 
                if (kp->kp_object)
                        uobj = *kp->kp_object;
+        cnt = 0;
 try_map:
                map = *kv->kv_map;
                va = vm_map_min(map);
@@ -630,9 +632,11 @@ try_map:
                    MADV_RANDOM, mapflags))) {
                        if (kv->kv_wait && kd->kd_waitok) {
                                tsleep_nsec(map, PVM, "km_allocva", INFSLP);
+                cnt++;
                                goto try_map;
                        }
                        uvm_pglistfree(&pgl);
+            printf("\n[EE] %s uvm_map(_, %p, 0x%zx, _, 0x%llx, 0x%lx, 0x%x) 
err after %llu retries\n", __func__, &va, sz, kd->kd_prefer, kv->kv_align, 
UVM_MAPFLAG(prot, prot, MAP_INHERIT_NONE, MADV_RANDOM, mapflags), cnt);
                        return (NULL);
                }
        }
Index: uvm/uvm_map.c
===================================================================
RCS file: /cvs/src/sys/uvm/uvm_map.c,v
diff -u -p -r1.355 uvm_map.c
--- uvm/uvm_map.c       22 Feb 2026 21:53:54 -0000      1.355
+++ uvm/uvm_map.c       16 Jun 2026 17:22:28 -0000
@@ -1002,12 +1002,16 @@ uvm_map(struct vm_map *map, vaddr_t *add
                hint = 0;
 
        /* Check protection. */
-       if ((prot & maxprot) != prot)
+       if ((prot & maxprot) != prot) {
+        printf("\n[EE] %s %d != %d prot EACCESS err\n", __func__, prot & 
maxprot, prot);
                return EACCES;
+    }
 
        if (map == kernel_map &&
-           (prot & (PROT_WRITE | PROT_EXEC)) == (PROT_WRITE | PROT_EXEC))
-               panic("uvm_map: kernel map W^X violation requested");
+           (prot & (PROT_WRITE | PROT_EXEC)) == (PROT_WRITE | PROT_EXEC)) {
+            printf("\n[EE] %s W^X violation\n", __func__);
+                   panic("uvm_map: kernel map W^X violation requested");
+        }
 
        /*
         * Before grabbing the lock, allocate a map entry for later
@@ -1015,11 +1019,14 @@ uvm_map(struct vm_map *map, vaddr_t *add
         * vm_map_lock.
         */
        new = uvm_mapent_alloc(map, flags);
-       if (new == NULL)
+       if (new == NULL) {
+        printf("\n[EE] %s new == NULL ENOMEM err\n", __func__);
                return ENOMEM;
+    }
 
        if (flags & UVM_FLAG_TRYLOCK) {
                if (vm_map_lock_try(map) == FALSE) {
+            printf("\n[EE] %s lock is locked EFAULT err\n", __func__);
                        error = EFAULT;
                        goto out;
                }
@@ -1052,11 +1059,13 @@ uvm_map(struct vm_map *map, vaddr_t *add
                        if (uvm_unmap_remove(map, *addr, *addr + sz, &dead,
                            FALSE, TRUE, TRUE) != 0) {
                                error = EPERM;  /* immutable entries found */
+                printf("\n[EE] %s immutable entries found EPERM err\n", 
__func__);
                                goto unlock;
                        }
                }
                if (!uvm_map_isavail(map, NULL, &first, &last, *addr, sz)) {
                        error = ENOMEM;
+            printf("\n[EE] %s uvm_map_isavail ENOMEM err\n", __func__);
                        goto unlock;
                }
        } else if (*addr != 0 && (*addr & PAGE_MASK) == 0 &&
@@ -1083,8 +1092,10 @@ uvm_map(struct vm_map *map, vaddr_t *add
                            pmap_align, pmap_offset, prot, hint);
                }
 
-               if (error != 0)
+               if (error != 0) {
+            printf("\n[EE] %s unk err\n", __func__);
                        goto unlock;
+        }
        } else {
                /* Update freelists from vmspace. */
                if (map->flags & VM_MAP_ISVMSPACE)
@@ -1099,6 +1110,8 @@ uvm_map(struct vm_map *map, vaddr_t *add
 
                        error = uvm_map_findspace(map, &first, &last, addr, sz,
                            pmap_align, pmap_offset, prot, hint);
+            if (error)
+                printf("\n[EE] %s uvm_map_findspace err\n", __func__);
                }
 
                if (error != 0)
@@ -1108,6 +1121,7 @@ uvm_map(struct vm_map *map, vaddr_t *add
        /* Double-check if selected address doesn't cause overflow. */
        if (*addr + sz < *addr) {
                error = ENOMEM;
+        printf("\n[EE] %s addr ovf check err\n", __func__);
                goto unlock;
        }
 
@@ -1117,6 +1131,7 @@ uvm_map(struct vm_map *map, vaddr_t *add
        /* If we only want a query, return now. */
        if (flags & UVM_FLAG_QUERY) {
                error = 0;
+        printf("\n[WW] %s query\n", __func__);
                goto unlock;
        }
 
@@ -1134,6 +1149,7 @@ uvm_map(struct vm_map *map, vaddr_t *add
        entry = uvm_map_mkentry(map, first, last, *addr, sz, flags, &dead,
            new);
        if (entry == NULL) {
+        printf("\n[EE] %s uvm_map_mkentry ENOMEM err\n", __func__);
                error = ENOMEM;
                goto unlock;
        }

Reply via email to