From patchwork Wed Feb 9 17:24:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 541125 Delivered-To: patch@linaro.org Received: by 2002:ad5:420f:0:0:0:0:0 with SMTP id e15csp1530141imo; Wed, 9 Feb 2022 09:25:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXAIxy3isR7enUnUyB2yRY2OV+y6CFB0teoqaMW14HXj1mbFTt3Gb7UJo6UPh97Mayv5bE X-Received: by 2002:a17:902:d489:: with SMTP id c9mr92554plg.0.1644427530607; Wed, 09 Feb 2022 09:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644427530; cv=none; d=google.com; s=arc-20160816; b=Q2gQpXUOgUB8wEIyqpqDf4QkfZGheqDhVH1Bgwwr+Uo5XttfnRhXtchHEBDBVwUvGf JmkjC8JEo57Iyj9d3nHPLmwgUqDHf/JZQDIk9DlRier0XtfSyL4PXNyQPPHmj3b24fca 3vSyacnJ/yS0riEZIWATsZ7mKwE/8+Ctn4jsJXssxbO+DcYLl/7BqMDSSZe+bMhBFQIo peucsTkFimgfwKiFp6SHyxUFDYUsxrUC/hszSrGNUhnq3HB/OYrd9KLTATMyWRo27PPO 3dsd/sO1LiFvNMxBlrY4zCBegT07rV3+/o6vtXp3oGwh5tLJLu8pdpBiEAtdSQ1AaMzb jq+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=6QoNkw201jmWYI2ZvFOwA35KwNfMMnBn8u5YRCFPRuo=; b=CnwHYBVItO0bq9GcG4g8drZ20aO+aYxUyn7qxoxDMkNsLf+Ehec7fWTg2OCXbErAi4 kGYETV1W2VKs79ftkKA6BYGDUU1cjtNWSa3awznHgrZvA8IP/sc7wQ6qNtQluKmOZLcO iU0P+XgCLLfEBDJNpSSVs4K/2Vhw7kDbrssU0EqBB0TBbiLS6eTI/EAcrP5B5Ee5GqF2 cj23uNyzARvfzqPIuX/USjaZwbcUnQK2U23a5qlEF2Z9Nn7D1nq/YQmO9LAupjVMVXeL N+DV7h8EpNUb1hzEKYUB1mf7gxL9kX1OOUaBHdwGXumGEEpuYDt6xAgXRVCO5Pzdz5EC SKZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=lekhbXiw; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id j3si15111580pfr.288.2022.02.09.09.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 09:25:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=lekhbXiw; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 94F3B89CE1; Wed, 9 Feb 2022 17:25:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by gabe.freedesktop.org (Postfix) with ESMTPS id 413FB89A34 for ; Wed, 9 Feb 2022 17:25:24 +0000 (UTC) Received: by mail-lf1-x132.google.com with SMTP id 13so5538444lfp.7 for ; Wed, 09 Feb 2022 09:25:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6QoNkw201jmWYI2ZvFOwA35KwNfMMnBn8u5YRCFPRuo=; b=lekhbXiwBQhRlgUOFnQGhFF2kovB0evdrZ1prOnNfCG93Uplho9arDXFUwEwD8QK5+ CL8ASVgUHtY7q97MaI/im2nZiNIIdSs1J8RS2gFLTmdrbAVOqthhla0K74B3FZ5+xPZ+ 4LjBDtIfK90r2gjzi6qpi5fKnft2Lxn6pPRkJsibAFxZ+xv4Y+sLsJeM9ubKSAU8WChw DkhfNOXtnG1G0N1EJjRBhT9BCD4L1EQg/IUjhqqjwyWmH7QQgaQKVk9UIsO58pKBIfaX JCwwZ/y88m+VRoWn589Zpm3A94Ad91AzgkQ9a/JPD/wO+TFTCDqTQfj8Gj5fkW2eZRDh 67cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6QoNkw201jmWYI2ZvFOwA35KwNfMMnBn8u5YRCFPRuo=; b=Bc7voMS5Ig8QaAAuxgDZXwbsXVNI7TdHpfXxXHmAPTjH2o6JCUJfiKECY5xUknpArk xkC6S/5rhiVvWo6gz1+gJd8ziZiqDT/K83eIe30mfhSDhxYzQzWg6OYLWquNRYzlPFgp lbjM0jPyCJnQlBxccAxRbJsKRgmOoUck2SIhAsGhg1lh+a+2visi1R0H2a6ZGSoeJJus WgdoYHxQyUEPZfCphXR1z40NiaL+OT7StzWLtAgcqWGQNwyn+huQHejybvVlWoVZADxX YtkUmtPqlMRCqPbzuEmm98syE/tgblyCgn/KY5w3NztLPMaFFvwjoL1R8YwT3fDryytc 9Gew== X-Gm-Message-State: AOAM533gfCPDtp8H82H663kKm3zzXedJlN+LkZMiEE7YAXF3lxpjNAVz 2FzpUw8HlR0BIi412sOvtiO63Q== X-Received: by 2002:a05:6512:3d17:: with SMTP id d23mr2261513lfv.76.1644427522431; Wed, 09 Feb 2022 09:25:22 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id u14sm2560055lji.40.2022.02.09.09.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 09:25:21 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Subject: [PATCH 00/25] drm/msm/dpu: wide planes support Date: Wed, 9 Feb 2022 20:24:55 +0300 Message-Id: <20220209172520.3719906-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, Stephen Boyd , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" It took me a way longer to finish than I expected. And more patches that I initially hoped. This patchset brings in multirect usage to support using two SSPP rectangles for a single plane. Virtual planes support is omitted from this pull request, it will come later. Dmitry Baryshkov (25): drm/msm/dpu: rip out master planes support drm/msm/dpu: do not limit the zpos property drm/msm/dpu: add support for SSPP allocation to RM drm/msm/dpu: move SSPP debugfs creation to dpu_kms.c drm/msm/dpu: move pipe_hw to dpu_plane_state drm/msm/dpu: inline dpu_plane_get_ctl_flush drm/msm/dpu: drop dpu_plane_pipe function drm/msm/dpu: get rid of cached flush_mask drm/msm/dpu: dpu_crtc_blend_setup: split mixer and ctl logic drm/msm/dpu: introduce struct dpu_sw_pipe drm/msm/dpu: use dpu_sw_pipe for dpu_hw_sspp callbacks drm/msm/dpu: inline _dpu_plane_set_scanout drm/msm/dpu: pass dpu_format to _dpu_hw_sspp_setup_scaler3() drm/msm/dpu: move stride programming to dpu_hw_sspp_setup_sourceaddress drm/msm/dpu: remove dpu_hw_fmt_layout from struct dpu_hw_pipe_cfg drm/msm/dpu: drop EAGAIN check from dpu_format_populate_layout drm/msm/dpu: drop src_split and multirect check from dpu_crtc_atomic_check drm/msm/dpu: move the rest of plane checks to dpu_plane_atomic_check() drm/msm/dpu: don't use unsupported blend stages drm/msm/dpu: add dpu_hw_pipe_cfg to dpu_plane_state drm/msm/dpu: simplify dpu_plane_validate_src() drm/msm/dpu: rewrite plane's QoS-related functions to take dpu_sw_pipe and dpu_format drm/msm/dpu: rework dpu_plane_atomic_check() and dpu_plane_sspp_atomic_update() drm/msm/dpu: populate SmartDMA features in hw catalog drm/msm/dpu: add support for wide planes drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 355 +++----- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c | 4 - .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 10 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 78 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h | 35 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 136 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h | 88 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 21 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 813 +++++++++--------- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.h | 42 +- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 81 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h | 6 + drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 19 +- 15 files changed, 827 insertions(+), 863 deletions(-)