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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB90EC433F5 for ; Thu, 9 Dec 2021 18:00:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242941AbhLISD6 (ORCPT ); Thu, 9 Dec 2021 13:03:58 -0500 Received: from fanzine2.igalia.com ([213.97.179.56]:40400 "EHLO fanzine2.igalia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbhLISD5 (ORCPT ); Thu, 9 Dec 2021 13:03:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Du1ulIl0nJfgyvVBjJv/Ni5rMz9pM/5JhDhCLOiqtLI=; b=f5ccjmB3z3Zsg2zp2C8KIiTaiG tahGEqJAgk3bk+K6yWDfuLwt/tvjKrhO1YMODbN6TCytk2eORd1BC9+cWTxGJTO7rQTSWoue7nkI2 VcTT1bf1bG0L8QDTZUsmuykcluNaxRhqPPoUEQBqNJ84NB4cMX34ZxurAV9R5iA/EZJsS3MGi14ba agwm4gNpMR0pdaoRzsI9RQUo12pkECE3pBX/XPpuQVouGHr5DA68VtRiegqmfxnVg0GGTQ+eWjWod E2HJ2Nv2Nre8M1b/JYa6wKSlp8Be1AWvTV5CETadnDwF8arM/0Ka8hG/l+s8kKKDKs5YOG/PILlV+ jBVbIt0Q==; Received: from [177.103.99.151] (helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1mvNiD-000C0Z-09; Thu, 09 Dec 2021 19:00:09 +0100 Subject: Re: Reuse framebuffer after a kexec (amdgpu / efifb) To: Alex Deucher Cc: "open list:EFIFB FRAMEBUFFER DRIVER" , kexec@lists.infradead.org, amd-gfx list , kernel@gpiccoli.net, kasong@redhat.com, Baoquan He , =?UTF-8?Q?Samuel_Iglesias_Gons=c3=a1lvez?= , xinhui pan , Maling list - DRI developers , pjones@redhat.com, Gerd Hoffmann , "Deucher, Alexander" , Dave Young , Christian Koenig , Vivek Goyal References: <62aab616-53cb-ff9f-c5f3-169c547bd1ee@igalia.com> From: "Guilherme G. Piccoli" Message-ID: Date: Thu, 9 Dec 2021 14:59:52 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 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-fbdev@vger.kernel.org On 09/12/2021 14:31, Alex Deucher wrote: > [...] > Once the driver takes over, none of the pre-driver state is retained. > You'll need to load the driver in the new kernel to initialize the > displays. Note the efifb doesn't actually have the ability to program > any hardware, it just takes over the memory region that was used for > the pre-OS framebuffer and whatever display timing was set up by the > GOP driver prior to the OS loading. Once that OS driver has loaded > the area is gone and the display configuration may have changed. > Hi Christian and Alex, thanks for the clarifications! Is there any way to save/retain this state before amdgpu takes over? Would simpledrm be able to program the device again, to a working state? Finally, do you have any example of such a GOP driver (open source) so I can take a look? I tried to find something like that in Tianocore project, but didn't find anything that seemed useful for my issue. Thanks again! 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5C85EC433EF for ; Thu, 9 Dec 2021 22:27:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4BD9B10E15E; Thu, 9 Dec 2021 22:26:58 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 437E410E217; Thu, 9 Dec 2021 18:00:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Du1ulIl0nJfgyvVBjJv/Ni5rMz9pM/5JhDhCLOiqtLI=; b=f5ccjmB3z3Zsg2zp2C8KIiTaiG tahGEqJAgk3bk+K6yWDfuLwt/tvjKrhO1YMODbN6TCytk2eORd1BC9+cWTxGJTO7rQTSWoue7nkI2 VcTT1bf1bG0L8QDTZUsmuykcluNaxRhqPPoUEQBqNJ84NB4cMX34ZxurAV9R5iA/EZJsS3MGi14ba agwm4gNpMR0pdaoRzsI9RQUo12pkECE3pBX/XPpuQVouGHr5DA68VtRiegqmfxnVg0GGTQ+eWjWod E2HJ2Nv2Nre8M1b/JYa6wKSlp8Be1AWvTV5CETadnDwF8arM/0Ka8hG/l+s8kKKDKs5YOG/PILlV+ jBVbIt0Q==; Received: from [177.103.99.151] (helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1mvNiD-000C0Z-09; Thu, 09 Dec 2021 19:00:09 +0100 Subject: Re: Reuse framebuffer after a kexec (amdgpu / efifb) To: Alex Deucher References: <62aab616-53cb-ff9f-c5f3-169c547bd1ee@igalia.com> From: "Guilherme G. Piccoli" Message-ID: Date: Thu, 9 Dec 2021 14:59:52 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 09 Dec 2021 22:26:50 +0000 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: "open list:EFIFB FRAMEBUFFER DRIVER" , xinhui pan , kasong@redhat.com, Baoquan He , =?UTF-8?Q?Samuel_Iglesias_Gons=c3=a1lvez?= , kernel@gpiccoli.net, kexec@lists.infradead.org, amd-gfx list , pjones@redhat.com, Maling list - DRI developers , "Deucher, Alexander" , Dave Young , Christian Koenig , Vivek Goyal , Gerd Hoffmann Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 09/12/2021 14:31, Alex Deucher wrote: > [...] > Once the driver takes over, none of the pre-driver state is retained. > You'll need to load the driver in the new kernel to initialize the > displays. Note the efifb doesn't actually have the ability to program > any hardware, it just takes over the memory region that was used for > the pre-OS framebuffer and whatever display timing was set up by the > GOP driver prior to the OS loading. Once that OS driver has loaded > the area is gone and the display configuration may have changed. > Hi Christian and Alex, thanks for the clarifications! Is there any way to save/retain this state before amdgpu takes over? Would simpledrm be able to program the device again, to a working state? Finally, do you have any example of such a GOP driver (open source) so I can take a look? I tried to find something like that in Tianocore project, but didn't find anything that seemed useful for my issue. Thanks again! From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from fanzine2.igalia.com ([213.97.179.56]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvNiP-00H6k4-4J for kexec@lists.infradead.org; Thu, 09 Dec 2021 18:00:22 +0000 Subject: Re: Reuse framebuffer after a kexec (amdgpu / efifb) References: <62aab616-53cb-ff9f-c5f3-169c547bd1ee@igalia.com> From: "Guilherme G. Piccoli" Message-ID: Date: Thu, 9 Dec 2021 14:59:52 -0300 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Alex Deucher Cc: "open list:EFIFB FRAMEBUFFER DRIVER" , kexec@lists.infradead.org, amd-gfx list , kernel@gpiccoli.net, kasong@redhat.com, Baoquan He , =?UTF-8?Q?Samuel_Iglesias_Gons=c3=a1lvez?= , xinhui pan , Maling list - DRI developers , pjones@redhat.com, Gerd Hoffmann , "Deucher, Alexander" , Dave Young , Christian Koenig , Vivek Goyal On 09/12/2021 14:31, Alex Deucher wrote: > [...] > Once the driver takes over, none of the pre-driver state is retained. > You'll need to load the driver in the new kernel to initialize the > displays. Note the efifb doesn't actually have the ability to program > any hardware, it just takes over the memory region that was used for > the pre-OS framebuffer and whatever display timing was set up by the > GOP driver prior to the OS loading. Once that OS driver has loaded > the area is gone and the display configuration may have changed. > Hi Christian and Alex, thanks for the clarifications! Is there any way to save/retain this state before amdgpu takes over? Would simpledrm be able to program the device again, to a working state? Finally, do you have any example of such a GOP driver (open source) so I can take a look? I tried to find something like that in Tianocore project, but didn't find anything that seemed useful for my issue. Thanks again! _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec