From: Zhenyu Wang Subject: Re: [Intel-gfx] [PATCH] intel-gtt: fix memory corruption with GM965 and >4GB RAM Date: Mon, 28 Feb 2011 14:46:35 +0800 Message-ID: <20110228064635.GE428@zhen-devel.sh.intel.com> References: <20110223233022.GA3439@x61s.reliablesolutions.de> <20110225123056.GA3759@x61s.reliablesolutions.de> <20110225211646.GA6837@x61s.reliablesolutions.de> <20110225230527.GC3601@viiv.ffwll.ch> Reply-To: Zhenyu Wang Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="svZFHVx8/dhPCe52" Return-path: Content-Disposition: inline In-Reply-To: <20110225230527.GC3601@viiv.ffwll.ch> Sender: linux-kernel-owner@vger.kernel.org To: Chris Wilson , Jan Niehusmann , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org List-Id: intel-gfx@lists.freedesktop.org --svZFHVx8/dhPCe52 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2011.02.26 00:05:27 +0100, Daniel Vetter wrote: > On Fri, Feb 25, 2011 at 10:18:16PM +0000, Chris Wilson wrote: > > So, I'm happy to use your patch to workaround the known erratum. I just > > wish I had an explanation as to what is actually causing the corruption. > > What I want to make sure is that we don't paper over a real bug by > > thinking it is yet another silicon issue. >=20 > Actually, on style points I prefer your patch: The hw status page is > allocated with drm_pci_alloc which calls dma_alloc_coherent, so setting > the coherent mask is sufficient. The dma mask set in the gtt is > essentially useless, because we call get_user_pages on everything anyway > (in gem - iirc agp uses it). I just think it's confusing to limit the > general dma mask and continue to happily map pages above 4G. >=20 Think about IOMMU engine, we need to set dma_mask properly for returned dma mapping address be limited in max range that can be handled in GTT entry.=20 --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --svZFHVx8/dhPCe52 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk1rRMsACgkQsQQaM014GCexWwCeL63mjQQy1r4szm2NHRQGCYk6 xWMAnRnQcMfvd0RaoaD5m4xpJgjqrpQq =1YEA -----END PGP SIGNATURE----- --svZFHVx8/dhPCe52--