From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE8CFC4360F for ; Tue, 2 Apr 2019 09:51:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ADA3A20883 for ; Tue, 2 Apr 2019 09:51:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="m/BywpLf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ADA3A20883 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wBCeui2omJSnLT116r3KGw+ClnHvldyONWFNbOp1bVw=; b=m/BywpLfbLvHENgFX4uuDbtg5 1KRSW/C9/N47PJaNHk0TukCrnnmG/e68sJ9ZNM2xcJjFNdTsFr+odpTjBN7B8CgPy/qVaBOVKIAh4 b2Pt2RJtPTWgMa4sGyE704qg2hW3YmrcmXy0z7fCsXMCUBMpwuQylW5y3x3hxORXueIa2mOR2F7M7 gYUls3XaAUyuxTxHOzLJ7uGSv+JRjgHNjPMbGiPjsWVJLU8lToyLMQwOXKr8FKQ2p312imIvemXRJ WLI0BjNa+/QICvOj6c/w4v4o4DRymIV9ayidEf0CjgdzEgjMTe87Toohj47ZQdi1u5emrL7jtV5He 9mfg9MWlA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBG4Y-0001Rd-9P; Tue, 02 Apr 2019 09:51:14 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBG4U-0001QY-OH for linux-arm-kernel@lists.infradead.org; Tue, 02 Apr 2019 09:51:12 +0000 Received: from DGGEMS401-HUB.china.huawei.com (unknown [10.3.19.201]) by Forcepoint Email with ESMTP id 855DE74FF9DE1D79078F; Tue, 2 Apr 2019 17:46:25 +0800 (CST) Received: from [127.0.0.1] (10.202.227.238) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.408.0; Tue, 2 Apr 2019 17:46:18 +0800 Subject: Re: [RFC PATCH v2 1/3] resource: Request IO port regions from children of ioport_resource To: Lorenzo Pieralisi References: <1553105650-28012-1-git-send-email-john.garry@huawei.com> <1553105650-28012-2-git-send-email-john.garry@huawei.com> <20190325233255.GF24180@google.com> <20190326224810.GY24180@google.com> <20190328174655.GC19825@red-moon> <418943e2-19cd-f4b9-b5e1-2a49bce99b66@huawei.com> <20190329122206.GA28421@e107981-ln.cambridge.arm.com> From: John Garry Message-ID: <2b98fa8b-d12a-8d48-e47d-075d25c47bb2@huawei.com> Date: Tue, 2 Apr 2019 10:46:10 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20190329122206.GA28421@e107981-ln.cambridge.arm.com> X-Originating-IP: [10.202.227.238] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190402_025110_956064_953E66DD X-CRM114-Status: GOOD ( 12.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: wangkefeng.wang@huawei.com, arnd@arndb.de, rafael@kernel.org, linux-pci@vger.kernel.org, Will Deacon , linux-kernel@vger.kernel.org, linuxarm@huawei.com, andy.shevchenko@gmail.com, Bjorn Helgaas , linux@roeck-us.net, Catalin Marinas , bp@suse.de, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 29/03/2019 12:22, Lorenzo Pieralisi wrote: >>> > >Side note: these drivers can't be compiled on PPC, it would be >>> > >good to understand why, I have a hunch it can be related. >> > >> > I mentioned this earlier: >> > >> > I saw that in commits like 746cdfbf01c0 ("hwmon: Avoid building drivers >> > forpowerpc that read/write ISA addresses"), PPC would not build these >> > drivers, as, like arm, it has no native ISA. >> > >> > However I still don't think just avoiding compiling these drivers for >> > certain archs solves the problem. > No it does not but I would like to understand how relevant is fixing > those drivers (that should not use ISA IO space without first claiming > their resources, for the records) given that PPC did not even try and > apparently that's not a problem. > Hi Lorenzo, Those drivers should still be fixed up separately. The tricky part in this series is making the resource claim fail if there is no IO space mapped/accessible at the addresses requested. However I would still like to fix up the low level IO port accessors to discard accesses when no IO space is mapped. Thanks, John >> > >> > [...] >> > >>>>>>> > >>>>>[1] https://www.spinics.net/lists/linux-pci _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel