Re: git: 832acea92fc8 - main - icl_soft: Use PHYS_TO_DMAP instead of pmap_map_io_transient.
- Reply: Hans Petter Selasky : "Re: git: 832acea92fc8 - main - icl_soft: Use PHYS_TO_DMAP instead of pmap_map_io_transient."
- In reply to: Andrew Turner : "Re: git: 832acea92fc8 - main - icl_soft: Use PHYS_TO_DMAP instead of pmap_map_io_transient."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Mar 2022 09:50:13 UTC
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