Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2720331ybi; Mon, 17 Jun 2019 09:29:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZp7q4316lOKQUgXsoF1HFlaDN03/aBPy+lIzo9IHl2S7GFgIMbpsK1cbnIWkrS5XoExsc X-Received: by 2002:a63:d2:: with SMTP id 201mr47585438pga.121.1560788984147; Mon, 17 Jun 2019 09:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560788984; cv=none; d=google.com; s=arc-20160816; b=pYbJrXjkIn2NhTbdT7PgiKPupBW+zS6+P+leiDIPB3qkjxaMADB5zkl3Sfwe50SzVd U1YPcph2kX10goId7gMoKcvVDhiSpAhAvvrTh9kRHStyOJoC+JIWfGYy6byo1hnn03qY WfAtMT24jVESM8PFtQG1UCvHpNVjpd0XMqfXdMgT+e7CFAifm3PmMwFQX9Aax4mM3D2i KowclX32HgBzWxtgyVM8Jfrw5hWlw01XdNjHJD+T3D3e6hHGqy/fBz+ErS8NcMd5Dqet mA5hcLyea72unY9LSIMvBrmPMA14kEpwFDHG/P4Qi9eHaaYtve3B2a6CRPrGNh7rGYZW og/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=a3rH22zxQ284IB8YCkCH6QkWClM8dExRyy9XYZnWPqk=; b=UjLjbwSK5Mok7vG1CSssX2LbBeJnF8cgzTPGfM2LPVfEGbAE99jZD40Rx8/9Cd8cwb JNVbx1+hBcp/ymc9Qu6RY06d55g/5/oxPrpMfaOz7jDj5aVQg2lKd+H6X5PzVDn08n+g 6rRYN9ItnQArDYEJ4p7sxRf/6s7ZpGs+CeqHibBYZVFha3feVtDRy1T5UrJvmztRvW0g 93KWc+mAioFr4HRoJUOtt9BLOaTtvNaFIVfMxc21tJUxqLOHNiiqrvQeuzpEYKm5h50i hpyIbiQZEYQs7G8R9bysiElbPej3fJcAiL1sGBz5QVzVAUhD0kncDcop+8Ah+4D82DfY K50g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Iu6for3/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id ci5si10773388plb.45.2019.06.17.09.29.28; Mon, 17 Jun 2019 09:29:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Iu6for3/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727873AbfFQQ20 (ORCPT + 99 others); Mon, 17 Jun 2019 12:28:26 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:35796 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725863AbfFQQ20 (ORCPT ); Mon, 17 Jun 2019 12:28:26 -0400 Received: by mail-ed1-f68.google.com with SMTP id p26so17051678edr.2; Mon, 17 Jun 2019 09:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=a3rH22zxQ284IB8YCkCH6QkWClM8dExRyy9XYZnWPqk=; b=Iu6for3/XmxamV8VIiOIlI5JztCRwJo1pVQDLimBl3Dia9ixne4Y5w7FNziNJi5euU WRvDFYcWA/8kNANdDIU88YB4uNZNkjkFJ/m9G6GA7LkqS/zO8/uIU/mw6fZRMefikqBI 67uyQdVxXeoeeiTnNw/ITyX/rd6IgtfDN//ka1iMbOwoXl1Q6qq/dbHyRVXhQ3pSiRU8 oKC9FTlkwrOOgxWrsV8ytG10kq2QemV3clnAm2tEb6IVaU9mxOexSmw1fWCnjQT9eh3U aTbjYD7n767Ecw9YvlQaoG4KMPrZdQYZv4IN9IOApW+7SHHnCBEtdG05nZ4gYGOxGqjP Nj6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=a3rH22zxQ284IB8YCkCH6QkWClM8dExRyy9XYZnWPqk=; b=Mro0ZxIXlLoxkSZPHKu3rPvzaPvo6awBAzMR4aL4R1pPBqG8Dnsw+wLssLGIDldT1m 5qdqJtt3WXEmNyW5MGRfDV0nCYsDpk7oBrcEYtvRPx+Fgv7SVMu8d4TmznueWKG9Mhe3 p3bsA09THeEeIu0QTaEzM6JK5NuwtFg2TYiz9qWmpaY0GivbJKSXBA6E+xrgfQiE/MNl 0OdpvJ8VtDx9mBJVDq05UCt7JQyMRE3NE/KD+Fgzy1UVOnaeMitt+ugdoGJK1SDNbgML bDM6/FbR0q7Aw1Zd5cP4uLecFy/PtwyMw1v2HwqkzJSzvAqD18VlY8FqykdkdTPQwLlI DhVQ== X-Gm-Message-State: APjAAAUGnexxxBljV0n/ZA2X1IBzfQw/jtqAZ3UTU3hZUCDP6rf7+K/j E3zZoP/khlUWoMIdAW2YzT0= X-Received: by 2002:a17:906:8386:: with SMTP id p6mr76196658ejx.139.1560788903450; Mon, 17 Jun 2019 09:28:23 -0700 (PDT) Received: from ziggy.stardust ([37.223.140.27]) by smtp.gmail.com with ESMTPSA id u9sm2455104edm.71.2019.06.17.09.28.21 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 09:28:22 -0700 (PDT) Subject: Re: [PATCH v7 16/21] memory: mtk-smi: Add bus_sel for mt8183 To: Pi-Hsun Shih , Yong Wu Cc: Joerg Roedel , Robin Murphy , Rob Herring , Evan Green , Tomasz Figa , Will Deacon , "moderated list:ARM/Mediatek SoC support" , srv_heupstream@mediatek.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , "moderated list:ARM/Mediatek SoC support" , iommu@lists.linux-foundation.org, yingjoe.chen@mediatek.com, youlin.pei@mediatek.com, Nicolas Boichat , anan.sun@mediatek.com, Matthias Kaehlcke References: <1560169080-27134-1-git-send-email-yong.wu@mediatek.com> <1560169080-27134-17-git-send-email-yong.wu@mediatek.com> From: Matthias Brugger Openpgp: preference=signencrypt Autocrypt: addr=matthias.bgg@gmail.com; prefer-encrypt=mutual; keydata= mQINBFP1zgUBEAC21D6hk7//0kOmsUrE3eZ55kjc9DmFPKIz6l4NggqwQjBNRHIMh04BbCMY fL3eT7ZsYV5nur7zctmJ+vbszoOASXUpfq8M+S5hU2w7sBaVk5rpH9yW8CUWz2+ZpQXPJcFa OhLZuSKB1F5JcvLbETRjNzNU7B3TdS2+zkgQQdEyt7Ij2HXGLJ2w+yG2GuR9/iyCJRf10Okq gTh//XESJZ8S6KlOWbLXRE+yfkKDXQx2Jr1XuVvM3zPqH5FMg8reRVFsQ+vI0b+OlyekT/Xe 0Hwvqkev95GG6x7yseJwI+2ydDH6M5O7fPKFW5mzAdDE2g/K9B4e2tYK6/rA7Fq4cqiAw1+u EgO44+eFgv082xtBez5WNkGn18vtw0LW3ESmKh19u6kEGoi0WZwslCNaGFrS4M7OH+aOJeqK fx5dIv2CEbxc6xnHY7dwkcHikTA4QdbdFeUSuj4YhIZ+0QlD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AQIACQUCU/YJEgIbDAAKCRDZFAuyVhMC8QndEACuN16mvivn WwLDdypvco5PF8w9yrfZDKW4ggf9TFVB9skzMNCuQc+tc+QM+ni2c4kKIdz2jmcg6QytgqVu m6V1OsNmpjADaQkVp5jL0tmg6/KA9Tvr07Kuv+Uo4tSrS/4djDjJnXHEp/tB+Fw7CArNtUtL lc8SuADCmMD+kBOVWktZyzkBkDfBXlTWl46T/8291lEspDWe5YW1ZAH/HdCR1rQNZWjNCpB2 Cic58CYMD1rSonCnbfUeyZYNNhNHZosl4dl7f+am87Q2x3pK0DLSoJRxWb7vZB0uo9CzCSm3 I++aYozF25xQoT+7zCx2cQi33jwvnJAK1o4VlNx36RfrxzBqc1uZGzJBCQu48UjmUSsTwWC3 HpE/D9sM+xACs803lFUIZC5H62G059cCPAXKgsFpNMKmBAWweBkVJAisoQeX50OP+/11ArV0 cv+fOTfJj0/KwFXJaaYh3LUQNILLBNxkSrhCLl8dUg53IbHx4NfIAgqxLWGfXM8DY1aFdU79 pac005PuhxCWkKTJz3gCmznnoat4GCnL5gy/m0Qk45l4PFqwWXVLo9AQg2Kp3mlIFZ6fsEKI AN5hxlbNvNb9V2Zo5bFZjPWPFTxOteM0omUAS+QopwU0yPLLGJVf2iCmItHcUXI+r2JwH1CJ jrHWeQEI2ucSKsNa8FllDmG/fQ== Message-ID: <99b3096f-ece2-f130-e86f-0e84c8315ff4@gmail.com> Date: Mon, 17 Jun 2019 18:28:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/06/2019 10:20, Pi-Hsun Shih wrote: > (Sorry for the possibly double-posting, my last mail got rejected by > some mailing lists.) > > Hi, > When I tested this patch series (Based on linux 5.2.0-rc2, and with > various other patch series about MT8183) with lockdep enabled, and I'm > seeing the following lockdep warning on boot. > > By bisecting the commits, the first commit that introduce this warning > is this patch. The warning also doesn't appear if Are you sure about this? From the lockdep call graph it looks more like patch [PATCH v7 15/21] memory: mtk-smi: Invoke pm runtime_callback to enable clocks has something to do with it. But not an expert either, sorry. Regards, Matthias > https://lore.kernel.org/patchwork/patch/1086582/ and > https://lore.kernel.org/patchwork/patch/1086583/ are not applied. > > Do anyone have idea on why this is happening, or any suggestion on > which part I should be digging into to figure this out? Thanks. > > [ 4.664194] ====================================================== > [ 4.670368] WARNING: possible circular locking dependency detected > [ 4.676545] 5.2.0-rc2-next-20190528-44527-g6c94b6475c04 #20 Tainted: G S > [ 4.684539] ------------------------------------------------------ > [ 4.690714] kworker/4:1/51 is trying to acquire lock: > [ 4.695760] (____ptrval____) (regulator_list_mutex){+.+.}, > at:regulator_lock_dependent+0xdc/0x6c4 > [ 4.704732] > [ 4.704732] but task is already holding lock: > [ 4.710556] (____ptrval____) (&genpd->mlock/1){+.+.}, > at:genpd_lock_nested_mtx+0x24/0x30 > [ 4.718740] > [ 4.718740] which lock already depends on the new lock. > [ 4.718740] > [ 4.726908] > [ 4.726908] the existing dependency chain (in reverse order) is: > [ 4.734382] > [ 4.734382] -> #4 (&genpd->mlock/1){+.+.}: > [ 4.739963] __mutex_lock_common+0x1a0/0x1fe8 > [ 4.744836] mutex_lock_nested+0x40/0x50 > [ 4.749275] genpd_lock_nested_mtx+0x24/0x30 > [ 4.754063] genpd_add_subdomain+0x150/0x524 > [ 4.758850] pm_genpd_add_subdomain+0x3c/0x5c > [ 4.763723] scpsys_probe+0x520/0xe78 > [ 4.767902] platform_drv_probe+0xf4/0x134 > [ 4.772517] really_probe+0x214/0x4dc > [ 4.776696] driver_probe_device+0xcc/0x1d4 > [ 4.781396] __device_attach_driver+0x10c/0x180 > [ 4.786442] bus_for_each_drv+0x124/0x184 > [ 4.790968] __device_attach+0x1c0/0x2d8 > [ 4.795407] device_initial_probe+0x20/0x2c > [ 4.800106] bus_probe_device+0x80/0x16c > [ 4.804546] deferred_probe_work_func+0x120/0x168 > [ 4.809767] process_one_work+0x858/0x1208 > [ 4.814379] worker_thread+0x9ec/0xcb8 > [ 4.818644] kthread+0x2b8/0x2d0 > [ 4.822391] ret_from_fork+0x10/0x18 > [ 4.826480] > [ 4.826480] -> #3 (&genpd->mlock){+.+.}: > [ 4.831880] __mutex_lock_common+0x1a0/0x1fe8 > [ 4.836752] mutex_lock_nested+0x40/0x50 > [ 4.841190] genpd_lock_mtx+0x20/0x2c > [ 4.845369] genpd_runtime_resume+0x140/0x434 > [ 4.850241] __rpm_callback+0xb0/0x1e4 > [ 4.854506] rpm_callback+0x54/0x1a8 > [ 4.858597] rpm_resume+0xc6c/0x10c4 > [ 4.862689] __pm_runtime_resume+0xb4/0x124 > [ 4.867387] device_link_add+0x598/0x8d0 > [ 4.871829] mtk_smi_larb_probe+0x2b0/0x340 > [ 4.876528] platform_drv_probe+0xf4/0x134 > [ 4.881141] really_probe+0x214/0x4dc > [ 4.885320] driver_probe_device+0xcc/0x1d4 > [ 4.890020] __device_attach_driver+0x10c/0x180 > [ 4.895066] bus_for_each_drv+0x124/0x184 > [ 4.899591] __device_attach+0x1c0/0x2d8 > [ 4.904031] device_initial_probe+0x20/0x2c > [ 4.908730] bus_probe_device+0x80/0x16c > [ 4.913169] deferred_probe_work_func+0x120/0x168 > [ 4.918387] process_one_work+0x858/0x1208 > [ 4.923000] worker_thread+0x9ec/0xcb8 > [ 4.927264] kthread+0x2b8/0x2d0 > [ 4.931009] ret_from_fork+0x10/0x18 > [ 4.935098] > [ 4.935098] -> #2 (dpm_list_mtx){+.+.}: > [ 4.940412] __mutex_lock_common+0x1a0/0x1fe8 > [ 4.945284] mutex_lock_nested+0x40/0x50 > [ 4.949722] device_pm_lock+0x1c/0x24 > [ 4.953900] device_link_add+0x98/0x8d0 > [ 4.958252] _regulator_get+0x3f0/0x504 > [ 4.962606] _devm_regulator_get+0x58/0xb8 > [ 4.967218] devm_regulator_get+0x28/0x34 > [ 4.971746] pwm_backlight_probe+0x61c/0x1b90 > [ 4.976617] platform_drv_probe+0xf4/0x134 > [ 4.981230] really_probe+0x214/0x4dc > [ 4.985409] driver_probe_device+0xcc/0x1d4 > [ 4.990108] device_driver_attach+0xe4/0x104 > [ 4.994894] __driver_attach+0x134/0x14c > [ 4.999333] bus_for_each_dev+0x120/0x180 > [ 5.003859] driver_attach+0x48/0x54 > [ 5.007950] bus_add_driver+0x2ac/0x44c > [ 5.012303] driver_register+0x160/0x288 > [ 5.016742] __platform_driver_register+0xcc/0xdc > [ 5.021964] pwm_backlight_driver_init+0x1c/0x24 > [ 5.027097] do_one_initcall+0x38c/0x994 > [ 5.031536] do_initcall_level+0x3a4/0x4b8 > [ 5.036148] do_basic_setup+0x84/0xa0 > [ 5.036153] kernel_init_freeable+0x23c/0x324 > [ 5.036158] kernel_init+0x14/0x110 > [ 5.036164] ret_from_fork+0x10/0x18 > [ 5.036166] > [ 5.036166] -> #1 (device_links_lock){+.+.}: > [ 5.065905] __mutex_lock_common+0x1a0/0x1fe8 > [ 5.070777] mutex_lock_nested+0x40/0x50 > [ 5.075215] device_link_remove+0x40/0xe0 > [ 5.079740] _regulator_put+0x104/0x2d8 > [ 5.084093] regulator_put+0x30/0x44 > [ 5.088184] devm_regulator_release+0x38/0x44 > [ 5.093056] release_nodes+0x604/0x670 > [ 5.097320] devres_release_all+0x70/0x8c > [ 5.101846] really_probe+0x270/0x4dc > [ 5.106024] driver_probe_device+0xcc/0x1d4 > [ 5.110724] device_driver_attach+0xe4/0x104 > [ 5.115510] __driver_attach+0x134/0x14c > [ 5.119949] bus_for_each_dev+0x120/0x180 > [ 5.124474] driver_attach+0x48/0x54 > [ 5.128566] bus_add_driver+0x2ac/0x44c > [ 5.132919] driver_register+0x160/0x288 > [ 5.137357] __platform_driver_register+0xcc/0xdc > [ 5.142576] pwm_backlight_driver_init+0x1c/0x24 > [ 5.147708] do_one_initcall+0x38c/0x994 > [ 5.152146] do_initcall_level+0x3a4/0x4b8 > [ 5.156758] do_basic_setup+0x84/0xa0 > [ 5.160936] kernel_init_freeable+0x23c/0x324 > [ 5.165807] kernel_init+0x14/0x110 > [ 5.169813] ret_from_fork+0x10/0x18 > [ 5.173901] > [ 5.173901] -> #0 (regulator_list_mutex){+.+.}: > [ 5.179910] lock_acquire+0x350/0x4d4 > [ 5.184088] __mutex_lock_common+0x1a0/0x1fe8 > [ 5.184095] mutex_lock_nested+0x40/0x50 > [ 5.197475] regulator_lock_dependent+0xdc/0x6c4 > [ 5.197482] regulator_disable+0xa0/0x138 > [ 5.197487] scpsys_power_off+0x38c/0x4bc > [ 5.197495] genpd_power_off+0x3d8/0x6a0 > [ 5.209399] genpd_power_off+0x530/0x6a0 > [ 5.209406] genpd_power_off_work_fn+0x74/0xc0 > [ 5.209411] process_one_work+0x858/0x1208 > [ 5.209419] worker_thread+0x9ec/0xcb8 > [ 5.219067] kthread+0x2b8/0x2d0 > [ 5.219073] ret_from_fork+0x10/0x18 > [ 5.219077] > [ 5.219077] other info that might help us debug this: > [ 5.219077] > [ 5.219080] Chain exists of: > [ 5.219080] regulator_list_mutex --> &genpd->mlock --> &genpd->mlock/1 > [ 5.219080] > [ 5.228039] Possible unsafe locking scenario: > [ 5.228039] > [ 5.228042] CPU0 CPU1 > [ 5.228046] ---- ---- > [ 5.228048] lock(&genpd->mlock/1); > [ 5.228058] lock(&genpd->mlock); > [ 5.311647] lock(&genpd->mlock/1); > [ 5.317736] lock(regulator_list_mutex); > [ 5.321742] > [ 5.321742] *** DEADLOCK *** > [ 5.321742] > [ 5.327655] 4 locks held by kworker/4:1/51: > [ 5.331831] #0: (____ptrval____) ((wq_completion)pm){+.+.}, > at:process_one_work+0x57c/0x1208 > [ 5.340444] #1: (____ptrval____) > ((work_completion)(&genpd->power_off_work)){+.+.}, > at:process_one_work+0x5b8/0x1208 > [ 5.351139] #2: (____ptrval____) (&genpd->mlock){+.+.}, > at:genpd_lock_mtx+0x20/0x2c > [ 5.358970] #3: (____ptrval____) (&genpd->mlock/1){+.+.}, > at:genpd_lock_nested_mtx+0x24/0x30 > [ 5.367584] > [ 5.367584] stack backtrace: > [ 5.371939] CPU: 4 PID: 51 Comm: kworker/4:1 Tainted: G S > 5.2.0-rc2-next-20190528-44527-g6c94b6475c04 #20 > [ 5.382809] Workqueue: pm genpd_power_off_work_fn > [ 5.382816] Call trace: > [ 5.382822] dump_backtrace+0x0/0x2c0 > [ 5.382830] show_stack+0x20/0x2c > [ 5.409174] dump_stack+0x10c/0x17c > [ 5.412659] print_circular_bug+0x42c/0x4d0 > [ 5.416838] __lock_acquire+0x4c88/0x5484 > [ 5.420843] lock_acquire+0x350/0x4d4 > [ 5.424500] __mutex_lock_common+0x1a0/0x1fe8 > [ 5.428851] mutex_lock_nested+0x40/0x50 > [ 5.432770] regulator_lock_dependent+0xdc/0x6c4 > [ 5.437383] regulator_disable+0xa0/0x138 > [ 5.441389] scpsys_power_off+0x38c/0x4bc > [ 5.445393] genpd_power_off+0x3d8/0x6a0 > [ 5.449310] genpd_power_off+0x530/0x6a0 > [ 5.453229] genpd_power_off_work_fn+0x74/0xc0 > [ 5.457667] process_one_work+0x858/0x1208 > [ 5.461758] worker_thread+0x9ec/0xcb8 > [ 5.465503] kthread+0x2b8/0x2d0 > [ 5.468727] ret_from_fork+0x10/0x18 > > On Mon, Jun 10, 2019 at 8:21 PM Yong Wu wrote: >> ... >> + } else { >> + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); >> + common->base = devm_ioremap_resource(dev, res); >> + if (IS_ERR(common->base)) >> + return PTR_ERR(common->base); >> } >> pm_runtime_enable(dev); >> platform_set_drvdata(pdev, common);