Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp680113pxb; Tue, 1 Feb 2022 08:14:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsOEooyBApR0/rirgLjv7Qbp5fs1pWif63bvkiXynO0FRIsXlK9CAhLlNjD4w0TpcfYRpQ X-Received: by 2002:a17:902:e852:: with SMTP id t18mr26530167plg.49.1643732059643; Tue, 01 Feb 2022 08:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643732059; cv=none; d=google.com; s=arc-20160816; b=hBpV7gsaSFWTCXjQTTco7/Ex6aXncd8Lr1aGqPDRFl70tuYQUiFDaUbdiYNjelb8oU blFxJJNzYVLD4+cl6YaaFHfxgLKnmMOFTGUqvhpxPtvUx14WsKucRj+xUhgHllxw0gn0 JRgT6AOSpAaTCIuHLUsOe1wMOcrsRQs9oNNv/bg539JC3Dfuq12ZPwdObpA4tass0LBi wIYvfk4GI1OenFQ/JNJo0iVcGizOaNBUnlC/FgxooX1ElMIzqOSSfVVZpGJ+iBZPMWTx 7XWo+b7neO9LiIcK94yEO7e4NAD1zfbk45KKhnQNvvh1S7JM3zLn7uBcQh0NHu8DbHXI A9bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ezN9srlnTogaHSQ6pDdu/S41B39M1Hq9JuNzonZ57Cg=; b=NE0b/wmmfkVcwElYSBL033+noWd/v7mBLVhLCIuXgwFmfBRwmd+odrSZkj8kDY71sS QUgq/vjH8D7U98ZH9cE8BmqJ2EozNrfVnSV3GuUVuvcQ1UhW4khOQ3qa1SSONfnJunXT WJpaWlGEnbR6Gz23C4lyHQZC1lqmay1XM2OzNgVY51SoV+9/Du4w+s08OJP5sTj2BPIL ZjcE4hJ3lzzZIHb0BIbdepxmazyr0asVPsUUyNJjieKZelZF1dMwM05ps9RdhLuDKcpf Y8xA+/No1GqpXjDkE9jZbcIqneKH5LXs3GgyNf618Xnlp0Sup9iYnOlL9pHWlDP05tdG slsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PHkJf5zT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q12si18339846pfj.37.2022.02.01.08.14.07; Tue, 01 Feb 2022 08:14:19 -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=@redhat.com header.s=mimecast20190719 header.b=PHkJf5zT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358104AbiAaKTJ (ORCPT + 99 others); Mon, 31 Jan 2022 05:19:09 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:36861 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358070AbiAaKTC (ORCPT ); Mon, 31 Jan 2022 05:19:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643624341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ezN9srlnTogaHSQ6pDdu/S41B39M1Hq9JuNzonZ57Cg=; b=PHkJf5zTNsw/KZ9NsBFrE0Pxt7cRreREq1+rxQ2xWEXOIi3NslVPn/c6aN87W4mmbI1aBU 4QrVfkacNXPbcRt3VCVTqqTgzHGz5km8e5XlKEYjBILCCCXJ76ZyUrBveNIQZlKCpv/LCG SFeWdTzXYLoxHKKwYyr1B9I2JsNcRVM= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-318-mJzp9DsmNqixXawQP0VSPQ-1; Mon, 31 Jan 2022 05:19:00 -0500 X-MC-Unique: mJzp9DsmNqixXawQP0VSPQ-1 Received: by mail-wm1-f71.google.com with SMTP id i133-20020a1c3b8b000000b00352cf8b74dcso71572wma.0 for ; Mon, 31 Jan 2022 02:19: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:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=ezN9srlnTogaHSQ6pDdu/S41B39M1Hq9JuNzonZ57Cg=; b=eZkcHviewT2KnDb4RQeGbBzuapVs2rXuiUFUF1vPuQsqlvSiDNNeA/MsJ6FdMDcSjL 9swcfHumf12rBbrdh0dNnY4lRAaZ+UVx21qcwkzgI/uRtyU4IlWrtEmcguN0PYwDSJlX ioR9f3NXbzLKi4+18nAaPPWRWWatbh9Jb0z0fLCkzbdjDma4ERzd7Lrv2ao3Hg17QSLZ RprSqR87sgqKrEXDJTpzyM03iEA2P8pV0X8QWhugzXnP2NKuffXkpKjBmxlicxGSn4im 7gXGPwWeai6rkbRrpKJWpnxqkWw1cPXe5em8Cd4oFEDFfNhCd7jxADoc+Dt0JlmLwQ1P Y91g== X-Gm-Message-State: AOAM532rhegpaCXd2psEirno1Mgx5TzTSrIRcjXaY0c7//ErJKi73MJo bAwG10e7TB27X+B2EXaWzuROhFPNXEYrsYobtNyRe/0m9KbnkC+5qQkG8e+LJSME8HuVOObb82k Zgxz4J0GvcbaTPE2SKFIMMV0Q X-Received: by 2002:a1c:2b06:: with SMTP id r6mr26447553wmr.4.1643624338970; Mon, 31 Jan 2022 02:18:58 -0800 (PST) X-Received: by 2002:a1c:2b06:: with SMTP id r6mr26447519wmr.4.1643624338693; Mon, 31 Jan 2022 02:18:58 -0800 (PST) Received: from [192.168.1.102] ([92.176.231.205]) by smtp.gmail.com with ESMTPSA id n18sm11302007wrm.47.2022.01.31.02.18.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Jan 2022 02:18:58 -0800 (PST) Message-ID: <840ec74d-60c6-9480-709c-8cd597c6f5b0@redhat.com> Date: Mon, 31 Jan 2022 11:18:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v1 1/4] fbtft: Unorphan the driver Content-Language: en-US To: Thomas Zimmermann , Andy Shevchenko Cc: Andy Shevchenko , linux-fbdev@vger.kernel.org, Michael Hennerich , Greg Kroah-Hartman , Helge Deller , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Phillip Potter , Carlis , Lee Jones , Heiner Kallweit References: <20220125202118.63362-1-andriy.shevchenko@linux.intel.com> <20220125202118.63362-2-andriy.shevchenko@linux.intel.com> <6e74d4cc-655a-e38e-0856-a59e4e6deb36@redhat.com> From: Javier Martinez Canillas In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Thomas, On 1/31/22 10:18, Thomas Zimmermann wrote: [snip] >> There are some hacks in the driver though. For example it exposes an XRGB8888 >> format even thought the OLED display is monochromatic and has 1 bit per pixel. >> >> The driver then goes and converts the XRGB8888 pixels first to grayscale and >> then to reverse mono. I took that idea from the repaper driver but that gives >> us the multiple copies that Geert was complaining about. > > This requires to update the console code for 1-bit BW output. The fbcon > side already supports this AFAIK. DRM's fbdev needs a few more branches > and something like a DRM_FORMAT_C1 fourcc. The XRGB8888 is really a > userspace requirement that is imposed by modern desktops. If DRM's > console has been updated, you could leave it out entirely. > > I could imagine that some simple userspace, such as Weston, comes with > support for palette formats and BW. Or there could be an entirely > separate program that puts graphics onto these displays. > Yes, I understand the rationale of why the repaper driver is doing that way but was just pointing out because Geert mentioned that is not efficient. Maybe in the meantime we can add a drm_fb_gray8_to_mono_reversed() helper to drivers/gpu/drm/drm_format_helper.c since there is more than one driver that does the same ? It's not a big issue for this device really since the I2C bus is slow anyways and the multiple copies are not a bottleneck AFAICT. I believe is worth to propose this driver as is and then try to optimize later. Another thing that's missing is a DRM_MODE_CONNECTOR_I2C, because I used for now a DRM_MODE_CONNECTOR_Unknown. Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat