From patchwork Sun Sep 8 12:10:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Trippelsdorf X-Patchwork-Id: 2858441 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A29C89F495 for ; Sun, 8 Sep 2013 12:19:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B26B20222 for ; Sun, 8 Sep 2013 12:18:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 019B920221 for ; Sun, 8 Sep 2013 12:18:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C6227E6924 for ; Sun, 8 Sep 2013 05:18:54 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.ud10.udmedia.de (ud10.udmedia.de [194.117.254.50]) by gabe.freedesktop.org (Postfix) with ESMTP id C5A3FE6911 for ; Sun, 8 Sep 2013 05:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud10.udmedia.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=beta; bh=cAZJpQOJT2wRdPvrXzjD5DtEEs 5EPmad3ljBSapZEMU=; b=uQgi3Bs6++jb8rMiS4RHOmrKtf7VROxwM0I2fNeFJ4 O1soreeVQ1d5n05zNFyxleUV06JJUSHa0G9nVaw1i3YGI1dnblZtrDLEGyPagKgu bv5cYiD2C4+WA+pXQYEhljap/Z/edq3fvtbrQk3kSfTeAPqqSyv0oFbi/nQ3oCJd Q= Received: (qmail 27398 invoked from network); 8 Sep 2013 14:10:28 +0200 Received: from unknown (HELO x4) (ud10?360p3@91.64.96.185) by mail.ud10.udmedia.de with ESMTPSA (DHE-RSA-AES256-SHA encrypted, authenticated); 8 Sep 2013 14:10:28 +0200 Date: Sun, 8 Sep 2013 14:10:27 +0200 From: Markus Trippelsdorf To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] kexec: get rid of late printk Message-ID: <20130908121027.GB360@x4> References: <20130908120947.GA360@x4> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130908120947.GA360@x4> Cc: kexec@lists.infradead.org, Eric Biederman X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP kexec calls: printk(KERN_EMERG "Starting new kernel\n"); late before calling machine_shutdown(). However at this point the underlying fb device may have already been shutdown. This causes the kernel to hang. Fix by simply getting rid of the printk call. Signed-off-by: Markus Trippelsdorf --- kernel/kexec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/kexec.c b/kernel/kexec.c index 59f7b55..f33fa9f 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -1679,7 +1679,6 @@ int kernel_kexec(void) #endif { kernel_restart_prepare(NULL); - printk(KERN_EMERG "Starting new kernel\n"); machine_shutdown(); }