Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FBF2C6FD1F for ; Thu, 9 Mar 2023 08:58:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbjCII6Q (ORCPT ); Thu, 9 Mar 2023 03:58:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbjCII5b (ORCPT ); Thu, 9 Mar 2023 03:57:31 -0500 Received: from smtp-fw-6001.amazon.com (smtp-fw-6001.amazon.com [52.95.48.154]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7297E500F for ; Thu, 9 Mar 2023 00:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1678352186; x=1709888186; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:mime-version: content-transfer-encoding; bh=a5vYyq3M8U/A7avZVWbkEyfBt22G/RH3fSlgSQLmuEQ=; b=SWMNsetf0TUlL9PKkG8I4fsspxiN80FANzKGFP39WhsgH8m5GoZ0xBRZ wYFZuZV2HTV+iSmYwuebhrtvy9X/pGJ3z6CAWFcN/HwaS4BjFs7iTSOJu wA3GJ7CrNwwRiIDh4XZOdSlhodBf1w7xl0KL5lmFUGTKdTJ0iLd3wvB0N 4=; X-IronPort-AV: E=Sophos;i="5.98,245,1673913600"; d="scan'208";a="307184690" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-pdx-2b-m6i4x-cadc3fbd.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-6001.iad6.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 08:56:23 +0000 Received: from EX19D020EUA004.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2b-m6i4x-cadc3fbd.us-west-2.amazon.com (Postfix) with ESMTPS id AACE8A04BB; Thu, 9 Mar 2023 08:56:20 +0000 (UTC) Received: from EX19D030EUC004.ant.amazon.com (10.252.61.164) by EX19D020EUA004.ant.amazon.com (10.252.50.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.24; Thu, 9 Mar 2023 08:56:18 +0000 Received: from EX19D030EUC004.ant.amazon.com (10.252.61.164) by EX19D030EUC004.ant.amazon.com (10.252.61.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1118.24; Thu, 9 Mar 2023 08:56:18 +0000 Received: from EX19D030EUC004.ant.amazon.com ([fe80::f98a:db18:b0eb:477]) by EX19D030EUC004.ant.amazon.com ([fe80::f98a:db18:b0eb:477%3]) with mapi id 15.02.1118.024; Thu, 9 Mar 2023 08:56:18 +0000 From: "Krcka, Tomas" To: Robin Murphy CC: "Krcka, Tomas" , "baolu.lu@linux.intel.com" , "iommu@lists.linux.dev" , "joro@8bytes.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "shameerali.kolothum.thodi@huawei.com" , "will@kernel.org" Subject: Re: [PATCH] iommu/arm-smmu-v3: Fix event queue overflow acknowledgment Thread-Topic: [PATCH] iommu/arm-smmu-v3: Fix event queue overflow acknowledgment Thread-Index: AQHZUmUDQvjM+UGuakej3zFJkdLkgg== Date: Thu, 9 Mar 2023 08:56:18 +0000 Message-ID: References: <8291b66d-b9b8-47c9-f5ed-a4e951c92154@arm.com> <20230308140204.83249-1-krckatom@amazon.de> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.252.51.153] Content-Type: text/plain; charset="utf-8" Content-ID: <2D7688FD1BB7ED4C947CE3CC61B1C854@amazon.com> MIME-Version: 1.0 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IA0KPiBPbiAyMDIzLTAzLTA4IDE0OjAyLCBUb21hcyBLcmNrYSB3cm90ZToNCj4+Pj4gV2hl biBhbiBvdmVyZmxvdyBvY2N1cnMgaW4gdGhlIGV2ZW50IHF1ZXVlLCB0aGUgU01NVSB0b2dnbGVz IG92ZXJmbG93DQo+Pj4+IGZsYWcgT1ZGTEcgaW4gdGhlIFBST0QgcmVnaXN0ZXIuDQo+Pj4+IFRo ZSBldnRxIHRocmVhZCBpcyBzdXBwb3NlZCB0byBhY2tub3dsZWRnZSB0aGUgb3ZlcmZsb3cgZmxh ZyBieSB0b2dnbGluZw0KPj4+PiBmbGFnIE9WQUNLRkxHIGluIHRoZSBDT05TIHJlZ2lzdGVyLCBv dGhlcndpc2UgdGhlIG92ZXJmbG93IGNvbmRpdGlvbiBpcw0KPj4+PiBzdGlsbCBhY3RpdmUgKE9W RkxHICE9IE9WQUNLRkxHKS4NCj4+Pj4gDQo+Pj4+IEN1cnJlbnRseSB0aGUgYWNrbm93bGVkZ2Ug cmVnaXN0ZXIgaXMgdG9nZ2xlZCBhZnRlciBjbGVhcmluZyB0aGUgZXZlbnQNCj4+Pj4gcXVldWUg YnV0IGlzIG5ldmVyIHByb3BhZ2F0ZWQgdG8gdGhlIGhhcmR3YXJlLiBJdCB3b3VsZCBiZSBkb25l IG5leHQNCj4+Pj4gdGltZSB3aGVuIGV4ZWN1dGluZyBldnRxIHRocmVhZC4NCj4+Pj4gDQo+Pj4+ IFRoZSBTTU1VIHN0aWxsIGFkZHMgZWxlbWVudHMgdG8gdGhlIHF1ZXVlIHdoZW4gdGhlIG92ZXJm bG93IGNvbmRpdGlvbiBpcw0KPj4+PiBhY3RpdmUgYnV0IGFueSBzdWJzZ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