From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763288AbcALRQa (ORCPT ); Tue, 12 Jan 2016 12:16:30 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37311 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762100AbcALRQZ (ORCPT ); Tue, 12 Jan 2016 12:16:25 -0500 Subject: Re: [PATCH V2 03/10] irqchip,GICv3,ACPI: Add redistributor support via GICC structures. To: Marc Zyngier , Hanjun Guo , tglx@linutronix.de, jason@lakedaemon.net, rjw@rjwysocki.net, lorenzo.pieralisi@arm.com, robert.richter@caviumnetworks.com, shijie.huang@arm.com, guohanjun@huawei.com, Suravee.Suthikulpanit@amd.com, "Chalamarla, Tirumalesh" References: <1450353133-15992-1-git-send-email-tn@semihalf.com> <1450353133-15992-4-git-send-email-tn@semihalf.com> <5694EB92.9030109@arm.com> <56951645.6070704@linaro.org> <569526C3.1090701@arm.com> Cc: mw@semihalf.com, graeme.gregory@linaro.org, Catalin.Marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ddaney.cavm@gmail.com From: Tomasz Nowicki Message-ID: <56953471.5000505@semihalf.com> Date: Tue, 12 Jan 2016 18:14:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <569526C3.1090701@arm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12.01.2016 17:16, Marc Zyngier wrote: >>> >>Also, the spec says: >>> >> >>> >>"On systems supporting GICv3 and above, this field holds the 64-bit >>> >>physical address of the associated Redistributor. If all of the GIC >>> >>Redistributors are in the always-on power domain, GICR structures should >>> >>be used to describe the Redistributors instead, and this field must be >>> >>set to 0." >>> >> >>> >>which triggers two questions: >>> >>- Can you access always the GICR_TYPER register without waking the >>> >>redistributor up? >> > >> >I missed this part, can you suggest how can we do that? accessing some >> >register before access to redistributor? > This redistributor may be in a power-domain that is off. Are you > guaranteed that you can access GICR_TYPER even when it is off? > >> > >>> >>- How do you cope with situations where some redistributors are in the >>> >>always-on domain, and some are not? >> > >> >I'm not sure if there is such hardware, if yes, do we need to fix >> >the spec first? > It is something that should definitely be clarified. Can we end-up in a > situation where some redistributors are described via the GICR > structure, and some via the GICC structure? The spec is a bit ambiguous. > To recap: 1. GICR and GICC subtables should be mutually exclusive, but ACPI spec should be clear about this. 2. We need to know if we can access GICR_TYPER without waking the redistributor up. Tirumalesh, can you please advice? Tomasz