Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1111787imm; Fri, 17 Aug 2018 12:02:45 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwUgKcXvFJF5eYYaxy2pTYoBk4Y6Z/0DVPPqL3CG4gxy+Wcj5qH74Q8IYk9JYs4UdJ3q5TC X-Received: by 2002:a63:dd09:: with SMTP id t9-v6mr33855305pgg.370.1534532565648; Fri, 17 Aug 2018 12:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534532565; cv=none; d=google.com; s=arc-20160816; b=l8CMO0tZcCWXeVZjs3qj4STwqCrVEcnqC6EDQs9acvWJ4JcphX4Q67N2mvzYYjIgMc zrRPHumcNwFU7s1xDkSS8BJ3AcsZ2GZ2J1k3ChP4OGmAbFrKNqi37UqtVxBqi/wBcvH1 vwKBqqSHixfBkWnOjzcrZ+LDxLa0+1B47R7ThE2qKSGAHF9LVv1jt5TyxG5Emn4KfVmT lcYM/4zIc+n5BesVsthvdiecu6YvKYZtNsB+oEHs+jHgWF/sltUP6m2iULcL8/8EsNgu +hzRH3slCLiihuRIowBNviWEpkDyHnvEd/PSLlf5a4/fGg2skYihUH1JH5D0SzzSFHgu PcFA== 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=AVqe83osW0uUtfRN+jpcfw28s0OJAuneCvyz1EL46kE=; b=d4/VoRha7Xc+zt6uI4WXnwFSQ894JlYJwKAXAA7kUhZGetwRSfliw3JvD/kO+DpmeR 6OoJ1wIelEOT64vd+1qc01zXsHBM/Vh3qtWbHiy5Bci7KEQRjIs6lCd7Obl5R6aqLCKr 8nJhEi29R4KMnLY3nC5kJYAFGZMOwo8idtetXu//cYeeQ89l/Y9AU182k/J6QiPTufx7 tdubwJUxOFdX1qCO/GUvwtnBqYlh7uNxKhyd7McgB6cCTU8KSKwIkr5zXCeU3vHQIw0t EOGibM4uuqTP4fLtesPCXJ+Gx1D7Vlgo1hQYd+7zGniD0KTIg3yhlwT7R2ZUgDNPGBxb aPgg== 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 w23-v6si2667075pgl.371.2018.08.17.12.02.29; Fri, 17 Aug 2018 12:02:45 -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 S1728107AbeHQWF5 (ORCPT + 99 others); Fri, 17 Aug 2018 18:05:57 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:34583 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727743AbeHQWF5 (ORCPT ); Fri, 17 Aug 2018 18:05:57 -0400 Received: by mail-qt0-f193.google.com with SMTP id m13-v6so9882931qth.1 for ; Fri, 17 Aug 2018 12:01:25 -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=AVqe83osW0uUtfRN+jpcfw28s0OJAuneCvyz1EL46kE=; b=eLk8p330tzf8nEH26msAmKyA6625oiAlDd2rOddEIzrE3gpFnU5CXaxsLFrpv3Zbhc NiJCxl5RNSEYvfDaV7Rt/I2XXGLJE2LYin1oJbIHKDm/KfXr08W71BFN6wGPptRnWiiT V8jjPc/KIpVF5u729yt1l1NRVC6zaPLXK1a/90JBwgT6qkBu/ArJ89dMrA7Pe11LLNH9 AbpO5JmnTdUXIztGJaThWMAzHwmGdtQ7PEMEsE6XdzMEuHXNZNbC7bgHKN2YKtj9V8e8 9i24474i2LkBHmEKFEXj2TMuFxfJOaeQxekwhRNqHjuf7auth6DqX1EQzMf1kxrO3bS7 rQVQ== X-Gm-Message-State: AOUpUlHf0g+Rl9GY63Zmol6WMW7OSFzf202UpyzhKxaMlquNMaYtkEpC 7YNFOsU7jRymyrCiFyeT14dL4GDQWmONyXX/Xp0= X-Received: by 2002:ac8:2f43:: with SMTP id k3-v6mr5840067qta.163.1534532485272; Fri, 17 Aug 2018 12:01:25 -0700 (PDT) MIME-Version: 1.0 References: <20180816204506.GA21144@agluck-desk> <20180816232639.GA25889@agluck-desk> <20180817105551.100d6e0a@bbrezillon> <3908561D78D1C84285E8C5FCA982C28F7D3B3159@ORSMSX110.amr.corp.intel.com> <20180817182003.22f4e198@bbrezillon> In-Reply-To: <20180817182003.22f4e198@bbrezillon> From: Arnd Bergmann Date: Fri, 17 Aug 2018 21:01:08 +0200 Message-ID: Subject: Re: how to fix acpi_pci_root_remap_iospace? To: Boris Brezillon Cc: Tony Luck , Bjorn Helgaas , Linux Kernel Mailing List , jchandra@broadcom.com, Sinan Kaya , Tomasz Nowicki , Lorenzo Pieralisi , 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 Fri, Aug 17, 2018 at 6:20 PM Boris Brezillon wrote: > > On Fri, 17 Aug 2018 15:56:23 +0000 > "Luck, Tony" wrote: > > > >> - Some targets don't have any support for I/O space on their PCI bus and just > > >> want to get things to compile by setting PCI_IOBASE to zero, this still opens > > >> up some of the same problems as above, but doesn't really help otherwise. > > > > That sounds horrible. Why would you want to have a driver that can't possibly > > work on your platform compile cleanly? That's just asking for trouble. Sombody > > might load that driver, and ... all the outb/outw/outl calls just corrupt low memory. > > Well, COMPILE_TEST is here just for that, and it's actually quite > useful to detect potential compilation errors/warnings and make sure > the driver is portable. So, either we decide that readsx/writesx() are > not standard and we create a Kconfig option to reflect when an arch > implements them so that drivers using those funcs can at least be > compile-tested on a few archs, or we fix all archs that do not > implement those functions. What I meant is not specifically for compile testing, but for drivers that are used and required on regular platforms and can be used with either MMIO or PIO mode. serial_8250 is the typical example here, but there are others as well. Arnd