Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp226304img; Wed, 20 Mar 2019 18:38:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzjgQLPNZ1o8wRTgYC6Og3nobpJzbEI2CzIZGIB1cD9x0o2W8DXE2fWq5/KVdaK/G2zC3Z X-Received: by 2002:a17:902:b48d:: with SMTP id y13mr894658plr.310.1553132305804; Wed, 20 Mar 2019 18:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553132305; cv=none; d=google.com; s=arc-20160816; b=F4+A2x4me4bJpVaKZA4EWJdoQckt6QeCgGLqrPmgSvEphLe2aJWo9zbEF/yHkXdPOi QnnQZY9Rq5JLgjAh6UezDcwrhETnnY0HLg0UT+jRN9XkBFgNICgIeq9aJ0Mq5oDSnDgv lKv6RYv6CY7qXZDu8yzJKB4YrtV9rrdlREEYgWRS4pXkG3CPuKFXgt0DiqZSLFG6joAc sfo9w4LZxnEWq8TfUABjq/svgXwKAdOySDTFCuFilZjGWz/VaTOQT3DFe1WG6F3JcgZ0 SxXapeOfvJeFoYjncBEmxT9B3tmnvnykHJeoTCT8uawGnZarxwzpeSM6rPEy5cLFMoO4 ajeA== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=CKDPkwHrHSKaRFvtYwGO6PjAO4TswAgzCxipmt/UO4o=; b=WQBdPVcoFXLYIQSWDOHsZ79ZedYsMEweMg7/3dGwR8z7h6k5373koLLThhSzzPDKg1 HLziWnkNfzFw4WcH/2K+6CeGnrx+TJv/5n+Zo83rYl7MPPk37zNU+RZMryKKtHzwjcHI 4CJFdF7dCUlN498Jj7I+tCGeP+oorhbtBZi5QPqgMdqR+Ev85OitBVL9wA7zozdCzABJ EVnb/2vvvxxotV28q1JNsYGpcu7+qZZ+QmlL4pmB/xgavxa1cMruV1K2UL1Hf/20KH4m ld880mTIK1rKO50M5U/btAaI/iHsikHADmSDF7H3KAV8fk6Zh2ALbi3DEUuSEpGGrcAF 5kjg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v41si3418136plg.8.2019.03.20.18.38.10; Wed, 20 Mar 2019 18:38:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727739AbfCUBgU (ORCPT + 99 others); Wed, 20 Mar 2019 21:36:20 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:11515 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726853AbfCUBgT (ORCPT ); Wed, 20 Mar 2019 21:36:19 -0400 X-UUID: 985428ae6d394019b8742e9c7419fc58-20190321 X-UUID: 985428ae6d394019b8742e9c7419fc58-20190321 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 984471648; Thu, 21 Mar 2019 09:36:15 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 21 Mar 2019 09:36:14 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkcas08.mediatek.inc (172.21.101.126) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 21 Mar 2019 09:36:13 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 21 Mar 2019 09:36:13 +0800 Message-ID: <1553132173.18216.16.camel@mtksdaap41> Subject: Re: Aw: [PATCH v2] gpu/drm: mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable() From: CK Hu To: Frank Wunderlich CC: Hsin-Yi Wang , , Philipp Zabel , David Airlie , , , "Matthias Brugger" , , Daniel Vetter Date: Thu, 21 Mar 2019 09:36:13 +0800 In-Reply-To: References: <20190320071825.20268-1-hsinyi@chromium.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Frank: On Wed, 2019-03-20 at 19:01 +0100, Frank Wunderlich wrote: > Hi, > > i hoped this fixes my warning (maybe have similar cause) on bananapi-r2/mt7623 This patch fix the problem of dsi driver. Your case is hdmi output which does not go through dsi hardware. So your problem is another cause. Regards, CK > > [ 6.872034] WARNING: CPU: 2 PID: 160 at drivers/gpu/drm/drm_atomic_helper.c:1 > 430 drm_atomic_helper_wait_for_vblanks.part.1+0x2a4/0x2a8 > [ 6.872038] [CRTC:36:crtc-0] vblank wait timed out > > ... > > [ 6.872127] [] (__warn) from [] (warn_slowpath_fmt+0x58/0 > x74) > [ 6.872136] r9:00000000 r8:00000001 r7:00000000 r6:00000001 r5:c0d7da9c r4:c > 1008c48 > [ 6.872145] [] (warn_slowpath_fmt) from [] (drm_atomic_helper_wait_for_vblanks.part.1+0x2a4/0x2a8) > [ 6.872150] r3:00000024 r2:c0d7da9c > [ 6.872154] r5:00000000 r4:d991f440 > [ 6.872164] [] (drm_atomic_helper_wait_for_vblanks.part.1) from [] (drm_atomic_helper_wait_for_vblanks+0x24/0x28) > [ 6.872172] r10:dae68f28 r9:dae68f38 r8:00000000 r7:d9f759c0 r6:d991ec00 r5:d9f759c0 > [ 6.872175] r4:00000005 > [ 6.872185] [] (drm_atomic_helper_wait_for_vblanks) from [] (mtk_atomic_complete+0x98/0xc0) > [ 6.872194] [] (mtk_atomic_complete) from [] (mtk_atomic_commit+0xc8/0xcc) > [ 6.872201] r7:d9f759c0 r6:dae68e40 r5:d991ec00 r4:00000000 > [ 6.872211] [] (mtk_atomic_commit) from [] (drm_atomic_commit+0x54/0x60) > [ 6.872219] r10:00000002 r9:d9f74eac r8:00000001 r7:d98d5700 r6:d991ec00 r5:d9f759c0 > [ 6.872223] r4:00000000 r3:c060af2c > [ 6.872234] [] (drm_atomic_commit) from [] (restore_fbdev_mode_atomic+0x1d4/0x1e4) > [ 6.872241] r7:d98d5700 r6:00000001 r5:d991edb0 r4:d9f759c0 > [ 6.872251] [] (restore_fbdev_mode_atomic) from [] (restore_fbdev_mode+0x5c/0x194) > [ 6.872260] r10:00000000 r9:d991ecdc r8:d98d57b4 r7:00000000 r6:d98d5700 r5:d98d5700 > [ 6.872263] r4:00000000 > [ 6.872274] [] (restore_fbdev_mode) from [] (drm_fb_helper_restore_fbdev_mode_unlocked+0x64/0xb0) > [ 6.872282] r10:00000000 r9:d991ecdc r8:d98d57b4 r7:00000000 r6:c10824c8 r5:d98d5700 > [ 6.872285] r4:00000000 > [ 6.872296] [] (drm_fb_helper_restore_fbdev_mode_unlocked) from [] (drm_fb_helper_set_par+0x40/0x64) > [ 6.872304] r9:d991ecdc r8:d991ec8c r7:c0d82d88 r6:d98d57b4 r5:00000000 r4:00000000 > [ 6.872315] [] (drm_fb_helper_set_par) from [] (drm_fb_helper_hotplug_event.part.11+0xb0/0xb8) > [ 6.872319] r5:00000000 r4:d98d5700 > [ 6.872330] [] (drm_fb_helper_hotplug_event.part.11) from [] (drm_fbdev_client_hotplug+0x13c/0x1d8) > [ 6.872337] r7:c0d82d88 r6:d991eca0 r5:d991ec00 r4:d98d5700 > [ 6.872348] [] (drm_fbdev_client_hotplug) from [] (drm_client_dev_hotplug+0x84/0xc0) > > this crash also happens without fbdev-patch > > my codebase: https://github.com/frank-w/BPI-R2-4.14/commits/5.1-hdmi > > regards Frank