Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp934907imm; Fri, 17 Aug 2018 09:02:25 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxN2rdfYdTWy2+fWLeVuUcIYXDns4bdoMIaRe7TOMZ3GYg6Bwr1g9u1xcknNex6xTpUzq3j X-Received: by 2002:a17:902:2804:: with SMTP id e4-v6mr25110566plb.327.1534521745597; Fri, 17 Aug 2018 09:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534521745; cv=none; d=google.com; s=arc-20160816; b=RJP6bCKqN1o26KEopNMVyWMc2YWzXSzQDsLpaDfUcaKGZAEYENuTDmXSsOL8WZB1GJ KCOC63RjblBsE3w0WMY4uV9Ivb2WqFIl1dveTdOerF740ok3znt+wpZCDLeRpfbip7DQ LxSn+9FrDCs3Hah0ZjInishuZizheT3Qddti3vX57I32L1SfJKrorYAlbxFnRM2uNNdG YYmFYbfw6ir2JB1rYo6TX29lyHHgkJoUvsNlEgxUwohuA7RQeLo5lGJL3m13ARidEf5q 6qHJGZyb7I+6kCUqlmmCQDr9QzvosdHa8Y1Bll8Mp6XrsQSIXwZTqxzv2u7VGVsdjRRT TkkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=plniMVtbQAKEc/sHOZ+oOVpcfekGzzzWfTQ/izSyLtU=; b=ZoaHz7K3rBfb91WMNWH1E8izULB3dey/iuXw7QX8iEFOISzr4uA64wen2a/Oc7TP58 r9jHK1QGKLuPiGbfE1xC/tij0pM2FmVV9gdXeqMe2MAYX/RMn4XToSbNHDJTbS4Szk6c /3dC7bkHZkE8sWrctycwNPxI4lSD0F1Ishz+w3r9Ttu7CjQAsn0JOM8gJQHVOoJErNaD 4P52luCBgojxgmpm8NY5PYmq4AXfT7kCgc6xdKqZtVyQrplvdJbeEwhR7XLoWxPizAQ5 UK85eXHWMcd1cLN7NcuVw04kcJIHFGL3TDp5LkK+J//JAMkDfIH3arY9mI88UJznBQoF Fpxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=MrDzMezJ; dkim=pass header.i=@codeaurora.org header.s=default header.b=MrDzMezJ; 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 b2-v6si2600464plm.202.2018.08.17.09.02.09; Fri, 17 Aug 2018 09:02:25 -0700 (PDT) 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=pass header.i=@codeaurora.org header.s=default header.b=MrDzMezJ; dkim=pass header.i=@codeaurora.org header.s=default header.b=MrDzMezJ; 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 S1727765AbeHQTD6 (ORCPT + 99 others); Fri, 17 Aug 2018 15:03:58 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48342 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbeHQTD6 (ORCPT ); Fri, 17 Aug 2018 15:03:58 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9C787625EF; Fri, 17 Aug 2018 16:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534521603; bh=iSjImKyPVi9pPwPoyujt09XMtiPU9ScKghiTzZD8HLc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MrDzMezJ9xOUjLf6HXJAlspbbLt4LK96sdLZxm2nzrb9kI27A/SA6D5O74VGNK1Ir eGbwNtNDmat7NNxSRWyuColIT1gP+V6KKZ5wz0dMr+/tD4U+iagsZn2KS2dnGcETQI 3OFyEGx0/Qdg3DIh41CvOOilirda5EXyP45i8a80= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CCC1F625E1; Fri, 17 Aug 2018 16:00:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534521603; bh=iSjImKyPVi9pPwPoyujt09XMtiPU9ScKghiTzZD8HLc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MrDzMezJ9xOUjLf6HXJAlspbbLt4LK96sdLZxm2nzrb9kI27A/SA6D5O74VGNK1Ir eGbwNtNDmat7NNxSRWyuColIT1gP+V6KKZ5wz0dMr+/tD4U+iagsZn2KS2dnGcETQI 3OFyEGx0/Qdg3DIh41CvOOilirda5EXyP45i8a80= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CCC1F625E1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Fri, 17 Aug 2018 10:00:02 -0600 From: Lina Iyer To: Marc Zyngier Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Sudeep Holla Subject: Re: [PATCH] irqchip/gic-v3: Allow interrupt to be configured as wake-up sources Message-ID: <20180817160002.GP5081@codeaurora.org> References: <20180817091804.993-1-marc.zyngier@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180817091804.993-1-marc.zyngier@arm.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 17 2018 at 03:18 -0600, Marc Zyngier wrote: >Although GICv3 doesn't directly offers support for wake-up interrupts >and relies on external HW for this, it shouldn't prevent the driver >for such HW from doing it work. > >Let's set the required flags on the irq_chip structures. > >Reported-by: Lina Iyer >Signed-off-by: Marc Zyngier >--- >Lina, please let me know how this goes. If that fixes your issues, >I'll queue it as a fix for the current cycle. > Thanks for the quick turn around, Marc. Tested-by: Lina Iyer > drivers/irqchip/irq-gic-v3.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c >index 76ea56d779a1..2d71c79bc698 100644 >--- a/drivers/irqchip/irq-gic-v3.c >+++ b/drivers/irqchip/irq-gic-v3.c >@@ -861,7 +861,9 @@ static struct irq_chip gic_chip = { > .irq_set_affinity = gic_set_affinity, > .irq_get_irqchip_state = gic_irq_get_irqchip_state, > .irq_set_irqchip_state = gic_irq_set_irqchip_state, >- .flags = IRQCHIP_SET_TYPE_MASKED, >+ .flags = IRQCHIP_SET_TYPE_MASKED | >+ IRQCHIP_SKIP_SET_WAKE | >+ IRQCHIP_MASK_ON_SUSPEND, > }; > > static struct irq_chip gic_eoimode1_chip = { >@@ -874,7 +876,9 @@ static struct irq_chip gic_eoimode1_chip = { > .irq_get_irqchip_state = gic_irq_get_irqchip_state, > .irq_set_irqchip_state = gic_irq_set_irqchip_state, > .irq_set_vcpu_affinity = gic_irq_set_vcpu_affinity, >- .flags = IRQCHIP_SET_TYPE_MASKED, >+ .flags = IRQCHIP_SET_TYPE_MASKED | >+ IRQCHIP_SKIP_SET_WAKE | >+ IRQCHIP_MASK_ON_SUSPEND, > }; > > #define GIC_ID_NR (1U << gic_data.rdists.id_bits) >-- >2.18.0 >