Date: Fri, 11 Mar 2022 10:50:13 +0100 From: Hans Petter Selasky <hps@selasky.org> To: Andrew Turner <andrew@fubar.geek.nz>, John Baldwin <jhb@freebsd.org> Cc: "src-committers@freebsd.org" <src-committers@FreeBSD.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@FreeBSD.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@FreeBSD.org> Subject: Re: git: 832acea92fc8 - main - icl_soft: Use PHYS_TO_DMAP instead of pmap_map_io_transient. Message-ID: <2f900e17-d43e-c842-abf0-ea60159798f6@selasky.org> In-Reply-To: <87FDC36E-0A15-4E43-A1C7-A2F61D60526F@fubar.geek.nz> References: <202203110221.22B2LmuN037273@gitrepo.freebsd.org> <87FDC36E-0A15-4E43-A1C7-A2F61D60526F@fubar.geek.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3/11/22 10:32, Andrew Turner wrote: > You can use PMAP_HAS_DMAP to check if the DMAP region is supported, however you’ll need a fallback to create a temporary mapping. You may want to look at how the LinuxKPI handles this. > /usr/src/sys/compat/linuxkpi/common/include/linux/scatterlist.h: if (!PMAP_HAS_DMAP) > /usr/src/sys/compat/linuxkpi/common/include/linux/scatterlist.h: if (!PMAP_HAS_DMAP) { > /usr/src/sys/compat/linuxkpi/common/include/linux/scatterlist.h: if (!PMAP_HAS_DMAP) > /usr/src/sys/compat/linuxkpi/common/include/linux/scatterlist.h: if (!PMAP_HAS_DMAP) > /usr/src/sys/compat/linuxkpi/common/include/linux/highmem.h: if (PMAP_HAS_DMAP) { > /usr/src/sys/compat/linuxkpi/common/include/linux/highmem.h: if (!PMAP_HAS_DMAP) { > /usr/src/sys/compat/linuxkpi/common/include/linux/highmem.h: if (!PMAP_HAS_DMAP) > /usr/src/sys/compat/linuxkpi/common/src/linux_page.c: return (PMAP_HAS_DMAP ? > /usr/src/sys/compat/linuxkpi/common/src/linux_page.c: if (PMAP_HAS_DMAP) { > /usr/src/sys/compat/linuxkpi/common/src/linux_page.c: if (PMAP_HAS_DMAP) { --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2f900e17-d43e-c842-abf0-ea60159798f6>