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=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham 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 594E1C43381 for ; Thu, 28 Feb 2019 10:50:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 249582183F for ; Thu, 28 Feb 2019 10:50:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731507AbfB1Kur (ORCPT ); Thu, 28 Feb 2019 05:50:47 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:54714 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfB1Kur (ORCPT ); Thu, 28 Feb 2019 05:50:47 -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 1gzJH1-0002Fn-LN; Thu, 28 Feb 2019 11:50:43 +0100 Date: Thu, 28 Feb 2019 11:50:43 +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: <155134918155.5847.17130320586410453868@skylake-alporthouse-com> Message-ID: References: <20190212162857.20003-1-bigeasy@linutronix.de> <20190226160038.5vwk465gwzfwn75i@linutronix.de> <155134800668.5847.13013477917200660218@skylake-alporthouse-com> <155134918155.5847.17130320586410453868@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 Thomas Gleixner (2019-02-28 10:09:26) > > On Thu, 28 Feb 2019, Chris Wilson wrote: > > > 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. Whatever that means that still does not justify to pick something which is clearly stated not to be for general usage without talking to the people who added that restriction. I looked at that code and it's so well commented that's it's utterly obvious how all this is connected and why this is the only way to solve the problem. Oh well.. Thanks, tglx