From: Paul Menzel Subject: Re: [Intel 945] BSM: How to determine size of DRAM used for internal graphics? Date: Fri, 30 May 2014 14:47:58 +0200 Message-ID: <1401454078.4834.104.camel@mattotaupa> References: <1401450351.4834.96.camel@mattotaupa> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0332842740==" Return-path: Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by gabe.freedesktop.org (Postfix) with ESMTP id 584FB6E4A4 for ; Fri, 30 May 2014 05:48:14 -0700 (PDT) Received: from cable-86-56-56-250.cust.telecolumbus.net ([86.56.56.250] helo=mattotaupa.local) by mail.gw90.de with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1WqMEH-0007ov-Nm for intel-gfx@lists.freedesktop.org; Fri, 30 May 2014 12:48:13 +0000 In-Reply-To: <1401450351.4834.96.camel@mattotaupa> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0332842740== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-L3zi71P8lxbewsFmp50s" --=-L3zi71P8lxbewsFmp50s Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Intel graphics folks, Am Freitag, den 30.05.2014, 13:45 +0200 schrieb Paul Menzel: > since commit 17fec8a0 [1] >=20 > drm/i915: Use Graphics Base of Stolen Memory on all gen3+ >=20 > Linux reads the register BSM (Base of Stolen Memory) directly to get the > base address of graphics stolen memory. With coreboot [2] and native > graphics init =E2=80=93 note that everything works with the proprietary V= GA > BIOS/Option ROM =E2=80=93 this causes a regression [3] as this register i= s not > programmed at all. >=20 > From the datasheet *Mobile Intel=C2=AE 945 Express Chipset Family* [4] th= e > register BSM is described on page 290. >=20 > Graphics Stolen Memory and TSEG are within DRAM space defined > under TOLUD. From the top of low used DRAM, (G)MCH claims 1 to > 64 MBs of DRAM for internal graphics if enabled. >=20 > This register contains bits 31 to 20 of the base address of > stolen > DRAM memory. The host interface determines the base of > graphics stolen memory by subtracting the graphics stolen > memory size from TOLUD. See Device 0 TOLUD for more > explanations. >=20 > Also see Figure 12 *Main Memory Address Range* in section 9.2 on page > 325. >=20 > Unfortunately I am unable to find out how the graphics stolen memory > size is determined. I=E2=80=99d have thought it is used for the framebuff= er, but > according to page 93 (Graphics Mode select (GMS)) that the framebuffer > size can only be 1 MB or 8 MB, which contradicts that it can be up to 64 > MB. >=20 > If it is determined implicitly by the value I set the BSM to, where can > I find the recommendations what size to use? I=E2=80=99d guess it is depe= ndent > on the RAM size, that means dependent if the system has 512 MB or 4 GB > for example. The datasheet documents the bits of the register BSM as Read Only (RO). So I am even more confused now. Thanks, Paul > [1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commi= t/?id=3D17fec8a08698bcab98788e1e89f5b8e7502ababd > [2] http://www.coreboot.org/ > [3] https://bugs.freedesktop.org/show_bug.cgi?id=3D79038 > [4] http://www.intel.com/content/dam/www/public/us/en/documents/datasheet= s/mobile-945-express-chipset-datasheet.pdf > Document Number: 309219-006 --=-L3zi71P8lxbewsFmp50s Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEABECAAYFAlOIfgYACgkQPX1aK2wOHVgJvQCfQIjZzJqYHFcWJZWB6IjRS3Q8 69YAnj6YGHbDyL1+IBq/bbC5qFLg410q =G4yQ -----END PGP SIGNATURE----- --=-L3zi71P8lxbewsFmp50s-- --===============0332842740== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0332842740==--