Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1614429

Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which apply indirect-IO

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From "Rafael J. Wysocki" <rafael@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which apply indirect-IO
Date Sat, 01 Apr 2017 12:00:01 +0200
Message-ID <trnZ7-SW-1@gated-at.bofh.it> (permalink)
References <tqJIl-7Se-11@gated-at.bofh.it> <tqJIl-7Se-9@gated-at.bofh.it> <tqP1o-3lj-35@gated-at.bofh.it> <tqYHo-14f-17@gated-at.bofh.it> <trdQ5-2Ec-5@gated-at.bofh.it> <trgNZ-4N2-31@gated-at.bofh.it>
X-Original-To "zhichang.yuan" <zhichang.yuan02@gmail.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=NJisdWd57nt+le9wTAsx6JFlMsLMDnwZaAXMv9BNYdU=; b=IU7mO5AO0LPyh/e7Z0L+AeOxpG34j1zASaqOH2auXSHIOhamGEzWdafgGNBT30tYru ORDz0xHuvv95aDj53++CuNx9RVZM+l8xZTF0J9vro8+ldXeoSEi92K+TcKYAbAYp5eGf X8OQbk5mzAbnbyZuudNwg1YFaWgsKsmdnlaN+fuHjOo+dq0dzg3CIzzMixER6oO6fHwx YiMHcD/F8Xrls3a1NL0gCUlQPTUeeJVoVWSb0s6Ge3Ye4MRX4C8VAsOitEF9LUU4V7rG ikPTlQB8KXibyvQpH/qfIJ2jSYFbWy+/KFFavMZaLSStOZZ2XXSPU9QP1rvRAhB5pr6M 1jKg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=NJisdWd57nt+le9wTAsx6JFlMsLMDnwZaAXMv9BNYdU=; b=oxpk85X8pB/z+2E7VMHnYwWcUcVkSjijwf9BBnsbmFIk0orBkfX8DeQtztSwSlpOXh Xx1TO6HIbwgpQNjq6TuYhJBJ6CeSnyVudPtxBsHYgxzfij2XXw9HWziHfe7ngagNpqSF HfjVgEnZvbtuDlBbTjI8wTZK3Z2z6uiKvq2VKLIDagy25FCUfwWX3qe6JWWNWNwewV5/ 7WiSbhdUzX5CHCYJZ/qkJ8UCSj3SmIKYDFVyC4+RWmCVFuYJWi9VS/I1FTv3hOsJKEtB Rb4iQCa8U0HA0hEKD2H8Cu2b08ZFK4sFLikX9cPgrVSUoU4l25dQD3bFgUZQkvTDV/EZ 2IyA==
X-Gm-Message-State AFeK/H1RtWePpskNvCx9aqpt59uSuboiaEDvcoTstjmCYkVnQiUNf604EzszCQ+/Ocb8hLwxh5jI9mdnZUnsjA==
X-Received by 10.157.20.39 with SMTP id h36mr4121005oth.169.1491040325196; Sat, 01 Apr 2017 02:52:05 -0700 (PDT)
MIME-Version 1.0
X-Google-Sender-Auth f1x1XaYu2Gu45H9Zbj41e7I5Fms
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 51
Organization linux.* mail to news gateway
X-Original-Cc "Rafael J. Wysocki" <rafael@kernel.org>, "zhichang.yuan" <yuanzhichang@hisilicon.com>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Rob Herring <robh+dt@kernel.org>, Frank Rowand <frowand.list@gmail.com>, Bjorn Helgaas <bhelgaas@google.com>, Arnd Bergmann <arnd@arndb.de>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Mark Rutland <mark.rutland@arm.com>, Brian Starkey <brian.starkey@arm.com>, Olof Johansson <olof@lixom.net>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Benjamin Herrenschmidt <benh@kernel.crashing.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, ACPI Devel Maling List <linux-acpi@vger.kernel.org>, linuxarm@huawei.com, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, Linux PCI <linux-pci@vger.kernel.org>, Corey Minyard <minyard@acm.org>, Zou Rongrong <zourongrong@gmail.com>, John Garry <john.garry@huawei.com>, Gabriele Paoloni <gabriele.paoloni@huawei.com>, kantyzc@163.com, xuwei5@hisilicon.com
X-Original-Date Sat, 1 Apr 2017 11:52:04 +0200
X-Original-Message-ID <CAJZ5v0iYD=2HVP9D-2fBBDUzkOJLrzzH7Rwg1ALQ-kBx-iSeTg@mail.gmail.com>
X-Original-References <1490887619-61732-1-git-send-email-yuanzhichang@hisilicon.com> <1490887619-61732-6-git-send-email-yuanzhichang@hisilicon.com> <1908501.jAQQKvjW4f@aspire.rjw.lan> <58DDFCBE.1030705@hisilicon.com> <CAJZ5v0gZdghH7jjd-zMmqXNkuvVVVSPDHfBrJXx5OXR2NE0KgA@mail.gmail.com> <bfdf2de0-c309-0139-4075-dfcd678b6d51@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1614429

Show key headers only | View raw


On Sat, Apr 1, 2017 at 4:16 AM, zhichang.yuan <zhichang.yuan02@gmail.com> wrote:
>
>
> On 04/01/2017 07:02 AM, Rafael J. Wysocki wrote:
>> On Fri, Mar 31, 2017 at 8:52 AM, zhichang.yuan
>> <yuanzhichang@hisilicon.com> wrote:
>>> Hi, Rafael,
>>>
>>> Thanks for reviewing this!
>>>
>>> On 2017/3/31 4:31, Rafael J. Wysocki wrote:
>>>> On Thursday, March 30, 2017 11:26:58 PM zhichang.yuan wrote:
>>>>> On some platforms(such as Hip06/Hip07), the legacy ISA/LPC devices access I/O
>>>>> with some special host-local I/O ports known on x86. To access the I/O
>>>>> peripherals, an indirect-IO mechanism is introduced to mapped the host-local
>>>>> I/O to system logical/fake PIO similar the PCI MMIO on architectures where no
>>>>> separate I/O space exists. Just as PCI MMIO, the host I/O range should be
>>>>> registered before probing the downstream devices and set up the I/O mapping.
>>>>> But current ACPI bus probing doesn't support these indirect-IO hosts/devices.
>>>>>
>>>>> This patch introdueces a new ACPI handler for this device category. Through the
>>>>> handler attach callback, the indirect-IO hosts I/O registration is done and
>>>>> all peripherals' I/O resources are translated into logic/fake PIO before
>>>>> starting the enumeration.
>>>>
>>>> Can you explain to me briefly what exactly this code is expected to be doing?
>>>
>>> As you know currently for ARM architecture IO space is memory mapped and
>>> is only used by pci devices. The port number is dynamically allocated
>>> converting the device IO address into a PIO token: i.e.
>>> http://lxr.free-electrons.com/source/drivers/acpi/pci_root.c#L745
>>> This patch is meant to support a new class of IO host controller
>>> that are not PCI based and that still require to have the IO addresses
>>> be translated in the same PIO token space as the PCI controller
>>
>> IOW, this is ARM-specific, right?
>
> Yes. The current host added in this patch with _HID "HISI0191" is on ARM64.

But the underlying mechanism is ARM-specific as well AFAICS.

> But, I think the handler driver is architecture dependent.

I guess you mean "independent"?  That doesn't matter.

If ARM64 is the only architecture to use it in foreseeable future
(which is the case for all I can say), it should go into acpi/arm64/
and please ask the maintainers thereof to review it.

Thanks,
Rafael

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V8 5/6] ACPI: Support the probing on the devices which apply  indirect-IO "zhichang.yuan" <yuanzhichang@hisilicon.com> - 2017-03-30 17:00 +0200
  Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which apply  indirect-IO "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-03-30 22:40 +0200
    Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which  apply indirect-IO "zhichang.yuan" <yuanzhichang@hisilicon.com> - 2017-03-31 09:00 +0200
      Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which  apply indirect-IO "Rafael J. Wysocki" <rafael@kernel.org> - 2017-04-01 01:10 +0200
        Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which  apply indirect-IO "zhichang.yuan" <zhichang.yuan02@gmail.com> - 2017-04-01 04:20 +0200
          Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which  apply indirect-IO "Rafael J. Wysocki" <rafael@kernel.org> - 2017-04-01 12:00 +0200
            RE: [PATCH V8 5/6] ACPI: Support the probing on the devices which  apply indirect-IO Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2017-04-02 17:00 +0200

csiph-web