Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp655038pxy; Sat, 31 Jul 2021 21:08:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbbmRxHt1W53GEWmnMK3Yrf/QWWbNcjnvrY/3E0goJ60z+x133tnmp2SvImH/aZ4IanNB6 X-Received: by 2002:a02:866a:: with SMTP id e97mr8445005jai.35.1627790926399; Sat, 31 Jul 2021 21:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627790926; cv=none; d=google.com; s=arc-20160816; b=xxo1IyAoqDLrajUTMTmhxXIX5w49NCRaeeE/8YeTr7WCoq8MFwd19OEC2JNFhO71Ch ErIhQr+/bV3oupRZwcP4a5MdpaAt11vObCjE89F11ltpnyZYD7OLzEk01o1PSDCFpjL+ byfcFgGjZJwu7tumxgQYhDjfGZWv+Ti9qCBVAqysfD6Fh2mr7HO97CuY6MEOg/MjpZ7D E7YT+A3uhJCMxy2rdIE+lREaV2ak2Sr1qjSz807dr8ykbx9NPah+nstowyUb1WHITfN2 1nk0+lce/a+XQlK9B/H6ZxL/scpwtcUSrf6tzYs4ppPjrqGF+x6Q7eHBNMI26YMZ/wLp aCvw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=c7qAG0km9s8UfLDAudvX69W67QH1Jy3xeC2kKUw1eTc=; b=jz8L5g0SLtjLr5aHqcImJiB6tQPR4NL1lgSdNSPTiE73SB8jRsB64dTmAfUs438Dzd rfVQaHNHynCocJiz5EluHvaXErj73DOApnuyh4O/oQzCb1dWCm95TWBheXH0hUEvPbKg TcNPTdGN0S3YnB3eoEhpYvNUZuwNUe8vvR2pBfp7Asegd0emzrJlXZAXi8gvmaj6vGgV ghn6OEuiWBNJw2gnnGmh8cBSaIt/Q5kyKx19qXnCqtmhPRg5vqXDWUH1d467zjeXdZXl 2HmVX7P6W5k90bFWMm/j0o7UfSHCYsGUgatJUtKWOzE9N9gh6lk4GI6qwaTEpTEPUdno G1qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=p5ClV3oG; 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 h5si8360619iol.44.2021.07.31.21.08.34; Sat, 31 Jul 2021 21:08:46 -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=p5ClV3oG; 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 S230121AbhHAEGW (ORCPT + 99 others); Sun, 1 Aug 2021 00:06:22 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:48109 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229491AbhHAEGV (ORCPT ); Sun, 1 Aug 2021 00:06:21 -0400 X-UUID: c0a184bf8ca04392a4dc94520dfad349-20210801 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:Message-ID:Date:Subject:CC:To:From; bh=c7qAG0km9s8UfLDAudvX69W67QH1Jy3xeC2kKUw1eTc=; b=p5ClV3oGYWHXiUTG4P2YkRWXzMMgdxO8A1TBu1LSHxjK/pe6L4x339t1HR0k+uywAydmoinCirsH3Snixz8iYpuqRe989b/etUwKsXaBvk8/z4Ey8+maRs9RYmbMglnRpFEvYOTN6RK7+vE6taz2wwalHE6DdZq2m/J7z7M45ow=; X-UUID: c0a184bf8ca04392a4dc94520dfad349-20210801 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 458207670; Sun, 01 Aug 2021 12:06:10 +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; Sun, 1 Aug 2021 12:06:05 +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; Sun, 1 Aug 2021 12:06:04 +0800 From: Jitao Shi To: Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , Jitao Shi Subject: [PATCH v4 1/2] drm/mediatek: force hsa hbp hfp packets multiple of lanenum to avoid screen shift Date: Sun, 1 Aug 2021 12:05:43 +0800 Message-ID: <20210801040544.104135-1-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: BC15D500DEC9D58CBE5FB134A9971573A631EA12E984F2BAB0B2E7A33414CDA12000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIGJyaWRnZSBjaGlwIEFOWDc2MjUgcmVxdWlyZXMgdGhlIHBhY2tldHMgb24gbGFuZXMgYWxp Z25lZCBhdCB0aGUgZW5kLA0Kb3IgQU5YNzYyNSB3aWxsIHNoaWZ0IHRoZSBzY3JlZW4uDQoNClNp Z25lZC1vZmYtYnk6IEppdGFvIFNoaSA8aml0Y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