From mboxrd@z Thu Jan 1 00:00:00 1970 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 A2699C433F5 for ; Mon, 7 Mar 2022 03:56:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234960AbiCGD4a (ORCPT ); Sun, 6 Mar 2022 22:56:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbiCGD42 (ORCPT ); Sun, 6 Mar 2022 22:56:28 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E89D86376; Sun, 6 Mar 2022 19:55:33 -0800 (PST) X-UUID: 2c5287f01a0f4632a8214a70db01be8c-20220307 X-UUID: 2c5287f01a0f4632a8214a70db01be8c-20220307 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1052100488; Mon, 07 Mar 2022 11:55:30 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Mon, 7 Mar 2022 11:55:29 +0800 Received: from mbjsdccf07.mediatek.inc (10.15.20.246) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 7 Mar 2022 11:55:28 +0800 From: To: CC: , , , , , , , , , , , Subject: RE: [PATCH] iommu/iova: Free all CPU rcache for retry when iova alloc failure Date: Mon, 7 Mar 2022 11:49:27 +0800 Message-ID: <20220307034927.23159-1-yf.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <906a446e-3e25-5813-d380-de699a84b6f4@arm.com> References: <906a446e-3e25-5813-d380-de699a84b6f4@arm.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2022-03-04 at 14:03 +0000, Robin Murphy wrote: > > OK, so either there's a mystery bug where IOVAs somehow get freed on > offline CPUs, or the hotplug notifier isn't working correctly, or > you've > contrived a situation where alloc_iova_fast() is actually racing > against > iova_cpuhp_dead(). In the latter case, the solution is "don't do > that". > > This change should not be necessary. > > Thanks, > Robin. Hi Robin, You are right, kernel 5.15 already has this patch, but kernel 5.10 not contain. Thanks, Yunfei.