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 8DE71C433EF for ; Fri, 10 Dec 2021 15:24:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234441AbhLJP2R (ORCPT ); Fri, 10 Dec 2021 10:28:17 -0500 Received: from fanzine2.igalia.com ([213.97.179.56]:54754 "EHLO fanzine2.igalia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbhLJP2R (ORCPT ); Fri, 10 Dec 2021 10:28:17 -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=d08zJAZ3+ydMRlW1z18ca2luIEumMp+4R6/Ga55iTkY=; b=jOYJBW/64rbuxHSlYHcFWfVuHm rzUxLqTop0VJ7hVH1LKGivj03Q5tzJUNYZW1/jjbHjbqo23+tazb4f+ZOF7V2XBbF+v+EmpyJPBlh 72RT6kCVOHFNv3oLauDhdm8mlIz/F0bcMEYGcip2j+XgaoQxRHr+O03RENo8AH7GOyRz0n3WGXqSE O5OkRce0/wSCSVy1DnBkX5FrpeKcPzGaeY73OdeB/oFe0ig7qqOQKOrCB/Ps+G73Nzs9bo1C0o/9T +9Y01K2FyOx7lxhYDb4551Szkjt4QeWdhUDr9QaToRf23jiWT49WFOc4Y6sj2le/Gy0vtXvyAIUdb 2bcpPLEA==; 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 1mvhl6-0002LH-QH; Fri, 10 Dec 2021 16:24:29 +0100 Subject: Re: Reuse framebuffer after a kexec (amdgpu / efifb) To: =?UTF-8?Q?Christian_K=c3=b6nig?= , Alex Deucher Cc: Thomas Zimmermann , Gerd Hoffmann , "open list:EFIFB FRAMEBUFFER DRIVER" , kexec@lists.infradead.org, amd-gfx list , kernel@gpiccoli.net, Baoquan He , =?UTF-8?Q?Samuel_Iglesias_Gons=c3=a1lvez?= , xinhui pan , Maling list - DRI developers , pjones@redhat.com, "Deucher, Alexander" , Dave Young , Vivek Goyal References: <62aab616-53cb-ff9f-c5f3-169c547bd1ee@igalia.com> <6d3c7acf-a23f-3073-56ed-375ccb8cc815@suse.de> <99b38881-8c63-de04-50f8-aa4119b52b25@igalia.com> <56dfb915-036b-0584-f0ef-83c786970d6e@igalia.com> From: "Guilherme G. Piccoli" Message-ID: <0847ff12-8b1c-a046-eb05-f0011f81e172@igalia.com> Date: Fri, 10 Dec 2021 12:24:08 -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: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org On 10/12/2021 12:13, Christian König wrote: > [...] > How about issuing a PCIe reset and re-initializing the ASIC with just > the VBIOS? > > That should be pretty straightforward I think. > > Christian. Thanks Christian, that'd be perfect! Is it feasible? Per Alex comment, we'd need to run atombios commands to reprogram the timings, display info, etc...like a small driver would do, a full init. Also, what kind of PCIe reset is recommended for this adapter? Like a hot reset, powering-off/re-power, FLR or that MODE2 reset present in amdgpu code? Remembering this is an APU device. Thanks a lot! 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 20743C433F5 for ; Fri, 10 Dec 2021 15:24:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5AA5610EA4A; Fri, 10 Dec 2021 15:24:36 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id C6AF310EA2E; Fri, 10 Dec 2021 15:24:34 +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=d08zJAZ3+ydMRlW1z18ca2luIEumMp+4R6/Ga55iTkY=; b=jOYJBW/64rbuxHSlYHcFWfVuHm rzUxLqTop0VJ7hVH1LKGivj03Q5tzJUNYZW1/jjbHjbqo23+tazb4f+ZOF7V2XBbF+v+EmpyJPBlh 72RT6kCVOHFNv3oLauDhdm8mlIz/F0bcMEYGcip2j+XgaoQxRHr+O03RENo8AH7GOyRz0n3WGXqSE O5OkRce0/wSCSVy1DnBkX5FrpeKcPzGaeY73OdeB/oFe0ig7qqOQKOrCB/Ps+G73Nzs9bo1C0o/9T +9Y01K2FyOx7lxhYDb4551Szkjt4QeWdhUDr9QaToRf23jiWT49WFOc4Y6sj2le/Gy0vtXvyAIUdb 2bcpPLEA==; 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 1mvhl6-0002LH-QH; Fri, 10 Dec 2021 16:24:29 +0100 Subject: Re: Reuse framebuffer after a kexec (amdgpu / efifb) To: =?UTF-8?Q?Christian_K=c3=b6nig?= , Alex Deucher References: <62aab616-53cb-ff9f-c5f3-169c547bd1ee@igalia.com> <6d3c7acf-a23f-3073-56ed-375ccb8cc815@suse.de> <99b38881-8c63-de04-50f8-aa4119b52b25@igalia.com> <56dfb915-036b-0584-f0ef-83c786970d6e@igalia.com> From: "Guilherme G. Piccoli" Message-ID: <0847ff12-8b1c-a046-eb05-f0011f81e172@igalia.com> Date: Fri, 10 Dec 2021 12:24:08 -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: 8bit 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 , Maling list - DRI developers , Baoquan He , =?UTF-8?Q?Samuel_Iglesias_Gons=c3=a1lvez?= , kernel@gpiccoli.net, kexec@lists.infradead.org, amd-gfx list , pjones@redhat.com, Gerd Hoffmann , Thomas Zimmermann , "Deucher, Alexander" , Dave Young , Vivek Goyal Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 10/12/2021 12:13, Christian König wrote: > [...] > How about issuing a PCIe reset and re-initializing the ASIC with just > the VBIOS? > > That should be pretty straightforward I think. > > Christian. Thanks Christian, that'd be perfect! Is it feasible? Per Alex comment, we'd need to run atombios commands to reprogram the timings, display info, etc...like a small driver would do, a full init. Also, what kind of PCIe reset is recommended for this adapter? Like a hot reset, powering-off/re-power, FLR or that MODE2 reset present in amdgpu code? Remembering this is an APU device. Thanks a lot! 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 1mvhlK-002Pyp-6B for kexec@lists.infradead.org; Fri, 10 Dec 2021 15:24:45 +0000 Subject: Re: Reuse framebuffer after a kexec (amdgpu / efifb) References: <62aab616-53cb-ff9f-c5f3-169c547bd1ee@igalia.com> <6d3c7acf-a23f-3073-56ed-375ccb8cc815@suse.de> <99b38881-8c63-de04-50f8-aa4119b52b25@igalia.com> <56dfb915-036b-0584-f0ef-83c786970d6e@igalia.com> From: "Guilherme G. Piccoli" Message-ID: <0847ff12-8b1c-a046-eb05-f0011f81e172@igalia.com> Date: Fri, 10 Dec 2021 12:24:08 -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="utf-8" Content-Transfer-Encoding: base64 Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: =?UTF-8?Q?Christian_K=c3=b6nig?= , Alex Deucher Cc: Thomas Zimmermann , Gerd Hoffmann , "open list:EFIFB FRAMEBUFFER DRIVER" , kexec@lists.infradead.org, amd-gfx list , kernel@gpiccoli.net, Baoquan He , =?UTF-8?Q?Samuel_Iglesias_Gons=c3=a1lvez?= , xinhui pan , Maling list - DRI developers , pjones@redhat.com, "Deucher, Alexander" , Dave Young , Vivek Goyal T24gMTAvMTIvMjAyMSAxMjoxMywgQ2hyaXN0aWFuIEvDtm5pZyB3cm90ZToKPiBbLi4uXQo+IEhv dyBhYm91dCBpc3N1aW5nIGEgUENJZSByZXNldCBhbmQgcmUtaW5pdGlhbGl6aW5nIHRoZSBBU0lD IHdpdGgganVzdCAKPiB0aGUgVkJJT1M/Cj4gCj4gVGhhdCBzaG91bGQgYmUgcHJldHR5IHN0cmFp Z2h0Zm9yd2FyZCBJIHRoaW5rLgo+IAo+IENocmlzdGlhbi4KCgpUaGFua3MgQ2hyaXN0aWFuLCB0 aGF0J2QgYmUgcGVyZmVjdCEgSXMgaXQgZmVhc2libGU/IFBlciBBbGV4IGNvbW1lbnQsCndlJ2Qg bmVlZCB0byBydW4gYXRvbWJpb3MgY29tbWFuZHMgdG8gcmVwcm9ncmFtIHRoZSB0aW1pbmdzLCBk aXNwbGF5CmluZm8sIGV0Yy4uLmxpa2UgYSBzbWFsbCBkcml2ZXIgd291bGQgZG8sIGEgZnVsbCBp bml0LgoKQWxzbywgd2hhdCBraW5kIG9mIFBDSWUgcmVzZXQgaXMgcmVjb21tZW5kZWQgZm9yIHRo aXMgYWRhcHRlcj8gTGlrZSBhCmhvdCByZXNldCwgcG93ZXJpbmctb2ZmL3JlLXBvd2VyLCBGTFIg b3IgdGhhdCBNT0RFMiByZXNldCBwcmVzZW50IGluCmFtZGdwdSBjb2RlPyBSZW1lbWJlcmluZyB0 aGlzIGlzIGFuIEFQVSBkZXZpY2UuCgpUaGFua3MgYSBsb3QhCgoKX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18Ka2V4ZWMgbWFpbGluZyBsaXN0CmtleGVjQGxp c3RzLmluZnJhZGVhZC5vcmcKaHR0cDovL2xpc3RzLmluZnJhZGVhZC5vcmcvbWFpbG1hbi9saXN0 aW5mby9rZXhlYwo=