From patchwork Wed Aug 25 23:42:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 502322 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f0cd:0:0:0:0 with SMTP id dk13csp721562ejb; Wed, 25 Aug 2021 16:41:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy79s582Ykc4BKNv6WsrInL30tC7eCqveR35KQB+4Vq9J8VceS4UKCvud05NfxsFrafqV1q X-Received: by 2002:a92:da0c:: with SMTP id z12mr576337ilm.205.1629934883381; Wed, 25 Aug 2021 16:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629934883; cv=none; d=google.com; s=arc-20160816; b=ZdYEXiu+7eaFABhIpOmhsKbKTDP8S7q8jBlNrjwZ9J1hURjMVQ9NJh6gBn0AnEQ6gw iFrlgRufLAE1Gsq73OuzZxzIrm4fe4J8LEEe1PCfZvxLLM7D1g2zvh4R0SqnQMBOGL1K dgN1MoLxPQJ3SeopH3fHshk1PpRvZCPajlD6GZGSo+MAZ6f/xXdUZ5odvEoDK3ixGBcV qAcDZrXHb+yGCYVViGb0aocJZwJuE8bHPpZARhTNk0x0VvyzklLkqEKuXCbI5H+T6roJ OACEfBLn7L4W0ZFbOQlATET67W4QwCUXEWX1z26sbLaUMkdlsiJSPfOorV/kv1BnpT/U G6dg== 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=4Dx5vF0RqdLQjKJyPbr0mwPJrCUoUq6AgUSDYu1xpnE=; b=MPv6BHwQr9czSSnzIRNnVgzHal26KPHS6YSoLcuKVrIPly5hY3WtQ0fAFjC1BSh66S GyVvr3ih2eNUJcMiR33PWEADqj2jDdiAxLzFqXoFrRHJ5WcIy4cVdnrASVgLIG6hYJf7 xg4EQJBQTdlVLeTSuH7vebeV4W0qnqrv5/dSQeQZBUG3Zzd8f8+8hdn1ZGYzdP8DCDEK fL0DGZ97tZwlzOiCETzNl28eq/C2hTKP3efiILXY3Qd9Z1W/ow0LrDM1kNZS78wkwsix t4sxVIKot9SlgKrTcAFdJGLv1BlmuaQ/WhgxyM088DtYqjxKwakWNws7BsCg70h9cAX8 VNoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e7Gva60o; 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 w13si1277659ilu.26.2021.08.25.16.41.22; Wed, 25 Aug 2021 16:41:23 -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=e7Gva60o; 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 S233366AbhHYXmI (ORCPT + 16 others); Wed, 25 Aug 2021 19:42:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231720AbhHYXmH (ORCPT ); Wed, 25 Aug 2021 19:42:07 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99DBFC0613C1 for ; Wed, 25 Aug 2021 16:41:21 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id u25so1803209oiv.5 for ; Wed, 25 Aug 2021 16:41:21 -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=4Dx5vF0RqdLQjKJyPbr0mwPJrCUoUq6AgUSDYu1xpnE=; b=e7Gva60om5ucDhwZOW154dizkM8QmCNpiJ/Qbr79PMm535sbqo6YqM+zRhkqrjfMXo KDci4/QsIf3DZVC2Nhufj3KE6G2Mdu7KVYB6rAGHkrKXrQXgpLKEPW0lZXrL1Xv6adVQ qUljemQJxfqBMTDwS8itfC0dAtkcAjygQAhY2FO8qbuhZc2cCuv1ze3MxI/azrfRXl8n gxVdbNf5raqo9a5nKrwO53lvhL3P+SsjNRgiQLkpuvL7oimlUIYHqBt0Q6Af7Knp5CZQ T0GYM6vZErrwUuIIFgOoIjheeXAcRAMBz2XaYqutgURo7G0PYFYGlCClSmmXNEYeSIic SJqw== 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=4Dx5vF0RqdLQjKJyPbr0mwPJrCUoUq6AgUSDYu1xpnE=; b=PbZXF9FzrTOkYiq9+F31zNCwdXtD7UkKb6S+Pe2mPfCxw0x+4pkz85d0XP3M5rvqN6 3K8kQutQ3VmA1OR0rdUU762tnbjRepJi5J63CEwizaxHXuIuUyeSEfayNxdOSEySuDHo 3/tcSVO/muX0tIyy1rV30NwdrzD8wG9Oy0BTQWJ2HeDn2SUQjNLk+6FQeI0qmaeWh6Nr M5hSYKqvA/1vJunztOw7SPaxJWgYSz8rh7vV9ytgLrw9XcWwWAdOcCC+6GjpkIIf0sCV lW8NK5Mcdz7w1+Jt7FUYfwk34nT98/5JNhFYoxyVW5efqVqmvERWgVtF3iSx5XnuJ1PG 0BDA== X-Gm-Message-State: AOAM531LFylOuBQYQSOmlFPDuteh7JDc0JAG67aWQ/FbDMrejTR9QPU+ ReK7/MIuLUMt0IL3SUxkFf/3Hg== X-Received: by 2002:a05:6808:10c8:: with SMTP id s8mr8954414ois.175.1629934880914; Wed, 25 Aug 2021 16:41:20 -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 g10sm267136oof.37.2021.08.25.16.41.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 16:41:20 -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 v2 0/5] drm/msm/dp: Support multiple DP instances and add sc8180x Date: Wed, 25 Aug 2021 16:42:28 -0700 Message-Id: <20210825234233.1721068-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 | 23 +-- 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 | 138 ++++++++++-------- drivers/gpu/drm/msm/msm_drv.h | 2 +- 6 files changed, 132 insertions(+), 101 deletions(-) -- 2.29.2