Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3109880imm; Mon, 16 Jul 2018 22:12:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe/nRqhPzdC+BC8a/jHWE4qqDMIMK4vD+LmsvmJT7pGBdDFANfnUQ6Eb3coFOLq8Z1kXHti X-Received: by 2002:a63:1350:: with SMTP id 16-v6mr147084pgt.214.1531804350982; Mon, 16 Jul 2018 22:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531804350; cv=none; d=google.com; s=arc-20160816; b=aIw139MceXLWGF5supus9GOy4ir1FoRwBG+3E9pm6JXZdmrA7MqxCtJc49wIqSs37X 5hSD/CC9LgQC4kGQG3b2gf0EZuMEa//jzdS42Pm5coyPYo+S1jbO7VP9gNXp3Yqbz+1J mb7Ew691DJfzWmQ+nyXi2p11qb4yhpcQTwpF8bjalmOK2n7KCc2aSPU2VLYnWlhgT7Ja USub4F/wYBX0akpTIjMwunmuvNEgWwVYs6HcF3zIbXpYXzoOs5LsGT93S3AtAUOZ9JH3 4hTykONi3m9U4eZWnh9z2FweS64uMUKvHDXtJPp3+FW9IBYnRHU+fcbtDnByNLkpgIBH yVWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=auqBgfbX5mWSeF8fWlFxDwN+/ULQbGDp7E9uqIWsiMw=; b=G2BAqlJTIhY6KIq3zcq0KVNJRO9cpYusKiz8Oswpfj7W7cpNQk4MR4XhBz9UHhJof3 gTt7Jusq1czYVY+ybTn99MwfccKYMe8ILdXJkcZGUuffHPQm02JJgebjM5WsL6yjozzW qSoPWeV1frG8XiUyYvhRNzweLFNaSONG4uHoyrlyT8sTqdZ0dxdOoh4RlaxQXjUA/8tu 4i27/jZB1I1MrcAzigwd0X5ZWCoFuczXra7LbRXZ3DfceP9rauniZAfeffcbjd8filmK bwsv779AceDBUiqDqh1J5k2zgINRBqU7H0AC4+SwALXlIpmJVneHdFSO6/4JK88RSMFk 4xyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F6ohhIOK; 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 w23-v6si38895pgl.282.2018.07.16.22.12.04; Mon, 16 Jul 2018 22:12:30 -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=F6ohhIOK; 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 S1727351AbeGQFlz (ORCPT + 99 others); Tue, 17 Jul 2018 01:41:55 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:37007 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbeGQFly (ORCPT ); Tue, 17 Jul 2018 01:41:54 -0400 Received: by mail-pf0-f196.google.com with SMTP id a26-v6so5352094pfo.4 for ; Mon, 16 Jul 2018 22:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=auqBgfbX5mWSeF8fWlFxDwN+/ULQbGDp7E9uqIWsiMw=; b=F6ohhIOKlOlFu4IEVS/ACRBEreBmyHVO3YoqRGxacPtmOigh2lztgDtNyTCkVao4kj CdKROa7sZHUAxAMXce3Aa40Lpp1KDghMR14056R6SihR3+fFtORSvMpn90UEjDJloUCz NVYKLzCzrrg7/YOACqoGfopwd7Lg1+hPMWyN0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=auqBgfbX5mWSeF8fWlFxDwN+/ULQbGDp7E9uqIWsiMw=; b=hJK1jhMYyGQULXpctIsl/IsgpOv1iEK4kGqJu9hbMB9Vgf8oWSPeqrHLB9JhrwBtus kzdPshy+Jb6e7Ashl8H3lSrMQGP+2fFE4JHR8YfIxVL5+I4s7pS8q8ZNd+Weov5kHj1D HiE1u77LW55HCwkmiPoGrc1HTm6vVl8dud7J9kghRKfHMjIM9cuZN3aT0F9KHlHf9bta XHaI2s2y+VU3U7TKOgzwwRYtU8eWQLIzjkz0uN+Tz6O55Cq0GGDMRuhJgf0E5wmi1+AT e1uzDgQ/oOuKjl7VpNPs5bShlCZJhW85hlZ2xUvHw1AJ+fK4dKwl6sQ8ZsyXdw/d+VqC 847A== X-Gm-Message-State: AOUpUlHmm69ApXH4vcdMMzT52+tRpel4kiZ5CvVwG+1VbVYLmoMp6B2a c44OqnuQr6clNNt/ZEHN8M2iBg== X-Received: by 2002:a63:e452:: with SMTP id i18-v6mr117799pgk.185.1531804270781; Mon, 16 Jul 2018 22:11:10 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id k128-v6sm124647pgk.4.2018.07.16.22.11.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jul 2018 22:11:10 -0700 (PDT) Date: Tue, 17 Jul 2018 14:12:23 +0900 From: AKASHI Takahiro To: Ard Biesheuvel Cc: Will Deacon , Catalin Marinas , "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 Subject: Re: [PATCH v3.1 0/4] arm64: kexec,kdump: fix boot failures on acpi-only system Message-ID: <20180717051222.GA11258@linaro.org> Mail-Followup-To: AKASHI Takahiro , Ard Biesheuvel , Will Deacon , Catalin Marinas , "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 References: <20180709234229.20181-1-takahiro.akashi@linaro.org> <20180712164918.GA26935@arm.com> <20180713003434.GZ28220@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Will, On Fri, Jul 13, 2018 at 07:49:45AM +0200, Ard Biesheuvel wrote: > 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. Do you agree to this? -Takahiro AKASHI > > 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.