From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760807AbcIACSp (ORCPT ); Wed, 31 Aug 2016 22:18:45 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:28750 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753708AbcIACSa (ORCPT ); Wed, 31 Aug 2016 22:18:30 -0400 Subject: Re: [RFC PATCH V2 3/3] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers To: Arnd Bergmann References: <1472644094-82731-1-git-send-email-liudongdong3@huawei.com> <1472644094-82731-4-git-send-email-liudongdong3@huawei.com> <5406169.iVLlEcSJ8X@wuerfel> CC: , , , , , , , , , , , , , From: Dongdong Liu Message-ID: <57C78F62.7030803@huawei.com> Date: Thu, 1 Sep 2016 10:16:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <5406169.iVLlEcSJ8X@wuerfel> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.61.21.156] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.57C78F6F.0087,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0e79f7effca3e7ec92383641845876a9 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2016/8/31 19:48, Arnd Bergmann 写道: > On Wednesday, August 31, 2016 7:48:14 PM CEST Dongdong Liu wrote: >> +static struct hisi_rc_res rc_res[] = { >> + { >> + HIP05, >> + { >> + DEFINE_RES_MEM(0xb0070000, SZ_4K), >> + DEFINE_RES_MEM(0xb0080000, SZ_4K), >> + DEFINE_RES_MEM(0xb0090000, SZ_4K), >> + DEFINE_RES_MEM(0xb00a0000, SZ_4K) >> + } >> + }, >> + { >> + HIP06, >> + { >> + DEFINE_RES_MEM(0xa0090000, SZ_4K), >> + DEFINE_RES_MEM(0xa0200000, SZ_4K), >> + DEFINE_RES_MEM(0xa00a0000, SZ_4K), >> + DEFINE_RES_MEM(0xa00b0000, SZ_4K) >> + } >> + }, >> + { >> + HIP07, >> + { >> + DEFINE_RES_MEM(0xa0090000, SZ_4K), >> + DEFINE_RES_MEM(0xa0200000, SZ_4K), >> + DEFINE_RES_MEM(0xa00a0000, SZ_4K), >> + DEFINE_RES_MEM(0xa00b0000, SZ_4K), >> + DEFINE_RES_MEM(0x8a0090000UL, SZ_4K), >> + DEFINE_RES_MEM(0x8a0200000UL, SZ_4K), >> + DEFINE_RES_MEM(0x8a00a0000UL, SZ_4K), >> + DEFINE_RES_MEM(0x8a00b0000UL, SZ_4K), >> + DEFINE_RES_MEM(0x600a0090000UL, SZ_4K), >> + DEFINE_RES_MEM(0x600a0200000UL, SZ_4K), >> + DEFINE_RES_MEM(0x600a00a0000UL, SZ_4K), >> + DEFINE_RES_MEM(0x600a00b0000UL, SZ_4K), >> + DEFINE_RES_MEM(0x700a0090000UL, SZ_4K), >> + DEFINE_RES_MEM(0x700a0200000UL, SZ_4K), >> + DEFINE_RES_MEM(0x700a00a0000UL, SZ_4K), >> + DEFINE_RES_MEM(0x700a00b0000UL, SZ_4K) >> + } >> + }, > > I don't know much about ACPI, but I'm pretty sure this is not > the normal way to find MMIO resources. Why not read them from > the ACPI tables? > Hi Arnd Our host bridge is non ECAM only for the RC bus config space; for any other bus underneath the root bus we support ECAM access. We have not found a comfortable ACPI way to describle RC itself config (not ECAM) resource . Thanks Dongdong > Arnd > > . >