From patchwork Tue Nov 14 22:58:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 16587 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a59:b0:164:83eb:24d7 with SMTP id 25csp2254904rwb; Tue, 14 Nov 2023 15:01:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGndtfuvRRFRcscH0EUWhOPtMwsUxRwLOEkcf48A8N8Cdoz+AYAZr473gfv+W9Rmc4AEasR X-Received: by 2002:a9d:638c:0:b0:6d6:53f8:88b with SMTP id w12-20020a9d638c000000b006d653f8088bmr4032612otk.2.1700002880776; Tue, 14 Nov 2023 15:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700002880; cv=none; d=google.com; s=arc-20160816; b=JmLL4mJ9JT8d7FV/clVz9Hy6TI9voZRm6WpQJYqqTIUkL0N2URPQtj9WSt+9Tz4kkm WwqyK2wzm8AHumd8rrHmkyDfm4M/zbvgSAJIJv1JYCv2YKAI7Zc4qd+rMcdbqKoddc/K zpHpZDP69SKfMjJvKteJuWgfuPpzVw+dd9Fxc1zp/zfSrgF/nZOoItvXL4soUukQ4cT4 pqEkd6/p5YgPweTyPfbw4MD4lGA4u3HiqvrrjxzhQQDoJUmOWc4qSwHDm8RfGvLFkqwK gx4C0BZ63F6Zx4bEEesFdJAsI+FvtqWORM7PXjx8B/nTcTz3mVbIwKvC2HVwQEZA9/6p 6DZg== 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=0WgbXh9MgeOn39Qx8ZOYsj5qd/Y25XhdC9fJIxz5E4s=; fh=fwvwh7GmsXHSdxcnXrnHN8A/8ka6I/9czcT9dwhS8Cs=; b=Hm/To1YnMeyrjNNNew5OP0X0GHS21eV4cgMKg+IXVBPYfaAwf7SEWVWsuKgMcD6V7w BUlavtVJk0BVRGvQJ9oD2JWMGE2dWlT1YP+eilc8s5olzopTNbA15m0u41/J+tcZtrBQ u5B5AkBzdgOFGYGdZ8eUeQUkbYYXe3ygPKAK01rjWE34umsOkIQQnEwVQGAaqpWtwk7H 12ySdXrX62KDsF9LoAR2ShoUQtUqAeRs+lKBYj50afggxynhRS8XZVw3wQXKIZhrycdF wbjhCq3d2G3sAul4IoLE5iuYV1cw1rI9WOpFZg2fyskJgRszTlPCEaDQfqqs/JSSrNDX igUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek.ca header.s=google header.b=RKcBAgWz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k26-20020a056830151a00b006ce2fd0c37dsi3124213otp.244.2023.11.14.15.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 15:01:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@marek.ca header.s=google header.b=RKcBAgWz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9F4778036916; Tue, 14 Nov 2023 15:00:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234039AbjKNXA3 (ORCPT + 29 others); Tue, 14 Nov 2023 18:00:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233873AbjKNXA1 (ORCPT ); Tue, 14 Nov 2023 18:00:27 -0500 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B382DF for ; Tue, 14 Nov 2023 15:00:23 -0800 (PST) Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-66d190a8f87so35999266d6.0 for ; Tue, 14 Nov 2023 15:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek.ca; s=google; t=1700002822; x=1700607622; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0WgbXh9MgeOn39Qx8ZOYsj5qd/Y25XhdC9fJIxz5E4s=; b=RKcBAgWzwpuaF53vyGMChIbEq5G8PjzPIKTIS25eDYG7vAvXCUnjQBz8UegkTPxbvy hsa8AWuvuhVz4ZY3LC0YNX5SjnDwW4+R95VCCH7VmovbWWa5e7tFSBQ4MSaD6+CgmQOd rGlgfzP/WoNOu7bkqcO+XtVWAoajh9LKEbNFUdBzqLVMOYVpRs7hcX43KsFvtiI8wjeu LyJT0vPxDNOlQSQdUS99ECKJO6vXVMjQKnM+HCGmOpV1wPvNge9Hld55Y0UMVBZz2iQ1 5kdg3UL/YDGMe/E64Ph+7pzOFk5Fa6C9Rl0vc4U67aNQgyeM/Wi46+NSPVsbjI7Am6ZL AUPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700002822; x=1700607622; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0WgbXh9MgeOn39Qx8ZOYsj5qd/Y25XhdC9fJIxz5E4s=; b=BsI3Tlun2juoV+Oz80SALLay/ZHfoY5lKujcAaJWOtTC8Nw/nM5SWjWuofHOT2MOfh 3dZ+AREbf6EacdXfonAcXxHxNVWEEEBAa5hsKSrof2rehyUwHRnxhLzeGpXY/d3hb/ZH D88d++t2SFcdTNScMBW0BhODUKr/LRyaiOOSU21VVoVRyytWejH0Fy8+8apPHza5wuIO G4GQe2AkPhoEy7t61JzotQLoMSBDVJfsxGZ95C13I6q5qxDuF9EE0WtvCTvqQyk1uz2o qSobDJaGcnYZaDtJRJ6UQ3Q0mybzCWXh2JWpYHR2Q08JtntRM5R1UzQdUhLrVqKd+vy7 WlLw== X-Gm-Message-State: AOJu0YyNPniOR7OFNx6IaX0oTJz1O269lGZjRu3kIoPLbX9jt1lCrbLw 30q/QTSqtX6zS2kLo2cM673axQ== X-Received: by 2002:a0c:fd81:0:b0:670:710f:203a with SMTP id p1-20020a0cfd81000000b00670710f203amr3645510qvr.59.1700002817358; Tue, 14 Nov 2023 15:00:17 -0800 (PST) Received: from localhost.localdomain (modemcable125.110-19-135.mc.videotron.ca. [135.19.110.125]) by smtp.gmail.com with ESMTPSA id u2-20020a05621411a200b00674a45499dcsm25274qvv.88.2023.11.14.15.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 15:00:17 -0800 (PST) From: Jonathan Marek To: freedreno@lists.freedesktop.org Cc: Abhinav Kumar , Arnaud Vrac , Daniel Vetter , David Airlie , Dmitry Baryshkov , Doug Anderson , dri-devel@lists.freedesktop.org (open list:DRM DRIVER FOR MSM ADRENO GPU), Jessica Zhang , Jiasheng Jiang , Kalyan Thota , Konrad Dybcio , Kuogee Hsieh , linux-arm-msm@vger.kernel.org (open list:DRM DRIVER FOR MSM ADRENO GPU), linux-kernel@vger.kernel.org (open list), Maarten Lankhorst , Marijn Suijten , Maxime Ripard , Rob Clark , Sean Paul , Thomas Zimmermann , Vinod Koul , Vinod Polimera Subject: [PATCH v2 0/6] drm/msm: DSI DSC video mode fixes Date: Tue, 14 Nov 2023 17:58:28 -0500 Message-Id: <20231114225857.19702-1-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 14 Nov 2023 15:00:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782582220494159138 X-GMAIL-MSGID: 1782582220494159138 v2: added new patches (first two patches) to get DSC video mode running with the upstream DPU driver (tested with the vtdr6130 panel) Jonathan Marek (6): drm/msm/dpu: fix video mode DSC for DSI drm/msm/dsi: set video mode widebus enable bit when widebus is enabled drm/msm/dsi: set VIDEO_COMPRESSION_MODE_CTRL_WC (fix video mode DSC) drm/msm/dsi: add a comment to explain pkt_per_line encoding drm/msm/dsi: support DSC configurations with slice_per_pkt > 1 drm/msm/dsi: fix DSC for the bonded DSI case drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 2 +- .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 11 ++++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 13 ++++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h | 1 + drivers/gpu/drm/msm/dsi/dsi.h | 3 +- drivers/gpu/drm/msm/dsi/dsi.xml.h | 1 + drivers/gpu/drm/msm/dsi/dsi_host.c | 50 ++++++++++--------- drivers/gpu/drm/msm/dsi/dsi_manager.c | 2 +- include/drm/drm_mipi_dsi.h | 1 + 10 files changed, 58 insertions(+), 28 deletions(-)