Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3310584pxj; Mon, 24 May 2021 03:53:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymk9SILcOvm9eFsUxIf80DSatXZAD+Rp4Y+3NDl4WZKTAPX568CGfvC3f8wciW/foSmgVV X-Received: by 2002:a92:520a:: with SMTP id g10mr15496892ilb.108.1621853627606; Mon, 24 May 2021 03:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621853627; cv=none; d=google.com; s=arc-20160816; b=I3A641DXl0u9FG1apr14Fx3Xrlv4QKOR3EtEIM6W6CBZVt55HG4hQH181SRyl7IoFV qFOlJV/MHWFKCzEI84qMSozIqtczz9zWVoELh4pUTlQtJxFjGdL65HVnXSxXuI4WQqwR /QRFRn79DR5wGNio5Uwkv3OeBOdJgj1fYE0xzAoG/CnTnmYSTma2iqxYn6EGYR6qeFaK Kn46rrXUdY2FPEDc+rYTyNB++D+A7GFUvcKXx7TmHckM3YpQ/hFHau8x+u+RlE3RO69o /zCkjqNST/NnW2wPZyDpNW7hSGYQ4pta5Zpy7dmoilpTH/1IUjrcGLZwgiLCmk5xRtWd 74LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=HFtn2RHOEYss0CsLYkuce8tbA8oq7IWTJChBbEjpcfU=; b=Bc8iQB2x/4iVqWORXdcCNCPrRMC6qAFdgDMIwLyyQgGPRBZCJNmq+s+G6DUf847FE3 RDsiPb/kkW5AQHAj1+hqkhRyDHfefR6hT6XcfyP01tQGWkVbFikuMnctw/2/hZdQ/i6u UisQYpzGT/WTKB/b7/E61N6WuTOUljStPek81AUlAeMf0ZKfLm/Z4slF/cxsB9qpnQyw zzNZ/LCrVpZqCxoCilo0xrPFFLqSAjq05ahQ6aAjQVRMucHn9VYG/D+mQ2qxv9Sf+ZQ+ I+oG/V4CCL/AGXUkok5Srj2zve7wIpjEhBdjO8Rt+hwu2M1p0+QNxK7mavzURaWmdxf/ 7TsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FmxiKnjo; 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 m17si13323915ilg.130.2021.05.24.03.53.34; Mon, 24 May 2021 03:53:47 -0700 (PDT) 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=FmxiKnjo; 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 S232584AbhEXKyZ (ORCPT + 99 others); Mon, 24 May 2021 06:54:25 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:22745 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232494AbhEXKyX (ORCPT ); Mon, 24 May 2021 06:54:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621853575; 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=HFtn2RHOEYss0CsLYkuce8tbA8oq7IWTJChBbEjpcfU=; b=FmxiKnjoxDtH4t1ypWkogl7Q/osBEvsedoq5oRAHfUTQ4Ru5ztR+S5vvO8kTrOBhcb36Ox wncHFzFaiol/1O2RLIJCmuUowLS5EV0JZkfzRmh9eyJv/4A8Otg2QK02nCQ0c1uPAQgp7O SPOkgh4taEzzgG25DevunLyslweYr5U= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-441-kpUoUjWFOA-cjAB5q9-DpA-1; Mon, 24 May 2021 06:52:53 -0400 X-MC-Unique: kpUoUjWFOA-cjAB5q9-DpA-1 Received: by mail-wr1-f69.google.com with SMTP id x10-20020adfc18a0000b029010d83c83f2aso12908615wre.8 for ; Mon, 24 May 2021 03:52:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HFtn2RHOEYss0CsLYkuce8tbA8oq7IWTJChBbEjpcfU=; b=WqojLyL/eLNyN60DBAocRtau+hNoOM/iinaPXZCCkIVe1OQyc3Ol5RLlvQvE5D1x9x oZ0T2dk6Y6p0gVlw7J2+a4XCKUqF1Rx3/O9mBSQkJiFfRVH32sZsa1CSIA4V4Nr7ZDRv ESGxjbAFwHo5cwdCsx0h6zDL3nlJ88xIxi9qEult+Ja05fvIujlfBU6Atgb5u1g/pG+7 OlXVtQouafClpZMcy7YBoTA/+SEZHyCz7ocVTg37H9SWKFRpE1aKMoRCksTr09/MNh9n v1vcTYsPUgTJdAprdJwcR3Y5MCESDhb+XaN8/KuPub4vy2mQX8vApefMBZ2cUOyCNFQv 5J9A== X-Gm-Message-State: AOAM530kTeVmcvki51568k6hpq2i5hqxc9ezkHeByVLouxSZKeJSVmY8 9YYosyVuR7s5jAHgP9Vq3FqFIXi0G4xTxO6cd6WQ1p2k3WtMUzsiFhricLV/kH5+RYy7sQxP+Ra 0XnCe7cQ/J1dwjGUcNMFtv4BO X-Received: by 2002:adf:cd0b:: with SMTP id w11mr20622278wrm.178.1621853572523; Mon, 24 May 2021 03:52:52 -0700 (PDT) X-Received: by 2002:adf:cd0b:: with SMTP id w11mr20622252wrm.178.1621853572312; Mon, 24 May 2021 03:52:52 -0700 (PDT) Received: from [192.168.1.101] ([92.176.231.106]) by smtp.gmail.com with ESMTPSA id r11sm11966441wrp.46.2021.05.24.03.52.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 03:52:51 -0700 (PDT) Subject: Re: [PATCH 0/2] allow the sysfb support to be used in non-x86 arches To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Daniel Vetter , Peter Robinson , Thomas Zimmermann , David Airlie , Hans de Goede , Albert Ou , Borislav Petkov , Catalin Marinas , "H. Peter Anvin" , Ingo Molnar , Palmer Dabbelt , Paul Walmsley , Russell King , Thomas Gleixner , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, linux-riscv@lists.infradead.org, x86@kernel.org References: <20210521192907.3040644-1-javierm@redhat.com> From: Javier Martinez Canillas Message-ID: <0613bc6b-31b4-93f6-b111-4692778f76c0@redhat.com> Date: Mon, 24 May 2021 12:52:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Ard, On 5/24/21 12:24 PM, Ard Biesheuvel wrote: [snip] >> Since this touches both arch/{x86,arm,arm64,riscv} and drivers/firmware, I >> don't know how it should be merged. But I didn't find a way to split these. >> > > We could merge this via the EFI tree without too much risk of > conflicts, I think. > Great, thanks. > However, I'd like to see a better explanation of why this is an improvement. > The diffstat does not show a huge net win, and it does not enable > anything we didn't already have before, right? > > I mentioned a little in the cover letter but you are correct that wasn't that clear. My motivation was to use the simpledrm driver instead of efifb for the early console, so I could boot without using fbdev at all. The register_gop_device() in drivers/firmware/efi/efi-init.c only register an "efi-frambuffer" platform device, which means that it will only allow to use the efifb driver for the early framebuffer on EFI systems. The "simple-framebuffer" platform device is only registered by OF if there's a DT node with this compatible string, but it won't be registered for EFI. So the simplefb or newly added simpledrm driver won't be matched and probed with the current EFI support in aarch64 or riscv. In contrast, the x86 code does register a "simple-framebuffer" device that uses the GOP framebuffer. One option is to add the same logic in register_gop_device(), but that would require even more code duplication. Another option would be to make the simple drivers to match against "efi-framebuffer", but that would be an ugly solution. But even without taking the lack of "simple-framebuffer" into account, I wonder what would be the benefit of keeping two code paths that do basically the same. Best regards, -- Javier Martinez Canillas Software Engineer New Platform Technologies Enablement team RHEL Engineering