From patchwork Sun Jul 25 04:24:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 485653 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2705197jao; Sat, 24 Jul 2021 21:26:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9IaT0hEH6ACr4nQruvHfoEINv8Tr+6QD+uy8BMn/AkE4IfmGcpfH1E75LaYscWpVWSGiG X-Received: by 2002:a92:d210:: with SMTP id y16mr8815615ily.295.1627187186828; Sat, 24 Jul 2021 21:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627187186; cv=none; d=google.com; s=arc-20160816; b=CkG2HztHK+VXDr5k7W8jzyvby0uhWUwsZEp0wDW4FyjmCJQJ3FTl9JhDlprff/PaB/ dOXcweDQSVBHhDRR/RtxjMymtoK+swFUScXTFYKv9lDK3ifOV5uWqv1x2kbwbIeSLo9H rDSzI0ohBYyA27jPFBZPZQGs669xYngyv8jluGTcpLIPd3oZCpXFL4m6cTprm5h93yhy phLRNqX7z1nMUcwtB19VzGyCH61Y9bv5/mRA1FiSKTOunHRBg+3TUcUt70CGYwlPo6+h WQvGUVlHQJrm5JwO1q9DPM0+GWlxH9FHiwwp/4mkcK8IAjzKAEJQ8QmB7osVoQqVhGxZ Z1LQ== 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=BFd+X7oTHADuT288+EEd3xR940f0BDuWrDa2rxXiuIM=; b=e8uUzeBbMeeUijI5OOsgqgbGOAjetp9g28j0rytMsAdwQksvKUpYmbh6hmMmfxkI4u A5TWrWBFgBNdJrLv0/2+QkP2IUCvtbrNPUzNnSacPthI4rB9cNK/BfHM5rzW1nG3v7MN N7IyTfGv7Dl9y19tWea+Qe4+Ay8cFU5O8AiMRCYj8WlmJMRsxseoJsUtRZWWq87igMAk YcRIKIiR/WPBku0ffSrd4MzlJ2y1cId89E4JYQv1WtARcU7Ni7W1ZeUhDJbk+D8n+KPA y2KH3XNaubwP2ZgmWLh6mhHF627V+Klp4HNHeaZHk92czlFksIihWpCz6i1lWKIY0Gae tbhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WKNvI24G; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si41011592jad.101.2021.07.24.21.26.26; Sat, 24 Jul 2021 21:26:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=WKNvI24G; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230251AbhGYDpy (ORCPT + 17 others); Sat, 24 Jul 2021 23:45:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbhGYDpy (ORCPT ); Sat, 24 Jul 2021 23:45:54 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AE03C061757 for ; Sat, 24 Jul 2021 21:26:24 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id t14so6954570oiw.0 for ; Sat, 24 Jul 2021 21:26:24 -0700 (PDT) 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=BFd+X7oTHADuT288+EEd3xR940f0BDuWrDa2rxXiuIM=; b=WKNvI24GiVvhCutDHa54Je6JZH578NP4Btg9cqRBa3J4lITuNpJzNQwz1xhmRtkZ9V P4ZKQiby5aRxE5tSdlGDSOs6Xo5m8AeHvLP550X8DxvWs7pUKUxtb+aEJm5yGwMf2g9O OLRsQjZjKVIgNWpUD95sOziexq3GfCbefyOrpHwEzHi4pea9OGn5qXLbN38OWdT407lP 97i/qUHb6VdFtQvj4SFcS9dJSe3VeeLdiu7PO0vJPZ6nT4JkYoDl5EiDqIRJwyLz5hmO w2pR9fYiP8i5PeZGKs65aTTPGaAKwZtbij5LJ0eLFSZvI+SrjXeFIJZMjg+nUOhSDsY2 tsBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BFd+X7oTHADuT288+EEd3xR940f0BDuWrDa2rxXiuIM=; b=AgdrJWEn5AdpAA4qGhfzp3vMaTmpyfTrricjdcYrlIARLY+lfL7rNVUAaunhqY2hQb wddtwhQQoq9L1YgXDMw1+8yTSBW+tzRNU8z+u7LPA+q7KIVW+d7wF8fIusqzOa0lQ4+9 AUVNvjLn3ttWhPG9XyES9qp12dHvuS3NUNMehI6J+4TwQihOEH7CxBKFII9ZJB8fsYPz wc1McLtSW91G+/d0B1sl+jGzSEW+QegymR5F/EWP4LLnYlj4notk38oblSvXILM69o6o bv0sTxvMrFlE7Ym6G6ot7Uh7JiFEebVRDJs/FRDBdcWJ8huYw1R9l2tt1wvWAErL4CJG WYLQ== X-Gm-Message-State: AOAM531jQlkkhiVyyD0MmFigdUq6zRBXXu5kXXTy7K0C1Fcvpigl1Kt5 myQNcMeF8Rw2ulHWx4SWfZTepQ== X-Received: by 2002:aca:4743:: with SMTP id u64mr13017033oia.52.1627187183742; Sat, 24 Jul 2021 21:26:23 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id t144sm6986200oih.57.2021.07.24.21.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jul 2021 21:26:23 -0700 (PDT) From: Bjorn Andersson To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Abhinav Kumar , Dmitry Baryshkov , Kalyan Thota , Kuogee Hsieh Cc: Rob Herring , Stephen Boyd , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] drm/msm/dp: Support multiple DP instances and add sc8180x Date: Sat, 24 Jul 2021 21:24:30 -0700 Message-Id: <20210725042436.3967173-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The current implementation supports a single DP instance and the DPU code will only match it against INTF_DP instance 0. These patches extends this to allow multiple DP instances and support for matching against DP instances beyond 0. This is based on v4 of Dmitry's work on multiple DSI interfaces: https://lore.kernel.org/linux-arm-msm/20210717124016.316020-1-dmitry.baryshkov@linaro.org/ With that in place add SC8180x DP and eDP controllers. Bjorn Andersson (5): drm/msm/dp: Remove global g_dp_display variable drm/msm/dp: Modify prototype of encoder based API drm/msm/dp: Support up to 3 DP controllers dt-bindings: msm/dp: Add SC8180x compatibles drm/msm/dp: Add sc8180x DP controllers .../bindings/display/msm/dp-controller.yaml | 2 + drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 17 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 60 +++--- .../gpu/drm/msm/disp/msm_disp_snapshot_util.c | 8 +- drivers/gpu/drm/msm/dp/dp_display.c | 183 +++++++++++++----- drivers/gpu/drm/msm/msm_drv.h | 33 ++-- 6 files changed, 200 insertions(+), 103 deletions(-) -- 2.29.2 Reviewed-by: Stephen Boyd