Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2445680pxb; Tue, 13 Apr 2021 01:57:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKiq2k+yOPiu/NQG4QtKQ43L3SnBIevi9XwZ7eZ5qucRHiPs4StaC4fLmuiSoP+oQ3lfoS X-Received: by 2002:a17:902:e889:b029:e7:1490:9da5 with SMTP id w9-20020a170902e889b02900e714909da5mr30195948plg.20.1618304249260; Tue, 13 Apr 2021 01:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618304249; cv=none; d=google.com; s=arc-20160816; b=j0rz7HgoXXR5PiH+Zx/Y2eJJqZQoFEqkJLIZjD5Ldx8LfTEm0tB3J8wQU2Po1ymJXc MvDCMc3TGbpu7eAnLdDM1lZf6GFcq30lBKPio9zHm/mv3EefxolOmPwUncffUe7RlNs0 IPWo6IuWC3nDxKfZTDWkVo7Cbm1Y6PPHG4XDSXMcSjPXM3q7lGKor9DAYcwEICBzpDNh GHdpRIOdpzEcC/rxfaa7VD6M0scepoEU0WzO7KOjEnD1+2816HtW3MQZ5byaVP4l0NEu lcVydhFCb2lbndVEBvWNAxK3cZnkx/gpTMtfRJOX4t3D1q8X3ymICEkq4+QnuuBdpoJB F/Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7TGx8ZVfqYXvMGovCGAlSHiqGvBerJjaC/U3eMZP0IY=; b=ib1P2K1mcncZW5uTjxHKDDBNo8+MUta6SugQN2RkRNpPHCD+kEFaJSYYAI3q7X8H9P qvkG2anop59QipFKa4ImQDqk3q2S7EtrzUioz0qe/7hPsrWV8zHX8hLEGmyT0bpk9PXJ nKvd1suSyds8p4pFeiczWvNY7JVRV1lMrXlH/b6bh7dEneTlDUCicO5/RFDv2D3M7Y4M kwuyUcxARh/ZJ0G2l730kqiZ4jbGQuA960IQteVKnz92BhttB98TLZP0DRCEhSmUDTOi XQhr1BmWyTAzA8wjEtcFGnnUdONjeYLcF35nYuBAcgoDDwxzrMMtyMovDlKeiwmpoyk7 +iDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DS9VY+qb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 22si10897364pgr.428.2021.04.13.01.57.17; Tue, 13 Apr 2021 01:57:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DS9VY+qb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344867AbhDMGG6 (ORCPT + 99 others); Tue, 13 Apr 2021 02:06:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:44370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343930AbhDMGGv (ORCPT ); Tue, 13 Apr 2021 02:06:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1469D613AB; Tue, 13 Apr 2021 06:06:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618293992; bh=a9llW2UJuHJzVBmVMgkCnV/iRToBVGCYdqDaOF3NDPU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DS9VY+qbEmJGvRUp+dANg3X5kJeTOCODIX52AJsIwg1Z5sgp/5f8xxiq/ARfHZdJM eIDF4GJKo/0HMWxavHFzsijjmUrzH7QYglrXbaA8LWazOc/+vNmpDrOJQYv7t+TyRB iQUHAFtc0hgkprjlOgcbBSlFtkVbXIBZ+XFEyghHndMSjKP+L2e/P3+zKZNSOtQwW5 iUWlUYyL0N2KmzJMYfsA6fUI2riZFQB31GhiZALpgNuaAm4icAMEMXXvHhVanmZAAc 50g2mTCThMXLVEL6RnjAmOnUGCOyLUguoHVSOn/WovVR6QjaY7/tVIswyg8xXtxQ3t wL+8sYlgUG9Qg== Date: Tue, 13 Apr 2021 09:06:20 +0300 From: Mike Rapoport To: Randy Dunlap Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , X86 ML Subject: Re: linux-next: Tree for Apr 9 (x86 boot problem) Message-ID: References: <20210409215103.03999588@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, On Mon, Apr 12, 2021 at 01:53:34PM -0700, Randy Dunlap wrote: > On 4/12/21 10:01 AM, Mike Rapoport wrote: > > On Mon, Apr 12, 2021 at 08:49:49AM -0700, Randy Dunlap wrote: > > > > I thought about adding some prints to see what's causing the hang, the > > reservations or their absence. Can you replace the debug patch with this > > one: > > > > diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c > > index 776fc9b3fafe..a10ac252dbcc 100644 > > --- a/arch/x86/kernel/setup.c > > +++ b/arch/x86/kernel/setup.c > > @@ -600,10 +600,13 @@ static bool __init snb_gfx_workaround_needed(void) > > return false; > > > > vendor = read_pci_config_16(0, 2, 0, PCI_VENDOR_ID); > > + devid = read_pci_config_16(0, 2, 0, PCI_DEVICE_ID); > > + > > + pr_info("%s: vendor: %x, device: %x\n", __func__, vendor, device); > > s/device)/devid)/ Oh, sorry. > > + > > if (vendor != 0x8086) > > return false; > > > > - devid = read_pci_config_16(0, 2, 0, PCI_DEVICE_ID); > > for (i = 0; i < ARRAY_SIZE(snb_ids); i++) > > if (devid == snb_ids[i]) > > return true; > > That prints: > > [ 0.000000] snb_gfx_workaround_needed: vendor: 8086, device: 126 > [ 0.000000] early_reserve_memory: snb_gfx: 1 > ... > [ 0.014061] snb_gfx_workaround_needed: vendor: 8086, device: 126 > [ 0.014064] reserving inaccessible SNB gfx pages > > > The full boot log is attached. Can you please send the log with memblock=debug added to the kernel command line? Probably should have started from this... -- Sincerely yours, Mike.