Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp485021imm; Mon, 2 Jul 2018 15:33:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK2B4ZVjqnAK+/Y+t7wLD3VN38KhdWOmCJY0ARJV3IN87z5NaAGv+qFSlD9d681wCEoI41C X-Received: by 2002:a17:902:4d:: with SMTP id 71-v6mr27574024pla.317.1530570793537; Mon, 02 Jul 2018 15:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530570793; cv=none; d=google.com; s=arc-20160816; b=LE3J/nzfBZySMq//VSV4CAdZEN7DdUbEpJRt7USSUfcTASRvCuA0pMxUfYhNRjm5I5 /UcJzqs4EMMm5DKCDpM9REu8rNUY4WB5VMxO27++GBkoJQCAnoWqNXyzhfzNVLzkUukj r1BEBb+Kx9RLEkK1TkNk7K/aHgy1IdmdjhQ+Stk4mlbgRMX+bTZQk7pE+zLSTRja+3lD DdE0R4npDpFD3YkQcmXpIZ95h4/M0We970rnQD6HYO0MQbM+ItcamNJkVhJOMu4YXWPu YihYkHhMEsg1qtJ17GsHe7QMKlhSN30k1fAGXV67w+Iplt6FkOJNxwXntkuwSd6Nfb0F cZYA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=DfCaoGKJ+BeiZXzvK2ITkYi0NHlAxfDyb6zJrihEy3I=; b=XP0nbnt8ZhnP9tBzMvmqr3TQg8uiDSf/nxcR9WmlsUeeQWOga1d3quhz0S6oKvh8Pq Ox9/Us+JtTBguLVQQqU/PaatCACR3jn40pTcMonPgjGPq12RE7DTIbgJpLLEr/F3E0fp fa9/FwMfOGKvW5UxmrUMSrZsVq2GwTWvPzZ19Qw7xC2sQxYHOXMlJ3QaBkLrg8bwHVZ5 12MxckJohdvxQkl471jW4wZEAjylkuJzD39+jly7ZKD8oG5EowwyrDUEX0y2L+AmUmex S0SJBhEldULT00JxP/R3vfDeCZ1j75+pnAdhq4c2VW1J88W4OvycJ0vT5sesMWR0QWxC GFOQ== 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 j1-v6si16963892pfb.32.2018.07.02.15.32.59; Mon, 02 Jul 2018 15:33:13 -0700 (PDT) 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 S1753663AbeGBWaU (ORCPT + 99 others); Mon, 2 Jul 2018 18:30:20 -0400 Received: from foss.arm.com ([217.140.101.70]:40556 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753587AbeGBWaT (ORCPT ); Mon, 2 Jul 2018 18:30:19 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 07F8618A; Mon, 2 Jul 2018 15:30:19 -0700 (PDT) Received: from [192.168.100.244] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8F3513F2EA; Mon, 2 Jul 2018 15:30:18 -0700 (PDT) Subject: Re: 4.18rc3 TX2 boot failure with "ACPICA: AML parser: attempt to continue loading table after error" To: "Rafael J. Wysocki" Cc: "Schmauss, Erik" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Rafael J . Wysocki" , "linux-arm-kernel@lists.infradead.org" , Lorenzo Pieralisi References: From: Jeremy Linton Message-ID: <9a9ef2bc-a66f-2af7-8766-b74426f062a6@arm.com> Date: Mon, 2 Jul 2018 17:30:16 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 07/02/2018 04:52 PM, Rafael J. Wysocki wrote: > On Mon, Jul 2, 2018 at 11:41 PM, Jeremy Linton wrote: >> Hi, >> >> I'm experiencing two problems with commit 5088814a6e931 which is "ACPICA: >> AML parser: attempt to continue loading table after error" >> >> The first is this boot failure on a thunderX2: >> >> [ 10.770098] ACPI Error: Ignore error and continue table load >> (20180531/psobject-604) >> [ 10.777926] Unable to handle kernel NULL pointer dereference at >> [ 10.950199] Call trace: >> [ 10.952663] acpi_ps_peek_opcode+0x1c/0x40 >> [ 10.956797] acpi_ps_create_op+0x54/0x278 >> [ 10.960842] acpi_ps_parse_loop+0x1b4/0x6c8 >> [ 10.965063] acpi_ps_parse_aml+0xe0/0x2b4 >> [ 10.969108] acpi_ps_execute_table+0xa0/0x104 >> [ 10.973505] acpi_ns_execute_table+0x120/0x194 >> [ 10.977989] acpi_ns_parse_table+0x34/0x68 >> [ 10.982122] acpi_ns_load_table+0x4c/0xbc >> [ 10.986169] acpi_tb_load_namespace+0x1d4/0x240 >> [ 10.990744] acpi_load_tables+0x50/0xbc >> [ 10.994614] acpi_init+0xb8/0x374 >> [ 10.997959] do_one_initcall+0x54/0x208 >> [ 11.001829] kernel_init_freeable+0x224/0x300 >> [ 11.006229] kernel_init+0x18/0x118 >> [ 11.009747] ret_from_fork+0x10/0x18 >> [ 11.013354] Code: aa0003f3 aa1e03e0 d503201f f9400661 (39400020) >> [ 11.019535] ---[ end trace 2bd8068593cf8acc ]--- >> [ 11.024195] Kernel panic - not syncing: Fatal exception >> [ 11.029488] SMP: stopping secondary CPUs >> [ 11.033480] ---[ end Kernel panic - not syncing: Fatal exception ]--- >> >> Which does appear to be the result of some bad data in the table, but it was >> working with 4.17, and reverting this commit solves the problem. > > But this commit fixes another regression which was more widespread. > > Apparently, we can't work around all of the errors in the tables out > there at the same time. :-/ NP, Let me see if I can come up with a way to harden the parse_loop/create_op code enough that it doesn't crash the machine. > >> Also the messages now newly being prefixed with '\n' are slightly corrupted >> like: >> >> "3ACPI BIOS Error (bug):" >> >> because the KERN_XXX macro is being encoded after the CR which keeps it from >> being processed correctly. > > Yes, that's a known issue which should be fixed in -rc4. Oh.. Yes I see that now, thanks.