Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3323390rdb; Thu, 16 Nov 2023 06:41:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFn8vir2Xl89Dx/9u99xK8jnsKR4JWLAzgFRm4K35BSX5Aa6YNcgBHpkW9A0o0AEtr8pLQ+ X-Received: by 2002:a9d:6c10:0:b0:6b9:90db:f6ed with SMTP id f16-20020a9d6c10000000b006b990dbf6edmr8602159otq.11.1700145660437; Thu, 16 Nov 2023 06:41:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700145660; cv=none; d=google.com; s=arc-20160816; b=uXSBcMm88TaP0Q86PPMEboNPHbw55e2gAyvItFry5rcExChgpzklrE0QSMXkg5tRQI V+uh/sd/ED7+jOH3NSL060bbJZMTQnykFxdpEQDYqYxOJvWXHkGuRoV5aOXtitHh9Gi+ k0A71GntI+IvJKdWdTgaGpQaitH8i2MsgeI6pCJ+lLDtYbptalzp6SQE03SkA+nSqpPN hV+9zZZ7v9dCs7PBmbTEBj7u7XSvjCKzbKqFQlWOohknQGEo7bLqhZ5cAjor4NV88fSN 44ZQUo3orgmsGbxbhji3wc68xJoV0b8LX0KafdpoQipTU8B9ghM9CfmKjOKGLkpBMofp eZ/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=k7D0AcpsS9Uv2SNG5VR/PuBu6Vv17rtl3JFWSaBIyyw=; fh=CObhtBwI81/C9EuyU2Z/WhJDCQiDTA/pafIajRZdx5Q=; b=TZdLWWQVbFO1Pz+B9rdhxrIMwNYTv/CACVQHXDAaQxMICn4+yTat5D3siMF5/hy1/U XGDt8bCctUQ7alyhhpHv98TCfcyxibuJPbWdZV9pOAPWZUtAHMn9B5r8Tb6XNSPWncbI 7PqqR8RePT9Z2U5eF6RFNLwAg08rZ7JTCq/tRgcwOkRTk84FimN/jD+maIxhu0vYIlQN 4ZZSimJ5kRCOl0t3bD8C9e5qJXCNVRHP199UuSga6WILwcqD1U3q4NG5CbtKp6LftoVO S6e9QHcxWUcL2HHwgSGvES1NHlWWotB0DSgQwHa3p5uv36CNaUyi3sKJxxanC47GmEIQ xo3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YFVzOAaP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bm25-20020a656e99000000b00578aedd8e8bsi12675549pgb.716.2023.11.16.06.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:41:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YFVzOAaP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0BFB1808EF64; Thu, 16 Nov 2023 06:40:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234605AbjKPOk0 (ORCPT + 99 others); Thu, 16 Nov 2023 09:40:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbjKPOkZ (ORCPT ); Thu, 16 Nov 2023 09:40:25 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D18F181 for ; Thu, 16 Nov 2023 06:40:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700145621; 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=k7D0AcpsS9Uv2SNG5VR/PuBu6Vv17rtl3JFWSaBIyyw=; b=YFVzOAaPDnH1XuCOXxyTLFhWrgNdP1J14YQNjYSuOrTMKnxRhWlXU+pbSsgzt+1qJy2IU3 jL9NncfBxfHbhTJyW/VoQkYHNT9ymeAoPwN6n468L24bO+szMb+KszYPZUIoP+zP1jdDhL 1V9KY9HNrDy7dDQVRTmdMkvK9Bzavwk= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-412-wmI4VXE4N-SSWldWG2fNNA-1; Thu, 16 Nov 2023 09:40:18 -0500 X-MC-Unique: wmI4VXE4N-SSWldWG2fNNA-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-40839252e81so4983025e9.3 for ; Thu, 16 Nov 2023 06:40:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700145618; x=1700750418; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k7D0AcpsS9Uv2SNG5VR/PuBu6Vv17rtl3JFWSaBIyyw=; b=vY428agDK7+Y7C+717pK+D6zN53BwF7BIQ5r+DsBSBzn3XDoF51hotaLvtZubu1nRO XZ2cKmGv9nvz1GeExhE1jSBDO5qK/YeW//9sfcJD3hU7SE3i7O/H5XQuDQCyZ74urtoZ hVHcmfjBRoRkRiE1spXTz+1YQ5mytvocVKtkKJy4bLJVjNUQR58JWlGrDa4hWy9nVYzL rPxT6T/oVRd7tLnoHF88rrSp4a/pWauSx5GkhBpwfd5/HwL0xzKTQz9cD0WOPq0SCtR2 AvA/Z8nY4Bw5GYpOCDTg7DSkbmfnU1GzjCNQOXMR24j7L+X23WQ50z0GX5TOjHi5hPNP 79qQ== X-Gm-Message-State: AOJu0Yz0E/8tGTY4PJmHJl3y/g1jS5AKImayI11mSDcC+vZpXrXXc9Ar 17Lz+nDi/Z71ipEY7VBSt+2qsUvUS2EajIV3rNi28yHm+zD/MHYlcfV/L2tUkOHQYCXSGynOIck weuCLChxpZ5926nnhepvG9SAL X-Received: by 2002:a05:600c:45cb:b0:407:4944:76d1 with SMTP id s11-20020a05600c45cb00b00407494476d1mr14152435wmo.17.1700145617769; Thu, 16 Nov 2023 06:40:17 -0800 (PST) X-Received: by 2002:a05:600c:45cb:b0:407:4944:76d1 with SMTP id s11-20020a05600c45cb00b00407494476d1mr14152411wmo.17.1700145617390; Thu, 16 Nov 2023 06:40:17 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id n7-20020a05600c4f8700b0040588d85b3asm3908881wmq.15.2023.11.16.06.40.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:40:17 -0800 (PST) From: Javier Martinez Canillas To: Rob Herring Cc: linux-kernel@vger.kernel.org, Thomas Zimmermann , Ard Biesheuvel , Sima Vetter , dri-devel@lists.freedesktop.org, Andrew Worsley , Hector Martin , Sergio Lopez , Frank Rowand , devicetree@vger.kernel.org Subject: Re: [RFC PATCH] of/platform: Disable sysfb if a simple-framebuffer node is found In-Reply-To: References: <20231113085305.1823455-1-javierm@redhat.com> <87jzqi59bt.fsf@minerva.mail-host-address-is-not-set> Date: Thu, 16 Nov 2023 15:40:16 +0100 Message-ID: <87pm09223z.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 16 Nov 2023 06:40:38 -0800 (PST) Rob Herring writes: > On Thu, Nov 16, 2023 at 3:36=E2=80=AFAM Javier Martinez Canillas > wrote: [...] >> > >> > This is the opposite of what we do for memory and memory reservations. >> > EFI is the source of truth for those. >> > >> > This could also lead to an interesting scenario. As simple-framebuffer >> > can define its memory in a /reserved-memory node, but that is ignored >> > in EFI boot. Probably would work, but only because EFI probably >> > generates its memory map table from the /reserved-memory nodes. >> > >> >> I see. So what would be the solution then? Ignoring creating a platform >> device for "simple-framebuffer" if booted using EFI and have an EFI-GOP? > > Shrug. I don't really know anything more about EFI FB, but I would > guess it can't support handling resources like clocks, power domains, > regulators, etc. that simple-fb can. So if a platform needs those, do That's correct, and the reason why I thought that the DTB would be the single source of truth for the firmware provided framebuffer. For example, in some arm platforms that u-boot does provide an EFI-GOP, you need to boot with clk_ignore_unused or the system framebuffer just goes away once the unused clocks are gated. Same for PD, regulators, etc. > we say they should not setup EFI-GOP? Or is there a use case for > having both? Clients that don't muck with resources can use EFI-GOP > and those that do use simple-fb. For example, does/can grub use > EFI-GOP, but not simple-fb? > I don't think grub can use the simple-fb, it can use the EFI-GOP if is available though. And things work because of course grub won't try to disable unused resources like Linux does. > Rob > --=20 Best regards, Javier Martinez Canillas Core Platforms Red Hat