Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 555ECC433F5 for ; Fri, 1 Oct 2021 09:29:31 +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 1FEAF61283 for ; Fri, 1 Oct 2021 09:29:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1FEAF61283 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8CCA66ED84; Fri, 1 Oct 2021 09:29:30 +0000 (UTC) Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id F2BD86ED84; Fri, 1 Oct 2021 09:29:29 +0000 (UTC) Date: Fri, 1 Oct 2021 11:29:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1633080567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YZM20RGjxxKC2x+DU2E3e0G3xvaWLHZEivj15oKyBtE=; b=nBco8QyDpu1fl43DD4XBt3p5G2fiBc3nuv7pQ2nFhcDBA/9VDWdQ82aPFJsYEftSc0EWLO jK7c/6M2nyF84gUAWihjIYKs42dhoz91fJ3JCIJBBrlJ/LcpN1Ciu4fpmrv+82F/YlaNI9 dkf46o4X0ifSlbEXrLWqgVayJSX4PnSjsQ5Gy927VWp5qv/LJ91J6PIGoVfYC1ZD7w9cNJ ieLP7PDuHYQAiQL8Goz2ncoYX9nJn9KdAA7/KHw//Vl0CQYHC2SuFYh2chPjsV4R3Zp8Eb 3bLCJJZFbGlTi2yBWELsEkMMz4E5T4rSIV0Wbg8czf84VjOnyliUBlJLbm/eHQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1633080567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YZM20RGjxxKC2x+DU2E3e0G3xvaWLHZEivj15oKyBtE=; b=q8j+JvREv/X2deG26HyUNHQCdwnPUbREoXJKQMSKR4HWF+ZN96RuUcAkMcT4laNZZUPnq9 HPxCqNABqSwVEJDA== From: Sebastian Andrzej Siewior To: Maarten Lankhorst Cc: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, David Airlie , Daniel Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Chris Wilson , Peter Zijlstra , Thomas Gleixner , Clark Williams , Anton Lundin Message-ID: <20211001092926.fpbbvlki7g5urcox@linutronix.de> References: <20210908185703.2989414-1-bigeasy@linutronix.de> <20210908185703.2989414-3-bigeasy@linutronix.de> <48ed82b8-a641-1090-a93f-23476f9c0eb0@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <48ed82b8-a641-1090-a93f-23476f9c0eb0@linux.intel.com> Subject: Re: [Intel-gfx] [RFC PATCH 2/2] drm/i915/gt: Use spin_lock_irq() instead of local_irq_disable() + spin_lock() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On 2021-09-16 11:38:55 [+0200], Maarten Lankhorst wrote: > Patches look good. Thank you for looking. > For both patches: > > Reviewed-by: Maarten Lankhorst > > I've been looking at running i915 with the -rt patch series, and > noticed i915_request_submit fails with GEM_BUG_ON(!irqs_disabled()); > presumably same failure exists for i915_request_unsubmit(). > > Might be worth removing those checks as well? Seems double with > lockdep_assert_held on an irq lock anyway. yes, let me prepare something in a few. > I've also noticed the local_irq_disable/enable is removed from > intel_pipe_update_(start/end) in the rt series. It might make sense > from a -rt point of view, but that code needs to run without > interruptions, or i915 may show visual glitches or even locks up the > system. > > It should just be a set of registers hammered in, but the code might > needs to be fixed to take the mmio lock as outer lock, and become a > strict set of register read/writes only. Let me see. So Anton Lundin (Cc:) reported glitches due to _this_ patch on -RT. I have just a Sandybridge around with a i915 and it does not get near that code here. > ~Maarten Sebastian