Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp506336ybm; Fri, 29 May 2020 05:39:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLBn4sBUGB41gVnllsz22ZrZrT3rxG1UEQiI9dVBRIZ8WH1vgW1N2qsG7SjJzjTPuPWSe3 X-Received: by 2002:aa7:d48d:: with SMTP id b13mr8172676edr.262.1590755993793; Fri, 29 May 2020 05:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590755993; cv=none; d=google.com; s=arc-20160816; b=LqDuRBQBijg/YB5nIfJY+NFwJdxV02jYo/CMn++cgpmBpYhjv4ivjaw0E1CZfADa+h ID3WuAmzeY9jUZFEj2tQmr7OPWIdzXdVdHVMllPFliUvQDQB6JP6Yb7QL4s6mpWkpMhK +Fk//BQ+EKU+pIsF7xpm13F0bs2Rf76ssblaAl9mI2IOogr17BlwAH6gAAXtumunm9Tk fotatyKbgsgBCWk4vq1/skxpRiFUJGLadWVZ5Fyt78aap4R7oScfg1X9DURX2Qq1Mh3k +aQvAx/5AuPOaFRxDWY2ttj/U07lQnaOJu1zTzkJiST3a48aDl8PoaaW+/wRSxL5ZmAn dDeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:ironport-sdr :dkim-signature; bh=woh8X2qLrbIivKtA6+U+XPyL5ypCpHHxsWaHLUytZKA=; b=f9qbEDl3cbmeZQsRfBF79Y5JL521FL/Awo5OLZGESozf/EdcSZePGaOIIQco47pZPM kOeoccKPYsxTfJm9xTBSaL9330+0AJFbUdOhY9db2p3JFzQvb4MZjHhj2BilFS2yDLlq IndY8saU0e65Ga2Pf3YBhk9MW7rOaeCwJm6X+b/HfQ1b9PZ1NmN/GkKFrwm0Obhr4sCi SwmPYU0e1DeOrgwF+jw+SiBsnFDJprz1Wo+CqC1o5g0lyZu8Un1Od0WXnjMtSSQ8Vyhs ovEJL86QLUtsGvyrxsXWu9Zx0s9bO/ETJedVW3Zp/w+Z0xDJBDSJD/YyBr0w0vp/aNMn 4omw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=AogmTAY1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si853889edt.490.2020.05.29.05.39.30; Fri, 29 May 2020 05:39:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=AogmTAY1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726944AbgE2Mgv (ORCPT + 99 others); Fri, 29 May 2020 08:36:51 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:5449 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726568AbgE2Mgt (ORCPT ); Fri, 29 May 2020 08:36:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1590755809; x=1622291809; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=woh8X2qLrbIivKtA6+U+XPyL5ypCpHHxsWaHLUytZKA=; b=AogmTAY111V33REybQg+qmLwlkzlyH63n3mOGJaPs90kRqJgqrxm9/IM 23HuKll6K7S0JyA1wGwrvX48ESLdLAgYXqNsfvJFjaAnDtjg4Ne0JqfS/ qcgNlOtZu++ZNQXdmn/coJ/oApAq5y/FcBzGXm+hs/SdPMo/dALilRJdN w=; IronPort-SDR: i7jAYIcp/8lJse9/Fl3P00Ar8WnP5toJeJ93ITjuwxTGsMUN0ZVc5ttZhRs/GcHkBEadvX+1aC SUzg+QPdoYCQ== X-IronPort-AV: E=Sophos;i="5.73,448,1583193600"; d="scan'208";a="39186509" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1d-474bcd9f.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 29 May 2020 12:36:46 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-474bcd9f.us-east-1.amazon.com (Postfix) with ESMTPS id 769AAA262A; Fri, 29 May 2020 12:36:44 +0000 (UTC) Received: from EX13D21UWB002.ant.amazon.com (10.43.161.177) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 12:36:42 +0000 Received: from EX13D02UWB004.ant.amazon.com (10.43.161.11) by EX13D21UWB002.ant.amazon.com (10.43.161.177) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 12:36:42 +0000 Received: from EX13D02UWB004.ant.amazon.com ([10.43.161.11]) by EX13D02UWB004.ant.amazon.com ([10.43.161.11]) with mapi id 15.00.1497.006; Fri, 29 May 2020 12:36:43 +0000 From: "Saidi, Ali" To: Marc Zyngier CC: Thomas Gleixner , Jason Cooper , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "Herrenschmidt, Benjamin" , "Woodhouse, David" , "Zilberman, Zeev" , "Machulsky, Zorik" Subject: Re: [PATCH] irqchip/gic-v3-its: Don't try to move a disabled irq Thread-Topic: [PATCH] irqchip/gic-v3-its: Don't try to move a disabled irq Thread-Index: AQHWNbXOKigmt6yOIESl6vIJ9+Em4g== Date: Fri, 29 May 2020 12:36:42 +0000 Message-ID: <2C4F431F-8140-4C82-B4BD-E51DE618FC08@amazon.com> References: <20200529015501.15771-1-alisaidi@amazon.com>,<8c3be990888ecfb7cca9503853dc4aac@kernel.org> In-Reply-To: <8c3be990888ecfb7cca9503853dc4aac@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTWFyYywNCg0KPiBPbiBNYXkgMjksIDIwMjAsIGF0IDM6MzMgQU0sIE1hcmMgWnluZ2llciA8 bWF6QGtlcm5lbC5vcmc+IHdyb3RlOg0KPiANCj4gSGkgQWxpLA0KPiANCj4+IE9uIDIwMjAtMDUt MjkgMDI6NTUsIEFsaSBTYWlkaSB3cm90ZToNCj4+IElmIGFuIGludGVycnVwdCBpcyBkaXNhYmxl ZCB0aGUgSVRTIGRyaXZlciBoYXMgc2VudCBhIGRpc2NhcmQgcmVtb3ZpbmcNCj4+IHRoZSBEZXZp Y2VJRCBhbmQgRXZlbnRJRCBmcm9tIHRoZSBJVFQuIEFmdGVyIHRoaXMgb2NjdXJzIGl0IGNhbid0 IGJlDQo+PiBtb3ZlZCB0byBhbm90aGVyIGNvbGxlY3Rpb24gd2l0aCBhIE1PVkkgYW5kIGEgY29t bWFuZCBlcnJvciBvY2N1cnMgaWYNCj4+IGF0dGVtcHRlZC4gQmVmb3JlIGlzc3VpbmcgdGhlIE1P VkkgY29tbWFuZCBtYWtlIHN1cmUgdGhhdCB0aGUgSVJRIGlzbid0DQo+PiBkaXNhYmx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