Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3285378ybb; Tue, 31 Mar 2020 02:06:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu4xZAPK6ZW6CJLx4J5AuSG5qKEFvmF5wuO71Nw4iTqAVV5eIJMDC64Jud+ttYN2cYvhlI4 X-Received: by 2002:a4a:3357:: with SMTP id q84mr12510273ooq.69.1585645571410; Tue, 31 Mar 2020 02:06:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645571; cv=none; d=google.com; s=arc-20160816; b=w2OZroaeCclpn/BJZ9rgDVqYxTP6TvkpKTuiHIqCz+tdMld8RyCfVgrcWJJ5rhytm+ /HSxvkQb/aXIKEOMRi1kFYxEnsn74C72v7L8hxzjUo0XyqeGoL82bsmal0fceTzZqzO7 dvXo7cTze+IvV6gJngtuXdm7EpmYZhy2DzK5LOw+RlbP3nhAoP8hqDYhDEdr/2Em5fKl BnKcVbh0o51WqYwLt4/6gMZ95schiyi/qf2Ya3BmjHAOJVXaEDvd286gukU3EHSSyDac DiSvIxsMryIBbU9hxkyqNaMahoT+lS8bFOCImR41LNSRIS+Hcdy/qKI44ixf8M4EgEKr JbVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KHTpDtMupqqCWj5RDNbtpMii7dQkz1mEXbLhyuWdPWg=; b=GGP6DYElWV6k5UwkOukfylOzl9snan4zG8MfDnyUVRaoiOTp8IUSaQL7jfzIsFAm5g sNYB5Jjnh2dfYNDsd5vNerKHeksJo0GoVxTeS1rMIYxlV+LdsAr+HJn4lSZDJsqr/YXx PUEXiTemNzd/OEGCKHs2zQAVd7/jNP+XZuv7gCb9KUq74KQ97PjBwRsGrteurofP0Ysk A4ZBOaGlTqezVeH8jnyVh86Sc6ymN4uix94VI7v8US7kqj0Cll45x+pfXlu5DpWHOtUF QX50O2EIyyWR3xZr3xvYUeMiqOqSamDvy+9uN1zq3LxyRZh5yQqGSeGev7tvLd6uPKMJ lDiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LpgQOz4V; 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 i184si6865032oia.14.2020.03.31.02.05.59; Tue, 31 Mar 2020 02:06:11 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=LpgQOz4V; 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 S1731033AbgCaJFC (ORCPT + 99 others); Tue, 31 Mar 2020 05:05:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:45834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730998AbgCaJFB (ORCPT ); Tue, 31 Mar 2020 05:05:01 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9AA5321841; Tue, 31 Mar 2020 09:05:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645501; bh=7TXbjtTlyiw/EJVmNSsIzVxQlvg19KzvZcYvQzCfOQI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LpgQOz4VSH4SWh2vMObKI4jBtDTeEJv26hLan5NtB37Yl5RFM3Dw3QRoxYUQ52D45 gPoAbytHFT5bdGHmJhKgr7r7+u8re+mndblk0n07YxSoOXmB1k3bUp1+bB42MJLInF pyhzBtNfvWjYcu9UbFE9o50op9KrROS3M1H87IuU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiner Kallweit , "David S. Miller" Subject: [PATCH 5.5 034/170] r8169: re-enable MSI on RTL8168c Date: Tue, 31 Mar 2020 10:57:28 +0200 Message-Id: <20200331085427.667281606@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heiner Kallweit [ Upstream commit f13bc68131b0c0d67a77fb43444e109828a983bf ] The original change fixed an issue on RTL8168b by mimicking the vendor driver behavior to disable MSI on chip versions before RTL8168d. This however now caused an issue on a system with RTL8168c, see [0]. Therefore leave MSI disabled on RTL8168b, but re-enable it on RTL8168c. [0] https://bugzilla.redhat.com/show_bug.cgi?id=1792839 Fixes: 003bd5b4a7b4 ("r8169: don't use MSI before RTL8168d") Signed-off-by: Heiner Kallweit Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/realtek/r8169_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -6579,7 +6579,7 @@ static int rtl_alloc_irq(struct rtl8169_ RTL_W8(tp, Config2, RTL_R8(tp, Config2) & ~MSIEnable); rtl_lock_config_regs(tp); /* fall through */ - case RTL_GIGA_MAC_VER_07 ... RTL_GIGA_MAC_VER_24: + case RTL_GIGA_MAC_VER_07 ... RTL_GIGA_MAC_VER_17: flags = PCI_IRQ_LEGACY; break; default: