aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptbase.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@suse.com>2015-04-21 16:46:06 -0400
committerJames Bottomley <JBottomley@Odin.com>2015-06-13 11:44:14 -0400
commit8cd1943bf0e87f467a1b498c63483f70b18b43d7 (patch)
tree79c876b8879c60ebc25b4c639dadf3a4c71a17e0 /drivers/message/fusion/mptbase.c
parent8810eac83624ab1ad593c59da43e187179f5941e (diff)
fusion: remove dead MTRR code
If and when this gets enabled the driver could should split up IO memory space properly and that is quite a bit of work. Just remove the uncommented dead MTRR code then. There are a few motivations for this: a) Take advantage of PAT when available b) Help bury MTRR code away, MTRR is architecture specific and on x86 its replaced by PAT c) Help with the goal of eventually using _PAGE_CACHE_UC over _PAGE_CACHE_UC_MINUS on x86 on ioremap_nocache() (see commit de33c442e titled "x86 PAT: fix performance drop for glx, use UC minus for ioremap(), ioremap_nocache() and pci_mmap_page_range()") Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com> Acked-by: Sreekanth Reddy <ureekanth.reddy@avagotech.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r--drivers/message/fusion/mptbase.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
index 187f83629f7e..5dcc0313c38a 100644
--- a/drivers/message/fusion/mptbase.c
+++ b/drivers/message/fusion/mptbase.c
@@ -59,10 +59,6 @@
59#include <linux/delay.h> 59#include <linux/delay.h>
60#include <linux/interrupt.h> /* needed for in_interrupt() proto */ 60#include <linux/interrupt.h> /* needed for in_interrupt() proto */
61#include <linux/dma-mapping.h> 61#include <linux/dma-mapping.h>
62#include <asm/io.h>
63#ifdef CONFIG_MTRR
64#include <asm/mtrr.h>
65#endif
66#include <linux/kthread.h> 62#include <linux/kthread.h>
67#include <scsi/scsi_host.h> 63#include <scsi/scsi_host.h>
68 64
@@ -2820,13 +2816,6 @@ mpt_adapter_dispose(MPT_ADAPTER *ioc)
2820 pci_disable_device(ioc->pcidev); 2816 pci_disable_device(ioc->pcidev);
2821 pci_release_selected_regions(ioc->pcidev, ioc->bars); 2817 pci_release_selected_regions(ioc->pcidev, ioc->bars);
2822 2818
2823#if defined(CONFIG_MTRR) && 0
2824 if (ioc->mtrr_reg > 0) {
2825 mtrr_del(ioc->mtrr_reg, 0, 0);
2826 dprintk(ioc, printk(MYIOC_s_INFO_FMT "MTRR region de-registered\n", ioc->name));
2827 }
2828#endif
2829
2830 /* Zap the adapter lookup ptr! */ 2819 /* Zap the adapter lookup ptr! */
2831 list_del(&ioc->list); 2820 list_del(&ioc->list);
2832 2821
@@ -4512,19 +4501,6 @@ PrimeIocFifos(MPT_ADAPTER *ioc)
4512 4501
4513 ioc->req_frames_low_dma = (u32) (alloc_dma & 0xFFFFFFFF); 4502 ioc->req_frames_low_dma = (u32) (alloc_dma & 0xFFFFFFFF);
4514 4503
4515#if defined(CONFIG_MTRR) && 0
4516 /*
4517 * Enable Write Combining MTRR for IOC's memory region.
4518 * (at least as much as we can; "size and base must be
4519 * multiples of 4 kiB"
4520 */
4521 ioc->mtrr_reg = mtrr_add(ioc->req_frames_dma,
4522 sz,
4523 MTRR_TYPE_WRCOMB, 1);
4524 dprintk(ioc, printk(MYIOC_s_DEBUG_FMT "MTRR region registered (base:size=%08x:%x)\n",
4525 ioc->name, ioc->req_frames_dma, sz));
4526#endif
4527
4528 for (i = 0; i < ioc->req_depth; i++) { 4504 for (i = 0; i < ioc->req_depth; i++) {
4529 alloc_dma += ioc->req_sz; 4505 alloc_dma += ioc->req_sz;
4530 mem += ioc->req_sz; 4506 mem += ioc->req_sz;