From patchwork Mon Dec 23 15:13:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Desai, Kashyap" X-Patchwork-Id: 3396891 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9F6FE9F37A for ; Mon, 23 Dec 2013 15:27:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4F9B220395 for ; Mon, 23 Dec 2013 15:27:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 211722034E for ; Mon, 23 Dec 2013 15:27:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757360Ab3LWP1T (ORCPT ); Mon, 23 Dec 2013 10:27:19 -0500 Received: from mail-bn1lp0154.outbound.protection.outlook.com ([207.46.163.154]:54126 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751553Ab3LWP1S (ORCPT ); Mon, 23 Dec 2013 10:27:18 -0500 X-Greylist: delayed 867 seconds by postgrey-1.27 at vger.kernel.org; Mon, 23 Dec 2013 10:27:17 EST Received: from CO2PR07CA005.namprd07.prod.outlook.com (10.141.194.173) by BLUPR07MB145.namprd07.prod.outlook.com (10.242.200.26) with Microsoft SMTP Server (TLS) id 15.0.842.7; Mon, 23 Dec 2013 15:12:47 +0000 Received: from BN1AFFO11FD014.protection.gbl (2a01:111:f400:7c10::186) by CO2PR07CA005.outlook.office365.com (2a01:111:e400:1414::45) with Microsoft SMTP Server (TLS) id 15.0.842.7 via Frontend Transport; Mon, 23 Dec 2013 15:12:46 +0000 Received: from COSEXCH10.lsi.com (192.19.220.100) by BN1AFFO11FD014.mail.protection.outlook.com (10.58.52.74) with Microsoft SMTP Server (TLS) id 15.0.837.10 via Frontend Transport; Mon, 23 Dec 2013 15:12:45 +0000 Received: from cosmhbs0.lsi.com (135.142.2.50) by COSEXCH10-ext.lsi.com (135.142.2.84) with Microsoft SMTP Server id 14.3.158.1; Mon, 23 Dec 2013 08:12:39 -0700 Received: from localhost ([135.24.192.191]) by cosmhbs0.lsi.com (8.13.8/8.12.11) with ESMTP id rBNFC6mo008974; Mon, 23 Dec 2013 08:12:07 -0700 From: Message-ID: <201312231512.rBNFC6mo008974@cosmhbs0.lsi.com> Date: Mon, 23 Dec 2013 20:43:36 +0530 To: , Subject: [PATCH] megaraid_sas: Quirk mmio hook for 1078 MR controller CC: , , , User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.19.220.100; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019001)(199002)(189002)(83072002)(54316002)(85306002)(87936001)(74366001)(85852003)(50986001)(81342001)(57986002)(90146001)(81542001)(6806004)(76482001)(50466002)(23726002)(81686001)(65816001)(74502001)(74662001)(69226001)(83506001)(54356001)(56776001)(59766001)(74706001)(20776003)(16796002)(47776003)(80976001)(47446002)(77982001)(53806001)(81816001)(63696002)(51856001)(80022001)(19580395003)(31966008)(19580405001)(83322001)(46406003)(87266001)(56816005)(47976001)(76176001)(74876001)(79246001)(49866001)(47736001)(44976005)(77096001)(79102001)(46102001)(4396001)(76796001)(76786001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR07MB145; H:COSEXCH10.lsi.com; CLIP:192.19.220.100; FPR:; RD:cosexch10.lsi.com; A:1; MX:1; LANG:en; X-Forefront-PRVS: 0069246B74 X-OriginatorOrg: lsi.com Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch has fix for LSI Gen-1 MR controller issue which only pop-up on few systems and it is not generic. On few system, MR 1078 MR controller is not working if mmio decoding is off. This patch proposed early quirck entry for Device id 0x1000/0x0411 to enable mmio. Signed-off-by: Kashyap Desai --- -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index f6c31fa..a20fe41 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -43,6 +43,10 @@ static void quirk_mmio_always_on(struct pci_dev *dev) } DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_BRIDGE_HOST, 8, quirk_mmio_always_on); +/* LSI controller device id 0x0411 has some issues if mmio_always_on is not set. + * It pop-up only on few specific system, where decoding disable is not working. + */ +DECLARE_PCI_FIXUP_EARLY(0x1000, 0x0411, quirk_mmio_always_on); /* The Mellanox Tavor device gives false positive parity errors * Mark this device with a broken_parity_status, to allow