From patchwork Tue Apr 5 23:45:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12802129 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 AF322C433F5 for ; Tue, 5 Apr 2022 23:45:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A106110E824; Tue, 5 Apr 2022 23:45:54 +0000 (UTC) Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by gabe.freedesktop.org (Postfix) with ESMTPS id F06D810E824 for ; Tue, 5 Apr 2022 23:45:53 +0000 (UTC) Received: by mail-lj1-x236.google.com with SMTP id bn33so1060496ljb.6 for ; Tue, 05 Apr 2022 16:45:53 -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=FHNN2mSJ3x+q9jH5PWO6X0bvixa+kSt0fmYoqYECsKk=; b=T6Jcn97rtZF8kxQuxjc+V1ulcQ1/sxTl7CIWujNP8Iyu0sDdXUOkRfiQufT6QFhZaG bWIDgTZG3PTHx8bRNkYAUjGLbln8Wc8JCaEOx0Gm2TGHOTtuN3ThRoUF6qdNg737stNT Ou1MwgLjmxb1SwaJqWRkSELPODae5SxJwvJUqGWz7z/KboCp9oodSIrvrirnJM1qgG1n G6bELGU1sqYCMJ9uve+/XjO0j8wLMzRFq3pTFa6RxfsI5bYE6CpBtjqafjxKO6f9cA0r 7U+3nX4/9XZNDSY9J0bsKr7hqco0w6pWO9tNZp/HuZRMovDWffPkLvQ0xCBIY9eX9Blx QoAg== 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=FHNN2mSJ3x+q9jH5PWO6X0bvixa+kSt0fmYoqYECsKk=; b=V3hvz0+HPuu5dkaRkmAFqYvprr4CT0/0Y9HWm8xLdqt92oBCbiT6SBcwWzpSJ2YiBp jio9nw0Yqwz14yfmdXMF6uTfRUUAAYidxt1IZMX6DLNy5MYyYpfoESzDD3aJAvK4I+qJ Sh4UFK6sJ72bTj0z7WRqyJjLRccFTy7cYiKlkFOQ6JGbAGKlTonYtkWKN5eMf0LHanFJ ZSM6Xurpxpv/agSQlxJ+pYiaCiDXMNhSEjmjU281zGBgtv8O+50J6Mpcaa86DePEMRN+ 9A7xEejK+ecABARmsMiClzaGWWOFzW8TOwwE2KJgFjzxB+LcOVbaHHCkEFi/fh2daKy6 8NcA== X-Gm-Message-State: AOAM532PloHEfrFXifdAs24Ft/uc8BT+OEUTHS5RYrMhNUEKCwsPGWwU NM2wBlOsUMPDFC+pae6Uz3fFiA== X-Google-Smtp-Source: ABdhPJzkToHLpplQMOLHZSVka6ZBmiCriVZwm+PE6IeOGsKoEGIEhX1BAlK9J5qMuBzNWr0j1FJRCg== X-Received: by 2002:a05:651c:50e:b0:249:89ef:101b with SMTP id o14-20020a05651c050e00b0024989ef101bmr3490721ljp.109.1649202352309; Tue, 05 Apr 2022 16:45:52 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id g11-20020ac24d8b000000b0044a3454c858sm1651897lfe.81.2022.04.05.16.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 16:45:51 -0700 (PDT) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Subject: [PATCH 0/4] drm/msm: properly add and remove internal bridges Date: Wed, 6 Apr 2022 02:45:47 +0300 Message-Id: <20220405234551.359453-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" While running the kernel with the mutex debugging enabled, I noticed the warning reported in the first commit (that the bridge's hpd_mutex is unitialized). Additional research revealed that we do not add and remove internal drm_bridges in the msm drm driver. Fix this now. Dmitry Baryshkov (4): drm/msm/hdmi: properly add and remove created bridges drm/msm/dsi: properly add and remove created bridges drm/msm/dp: properly add and remove created bridges drm/msm: unregister all internal bridges drivers/gpu/drm/msm/dp/dp_drm.c | 5 +++++ drivers/gpu/drm/msm/dsi/dsi_manager.c | 3 +++ drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 3 +++ drivers/gpu/drm/msm/msm_drv.c | 3 +++ 4 files changed, 14 insertions(+)