Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1244356pxy; Sun, 1 Aug 2021 18:11:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz++R4GZJpd8hIuQ7DfU54ax7AQ5utGMtzO4h39dr/B98U09IcTUgYag1oexSRWU+5/qC66 X-Received: by 2002:a17:906:5509:: with SMTP id r9mr13492996ejp.74.1627866667388; Sun, 01 Aug 2021 18:11:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627866667; cv=none; d=google.com; s=arc-20160816; b=Kl82MJ4tl+ijSbyivj6w9byEr1+oCqCoyAk5u3VeBd4Fv2W29PkGBsTk/DFuc7oSJD CLiFRFVrQtDU5QN3jLeQF1XbUTfTD1SgJQGl3zIpY/KS4f4Lv52agLsvw8YrThViLixX cFFN+mMgQVtEkoDhMMkDco/8EAH305ulAmHcuIb40MBcfz+cx30ieuFGrGadW7uDInzw VlH0LlxEFgP3DJ7a2RsvfeoNfu50s83olJC2Nnm7DWiQZtLsal4EXIMd+vdlRt4S4LGD nNpuayvMv++4KO0hv7sfEKRAlSwdEeSh7YUgdwZj/jlrwLr/3a4+1d1YGjzkniLd//nm yUsA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=c7qAG0km9s8UfLDAudvX69W67QH1Jy3xeC2kKUw1eTc=; b=jYjajKE1H/3mr9jVrFIflyl8rlOaD+5ey1J2WlsuGL9yECyZechKIsZpf5vKlZww1H 22drK4vCcXqQqhrb0RnlPjcG5TGy5YQjz5abMQEN/4AqZERUgqNzreVpA3yvMT8RZ4l2 qUMyGFphwZcCHr2dn0ZHGS2S+5FJT72eVub8YZ2rky2mv2PbiMHXN4BHftbCMJ4TDzfb iQSZxZyfmGCH6jz4HF/jYB6xEC6Hcd83JpfIdfiSgfDaG2N76edops0IrupJkU5npnUS pp/D7o63OFdULD9XjgeYYRobkUDL0G2KeX6iicLQ6TyWoc8xbkRXwRp4aSB4LVPoA7QE scDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=X8W8Mo68; 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 n21si8737854edt.352.2021.08.01.18.10.44; Sun, 01 Aug 2021 18:11:07 -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=X8W8Mo68; 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 S231496AbhHBBHj (ORCPT + 99 others); Sun, 1 Aug 2021 21:07:39 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:3774 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231931AbhHBBHi (ORCPT ); Sun, 1 Aug 2021 21:07:38 -0400 X-UUID: 0c6a4cf7134549708409a216e2d78700-20210802 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=c7qAG0km9s8UfLDAudvX69W67QH1Jy3xeC2kKUw1eTc=; b=X8W8Mo68afLORmybBKoKEJORkIJ9SxsOJVKv4icVPkVEIQhK82YdZPcXLvBBXRxbz/LswXupwyCLqYpQiBC5SYc3xy9Khlvx+LSbssOhF5m/PKYgj1hwJVFiXfUYT0hQKIRKXAHoNQxh3sCH+mAbbvM3i1r1FcaGrOOBheX6ALU=; X-UUID: 0c6a4cf7134549708409a216e2d78700-20210802 Received: from mtkcas35.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 1116612623; Mon, 02 Aug 2021 09:07:24 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 2 Aug 2021 09:07:21 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 2 Aug 2021 09:07:20 +0800 From: Jitao Shi To: Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , Jitao Shi Subject: [PATCH v5 2/2] drm/mediatek: force hsa hbp hfp packets multiple of lanenum to avoid screen shift Date: Mon, 2 Aug 2021 09:07:11 +0800 Message-ID: <20210802010711.169080-3-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210802010711.169080-1-jitao.shi@mediatek.com> References: <20210802010711.169080-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 1BE911DEA230FC9258BBF1097BDE305EBC1B452C74411743C1D06DFC8D83CA372000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIGJyaWRnZSBjaGlwIEFOWDc2MjUgcmVxdWlyZXMgdGhlIHBhY2tldHMgb24gbGFuZXMgYWxp Z25lZCBhdCB0aGUgZW5kLA0Kb3IgQU5Y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