Received: by 10.223.185.116 with SMTP id b49csp1091946wrg; Fri, 23 Feb 2018 11:47:35 -0800 (PST) X-Google-Smtp-Source: AH8x225++3FO2Mmyj48qT51bzYpoA8TQfX/tP9q7+58o562ZsCUHHyLTv55S3PczhJmFXnapGpZW X-Received: by 10.98.252.22 with SMTP id e22mr2794203pfh.235.1519415255382; Fri, 23 Feb 2018 11:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519415255; cv=none; d=google.com; s=arc-20160816; b=r6gSa8hIsTXYRNus1i5/Oo4z4aZ8gFMxB+srhXwBPUPKlqdTL5jsJspSf0uL+rwsOJ NS06oc1cZAJ3TI4mo/bmpmG5Wg6wjoDZ2ob4YKP3N3BA2HpRfJHDyPOS3SzKyk/xz1O7 feCDn9QIU200OmJnQFZxRXyZx9Ut7UsrslYXLqiXzPFq099lzrJoGk21YxGLm8lm9A+E /4AmkjuWF9Mca+oOb3ADmMlO0sR4IOxYTTzylIJcxTImKVoB8R1HVSU0l7MWPduTJDCJ NhbtMByLbzv4ehjfW6wHDm8CF4gv5+cX/UvrzpFpE8Z+7GxyZz//w5pwjIj6bjF5/KDv zdHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qsyD5uEPpODdjOHUKHfbCbzMQ1YS+WFIzoZkr/t8hRg=; b=JeznSKX5PzaGjwxnRonFhz0yR2AgM8Mnfrl9vqg1sLh1hz0Wzd5YIwC1sXTBEBywZB rVaHdVhuJaV2orP+kgr4gi6ANeCEvnyTigR3Pz5wtRL0Nne6vLI0QhtKUNPo8CqIGBy8 bCR0gLRMCaG5NmcUs4V7nfORIJAmxfvAgeOYydd2az01QJ63K564Vq88UPhsPeqpdmnO qPIeY0HawFIK8EhYXDS36JOFyMd2lwo8B7UBNsyO2ecYVNhYD7fwgry3OqT+O/VcZ7iV 502rLB6yxhQdLxWkJU942fx1Ndx9C52UQF15UfGXqoAgymduyj7BmMj0R6vBdLtt+Qvf enNg== 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 i7-v6si2292680plk.139.2018.02.23.11.47.21; Fri, 23 Feb 2018 11:47:35 -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 S1754912AbeBWTpK (ORCPT + 99 others); Fri, 23 Feb 2018 14:45:10 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44792 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934316AbeBWSsG (ORCPT ); Fri, 23 Feb 2018 13:48:06 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A6506FDC; Fri, 23 Feb 2018 18:48:05 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Young , Thomas Gleixner , Linus Torvalds , Peter Zijlstra , bp@suse.de, linux-efi@vger.kernel.org, linux-mm@kvack.org, Ingo Molnar , Sasha Levin Subject: [PATCH 4.9 082/145] mm/early_ioremap: Fix boot hang with earlyprintk=efi,keep Date: Fri, 23 Feb 2018 19:26:28 +0100 Message-Id: <20180223170735.360444676@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dave Young [ Upstream commit 7f6f60a1ba52538c16f26930bfbcfe193d9d746a ] earlyprintk=efi,keep does not work any more with a warning in mm/early_ioremap.c: WARN_ON(system_state != SYSTEM_BOOTING): Boot just hangs because of the earlyprintk within the earlyprintk implementation code itself. This is caused by a new introduced middle state in: 69a78ff226fe ("init: Introduce SYSTEM_SCHEDULING state") early_ioremap() is fine in both SYSTEM_BOOTING and SYSTEM_SCHEDULING states, original condition should be updated accordingly. Signed-off-by: Dave Young Acked-by: Thomas Gleixner Cc: Linus Torvalds Cc: Peter Zijlstra Cc: bp@suse.de Cc: linux-efi@vger.kernel.org Cc: linux-mm@kvack.org Link: http://lkml.kernel.org/r/20171209041610.GA3249@dhcp-128-65.nay.redhat.com Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- mm/early_ioremap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/early_ioremap.c +++ b/mm/early_ioremap.c @@ -103,7 +103,7 @@ __early_ioremap(resource_size_t phys_add enum fixed_addresses idx; int i, slot; - WARN_ON(system_state != SYSTEM_BOOTING); + WARN_ON(system_state >= SYSTEM_RUNNING); slot = -1; for (i = 0; i < FIX_BTMAPS_SLOTS; i++) {