Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp159061imc; Sun, 10 Mar 2019 00:46:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwoIQQ4CTLcyw1HxHlSnGaDfmf33x0csnCQnIVT24xgyHg7Wnd/51dREIqbkfIeo15PPe5F X-Received: by 2002:a17:902:168:: with SMTP id 95mr5563512plb.212.1552207575715; Sun, 10 Mar 2019 00:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552207575; cv=none; d=google.com; s=arc-20160816; b=RWaobl5ntb3roZV3Abgz7ywGj78+q6W/X+uvXIEmAsvYAm4jLo3J/sHQ5xDNSE++zr nvH8Dbv1c7vMqnQcqe5Y0hWURiwNvmAvjtS3fk7mTa8uAgC48IiKWx+ZPJd0nd216Z+R XRzoY6o2UT75kHuRa+WShSynLzGFH7X8T+YkMQ0wBFAPnsUtr7DKKUZNWsbJ+xiC/Di+ ztgi7lmP5Z23nqGLNZ4yCPXOk64HyL2iNSolKq00yy07wX02RNdlYjGlkFRZVcfFwoKP bSpDbvtAOlrCArFjvAGMTY8cvhnAhnUrMOCXi68WgfkAr/97mFO/6UB36NxH75A1lPy0 GrFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=eKFISkahZezLqES8zIfLDupDxb1OeiMZ9/vyFWNloCc=; b=I2bcIJPGMl3P7G0tCOIdNyGLhvF7/ADNjYV3qXGliQeVo2Sr/za35hEe05KMG0mJpx 3NInOzMZuoVGQBzdKSNDY8xBlHH/snyiCKEZxR84tCyiNqH6MLSyKsVyultWKzx+4j/3 G9caTukEBbh1hs3ZH2DvD8FMSAnjvqy6XrUD/pFUUehrTEmEIVk+1gr1saoFs+BriCTY zq4/WQjAgx/KIpJuguNJ2U5ZcLl2VLkwn0/SYuNibxgno/CddO4/qQu2wQDQvkFT3z4y nCNOgKGwDt95FNiJeRL0oNrsdfvZuRY02Zchnkj3Jx11KNqvSAq4yTvFiPwrLE1ZviLp fNPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4si2499840plm.271.2019.03.10.00.46.00; Sun, 10 Mar 2019 00:46:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbfCJIoE convert rfc822-to-8bit (ORCPT + 99 others); Sun, 10 Mar 2019 04:44:04 -0400 Received: from mondschein.lichtvoll.de ([194.150.191.11]:53289 "EHLO mail.lichtvoll.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbfCJIoD (ORCPT ); Sun, 10 Mar 2019 04:44:03 -0400 Authentication-Results: auth=pass smtp.auth=martin smtp.mailfrom=martin@lichtvoll.de Received: from 127.0.0.1 (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.lichtvoll.de (Postfix) with ESMTPSA id E1DA147ABC7; Sun, 10 Mar 2019 09:44:00 +0100 (CET) From: Martin Steigerwald To: "Ahmed S. Darwish" Cc: David Airlie , Daniel Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Alex Deucher , Christian =?ISO-8859-1?Q?K=F6nig?= , David Zhou , Ard Biesheuvel , Matt Fleming , Linus Torvalds , Greg Kroah-Hartman , John Ogness , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: DRM-based Oops viewer Date: Sun, 10 Mar 2019 09:44:00 +0100 Message-ID: <2856397.VzoYIXtIs6@merkaba> In-Reply-To: <20190310013142.GA3376@darwi-home-pc> References: <20190310013142.GA3376@darwi-home-pc> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hell Ahmed. Ahmed S. Darwish - 10.03.19, 02:31: > Hello DRM/UEFI maintainers, > > Several years ago, I wrote a set of patches to dump the kernel > log to disk upon panic -- through BIOS INT 0x13 services. [1] > > The overwhelming response was that it's unsafe to do this in a > generic manner. Linus proposed a video-based viewer instead: [2] […] > Of course it's 2019 now though, and it's quite known that > Intel is officially obsoleting the PC/AT BIOS by 2020.. [3] […] > The maximum possible that UEFI can provide is a GOP-provided > framebuffer that's ready to use by the OS -- even after the UEFI > boot phase is marked as done through ExitBootServices(). [5] > > Of course, once native drivers like i915 or radeon take over, > such a framebuffer is toast... [6] > > Thus a possible remaining option, is to display the oops through > "minimal" DRM drivers provided for each HW variant... Since > these special drivers will run only and fully under a panic() > context though, several constraints exist: Thank you for your idea and willingness to work on something like this. As a user I'd very much favor a solution that could not only work with UEFI but with other firmwares. I still dream to be able to buy a laptop with up to date hardware and with Coreboot/Libreboot at some time. While this would not solve all "I just freeze" kind of crashes, it may at least give some information about some of them. When testing rc kernels I often enough faced "I just freeze" crashes that just happened *sometimes*. On a machine that I also use for production work I find it infeasible to debug it as bisecting could take a long, long time. And well the machine could just crash every moment… even during doing important work with it. In my ideal world an operating system would never ever crash or hang without telling why. Well it would not crash or hang at all… but there you go. Maybe some time with a widely usable micro kernel based OS that can restart device drivers in a broken state – at least almost. No discussion of that micro kernel topic required here. :) Thanks, -- Martin