Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161204AbWJPII5 (ORCPT ); Mon, 16 Oct 2006 04:08:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161213AbWJPII5 (ORCPT ); Mon, 16 Oct 2006 04:08:57 -0400 Received: from mailhub.sw.ru ([195.214.233.200]:19819 "EHLO relay.sw.ru") by vger.kernel.org with ESMTP id S1161204AbWJPII4 (ORCPT ); Mon, 16 Oct 2006 04:08:56 -0400 Message-ID: <45333E0B.7000905@sw.ru> Date: Mon, 16 Oct 2006 12:08:43 +0400 From: Vasily Averin User-Agent: Thunderbird 1.5.0.7 (X11/20060911) MIME-Version: 1.0 To: Linux Kernel Mailing List , linux-scsi@vger.kernel.org, "Ju, Seokmann" , James Bottomley , Andrew Morton , Linus Torvalds , devel@openvz.org CC: Andrey Mirkin Subject: [PATCH 2.6.19-rc2] scsi: megaraid_{mm,mbox}: 64-bit DMA capability fix X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/mixed; boundary="------------040508000705040309060803" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2098 Lines: 55 This is a multi-part message in MIME format. --------------040508000705040309060803 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit From: Andrey Mirkin (amirkin@sw.ru) It is known that 2 LSI Logic MegaRAID SATA RAID Controllers (150-4 and 150-6) don't support 64-bit DMA. Unfortunately currently this check is wrong and driver sets 64-bit DMA mode for these devices. Signed-off-by: Andrey Mirkin Ack-by: Vasily Averin --- linux-2.6.19-rc2/drivers/scsi/megaraid/megaraid_mbox.c.mgst6 2006-10-16 10:26:50.000000000 +0400 +++ linux-2.6.19-rc2/drivers/scsi/megaraid/megaraid_mbox.c 2006-10-16 11:30:55.000000000 +0400 @@ -884,7 +884,7 @@ megaraid_init_mbox(adapter_t *adapter) if (((magic64 == HBA_SIGNATURE_64_BIT) && ((adapter->pdev->subsystem_device != - PCI_SUBSYS_ID_MEGARAID_SATA_150_6) || + PCI_SUBSYS_ID_MEGARAID_SATA_150_6) && (adapter->pdev->subsystem_device != PCI_SUBSYS_ID_MEGARAID_SATA_150_4))) || (adapter->pdev->vendor == PCI_VENDOR_ID_LSI_LOGIC && --------------040508000705040309060803 Content-Type: text/plain; name="diff-megaraid-sata1506-20061016" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff-megaraid-sata1506-20061016" --- linux-2.6.19-rc2/drivers/scsi/megaraid/megaraid_mbox.c.mgst6 2006-10-16 10:26:50.000000000 +0400 +++ linux-2.6.19-rc2/drivers/scsi/megaraid/megaraid_mbox.c 2006-10-16 11:30:55.000000000 +0400 @@ -884,7 +884,7 @@ megaraid_init_mbox(adapter_t *adapter) if (((magic64 == HBA_SIGNATURE_64_BIT) && ((adapter->pdev->subsystem_device != - PCI_SUBSYS_ID_MEGARAID_SATA_150_6) || + PCI_SUBSYS_ID_MEGARAID_SATA_150_6) && (adapter->pdev->subsystem_device != PCI_SUBSYS_ID_MEGARAID_SATA_150_4))) || (adapter->pdev->vendor == PCI_VENDOR_ID_LSI_LOGIC && --------------040508000705040309060803-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/