Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2704482imm; Thu, 16 Aug 2018 14:12:30 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzpP0h1QI0ALJykPmyLAEK0u5b+grdNqYG/AjTzRMgeynqWvfLKY3h7RdzlWbM1lQ0TGA9P X-Received: by 2002:a62:6cc7:: with SMTP id h190-v6mr34100529pfc.113.1534453950195; Thu, 16 Aug 2018 14:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534453950; cv=none; d=google.com; s=arc-20160816; b=DiNL/3Nx2d8fBp1sbcb1qsP3q+LnoUJVbWI6ggV0bvh8YmBuzcPpQPz/pGa08BJDwi 9MTh5LOjyQUb/FwHjBXJ0krGWejjBRo6c6V4Rd011B4/ObGHjsmG0FYi67pE86mS86yM 4x5QR5S3vD0/qC3eVPOGRNRdN0al2XlJhh8vKPmakF+IejePMqBVxTFK7UQXo5GCzxQy YBFt0aSJuaXex8x4nUbLPgLq0qpHO4eDp+8q4U/TuoyWAmTrUI+BxBVi8H/TEdGHChYG +42t2AZn8PMAI/L1HSxReinQF3fJbVn7NkP4mvbq5qEqp2SXGU+zypJZEDB/FbUtUFDt XgGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=3rdic9wbU2bcbev5+zWhc5YGti3xVIxNp8/IQdJskXs=; b=sqeltvP7RsULZwTFT5ZATdzri3820+dAvZl6O6kwhoDPcUF/t5KisSm1PEFfc05B7u BxzNN119iDajLhnFYPDTqfrgZgPD1mMVLLCt0VsjK2Ak730iGAT8dLDCTpNRBClySes9 m+keZIHEW73TcgHR5gNpkI/1zT+YEsSQn+c5HbM8uqsQJkKV7yoQKCzMstdRqratt3K4 t8VW9XcuE1ioqdZ657REvrTA4QxECua7u99EPfijzEAHUuQS2U+6TVcCw1/OuLWpGSg0 li53ypkMEDNjIwXDUJP/1Ob3WFRg7jDL9/Gnd/bhJDFU3uQPrV6hgivVmLP4E1myCTRk c6xA== 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 m13-v6si227287pgk.251.2018.08.16.14.12.06; Thu, 16 Aug 2018 14: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; 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 S1725968AbeHQALc (ORCPT + 99 others); Thu, 16 Aug 2018 20:11:32 -0400 Received: from mail-qt0-f175.google.com ([209.85.216.175]:42444 "EHLO mail-qt0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbeHQALc (ORCPT ); Thu, 16 Aug 2018 20:11:32 -0400 Received: by mail-qt0-f175.google.com with SMTP id z8-v6so6472307qto.9 for ; Thu, 16 Aug 2018 14:10:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3rdic9wbU2bcbev5+zWhc5YGti3xVIxNp8/IQdJskXs=; b=Q+1elaI/VmB8grT7+Opdv5A8yRrm4cY6RCawbaRVQUfo7IRziBM9t+Td+GO59Ucm5d f6ph/QEz47nWpTgi36twQ67kbfTy1zyxViCZr3Eo385RCUKAxzHjJ1RP2gxpzu5Vn+GL aX97eZ/+GmoLMKi9GH5nHon+G+3U+ocl4Xkg99x0Djqw4UfG3CmhhcY/9d1L5I7nyOhr g36qRRSRnlOIuFElquEOGZN4r0Ba9xs8t7AB4XBlV2D5VDy0ldqbNZt4obSXTlB7DVu2 mHaDiyMRtpmlL4BlWD0BJiClMk884YeOvJL65iEOoZPTjbmIKsmhrrE5TTGE+2usRPeE 7ldA== X-Gm-Message-State: AOUpUlGih+OOh6vcjvqWOy0pFadbECYQHFsmzhEi8O19aWz1XNfE71V7 Ec5FrNwmd2uKthR2tnFe8sC+ncK1+njuZtCmdek= X-Received: by 2002:a0c:8b67:: with SMTP id d39-v6mr28512157qvc.180.1534453850236; Thu, 16 Aug 2018 14:10:50 -0700 (PDT) MIME-Version: 1.0 References: <20180816204506.GA21144@agluck-desk> In-Reply-To: <20180816204506.GA21144@agluck-desk> From: Arnd Bergmann Date: Thu, 16 Aug 2018 23:10:33 +0200 Message-ID: Subject: Re: how to fix acpi_pci_root_remap_iospace? To: Tony Luck Cc: Bjorn Helgaas , Linux Kernel Mailing List , jchandra@broadcom.com, Sinan Kaya , Tomasz Nowicki , Lorenzo Pieralisi , Boris Brezillon , Miquel Raynal 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 Thu, Aug 16, 2018 at 10:45 PM Luck, Tony wrote: > > Bjorn, > > Back in commit: > > 0a70abb38062 ("PCI/ACPI: Support I/O resources when parsing host bridge resources") > > we added acpi_pci_root_remap_iospace(). On ia64 this was a no-op because ia64 > didn't define PCI_IOBASE, so the entire body of the function was skipped. > > But in the current merge window commit: > > 0bbf47eab469 ("ia64: use asm-generic/io.h") > > ended up defining PCI_IOBASE for us, and now we die horribly > in early boot with: > > kernel BUG at lib/ioremap.c:72! Ah, that explains it. I'm sorry for causing you trouble here, and glad you figured out the cause. > Is PCI_IOBASE the right thing to check for to decide whether > acpi_pci_root_remap_iospace() needs to do anything? > > The ugly fix would be: Another way would be to add #include +#undef PCI_IOBASE in your asm/io.h. This is about as ugly as the your version, but it would be local to ia64 ;-) Arnd