Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4578011rwl; Wed, 28 Dec 2022 06:09:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXv+u6EW3HLQiNiw8+Vu0FtvWuOVv9x+B7Ta9NFlg+r2qWfAxx0vhRkpKK6kd0dUq7aRow/J X-Received: by 2002:a05:6300:8105:b0:a4:3fc2:eb10 with SMTP id bs5-20020a056300810500b000a43fc2eb10mr29809692pzc.37.1672236557326; Wed, 28 Dec 2022 06:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672236557; cv=none; d=google.com; s=arc-20160816; b=Uj9kv0CXlFZONAVT5gddQxal+Gj/GcISTFZ410/oaSnnqjVBEaYto5XBAydC8jQLCd GnYqe+5J2uygsGEFL+oJSfmUylfp5fZli/kT+m53c3UEe2RM5hWt89OA8VF2MeZyU2T4 Sw+Hec24i7v9aCBrJk+a19O8XF0zLpooGYTZVMOwOg/2AWl3jkyILpT/4c+A1roUg6uH KGbvaC2U07MSp4NTZA3fW6pPsLqCbgJw3WSUNmkTQjOtvbSe1ElEs6nixmQabXBNrLyA jANfHmhLTxrFNfJ2tD07EQUN0yBPKjn4/hcph9cpSBzCbOQ74lsnXO9qUieSujoA38zT HwjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Ge/qfO0qKGoLnBGuSoZzqFzqUd5Zhhmgu/AVbjmWsyg=; b=h6bc/Iib4NarHWnOgCHt4moESqRq3t1Cc+/QIjB3okvrKQQ0NWp6qWIba8TSp+2T7K pB7ntmTCLPP4ciAK2lfsa6i3wpc1wOh8CrNQB8G0UP6BTnVXue54GPVH/gjN8I6BJrTB lpFB/lVrXIDoJwixHtFZp+khFfu4uXcwWWJP3JrYDjRBrDuwNHrHKnM3Aoxb/wnmuCQu dg/KzsBnMmvR5bsHhCSXKwXdFZ4VLwcpBPWG1U11TK92eUlyw9tdVQhk5Cuo4PEmJJsM WnzlKBTndTEeUVpN15M0/N0Ja2ZeEbeMR0Affb1DbcsVGjsoOvF5mLxmf57q2bkPwFGh T/rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="c2iP/ZA0"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m4-20020a6562c4000000b0046feca13e25si16272103pgv.68.2022.12.28.06.09.08; Wed, 28 Dec 2022 06:09:17 -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=@intel.com header.s=Intel header.b="c2iP/ZA0"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232627AbiL1OEN (ORCPT + 64 others); Wed, 28 Dec 2022 09:04:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbiL1OEL (ORCPT ); Wed, 28 Dec 2022 09:04:11 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC2E11099; Wed, 28 Dec 2022 06:04:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672236249; x=1703772249; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Lg126dF0ZRB51ZzT/H9t/6uTcxQgkla19QDrEd0Bge0=; b=c2iP/ZA0uWkDdxNpHAOp0YCPyjxlv8h7aQGjKTZMRR6SF9YaM3bfiYBo znnuls8vYhO1gaLI8oWuZ0LS1uu7CDIFWchzA0Bm52jf8k1gXX5ukVRGS yQjFCK/Uyg1WSsPnfwkU1I6ZkA2N0fP+v7wT7LJci5FMbxPvNgbNBQ3Sb trJLLyHX6b08mMxFr3/IEyVreRUFb8JhUOZscI71WMkXsnHO3DCKYLE6h MhiDvWFxat86ZuPres05zdP8WimKmqBfpkojgFFT29JBeuJ4L8HEUyf0f RzMhpsKGuVkrBKvQjXmNvZlxeTh770iy7IgB4+Iowwg9wednRPRO6uk59 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10574"; a="308631762" X-IronPort-AV: E=Sophos;i="5.96,280,1665471600"; d="scan'208";a="308631762" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2022 06:03:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10574"; a="655320885" X-IronPort-AV: E=Sophos;i="5.96,280,1665471600"; d="scan'208";a="655320885" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP; 28 Dec 2022 06:03:13 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pAX1S-000cPm-1R; Wed, 28 Dec 2022 16:03:10 +0200 Date: Wed, 28 Dec 2022 16:03:10 +0200 From: Andy Shevchenko To: Ard Biesheuvel Cc: Markuss Broks , linux-kernel@vger.kernel.org, Jami Kettunen , Jonathan Corbet , Greg Kroah-Hartman , Jiri Slaby , Helge Deller , Borislav Petkov , "Paul E. McKenney" , Andrew Morton , Will Deacon , Randy Dunlap , Muchun Song , Damien Le Moal , Kim Phillips , linux-doc@vger.kernel.org, linux-efi@vger.kernel.org, linux-serial@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v3 0/3] Add generic framebuffer support to EFI earlycon driver Message-ID: References: <20221221105402.6598-1-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 23, 2022 at 03:42:33PM +0100, Ard Biesheuvel wrote: > (cc Andy) I believe there are two reasons I'm Cc'ed now: - the Cc was forgotten. because I remember reviewing some parts of this contribution - this conflicts (to some extent) with my patch that speeds up the scrolling For the first it's obvious what to do, I think Markuss can include me in his v4. For the second I don't see the functional clash. The scrolling in this series is not anyhow optimized. I think my patch should go first as - it is less intrusive - it has been tested, or can be tested easily Tell me if I'm missing something here. > On Wed, 21 Dec 2022 at 11:54, Markuss Broks wrote: > > > > Make the EFI earlycon driver be suitable for any linear framebuffers. > > This should be helpful for early porting of boards with no other means of > > output, like smartphones/tablets. There seems to be an issue with early_ioremap > > function on ARM32, but I am unable to find the exact cause. It appears the mappings > > returned by it are somehow incorrect, thus the driver is disabled on ARM. > > The reason that this driver is disabled on ARM is because the struct > screen_info is not populated early enough, as it is retrieved from a > UEFI configuration table. > > early_ioremap() works fine on ARM as long as they mapping is torn down > before paging_init() > > > EFI early > > console was disabled on IA64 previously because of missing early_memremap_prot, > > and this is inherited to this driver. > > > > This patch also changes > > "This patch also changes ..." is usually a strong hint to self that > the patches need to be split up. > > > behavior on EFI systems, by selecting the mapping type > > based on if the framebuffer region intersects with system RAM. If it does, it's > > common sense that it should be in RAM as a whole, and so the system RAM mapping is > > used. It was tested to be working on my PC (Intel Z490 platform), as well as several > > ARM64 boards (Samsung Galaxy S9 (Exynos), iPad Air 2, Xiaomi Mi Pad 4, ...). -- With Best Regards, Andy Shevchenko