Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4086361imm; Mon, 20 Aug 2018 09:33:56 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzaiDxc0LYRR3/yiUeQgs9Sm+MrEmmZdO6Eu8rhfoJdaoEA0tJpGMj1YOZKhKaL8rEU+KJO X-Received: by 2002:a62:4796:: with SMTP id p22-v6mr44352401pfi.170.1534782836761; Mon, 20 Aug 2018 09:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534782836; cv=none; d=google.com; s=arc-20160816; b=ycHsyWyfRm0EbOe+UNJVQJ/las/yeca25j7BJibO9WEaG1svrQexom3nyM1rO4nQ1V k24pa6XhNaHXJzD/5FpLzMdQRHz71H8Lz/iDzu9Drjo0HEz1i4vu44If7COQvetxTDYI fX6FSufxPQaVCFlSWVEXWl2oejyiajrDmASRIcnsBs0pKoVACSgmXje0TkXuJxZFiam7 lyGJHUlejdaQwh9NKL+dXr4v744VMENBfMmpxP7Eou+JK03jSq40VG1UunFlAk/6xXd1 WGHzluDfyCLAv7awOm+Xl3mw/1lju77l1ZDONMMXnK2KrILVSUJBzIq3rW8jW/8Tjz2i gzFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=1k7VC0jOqQ7jmVsrZCwAzbIZbKIkJbBpzmkkvZiokW8=; b=Lr1NC43yE6UoQg+Gl/0ou6H8xG4APlH6tbTBeeC595VLZARke4Zop+hDfx/KznCYYl g5Uq9FgVKdMLBIpqmxVoZSSVQuei5CJsmBAlzQ87O8MAN3Mh2Z3DoX3M+RarFPLQNvXc l4zWY1zPGJ/XV3fUXyLQCisHAE1coqzuAMLA/HVzv0PTI0tiK/7T2UOYAw15ShRfJLfG 1gR84AKpxRliELCcTFq1CcnYVfNggMuScCQGlajMvSuJJbfnluIbRYB+6lDs3YJOOHt6 ekWZ5A5aVjWkCjV4cPP40xqCZN/6q9ExSGX4BxPa+2TIama2snCFRpLo0dBzEowJB+1x BSow== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7-v6si9717217pgl.1.2018.08.20.09.33.41; Mon, 20 Aug 2018 09:33:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727668AbeHTTrY (ORCPT + 99 others); Mon, 20 Aug 2018 15:47:24 -0400 Received: from mga05.intel.com ([192.55.52.43]:53414 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726686AbeHTTrY (ORCPT ); Mon, 20 Aug 2018 15:47:24 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Aug 2018 09:31:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,265,1531810800"; d="scan'208";a="226167666" Received: from agluck-desk.sc.intel.com ([10.3.52.160]) by orsmga004.jf.intel.com with ESMTP; 20 Aug 2018 09:31:04 -0700 From: Tony Luck To: Linus Torvalds Cc: Tony Luck , linux-ia64@vger.kernel.org, Linux Kernel Mailing List , Arnd Bergmann , Boris Brezillon , Bjorn Helgaas , Sinan Kaya , Tomasz Nowicki , Lorenzo Pieralisi , Miquel Raynal Subject: [PATCH] ia64: Fix kernel BUG at lib/ioremap.c:72! Date: Mon, 20 Aug 2018 09:31:04 -0700 Message-Id: <20180820163104.12879-1-tony.luck@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit: 0bbf47eab469 ("ia64: use asm-generic/io.h") results in a BUG while booting ia64. This is because asm-generic/io.h defines PCI_IOBASE, which results in the function acpi_pci_root_remap_iospace() doing a lot of unnecessary (and wrong) things. I'd suggested an #if !CONFIG_IA64 in the functon, but Arnd suggested keeping the fix inside the arch/ia64 tree. Fixes: 0bbf47eab469 ("ia64: use asm-generic/io.h") Suggested-by: Arnd Bergman Signed-off-by: Tony Luck --- arch/ia64/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h index 6f952171abf9..1e6fef69bb01 100644 --- a/arch/ia64/include/asm/io.h +++ b/arch/ia64/include/asm/io.h @@ -454,6 +454,7 @@ extern void memset_io(volatile void __iomem *s, int c, long n); #define xlate_dev_kmem_ptr xlate_dev_kmem_ptr #define xlate_dev_mem_ptr xlate_dev_mem_ptr #include +#undef PCI_IOBASE # endif /* __KERNEL__ */ -- 2.17.1