Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbdIFRgO (ORCPT ); Wed, 6 Sep 2017 13:36:14 -0400 Received: from mail-sn1nam01on0067.outbound.protection.outlook.com ([104.47.32.67]:16297 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751994AbdIFRgM (ORCPT ); Wed, 6 Sep 2017 13:36:12 -0400 Subject: Re: [PATCH] gpio: thunderx: select IRQ_DOMAIN_HIERARCHY instead of depends on To: Masahiro Yamada , David Daney Cc: linux-gpio@vger.kernel.org, David Daney , Linus Walleij , Linux Kernel Mailing List References: <1504662052-12478-1-git-send-email-yamada.masahiro@socionext.com> <32679e9c-7ad7-a632-4842-6e8e8b820d26@caviumnetworks.com> From: David Daney Message-ID: <8cfd9a26-39d9-6c1d-3414-e0f5f3123ced@caviumnetworks.com> Date: Wed, 6 Sep 2017 10:36:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.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: [50.233.148.156] X-ClientProxiedBy: BY2PR07CA0029.namprd07.prod.outlook.com (10.166.107.24) To BN6PR07MB3490.namprd07.prod.outlook.com (10.161.153.29) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 51eaa3c8-08a3-4b3d-4e21-08d4f54dc2d8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN6PR07MB3490; X-Microsoft-Exchange-Diagnostics: 1;BN6PR07MB3490;3:qN0RbYnen2HB0puu3fLphHE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oUEBL6MoY9tYl5M32bBYeHUqBwbWgzm1uH0NNEz4vDTeWGD4gBFMt6Mq6WiMBcbKO9ZkjSDWo74xzwxR8K0XWKRRUwf6OZqRC4TkzjO3bY4wUqhdMpG0iv+TsKo3J4av1wVsvxO5epwpxRe4pDptkSExNBcNJOxFDJgJMLjCism4KXhK8yFRBfFfiHLLipgX0vtO0FXD4AKpAaH1xWXSrZNrcM8RdTBR/FB5im+rLuJp47S5728bExdQuObV5vtbz9jqpP3qT0RLlsYr7ovob6Ubs6aJIJhauA8YuWqraEkpjGun8jjkpJ4l7b3qiLQ1drDJ1CyjuDoKtmiL76mzin6EwKXt1kwg/E7WMPLuM3VSg2MGwyDQV6++vwd5XXiRQDHYlHajwkx6hP2YDrlw/jJaiA6p04uloNdi/XfD/6E9kOi968w5tqg=;4:tg5WaEHWpTQVAoSd5eJCb3ammvzexc38EtNSMU8mCEYdqmR02j5S3yyxvC/YKXL33vMLsxe0z5INM561Nzsp2yAB8esehUYijXWw/Kr3T1x1dbfc/CuEfQgVe7O4+BW0lWgcjHBpH6JkhZ2a99buul7Jlj3j1ocDHw6S1b7CHYrwgAbD19T3GLJcmiV10zuhPHL0N8/oyMhfFtlhGjarkCDFTPtgMOqXGX3RGcnhn6+PROCdv+LYIxSU/R0LE5ty X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR07MB3490;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR07MB3490; X-Forefront-PRVS: 0422860ED4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(377454003)(189002)(377424004)(199003)(24454002)(5660300001)(68736007)(72206003)(53546010)(69596002)(6486002)(76176999)(229853002)(4326008)(31686004)(81166006)(53936002)(4001350100001)(8676002)(23676002)(50986999)(54356999)(81156014)(25786009)(42186005)(189998001)(8936002)(83506001)(2906002)(105586002)(106356001)(65956001)(7736002)(3846002)(2950100002)(42882006)(305945005)(65806001)(6246003)(36756003)(66066001)(65826007)(6512007)(6116002)(31696002)(47776003)(33646002)(50466002)(478600001)(6506006)(53416004)(54906002)(101416001)(97736004)(230700001)(64126003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR07MB3490;H:ddl.caveonetworks.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=David.Daney@cavium.com; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjA3TUIzNDkwOzIzOmVRV2F2b0tGRTF1SndEM25NUDdCVGZBa1NS?= =?utf-8?B?czVrQlhTTVJDc2dHRE9GZDhzZlMrRzdBZkk4T2dkSG5NV0doWnRKQjMzV1V5?= =?utf-8?B?Y215TW9rUm5nSzBtd0NYTVMvZmJnajJGMFJBQUtTUDhUZDBHSndZZXFGcnpa?= =?utf-8?B?WFI0dzFrWHVyNGJkQm1PRENCck5LcTcxc0VMZDdKQ2ZNK1lvcTRqdThGeWo1?= =?utf-8?B?cTVDZ2RYMGhSdWd4d1hFd1BIV2VDYzFJU3RMb1JXOXdQaUtYYmNWY2lRT3Fn?= =?utf-8?B?akZLcmdoQkwxVytkVUVCRldjTXFZcWQxNVoxVHNCQ21CTDJmZzAwT08xbFF4?= =?utf-8?B?QzVub3gxbmoxWUVZd2FZNm5nMUcwNFgvVTdvV0U1VGk3R3ZwZ2I3NGdtSUV0?= =?utf-8?B?Q01y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XyMqUxUh2+4hLm2arssbZv8pLBOpzz/6k1mipqBNSm16Ld5iSLff5hKmRaeGZb3mFbeNTmfY8VEHNcKXe0R1WIggRLanBwea3rHrlwPgr7IBCRr3YctbS7nKMZg==;24:EOY3xHTYs9RyMzS1KRN1NtUtprisV4uDxOuVIS1AcH2jxjK3d103EhW/bEFPDbXfeZZWgWa/EHtiX3XN58KRx8igJdwUHCj9eGQL0CUrqiI=;7:H9/sEC5aLHMX25e7lj7zRxypRFQLCOb9URm8o9x68X/FpsJuRjwzavvYTvfX97rO9XRmaeuYxlnvoZ7tmnVlwaExLecxfSGFVdckgQ4O0T6T90ibD6FrXevi/oOwDVbLW+c2Gf1ij0PzNN71GbAaB6Nz9wYu3LXctcn47faYv0mkbs8MRTpSNZlOuNY3hFLGv4cgI9iQXZ3TgHDgNqWYBTM3t6zoeawZvz2G4MgUJw4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2017 17:36:08.7106 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3490 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1371 Lines: 44 On 09/05/2017 09:20 PM, Masahiro Yamada wrote: > Hi David, > > > 2017-09-06 11:09 GMT+09:00 David Daney : >> On 09/05/2017 06:40 PM, Masahiro Yamada wrote: >>> >>> IRQ_DOMAIN_HIERARCHY is not user-configurable, but supposed to be >>> selected by drivers that need IRQ domain hierarchy support. >>> >>> GPIO_THUNDERX is the only user of "depends on IRQ_DOMAIN_HIERARCHY". >>> This means, we can not enable GPIO_THUNDERX unless other drivers >>> select IRQ_DOMAIN_HIERARCHY elsewhere. This is odd. Flip the logic. >>> >>> Signed-off-by: Masahiro Yamada >> >> >> IRQ_DOMAIN_HIERARCHY is set as a result of ARCH_THUNDER (this SoC hardware), >> so it actually works as-is. > > > Right, ARCH_THUNDER does not select it directly, > but does it indirectly. (this is not so clear...) > > ARCH_THUNDER -> ARM64 -> ARM_GIC -> IRQ_DOMAIN_HIERARCHY > > > >> That said, this looks like a reasonable >> improvement, and will allow the COMPILE_TEST to enable it, so... >> >> Acked-by: David Daney > > > BTW, I could not understand your intention of > (64BIT && COMPILE_TEST) > The driver uses readq()/writeq(), which are not available in some 32BIT kernels. So to ensure that it can build without error we depend on 64BIT as a proxy for the availability of readq()/writeq() David