Received: by 10.223.185.116 with SMTP id b49csp8593740wrg; Fri, 2 Mar 2018 04:43:28 -0800 (PST) X-Google-Smtp-Source: AG47ELtlvEnDre2dn2iBm+B4WZ+11U6pn2rxnZ3rHisRZqbIF7ImpgGHhhFrqMtgWBmhwT8aV/5p X-Received: by 10.99.154.18 with SMTP id o18mr4551236pge.344.1519994607951; Fri, 02 Mar 2018 04:43:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519994607; cv=none; d=google.com; s=arc-20160816; b=wjjeD/ag2Vu/BhF7zIbuk0fwl/KT+YGsLkz5GzUaaQPzKgmnfC24+2IO0dFf/b76MH v3MRalhzrRCCXLEXlwRZbHUshS9sfpaRJOA6L696QECZ9ub16UDyhqI8N3ubUADvioVe 5iJXPOgOYLENNRDmBG4DQjHTX+/IZyxEJQikAof8R+APGHtybSm8B1lxctm9Jh70qiRV vjw/a/UFZGuYMsYksTsOvsL1LC6xyaQLL7HxQ6g0sZJkB5Ev4OJn6hTo/a7UhtwHMzT5 2rEDhGt5Yi02ucFqWL9xql/xubWfrbBIw+vYK7rQWZSup8iITL2rTD9HnQVJE4N7vKex O1NQ== 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 :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=7eeqeqAO8C+SkQybWGVJx9TX3OeYb6EC0pp2IhKkM20=; b=d1hWEuOfMPBf2BTvXt5Dl0+SJ31pDQtLjA7FpdgOatCtKp8bydAI0/5zlS+UuqbdLG V04kP+/fmWX831fhgVaW+LDlvx4bqGdJJIUv31vFb1FYpZy/MswA2GVXk39bUibbjk/2 sVyNZ39aSPi5AlZRQRGHuF1hiifkNQLg4WVxIusrDuzeyJ5dc2xeXQAMa8njKVOnjbHZ RCMYF6zn5nuYAuHDzmZcPeJ16TX0MR57Cdq+QdSeyP7BTuSHasclQcGG9/kF9hpTJZtO 419DxZT8smGIw2pPg5qCdN2N+E7mkCKBCLWGHeI3Gkw3iGp4BM7WnFRljKBdTELue6Te Ij0g== 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 f126si3500908pfg.226.2018.03.02.04.43.13; Fri, 02 Mar 2018 04:43:27 -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 S1423678AbeCBIzd (ORCPT + 99 others); Fri, 2 Mar 2018 03:55:33 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50780 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423152AbeCBIz2 (ORCPT ); Fri, 2 Mar 2018 03:55:28 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8149E1242; Fri, 2 Mar 2018 08:55:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Karol Herbst , Thierry Reding , Ben Skeggs , Sasha Levin Subject: [PATCH 4.4 07/34] drm/nouveau/pci: do a msi rearm on init Date: Fri, 2 Mar 2018 09:51:03 +0100 Message-Id: <20180302084436.470546495@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180302084435.842679610@linuxfoundation.org> References: <20180302084435.842679610@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Karol Herbst [ Upstream commit a121027d2747168df0aac0c3da35509eea39f61c ] On my GP107 when I load nouveau after unloading it, for some reason the GPU stopped sending or the CPU stopped receiving interrupts if MSI was enabled. Doing a rearm once before getting any interrupts fixes this. Signed-off-by: Karol Herbst Reviewed-by: Thierry Reding Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c @@ -127,6 +127,13 @@ nvkm_pci_init(struct nvkm_subdev *subdev return ret; pci->irq = pdev->irq; + + /* Ensure MSI interrupts are armed, for the case where there are + * already interrupts pending (for whatever reason) at load time. + */ + if (pci->msi) + pci->func->msi_rearm(pci); + return ret; }