From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E39AC3F2D1 for ; Mon, 2 Mar 2020 19:13:44 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1B0F920842 for ; Mon, 2 Mar 2020 19:13:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1B0F920842 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sigxcpu.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D4A8F6E7DD; Mon, 2 Mar 2020 19:13:42 +0000 (UTC) Received: from honk.sigxcpu.org (honk.sigxcpu.org [24.134.29.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1E4E96E44E; Mon, 2 Mar 2020 19:13:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 6B447FB08; Mon, 2 Mar 2020 20:13:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lt_4OpfdEgK8; Mon, 2 Mar 2020 20:13:37 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 76A544048B; Mon, 2 Mar 2020 20:13:36 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] drm/etnaviv: Ignore MC bit when checking for runtime suspend Date: Mon, 2 Mar 2020 20:13:31 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" QXQgbGVhc3QgR0M3MDAwIGZhaWxzIHRvIGVudGVyIHJ1bnRpbWUgc3VzcGVuZCBmb3IgbG9uZyBw ZXJpb2RzIG9mIHRpbWUgc2luY2UKdGhlIE1DIGJlY29tZXMgYnVzeSBhZ2FpbiBldmVuIHdoZW4g dGhlIEZFIGlzIGlkbGUuIFRoZSByZXN0IG9mIHRoZSBzZXJpZXMKbWFrZXMgZGV0ZWN0aW5nIHNp bWlsYXIgaXNzdWVzIGVhc2llciB0byBkZWJ1ZyBpbiB0aGUgZnV0dXJlIGJ5IGNoZWNraW5nCmFs bCBrbm93biBiaXRzIGluIGRlYnVnZnMgYW5kIGFsc28gd2FybmluZyBpbiB0aGUgRUJVU1kgY2Fz ZS4KClRlc3RlZCBvbiBHQzcwMDAgd2l0aCBhIHJlZHVjZWQgcnVudGltZSBkZWxheSBvZiA1MG1z LiBQYXRjaGVzIGFyZQphZ2FpbnN0IG5leHQtMjAyMDAyMjYuCgpUaGFua3MgdG8gTHVjYXMgU3Rh Y2ggZm9yIHBvaW50aW5nIG1lIGluIHRoZSByaWdodCBkaXJlY3Rpb24uCgpHdWlkbyBHw7xudGhl ciAoNSk6CiAgZHJtL2V0bmF2aXY6IEZpeCB0eXBvIGluIGNvbW1lbnQKICBkcm0vZXRuYXZpdjog VXBkYXRlIGlkbGUgYml0cwogIGRybS9ldG5hdml2OiBDb25zaWRlciBhbGwga3dub3duIGlkbGUg Yml0cyBpbiBkZWJ1Z2ZzCiAgZHJtL2V0bmF2aXY6IElnbm9yZSBNQyB3aGVuIGNoZWNraW5nIHJ1 bnRpbWUgc3VzcGVuZCBpZGxlbmVzcwogIGRybS9ldG5hdml2OiBXYXJuIHdoZW4gR1BVIGRvZXNu J3QgaWRsZSBmYXN0IGVub3VnaAoKIGRyaXZlcnMvZ3B1L2RybS9ldG5hdml2L2V0bmF2aXZfZ3B1 LmMgIHwgMjYgKysrKysrKysrKysrKysrKysrKysrKy0tLS0KIGRyaXZlcnMvZ3B1L2RybS9ldG5h dml2L3N0YXRlX2hpLnhtbC5oIHwgIDcgKysrKysrKwogMiBmaWxlcyBjaGFuZ2VkLCAyOSBpbnNl cnRpb25zKCspLCA0IGRlbGV0aW9ucygtKQoKLS0gCjIuMjMuMAoKX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVsIG1haWxpbmcgbGlzdApkcmkt ZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlzdHMuZnJlZWRlc2t0b3Aub3Jn L21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64060C3F2D7 for ; Mon, 2 Mar 2020 19:13:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 321B42173E for ; Mon, 2 Mar 2020 19:13:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727673AbgCBTNn (ORCPT ); Mon, 2 Mar 2020 14:13:43 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:50530 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727408AbgCBTNm (ORCPT ); Mon, 2 Mar 2020 14:13:42 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 6B447FB08; Mon, 2 Mar 2020 20:13:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lt_4OpfdEgK8; Mon, 2 Mar 2020 20:13:37 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 76A544048B; Mon, 2 Mar 2020 20:13:36 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] drm/etnaviv: Ignore MC bit when checking for runtime suspend Date: Mon, 2 Mar 2020 20:13:31 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At least GC7000 fails to enter runtime suspend for long periods of time since the MC becomes busy again even when the FE is idle. The rest of the series makes detecting similar issues easier to debug in the future by checking all known bits in debugfs and also warning in the EBUSY case. Tested on GC7000 with a reduced runtime delay of 50ms. Patches are against next-20200226. Thanks to Lucas Stach for pointing me in the right direction. Guido Günther (5): drm/etnaviv: Fix typo in comment drm/etnaviv: Update idle bits drm/etnaviv: Consider all kwnown idle bits in debugfs drm/etnaviv: Ignore MC when checking runtime suspend idleness drm/etnaviv: Warn when GPU doesn't idle fast enough drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 26 ++++++++++++++++++++++---- drivers/gpu/drm/etnaviv/state_hi.xml.h | 7 +++++++ 2 files changed, 29 insertions(+), 4 deletions(-) -- 2.23.0