]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
ntb: Revert r290130 now that r290156 has landed
authorcem <cem@FreeBSD.org>
Thu, 29 Oct 2015 19:35:01 +0000 (19:35 +0000)
committercem <cem@FreeBSD.org>
Thu, 29 Oct 2015 19:35:01 +0000 (19:35 +0000)
Nagged by: vangyzen
Sponsored by: EMC / Isilon Storage Division

sys/dev/ntb/ntb_hw/ntb_hw.c

index f5dbc3290d27e10a57aa649d477dce089055a829..e918d263ea59ab9e3d4e6021ea1d2133f0e09092 100644 (file)
@@ -755,13 +755,9 @@ map_memory_window_bar(struct ntb_softc *ntb, struct ntb_pci_bar_info *bar)
                save_bar_parameters(bar);
        }
 
-#if 0  /* XXX: amd64 pmap_change_attr() assumes region lies in DMAP. */
        /* Mark bar region as write combining to improve performance. */
        rc = pmap_change_attr((vm_offset_t)bar->vbase, bar->size,
            VM_MEMATTR_WRITE_COMBINING);
-#else
-       rc = EINVAL;
-#endif
        print_map_success(ntb, bar, "mw");
        if (rc == 0)
                device_printf(ntb->device,