Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp532872img; Thu, 28 Feb 2019 03:51:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IbEwKpd0PkkN8r7sOfA7SCJlk1lc/voe7nQe1uKdXFmhcUHpeUmCutxgVDBA2JlVzm/F28K X-Received: by 2002:a63:8048:: with SMTP id j69mr8020545pgd.432.1551354707961; Thu, 28 Feb 2019 03:51:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551354707; cv=none; d=google.com; s=arc-20160816; b=SxufrSlAR3nvLl+sTQdEu3sqzJIk+88tWLb844+QYaTzaUtyy1yMogcWWoyX+b5Ald DAs1mS7pH2Tuk12qlB3hsKGNIhC707Ll2K+kRe2w0C5lzIde8OzLY8w+wWj8gmb4MpuY WpQ1L21h3jdGy25oBQC0wkGX+7VG4eCx5zBQLLrpBQBmruWL7R1M9i3rmqo7HAbBX8VC tYJSTwNt8xLAJDICQLQ3zJRmAf92u/wIa36k2Ze+Rr6l9qII6u27smHaBuUCyEHNun2g 9uCHc/dl+YSkCGSu+5mN2WzQbcT0mffRrfSF7rWMWEvCgEKCQL1KuH2gA7rwkrQGV7DA YdIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=3W1IwL6RMKg7fg60Ci6t6d8WZFt+nLItd2OvNK6zNdc=; b=gCB5MgcD2ECF8Cqj9wa8AtKuXkXpimjq29HiHIk1ttTs4E4vM95nSXYtNoxOA/Gr3P xDUyMl8uvqw7Fg5SKXksYAty3JJgXxGtvrANxzZnadnv1n6GC3kkcJyZmgLJysD5Cglf JmYrA3xulNMDft9gSj0RS7/HDr5rfSyHB8skK2Pg+yhFAA6/9Jz7jomEIu9x2giIu0di Wl7X0AGvfT8amlLPEPRsRTMuYtQLWKftaOZyJYQsdIWevcKNW/th/Yn/b3UIACEcs4+g 75f7bBU5xE3AcWjXUCMvxmGf1gJO73QeZ00VdzIGxVNY3URdaGqDU3hlR9VoqL5kkGI9 j19A== 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 j29si11931061pgi.449.2019.02.28.03.51.32; Thu, 28 Feb 2019 03:51:47 -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 S1732286AbfB1KJg (ORCPT + 99 others); Thu, 28 Feb 2019 05:09:36 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:54635 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730388AbfB1KJf (ORCPT ); Thu, 28 Feb 2019 05:09:35 -0500 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gzIdA-0001DH-59; Thu, 28 Feb 2019 11:09:32 +0100 Date: Thu, 28 Feb 2019 11:09:26 +0100 (CET) From: Thomas Gleixner To: Chris Wilson cc: Sebastian Andrzej Siewior , LKML , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Peter Zijlstra Subject: Re: [Intel-gfx] [PATCH] drm/i915/fence: Do not use TIMER_IRQSAFE In-Reply-To: <155134800668.5847.13013477917200660218@skylake-alporthouse-com> Message-ID: References: <20190212162857.20003-1-bigeasy@linutronix.de> <20190226160038.5vwk465gwzfwn75i@linutronix.de> <155134800668.5847.13013477917200660218@skylake-alporthouse-com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks tglx