Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp368334ybt; Fri, 19 Jun 2020 03:59:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwik8G4FPwWUDnpTehygWIYEscIkE0yGWhZ7Tw5AXOKfRodZ9/Uc+JsvIhw9QF+ezTxCvKF X-Received: by 2002:a17:906:95d6:: with SMTP id n22mr3078464ejy.138.1592564363341; Fri, 19 Jun 2020 03:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592564363; cv=none; d=google.com; s=arc-20160816; b=Ax+MsfjAwyzvXUTqcROqD43LaiYEtMQiA7uGHsxpY/G1G6MyuqmTV3uU4TIyTkZ+tX XsLLHBLZQMrI4/lsa7ZTd+7iLuT1gpmr/anq8VUM0lxuxPdGigyk7YHwuf+Mi6PcfysS DQ/x/NezMP3H3drBRk7H12yQzvYM1EoRPEXnX95pR3f61CNEV/Kdd2UTgOlwF7Gisz6M 6EBuLaptFvYO56Zbtoo6oSwSW+4nAUYIwbIvcPekS04SSHZBs0wMj6k7PGAvT/rNJoLQ saIRAMs1j6Faf66gg8AiTRM28R7Fn71UyiFf/SiVre9ac/w+m0TxUPTQGKp/7XVWCDnr jOGA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=oL5TlAXNn0Cmq0gGUlNt/GBvCP0nGgQwLNZafI+vGMI=; b=THq50GE8GS4gqQ7B+rwncY4K4GoNYZMywmtlRtYY0G0psCzVG73AwDG8F3GyfC6uB0 I7UCKbwWW6rMurIdDq4NegvTbZe+w/jqpQfJCse1Gs69dD0UWgsA1OpEoXH1V09iJpEo Dv9Mtu1jOByJdvOtPV5/vlgYk39jOnFmUOfoqjsalUD1SLgqr3G086cdgQW6SLg0WpTx aG2OBJrbeiFzur+6qlGQcr3pgqqTYh3ugoZ7JfLkz0gHAmjeK4LQUqxMJQu4IsP/gGNJ OYpOh4dRzik2V4bLkZ/doRmWCgwX7khyE9ZYkKYIGxU2GXp6oaA1M0cDd9gYiXuRwd3o aLyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=G4R7llYP; 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 g22si3574186ejp.270.2020.06.19.03.58.55; Fri, 19 Jun 2020 03:59:23 -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=G4R7llYP; 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 S1732504AbgFSK5B (ORCPT + 99 others); Fri, 19 Jun 2020 06:57:01 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:50750 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1732362AbgFSK5A (ORCPT ); Fri, 19 Jun 2020 06:57:00 -0400 X-UUID: e3ffb29f32964897bee5235e74b17c9d-20200619 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=oL5TlAXNn0Cmq0gGUlNt/GBvCP0nGgQwLNZafI+vGMI=; b=G4R7llYPfIjj7ym3FzaJV/68DG/cT08PfJXOegMySuIVyHSzT4bEctKewdYsQibaowdi6+8kI3Td3Buq0oVOhjMEGhRuTemDV00wnO4Mu3xRDwPinvR19TsorLRMIa1uLUsd6bdz8V/NhpN4NwkOOenHry401P0SYN3+NIdttg4=; X-UUID: e3ffb29f32964897bee5235e74b17c9d-20200619 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1280163925; Fri, 19 Jun 2020 18:56:54 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 19 Jun 2020 18:56:51 +0800 Received: from [10.15.20.246] (10.15.20.246) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 19 Jun 2020 18:56:50 +0800 Message-ID: <1592564184.5692.6.camel@mbjsdccf07> Subject: Re: [PATCH v4 6/7] iommu/mediatek: Add REG_MMU_WR_LEN definition preparing for mt6779 From: chao hao To: Matthias Brugger CC: Joerg Roedel , Rob Herring , , , , , , , Yong Wu , FY Yang , Chao Hao Date: Fri, 19 Jun 2020 18:56:24 +0800 In-Reply-To: <9e2c52d6-a887-1977-8877-fbcd30cb4261@gmail.com> References: <20200617030029.4082-1-chao.hao@mediatek.com> <20200617030029.4082-7-chao.hao@mediatek.com> <9e2c52d6-a887-1977-8877-fbcd30cb4261@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 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 T24gV2VkLCAyMDIwLTA2LTE3IGF0IDExOjIyICswMjAwLCBNYXR0aGlhcyBCcnVnZ2VyIHdyb3Rl Og0KPiANCj4gT24gMTc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