From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932691AbcLHVYP (ORCPT ); Thu, 8 Dec 2016 16:24:15 -0500 Received: from gate.crashing.org ([63.228.1.57]:49730 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753391AbcLHVYO (ORCPT ); Thu, 8 Dec 2016 16:24:14 -0500 Message-ID: <1481232210.26959.47.camel@kernel.crashing.org> Subject: Re: [RFC PATCH 0/3] staging: remove fbdev drivers From: Benjamin Herrenschmidt To: Tomi Valkeinen , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Greg Kroah-Hartman , Thomas Petazzoni , Noralf =?ISO-8859-1?Q?Tr=F8nnes?= , Sudip Mukherjee , Teddy Wang , Arnaud Patard , airlied@linux.ie Cc: linux-kernel@vger.kernel.org Date: Fri, 09 Dec 2016 08:23:30 +1100 In-Reply-To: <035da7a8-5a3f-1ef6-f686-479773e78084@ti.com> References: <1479888193-23908-1-git-send-email-tomi.valkeinen@ti.com> <1481158879.26959.41.camel@kernel.crashing.org> <035da7a8-5a3f-1ef6-f686-479773e78084@ti.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.2 (3.22.2-1.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2016-12-08 at 10:01 +0200, Tomi Valkeinen wrote: > > > DRM drivers don't strike me as suitable for small/slow cores with dumb > > framebuffers or simple 2D only accel, such as the one found in the ASpeed > > BMCs. > > Then the DRM framework should be improved to be suitable. Dave ? :-) > > With drmfb you basically have to shadow everything into memory & copy > > over everything, and locks you out of simple 2D accel. For a simple text > > console the result is orders of magnitude slower and memory hungry than > > a simple fbdev. > > I don't think that's true. You can have a single fbdev buffer and blit > there all you want, afaik. Well, I had that argument with Dave Airlie which I CCed. The "dumb" ones like bochsdrmfb, cirrusdrmfb, astdrmfb ... all use shadowing, meaning they use a lot more memory and cannot do any 2D acceleration for fbcon. >>From memory, David claimed you cannot directly work on the fb with a "proper" DRM driver. Maybe I misunderstood but then the DRM shines by its complete absence of useful documentation mixed with bazillion layers of APIs and helpers so it's pretty hard to get ones head around it without wasting very large amounts of time which I don't have at the moment. > > Not everything has a powerful 3D GPU. > > We don't use GPU on OMAPs (except for 3D). The CPU in an OMAP is order of magnitude faster than what I have in an Aspeed BMC though. Ben.