Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/pci change bus_space_map to _x86_memio_map



details:   https://anonhg.NetBSD.org/src/rev/266c2b113e0d
branches:  trunk
changeset: 464351:266c2b113e0d
user:      tnn <tnn%NetBSD.org@localhost>
date:      Thu Oct 03 18:53:08 2019 +0000

description:
change bus_space_map to _x86_memio_map

Resolves bus space reservation conflict between MI and MD code.
Discussion:
http://mail-index.netbsd.org/port-amd64/2019/09/28/msg003014.html

diffstat:

 sys/arch/x86/pci/msipic.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 6ecf15c98d77 -r 266c2b113e0d sys/arch/x86/pci/msipic.c
--- a/sys/arch/x86/pci/msipic.c Thu Oct 03 18:12:44 2019 +0000
+++ b/sys/arch/x86/pci/msipic.c Thu Oct 03 18:53:08 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msipic.c,v 1.17 2019/06/26 10:20:06 knakahara Exp $    */
+/*     $NetBSD: msipic.c,v 1.18 2019/10/03 18:53:08 tnn Exp $  */
 
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msipic.c,v 1.17 2019/06/26 10:20:06 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msipic.c,v 1.18 2019/10/03 18:53:08 tnn Exp $");
 
 #include "opt_intrdebug.h"
 
@@ -711,7 +711,7 @@
                flags &= ~BUS_SPACE_MAP_PREFETCHABLE;
        }
        bssize = roundup(table_size, PAGE_SIZE);
-       err = bus_space_map(pa->pa_memt, memaddr + table_offset, bssize, flags,
+       err = _x86_memio_map(pa->pa_memt, memaddr + table_offset, bssize, flags,
            &bshandle);
        bstag = pa->pa_memt;
 #endif
@@ -739,8 +739,8 @@
        KASSERT(msix_pic->pic_type == PIC_MSIX);
 
        msipic = msix_pic->pic_msipic;
-       bus_space_unmap(msipic->mp_bstag, msipic->mp_bshandle,
-           msipic->mp_bssize);
+       _x86_memio_unmap(msipic->mp_bstag, msipic->mp_bshandle,
+           msipic->mp_bssize, NULL);
 
        msipic_destruct_common_msi_pic(msix_pic);
 }



Home | Main Index | Thread Index | Old Index