Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp407029imm; Thu, 12 Jul 2018 22:50:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdMBH0B9zzftOVGPyOiDp2BzfCc53ojTCy/uGWhJJcc52g92C7qcDujpvyPeiC7zdPYfqXM X-Received: by 2002:a62:6d42:: with SMTP id i63-v6mr5533845pfc.41.1531461037618; Thu, 12 Jul 2018 22:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531461037; cv=none; d=google.com; s=arc-20160816; b=MuNGO8BQmzWIcBf4tnJRZ21aEd3BdAxTGL9cvRsxCQ/A3S7DF1pOAH13RUEYrAnZeV OuMh6B6iCM7i6xSxF437CvuG2dz1adQJ0Iw9AoZ9JHs27MINoUzu6Af9fA8MFwRBB5n0 tyo75zPdPkSKqy2MFO9Jc4pCa7t0SZuZQkB2yjc+fP9KfCNZkDocpfEwF0DDlfwhab3G kP98/cnfeo0aUNW+LDBlN3QDRUnmjefccZGEETszWng3DpQ613wjHKq5VAH7AhxMgtNh NQwm7gQ/1zjRa3xJbwxZTC9S1/+OO9FEvXBWPkuAaoKoaM5oasDZMgmlR8/U6sqQ/eTY jzzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=7rGxqXGZ2L3dMnrl/2X+em7CfbAVbVuRUvDJ+yN3vBQ=; b=jBt1IJlDLs5OVpKaopOwS+CG92UF48U2JzQX6i46Wd74nqhDYnuBXdrpvU+lpyvCLy 9CsSwDaRNHVNQAcCx7uu4dyZCOksWa/YxT9RCdCDiwWqXnjzxIJvB0tjcC6IAY1G7q6Z fFlK9Csr/gPKcC24/nkBWXvU5r3ct1UXnHpjT5+HrfCWmXbcfrJ6vfwuzQsdBqJvRmXe yjo9F8RD2hoy+1tdaUq+0+in3fHsLVZk+O6/YMEK5e+54FS1AF4MCPfKA268AhYT8Vws Z4JGbxK4tahxbGmZgLbT24PmyCFoWGq5G/It2w70POzBt9PUMmSEMgofvcXk3faN4XIO TZSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S0bUCWyF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba7-v6si22635214plb.490.2018.07.12.22.50.21; Thu, 12 Jul 2018 22:50:37 -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; dkim=pass header.i=@linaro.org header.s=google header.b=S0bUCWyF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727040AbeGMGCs (ORCPT + 99 others); Fri, 13 Jul 2018 02:02:48 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:35290 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726071AbeGMGCs (ORCPT ); Fri, 13 Jul 2018 02:02:48 -0400 Received: by mail-it0-f66.google.com with SMTP id l16-v6so10000633ita.0 for ; Thu, 12 Jul 2018 22:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7rGxqXGZ2L3dMnrl/2X+em7CfbAVbVuRUvDJ+yN3vBQ=; b=S0bUCWyFMJoFZri3KHsHAQFcG1iz2PT0cc0bJNuqGTjuDY24p8Htql/AdGS0G1tzin 38O16xNr5WDCXLTg/jDPgqnssaRxiHmf5kzVU9dn618dLvCfsaQqxELXOKO5DTaUb4kZ /lSxQ6AmXp2g/u5HbXZiUYcMP2K4stCyXjqM4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7rGxqXGZ2L3dMnrl/2X+em7CfbAVbVuRUvDJ+yN3vBQ=; b=nOdcEu5qWWA0+SQWuc1bSZN0ViMMKMUg72Z+xz5FGEFTQSO1FJWaWFVogaN35Dw46J KMDf+5NTc6WKPNyQ3lav6pcLOGeS8+RfvRJhXxoloAbE/y1hDWIKGhrPctbntGFKZYxe czd2T11bSbaxPA4wB+mfcuqp9vjFcPeNL5XADIaHRHONeAwfKvt0kL47MKWqWyssTmfL 2hAl7R7X99ALlQ3Z7nu0xWUbz5RUpUTcr8dnBYW85DJyLP2dSkXKBI+zp+v3OuFWW7Lp 52qxcc2NJrdb6UljdAb02DDdAP/FFQnaWsCv8yn74m2Uu/9MKbptGBMLkO7bRnXGdSO4 7WNA== X-Gm-Message-State: AOUpUlHQIS8tUEtvNvsZKBtaz6D0TmjtUUm13nGqKrEWSC3+r4AWBTSQ 9IYI6wYwCo84P/9nrWXuLdGLwdBz3JThwNE+dGg/oA== X-Received: by 2002:a02:6001:: with SMTP id i1-v6mr4178972jac.5.1531460985854; Thu, 12 Jul 2018 22:49:45 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:bbc7:0:0:0:0:0 with HTTP; Thu, 12 Jul 2018 22:49:45 -0700 (PDT) In-Reply-To: <20180713003434.GZ28220@linaro.org> References: <20180709234229.20181-1-takahiro.akashi@linaro.org> <20180712164918.GA26935@arm.com> <20180713003434.GZ28220@linaro.org> From: Ard Biesheuvel Date: Fri, 13 Jul 2018 07:49:45 +0200 Message-ID: Subject: Re: [PATCH v3.1 0/4] arm64: kexec,kdump: fix boot failures on acpi-only system To: AKASHI Takahiro , Will Deacon , Catalin Marinas , Ard Biesheuvel , "Baicar, Tyler" , Bhupesh Sharma , Dave Young , James Morse , Mark Rutland , Al Stone , Graeme Gregory , Hanjun Guo , Lorenzo Pieralisi , Sudeep Holla , linux-arm-kernel , Linux Kernel Mailing List , Kexec Mailing List 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 On 13 July 2018 at 02:34, AKASHI Takahiro wrote: > On Thu, Jul 12, 2018 at 05:49:19PM +0100, Will Deacon wrote: >> Hi Akashi, >> >> On Tue, Jul 10, 2018 at 08:42:25AM +0900, AKASHI Takahiro wrote: >> > This patch series is a set of bug fixes to address kexec/kdump >> > failures which are sometimes observed on ACPI-only system and reported >> > in LAK-ML before. >> >> I tried picking this up, along with Ard's fixup, but I'm seeing a build >> failure for allmodconfig: >> >> arch/arm64/kernel/acpi.o: In function `__acpi_get_mem_attribute': >> acpi.c:(.text+0x60): undefined reference to `efi_mem_attributes' >> >> I didn't investigate further. Please can you fix this? > > Because CONFIG_ACPI is on and CONFIG_EFI is off. > > This can happen in allmodconfig as CONFIG_EFI depends on > !CONFIG_CPU_BIG_ENDIAN, which is actually on in this case. > Allowing both CONFIG_ACPI and CONFIG_CPU_BIG_ENDIAN to be configured makes no sense at all. Things will surely break if you start using BE memory accesses while parsing ACPI tables. Allowing CONFIG_ACPI without CONFIG_EFI makes no sense either, since on arm64, the only way to find the ACPI tables is through a UEFI configuration table. > Looking at __acpi_get_mem_attributes(), since there is no information > available on memory attributes, what we can do at best is > * return PAGE_KERNEL (= cacheable) for mapped memory, > * return DEVICE_nGnRnE (= non-cacheable) otherwise > (See a hunk to be applied on top of my patch#4.) > > I think that, after applying, acpi_os_ioremap() would work almost > in the same way as the original before my patchset given that > MAP memblock attribute is used only under CONFIG_EFI for now. > > Make sense? > Let's keep your code as is but fix the Kconfig dependencies instead.