Received: by 10.223.176.46 with SMTP id f43csp131489wra; Fri, 19 Jan 2018 14:59:45 -0800 (PST) X-Google-Smtp-Source: AH8x224U5G0ck4n1MF9Mj31AHou7Y1tjig8NTBo9xfxOF4yyf9ezrjOg60ofXpVeaQTK6ZYBk6G3 X-Received: by 10.98.135.76 with SMTP id i73mr58398pfe.183.1516402785115; Fri, 19 Jan 2018 14:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516402785; cv=none; d=google.com; s=arc-20160816; b=krSz7rGmUS4Cnq9u5mpKA+cMrJJeg8FzgxedgIXLbzyoQQqkrhBRflRUopJyAmC6/G AJqLdNZP4kW+sx/ffU5TZb8vrG/DpLCL+/jSBsMV2OysIHWIfXKqBCsUa71GX8arDCSu mF/xqEf7OffyUePOeJfIREcFa6vHxPCPN714lCxu6tkmvzhtJHI8W9KX4cqeYdZPv1Pe rchpr6vo2hKR8GCiljRJEkAtQHhxm112peEZ/T7TOlJ5AfKX9+Td5SscLgwQcx4totxS 0kR8uLzSdozmlsJz1xylRiGxdww9vBlTVldaWcRPisj8/mhfLelanANf/FZV+ofAwZ0j 8x2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=M+HLED/RLHpYr975Yw3UvMV0E4nX4TOqeSyTLR3DcPA=; b=DNtgAUHm8svvrCSkGd8sHxU1sFqv2AEeJOYm1UvCzAq2vQuAwVg6xAK2dzgQYujahL rHn9i5NYBSmDlsrGZHLEvKJ1I+f3BQ0rrvzZ4ZSVfHkqLN47D9RyNBjeDXVhISDut0q7 pmwSX7+k8fF6GQky7JdJnBOXIhIEKli940wmyc8YixwOqL86JG6+/7BxkOL0qGDvLp9j uYP7p+YMVqFYhxv63pn93YvoxQA+CbkFwUfhOt5TWWJcOqhsNRA9eDnrgZuSD4p3cGGD mTS9tMMGLm6+tLbc8zzLneuoXE7TX/CxHOEYvGAuVhpeHSacD0eJxb9HQJNklTPhQ9UN rLTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=cIuKjTUN; dkim=fail header.i=@chromium.org header.s=google header.b=ELuVbAsm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si6736791pgu.714.2018.01.19.14.59.30; Fri, 19 Jan 2018 14:59:45 -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; dkim=fail header.i=@google.com header.s=20161025 header.b=cIuKjTUN; dkim=fail header.i=@chromium.org header.s=google header.b=ELuVbAsm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756579AbeASW6Y (ORCPT + 99 others); Fri, 19 Jan 2018 17:58:24 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33099 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754263AbeASW6R (ORCPT ); Fri, 19 Jan 2018 17:58:17 -0500 Received: by mail-wm0-f66.google.com with SMTP id x4so9204871wmc.0 for ; Fri, 19 Jan 2018 14:58:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=M+HLED/RLHpYr975Yw3UvMV0E4nX4TOqeSyTLR3DcPA=; b=cIuKjTUN+pX9Jud8Gl0wIobkkMNZT+Wi+pTQq2q2QKwo46OgwVxLkL7MaurM+8TfgQ dY5dWSBtZC0IHHPxlKDO/DIBFyg0cZxgZo/y/7N6p03G60+fS9AQ9fDuwaMAi76HqMu8 9xFe4iZ/dSvPnyS76iEJu4xbKIhiElZG+dyVJ4boVTvYTD4n8o7Tk/NmDgSnZGWVVvOp 1qQo9ajn93q9RQiipjImS4B+RjvjCEWXSpty394YCLD+HaVPXmPskmdPqrTjxLYOOU0k M3RtvM+xMT29cUv3HeiuZKmflYhHWIBegMLoQbWYKv8iqe1lphUMifIrNIkdVti60H6q LuwQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=M+HLED/RLHpYr975Yw3UvMV0E4nX4TOqeSyTLR3DcPA=; b=ELuVbAsmErB8Fxi45G+771dlbTLEIDfzBDIGi4wt6yE2aA0GTE23ge40ooOOzpbwTE G2klpFhJGlj/xQcXD2wGqkE0uwzKzxUs8NuV8iq/qOylERsOHxKxmL31hOmBFzBaBfyr 9l+FdTT1PfId/noecPIVHQV/IAW5NVL/daivs= 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=M+HLED/RLHpYr975Yw3UvMV0E4nX4TOqeSyTLR3DcPA=; b=Y4SvaitjVzCyZkDRRdUk1MEL950F7vCdkLYqpq6cxjv3Z1ia1x5a/Suq/UM9hr3W0t kEAM44E+Po/UAnCENnAwomjZy/beozhz2zvuthUs7TdgOWn8L4Q/dv/exXLI7G8wcZht A33X/ghlDcH+HTPIrrw37MJgEUDWcgUth08yk6lIQ6kPBwh7kqE/EAHXkPbI8kBc9mtf 23MAq+PL45/8TE0dZhgoETbBqjRhJLQoZb/ArrKA5IXhEyvxJYNpjJBYQpLkJi7aSHLT +8CQC9A4hlyMzijHxup31ma4OpU4UEUQalH4RUOxawVAi7OHAEKNmhMKrbbijwjTHAPR lR+g== X-Gm-Message-State: AKwxytctdjq6h0Te6divSaDizC8tb2HObAFIipYzBdwBeMN3qC7X3hrU 1A+vthSdiGdX0Y1JEkGNmWNobrm0/JeIIg7l1/OjMg== X-Received: by 10.28.222.5 with SMTP id v5mr298627wmg.161.1516402695656; Fri, 19 Jan 2018 14:58:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.124.6 with HTTP; Fri, 19 Jan 2018 14:58:14 -0800 (PST) In-Reply-To: References: <20180112212422.148625-1-dbasehore@chromium.org> <20180112212422.148625-5-dbasehore@chromium.org> <86fu79fx3n.wl-marc.zyngier@arm.com> <20180118233243.GA209323@google.com> From: "dbasehore ." Date: Fri, 19 Jan 2018 14:58:14 -0800 X-Google-Sender-Auth: St0lEBbOY1K4Y1N4MYs0obzbe80 Message-ID: Subject: Re: [PATCH 4/8] irqchip/gic-v3: add ability to save/restore GIC/ITS state To: Marc Zyngier Cc: Brian Norris , linux-kernel , Linux-pm mailing list , "Wysocki, Rafael J" , Thomas Gleixner , Sudeep Holla Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 19, 2018 at 1:22 AM, Marc Zyngier wrote: > 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? I'm in the middle of a lot of refactoring that will make this irrelevant, so I guess we can leave it at that. I'll disable the feature and print an error in the case of allocation failures (in the parts that remain) in the next version. Still debugging the broken ATF code which is now going to be used, so no ETA on that. > > Thanks, > > M. > -- > Jazz is not dead. It just smells funny...