Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp732272pxb; Thu, 5 Nov 2020 11:27:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2Vh7suTI/RerbWqnTLy3hfYUQk/7Lvte6GMkexWFpJPhseHQNMP6c/V5VoqhiMy11L03O X-Received: by 2002:a50:8b65:: with SMTP id l92mr4341680edl.132.1604604446425; Thu, 05 Nov 2020 11:27:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604604446; cv=none; d=google.com; s=arc-20160816; b=XwY1aM+Dlhnx+qkNAH5gaMDt7K8rtWv/jv5wDjGk+dlLbz8Zistp3m8cpeE0sQ/jwP Mqb23RHE/nrLXsBhzJVcjmwAT+3JuCl0Umni6BESIUQYPrR+Mha8e+qGmATAInR3Bb9f a2gNCu2X/cx7thmFxhgfGfT1FCgQBq3Vm5rmz0BYjUIj7L8SBga1dWvhyJU7Rdvumq1G 3rz7kbS16IBE32BkNK7BwzPIPj4l0t9Op+v3y6+id/89a9seOMtP8b0sDQbxSPQcw41T cuNntjCp6apgOEs1tqMRkeqvkcBxJnqPCciTKRHY9/CNlEXglD3NmpNO0hy+OGOTySUk x0BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=c84j3FPt8y1UjleN+0uFFpolPY6RIuJxFH2eYBSSQwM=; b=rhiaJez1LOOzYj7aZ8jkCpZoYH/22AJVt8+0/qEY78LXvFaqJm4rdZXqYj23uNv6er 8vg4Z4MD4dxSy9zIebuVG9LfvFE7cSza0E7Jrd4QRBBcf3i8u2XlVBD4dO96c78xSKXo GRWIcH2Y944Z29R2nrWn1N5sS7ES2YmTBq6AveZh0M36HINgx14mJnSkfIGw8376Mb4w RLHR98G7QRv0wFN9fR7hbqgHsQgDHgWI+BVOJ83UXwWLJMC/szb+2ioCUvQzXezCaJv+ V2PcvomtUi7NtsVNRUJJwrXoEgd7bJC3XBSMo3vZE8xqc+Zjb/ehRPL94XmSlRt0NwYE o7iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r42bEGOe; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si2149490ejm.502.2020.11.05.11.27.02; Thu, 05 Nov 2020 11:27:26 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=r42bEGOe; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731799AbgKETY6 (ORCPT + 99 others); Thu, 5 Nov 2020 14:24:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726729AbgKETY6 (ORCPT ); Thu, 5 Nov 2020 14:24:58 -0500 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F27BCC0613CF; Thu, 5 Nov 2020 11:24:57 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id k18so2704211wmj.5; Thu, 05 Nov 2020 11:24:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c84j3FPt8y1UjleN+0uFFpolPY6RIuJxFH2eYBSSQwM=; b=r42bEGOeIz08DFt7u/ocu6oCFubXX1RmwgYMRnTBi0HVChg14xbAs+3qnBNHUNxHn1 Fy9Bykw9VDs96zeTESor/LkcYogD5dX4+xwldrVgP26jPaXIdcmPVIqPUzul5We3TtfY rB8ncaJpSdm+aQKBMbw7GmWuNMVnYxrYIAOKFDrAUXhOuBZXggtmCYY+JueeHhUb7BGh t12SX7+IS041UB4051lhaZP7zj4sWW8KqZizZKJUSoLnG8rIfnXdpDMXVHMxBtwRhrJ+ ce+sX2ZDlZsrIhs1SHm5O55Vo8DtkWqfWJrZMzHOhFUcA0l1jH5vQUWuIg6hs8wMk9Mf kwqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c84j3FPt8y1UjleN+0uFFpolPY6RIuJxFH2eYBSSQwM=; b=eJXzfGGVtVB1vcq8DS7mDc+V59Rb2CGaMLG138RGOZpcGlJHEPsqHg8b8NV0Vekrcx ZW0bYfpXcEYaTB7CbazVDfvq69WhOfoznRQ2hzHUM8ApdgKtaYd+SwXpuIVgiwTUCO9T HZz9CYjz5+0BkiuS/GzgrhIlaX8oM/2jtCqvJ7gOxRm4ORrP3GUuyYCUDbvJtbDid4/+ emEop7TPmqmlXxG5XSiJrxiwHA1XbYCdpyfYx4ea657yS3iQzzuuRJ/qyt0Npz9CGZVd Dzk9PyqceuzNB7prmEyWwzFx9ajP0WxVrPYinrP2CwWmr2o62F4TylDZvC5RBZ4zOBli dzvw== X-Gm-Message-State: AOAM5331qrc+p9U0RiTxeI62r7hSmS/pKOBXU7dpt8Zcie3yR4mvmksX 6b2SUE0AphjeHnt8YKMlvqGLwo2EkXAFMJfwvh8= X-Received: by 2002:a7b:cc05:: with SMTP id f5mr4304183wmh.123.1604604296642; Thu, 05 Nov 2020 11:24:56 -0800 (PST) MIME-Version: 1.0 References: <20201020090729.qgqish5kqamhvatj@vireshk-i7> <20201020112413.xbk2vow2kgjky3pb@vireshk-i7> <20201022080644.2ck4okrxygmkuatn@vireshk-i7> <20201027113532.nriqqws7gdcu5su6@vireshk-i7> <20201103054715.4l5j57pyjz6zd6ed@vireshk-i7> <20201104030353.ny7zvakgb4fsye6r@vireshk-i7> In-Reply-To: <20201104030353.ny7zvakgb4fsye6r@vireshk-i7> From: Rob Clark Date: Thu, 5 Nov 2020 11:24:44 -0800 Message-ID: Subject: Re: [PATCH v2 07/22] drm/msm: Do rpm get sooner in the submit path To: Viresh Kumar Cc: Daniel Vetter , dri-devel , Rob Clark , Sean Paul , David Airlie , "open list:DRM DRIVER FOR MSM ADRENO GPU" , "open list:DRM DRIVER FOR MSM ADRENO GPU" , open list , "Menon, Nishanth" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 3, 2020 at 7:04 PM Viresh Kumar wrote: > > On 03-11-20, 08:50, Rob Clark wrote: > > sorry, it didn't apply cleanly (which I guess is due to some other > > dependencies that need to be picked back to v5.4 product kernel), and > > due to some other things I'm in middle of debugging I didn't have time > > yet to switch to v5.10-rc or look at what else needs to > > cherry-picked.. > > > > If you could, pushing a branch with this patch somewhere would be a > > bit easier to work with (ie. fetch && cherry-pick is easier to deal > > with than picking things from list) > > It has been in linux-next for a few days. Here is the HEAD to pick > from. There are few patches there since rc1. > > commit 203e29749cc0 ("opp: Allocate the OPP table outside of opp_table_lock") > sorry for the delay, with that cherry-picked, I'm getting a whole lot of: [ 10.191497] WARNING: CPU: 7 PID: 52 at drivers/opp/of.c:115 _find_table_of_opp_np+0x8c/0x94 [ 10.191502] Modules linked in: [ 10.191517] CPU: 7 PID: 52 Comm: kworker/7:1 Tainted: G W 5.10.0-rc2+ #2 [ 10.191522] Hardware name: Google Lazor (rev1+) with LTE (DT) [ 10.191537] Workqueue: events deferred_probe_work_func [ 10.191551] pstate: 60c00009 (nZCv daif +PAN +UAO -TCO BTYPE=--) [ 10.202819] mmc0: CQHCI version 5.10 [ 10.206038] pc : _find_table_of_opp_np+0x8c/0x94 [ 10.206045] lr : _find_table_of_opp_np+0x34/0x94 [ 10.206050] sp : ffffffc010373810 [ 10.206054] x29: ffffffc010373810 x28: ffffff94c5a3d170 [ 10.206070] x27: ffffff94c5a3d168 [ 10.249098] mmc0: SDHCI controller on 7c4000.sdhci [7c4000.sdhci] using ADMA 64-bit [ 10.251366] x26: ffffff94c580c000 [ 10.251374] x25: 0000000000000001 x24: ffffff963f02c750 [ 10.251385] x23: 0000000000000000 x22: ffffff94c5aabc80 [ 10.251397] x21: ffffff963f021c78 x20: ffffff94c5a75800 [ 10.256963] sdhci_msm 7c4000.sdhci: mmc0: CQE init: success [ 10.260376] [ 10.260380] x19: ffffff963f02c750 x18: 0000000000000004 [ 10.260392] x17: 000000000000002c x16: ffffffe2468e1e78 [ 10.260404] x15: ffffffe246df3eb8 x14: ffffffff52f45308 [ 10.311816] x13: 0000000000000000 x12: ffffffe24541aef0 [ 10.317298] x11: ffffffe246df3eb8 x10: fffffffefe60e678 [ 10.322776] x9 : 0000000000000000 x8 : ffffffb3f89a7000 [ 10.328258] x7 : ffffffe245c5d9d0 x6 : 0000000000000000 [ 10.333730] x5 : 0000000000000080 x4 : 0000000000000001 [ 10.339206] x3 : 0000000000000000 x2 : 0000000000000006 [ 10.344684] x1 : ffffffe24684aa88 x0 : 0000000000000000 [ 10.350158] Call trace: [ 10.352695] _find_table_of_opp_np+0x8c/0x94 [ 10.353507] mmc0: Command Queue Engine enabled [ 10.357095] _of_init_opp_table+0x15c/0x1e4 [ 10.357103] _opp_get_opp_table+0x168/0x280 [ 10.357110] dev_pm_opp_set_clkname+0x28/0xcc [ 10.357119] dpu_bind+0x50/0x1a4 [ 10.357128] component_bind_all+0xf4/0x20c [ 10.357138] msm_drm_init+0x180/0x588 [ 10.361815] mmc0: new HS400 Enhanced strobe MMC card at address 0001 [ 10.366050] msm_drm_bind+0x1c/0x24 [ 10.366057] try_to_bring_up_master+0x160/0x1a8 [ 10.366065] component_master_add_with_match+0xc4/0x108 [ 10.366072] msm_pdev_probe+0x214/0x2a4 [ 10.366081] platform_drv_probe+0x94/0xb4 [ 10.374415] mmcblk0: mmc0:0001 DA4064 58.2 GiB [ 10.374871] really_probe+0x138/0x348 [ 10.374881] driver_probe_device+0x80/0xb8 [ 10.379483] mmcblk0boot0: mmc0:0001 DA4064 partition 1 4.00 MiB [ 10.382446] __device_attach_driver+0x90/0xa8 [ 10.382453] bus_for_each_drv+0x84/0xcc [ 10.382459] __device_attach+0xc0/0x148 [ 10.382466] device_initial_probe+0x18/0x20 [ 10.382473] bus_probe_device+0x38/0x98 [ 10.382483] deferred_probe_work_func+0x7c/0xb8 [ 10.387402] mmcblk0boot1: mmc0:0001 DA4064 partition 2 4.00 MiB [ 10.392780] process_one_work+0x314/0x60c [ 10.392786] worker_thread+0x238/0x3e8 [ 10.392793] kthread+0x148/0x158 [ 10.392800] ret_from_fork+0x10/0x18 [ 10.392809] CPU: 7 PID: 52 Comm: kworker/7:1 Tainted: G W 5.10.0-rc2+ #2 [ 10.397683] mmcblk0rpmb: mmc0:0001 DA4064 partition 3 16.0 MiB, chardev (241:0) [ 10.401051] Hardware name: Google Lazor (rev1+) with LTE (DT) [ 10.401062] Workqueue: events deferred_probe_work_func [ 10.401069] Call trace: [ 10.401077] dump_backtrace+0x0/0x1b4 [ 10.401087] show_stack+0x1c/0x24 [ 10.427111] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 [ 10.427156] dump_stack+0xdc/0x158 [ 10.427165] __warn+0xd8/0x16c [ 10.427173] report_bug+0x88/0xe0 [ 10.427179] bug_handler+0x24/0x6c [ 10.535574] brk_handler+0x78/0xb4 [ 10.539090] do_debug_exception+0x1a4/0x208 [ 10.543395] el1_sync_handler+0x8c/0x110 [ 10.547434] el1_sync+0x7c/0x100 [ 10.550762] _find_table_of_opp_np+0x8c/0x94 [ 10.555166] _of_init_opp_table+0x15c/0x1e4 [ 10.559472] _opp_get_opp_table+0x168/0x280 [ 10.563779] dev_pm_opp_set_clkname+0x28/0xcc [ 10.568270] dpu_bind+0x50/0x1a4 [ 10.571607] component_bind_all+0xf4/0x20c [ 10.575826] msm_drm_init+0x180/0x588 [ 10.579603] msm_drm_bind+0x1c/0x24 [ 10.583205] try_to_bring_up_master+0x160/0x1a8 [ 10.587877] component_master_add_with_match+0xc4/0x108 [ 10.593251] msm_pdev_probe+0x214/0x2a4 [ 10.597203] platform_drv_probe+0x94/0xb4 [ 10.601334] really_probe+0x138/0x348 [ 10.605110] driver_probe_device+0x80/0xb8 [ 10.609329] __device_attach_driver+0x90/0xa8 [ 10.613821] bus_for_each_drv+0x84/0xcc [ 10.617774] __device_attach+0xc0/0x148 [ 10.621729] device_initial_probe+0x18/0x20 [ 10.626044] bus_probe_device+0x38/0x98 [ 10.629998] deferred_probe_work_func+0x7c/0xb8 [ 10.634668] process_one_work+0x314/0x60c [ 10.638797] worker_thread+0x238/0x3e8 [ 10.642661] kthread+0x148/0x158 [ 10.645997] ret_from_fork+0x10/0x18 [ 10.649683] irq event stamp: 117274 [ 10.653290] hardirqs last enabled at (117273): [] _raw_spin_unlock_irqrestore+0x60/0x94 [ 10.663213] hardirqs last disabled at (117274): [] do_debug_exception+0x60/0x208 [ 10.672420] softirqs last enabled at (116976): [] __do_softirq+0x4bc/0x540 [ 10.681184] softirqs last disabled at (116971): [] __irq_exit_rcu+0x118/0x138 [ 10.690123] ---[ end trace 00b127c206a99072 ]---