Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp885472pxf; Wed, 7 Apr 2021 14:08:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze9D6OZzJwp92wgwjXOR9HEGKiadKS8NknmRY8jn0ieWnoxNQBfGVlDhRKWZbwj+GcW0pa X-Received: by 2002:a05:6402:484:: with SMTP id k4mr6809180edv.321.1617829689898; Wed, 07 Apr 2021 14:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829689; cv=none; d=google.com; s=arc-20160816; b=xAVw1t+6J+B/XsucPWhUARKFR8zBirJCxtS1HCxga0HAlOKPiRqOK9jUCN1TmIAUSh 1LWG3nzuX8zsBHV43dN4cG1BI4UatezQxfeYdt08gVNA796ra62bo6LhKbRnF34Yzhgp P2CujRalynrNHNcdblLZR5BxC9kW7MJ2jj8Mj2M20drQv3O+TzsbStaUxlbkZLTINbEJ GPOzcJEKL7j2lppuXdKPP3k7rdI1rmNauMBygBqcSvRvKHIKcbGF0WrcFxzCmX419ZNq Sg164wQBlPQqV5NJ5RyW2kIHfKM2I82VUDLHvgNyYMX0AxkTe1IQk3r30UISuGA3ebvl YomA== 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=HVFoeCxFeSmvJk3GvtJboV3PR4TTvxxrZdUgsEvyBqg=; b=vIBP8XNCfpQVkNy313rwA1V7YQU1IJfrllz4CjMdf6+uWVVVQ2Bot0OtqTYquCnpT1 ldGZD2Z9OzRXQKKpOvQtIElBp3RuXzQDtJ4yVu+zWD2JotZe78mU/l0y1vsEVJQwVSPm h5wLtcjDwBGbv6Zh5xrGwS8ZXcU7kb7YAnu9Pit2aS2K2HsFf3duApV4qW1CNEHZ0krH VT5QuXHYHRJhlvDvTmR6OVPDkMDN6srYFjTHYaTOzosO7Pju2QMhztPIdY5NzCrZPk2J jR+lGOTPi3TgF1XkdXMsbuDwRJcn6NjcTia6iA01y7rQPa/RCn3BUx/0OGrcE0c7DPVY +/zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=V4t+o36f; 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 y22si9210678eds.373.2021.04.07.14.07.46; Wed, 07 Apr 2021 14:08:09 -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=V4t+o36f; 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 S1353052AbhDGOhg (ORCPT + 99 others); Wed, 7 Apr 2021 10:37:36 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:7227 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232791AbhDGOh3 (ORCPT ); Wed, 7 Apr 2021 10:37:29 -0400 X-UUID: 1a14094a131744f9a4ba853018bf1189-20210407 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=HVFoeCxFeSmvJk3GvtJboV3PR4TTvxxrZdUgsEvyBqg=; b=V4t+o36fiY0WTXP3coOXuUG7GP+nBoLdcNi8wzMGnolaZIc/OxcvAtLx/1U6A2deBjDI2qCkfetVEIrG5ltTqvTLGRdew43kBwjq+G3U0jMT/uBWAYYNRl2sZ1yKEk3to+9VS/cAa43/hLHhuSNyAi+E7fXAoN4hmTcVOpwawC8=; X-UUID: 1a14094a131744f9a4ba853018bf1189-20210407 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 2036019314; Wed, 07 Apr 2021 22:37:05 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 7 Apr 2021 22:37:02 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 7 Apr 2021 22:37:01 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , , Jitao Shi Subject: [PATCH] drm/mediatek: force hsa hsa hfp packets multiple of line num to avoid screen shift Date: Wed, 7 Apr 2021 22:36:56 +0800 Message-ID: <20210407143656.2574-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: 04143E2A032602C99B68E1021BC15E0AF3D5F349C78BF14AFD651C4F6CAF72E12000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIGJyaWRnZSBjaGlwIEFOWDc2MjUgcmVxdWlyZSB0aGUgbGluZSBwYWNrZXRzIGVuZGluZyBh dCB0aGUgc2FtZXRpbWUNCm9yIEFOWDc2MjUgd2lsbCBzaGlmdCB0aGUgc2NyZWVuLg0KDQpDaGFu Z2UtSWQ6IElhMzI0YWQyOGZiZmY1NDE0MGZlZW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