Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp317265pxa; Thu, 27 Aug 2020 03:14:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZPG94sprA5QZiRte1+UoWkydgfj0nhKYzW+ojTHAtQXuVTxX55ktFLVnS52XNKslei4S3 X-Received: by 2002:aa7:d6d6:: with SMTP id x22mr20076742edr.282.1598523263423; Thu, 27 Aug 2020 03:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598523263; cv=none; d=google.com; s=arc-20160816; b=SHCw/74lgYABp3IYeiVLY/LKWh2CLU7PjdvS9VsWhbf7QCXlzfFwmg5eW3WlslNM4O bATcCJa52MSqO34/Fi+aGuJVn2cv3krnNkNsQ+Su281voi4NzAFm9LvCIPq/yEiDg8ae X3nDmFtiyQpoVWEyusyrFFOVkvTg3KgMCXkBqbSIXdd93RB0QyIOd+S2bpRDbsegMjTD v69YjS1DCb7IuoYOQN7AXMFVnjUU1V0LDT42jF/BX69vv7/tzh8Abqi+gyFScn/HD8GJ NSUAV4WJFKtmIG2lMrGo2eI1/zqCsuh1s5hQy/WuZAVfvBnI1n2Qha8xF9UWUnjSJJdX 1zVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NJv+kX0fx+tQS4yK9UoZ8qyQVF+m9p2XpweB7RFLEmo=; b=1E8DUUYN5v7jj7pUlC573VEqNvUkMsFGBviFSp7oHni+7O9mRcMnUML4v2r8v/YHny xGCp3zPdgcjm1aQf53XbH0gKA2UzC1IRxMRVxINFl0nhpaHfQPyVtN6cUo02c+d0Nrfk afoXVNTcEEek2pQEN0PcrLKqwlFrj+DcxsMsV9DH4F+4KHXyfbjuOS/KjFvjl6JBxhXF zVxmjmwXcladO8oJZkae4fff57NS5CDDJhxsOGn50BpPLwp298EUi4BCiTt/iqvMlwta /CqANBY81Vb6cYSAD0Ri1QW8+VkPX46B6WfrRMFWmMc4nvNR1GJ3Yb8fqIRnbsA4oZDM FfFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kLi7Icac; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 l10si1165405edf.398.2020.08.27.03.13.59; Thu, 27 Aug 2020 03:14:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=kLi7Icac; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727897AbgH0KMj (ORCPT + 99 others); Thu, 27 Aug 2020 06:12:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgH0KMe (ORCPT ); Thu, 27 Aug 2020 06:12:34 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53FA0C061264 for ; Thu, 27 Aug 2020 03:12:34 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 17so3121630pfw.9 for ; Thu, 27 Aug 2020 03:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NJv+kX0fx+tQS4yK9UoZ8qyQVF+m9p2XpweB7RFLEmo=; b=kLi7Icack7lOIO0wq/nfvgRAgBD76TneJHfLt62pddUwAvuIwFGXPrt1RPO8ERlHSo jKOKr6Lrr2qByhU+y6ZmL9L813/DyrKinJcgIS7+KnjcL77/HCvBxrD4ZhmPbVAsHVIn O5YKdLMrouJ3H29P/pzRpIb4owUvrYRpqQgJlBH3dcSERgXGWf/UyxE4RDoCA2o7w0ad Tlu+f6TfGreAJScwgA+LinJxOc2eB9u1t427zGHYB1yHLCdJhS/hDO6U1c7GY4KEl3Xj q6I7v/VS9qIH9hk9ODo0rX5fGAxRmbql8etWjJt15uj+qUnmMQ0DDhSxx2ciI6xaVGcp lSgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NJv+kX0fx+tQS4yK9UoZ8qyQVF+m9p2XpweB7RFLEmo=; b=EmQ7TOt50Y2ccZqO4ckA9gT+BMWqTdFnJHUVg9bSnYMoy7HYf55WY8dyMJxa+9WFJC WKqbSDMP7S2kLMU/lHFr2LbeiPLY4pcQgt3Ccn0qFOPrp+DoY+Vn+ghXI5ZpKToHDy6r THsUYTJ+8uastD+vKNpigxwI7k+bAS+hhtEo5e5pBmS/2y7W/2NQ78mHrAaVR1TuBUwE AZ4LIbbj56UMu5J28ZhdyS/BrZj/JDnvcH+P0XsiIp2JA5cTNraozW61cj5tOsqaelEd /UyG8YzXGBMHjubDD8+pLlVIysquzkuHA6EQOJg26sCJ6MDjK5g5xKiQqmu2tjOwp9Bd WhQw== X-Gm-Message-State: AOAM533va76+t7tXIdksUmXsyGZmFuUYfEawYZkGWwDhYDggaZ7xXVgX rYDvYl14g9Lr+52HckQyVfIQFg== X-Received: by 2002:a05:6a00:2285:: with SMTP id f5mr15977535pfe.173.1598523153812; Thu, 27 Aug 2020 03:12:33 -0700 (PDT) Received: from localhost ([122.167.135.199]) by smtp.gmail.com with ESMTPSA id fv21sm1717054pjb.16.2020.08.27.03.12.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2020 03:12:32 -0700 (PDT) Date: Thu, 27 Aug 2020 15:42:31 +0530 From: Viresh Kumar To: Arnd Bergmann Cc: Naresh Kamboju , Rajendra Nayak , open list , Linux-Next Mailing List , Stephen Rothwell , linux-clk , linux-mmc , lkft-triage@lists.linaro.org, John Stultz , Daniel Lezcano , Ulf Hansson , Michael Turquette , Stephen Boyd , Lars Povlsen , madhuparnabhowmik10@gmail.com Subject: Re: Kernel panic : Unable to handle kernel paging request at virtual address - dead address between user and kernel address ranges Message-ID: <20200827101231.smqrhqu5da6jlz6i@vireshk-i7> References: <20200827090813.fjugeqbb47fachy7@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27-08-20, 11:48, Arnd Bergmann wrote: > > > [ 3.680477] dev_pm_opp_put_clkname+0x30/0x58 > > > [ 3.683431] sdhci_msm_probe+0x284/0x9a0 > > dev_pm_opp_put_clkname() is part of the error handling in the > probe function, so I would deduct there are two problems: > > - something failed during the probe and the driver is trying > to unwind > - the error handling it self is buggy and tries to undo something > again that has already been undone. Right. > This points to Viresh's > d05a7238fe1c mmc: sdhci-msm: Unconditionally call dev_pm_opp_of_remove_table() I completely forgot that Ulf already pushed this patch and I was wondering on which of the OPP core changes I wrote have done this :( > Most likely this is not the entire problem but it uncovered a preexisting > bug. I think this is. Naresh: Can you please test with this diff ? diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index b7e47107a31a..401839a97b57 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -2286,7 +2286,7 @@ static int sdhci_msm_probe(struct platform_device *pdev) ret = dev_pm_opp_of_add_table(&pdev->dev); if (ret != -ENODEV) { dev_err(&pdev->dev, "Invalid OPP table in Device tree\n"); - goto opp_cleanup; + goto opp_put_clkname; } /* Vote for maximum clock rate for maximum performance */ @@ -2451,6 +2451,7 @@ static int sdhci_msm_probe(struct platform_device *pdev) msm_host->bulk_clks); opp_cleanup: dev_pm_opp_of_remove_table(&pdev->dev); +opp_put_clkname: dev_pm_opp_put_clkname(msm_host->opp_table); bus_clk_disable: if (!IS_ERR(msm_host->bus_clk)) -- viresh