From nobody Fri Mar 11 09:50:13 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 12C331A0A812; Fri, 11 Mar 2022 09:50:35 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KFLlZ4wlQz4ZQn; Fri, 11 Mar 2022 09:50:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id C287C260352; Fri, 11 Mar 2022 10:50:25 +0100 (CET) Message-ID: <2f900e17-d43e-c842-abf0-ea60159798f6@selasky.org> Date: Fri, 11 Mar 2022 10:50:13 +0100 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: git: 832acea92fc8 - main - icl_soft: Use PHYS_TO_DMAP instead of pmap_map_io_transient. Content-Language: en-US To: Andrew Turner , John Baldwin Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" References: <202203110221.22B2LmuN037273@gitrepo.freebsd.org> <87FDC36E-0A15-4E43-A1C7-A2F61D60526F@fubar.geek.nz> From: Hans Petter Selasky In-Reply-To: <87FDC36E-0A15-4E43-A1C7-A2F61D60526F@fubar.geek.nz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4KFLlZ4wlQz4ZQn X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N 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