Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3755164rwb; Sun, 20 Nov 2022 21:39:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf7g6Dv3//Sm1loYjXzYQW96DQ21E0EFLEn92lrpHRhn2+9QP2X0wSXyzf+E4qEfBxBcFN5i X-Received: by 2002:a17:90a:7885:b0:20a:d81d:a8 with SMTP id x5-20020a17090a788500b0020ad81d00a8mr24521556pjk.177.1669009160100; Sun, 20 Nov 2022 21:39:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669009160; cv=pass; d=google.com; s=arc-20160816; b=GeEPkTo6zOEREo03lbTs9UJizMjXiC6l2JFdhk4raPdvHbch69l2kxgw9jdjvYOAXW X2BL3TGBSjX1cjSPnrIqu1qlmWx3LYKdBadz/+lFkL9JnXeSa6LlJlzE8vLQ+GfGM8aU dvku5fzw2Id/MfPS4liNuwAzwtw0oYZnDcUPSUGmjEI5mUourAXdCF2mAwJNBluBU7ac qRnd4jt6oFVpCDQFtUMv53EVYbklnva8l8IRIaC6YVl3YO705fanVCCX3/fLft5Qj+Ue shU2tEokqfFgl3CMZ396438ZQS8Tn2Lbnn15RnDmckZSQ1NsOz1ForDBupx4caPwQd4H 9wcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=Mc48Hynd/ws2zh6uHfv5FOf8hE9ji7Rv8HAmmTAxz1A=; b=DrnhfDBk4sE7HNRbGZgRpNHLKM72uXy7pUIwjXm8IOBiIzMOsLN7jcLZIhQrDrgL/z CQhODGiYo197U2LKG5yHAj4mKsjqI4rkJmmYzp52TMN6XMNRgWb6KHA+c+7jKneZPZ3w hNawOh7xP1ao/jduMLIOMfz3xgwA2GTIwvFTsZ1ATuf2vpHO7Zr1Gv9tmPMwfFq1Vfm8 8jTGIRJGvUBmiotU78h8mf/IvX5s6nl/bCgDrhYBBAwC1rk2kRdvTZsGU0bWAvXMjZ0p Wp7N9oL0UJDUEPrDmBL2FYthMzh8DnPLbJ05esPTuDnY9hxlct5Q3mFB7Q3W0JkTkY/k oz7Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lb7aBWUF; dkim=pass header.i=@mediateko365.onmicrosoft.com header.s=selector2-mediateko365-onmicrosoft-com header.b=P9sRIyLj; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a17090abd0f00b0021011c16872si12666451pjr.44.2022.11.20.21.39.08; Sun, 20 Nov 2022 21:39:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lb7aBWUF; dkim=pass header.i=@mediateko365.onmicrosoft.com header.s=selector2-mediateko365-onmicrosoft-com header.b=P9sRIyLj; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229379AbiKUFSV (ORCPT + 90 others); Mon, 21 Nov 2022 00:18:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbiKUFSH (ORCPT ); Mon, 21 Nov 2022 00:18:07 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1FF8DF2B; Sun, 20 Nov 2022 21:18:05 -0800 (PST) X-UUID: 908a7b99af754b4083cbdc324f89f807-20221121 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=MIME-Version:Content-Transfer-Encoding:Content-ID:Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From; bh=Mc48Hynd/ws2zh6uHfv5FOf8hE9ji7Rv8HAmmTAxz1A=; b=lb7aBWUFB5kVOFY5u+JmxmYcmUa6hi5anEx7enRsDQ/Z+2ZQAdHTgO8TlaNsrc36O+0tnGlfa01R6Ynj/eWM4R7yCH5dW2Y9KdGXkb0eIPSMgWQYj7NerPyKxvj5zNehCxFga9kdshv0MHShPdghoIk5qjW51WdMys+/4kJQ0y8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:e8cc72d3-23d0-4fd7-b1cd-3205c1f979e2,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:62cd327,CLOUDID:78a0c0db-6ad4-42ff-91f3-18e0272db660,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 908a7b99af754b4083cbdc324f89f807-20221121 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1563286320; Mon, 21 Nov 2022 13:17:58 +0800 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Mon, 21 Nov 2022 13:17:57 +0800 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (172.21.101.239) by mtkmbs10n1.mediatek.com (172.21.101.34) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 21 Nov 2022 13:17:57 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LAGuQ1Jzlj2qAZNwCDWaBLU61TgN0CnIqyPScAdzzgpzA6JoHtZRfz0reDZ8iRwdSrIAdfuA3MUHn0tyTuWdfvmIWm1umOMCI97IYqLoWFjBy7taEZqZGShP5latbVJpTE8LMdKEXPp1TS0mbljp4xxKBLJV3JyStaGd86kKhwwtB3AdS62MEfseGhpui0bCbM1Z57ORn9UWF8gONjcopBM+u3elJ6niaGElwLRbLDQ8eGZnsjsV1CMMrqxIXlc5uw5zSKdwbZmvzn3MPI73rdG5VmWfdG+Juaf5OMFGhGrXdlxLTIE3ZQoYW5JvZfWUfUDEf+PcSKyvvJc20i7ayQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Mc48Hynd/ws2zh6uHfv5FOf8hE9ji7Rv8HAmmTAxz1A=; b=a81g/SxKfPLFBJ4FZoCg8Q5x0fn6gU94A2wLTCFyYyUDod6P2839U1JyNHoBvj3hzZL8wBEUGbc1elXs0UsZgETtCH7YdrplcHdWUA1LSAE9Sa98ND0hIyPYfen4+yZtUghwD/hO3PwDUpE4HtK2Jo1AQFhzXlkqReI04R7D30hwb07gJmDseRuqm0nys8hx4z2vkA3lwdD+7qhlI5gSeMcWmcn60LtXytdbZpbkHBS7rLRu5thoFv/Tdf/e/UhjSpfFrfMsTQaUAJXeab/lfsXAl+sFothxT9UAupZ/iZ1XcyGPFJRt+0KdSp4NgrZmGTP/VRcpPE9V0dnFiEsWww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mediatek.com; dmarc=pass action=none header.from=mediatek.com; dkim=pass header.d=mediatek.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediateko365.onmicrosoft.com; s=selector2-mediateko365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Mc48Hynd/ws2zh6uHfv5FOf8hE9ji7Rv8HAmmTAxz1A=; b=P9sRIyLjwi2vOQqofUd+DrVB4a2vxP+EN36yjWzlVMbTBD1dZW1MXRgpod8XeBO7N5Vym7HLridQXTL4hByDusQ3PvX60U4PwtDWUgEstv4oT0cvkZOeXqSvF3ozjjymSFFzQUeQkG1DN9CR6J7Xuv6SjsQGrmy47OvXViyXTqg= Received: from SI2PR03MB5885.apcprd03.prod.outlook.com (2603:1096:4:142::7) by SEYPR03MB6603.apcprd03.prod.outlook.com (2603:1096:101:85::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Mon, 21 Nov 2022 05:17:54 +0000 Received: from SI2PR03MB5885.apcprd03.prod.outlook.com ([fe80::be04:b90a:e582:9b0b]) by SI2PR03MB5885.apcprd03.prod.outlook.com ([fe80::be04:b90a:e582:9b0b%3]) with mapi id 15.20.5834.015; Mon, 21 Nov 2022 05:17:54 +0000 From: =?utf-8?B?WW9uZyBXdSAo5ZC05YuHKQ==?= To: =?utf-8?B?Q2hlbmdjaSBYdSAo6K645om/6LWQKQ==?= CC: "linux-mediatek@lists.infradead.org" , "robh+dt@kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "robin.murphy@arm.com" , "joro@8bytes.org" , Project_Global_Chrome_Upstream_Group , "linux-arm-kernel@lists.infradead.org" , "krzysztof.kozlowski+dt@linaro.org" , "iommu@lists.linux.dev" , "matthias.bgg@gmail.com" , "will@kernel.org" Subject: Re: [PATCH v4 2/4] iommu/mediatek: Adjust mtk_iommu_config flow Thread-Topic: [PATCH v4 2/4] iommu/mediatek: Adjust mtk_iommu_config flow Thread-Index: AQHY4r0QorQZNZOmwEeM6et2DUpC+K5JC70A Date: Mon, 21 Nov 2022 05:17:54 +0000 Message-ID: <2ea0120c31d4230701aa031daf57317720f78cf0.camel@mediatek.com> References: <20221018064239.13391-1-chengci.xu@mediatek.com> <20221018064239.13391-3-chengci.xu@mediatek.com> In-Reply-To: <20221018064239.13391-3-chengci.xu@mediatek.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.5-0ubuntu0.18.04.2 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mediatek.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SI2PR03MB5885:EE_|SEYPR03MB6603:EE_ x-ms-office365-filtering-correlation-id: 0126bf2c-b561-4c05-96b1-08dacb7fbeb9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WXG0HGLQJ0v1DQKzWNovPNjErAUiTVcygApAlPM3JY6xLkVPTG1SVtr/EWwmqOZSDfh6NbH2WFV8tpxd28Kk7bKo/dFN7VJETTatotQ9maLanBCqrp6qwHBpGEWJlQ0IfaiDfIt81mfUpajlZLyH598nrlbSX96k8z1hDLn9k0hGajIyiPPf49QRBJyTqvmXzRlrdrR19BWVAdRL67wdegXjfKpnBxkF1Gf9bAyqOJRw7a+eIbyRGhB50tn0SmASS2POzzsagrrvEQe7DRGMkSqf3q5vK1lGt0lhUOFE1NqoI0oHBMVNxXXYn4zrlMHbNKiYv5qeps09Ea7+h2XFnxmb6UgxTCpdvd5JVUWzFuumQX8bTqyGn+qCAiSaxaQzPnowy2L2gQI80WMF8eHrnFjKnYyxuhR136ZB32oEG/vM1t+VE1gqd0RmQm2trybRJXg72wxb7hrE5zIS0uNSOobcl8dKKY3fyO2vsLUwNdhoTBWYK5CyXmDFtPSawlJ1jBJpTfC8Kjlpik4nLxC35BYryXZfkrcaYqvGER6k/Cy0fMkA4nFI9VTv2q0MjUD+oLC7IIn55TY0mosN5Sx9Ftabwie7+9RhiTni2ixAC6iT9+R1pFGWkGDq6Oz5+3mVeaxddJc8SLMDG6eARwIcRftxItCMgBImZKucfO22NG50+88Mqvvwfr8aepUwBCMnPdSmBA/TEPROM1CjpCg5fh97hJ8fbvaLEzTGC7xM6g4= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SI2PR03MB5885.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(396003)(346002)(366004)(136003)(376002)(451199015)(6862004)(6512007)(8936002)(2616005)(85182001)(26005)(186003)(7416002)(5660300002)(38100700002)(36756003)(316002)(478600001)(86362001)(6486002)(6506007)(71200400001)(6636002)(38070700005)(54906003)(37006003)(122000001)(41300700001)(64756008)(66446008)(4326008)(66556008)(76116006)(66476007)(66946007)(8676002)(83380400001)(4001150100001)(2906002)(99106002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?M0RheEVqOWsrT3g1Nkhiak5tbWRqOE9OdnJIRzFRYVJYY3FyTEx0UG1OSTVw?= =?utf-8?B?dkJFM01hZTlKckdsWGxmVkNjeitNdDBqeHgrV255dk9mN3VBL2oycWFEeG5p?= =?utf-8?B?cUplRFo0QjdxT3FHKzV5US9USjZo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RuNG9F?= =?utf-8?B?U2ZlZUlBL3FtTXZsbjhmN1ppVWJpdlhUMGZyUVVxamkyc25yclg1QlA1VHY3?= =?utf-8?B?dHl2V2htRzJjRnJZeGswNDdjdDdlSFRHOGtpUCtZUDJRVGwwbDJlOTd3dlZY?= =?utf-8?B?M2UrZnJYemphZ2xEY2p1TG5rV1ZNQm5lN0tGNktqNTgrR052a0dRRDVDeFNh?= =?utf-8?B?ZVdTZDUxQUZiQ280eWR6SXVyUWRManAzTnBUQUI2bE9NYlcvcjhoazJmV1NG?= =?utf-8?B?OEE9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <8664C8EC211F8E46B725569BF2A09593@apcprd03.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SI2PR03MB5885.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0126bf2c-b561-4c05-96b1-08dacb7fbeb9 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2022 05:17:54.6840 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a7687ede-7a6b-4ef6-bace-642f677fbe31 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ITMuSUFtOsAErhBPS6IFAPQgY4rC53rIVV2tRpopF4ZEO26BKKKrUTJACW2WsIswqwI5pTkcUwtbSl/8B3htgw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB6603 X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkey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