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=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 33346C2B9F4 for ; Thu, 17 Jun 2021 21:24:57 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E2BE8613CB for ; Thu, 17 Jun 2021 21:24:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E2BE8613CB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=dowhile0.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6EC3D82971; Thu, 17 Jun 2021 23:24:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=dowhile0.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=dowhile0-org.20150623.gappssmtp.com header.i=@dowhile0-org.20150623.gappssmtp.com header.b="1yOsVUDO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6C44582A17; Thu, 17 Jun 2021 23:21:59 +0200 (CEST) Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7D29080796 for ; Thu, 17 Jun 2021 23:21:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=dowhile0.org Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=javier@dowhile0.org Received: by mail-io1-xd32.google.com with SMTP id q3so4728323iop.11 for ; Thu, 17 Jun 2021 14:21:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dowhile0-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aywG/BmC5Uhqmj2x46iOau6wabGDm0f4EjHItEgyLC0=; b=1yOsVUDOcgLYX/NRP8a0sdql/y5rCMhP8BAeJ9evXnvD2LMEZ1XbopR3kKVGs1EFd4 YVNsHt8Ci260rnu7uyRZ3WXjbHQ9R9cKJIRZMQ9J1+isArIEUKtwPqvmLR/3ep2n7WqN 9rhHZBwBiP6wegM+7OFYBplmJ3jz3ev31MzYaJCa1fTdxYidr4OMkJMoaP9Mqy0HqMga J6KXSOKTkiLok3L9nPEk1lwLMPfcKKd6zOZyA6+oZNCFCHCnR06jcbWiXIz7nQvFBvmL dtT1mtotyDuI0PvSziAKMouzu9UlWv4LmwMedu96ONE/lp05+oFOjNC8C9zsQeAInNnN sesA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aywG/BmC5Uhqmj2x46iOau6wabGDm0f4EjHItEgyLC0=; b=odB/LQQ7vhdX2IB4fMXEtkJoBB7cd8CQ6HCJZQycuKu7HnolQmHKZDhjBQbrvqwEpd 5Dq1jjJjwdrcj7+3kXeagW/M5Rl+Bd3S4sXCLfk2/UQw68s8aEJUMs1KB/O20FYiAHIH 79+MfI4eRVvMYAHf+70m/gz+czGaKovU5Y9IKzbSBttmbRY568Q2CU60pI+tGsaK71dj oofuYBv5jx/Ak9hTOyXdyDhFUo3W3hKgK24cZbLdSD038SKQAVfjStuJhVBn4WNvQIkj pIPuLPq0HPNacQlOujYwlJpIjPOUAR3GbLvpPDq5k7YQj6gkw8RE3/z1f+4OwyNkDVog tuqA== X-Gm-Message-State: AOAM531/iFXep7UOEaNslIOQKZ9q1MnNyuUzS0vpFkIa0cMhE/p1gqzo y5fo73HgSTUgETIVPowIUfuefMOuCt5xpko0Eh/aSw== X-Google-Smtp-Source: ABdhPJwfEtFwQkFudEf0bwANMYYpycLK5K/lNHJC3IehUyVbe+IenO2Gk41cUi+X260kZp/mdaecoedxg000eR2dfzk= X-Received: by 2002:a05:6638:33a2:: with SMTP id h34mr240882jav.60.1623964915072; Thu, 17 Jun 2021 14:21:55 -0700 (PDT) MIME-Version: 1.0 References: <20210615211028.287546-1-icenowy@aosc.io> <65D3D4A3-8E27-4CCE-BDE9-01D5FE7F32EC@gmx.de> <0402a529e381bd8dff81db7afd6bf7b5e4dfc95d.camel@aosc.io> In-Reply-To: <0402a529e381bd8dff81db7afd6bf7b5e4dfc95d.camel@aosc.io> From: Javier Martinez Canillas Date: Thu, 17 Jun 2021 23:21:44 +0200 Message-ID: Subject: Re: [PATCH] efi_loader: allow to disable GOP support To: Icenowy Zheng Cc: Heinrich Schuchardt , Alexander Graf , u-boot@lists.denx.de Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Thu, 17 Jun 2021 23:24:51 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Wed, Jun 16, 2021 at 2:20 PM Icenowy Zheng wrote: > > I'm trying RK3399 with Linux. EFIFB never works as intended (maybe it's > because IOMMU is reconfigured), and rockchipdrmfb will be fb1 (leave > non-working EFIFB as fb0), makes fbcon unusable. > > The second problem has a proposed fix, but the first problem is > mystery. > I think that figured out the mystery for your second problem too (if I understood what you meant correctly). The problem is that u-boot initializes the display controller and provides the setup framebuffer memory to the kernel as a GOP. But then the kernel re-initializes the HW again and mess with the resources needed by the display controller that were correctly setup by u-boot. Part of that is the IOMMU as you said, but also the clocks and power domains that Linux will disable because are "unused". So to have a GOP framebuffer that will be available until the rockchip DRM fb emulation takes over (with the patch mentioned by Peter), you will need the following kernel command line options: initcall_blacklist=rk_iommu_init clk_ignore_unused pd_ignore_unused Best regards, Javier