From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DFEDC11F67 for ; Tue, 13 Jul 2021 16:59:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 73AA46128D for ; Tue, 13 Jul 2021 16:59:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229449AbhGMRCs (ORCPT ); Tue, 13 Jul 2021 13:02:48 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32061 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbhGMRCq (ORCPT ); Tue, 13 Jul 2021 13:02:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626195596; 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=XTHdlYNv/a9BuVPGjnPy+dQ/mQjufPe+yKG6ndLoXU8=; b=eX0vNDQetw4M4XvuzdRcpzZcTe4FtS5+xgrR+G5VXPhCmc0t0q/NkkDd+By1EFfppUZwyA j+0h4jpvRagFIp8303DxtzUj1YkYvw13WZsOOQGn4Jl4jrLAfIy0ZKR3eZwWWbnZr4HAVg wN0h7kqIAlJJ8TlEVQGTw3NU2rn9dCk= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-206-A_zWNZF6OmuQmdBkUF4UIQ-1; Tue, 13 Jul 2021 12:59:55 -0400 X-MC-Unique: A_zWNZF6OmuQmdBkUF4UIQ-1 Received: by mail-wr1-f70.google.com with SMTP id 5-20020a0560001565b029013fe432d176so2670451wrz.23 for ; Tue, 13 Jul 2021 09:59:54 -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=XTHdlYNv/a9BuVPGjnPy+dQ/mQjufPe+yKG6ndLoXU8=; b=O6ogds3h1j7OPZ9T0rL4TggTNFRVqevzSP+aTs/nNnnpBSpmbUAF2ONwBRoj/5Klvm 1X2VyB4afghCTLoVvRIl403XbIsYCxr9gHLJJxsOd7KaKlmuA9cenRx6JytHZdMGPAGf nw7Mci552g0vR20cY55lJNgc1/fX5Fe3drilFbQFspWl6VbRW5HdEj/8jn6gO7VLy0v9 9OnE3O8mWE9UuFEz8hiXgqAmoNLicrd+ZFJCOqqdpx5qOFplAqq7PWieLE6FmFUSQwAe Vx/ZsfAs0gycDAiJEz/OtAXlvDZR12QOUfCrk7O+xAGb7rNjFqQcKgmMei/Z1bVN7Yvh 97Kw== X-Gm-Message-State: AOAM531a7uqe2gE/99gpVYA4qpCx7DjOysXGGkWsozJEv8l+rBo6u7Kv OX1Df0KPxPSwSlXxI88Uv1Mcyi/ISs8qUdKhIRoraZcdurklFCtpxmWyqPrbsuojYdEPZZU/UL9 4+PByhEJaf9irmqPekFJI X-Received: by 2002:a05:600c:2105:: with SMTP id u5mr1986028wml.18.1626195593924; Tue, 13 Jul 2021 09:59:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxumMUPdgM1d9aW8ug3rd8W69QVL7ebCKDjq/l4syiEd2xfO/CLyenHYKdqhxzMxt12Uge4rQ== X-Received: by 2002:a05:600c:2105:: with SMTP id u5mr1986010wml.18.1626195593743; Tue, 13 Jul 2021 09:59:53 -0700 (PDT) Received: from [192.168.1.101] ([92.176.231.106]) by smtp.gmail.com with ESMTPSA id o28sm19766410wra.71.2021.07.13.09.59.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jul 2021 09:59:53 -0700 (PDT) Subject: Re: [PATCH v3 0/2] allow simple{fb,drm} drivers to be used on non-x86 EFI platforms To: linux-kernel@vger.kernel.org Cc: Thomas Zimmermann , Palmer Dabbelt , Russell King , linux-efi@vger.kernel.org, Thomas Gleixner , Hans de Goede , x86@kernel.org, Ingo Molnar , Will Deacon , Paul Walmsley , linux-riscv@lists.infradead.org, Borislav Petkov , Albert Ou , Peter Robinson , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, David Airlie , Greg Kroah-Hartman , Daniel Vetter , Ard Biesheuvel , Catalin Marinas , Atish Patra References: <20210625130947.1803678-1-javierm@redhat.com> From: Javier Martinez Canillas Message-ID: Date: Tue, 13 Jul 2021 18:59:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210625130947.1803678-1-javierm@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org On 6/25/21 3:09 PM, Javier Martinez Canillas wrote: > The simplefb and simpledrm drivers match against a "simple-framebuffer" > device, but for aarch64 this is only registered when using Device Trees > and there's a node with a "simple-framebuffer" compatible string. > > There is no code to register a "simple-framebuffer" platform device when > using EFI instead. In fact, the only platform device that's registered in > this case is an "efi-framebuffer", which means that the efifb driver is > the only driver supported to have an early console with EFI on aarch64. > > The x86 architecture platform has a Generic System Framebuffers (sysfb) > support, that register a system frambuffer platform device. It either > registers a "simple-framebuffer" for the simple{fb,drm} drivers or legacy > VGA/EFI FB devices for the vgafb/efifb drivers. > > The sysfb is generic enough to be reused by other architectures and can be > moved out of the arch/x86 directory to drivers/firmware, allowing the EFI > logic used by non-x86 architectures to be folded into sysfb as well. > Any more comments on this series? It would be nice for this to land so the simpledrm driver could be used on aarch64 EFI systems as well. The patches have already been acked by x86 and DRM folks. Best regards, -- Javier Martinez Canillas Linux Engineering From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B323C11F67 for ; Tue, 13 Jul 2021 17:00:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2A9ED61249 for ; Tue, 13 Jul 2021 17:00:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A9ED61249 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=j3boL8nmfykQwpQ7lrF1LMK7ahej4BZc7IT0ZWnCqPw=; b=pcUu+h3zB+k3AF3kX9cemkxYBm 2rx0bmcDXJ8k4FzLxGQ8UBP3OnXrl9U9FSHcG5+yNJX2Ow2ZATilEbFc9C60IttAeXSaOSfz40X/G hwfpjdZ0oQLb/YrCGp27S/FRErhEujPU5kPtCT/DFPCTldjV4P1qd1k+gQSjglUKgd3SWTzKEN0rb QKPO8pS61YWPaXQ0bP8xyikneDGH/atT6aMh35JqhO6ml26g/lYrxs23jRFPJ6WVpVcsxp7vVk5pq 2Malmv3xdpJ1gkBW0NZFLximD+QuWNT1Jwo/MNkc5aaFvsQ/QhSis+FIPsRsnjQY9mfGlTqRZtbm8 y1FOz4MA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3LlV-00Azo7-R8; Tue, 13 Jul 2021 17:00:13 +0000 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3LlI-00AziV-2Z for linux-riscv@lists.infradead.org; Tue, 13 Jul 2021 17:00:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626195596; 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=XTHdlYNv/a9BuVPGjnPy+dQ/mQjufPe+yKG6ndLoXU8=; b=eX0vNDQetw4M4XvuzdRcpzZcTe4FtS5+xgrR+G5VXPhCmc0t0q/NkkDd+By1EFfppUZwyA j+0h4jpvRagFIp8303DxtzUj1YkYvw13WZsOOQGn4Jl4jrLAfIy0ZKR3eZwWWbnZr4HAVg wN0h7kqIAlJJ8TlEVQGTw3NU2rn9dCk= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-553-KttEkAE9NE2q-1ciCFYYYA-1; Tue, 13 Jul 2021 12:59:55 -0400 X-MC-Unique: KttEkAE9NE2q-1ciCFYYYA-1 Received: by mail-wm1-f71.google.com with SMTP id 7-20020a05600c22c7b0290227b752f429so885960wmg.4 for ; Tue, 13 Jul 2021 09:59:55 -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=XTHdlYNv/a9BuVPGjnPy+dQ/mQjufPe+yKG6ndLoXU8=; b=RXmydYOx6bPZr5ucER/fPTOMwvBfp4Jhvw50RKWywnBLHaruweoWZiZviU1yvdJqYj 4MWW/bVmrBXqresC7cJRwgQMu6XCluz1xZZ5gbVsll7cj+fdk32/9WlBzGr9SH/RGwWK r2UbTuPXd+ACVZAAC3LrT4t73KEKAsu6joKwGkLW4EWfh+KOn3gr9kB8kg2xVLb18rQD iPaHmK3hlh4wJ8CQgwW+D+mnFcaibdF89WVHAX06jLY+N+7I/4Rs/Ar/hLECHlwOmY7W G9ZrwjrAi1hmv7RPRn78F0E3KkxvOz90tm9T1zQvyVnTfZSILjN0Hvd4N1hgzoC14piS +r7g== X-Gm-Message-State: AOAM533n1F9/++JRGOVl5lPEye3/NdZbr4VOvjvwHp3aFvra3xBLM+k7 SrU1aKARgtkfEjR9tZhQCnTIZ+ZN3bDIHliv0CMTK72EMU7npgXwBgH6z7KhrxkB01tiG+xMi4U JuXm5xHqv8ZErfff8JYQoJiasxikD X-Received: by 2002:a05:600c:2105:: with SMTP id u5mr1986045wml.18.1626195593965; Tue, 13 Jul 2021 09:59:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxumMUPdgM1d9aW8ug3rd8W69QVL7ebCKDjq/l4syiEd2xfO/CLyenHYKdqhxzMxt12Uge4rQ== X-Received: by 2002:a05:600c:2105:: with SMTP id u5mr1986010wml.18.1626195593743; Tue, 13 Jul 2021 09:59:53 -0700 (PDT) Received: from [192.168.1.101] ([92.176.231.106]) by smtp.gmail.com with ESMTPSA id o28sm19766410wra.71.2021.07.13.09.59.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jul 2021 09:59:53 -0700 (PDT) Subject: Re: [PATCH v3 0/2] allow simple{fb, drm} drivers to be used on non-x86 EFI platforms To: linux-kernel@vger.kernel.org Cc: Thomas Zimmermann , Palmer Dabbelt , Russell King , linux-efi@vger.kernel.org, Thomas Gleixner , Hans de Goede , x86@kernel.org, Ingo Molnar , Will Deacon , Paul Walmsley , linux-riscv@lists.infradead.org, Borislav Petkov , Albert Ou , Peter Robinson , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, David Airlie , Greg Kroah-Hartman , Daniel Vetter , Ard Biesheuvel , Catalin Marinas , Atish Patra References: <20210625130947.1803678-1-javierm@redhat.com> From: Javier Martinez Canillas Message-ID: Date: Tue, 13 Jul 2021 18:59:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210625130947.1803678-1-javierm@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=javierm@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210713_100000_255086_24D678FE X-CRM114-Status: GOOD ( 22.81 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On 6/25/21 3:09 PM, Javier Martinez Canillas wrote: > The simplefb and simpledrm drivers match against a "simple-framebuffer" > device, but for aarch64 this is only registered when using Device Trees > and there's a node with a "simple-framebuffer" compatible string. > > There is no code to register a "simple-framebuffer" platform device when > using EFI instead. In fact, the only platform device that's registered in > this case is an "efi-framebuffer", which means that the efifb driver is > the only driver supported to have an early console with EFI on aarch64. > > The x86 architecture platform has a Generic System Framebuffers (sysfb) > support, that register a system frambuffer platform device. It either > registers a "simple-framebuffer" for the simple{fb,drm} drivers or legacy > VGA/EFI FB devices for the vgafb/efifb drivers. > > The sysfb is generic enough to be reused by other architectures and can be > moved out of the arch/x86 directory to drivers/firmware, allowing the EFI > logic used by non-x86 architectures to be folded into sysfb as well. > Any more comments on this series? It would be nice for this to land so the simpledrm driver could be used on aarch64 EFI systems as well. The patches have already been acked by x86 and DRM folks. Best regards, -- Javier Martinez Canillas Linux Engineering _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57B59C07E95 for ; Tue, 13 Jul 2021 17:01:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1C5CD61249 for ; Tue, 13 Jul 2021 17:01:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C5CD61249 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=P6Q1uMK5klyCKzOhKT1Tx4E8mkttuPN58A3cRUP+a9s=; b=aSRU5Kq6yE+Zv37GKazEU040mP 7oszfHskLnLxqkpESv+lx98PSISmw8uTIv7GcXXzMH0/mst3BCQ+2md9VaW/pZJe95YS5Qa1uTrMw tFNgNX3nutFPMRU61x3kknVTRGpgngyji6VGJStIydN9kQ83IfXJTfeEgirKhKh7849fHtROfClhI LljPvKHKBSSutBodWBo1OnsdSyE3XhdDie3+B1uB+wxgIIy9bKEEOIXPirfRHfO5KkXEAFf7m7wZU foToTaiDrT3YVnVRTSK6ZgfdmPZvQw9NaZf2Ddothw9Q7M75BxPMfl0XR7K7J0odyhW8UvLuaGWLr BYKEEHzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3LlM-00AzlH-34; Tue, 13 Jul 2021 17:00:04 +0000 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3LlH-00AziW-Ek for linux-arm-kernel@lists.infradead.org; Tue, 13 Jul 2021 17:00:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626195596; 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=XTHdlYNv/a9BuVPGjnPy+dQ/mQjufPe+yKG6ndLoXU8=; b=eX0vNDQetw4M4XvuzdRcpzZcTe4FtS5+xgrR+G5VXPhCmc0t0q/NkkDd+By1EFfppUZwyA j+0h4jpvRagFIp8303DxtzUj1YkYvw13WZsOOQGn4Jl4jrLAfIy0ZKR3eZwWWbnZr4HAVg wN0h7kqIAlJJ8TlEVQGTw3NU2rn9dCk= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-205-dkl9KG_IO42ZckKPMHPJJA-1; Tue, 13 Jul 2021 12:59:55 -0400 X-MC-Unique: dkl9KG_IO42ZckKPMHPJJA-1 Received: by mail-wr1-f70.google.com with SMTP id j6-20020adff5460000b029013c7749ad05so6708431wrp.8 for ; Tue, 13 Jul 2021 09:59:54 -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=XTHdlYNv/a9BuVPGjnPy+dQ/mQjufPe+yKG6ndLoXU8=; b=AcpHwsmGxPTPRfVqIyzl4Rk4ed60qh3yyWeVZq9sAhyeql6BIebXNmfwmFc4NC8RCz BgjZZXMV4agmvjHFokG07G+uxWOGRdXl5xiT0iUQ1ZMcgne6PpZEwBauYguVEsu6sXIi DUZ1EeO+oDw9T7+Wv4uJNVXHuIyp9aN521y2SwjzCgstHJQAn/aQ2mbwwHMbJgn+j5k5 04emThW99LstI8qeZCBq03ODVbyTZkbDabvH8jbWv5W42Itsio0BVWAa21NKQ5FOpr+7 bAFVF7pJOfuuXhka3Zv+GpoKFeClua6lHCmAhrX62h2e12map0+qbvys3Sg4zCGexKAk PxTg== X-Gm-Message-State: AOAM530UBffdYYO+aNF/XVY9Be1pPIN4/mO7Sv4D5RnKacuw3d9qFo9b r6IQmw3QNWv1DDmS7OmIL//HRq2NVOiiQmzz/QyB5RvcLkzwpjruPTnnwhLW8qLRlwsEFFswMLY yiyu0oCEWTA7EP+dDeqZuqlonnGKZvlrUZ1w= X-Received: by 2002:a05:600c:2105:: with SMTP id u5mr1986027wml.18.1626195593924; Tue, 13 Jul 2021 09:59:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxumMUPdgM1d9aW8ug3rd8W69QVL7ebCKDjq/l4syiEd2xfO/CLyenHYKdqhxzMxt12Uge4rQ== X-Received: by 2002:a05:600c:2105:: with SMTP id u5mr1986010wml.18.1626195593743; Tue, 13 Jul 2021 09:59:53 -0700 (PDT) Received: from [192.168.1.101] ([92.176.231.106]) by smtp.gmail.com with ESMTPSA id o28sm19766410wra.71.2021.07.13.09.59.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jul 2021 09:59:53 -0700 (PDT) Subject: Re: [PATCH v3 0/2] allow simple{fb, drm} drivers to be used on non-x86 EFI platforms To: linux-kernel@vger.kernel.org Cc: Thomas Zimmermann , Palmer Dabbelt , Russell King , linux-efi@vger.kernel.org, Thomas Gleixner , Hans de Goede , x86@kernel.org, Ingo Molnar , Will Deacon , Paul Walmsley , linux-riscv@lists.infradead.org, Borislav Petkov , Albert Ou , Peter Robinson , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, David Airlie , Greg Kroah-Hartman , Daniel Vetter , Ard Biesheuvel , Catalin Marinas , Atish Patra References: <20210625130947.1803678-1-javierm@redhat.com> From: Javier Martinez Canillas Message-ID: Date: Tue, 13 Jul 2021 18:59:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210625130947.1803678-1-javierm@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=javierm@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210713_095959_611907_4719F43B X-CRM114-Status: GOOD ( 24.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 6/25/21 3:09 PM, Javier Martinez Canillas wrote: > The simplefb and simpledrm drivers match against a "simple-framebuffer" > device, but for aarch64 this is only registered when using Device Trees > and there's a node with a "simple-framebuffer" compatible string. > > There is no code to register a "simple-framebuffer" platform device when > using EFI instead. In fact, the only platform device that's registered in > this case is an "efi-framebuffer", which means that the efifb driver is > the only driver supported to have an early console with EFI on aarch64. > > The x86 architecture platform has a Generic System Framebuffers (sysfb) > support, that register a system frambuffer platform device. It either > registers a "simple-framebuffer" for the simple{fb,drm} drivers or legacy > VGA/EFI FB devices for the vgafb/efifb drivers. > > The sysfb is generic enough to be reused by other architectures and can be > moved out of the arch/x86 directory to drivers/firmware, allowing the EFI > logic used by non-x86 architectures to be folded into sysfb as well. > Any more comments on this series? It would be nice for this to land so the simpledrm driver could be used on aarch64 EFI systems as well. The patches have already been acked by x86 and DRM folks. Best regards, -- Javier Martinez Canillas Linux Engineering _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E724C07E95 for ; Tue, 13 Jul 2021 16:59:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4D0C7611AC for ; Tue, 13 Jul 2021 16:59:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4D0C7611AC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A6A936E0FD; Tue, 13 Jul 2021 16:59:57 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2DCAA6E0FD for ; Tue, 13 Jul 2021 16:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626195596; 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=XTHdlYNv/a9BuVPGjnPy+dQ/mQjufPe+yKG6ndLoXU8=; b=eX0vNDQetw4M4XvuzdRcpzZcTe4FtS5+xgrR+G5VXPhCmc0t0q/NkkDd+By1EFfppUZwyA j+0h4jpvRagFIp8303DxtzUj1YkYvw13WZsOOQGn4Jl4jrLAfIy0ZKR3eZwWWbnZr4HAVg wN0h7kqIAlJJ8TlEVQGTw3NU2rn9dCk= 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-173-Wmvbdje2NfOVqe3LAyq5Ng-1; Tue, 13 Jul 2021 12:59:55 -0400 X-MC-Unique: Wmvbdje2NfOVqe3LAyq5Ng-1 Received: by mail-wr1-f69.google.com with SMTP id z6-20020a5d4c860000b029013a10564614so8759255wrs.15 for ; Tue, 13 Jul 2021 09:59:54 -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=XTHdlYNv/a9BuVPGjnPy+dQ/mQjufPe+yKG6ndLoXU8=; b=tpqsKE7F8B1i5K5OiYEIcTD7K3eztlzjPSzACm965Vo+BFMzgqM0r7t0OXf1+nXfTn 9ThS7XCEPb3PKj8Ypf9YsBrV2M2ZeEdNLs3zJvd0kWzrvk6DMI5K1tvrSlGcky1L/Cov Z2ollq52VLfX8EfLcU3t3JFo/tpbgv1ghSICF2TrIqAUwZ0j4Mmie9fQBUAeKWnaT8PK 9u2/NdVivXt8UwGYVvSHOFf/wJg1WbXNXLNCmLAgAYxVu/kDyfiAL4aO6xzYERbo+HqK J0PV0H+E/ZTiSBNy1MHNCE6iv9NhFy452pyySWLUDRZxTaFW7qzWTcRaGcNBkFB4S+3c BjZQ== X-Gm-Message-State: AOAM532iWCqCzWqZJconsvmElC6bWUzuietsYGsk7qx+lvDbSPsiT7nu hnGA5JsYipSWct4dart/MdC9mC6x01Xgl6sR5LpjgbWaOQFj2N6YjIHIa1unMnTFgUTQ9iYplxi vKOeDNej/VByFWoN92Axzet7AtTQz X-Received: by 2002:a05:600c:2105:: with SMTP id u5mr1986026wml.18.1626195593924; Tue, 13 Jul 2021 09:59:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxumMUPdgM1d9aW8ug3rd8W69QVL7ebCKDjq/l4syiEd2xfO/CLyenHYKdqhxzMxt12Uge4rQ== X-Received: by 2002:a05:600c:2105:: with SMTP id u5mr1986010wml.18.1626195593743; Tue, 13 Jul 2021 09:59:53 -0700 (PDT) Received: from [192.168.1.101] ([92.176.231.106]) by smtp.gmail.com with ESMTPSA id o28sm19766410wra.71.2021.07.13.09.59.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jul 2021 09:59:53 -0700 (PDT) Subject: Re: [PATCH v3 0/2] allow simple{fb, drm} drivers to be used on non-x86 EFI platforms To: linux-kernel@vger.kernel.org References: <20210625130947.1803678-1-javierm@redhat.com> From: Javier Martinez Canillas Message-ID: Date: Tue, 13 Jul 2021 18:59:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210625130947.1803678-1-javierm@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=javierm@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-efi@vger.kernel.org, David Airlie , Catalin Marinas , dri-devel@lists.freedesktop.org, Atish Patra , linux-riscv@lists.infradead.org, Will Deacon , Ard Biesheuvel , x86@kernel.org, Russell King , Ingo Molnar , Peter Robinson , Borislav Petkov , Albert Ou , Thomas Zimmermann , Hans de Goede , Paul Walmsley , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman , Palmer Dabbelt Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 6/25/21 3:09 PM, Javier Martinez Canillas wrote: > The simplefb and simpledrm drivers match against a "simple-framebuffer" > device, but for aarch64 this is only registered when using Device Trees > and there's a node with a "simple-framebuffer" compatible string. > > There is no code to register a "simple-framebuffer" platform device when > using EFI instead. In fact, the only platform device that's registered in > this case is an "efi-framebuffer", which means that the efifb driver is > the only driver supported to have an early console with EFI on aarch64. > > The x86 architecture platform has a Generic System Framebuffers (sysfb) > support, that register a system frambuffer platform device. It either > registers a "simple-framebuffer" for the simple{fb,drm} drivers or legacy > VGA/EFI FB devices for the vgafb/efifb drivers. > > The sysfb is generic enough to be reused by other architectures and can be > moved out of the arch/x86 directory to drivers/firmware, allowing the EFI > logic used by non-x86 architectures to be folded into sysfb as well. > Any more comments on this series? It would be nice for this to land so the simpledrm driver could be used on aarch64 EFI systems as well. The patches have already been acked by x86 and DRM folks. Best regards, -- Javier Martinez Canillas Linux Engineering