Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1032811imu; Mon, 5 Nov 2018 12:40:53 -0800 (PST) X-Google-Smtp-Source: AJdET5e6iFEuCgcwZfyKIP+Ft51qHd9RAZF1zNAZQWX8zOJU8G5NYInnWeTiLpxpGoo8+7B563jw X-Received: by 2002:a17:902:b405:: with SMTP id x5-v6mr17185695plr.4.1541450453841; Mon, 05 Nov 2018 12:40:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541450453; cv=none; d=google.com; s=arc-20160816; b=FA64K0v7XITaPFIYEl+3xsaE+pXLL3wckXohzyIsfldRxNchM1+zCxqhFbVFCKrZrl 65lxRmriR69mNAYuYPVsi37Ckq1P9Rhk07UYiuM+HybNi0hyKI1SVZEXTiIY4OUzfeRG VvHvF1kbR9c4RvPjQAycf4Msm+G7Kh/Icq3DvMZAT2uS6/MN7oOCXqIFtBZdJt+1PESb AFa0p78wW8IviA5swVYm72vl4li2vWb8n42I8wv0sPgwkib6npyR8fb95U5uPUke+vvL vWeL3oMIj/7imsDIK5BJsqLGiEQg/i5JpVHUrL2J74z/W/GfoismP70PlcPA/l6xRjj5 mLLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2V1xbM1q4uNstJZBm4a0mp3vEP2I9DHpHV839nlM0YM=; b=okNxaH6bef1n2tvpfJOMZSrzZ8LvQTCix0T05NSnxsABVzTj6XbWIKJQs98fAJ20J3 8k95LmwH0FfUJLN1CcXTmlspNc/yn7X5HklINGYAtcWW1LbXjUwsp5gVscF16eH6Kk7R 1FGG0HSbxrxI+snHbLYEHVrBlAVF267kqa+iRfQ5uSYQRTKPuiTOOp8sB+tPyMtdMCc/ tZrId//Li4KbsbuIhTrAojR6mBi1rb65aVq1aYtrMaFYjGnwR/EoOfp6yS9Is6KUJh5L W2LDuY4EoZNlmqJTxbtTOL67jBlRqiaYEUY8xCN4MuWXs1WhuMUGWTyOxfDVdjnnKisi hCXw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3-v6si14732672plp.323.2018.11.05.12.40.38; Mon, 05 Nov 2018 12:40:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730283AbeKFGAI (ORCPT + 99 others); Tue, 6 Nov 2018 01:00:08 -0500 Received: from mga17.intel.com ([192.55.52.151]:11818 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbeKFGAI (ORCPT ); Tue, 6 Nov 2018 01:00:08 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Nov 2018 12:38:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,469,1534834800"; d="scan'208";a="105631566" Received: from rdvivi-vienna.jf.intel.com (HELO intel.com) ([10.7.196.65]) by orsmga001.jf.intel.com with ESMTP; 05 Nov 2018 12:38:40 -0800 Date: Mon, 5 Nov 2018 12:38:40 -0800 From: Rodrigo Vivi To: Lyude Paul Cc: intel-gfx@lists.freedesktop.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH v3 4/5] drm/i915: Clarify flow for disabling IRQs on storms Message-ID: <20181105203840.GC4208@intel.com> References: <20181103001909.23645-1-lyude@redhat.com> <20181103001909.23645-5-lyude@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181103001909.23645-5-lyude@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 02, 2018 at 08:19:07PM -0400, Lyude Paul wrote: > This is rather confusing to look at as-is: > dev_priv->display.hpd_irq_setup(dev_priv); in intel_hpd_irq_handler() > handles disabling the actual HPD IRQ, while > intel_hpd_irq_storm_disable() handles moving the HPD pin state over from > MARK_DISABLED to DISABLED along with enabling polling for it. what about also changing the name of the function? > > Cc: Ville Syrj?l? > Signed-off-by: Lyude Paul > --- > drivers/gpu/drm/i915/intel_hotplug.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_hotplug.c b/drivers/gpu/drm/i915/intel_hotplug.c > index c11d73de16f2..e5e3eeb7e482 100644 > --- a/drivers/gpu/drm/i915/intel_hotplug.c > +++ b/drivers/gpu/drm/i915/intel_hotplug.c > @@ -351,7 +351,7 @@ static void i915_hotplug_work_func(struct work_struct *work) > hpd_event_bits = dev_priv->hotplug.event_bits; > dev_priv->hotplug.event_bits = 0; > > - /* Disable hotplug on connectors that hit an irq storm. */ > + /* Enable polling for connectors which had HPD IRQ storms */ > intel_hpd_irq_storm_disable(dev_priv); This now gets confusing to my brain... comment says "enable" function name is "disable". > > spin_unlock_irq(&dev_priv->irq_lock); > @@ -458,6 +458,10 @@ void intel_hpd_irq_handler(struct drm_i915_private *dev_priv, > } > } > > + /* > + * Disable any IRQs that storms were detected on. Polling enablement > + * happens later in our hotplug work. > + */ > if (storm_detected && dev_priv->display_irqs_enabled) > dev_priv->display.hpd_irq_setup(dev_priv); > spin_unlock(&dev_priv->irq_lock); > -- > 2.19.1 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx