Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1977820yba; Mon, 15 Apr 2019 02:20:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7jjxQn9gwkJxW09r/xpg3uQxGXTZJDZS8O1H4icm8QahEa738zQcjPzat5fD3TM3xRMwT X-Received: by 2002:a65:4302:: with SMTP id j2mr65684258pgq.291.1555320021448; Mon, 15 Apr 2019 02:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555320021; cv=none; d=google.com; s=arc-20160816; b=RvFfSX9ikq/EUmbIjyoPXGdml01qvoEWSkjKgYI9y65abrxnCC43NUnvROYG5PhjFo zWDYwiCZ9lcsrzE4Fd7w8HVWPQ43Qri/nOP6EWCzI7nttiT8oQ1LLTOgkScZHi3D/5/1 uyIZYqF3i64Jfft1kzQmzWUep7runNdexc6PXEffwgCtx2Pp8my0LlCIR2TtT9wc8MBW kriPgzQ5xefPuKIJI5o0cXfW9vJ6Mk0A07QlZ6EPWmy1548SgZ3IYY5ooUh1LIedwA0R SUNtJ4CU6dekP2BPR/CYC75aTZg1HYpQYVmfkpnLW+ZRBGDK/BucRqwnH1uS3gyJjShF yxFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=ynQtq/6aBUoTAipkeDKcQtf7kKsME/OPz6dQg69/ZqA=; b=FGeg+BY4FxInQbSjSXZx++EE/UNck1Ln5n90zbqmSJ4AwbyUt7F8ev6Opf6ybEXD2q LjvTM5E5bO3omx3NpL+9EXwPgKJRvD9+MZOBaq70CX7huG0EjuBGEMYs8mR57NwGd20P K+3jKizb5Qd02JvOVx0bMn9Ny9guX0A+Dr7oP/e57BQRgTQ59GoxffA1++3m+CN0TMCr /758dV/0HH8uaBVXuOSRwLViPtcEpCBfxRR5otmbvTbL7vAmg0/bSfaefX1A3nso6m9T QplG4JAw1ww0KoAbWtIbG29yfdiKcPLbrXp8xLn3tkwQ2GF92xFBYmse48elMuINnJ1G /4iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=bfIvQYOs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z64si45121991pgd.106.2019.04.15.02.20.05; Mon, 15 Apr 2019 02:20:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=bfIvQYOs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727139AbfDOJSm (ORCPT + 99 others); Mon, 15 Apr 2019 05:18:42 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:33983 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbfDOJSm (ORCPT ); Mon, 15 Apr 2019 05:18:42 -0400 Received: by mail-ed1-f66.google.com with SMTP id a6so2775338edv.1 for ; Mon, 15 Apr 2019 02:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=ynQtq/6aBUoTAipkeDKcQtf7kKsME/OPz6dQg69/ZqA=; b=bfIvQYOsMuRfY7e2nyCsEZp366cC8dWDkDaYDWjxwzxadojySJtksZwssf/48Lk7uf GUHPNRX/ujNQ1QYwPiFyrGwtJaU7VpLIjhP0kl/W9R9YUMRSfK4Gyd8c0Ab6ecPHf9bw kywY6l2dmW2fER/dievAMG/iLNhDovtkvEkX0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=ynQtq/6aBUoTAipkeDKcQtf7kKsME/OPz6dQg69/ZqA=; b=JJ0Df8x4ZcjXgD5uKPydg1/KP5gP0q7mdsQ/AAt3NteZEYb/9WSB9KMFFm+/BY5/i4 UJClh8flBsk4EWlEnDiCjVPyuue8OC9eDkwurmIciyoHIXzDU06ZU2Mqb+Qn//wkzgio fejNqb+x8GoqmXFUbdP5sQxe9tivtAvpn56p491Ms2MIKfxSAy5SLNrbPW9zo11sbUY5 nrrVtvEuth8QV+clFNyLvR0WY5q/ZzrOSmnzVY2cqMl61z8/rcltkh/15M+FRuevAdoJ 8l7NvnxHJfKzRuFdSXcDMPG21KGrr+GRVI+SELbsxL5pinbU5kO6NiOcbO7NrR6/36X6 Nx0w== X-Gm-Message-State: APjAAAV4iu1g+tIrMm2Axe9mCuXuRMlFhqbMg5n9gMjj+wetQkw89H11 3SRcqllLI0JnCGtfYdFsEf61jg== X-Received: by 2002:aa7:ca07:: with SMTP id y7mr14132059eds.149.1555319920740; Mon, 15 Apr 2019 02:18:40 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id b2sm2635652eds.15.2019.04.15.02.18.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Apr 2019 02:18:39 -0700 (PDT) Date: Mon, 15 Apr 2019 11:18:37 +0200 From: Daniel Vetter To: Steven Price Cc: Alyssa Rosenzweig , Tomeu Vizoso , Neil Armstrong , Maxime Ripard , Sean Paul , Will Deacon , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , iommu@lists.linux-foundation.org, "Marty E . Plummer" , Robin Murphy , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 3/3] drm/panfrost: Add initial panfrost driver Message-ID: <20190415091837.GV2665@phenom.ffwll.local> Mail-Followup-To: Steven Price , Alyssa Rosenzweig , Tomeu Vizoso , Neil Armstrong , Maxime Ripard , Sean Paul , Will Deacon , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , iommu@lists.linux-foundation.org, "Marty E . Plummer" , Robin Murphy , linux-arm-kernel@lists.infradead.org References: <20190401074730.12241-1-robh@kernel.org> <20190401074730.12241-4-robh@kernel.org> <5efdc3cb-7367-65e1-d1bf-14051db5da10@arm.com> <20190405161632.GA9160@rosenzweig.io> <34a7038e-34f0-0cc4-4fc4-9b7dda356df6@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <34a7038e-34f0-0cc4-4fc4-9b7dda356df6@arm.com> X-Operating-System: Linux phenom 4.19.0-1-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 05, 2019 at 05:42:33PM +0100, Steven Price wrote: > On 05/04/2019 17:16, Alyssa Rosenzweig wrote: > > acronym once ever and have it as a "??"), I'm not sure how to respond to > > that... We don't know how to allocate memory for the GPU-internal data > > structures (the tiler heap, for instance, but also a few others I've > > just named "misc_0" and "scratchpad" -- guessing one of those is for > > "TLS"). With kbase, I took the worst-case strategy of allocating > > gigantic chunks on startup with tiny commit counts and GROW_ON_GPF set. > > With the new driver, well, our memory consumption is scary since > > implementing GROW_ON_GPF in an upstream-friendly way is a bit more work > > and isn't expected to hit the 5.2 window. > > Yes GROW_ON_GPF is pretty much required for the tiler heap - it's not > (reasonably) possible to determine how big it should be. The Arm user > space driver does the same approach (tiny commit count, but allow it to > grow). Jumping in here with a drive through comment ... Growing gem bo and dma-buf is going to be endless amounts of fun, since we hard-coded that their size is invariant. I think the only reasonable way to implement this is if you allocate a really huge bo, map it, but only put the pages in on faulting. Or when really evil userspace tries to export it. Actually changing the underlying buffer size is not going to work I think. Note: I didn't read kbase, so might be totally wrong in how GROW_ON_GPF works. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch