From patchwork Thu Nov 7 11:42:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihail Atanassov X-Patchwork-Id: 11232695 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 57DB113BD for ; Thu, 7 Nov 2019 11:43:01 +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 3F75021D6C for ; Thu, 7 Nov 2019 11:43:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F75021D6C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com 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 705BE6E429; Thu, 7 Nov 2019 11:43:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02on0608.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe05::608]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9210F6E429 for ; Thu, 7 Nov 2019 11:42:58 +0000 (UTC) Received: from VE1PR08CA0009.eurprd08.prod.outlook.com (2603:10a6:803:104::22) by AM6PR08MB3861.eurprd08.prod.outlook.com (2603:10a6:20b:80::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20; Thu, 7 Nov 2019 11:42:54 +0000 Received: from DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::203) by VE1PR08CA0009.outlook.office365.com (2603:10a6:803:104::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20 via Frontend Transport; Thu, 7 Nov 2019 11:42:54 +0000 Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT028.mail.protection.outlook.com (10.152.20.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.21 via Frontend Transport; Thu, 7 Nov 2019 11:42:53 +0000 Received: ("Tessian outbound 0939a6bab6b1:v33"); Thu, 07 Nov 2019 11:42:51 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2d09edfc56120d9a X-CR-MTA-TID: 64aa7808 Received: from cd53f9309253.2 (cr-mta-lb-1.cr-mta-net [104.47.4.50]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2B815624-B4A2-4DE8-AB01-ED9F2940B646.1; Thu, 07 Nov 2019 11:42:46 +0000 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02lp2050.outbound.protection.outlook.com [104.47.4.50]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id cd53f9309253.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 07 Nov 2019 11:42:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XvCv8Qy9nPA2WSlzbRlZse8eeQUNF1PVdkuhUGtWYcgJ1oy1wIlIok9zML5UiDCYIHVQ5FOl8RFiNWwmtf1X3Xts+CGy3dmEf+nmPVZGqzMB9w3p0iKrZHxceuYxkttrP4SzwVmktQWFr6NQ7wvYeR9WHVtZ/xh+0Mv6VdvVXGwweDweejAvjFBe2d88FcyF7bKUfD3yl7twLrkCistMQMrJgA7IoiA4ahcrnLy1+XiPNlbiLT9OcYqh+3+5IEYSX/cN3gJWN/eAxkHXKlKALFMveoJdsAPBrCZr5FKkr2xlLfhOMv5sxvnPsecrOoXoTXJxGE5iSleIIEPFoeo8xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CTqYfVkOy0L0imb7lo5uGve4ym8KHPe/DRGzfmKfEdE=; b=ha5VnTXvDEBXnIx6TKbQLbAPn7ATokpUNRbRZ7MPqRSba4ZEKehi1LXJLhLIyDU/HN8m2dHMcBC/ugKoZK52u2w8hkLqTP/7wqKv/6SEiyOTRmS+MMoiyK2FZXWZmgtO1hPUFNqnb2LuQ1mM08JMtjETof0HQTQPGkFZbTEwyuuOQv0aHFX8xEIT47rqyQaM1dpyCXZ1+Tg0VZU8QQnP47nfsjeI0hJUzQ6gfC0nrBNy+E1KXVeSTx4O98JKHxlq/RqHMqfzslFo4i5cRGjWBMBPpEG9AUD/1LB2fZNR3gogO7ZUPK8Ngjv7T5hRFd08ymFUsx/Ts2329elOIXUajQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Received: from VI1PR08MB4078.eurprd08.prod.outlook.com (20.178.127.92) by VI1PR08MB3567.eurprd08.prod.outlook.com (20.177.58.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2408.24; Thu, 7 Nov 2019 11:42:44 +0000 Received: from VI1PR08MB4078.eurprd08.prod.outlook.com ([fe80::8191:f0ac:574a:d24d]) by VI1PR08MB4078.eurprd08.prod.outlook.com ([fe80::8191:f0ac:574a:d24d%3]) with mapi id 15.20.2408.028; Thu, 7 Nov 2019 11:42:44 +0000 From: Mihail Atanassov To: "dri-devel@lists.freedesktop.org" Subject: [PATCH v2 5/5] drm/komeda: add rate limiting disable to err_verbosity Thread-Topic: [PATCH v2 5/5] drm/komeda: add rate limiting disable to err_verbosity Thread-Index: AQHVlWB4xMPbXmf91UG5tobxnmp6wA== Date: Thu, 7 Nov 2019 11:42:44 +0000 Message-ID: <20191107114155.54307-6-mihail.atanassov@arm.com> References: <20191107114155.54307-1-mihail.atanassov@arm.com> In-Reply-To: <20191107114155.54307-1-mihail.atanassov@arm.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [217.140.106.55] x-clientproxiedby: LO2P265CA0146.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::14) To VI1PR08MB4078.eurprd08.prod.outlook.com (2603:10a6:803:e5::28) x-mailer: git-send-email 2.23.0 Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Mihail.Atanassov@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 54962948-152a-4a18-43da-08d76377a06a X-MS-TrafficTypeDiagnostic: VI1PR08MB3567:|VI1PR08MB3567:|AM6PR08MB3861: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:2887;OLM:2887; x-forefront-prvs: 0214EB3F68 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(346002)(396003)(366004)(376002)(136003)(199004)(189003)(3846002)(64756008)(6436002)(71200400001)(66446008)(66556008)(66476007)(6486002)(71190400001)(86362001)(1076003)(81156014)(99286004)(6116002)(2351001)(66946007)(256004)(14444005)(2501003)(316002)(54906003)(7736002)(66066001)(6506007)(102836004)(44832011)(76176011)(26005)(6916009)(478600001)(52116002)(8676002)(81166006)(8936002)(486006)(11346002)(2616005)(25786009)(476003)(5660300002)(50226002)(5640700003)(2906002)(6512007)(446003)(36756003)(14454004)(4326008)(386003)(186003)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB3567; H:VI1PR08MB4078.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: ETSPPIelCJKtFqw8EYNNVz8XweAK8XjOlq7RSPtbGXomf+M+rJ+KdgerpqqeoIz+2JM3ZcMnAuqWD/Y2F1EARyGOt90y8RZTUHKjkOl7mWFYFe2f+ulF15AjBd3rMKa6umH+Up+qWhmQzdPA5q8VN+ZFQp4q15CtEVP4Lcufq4nYDKAKSSeNv3dNTde6f82kiZa9uu/wtm25MdDAbsNeJ26LsdRxA9osbuKzo6lxOOT9d+xEOLWdRGkIPpVWOMyMXbb4fo/G7rWK2iJrMpMwNfUe8Ada3K7FRwuJnhm9eqr18vtJeD/W/tSyKoVGe0kNC4ByKY+wK/XxIr1akZ00oNedibFgydo5TO5t0ek4oOu1zj7T1MFaFcsLMBY5lUqpeu//M22SI8fElb391csWiGYAsxgVkij2G5Y317ga7YKmW3T3Rjgk+rohhwZdpzdo MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3567 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Mihail.Atanassov@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(346002)(39860400002)(376002)(136003)(396003)(1110001)(339900001)(199004)(189003)(47776003)(8746002)(23756003)(316002)(50466002)(76176011)(6116002)(76130400001)(6506007)(14444005)(336012)(86362001)(102836004)(26005)(386003)(5660300002)(2501003)(6512007)(81166006)(54906003)(36756003)(4326008)(6486002)(107886003)(66066001)(186003)(50226002)(8676002)(5640700003)(8936002)(478600001)(105606002)(25786009)(99286004)(6916009)(2351001)(305945005)(7736002)(2616005)(356004)(446003)(476003)(11346002)(3846002)(14454004)(486006)(1076003)(81156014)(70586007)(126002)(2906002)(22756006)(70206006)(26826003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB3861; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Fail; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; A:1; MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 0fcbfdb2-2375-429f-5d0c-08d763779a7e NoDisclaimer: True X-Forefront-PRVS: 0214EB3F68 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8R3lKH7PgQiXzWnZN0mvQ96e2w9GlFmkmdEBDCg9VHIGpNQ39P+0cGrsoiOHfwbAQTfZhoH8eORPa0Fd5hm2CGGVcqKvF3m03Ni1vMKlpxYZH49AdE0bqvIg8uL+bcU4qiQjbL2mTWnYes4oD00AwtD++JMzYUfKBZRhtYbcGE/fdK612kFHmPNTT/zHFtQ+jERdCGKuMONfj603P4mK4GG4CRYZnHX+w1ADi63KORb3kG2YGCz6MRCElNSPEUE3x81U5nJljg3z67W+iTW+1Mpq1LYgpVNPlbuJcUupF2+L+RR+TYJZwFtDoIxeRsVyI63DueEepi7Zk/47+UoCOS1zKY5D8XA0pot/HQKH8WgWQOMcRNorI1I7TtTCSj6qhnSc/i5t7kvLQ/gKifY/jZdivK80BdTZXJmC+6KUJY1iCN7UmO9EgV+qI5N2zGs1 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2019 11:42:53.9280 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54962948-152a-4a18-43da-08d76377a06a X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3861 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CTqYfVkOy0L0imb7lo5uGve4ym8KHPe/DRGzfmKfEdE=; b=oFHiLhATuHXJ4pf+VUshob3MZNPVG3vhIy4KqSi/ZBu1FlbDZsQghkAb4pPyUZuI33Ca5lNZlIImh3n7R4zPtSEn6RvHxMl9v2n87lutVWW3P7C++DhdACW3E2YHW5smKjzxwlI7pjBwGcRY33HXwlYqZPrOE1IpdAR8trIpwMw= X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CTqYfVkOy0L0imb7lo5uGve4ym8KHPe/DRGzfmKfEdE=; b=oFHiLhATuHXJ4pf+VUshob3MZNPVG3vhIy4KqSi/ZBu1FlbDZsQghkAb4pPyUZuI33Ca5lNZlIImh3n7R4zPtSEn6RvHxMl9v2n87lutVWW3P7C++DhdACW3E2YHW5smKjzxwlI7pjBwGcRY33HXwlYqZPrOE1IpdAR8trIpwMw= X-Mailman-Original-Authentication-Results: spf=fail (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.freedesktop.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.freedesktop.org; dmarc=none action=none header.from=arm.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mihail Atanassov , David Airlie , Liviu Dudau , "linux-kernel@vger.kernel.org" , "james qian wang \(Arm Technology China\)" , "Lowry Li \(Arm Technology China\)" , nd , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" It's possible to get multiple events in a single frame/flip, so add an option to print them all. Reviewed-by: James Qian Wang (Arm Technology China) Signed-off-by: Mihail Atanassov Acked-by: Liviu Dudau --- v2: Clean up continuation line warning from checkpatch. drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 2 ++ drivers/gpu/drm/arm/display/komeda/komeda_event.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_dev.h b/drivers/gpu/drm/arm/display/komeda/komeda_dev.h index d9fc9c48859a..15f52e304c08 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_dev.h +++ b/drivers/gpu/drm/arm/display/komeda/komeda_dev.h @@ -224,6 +224,8 @@ struct komeda_dev { #define KOMEDA_DEV_PRINT_INFO_EVENTS BIT(2) /* Dump DRM state on an error or warning event. */ #define KOMEDA_DEV_PRINT_DUMP_STATE_ON_EVENT BIT(8) + /* Disable rate limiting of event prints (normally one per commit) */ +#define KOMEDA_DEV_PRINT_DISABLE_RATELIMIT BIT(12) }; static inline bool diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_event.c b/drivers/gpu/drm/arm/display/komeda/komeda_event.c index 7fd624761a2b..bf269683f811 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_event.c +++ b/drivers/gpu/drm/arm/display/komeda/komeda_event.c @@ -119,7 +119,7 @@ void komeda_print_events(struct komeda_events *evts, struct drm_device *dev) /* reduce the same msg print, only print the first evt for one frame */ if (evts->global || is_new_frame(evts)) en_print = true; - if (!en_print) + if (!(err_verbosity & KOMEDA_DEV_PRINT_DISABLE_RATELIMIT) && !en_print) return; if (err_verbosity & KOMEDA_DEV_PRINT_ERR_EVENTS)