Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp453517img; Thu, 28 Feb 2019 02:20:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ224HOs9WbtDfB269QS0cpvlVecMqm8QUXwS+UAGAAqmcYWF33tBEmm3jZoH7M+Bpuzqo8 X-Received: by 2002:a62:4ec5:: with SMTP id c188mr6691762pfb.230.1551349249732; Thu, 28 Feb 2019 02:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551349249; cv=none; d=google.com; s=arc-20160816; b=QmBytOULupi1+rfhnFspO629brBqITYHxFTgNLDEGuedTGOLXJoZj0EJDrv5cj3g/4 idQnMuYZN5EwyQQ5QCHrMfFuUZzrzO/nM6m+6jdbyll+tqzFZCN4wwwFsPCZfLaJb5tY JYxR4LX3uvTZ6HdlGDl6pDAUonTCRCxB9+ANc5oY1v6SwUbTncHfomaIH0O+bTuhPgQV sVj6UXum2hax9pK2pRtBEC9Yo/2Hy+62BWC5/91PEiDidcUlTlz1uU+AXobyMp0DfwvN SNLXZBbfVQ2468zZsySqFLRheIM9a5bbXH3RS412btUYkOZ6VBUHpF/Q8b2uNdWxqQnI x8ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version; bh=fBY5umTxtYnymNl9jev5CHOOV2jysWNCXZZ7Q18fm+A=; b=gvXx2aOZoRVzzXLqIFMbySaUgPnm2Uw4sjDQ16nyAEQOKxpbnbIXbKLGJipzK6Cfsu ypxl6SlrD7l3IpVE3wP6SDIYkYvRdlGVkSN6qwTQvoy4DLxszraO4M8xsjDdcJoM7KJJ mXWZYux7IU8rDqRgsuQuaBAClYPbkjmQsdCg+6JC359Tes3OT0FCNoWd2wuoPVeTzkye QgoOh4A7nFbwk/+SSzjs+vx7f3fzJsvgrFXRUiX21Wc1scooKQkfqaVbRAQrOhj7rnDd +xTwanPiv3C3HN/2eN0FtMoiquKDd7EpEI39LF5qmL7NqqdMBEIsHD2xiz84wQXIht2n h1xA== 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 h8si17010366pls.365.2019.02.28.02.20.34; Thu, 28 Feb 2019 02:20:49 -0800 (PST) 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 S1732361AbfB1KUC convert rfc822-to-8bit (ORCPT + 99 others); Thu, 28 Feb 2019 05:20:02 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:60481 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732204AbfB1KUC (ORCPT ); Thu, 28 Feb 2019 05:20:02 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 15727769-1500050 for multiple; Thu, 28 Feb 2019 10:19:42 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Thomas Gleixner From: Chris Wilson In-Reply-To: Cc: Sebastian Andrzej Siewior , LKML , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Peter Zijlstra References: <20190212162857.20003-1-bigeasy@linutronix.de> <20190226160038.5vwk465gwzfwn75i@linutronix.de> <155134800668.5847.13013477917200660218@skylake-alporthouse-com> Message-ID: <155134918155.5847.17130320586410453868@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [Intel-gfx] [PATCH] drm/i915/fence: Do not use TIMER_IRQSAFE Date: Thu, 28 Feb 2019 10:19:41 +0000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Thomas Gleixner (2019-02-28 10:09:26) > On Thu, 28 Feb 2019, Chris Wilson wrote: > > > Quoting Sebastian Andrzej Siewior (2019-02-26 16:00:38) > > > On 2019-02-12 17:28:57 [+0100], To linux-kernel@vger.kernel.org wrote: > > > > The timer is initialized with TIMER_IRQSAFE flag. It does look like the > > > > timer callback requires this flag at all. Its sole purpose is to ensure > > > > synchronisation in the workqueue code. > > > > > > > > Remove TIMER_IRQSAFE flag because it is not required. > > > > > > ping > > > > We call del_timer_sync from irq context, which mandates using > > TIMER_IRQSAFE. Failure to do so results in lots of explosions across CI > > -- every machine managed to hit the warning. > > > > It may not be the best of api, but it's the only one available for the > > driver to use... > > The comment in the header files says clearly: > > * Note: The irq disabled callback execution is a special case for > * workqueue locking issues. It's not meant for executing random crap > * with interrupts disabled. Abuse is monitored! > > So what's so special in drm that you need to call del_timer_sync() from > interrupt context? There's no protection against fence signaling from inside interrupt context, and a lot of pressure to do so. -Chris