Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3547597pxb; Mon, 24 Jan 2022 11:57:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzoPZuTDv6wO1PtDvdm7mNlMY8fEdMJ7pEPp15pquMjGoiu00bQAZ4H3kSSzPxHllNErslR X-Received: by 2002:a17:90a:56:: with SMTP id 22mr3403541pjb.199.1643054246660; Mon, 24 Jan 2022 11:57:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054246; cv=none; d=google.com; s=arc-20160816; b=GKL4KpLkm67rgpNu1BnNh+p+3cTckEiKQ0/ooDTxGiscXXu32ogmwt9Hch838YLqG/ hT+eQnJnSXCjI4L5ULEM1ooQFt4avS1BY0qpPUMSF251WkMEnDpbmXLrtn8x8LB29jY3 yWzbksCCt18L2dDOFs2EM8G8F/j53qhzq1miHIpZZ4EYLVT7AKtPjzlYLDaw8lv0WIob d0GC8bEOkGx8Xy9d+1bzEo+B1TM5GuSy4qFWqvF+SGwYiCgVPhTtMNLvup6ncqvRhtir 2YT/BOHqX0eTzdXF8EmCn7Q7SRdb8xg3fNCl2WF//G2YAYStRxP7zDYBZNrzJ96HkDtD mIVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0csA6moKKYq3fSs9USPuSGlU/kYiU1Lp2B669qtC3bY=; b=bxdnu50ELlFKtpW6XrtlX6kGsbY9SZYOh2ZLfqeb/sPqBZX4qHdOi3YcOsUzOkoer+ Bb+NUs/4a90zPvv56ubIlZpZr4sGbMwrQQ0akfWvdax7ECI1WvAIkQi0K2w34WQaAopc U/eRrNxc8tAOqHyd97E8B0Ev7lnlxCrTbJTBIrhJvUbO/PSs/7Yg9PmuuEm/b3ImXnxq LZ7MT529f3unSh/HCwOb4yprcI9Pl+7t1qfRFx2oRzDyOSL4yLJ03OGfNqAhKpKc4CW1 +qy5vYjr9PLU86DnaLqS6+Lc2s2+IBlc8JA3xkJaQNjY9rBXFPGF4lP+T8SYfbwcUmEy nhxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=UYTza7tS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si14463069pff.339.2022.01.24.11.57.14; Mon, 24 Jan 2022 11:57:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=UYTza7tS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343650AbiAXSwO (ORCPT + 99 others); Mon, 24 Jan 2022 13:52:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245572AbiAXSvK (ORCPT ); Mon, 24 Jan 2022 13:51:10 -0500 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A523C0617A8 for ; Mon, 24 Jan 2022 10:50:50 -0800 (PST) Received: by mail-ot1-x331.google.com with SMTP id x52-20020a05683040b400b0059ea92202daso7616562ott.7 for ; Mon, 24 Jan 2022 10:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0csA6moKKYq3fSs9USPuSGlU/kYiU1Lp2B669qtC3bY=; b=UYTza7tSTELle6ZPRVA1VKcMdcn84stFawhGizZU7n+y0rXvx9W2wb6J2B4SG+jOkm HEXpxM0Jevqy6RKBvqcFHojq7RYiqe/b7mwqlXtDa4xRoJ2jaXH04rtKlwpaCahS/RLr YlIvXMiX2HOHKsmsnuOlPn5Uw8lj69D/E4iL4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0csA6moKKYq3fSs9USPuSGlU/kYiU1Lp2B669qtC3bY=; b=W0ac2/agPl+jgAPeJl6dIUf6/L1+tZEyKfIVyxbFii2di4VxXlYuSLokMA1+bFlC5L eZ+gU3qVVDf0YZM7p5luQMxahbqxF435Lqx2vAf504LK+zXyEBw1g7NAbtFZjA3aDhZX HHqW0PiMpp7NSL4Wm9tsdN8crCgUyhehcU8O1hygjXix7bHYp4Hd4mHBSHbaXuinyqaS Fu/6rd8wFeD6rfWsuq4TDRSvVFrjJq9oOPV2Xizge/b51T+6kYNf9dg1+U9Kp8Udb/C9 E+llrBqrSVKOaD7PsRvOs+NV02/rylaZw0j7bfOqBXEClYupzi3ZlpF/6+91DWjC7Ipx 9bog== X-Gm-Message-State: AOAM5331b5LQNx4wfMoRq31/8QKzirWV1ZAOE2LDhRQDEB+qVByYLEUx JG5RngWbSN4mVdUIKGKjxoRPcD9aYfsAH/moQ2TEYQ== X-Received: by 2002:a05:6830:1e76:: with SMTP id m22mr7594921otr.75.1643050249475; Mon, 24 Jan 2022 10:50:49 -0800 (PST) MIME-Version: 1.0 References: <20220117125716.yjwxsze35j2ndn2i@sirius.home.kraxel.org> <70530b62-7b3f-db88-7f1a-f89b824e5825@suse.de> <57d276d3-aa12-fa40-6f90-dc19ef393679@gmx.de> <20220118062947.6kfuam6ah63z5mmn@sirius.home.kraxel.org> <3f96f393-e59d-34ac-c98b-46180e2225cd@suse.de> <20220120125015.sx5n7ziq3765rwyo@sirius.home.kraxel.org> In-Reply-To: From: Daniel Vetter Date: Mon, 24 Jan 2022 19:50:37 +0100 Message-ID: Subject: Re: [PATCH] MAINTAINERS: Add Helge as fbdev maintainer To: Geert Uytterhoeven Cc: Gerd Hoffmann , Thomas Zimmermann , Helge Deller , Linux Fbdev development list , Sven Schnelle , Linux Kernel Mailing List , DRI Development , Javier Martinez Canillas , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 24, 2022 at 7:39 PM Geert Uytterhoeven wrote: > > Hi Daniel, > > On Fri, Jan 21, 2022 at 9:55 AM Daniel Vetter wrote: > > Just to clarify, since we had lots of smaller and bigger > > misunderstandings in the thread thus far: DRM_FORMAT_RGB332 exists, so > > drm support that already. The fbdev emulation doesn't yet, but all > > that's needed for that is filling out the code to remap the drm > > description to the fbdev format description for this case. Plus > > testing it all works ofc with fbcon and whatelse. Note that RGB332 is > > a bit more work than e.g. C4, since atm fbdev still uses only bpp to > > identify formats, so would need to be switch over to drm_fourcc first > > before adding anything which aliases with something existing (we have > > C8 already wired up). > > I doubt that RGB332 would be a bit more work than C4, as RGB332 is still > 8 bpp, while C4 is less. To support C4, all DRM code that cannot > handle format->cpp[0] < 1 or drm_format_info_block_width() > 1 has to be > fixed first. Hm what's broken with it? Current code means it cannot support odd width for C4 (because to make C4 fit into bytes you need 2 pixels), but otherwise this should all work. Iirc we have formats with "5 pixels in 4 bytes" and fun stuff like that. Note that stride and also the actual window you scan out are all separate, so even if your hw needs an odd stride or you have an odd resolution it should still all work out for C4 with the existing infra. RGB322 is more work because in the fbdev code this aliases with bpp=8 which is C8, because no one has yet moved the fbdev emulation code forward into the drm_fourcc world. > On the plus side, I finally got my proof-of-concept Atari DRM driver > working with fbcon on ARAnyM. Mapping /dev/fb0 from userspace doesn't > work (fbtest SEGVs while reading from the mapped frame buffer). I don't > know yet if this is a general issue without deferred I/O in v5.17-rc1, > or a bug in the m68k MM code... > > So far it supports C8 only, but I hope to tackle C4 and monochrome soon. > Whether the end result will be usable on real hardware is still to be > seen, but at least I hope to get some DRM code written... Yay, this sounds interesting! -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch