Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp321402pxj; Thu, 17 Jun 2021 03:35:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7WkVDap9zsxl+1B/WI6ThQI3HHV2qOIDVKoTRfr9FbdMoAYXOo2P8vfUxu8JGJs4t1ZCZ X-Received: by 2002:aa7:c44b:: with SMTP id n11mr5698518edr.4.1623926115495; Thu, 17 Jun 2021 03:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623926115; cv=none; d=google.com; s=arc-20160816; b=M6s/GT2adaq8Ns5Ytq4Nok3/1DXsyofS+jT7Z7oK8HnokWDfa2wre3t09RaLoZfYHu VAVWolJ38GPtD30Kzz7UE1tjevYardj9atwRNKtAPqHsrC3RBPpnWt7BgQF0uIGSpvRV dUdxyfP8PXLEfohYowkU83FgXUjgzelLXtoKHh4+ZL2bG3O0QV2cZYJMtL/ioqwMDgaO uLZbZ8xeZaLNmcGsxWm5/bek0ujgujvfMMAcZWBIyMRq9MjOpU8Jkul15Teuj7cMdgKt NKK3oEr006yWFcCZwerGbQim23tivx2XX5Eml2Yrsd6WlA4P0aJPmCeIFmpaD/p4Egbo 7T9A== 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=qBwqJW6+KXN1WXu/dJswBwv1ZwB6zof1JysV9dlVxzI=; b=YUiTs1bqmfOJup0F1FeDyDRSlI7xlTy8Mt2+/gVqlFX7K5ohisuqVH6gIGCjK9OPnn /C8NYW40AUaaVYqFFyjJ9F+FdIr/Am64dw9IAjhc3Q3RcmpHGAyisnklY9QQ2mU7DIKZ RJucwHR7wgKJsSfMsVFiVS90niwYM4vJdcEDp/yrv6qPhIo1s9YU3HV9CKCq1WRVrYcR YvVAzAkRG6GrIGQYsjaKBidRSM0rmiTh+yBzDv//gWvZDvBWBgNjlNrafwyVhlvk10im kC3rcJjQvZTgHcEG4b9sROlZDs2L0X0qEp1FEM6/L3iuTBiDUTIT/XdQG8/8KDuuK0TB CmQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Y1vLfTmB; 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 hp35si6153054ejc.243.2021.06.17.03.34.50; Thu, 17 Jun 2021 03:35:15 -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=Y1vLfTmB; 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 S231405AbhFQKed (ORCPT + 99 others); Thu, 17 Jun 2021 06:34:33 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:13419 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229716AbhFQKed (ORCPT ); Thu, 17 Jun 2021 06:34:33 -0400 X-UUID: 02451195d5c24f96b8b31394ae37a108-20210617 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=qBwqJW6+KXN1WXu/dJswBwv1ZwB6zof1JysV9dlVxzI=; b=Y1vLfTmBUaTFzfQ2nmgXofsxWwcy+ajQlBqvyRRvzrPFod7KXt+ADGrJL32VEFeO+qEqPUgJKBXI7Mjne6yDdhmjJdKhU1G7nt4BQ+w4U3p4x6nliyFAu/ZxsiSHTRcwYe1uFHef87mAev9oHRG8SQUg3CPNuQIdXeVJrFDiaeI=; X-UUID: 02451195d5c24f96b8b31394ae37a108-20210617 Received: from mtkcas32.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 629330851; Thu, 17 Jun 2021 18:32:22 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Jun 2021 18:32:16 +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; Thu, 17 Jun 2021 18:32:16 +0800 From: Jitao Shi To: Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , Jitao Shi Subject: [PATCH v2] drm/mediatek: force hsa hbp hfp packets multiple of lanenum to avoid screen shift Date: Thu, 17 Jun 2021 18:32:14 +0800 Message-ID: <20210617103214.44217-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: FC510DC44A542FB00BE6C56F37F322843E845B614EB23D762E60C3DDE504DF812000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIGJyaWRnZSBjaGlwICJBTlg3NjI1IiByZXF1aXJlcyB0aGUgcGFja2V0cyBvbiBsYW5lcyB0 byBhbGlnbmUgYXQgdGhlIGVuZCwNCm9yIEFOWDc2MjUgd2lsbCBzaGlmdCB0aGUgc2NyZWVuLg0K DQpTaWduZWQtb2ZmLWJ5OiBKa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