Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2466143imu; Thu, 10 Jan 2019 14:47:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN7HM2vRNmnN/kdQqB12lRDfDv5kE9Wk4O10zL15D0Ik2QMbXVQGPDqP3NSp1F++NQuctJlc X-Received: by 2002:a63:d949:: with SMTP id e9mr11186947pgj.24.1547160442804; Thu, 10 Jan 2019 14:47:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547160442; cv=none; d=google.com; s=arc-20160816; b=LSVHvkvJn0qDlAT+Kgaf/9S75pMifJO5OLhW4BVeCZlI9aHMtkdjknOERERzVTlI1c 5WZb1XU0FUVyE+I5NciWVn+8snFXFYLPhqRAiV/5Z3Ox4b0v+IN+E7CnhNZ6C5EUGqdG ID52Khp7/qXM+jTK6ExssXEeCrRWe2Abktee9zWJluIcfFAtIbZL5dCN+nJAiflYCQwe YSoz44ODSJmPMra2jaMkO4fNGX+0uJe1bzB4o+QTevA1FiwEQ/V4d8oA8t1vSefXSr0q voAaPyAd843mPX9ZNzVBYEafjwSzMKvERdsVh/nJFihC6/cpS7eX5+qE/5x00Kv1EPL9 GLDA== 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=jrR7MN3zWtTOEAlREM10G1K8GL1YyZtNgrncxhm6R/A=; b=f+14VzjOkBnk0KBTAh13v79uKIRFh3f2g104pkQTiRKgdXhCMcisA6vjm6uy8vNXA3 MQKD4LdpYLuqrduzswcfFzCq5bjIoe+Psp5hga5wIkQ9fV2ZreUOSSOLf0+hZAww6sQ0 h0kpnb22cZ3HeT0ZNyamonomaSddQT3iSK3r9WAZ1gHomhr7Dj3lNp/a5kyENHE7BBf4 tdINvqjQPhoenZln4B281FNS6pQROsY9BlX68tndwiKcn+R6fqCfgh823X5lQKeWm/WD RLEdBpr8wtA0RjIvY9nmSufhsJAFlzwwyvlPxlvb+dbBdpW0+NLHb41sX9/EPCV3KE4E aYtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b="MF6Z/e8v"; 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 z123si13055159pfb.104.2019.01.10.14.47.07; Thu, 10 Jan 2019 14:47:22 -0800 (PST) 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="MF6Z/e8v"; 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 S1728929AbfAJUCa (ORCPT + 99 others); Thu, 10 Jan 2019 15:02:30 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46550 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbfAJUCa (ORCPT ); Thu, 10 Jan 2019 15:02:30 -0500 Received: by mail-ed1-f66.google.com with SMTP id o10so11194530edt.13 for ; Thu, 10 Jan 2019 12:02:29 -0800 (PST) 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=jrR7MN3zWtTOEAlREM10G1K8GL1YyZtNgrncxhm6R/A=; b=MF6Z/e8vyuyt3PZWmhubBZvsoDGV8udz/9JB9n1Wa8tk8Rot8D3Tprb7lewlEEba96 6XR68EF8ElKcjjmoKF5GmqtAeyQfJL0xJ2ujsI6Cj+XWV/0h3pNWbaV1GWemf3wrPvJT BKlj4qE76qf5+xcV/avF8kNovPx4huZrQdeeI= 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=jrR7MN3zWtTOEAlREM10G1K8GL1YyZtNgrncxhm6R/A=; b=PZWWnnmOzqDyow/VIq659iCyEn/IFous8OjNo2cjL6Ikv9ogzPeqqC3biZ0onUcNbI jm+fNeCtgjeTdLyuMhh8mHaTqgPK0iGMrlxGEUrzLnxUiznAtsPgVsxkdtUbhPOMYA0q LwDYyp0ijsytaxNx1fopFuvelFsOs9G1AWI5OlexfOcRryjHPTApdt/f9kFlf2vQ/cYa 5IM8jpBkTKyDRqJdz90Bd22LkHgLJNbP59VKUrx+T67jMgFsz4pQIZwIShdVRlmb6gBd RXqMNq7wZuoBcioDhEdVe9Dhxvrh+NsgDL98gL74xxhm5wLe2dbnTLk4q6LXa8RZY4Cb Gh3w== X-Gm-Message-State: AJcUukcGHpCOknfvOs1y1OgaOu3xpxUefhGNp0uwgUDsSGQvSaSU0IUe lwAY3x2Qvz5DYaIO9ToI2EGYfw== X-Received: by 2002:a50:9724:: with SMTP id c33mr10876479edb.288.1547150548360; Thu, 10 Jan 2019 12:02:28 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id c23-v6sm1230019ejb.62.2019.01.10.12.02.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Jan 2019 12:02:27 -0800 (PST) Date: Thu, 10 Jan 2019 21:02:25 +0100 From: Daniel Vetter To: Frank Wunderlich Cc: Daniel Vetter , CK Hu , Philipp Zabel , David Airlie , Matthias Brugger , Linux Kernel Mailing List , dri-devel , Linux ARM , "moderated list:ARM/Mediatek SoC support" , Alexander Ryabchenko Subject: Re: Re: [PATCH] drm/mediatek: Add MTK Framebuffer-Device (mt7623) Message-ID: <20190110200225.GN21184@phenom.ffwll.local> Mail-Followup-To: Frank Wunderlich , CK Hu , Philipp Zabel , David Airlie , Matthias Brugger , Linux Kernel Mailing List , dri-devel , Linux ARM , "moderated list:ARM/Mediatek SoC support" , Alexander Ryabchenko References: <20190102084917.4049-1-frank-w@public-files.de> <20190107103640.GH21184@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 4.18.0-2-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 Thu, Jan 10, 2019 at 08:01:37PM +0100, Frank Wunderlich wrote: > Hi Daniel, > > > > Would be good to use the new generic fbdev emulation code here, for even > > > less code. Or at least know why this isn't possible to use for mtk (and > > > maybe address that in the core code). Hand-rolling fbdev code shouldn't be > > > needed anymore. > > > > Back on the mailing list, no private replies please: > > i don't wanted to spam all people with dumb questions ;) There's no dumb questions, only insufficient documentation :-) > > For examples please grep for drm_fbdev_generic_setup(). There's also a > > still in-flight series from Gerd Hoffmann to convert over bochs. That, > > plus all the kerneldoc linked from there should get you started. > > -Daniel > > this is one of google best founds if i search for drm_fbdev_generic_setup: > > https://lkml.org/lkml/2018/12/19/305 > > not very helpful... > > so i tried kernel-doc > > https://www.kernel.org/doc/html/latest/gpu/drm-kms-helpers.html?highlight=drm_fbdev_generic_setup#c.drm_fbdev_generic_setup > > which is nice function-reference but i've found no generic workflow > > as the posted driver is "only" a driver ported from kernel 4.4 by Alexander, i don't know if this new framework can be used and which parts need to be changed. I only try to bring his code Mainline.... > Maybe CK Hu can help here because driver is originally from him and he knows internals. Or maybe you can help here? > > i personally make my first steps as spare-time kernel-developer :) There's a ton of in-kernel users of that function already, I meant you can use those to serve as examples ... If those + the kerneldoc aren't good enough, then we need to improve them. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch