Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1115693ybt; Fri, 10 Jul 2020 23:55:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXKRfVDaTNL8HCq8wwVtZw5QI2oCh78m4t0rQdWXqnlizZUgAhDjHrC/QcHGcuVZ8djAPV X-Received: by 2002:a50:f392:: with SMTP id g18mr58076706edm.151.1594450540594; Fri, 10 Jul 2020 23:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594450540; cv=none; d=google.com; s=arc-20160816; b=dUjaJ6oU3rT22LTlnlV5L5hm4TPDFVXwxytRzXtC7kcIjoPldhP/4d6AHOaBzptUXU eraMB3HxF7HaGaQftcORp15xC+sUpu3D9n47QCVQ+u9BRGussX0ouAxeghNA5dLr47ib sG9ji48qxgfRt6LXeHtIFzuZdjx8R1ox3YJAjiPfHA5qrm1JukUaJPySiWqEXvbVEV/e h1kbVUmty3TlStIz9GB9YHepbRxFAgfAB4JQz10KdWCjpO5Vw6gb5JZzMyjjcH4fXhQg yOPprKKAVXudrZfQheLcRYuM361FYA6LFXPNgFfSU1DSvnuwua/0FWiMTtEg3TvY6Kuu Skjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=i+xI+KeJuezDZCl6yM9uO3x45152AOUlch6QK5pwCQk=; b=CqUwr8CU/EiTPQkRSCr376QIIJM3/Fl9uFmy/egnFyYsveQOa6FtdEVD4wnjB7D9fL QXR3ZHAqd+RZccvxsm0CiqHTp37vL71PBl/YjBtFE2S6bwb8VHxPbHg0/W8jqGH3NchC jTG6Gy/JGRm/0f0UoM1H4BjDn2C87DI/w+p3w5ZHwemcekV7v223EgTcx7ZjFaMBasDv Cwk/AD56y0fTnF6486hxXeF0DO8xpZtXIQiaUWkNf7pky+wSi1AKhi4Tl2gPxEbc0ks4 QivuiWWJlrxVLKvTGiRGzzc+wpv7yMoM4i9G/d0FUUxA1GgXQmQL8PMIJrl6u8Io9i8r 55nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=LZXfok9i; 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 n23si5257860ejx.656.2020.07.10.23.55.18; Fri, 10 Jul 2020 23:55:40 -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=@mediatek.com header.s=dk header.b=LZXfok9i; 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 S1728369AbgGKGw1 (ORCPT + 99 others); Sat, 11 Jul 2020 02:52:27 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:36895 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727984AbgGKGw1 (ORCPT ); Sat, 11 Jul 2020 02:52:27 -0400 X-UUID: d00f0842725b4934b79905f092bbc8fc-20200711 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=i+xI+KeJuezDZCl6yM9uO3x45152AOUlch6QK5pwCQk=; b=LZXfok9ig7/OmOzfQGA1FLxgGHqe/1TYwmxbA36TrTczirJv3cVfPLEy5gwcob8R7EtS+95yBTEmEC8uayDYz3z0opliqpP2ueBoVWUUAA06BVRmrRsaSA1Pt64el0Af1an5xY+SdDUL2UIR1kYHZdiOR3hh5ck6l5G14W9DCls=; X-UUID: d00f0842725b4934b79905f092bbc8fc-20200711 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 619948064; Sat, 11 Jul 2020 14:52:23 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Jul 2020 14:52:19 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Jul 2020 14:52:18 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy CC: Will Deacon , Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH 17/21] iommu/mediatek: Support report iova 34bit translation fault in ISR Date: Sat, 11 Jul 2020 14:48:42 +0800 Message-ID: <20200711064846.16007-18-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200711064846.16007-1-yong.wu@mediatek.com> References: <20200711064846.16007-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: E322B87B68A8DC1470E5469B2953FD5E87CB7C7BC1EDF1B4D37DF27B250DBE302000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SWYgdGhlIGlvdmEgaXMgb3ZlciAzMmJpdCwgdGhlIGZhdWx0IHN0YXR1cyByZWdpc3RlciBiaXQg aXMgYSBsaXR0bGUNCmRpZmZlcmVudC4gQWRkIGEgZmxh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