Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4260886pxb; Mon, 1 Feb 2021 17:33:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjvbsWKU+P2Wg7PZ679w3YhCswo/4fW9gcRjQ+c3uue0keZ/hzKB8f5DO/faULxfKtolFw X-Received: by 2002:a05:6402:100b:: with SMTP id c11mr21525621edu.193.1612229586694; Mon, 01 Feb 2021 17:33:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612229586; cv=none; d=google.com; s=arc-20160816; b=acDBz/dCMHsnObWEFMmfTJXE2gx9oUD9vt2431DH+BNZxGyFkh/fHgDq6h9+biy4ju atwSll8JAhIdyASilLEJGcGjQk2Z9d3v7FYWH6V2LQuXiKsG1ak15cGD1wuccFbCvTw5 0RfV14aUWL6p13VFDQ7z0zyqn9j9wejTo7iU44F0V4w1Oeg+BWMpf/stmralYcVlNznb 5OusmnfAgXNIghOPskHdcbWigiGzGUXyKpV1shTMd/owiW43RoSt0Lzc6Dnj6asI3Py+ 9MQdCwbwTlAVsskLG6pa+iP5XFqxdruSA3qS4Ra7nSmXIL3XSU8N85MQioirrej1fbih nTXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=J3x52rLYllyw6VRGlPTtdTLgRiZI9s1w8kgapGIcpuo=; b=dSq8SWlKFG+ZZaWAfAeHejAKU+ReBFpys22v5kQaQDdS0VNGia7gF5Jp41XTUMtXqe wZxoFCRAu3ZUCSg5TB4BhUvwY4Unu15tVKxxxmtxPp9qSIzntwevB/1V2GDfbtMldAp9 GbptSxOZFCejn+cuXicj8u2CPVD0EwOXS7sfIKaq5vK1EwhzZLYBcJkW/9SWaP5NWJNC Ia3IqUL945dFpA+jsh01S7+TIEOy6NHPh3mRI1R8bDdMXOkgV2MgKn41pqgN5U8NBzM+ FEIyLoLr7V3ZznD3+FrCwNniFQs3wnKPMvgXOcwqbv57yYkI2F6hNi2WXtQgfIcr1Z01 SHOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="b2t9H/HD"; 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=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si15774015edv.406.2021.02.01.17.32.41; Mon, 01 Feb 2021 17:33:06 -0800 (PST) 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=@mediatek.com header.s=dk header.b="b2t9H/HD"; 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=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbhBBBbr (ORCPT + 99 others); Mon, 1 Feb 2021 20:31:47 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:5331 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229543AbhBBBbq (ORCPT ); Mon, 1 Feb 2021 20:31:46 -0500 X-UUID: cda5d4d113ca42bbb099e175ef846e14-20210202 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=J3x52rLYllyw6VRGlPTtdTLgRiZI9s1w8kgapGIcpuo=; b=b2t9H/HD7MO/64tenkUKzflw/fYrhq6naszlpBRPwLHbySkw4sGKW71GiLwn6YH0hnUi/y4+LhYe+iF2cpfp918y6G1LVvwVUF0Kl7zfEJFocU0KCzgel0gbTIn+7ZBUTkMb/HLiH/UW4gd9jTZl3/zbPMlQSNalDPx6gB94Y+Y=; X-UUID: cda5d4d113ca42bbb099e175ef846e14-20210202 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 410525093; Tue, 02 Feb 2021 09:30:57 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS32N1.mediatek.inc (172.27.4.71) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 2 Feb 2021 09:30:50 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 2 Feb 2021 09:30:49 +0800 Message-ID: <1612229449.2524.2.camel@mhfsdcap03> Subject: Re: [PATCH] iommu: Properly pass gfp_t in _iommu_map() to avoid atomic sleeping From: Yong Wu To: Douglas Anderson CC: Will Deacon , , Robin Murphy , , , Date: Tue, 2 Feb 2021 09:30:49 +0800 In-Reply-To: <20210201170611.1.I64a7b62579287d668d7c89e105dcedf45d641063@changeid> References: <20210201170611.1.I64a7b62579287d668d7c89e105dcedf45d641063@changeid> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: D4D6B793B12B73E0D43EA4A0C2B613719A984C7639A6230D7A507072D26ECEAC2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIxLTAyLTAxIGF0IDE3OjA2IC0wODAwLCBEb3VnbGFzIEFuZGVyc29uIHdyb3Rl Og0KPiBTbGVlcGluZyB3aGlsZSBhdG9taWMgPSBiYWQuICB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