Received: by 10.223.176.46 with SMTP id f43csp764301wra; Fri, 19 Jan 2018 01:22:59 -0800 (PST) X-Google-Smtp-Source: ACJfBosjd7ClW46UU2IzlF7nckmuxeMgLUsuuYKYiYnNXB4ryfmADjf9RD9y8dVJYltrjRhQUwAA X-Received: by 10.99.126.73 with SMTP id o9mr22919002pgn.429.1516353779809; Fri, 19 Jan 2018 01:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516353779; cv=none; d=google.com; s=arc-20160816; b=wyHBw/FfSTRLG0KobSiRSmIKaoJrJ3BmQiPasxzGSFK060YTLz8LwRaUcQCypmRcUY 3f7HWbzO0ERQ7nGFARIYXQ6OuqN07SNlzzbsCciTKYlNR3yGQLFJkBDWrVqI9n0363P3 EE64BWcbYX2NhA9ZffwPSTan4wv9zDHKNSD5J3Xzr/u9JgpgEqB1Ip51LWJK1ZrOyc3/ ZdxZQgAbmKnyMLpIpT6xdeGxmOeU3xZwbEeJU4iqyccgb9Y/jLD/F0ulOR3JjlwMtWar txkLflpol7ttZIvKM0BEBs646LrflRgOUkKWuBu46CuJm7OkfKAmBKZs58uMcjXSP+1X NYNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=ciwffpu9QlcfTTnF8BigcaKJ72GfKy+nQ7ftk0NdE1o=; b=h1wd4hdNhGM2hhKpfE+pa/7pKEg34k6Z0sOBLJf6Gq8UOnRR+l0wbiwrekY/LWdo/E /qYwdov+Eqwjxx6v+AyTn0Z92zDIIJBer88+jHbgESco175ssDCdiVhBPtT0FDYrht1J HP3WRSbf/xdNGb9OwGeWXCvgHugFLomNur5ZwH5Yzr7T2f1IY9m6hzfFltRvCqMOpW7l pXeUbqf7DDSgBCbwxLexe50lpVvA+5qUjPrrvMAr+WnljClrSEMFCXsc/xKhibKRWEb1 6c99eFKbvUzM5zRyVKLByUff7jGdJ561qp8Q22n/4i9tIqnXMnxJru/tWMj5PATvuUz/ xdLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t79si9003760pfg.318.2018.01.19.01.22.43; Fri, 19 Jan 2018 01:22:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754877AbeASJWO (ORCPT + 99 others); Fri, 19 Jan 2018 04:22:14 -0500 Received: from foss.arm.com ([217.140.101.70]:36182 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841AbeASJWK (ORCPT ); Fri, 19 Jan 2018 04:22:10 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7787C1596; Fri, 19 Jan 2018 01:22:09 -0800 (PST) Received: from [10.1.207.62] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 382E23F41F; Fri, 19 Jan 2018 01:22:08 -0800 (PST) Subject: Re: [PATCH 4/8] irqchip/gic-v3: add ability to save/restore GIC/ITS state To: Brian Norris Cc: Derek Basehore , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rafael.j.wysocki@intel.com, tglx@linutronix.de, Sudeep Holla References: <20180112212422.148625-1-dbasehore@chromium.org> <20180112212422.148625-5-dbasehore@chromium.org> <86fu79fx3n.wl-marc.zyngier@arm.com> <20180118233243.GA209323@google.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: Date: Fri, 19 Jan 2018 09:22:06 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180118233243.GA209323@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/01/18 23:33, Brian Norris wrote: > Hi, > > On Sat, Jan 13, 2018 at 06:10:52PM +0000, Marc Zyngier wrote: >> On Fri, 12 Jan 2018 21:24:18 +0000, >> Derek Basehore wrote: >>> >>> Some platforms power off GIC logic in S3, so we need to save/restore >> >> S3 is a not a GIC concept, and is only vaguely mentioned in terms of >> the rk3399 silicon, if grep serves me right. Please expand on what >> state this is exactly. >> >>> state. This adds a DT-binding to save/restore the GICD/GICR/GITS >>> states using the new CPU_PM_SYSTEM_ENTER/EXIT CPU PM states. >> >> DT binding? I can't see any in this patch. >> >>> >>> Change-Id: I1fb2117296373fa67397fdd4a8960077b241462e >> >> It's been mentioned somewhere else in the thread: these tags have no >> purpose in the kernel. Please sanitise your patches before posting them. >> >>> Signed-off-by: Derek Basehore >>> Signed-off-by: Brian Norris >> >> Who is the author of this patch? If that's a joined authorship, please >> use the Co-Developed-by: tag. > > I only did some minimal code shuffling when rebasing and working with > this code in our downstream tree. I probably didn't actually need to > apply my Signed-off-by at the time, but Derek carried it along anyway. > > Derek is the author, and I'd be perfectly fine dropping my S-o-b from > these patches. > >>> diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c >>> index 9a7a15049903..95d37fb6f458 100644 >>> --- a/drivers/irqchip/irq-gic-v3.c >>> +++ b/drivers/irqchip/irq-gic-v3.c [...] >>> + if (IS_ERR(gicr_ctx)) { >>> + err = PTR_ERR(gicr_ctx); >>> + goto out_free_gicd_ctx; >>> + } >>> + } >> >> You really want to kill the box because something went wrong in your >> save area allocation? It doesn't feel quite right. > > Isn't that what all drivers (including irqchip drivers) do on failed > allocations? What else would we do? Pretend that we can limp along and > just b0rk the system when it suspends? It would certainly give the user a chance to diagnostic the problem (which is otherwise pretty hard if the system doesn't boot). We kill the system if we cannot continue. In this case, we can. So why not try it? Thanks, M. -- Jazz is not dead. It just smells funny...