From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39771C433F5 for ; Fri, 10 Sep 2021 17:29:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1C9C1611F0 for ; Fri, 10 Sep 2021 17:29:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231386AbhIJRaN (ORCPT ); Fri, 10 Sep 2021 13:30:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:57556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231731AbhIJRaM (ORCPT ); Fri, 10 Sep 2021 13:30:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A6AB2611CB; Fri, 10 Sep 2021 17:29:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631294941; bh=EHYCZa70bOceXqNDdDVeupdOzJn9wCS6p4a7peW8XKs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=chYiiH4xPl8dtMdO0K1zgS2A2NYPAO5mdMjhHzhEjWZqHrVZ1LgowFtKDW5aykomr 5QOvRhVZBHAiU1au8Q2Pg0DvkcyGB6OHkejmsRufEgnxv153cc/KvAQbigh9YHwD66 jWrgOOZ8p5ov3faOAppaY6ZMfdZ44Oyj093c9N0qJ571AFspigavfuadlBKEQohlyz L0ZFeImWr7YIFAc65Sl3ZrgRjo7fTP8lW1qOprBM08hesaz8MnxVViBwUpPdlb1OnG CbCQZAlKJTdUEIDTWuG/P3RSkJRufXxuccLNO+NYD6OMsOLJbMse8E//k+zuNcaV7u lZ6WwnN9iT71g== Received: by mail-ot1-f45.google.com with SMTP id c19-20020a9d6153000000b0051829acbfc7so3193011otk.9; Fri, 10 Sep 2021 10:29:01 -0700 (PDT) X-Gm-Message-State: AOAM531hXdoQ+UWVnVzQxwHEWpQ8tzBGLOfTToDl0xCxCwFHIv63cJRA j0magm6cKAOo3kJGTqJyKxVfsw+v5YTGcgPuux4= X-Google-Smtp-Source: ABdhPJz27Hrx8nyBHi9b2wqnAZZVjoxZKErfMgZq+ttDL4xBLvLbEOV4GMoMa+Y4eTgygaldzsxJwTK+Kk7viJWD1MA= X-Received: by 2002:a05:6830:603:: with SMTP id w3mr5442085oti.147.1631294941031; Fri, 10 Sep 2021 10:29:01 -0700 (PDT) MIME-Version: 1.0 References: <20210910122820.26886-1-justin.he@arm.com> <20210910143223.6705-1-justin.he@arm.com> In-Reply-To: <20210910143223.6705-1-justin.he@arm.com> From: Ard Biesheuvel Date: Fri, 10 Sep 2021 19:28:49 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] Revert "ACPI: Add memory semantics to acpi_os_map_memory()" To: Jia He Cc: Lorenzo Pieralisi , Will Deacon , Len Brown , Robert Moore , Erik Kaneda , Linux ARM , Linux Kernel Mailing List , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , Hanjun Guo , Catalin Marinas , "Rafael J . Wysocki" , Harb Abdulhamid Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Fri, 10 Sept 2021 at 16:32, Jia He wrote: > > This reverts commit 437b38c51162f8b87beb28a833c4d5dc85fa864e. > > After this commit, a boot panic is alway hit on an Ampere EMAG server > with call trace as follows: > Internal error: synchronous external abort: 96000410 [#1] SMP > Modules linked in: > CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.14.0+ #462 > Hardware name: MiTAC RAPTOR EV-883832-X3-0001/RAPTOR, BIOS 0.14 02/22/2019 > pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) > [...snip...] > Call trace: > acpi_ex_system_memory_space_handler+0x26c/0x2c8 > acpi_ev_address_space_dispatch+0x228/0x2c4 > acpi_ex_access_region+0x114/0x268 > acpi_ex_field_datum_io+0x128/0x1b8 > acpi_ex_extract_from_field+0x14c/0x2ac > acpi_ex_read_data_from_field+0x190/0x1b8 > acpi_ex_resolve_node_to_value+0x1ec/0x288 > acpi_ex_resolve_to_value+0x250/0x274 > acpi_ds_evaluate_name_path+0xac/0x124 > acpi_ds_exec_end_op+0x90/0x410 > acpi_ps_parse_loop+0x4ac/0x5d8 > acpi_ps_parse_aml+0xe0/0x2c8 > acpi_ps_execute_method+0x19c/0x1ac > acpi_ns_evaluate+0x1f8/0x26c > acpi_ns_init_one_device+0x104/0x140 > acpi_ns_walk_namespace+0x158/0x1d0 > acpi_ns_initialize_devices+0x194/0x218 > acpi_initialize_objects+0x48/0x50 > acpi_init+0xe0/0x498 > > As mentioned by Lorenzo: > "We are forcing memory semantics mappings to PROT_NORMAL_NC, which > eMAG does not like at all and I'd need to understand why. It looks > like the issue happen in SystemMemory Opregion handler." > > Hence just revert it before everything is clear. > Can we try to find the root cause first? -rc1 is not even out yet, and reverting it now means we can not resubmit it until the next merge window. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38D8EC4332F for ; Fri, 10 Sep 2021 17:31:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 033DF611CB for ; Fri, 10 Sep 2021 17:31:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 033DF611CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NoMF1zZg6CDu+kUo6PXAXkreORXeSQGfzxW8bNl3xdo=; b=fJ1m6dFR29xOeB DWBwY4hr8kOg61A9PI7O4zDDeYPU/R3B1y8+TSpd2HV5IWWYiDSS+jDoYErv4M0ed3NprQdEPfLk0 s+Ye3AjJ+EiZHKxyUU3+A7RbZ2kH50eqzK9wFLShqJI5kv0Aw41vttScJM6BtkXGpN5VeeHL9vXUd Z7M5wg6M9YRbfI3GURFwbSdntCnrgI+EXswpNRkwO/KhMjKRwqfyNYa3AR8s5TUNxy0FBXeyAh+At V/u+shOBfeV2/2IgJnKU7lQY09RZh40r5DDEAY1HY/jXqdNuPqu1qeJFyAgeTLRqwjvZDNGYQgZlM RX45Vagh0K8pCQ0Dx6CQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mOkKs-00DGeO-Sl; Fri, 10 Sep 2021 17:29:11 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mOkKk-00DGdk-MD for linux-arm-kernel@lists.infradead.org; Fri, 10 Sep 2021 17:29:08 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id BC04061213 for ; Fri, 10 Sep 2021 17:29:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631294941; bh=EHYCZa70bOceXqNDdDVeupdOzJn9wCS6p4a7peW8XKs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=chYiiH4xPl8dtMdO0K1zgS2A2NYPAO5mdMjhHzhEjWZqHrVZ1LgowFtKDW5aykomr 5QOvRhVZBHAiU1au8Q2Pg0DvkcyGB6OHkejmsRufEgnxv153cc/KvAQbigh9YHwD66 jWrgOOZ8p5ov3faOAppaY6ZMfdZ44Oyj093c9N0qJ571AFspigavfuadlBKEQohlyz L0ZFeImWr7YIFAc65Sl3ZrgRjo7fTP8lW1qOprBM08hesaz8MnxVViBwUpPdlb1OnG CbCQZAlKJTdUEIDTWuG/P3RSkJRufXxuccLNO+NYD6OMsOLJbMse8E//k+zuNcaV7u lZ6WwnN9iT71g== Received: by mail-ot1-f43.google.com with SMTP id x10-20020a056830408a00b004f26cead745so3189761ott.10 for ; Fri, 10 Sep 2021 10:29:01 -0700 (PDT) X-Gm-Message-State: AOAM533CBEdqxAor7w3nJrliTNfoUxslfOPKdSb6GDhxTyNPn0L5nNsV C+NzKcN7qjZvWo2E6fOtsaVtNCcXlKZdayzi4v8= X-Google-Smtp-Source: ABdhPJz27Hrx8nyBHi9b2wqnAZZVjoxZKErfMgZq+ttDL4xBLvLbEOV4GMoMa+Y4eTgygaldzsxJwTK+Kk7viJWD1MA= X-Received: by 2002:a05:6830:603:: with SMTP id w3mr5442085oti.147.1631294941031; Fri, 10 Sep 2021 10:29:01 -0700 (PDT) MIME-Version: 1.0 References: <20210910122820.26886-1-justin.he@arm.com> <20210910143223.6705-1-justin.he@arm.com> In-Reply-To: <20210910143223.6705-1-justin.he@arm.com> From: Ard Biesheuvel Date: Fri, 10 Sep 2021 19:28:49 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] Revert "ACPI: Add memory semantics to acpi_os_map_memory()" To: Jia He Cc: Lorenzo Pieralisi , Will Deacon , Len Brown , Robert Moore , Erik Kaneda , Linux ARM , Linux Kernel Mailing List , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , Hanjun Guo , Catalin Marinas , "Rafael J . Wysocki" , Harb Abdulhamid X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210910_102902_799191_810627FA X-CRM114-Status: GOOD ( 14.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 10 Sept 2021 at 16:32, Jia He wrote: > > This reverts commit 437b38c51162f8b87beb28a833c4d5dc85fa864e. > > After this commit, a boot panic is alway hit on an Ampere EMAG server > with call trace as follows: > Internal error: synchronous external abort: 96000410 [#1] SMP > Modules linked in: > CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.14.0+ #462 > Hardware name: MiTAC RAPTOR EV-883832-X3-0001/RAPTOR, BIOS 0.14 02/22/2019 > pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) > [...snip...] > Call trace: > acpi_ex_system_memory_space_handler+0x26c/0x2c8 > acpi_ev_address_space_dispatch+0x228/0x2c4 > acpi_ex_access_region+0x114/0x268 > acpi_ex_field_datum_io+0x128/0x1b8 > acpi_ex_extract_from_field+0x14c/0x2ac > acpi_ex_read_data_from_field+0x190/0x1b8 > acpi_ex_resolve_node_to_value+0x1ec/0x288 > acpi_ex_resolve_to_value+0x250/0x274 > acpi_ds_evaluate_name_path+0xac/0x124 > acpi_ds_exec_end_op+0x90/0x410 > acpi_ps_parse_loop+0x4ac/0x5d8 > acpi_ps_parse_aml+0xe0/0x2c8 > acpi_ps_execute_method+0x19c/0x1ac > acpi_ns_evaluate+0x1f8/0x26c > acpi_ns_init_one_device+0x104/0x140 > acpi_ns_walk_namespace+0x158/0x1d0 > acpi_ns_initialize_devices+0x194/0x218 > acpi_initialize_objects+0x48/0x50 > acpi_init+0xe0/0x498 > > As mentioned by Lorenzo: > "We are forcing memory semantics mappings to PROT_NORMAL_NC, which > eMAG does not like at all and I'd need to understand why. It looks > like the issue happen in SystemMemory Opregion handler." > > Hence just revert it before everything is clear. > Can we try to find the root cause first? -rc1 is not even out yet, and reverting it now means we can not resubmit it until the next merge window. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel