Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 212B4C433F5 for ; Fri, 17 Dec 2021 16:30:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239143AbhLQQao (ORCPT ); Fri, 17 Dec 2021 11:30:44 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:4305 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231193AbhLQQam (ORCPT ); Fri, 17 Dec 2021 11:30:42 -0500 Received: from fraeml736-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4JFvVs4yb0z67gb0; Sat, 18 Dec 2021 00:26:13 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml736-chm.china.huawei.com (10.206.15.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 17 Dec 2021 17:30:40 +0100 Received: from [10.47.26.158] (10.47.26.158) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 17 Dec 2021 16:30:39 +0000 Subject: Re: [GIT PULL 1/2] asm-generic: rework PCI I/O space access To: Arnd Bergmann CC: Niklas Schnelle , Linus Torvalds , linux-arch , linux-pci , Linux Kernel Mailing List References: <5e8dfbd2-a6c0-6d02-53e9-1f29aebcc44e@huawei.com> <47744c7bce7b7bb37edee7f249d61dc57ac1fbc5.camel@linux.ibm.com> <849d70bddde1cfcb3ab1163970a148ff447ee94b.camel@linux.ibm.com> <53746e42-23a2-049d-9b38-dcfbaaae728f@huawei.com> From: John Garry Message-ID: Date: Fri, 17 Dec 2021 16:30:15 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.26.158] X-ClientProxiedBy: lhreml751-chm.china.huawei.com (10.201.108.201) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/12/2021 15:55, Arnd Bergmann wrote: >> > If you have a better way of finding the affected drivers, >> > that would be great. >> >> Assuming arm64 should select HAS_IOPORT, I am talking about f71805f as >> an example. According to that patch, this driver additionally depends on >> HAS_IOPORT; however I would rather arm64, like powerpc, should not allow >> that driver to be built at all. > Agreed, I missed these when I looked through the HAS_IOPORT users, > that's why I suggested to split up that part of the patch per subsystem > so they can be inspected more carefully. ok > > My feeling is that in this case we want some other dependency, e.g. a > new CONFIG_LPC. It should actually be possible to use this driver on > any machine with an LPC bus, which would by definition be the primary > I/O space, so it should be possible to load it on Arm64. You did suggest HARDCODED_IOPORT earlier in this thread, and the definition/premise there seemed sensible to me. Anyway it seems practical to make all these changes in a single series, so need a way forward as Niklas has no such changes for this additional kconfig option. As a start, may I suggest we at least have Niklas' patch committed to a dev branch based on -next or latest mainline release for further analysis? Thanks, John