From: Paul Menzel Subject: Re: [Intel 945] BSM: How to determine size of DRAM used for internal graphics? Date: Mon, 09 Jun 2014 14:15:07 +0200 Message-ID: <1402316107.5463.25.camel@mattotaupa> References: <1401450351.4834.96.camel@mattotaupa> <1401454078.4834.104.camel@mattotaupa> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0769896560==" Return-path: Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by gabe.freedesktop.org (Postfix) with ESMTP id A2C286E144 for ; Mon, 9 Jun 2014 05:15:33 -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 1WtyU7-0002py-Rc for intel-gfx@lists.freedesktop.org; Mon, 09 Jun 2014 12:15:32 +0000 In-Reply-To: <1401454078.4834.104.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 --===============0769896560== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-iAPmDklgp0tylb4+GOC/" --=-iAPmDklgp0tylb4+GOC/ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Intel graphics folks, Am Freitag, den 30.05.2014, 14:47 +0200 schrieb Paul Menzel: > Am Freitag, den 30.05.2014, 13:45 +0200 schrieb Paul Menzel: >=20 > > 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 th= e > > base address of graphics stolen memory. With coreboot [2] and native > > graphics init =E2=80=93 note that everything works with the proprietary= VGA > > BIOS/Option ROM =E2=80=93 this causes a regression [3] as this register= is not > > programmed at all. > >=20 > > From the datasheet *Mobile Intel=C2=AE 945 Express Chipset Family* [4] = the > > 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 framebu= ffer, 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 6= 4 > > 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 de= pendent > > on the RAM size, that means dependent if the system has 512 MB or 4 GB > > for example. >=20 > The datasheet documents the bits of the register BSM as Read Only (RO). > So I am even more confused now. It turned out that the register is indeed read-only and that the register to look at seems to be PGTBL_CTL/PGETBL_CTL. Thanks, Paul > > [1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/com= mit/?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/datashe= ets/mobile-945-express-chipset-datasheet.pdf > > Document Number: 309219-006 --=-iAPmDklgp0tylb4+GOC/ 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) iEYEABECAAYFAlOVpVwACgkQPX1aK2wOHVjQggCffZTNlDfkN4icNH5bMRKYmmZS J6wAn22G7llBGoBlireEiQFrcm0FvZzI =EmO6 -----END PGP SIGNATURE----- --=-iAPmDklgp0tylb4+GOC/-- --===============0769896560== 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 --===============0769896560==--