From patchwork Fri Jul 20 20:42:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10538303 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 035A9604D3 for ; Fri, 20 Jul 2018 20:44:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E294528E92 for ; Fri, 20 Jul 2018 20:44:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D4E1828ECC; Fri, 20 Jul 2018 20:44:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8100428E92 for ; Fri, 20 Jul 2018 20:44:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728170AbeGTVeP (ORCPT ); Fri, 20 Jul 2018 17:34:15 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:46065 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727412AbeGTVeP (ORCPT ); Fri, 20 Jul 2018 17:34:15 -0400 Received: by mail-yw0-f194.google.com with SMTP id 139-v6so4811182ywg.12 for ; Fri, 20 Jul 2018 13:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=Lbo43kpGXAgJ6MybSsdaqG4YKugBgvmXS2Wm/aCnZ6k=; b=kdK0xFgLcn5KxVnJwnzk5vFUZjhyV9CSbrmpFsTDxbFKow1m91ZY/us67fr0UvVsQ1 qI8PlRqtlLA6p2Dg9BK3Ejg8uKt/urycTgiDz6q+1SftvV5GDVZCfEAE6QcZO48H20Uw unXaauKThQC+83X3/KRQBE6J55VnFJXfIUKF4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Lbo43kpGXAgJ6MybSsdaqG4YKugBgvmXS2Wm/aCnZ6k=; b=HRvH7+fQiqpkXiVTxmx+cEWwZy1nIe1K9Fupee7qALgVJP/XA8LKKFPhcxxbGxWJr5 DpW6qWcCbccluKvpaxiGsek6EsY0b+UTSXnIe+KnyYtmBPxUVpCW+6+6OXaCKa4fJhwW dlzk4S/dccDo999nYK2ZdqLptjTVTWYVYfVbo+a58NtINpKO0jTiHU4sMF4JXqJUU27r gUVP1M9NTVKp0MEAptVz9HymcwsUhOH6crNcT07yjqIYIEBgJ3w99P7hSsWEAVI7iDl/ MtFNlmxTHHFme2NgW4LmefOBa2dtmTmox7jzKCX189ZWVRwcLkaBFOv2JC+VnvP0WLLO 8b4g== X-Gm-Message-State: AOUpUlHKyL+SOwSWQBygvMEJ+tccghgh15/tMh2Q1atoDQHgNtfLY+SY 44BxkAJMRqFl8IXGXvRbrzBQLQ== X-Google-Smtp-Source: AAOMgpfcnejF+P8tFO4ONEzcpvwOitVJOMvAlW18K5/gjbzgKHc9RmSgIPNOeRSd0Q8WK7EBxA33sg== X-Received: by 2002:a0d:e742:: with SMTP id q63-v6mr1808919ywe.432.1532119459170; Fri, 20 Jul 2018 13:44:19 -0700 (PDT) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id a2-v6sm2453831ywm.7.2018.07.20.13.44.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 13:44:18 -0700 (PDT) From: Sean Paul To: abhinavk@codeaurora.org, architt@codeaurora.org, chandanu@codeaurora.org, jsanka@codeaurora.org, jcrouse@codeaurora.org, ryadav@codeaurora.org, seanpaul@chromium.org, skolluku@codeaurora.org, dri-devel@lists.freedesktop.org, robdclark@gmail.com, airlied@linux.ie, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, nganji@codeaurora.org, hoegsberg@chromium.org, dovizu@chromium.org, robh+dt@kernel.org Subject: [PATCH v3 06/19] drm/msm/dsi: initialize postdiv_lock before use for 10nm pll Date: Fri, 20 Jul 2018 16:42:57 -0400 Message-Id: <20180720204315.19054-7-seanpaul@chromium.org> X-Mailer: git-send-email 2.18.0.233.g985f88cf7e-goog In-Reply-To: <20180720204315.19054-1-seanpaul@chromium.org> References: <20180720204315.19054-1-seanpaul@chromium.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rajesh Yadav postdiv_lock spinlock was used before initialization for 10nm pll. It causes following spin_bug: "BUG: spinlock bad magic on CPU#0". Initialize spinlock before its usage. Changes in v3: - Added Archit's R-b Reviewed-by: Archit Taneja Signed-off-by: Rajesh Yadav Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c b/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c index c4c37a7df637..4c03f0b7343e 100644 --- a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c +++ b/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c @@ -798,6 +798,8 @@ struct msm_dsi_pll *msm_dsi_pll_10nm_init(struct platform_device *pdev, int id) return ERR_PTR(-ENOMEM); } + spin_lock_init(&pll_10nm->postdiv_lock); + pll = &pll_10nm->base; pll->min_rate = 1000000000UL; pll->max_rate = 3500000000UL;