Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3356399pxb; Mon, 17 Jan 2022 18:27:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJz53zVzE+Z625Eq7v+LoiVLNXGwYJPNMAXe00qTSjXjjgnXa2IforHppd9+YlIvLdabtjQ6 X-Received: by 2002:a63:710e:: with SMTP id m14mr21173902pgc.277.1642472869267; Mon, 17 Jan 2022 18:27:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642472869; cv=none; d=google.com; s=arc-20160816; b=ZFAR/ZEa7GD67pc1vLwtN2+HOryqZUirs8/upJJTGvT6p5dSS399xSeA5dPVbWIByT 7wugZ/ddxoSFDLLphPbOfK7w6EqrPOAUC3AckMt5Hv8wmXCdSQSs73XUMxsSKMkvbg26 upCcnNn+eTWDylntApuLk21cuT4CpBnhmKFlSB9s50MUFdQ7gYrKAUczF1UM6+X0SwPS f4kmR6Vb31ugApKj9Wg3rejpUzILTFP54hAPTp/f5vjAvO0nuQqyK1ui8vKaedqMmMaU /wsf4PvqxX1hGz304wqCyuMNp6/o8el2OTuPSk8T1LyJIe+Vzwbl8J/T4GlN9mWB42h0 CseA== 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; bh=aw/HNeVnfTRxU1ZQlE8UIYhuVJjuteUvt0Niy9Bfiz0=; b=PwBsn9fNNHxLfy98v7ipK6CMg/DBUH0N5JRnNBFAaFHpxY+++PYghYtUwedzV4oARl PgAQ0Z61Nd+TlKnIUkQUb4AFdOSx1gsknSg5sEMnRe9One0PpRszzDCRLYCJ26kdViXK Fb8qea3gU/Xxnlod6rPS6UUjqVPrzmoATrXGUQ5Akr36ap8jfrHKd0vXx8aHuCIF+3ht vPvIc0NYnWXeul0o3dwdRb+HAH2fuzMlCcbwG+khEx0PR3EWbcKULoFN76HlmooVG6Cc M7cpySH5VZfCMJDTedFAxRuWr5/7sgHNYESoov3KnMQD6w0Q5LeXrHWyoUUa/zv9UqJP /V5w== ARC-Authentication-Results: i=1; mx.google.com; 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 n15si20113837plc.119.2022.01.17.18.27.37; Mon, 17 Jan 2022 18:27:49 -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; 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 S234037AbiAQNaC (ORCPT + 99 others); Mon, 17 Jan 2022 08:30:02 -0500 Received: from mail-ua1-f53.google.com ([209.85.222.53]:33625 "EHLO mail-ua1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233841AbiAQNaB (ORCPT ); Mon, 17 Jan 2022 08:30:01 -0500 Received: by mail-ua1-f53.google.com with SMTP id u6so30503638uaq.0; Mon, 17 Jan 2022 05:30:00 -0800 (PST) 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=aw/HNeVnfTRxU1ZQlE8UIYhuVJjuteUvt0Niy9Bfiz0=; b=KnWbplvLSljCNRNiCCRHJ5K41GoWVGxg0ZKT2Zk5Zv6a1bfbDL4NXiHK/bxUI97u2A PmPxp6//kL4Ki3IBCDI0BiwJ4S6jJ2F89Fthl57OdP/Bh9hM7Db4ZNKr+A25tGqq0P7d ylBjyFrQH8iUj/9VMGsee8hsPD++I3Lju7LGdxi2pp3RCgU1vI2lYRWH1H0t2T/4p2NZ g1JXl7r4HnT82FL7b2bXxPq0PTxAdSy5GSb/bIJEioqaU/fuwVEyku4qrzy64k7yA+rV msQ0Hqgros7NhcZUH916UxohaJ7Tr2I6yndULKQgpf9pausPEs3S/3VaT8P9adIAFSRV 23ZA== X-Gm-Message-State: AOAM533CLI62sOU9V2ouxrNv3UNRNxSGESior0FktVykc7yAAFWbqpOM lQPT7EnexyDwxPYbk+SNdu0wQ4YNqlQo2A== X-Received: by 2002:a05:6102:ed5:: with SMTP id m21mr7381704vst.56.1642426200221; Mon, 17 Jan 2022 05:30:00 -0800 (PST) Received: from mail-vk1-f169.google.com (mail-vk1-f169.google.com. [209.85.221.169]) by smtp.gmail.com with ESMTPSA id s32sm3526190uas.3.2022.01.17.05.29.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Jan 2022 05:29:59 -0800 (PST) Received: by mail-vk1-f169.google.com with SMTP id 191so10375349vkc.1; Mon, 17 Jan 2022 05:29:59 -0800 (PST) X-Received: by 2002:ac5:c967:: with SMTP id t7mr8120473vkm.20.1642426198916; Mon, 17 Jan 2022 05:29:58 -0800 (PST) MIME-Version: 1.0 References: <20220117125716.yjwxsze35j2ndn2i@sirius.home.kraxel.org> In-Reply-To: <20220117125716.yjwxsze35j2ndn2i@sirius.home.kraxel.org> From: Geert Uytterhoeven Date: Mon, 17 Jan 2022 14:29:47 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] MAINTAINERS: Add Helge as fbdev maintainer To: Gerd Hoffmann Cc: Helge Deller , Daniel Vetter , Linus Torvalds , "airlied@gmail.com" , Linux Fbdev development list , Linux Kernel Mailing List , DRI Development , Javier Martinez Canillas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Gerd, On Mon, Jan 17, 2022 at 1:57 PM Gerd Hoffmann wrote: > > b) to include new drivers (for old hardware) if they arrive (probably happens rarely but there can be). > > I know of at least one driver which won't be able to support DRM.... > > Hmm? I seriously doubt that. There is always the option to use a > shadow framebuffer, then convert from standard drm formats to whatever > esoteric pixel format your hardware expects. > > Been there, done that. Have a look at the cirrus driver. The physical > hardware was designed in the early 90-ies, almost 30 years ago. These > days it exists in virtual form only (qemu emulates it). Thanks to the > drm driver it runs wayland just fine even though it has a bunch of > constrains dictated by the hardware design. The Cirrus DRM driver supports TrueColor (RGB565/888 and ARGB8888) modes only. The Cirrus fbdev driver also supports mochrome and 256 color modes. There exist some DRM drivers that do support DRM_FORMAT_C8, but none of the "tiny" ones do. Same for DRM_FORMAT_RGB{332,233}. Using a shadow frame buffer to convert from truecolor to 256 colors would be doable, but would give bad results. And what about less colors? Adding support for e.g. DRM_FORMAT_C4 is not straight-forward, as the DRM core assumes in many places that a pixel is at least 1 byte, and would crash otherwise (yes I tried). Other modes needed are DRM_FORMAT_Y4 and DRM_FORMAT_{BW,WB} (monochrome). This not only to support "old" hardware, but also modern small OLED and e-ink displays. On the positive side: DRM would force e.g. the Amiga and Atari bitplane formats to become internal to the kernel driver, with the kernel driver converting from packed pixels to bitplanes. Hence userspace would no longer have to care about bitplanes. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds