From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755484Ab1JQVms (ORCPT ); Mon, 17 Oct 2011 17:42:48 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:50788 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754331Ab1JQVmq (ORCPT ); Mon, 17 Oct 2011 17:42:46 -0400 Date: Mon, 17 Oct 2011 22:39:28 +0100 From: Alan Cox To: Hugh Dickins Cc: Rob Clark , Patrik Jakobsson , Andrew Morton , Christoph Hellwig , greg@kroah.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 34/49] gma500: the GEM and GTT code is device independant Message-ID: <20111017223928.4d5ed2c6@lxorguk.ukuu.org.uk> In-Reply-To: References: <20110705141038.23872.55303.stgit@localhost.localdomain> <20110705144140.23872.86541.stgit@localhost.localdomain> <20110708093859.299958df@lxorguk.ukuu.org.uk> <20110711172517.46907e62@lxorguk.ukuu.org.uk> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-redhat-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEWysKsSBQMIAwIZCwj///8wIhxoRDXH9QHCAAABeUlEQVQ4jaXTvW7DIBAAYCQTzz2hdq+rdg494ZmBeE5KYHZjm/d/hJ6NfzBJpp5kRb5PHJwvMPMk2L9As5Y9AmYRBL+HAyJKeOU5aHRhsAAvORQ+UEgAvgddj/lwAXndw2laEDqA4x6KEBhjYRCg9tBFCOuJFxg2OKegbWjbsRTk8PPhKPD7HcRxB7cqhgBRp9Dcqs+B8v4CQvFdqeot3Kov6hBUn0AJitrzY+sgUuiA8i0r7+B3AfqKcN6t8M6HtqQ+AOoELCikgQSbgabKaJW3kn5lBs47JSGDhhLKDUh1UMipwwinMYPTBuIBjEclSaGZUk9hDlTb5sUTYN2SFFQuPe4Gox1X0FZOufjgBiV1Vls7b+GvK3SU4wfmcGo9rPPQzgIabfj4TYQo15k3bTHX9RIw/kniir5YbtJF4jkFG+dsDK1IgE413zAthU/vR2HVMmFUPIHTvF6jWCpFaGw/A3qWgnbxpSm9MSmY5b3pM1gvNc/gQfwBsGwF0VCtxZgAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > It feels to me like GEM is pulling shmem in an ever more alien direction: > these device constraints are so foreign to the nature of tmpfs; and > beyond my expertise, so that I'd be ever more likely to make the wrong > decisions (mixing swap and uncached pages? hmmm). For the most part we fixed that. You can now have a GEM object that is backed by a private memory object rather than having to be tmpfs. GMA500 uses it to attach 'stolen' memory to GEM handles, and at least one other pending submission uses it with a private CMA style allocator. The gma500 report seems an odd one - no GMA500 box has >4GB memory so how did the test code get a page that was unsuitable - is the test buggy ? Alan