From nobody Fri Mar 11 09:32:02 2022 X-Original-To: dev-commits-src-all@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 B3D591A05B1A; Fri, 11 Mar 2022 09:32:43 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from fry.fubar.geek.nz (fry.fubar.geek.nz [139.59.165.16]) by mx1.freebsd.org (Postfix) with ESMTP id 4KFLLx1b4Cz4Vj6; Fri, 11 Mar 2022 09:32:41 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from smtpclient.apple (cpc91232-cmbg18-2-0-cust554.5-4.cable.virginm.net [82.2.126.43]) by fry.fubar.geek.nz (Postfix) with ESMTPSA id 0C48A4E701; Fri, 11 Mar 2022 09:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fubar.geek.nz; s=mail; t=1646991125; bh=EooOQeUa4ns+kXeEzlsb/5+HJLG0WIGIg+NflCuU5hI=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=c0RR9GppZ3Xk85BEOruDf6SZ8TWXUTpOF7sW+iGCRa8+y8Pak6W6xEG3TjfDS9aGB +Mn132E9Sv4W7qs3C5fT6kA0OpxvkHfEWssuiPqJmb/FdKzFC/DwypMueTXPzH5Qnh QYn+cg3Ab4gvo7sbk+0csL+UHqH9ybm5ao63/qwnzu1nE7VPZ6QdAHVmaSSnJr2ThF TO6EX5gaRGQGC3MR72GJptXSGIRvOR8+TeJi5L/U7UdXYuJuw7ZcJQLcB/GskrZfNn 5mhNzBMkm8bsSjRxSKi6qJtTGrGaZliZIp1rvuBzgNjmtWfCU2zxrx3y35MSi7uYDR VMVVIdkYXpY/PrRZp1qJSEMRA0UaqHFzWBzSqDaOAoEzcYAKOylxtJmtmm+NQeVqVb MJHhLzWvm6w6z+yF43QiyOOh2BI9UKzGLw66bvY//YM4f81rTW7RU/IFu3veNJfvtB aATtS/LDDuw9V6CiNJU5E5At1T3Ij3xCwmR8MF7Y+Qb2t4vs6yB+5g/wiZk7Z4n1kE 1MnLBRtqshSnAw2IL3vcbF9D+yWhLrZ9v510R72cwoGi19Zt3sATSas0Wk7pYFDCDY u/bOTyrXlS1nyGjeQo6n3SPqGBxnNJ0Xde5L12fD8ir4l3Uot/aA/AjB1v7FbiEmpP CBJRZbDCz8ldBdaHo+/4JEZo= Content-Type: text/plain; charset=utf-8 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Subject: Re: git: 832acea92fc8 - main - icl_soft: Use PHYS_TO_DMAP instead of pmap_map_io_transient. From: Andrew Turner In-Reply-To: <202203110221.22B2LmuN037273@gitrepo.freebsd.org> Date: Fri, 11 Mar 2022 09:32:02 +0000 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <87FDC36E-0A15-4E43-A1C7-A2F61D60526F@fubar.geek.nz> References: <202203110221.22B2LmuN037273@gitrepo.freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.3693.60.0.1.1) X-Rspamd-Queue-Id: 4KFLLx1b4Cz4Vj6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fubar.geek.nz header.s=mail header.b=c0RR9Gpp; dmarc=pass (policy=none) header.from=fubar.geek.nz; spf=pass (mx1.freebsd.org: domain of andrew@fubar.geek.nz designates 139.59.165.16 as permitted sender) smtp.mailfrom=andrew@fubar.geek.nz X-Spamd-Result: default: False [-3.40 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[fubar.geek.nz:s=mail]; FREEFALL_USER(0.00)[andrew]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+mx]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; DKIM_TRACE(0.00)[fubar.geek.nz:+]; DMARC_POLICY_ALLOW(-0.50)[fubar.geek.nz,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[dev-commits-src-all,dev-commits-src-main]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14061, ipnet:139.59.160.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 11 Mar 2022, at 02:21, John Baldwin wrote: >=20 > The branch main has been updated by jhb: >=20 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3D832acea92fc8cdb55859a6a4b1bc38bf= 766780f1 >=20 > commit 832acea92fc8cdb55859a6a4b1bc38bf766780f1 > Author: John Baldwin > AuthorDate: 2022-03-11 02:20:28 +0000 > Commit: John Baldwin > CommitDate: 2022-03-11 02:20:28 +0000 >=20 > icl_soft: Use PHYS_TO_DMAP instead of pmap_map_io_transient. The i386 and arm version of PHYS_TO_DMAP is: #define PHYS_TO_DMAP(x) ({ panic("No direct map exists"); 0; }) On these architectures there is no DMAP region. On powerpc there may not be a DMAP region. It appears to depend on the = CPU. You can use PMAP_HAS_DMAP to check if the DMAP region is supported, = however you=E2=80=99ll need a fallback to create a temporary mapping. Andrew