Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1230788pxb; Tue, 1 Feb 2022 23:17:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsgvqOiV15s/OsjZgX49QST+bQlkd8cIQSGopTPx41f/47chXUrYNf5T9FcL3JwTvmCeKC X-Received: by 2002:a17:903:110c:: with SMTP id n12mr29260905plh.163.1643786259163; Tue, 01 Feb 2022 23:17:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643786259; cv=none; d=google.com; s=arc-20160816; b=t/6riy0Y1zefQmVG1Ct1w1syXtlC9jy6iD4WTI87BTaNO5t5mh7/vI1NT6RyoKyy5n ZWm+/RAo4RWMjQpA3KZ6DWIxdBA6AEZcf7eCLFs/umTEGqnTOTf/Pf6q+OcgMyiCW5d5 +2yXRJqb54Ttzsnd+0RIxQ4udumuOXmOQ608l8jiKhwQa+PXrWZz6fGty9Z41L3ccfmI NcLmcXd8m/2X2vbrAOMcuI9WY1mAd+SQ2Sqac/tDiCK5QSidieiwO8Druyb+6QtUCLgM CR+bsrDygzr5CeJozYlBUZOVK9ggNJj+AESnPkTQVrFHztbnx4ATNA3C4fnLf7toJv23 /kew== 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=GaNMBS8erWAUdjZRyVjICW/2VNsiklNXAamHHGSoKQU=; b=DsEyMF2FSYwCl/HNLpO7PwuynnlzVXzz77W1cI3PLi0mPWYdAhLommGfG0cYd1p92V IbxDhfjcu1eGwCH+wA1E6r5w0gipfQKnq2vNXcgj7rPu4hLIAnfrssa5qFZAkORNIMOX P8aAuG7TF542qlfI8yi3LeovzVpJIAst0IQqxdVOQ8nRYTiZGemlVnWRYoNFOYDwcDKn sO0Ql5xA63dkE95payD3ITUH8UL0tEAjF/kcNNVJgFxe6imvFRNxBHQp3ObXpdAlSAtQ e0mZ1pJf1B3Ot9gj8DeBQ4hVm0fVJJqx+n68zlF7D3b8Um3w2yAWG8+FikYnRxpRz9QD H2cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=HABYAYhU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 203si18108667pgb.477.2022.02.01.23.17.27; Tue, 01 Feb 2022 23:17:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=HABYAYhU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235570AbiBAIiv (ORCPT + 99 others); Tue, 1 Feb 2022 03:38:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235563AbiBAIiu (ORCPT ); Tue, 1 Feb 2022 03:38:50 -0500 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B0D8C061714 for ; Tue, 1 Feb 2022 00:38:50 -0800 (PST) Received: by mail-oi1-x229.google.com with SMTP id u13so15688486oie.5 for ; Tue, 01 Feb 2022 00:38: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=GaNMBS8erWAUdjZRyVjICW/2VNsiklNXAamHHGSoKQU=; b=HABYAYhUrYZjmmyqCihiIlAUb0ufUo8qHSInxKtuQBJMtUSoTtIMq5LhxK09AevQU3 o85MeHKnBAV19IFBL44gSC/conhVnm5Za9cn2P0v0T3KcfcX+maC+A+WnLIOBaSwJzL8 mZijpnqkky9MAhwFlW2m8M2UauTJQ+cHbAgpE= 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=GaNMBS8erWAUdjZRyVjICW/2VNsiklNXAamHHGSoKQU=; b=MlgsrpekgvR591yIJWr4LVnMgYlKCnDvbKPIwBP8CKEuFoCNsgUZsOyK7wgGKt8Mel l9MxOB5gRiY6dtv1bNkY5XasiHP4w3+5uWsI6hO9dxR4k05z49y/Y7ThdPZvFY4GBUsd ieS5KbwuyUAHQxQMyNKlDtQwwwCpodcruqE/UB6RgRYYG36h85joQFNCkoi8Ug0XreB7 lB05a0P0YdEJkJ7FRXYOqM2hmbzGxBXsI9AWbr2dZzU+/cq1K2T3UBOc4cX+mVEtZvCr zhfSJ2fpJ1JYXxVkPw2Eze8aK1qPDylcNHPFIt8Qe6KuhhlibW2fSr15GpSjIkPDxoZE bYkg== X-Gm-Message-State: AOAM531TzQIMFVsqIe9iBDuxuf8YMBBlHCnYX21Gu8Aw7PfbhhD3fQLJ m82Qz+xUQVPIFJWMM13Vh8MTa7jLRA0a+4e/QoO7YA== X-Received: by 2002:a54:4803:: with SMTP id j3mr521011oij.279.1643704729863; Tue, 01 Feb 2022 00:38:49 -0800 (PST) MIME-Version: 1.0 References: <20220131201225.2324984-1-javierm@redhat.com> In-Reply-To: From: Daniel Vetter Date: Tue, 1 Feb 2022 09:38:38 +0100 Message-ID: Subject: Re: [PATCH 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays To: Simon Ser Cc: Geert Uytterhoeven , Javier Martinez Canillas , Linux Kernel Mailing List , Linux PWM List , Linux Fbdev development list , Thomas Zimmermann , David Airlie , Mark Brown , DRI Development , Liam Girdwood , =?UTF-8?Q?Noralf_Tr=C3=B8nnes?= , Maxime Ripard , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Thierry Reding , Andy Shevchenko , Lee Jones Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 1, 2022 at 9:34 AM Simon Ser wrote: > > On Tuesday, February 1st, 2022 at 09:26, Geert Uytterhoeven wrote: > > > What's the story with the Rn formats? > > > > The comments say "n bpp Red", while this is a monochrome (even > > inverted) display? > > I don't think the color matters that much. "Red" was picked just because it was > an arbitrary color, to make the difference with e.g. C8. Or am I mistaken? The red comes from gl, where with shaders it really doesn't matter what meaning you attach to channels, but really just how many you have. So 2-channel formats are called RxGx, 3-channel RxGxBx, 4-channel RxGxBxAx and single-channel Rx. And we use drm_fourcc for interop in general, hence why these exist. We should probably make a comment that this really isn't a red channel when used for display it's a greyscale/intensity format. Aside from that documentation gap I think reusing Rx formats for greyscale/intensity for display makes perfect sense. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch