Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2023552ybt; Thu, 2 Jul 2020 21:43:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3i+xcO10//nQrBVyzfF9DZkzPD0T+HX7UJVFGNNLfAXO0smxFNAQ7tGXqSiZ3g5QpNah1 X-Received: by 2002:a50:f384:: with SMTP id g4mr37009070edm.205.1593751434839; Thu, 02 Jul 2020 21:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593751434; cv=none; d=google.com; s=arc-20160816; b=mEuppZZLPqm/jUkMeUWu2YOz5FvkvsxnbtuEBoHlo+FSNqoNW3HeMiQF1rzou00TiG n1DXduxM5r9c/Ex+Y4htQzvqdiMPDWBu16dAtOGU3H+OyrotuvIuEmmDwKF/MXD1ewTj dmYxCaQLuF83KJt1JnHksl0XuZIwftO0mI9WjRVIove1dmuq78wmvVBFhkczr0Z1r2sN mZEW4510SYD/v54Id9NTmfatjFsQvacz/nqIEfpY0lLlMWCXwrfg9qhyzvmPR/U657J4 7d4mddMIE74c7SS4xlwBP8Xo2WEa2lMAYJBR2i1wMRmNZu/AzwMvYfouvh6aJ00sv/0V SmVA== 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=63JZsqC6w//8CgJm6fa1lmJ7QHbUUzma+Qf01H5Anv8=; b=UP0fwhwWjPgA3Gob0opv6Y/yisewG0EaRwtsKRgtNGb4+Z7Nh/6LlLuvoSucsVqUlM DvMAQHJlsA4hNUrPptw1viGl6PnxwekRT5YDbPzGpeJQLJgToqoQ/KNxSw5QxlZjCw6V hxhKRyDTmwOX7eD3qpOWZpNvuI92SCShjmLnr08w0gRUna/4IQIwI5CJQYePzR6/y8Fw XqrFoyBuHIK2Q5Mh1HDT9CWNPYRJK9rLswmCQDXJhXwgwIQjeKojom0esSSjSIdrE5PP Xc7c3fP9fIuWJ2tOLjsk+w+atCXITrwQi3jKf/KipHE35Nr1WW3VXK/9PiXxsr63Vv0k 3Mrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=g1LCJS5H; 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 e10si6890994edq.65.2020.07.02.21.43.32; Thu, 02 Jul 2020 21:43:54 -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=g1LCJS5H; 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 S1726367AbgGCEnH (ORCPT + 99 others); Fri, 3 Jul 2020 00:43:07 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:61942 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726356AbgGCEnF (ORCPT ); Fri, 3 Jul 2020 00:43:05 -0400 X-UUID: 943d89eda33948a7b1818c5d62fca207-20200703 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=63JZsqC6w//8CgJm6fa1lmJ7QHbUUzma+Qf01H5Anv8=; b=g1LCJS5Hv65yo6qlxb3DZbY3KvRXZz7eG9No9UCo/gg0JdjjzSmTesHfoHBbNTcTa8vbpI0aM/u3qWzxxxbe+K+vmlZt45yKbiNLkP6HBCRGtUQJi2nNr+mMY1wBh1dOX+nEDDOIJTT8CWfWa+SnEdD//hhsznE8x5EJHCNhhmk=; X-UUID: 943d89eda33948a7b1818c5d62fca207-20200703 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2087207907; Fri, 03 Jul 2020 12:43:01 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 3 Jul 2020 12:42:53 +0800 Received: from localhost.localdomain (10.15.20.246) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 3 Jul 2020 12:42:49 +0800 From: Chao Hao To: Joerg Roedel , Rob Herring , Matthias Brugger CC: , , , , , , Chao Hao , FY Yang , Yong Wu , TH Yang Subject: [PATCH v6 09/10] iommu/mediatek: Modify MMU_CTRL register setting Date: Fri, 3 Jul 2020 12:41:26 +0800 Message-ID: <20200703044127.27438-10-chao.hao@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200703044127.27438-1-chao.hao@mediatek.com> References: <20200703044127.27438-1-chao.hao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 VGhlIE1NVV9DVFJMIHJlZ2lzdGVyIG9mIE1UODE3MyBpcyBkaWZmZXJlbnQgZnJvbSBvdGhlciBT b0NzLg0KVGhlIGluX29yZGVyX3dyX2VuIGlzIGJpdFs5XSB3aGljaCBpcyB6ZXJvIGJ5IGRlZmF1 bHQuDQpPdGhlciBTb0NzIGhhdmUgdGhlIHZ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