From patchwork Mon Jun 25 13:42:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajesh Yadav X-Patchwork-Id: 10486207 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 048A1604D3 for ; Mon, 25 Jun 2018 13:42:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEE8F28249 for ; Mon, 25 Jun 2018 13:42:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3C552837D; Mon, 25 Jun 2018 13:42:25 +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 71AEE2832D for ; Mon, 25 Jun 2018 13:42:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933935AbeFYNmX (ORCPT ); Mon, 25 Jun 2018 09:42:23 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44550 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755604AbeFYNmV (ORCPT ); Mon, 25 Jun 2018 09:42:21 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4D8CC607EB; Mon, 25 Jun 2018 13:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529934141; bh=NPw8c5F+AM2TrK51XehDj4FtyfKewv30Z+GYPwh0gnE=; h=From:To:Cc:Subject:Date:From; b=CtD9tp+LXbe5MoxWCTojh6kQBsFRZo8K7Zd6Q2J+N7f9XrHbXygosqfie8GjWcqLm 88971QlAk7LcZW/j4RJmwkJ8bxBnAPBGYlYf63fSlFScSgt/1v5SLENVroKPeYn3JI PqLXVzjtlTYNygp1RfZZUTY6NfKILU+zf4xRvNaU= Received: from ryadav-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ryadav@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D53096063F; Mon, 25 Jun 2018 13:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529934141; bh=NPw8c5F+AM2TrK51XehDj4FtyfKewv30Z+GYPwh0gnE=; h=From:To:Cc:Subject:Date:From; b=CtD9tp+LXbe5MoxWCTojh6kQBsFRZo8K7Zd6Q2J+N7f9XrHbXygosqfie8GjWcqLm 88971QlAk7LcZW/j4RJmwkJ8bxBnAPBGYlYf63fSlFScSgt/1v5SLENVroKPeYn3JI PqLXVzjtlTYNygp1RfZZUTY6NfKILU+zf4xRvNaU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D53096063F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ryadav@codeaurora.org From: Rajesh Yadav To: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: Rajesh Yadav , robdclark@gmail.com, seanpaul@chromium.org, hoegsberg@chromium.org Subject: [PATCH] drm/msm/dsi: initialize postdiv_lock before use for 10nm pll Date: Mon, 25 Jun 2018 19:12:03 +0530 Message-Id: <1529934123-10902-1-git-send-email-ryadav@codeaurora.org> X-Mailer: git-send-email 1.9.1 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 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. Signed-off-by: Rajesh Yadav --- 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 dbf601f..6c3ed1b 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;