From nobody Mon Mar 27 09:57:58 2023 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 4PlStj1kcqz423FS; Mon, 27 Mar 2023 09:58:21 +0000 (UTC) (envelope-from corvink@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PlStj1BjXz4PVy; Mon, 27 Mar 2023 09:58:21 +0000 (UTC) (envelope-from corvink@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679911101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FChmZ+hwITOrB6HeOpL3D6mNNNj7A0I3u7ujVmjLJGY=; b=i/oHKSmTXWBtNcyIXWCbYF6HX2ShPpJ7EZZqXin6JE64naUKlVcC1DHpSU/YJ2Kj4bbpI5 GkBTpb5ptIeMUR5s0R5DNufbw3sYCAyGsSkKR+CHrR2j1uyJ88VmmHtbrpC16UwWc68i/I w0DVMnkIaFjfyL+/mJcjng6gShyl7/KrCzqHc0Ipwu+b6b4yKCfUSIJT1voRNX1OhuPQ2r 9FaMMr3SUf1KNi+nwZSXOSja2dEFlRcS5s/DhY3hRqQgpF+cVW6f+62+KsBRFuTthvXVJn uabtLkaQZIIrbvi96PU+93dGFePAcgKbAeeVg47k2bngxBYVbnneloHR/M7Hfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679911101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FChmZ+hwITOrB6HeOpL3D6mNNNj7A0I3u7ujVmjLJGY=; b=u63T/6rU7iswVT7RimTav8kzk7ZzZ/9pOoSUZnknSozT489IHD+GwCesq+U50NNh0w1Xs0 Kxb4XtBMc0HPwbzNvZCDRZ+bQCn963EZah2U4RKv+W7zjP6c8B2UGFE9AeAioGj/J94XIH np8f7bQs1Qxsk+6+rm7tFmrx0j48MGq1Fwe2hbfleeoQwpJyQAWkYypkfpyMD/24q7oiJz BVbrY6en3ZQDoxq8w4ipK7wDAGe0lHFFz+o7YQn6IcYDPuUY0HmNLdFLLOXGnV3u9iUVEk rnLe7PROo0jX6F28Qt8XJkTM47Jc8yw2z4tTNdjMvei4aHvpPD1BKWOVyrRXQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679911101; a=rsa-sha256; cv=none; b=McidIapTopx9e2jogynC1ogjL+vMmEThwswNd1wNJT3lXHbSd5MPVRW6/KgP87Cn1eKoqM A7+XaXalB18MU/s2zaE2nFWyhWM9TSRd6HH+Ez0qnQL3KYcznUJHTqePLw0XNvMPwhivZW pDEgyn6+3cozKCFgjdUps5/I2n22z49ILoMAF6WkQDGN4LOoCXC2YbRrh6lC4+LxUA/CFf OcvwvoL9yP+Tc0bEHIrg4Hyyg+mI32x7LfVHSYKAR82ONnNF7TM1JxsfQIh+3Ez/834nTR xVIM7tcV68F8B8O+J9oVYM7KcDQ8jep+F0iU90LXqN+v0J8honFhjMQznzTDqQ== Received: from [IPv6:2001:16b8:181a:b800:4759:abeb:e811:4e66] (unknown [IPv6:2001:16b8:181a:b800:4759:abeb:e811:4e66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: corvink) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PlSth3c1Bz1M4S; Mon, 27 Mar 2023 09:58:20 +0000 (UTC) (envelope-from corvink@FreeBSD.org) Message-ID: <2a4906a9b1063a75223abdd4de91cc5be4edc0cf.camel@FreeBSD.org> Subject: Re: git: e8988d60d24b - main - pci: expose intel_graphics_stolen as sysctl From: Corvin =?ISO-8859-1?Q?K=F6hne?= To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Date: Mon, 27 Mar 2023 11:57:58 +0200 In-Reply-To: <202303270941.32R9fEau088949@gitrepo.freebsd.org> References: <202303270941.32R9fEau088949@gitrepo.freebsd.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-qqDnEX6frQzdsra6B7n0" User-Agent: Evolution 3.46.4 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 X-ThisMailContainsUnwantedMimeParts: N --=-qqDnEX6frQzdsra6B7n0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2023-03-27 at 09:41 +0000, Corvin K=C3=B6hne wrote: > The branch main has been updated by corvink: >=20 > URL: > https://cgit.FreeBSD.org/src/commit/?id=3De8988d60d24b05e98919e912329880a= 54cdfdd70 >=20 > commit e8988d60d24b05e98919e912329880a54cdfdd70 > Author:=C2=A0=C2=A0=C2=A0=C2=A0 Corvin K=C3=B6hne > AuthorDate: 2023-03-27 08:21:37 +0000 > Commit:=C2=A0=C2=A0=C2=A0=C2=A0 Corvin K=C3=B6hne > CommitDate: 2023-03-27 09:40:49 +0000 >=20 > =C2=A0=C2=A0=C2=A0 pci: expose intel_graphics_stolen as sysctl > =C2=A0=C2=A0=C2=A0=20 > =C2=A0=C2=A0=C2=A0 The Intel graphics stolen memory is used by the Intel = GOP driver > on > =C2=A0=C2=A0=C2=A0 boot. When using bhyve with GPU passthrough, it's also= used by > the guest > =C2=A0=C2=A0=C2=A0 GOP driver at guest boot. For that reason, bhyve needs= to know > the > =C2=A0=C2=A0=C2=A0 address and size of this region to inform the guest ab= out this > region. > =C2=A0=C2=A0=C2=A0 Exposing the variables as sysctl allows bhyve to easil= y read > them. > --- > =C2=A0sys/x86/pci/pci_early_quirks.c | 8 ++++++++ > =C2=A01 file changed, 8 insertions(+) >=20 > diff --git a/sys/x86/pci/pci_early_quirks.c > b/sys/x86/pci/pci_early_quirks.c > index b9de1d78e022..7eb3fcd91927 100644 > --- a/sys/x86/pci/pci_early_quirks.c > +++ b/sys/x86/pci/pci_early_quirks.c > @@ -32,6 +32,8 @@ __FBSDID("$FreeBSD$"); > =C2=A0#include > =C2=A0#include > =C2=A0#include > +#include > + > =C2=A0#include > =C2=A0/* XXX: enable this once the KPI is available */ > =C2=A0/* #include */ > @@ -56,6 +58,12 @@ struct pci_device_id { > =C2=A0 */ > =C2=A0vm_paddr_t intel_graphics_stolen_base =3D 0; > =C2=A0vm_paddr_t intel_graphics_stolen_size =3D 0; > +SYSCTL_U64(_hw, OID_AUTO, intel_graphics_stolen_base, CTLFLAG_RD, > +=C2=A0=C2=A0=C2=A0 &intel_graphics_stolen_base, 0, > +=C2=A0=C2=A0=C2=A0 "Base address of the intel graphics stolen memory."); > +SYSCTL_U64(_hw, OID_AUTO, intel_graphics_stolen_size, CTLFLAG_RD, > +=C2=A0=C2=A0=C2=A0 &intel_graphics_stolen_size, 0, > +=C2=A0=C2=A0=C2=A0 "Size of the intel graphics stolen memory."); > =C2=A0 > =C2=A0/* > =C2=A0 * Intel early quirks functions Reviewed by: manu MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39281 --=20 Kind regards, Corvin --=-qqDnEX6frQzdsra6B7n0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIyBAABCAAdFiEEgvRSla3m2t/H2U9G2FTaVjFeAmoFAmQhaKYACgkQ2FTaVjFe Amp/gg/4tW2Ess3YVGjA1eOjb47BJ7ZJMnt+1CgvWWxNiLEco56PRRXkHq8Vhi8L AAbGZUf/BBHGIB83jNXnlWqs0Joj/fNFrjLVnEOf1rqJ99yjBo5wF/PaYpojkF3Q 3iz5xmpFu5/2Go4FU51KDqNOx4YE9z/X6LgcpJheJoAKzdvQwiEDFpfDI+TUHjiD 1o5X/nyKdZFoOHv7pUTGw1BlutlIgqfoLlUH5vXp/40E2nWlEJYYsfo98PY/GR8l bekKdiW67lq/Qqj37OmjAiFML/8+IsFYhnXoyX7tRrfuGzNB8oRm02kJtpsJM4Rx IMiipbkrWIfTk2m9r09rf6td9PAlPlpxs6q5kdz20OesKwuMKZiUdJtQN0/ycsRl PBqR76yoo9dOfty8YIts6kaTwkzpTMzjgvrCejfVu9sArjW3f9ZFQktvEWLzr8XI wgUpNf9VlwTfPeSHVaEWobklfAtu1JziBcmc1/fRQbyyCEcccaC8qqd9+skqQZpS B1IU7h8/vFbIqpEvmLdrL2KqWWOggl9g1rn6qmz1GiMzmG+gRqizdWgeFhDQOFm6 ktRDmf5riiPD/UJxzAEqXUEPcK7chwfoMB+ePL/gVB/JWozTfuzi4hITyOBcOkYh I5IqzCyb5JCOc44gHFGp/lVjtIx+wk030iQalKo+765SaxWJ/w== =rwAD -----END PGP SIGNATURE----- --=-qqDnEX6frQzdsra6B7n0--