From patchwork Tue Apr 19 16:20:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12818769 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 772C7C433FE for ; Tue, 19 Apr 2022 16:20:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8762C10F0E4; Tue, 19 Apr 2022 16:20:34 +0000 (UTC) Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by gabe.freedesktop.org (Postfix) with ESMTPS id CED2410F0E0 for ; Tue, 19 Apr 2022 16:20:33 +0000 (UTC) Received: by mail-lj1-x233.google.com with SMTP id q22so2936087ljh.10 for ; Tue, 19 Apr 2022 09:20:33 -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=AwPSlRbjlhsy8XFCXSj+BcLSd4AXUjJASAh7ilneiRU=; b=LxdPW1NK9aTlMMY3y8zztnSiSCdrno4Eg3+/on48i8bx8yZqlbJseBoHRliPiJI0ZV VHndrv3Xj34dfQs+LxcvozbhSgSJGkl1K1Qnf8uEMqlwRt4pLuFDoXMBMwhN9se4LfJ8 1EGIAmY0tL83XbcYW1+9/peYz/LJS4Ibwwjsxt4QppAD7E9fK9Q838nI27zmVoo3MytN 6eFqjnpFPlOJ1KP8SBJyJSVYLXpgYBzSYBK8IZHYLZb6GQ2H3D0labkpwmtfdVCPpgHu 6VDx6Z5EK4UYuysge6MZX9fLp2n/tlo+FuHPTtX6/Z8RBpXsEgT/bIEf5ieYF82PExm6 97sw== 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=AwPSlRbjlhsy8XFCXSj+BcLSd4AXUjJASAh7ilneiRU=; b=wZQuOkDHVV98vOjD0+uFWfnDX6F/H3vsYgfE8tWTZdY2IA0TKae8+xzFsAZxicsB3H 8RBu29gVE8ur0/Nhoul/baDnu6xbPaH81QZFKyDqNDjqz0OGc3jKJSsC0iPdsMrF8+HY ClM3dne0yayD6oCZnjg8+tMBjJPAl8FvynWWPn/AS8EVNeWr+TEXzrGqt7nfH/4k2IxH /yVOhvYIEJgBfXaM81SJnC5JU4xTKysV7qf8D02gkFDtC8lLbeEHu9qPTLXGhlLaq3Nt iYCXkLxW1OUcaO25pdFuTLiou56qPQ2+KNJYSSi77bY1as3YA7/OMIg9GUdejoU8U2NH RLdA== X-Gm-Message-State: AOAM530oIyMjXR3bUgWak+kigKhcVhKP1KsBcq1bJplnmVPIpkqFp0VB JWzZembGajXGBcTtAOugkAkPcQ== X-Google-Smtp-Source: ABdhPJxJ360RfODzF6vg6Cq8E0E3Qkq7x42CwaLCqbDfnV3nE8JOv6m9pA1PpS3y5AMLEGK6od8/2A== X-Received: by 2002:a2e:bc05:0:b0:24b:212d:7521 with SMTP id b5-20020a2ebc05000000b0024b212d7521mr10295661ljf.243.1650385232033; Tue, 19 Apr 2022 09:20:32 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id k15-20020a2e92cf000000b002493cc687f3sm1495153ljh.45.2022.04.19.09.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 09:20:31 -0700 (PDT) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Subject: [PATCH v2 0/3] Simplify VBIF handling Date: Tue, 19 Apr 2022 19:20:27 +0300 Message-Id: <20220419162030.1287562-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.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" As suggested by Abhinav, rework VBIF handling, simplifying the code. Changes since v1: - Fix array index comparison in patch 1 (as noted by Abhinav) Dmitry Baryshkov (3): drm/msm/dpu: index dpu_kms->hw_vbif using vbif_idx drm/msm/dpu: fix error handling around dpu_hw_vbif_init drm/msm/dpu: drop VBIF indices .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 6 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 14 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c | 65 +++++++++++-------- 4 files changed, 46 insertions(+), 43 deletions(-)