[PARISC] I/O-Space must be ioremap_nocache()'d
Addresses in F-space must be accessed uncached on most parisc machines. Signed-off-by: Helge Deller <deller@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
此提交包含在:
@@ -1642,9 +1642,9 @@ sba_ioc_init(struct parisc_device *sba, struct ioc *ioc, int ioc_num)
|
||||
**
|
||||
**************************************************************************/
|
||||
|
||||
static void __iomem *ioc_remap(struct sba_device *sba_dev, int offset)
|
||||
static void __iomem *ioc_remap(struct sba_device *sba_dev, unsigned int offset)
|
||||
{
|
||||
return ioremap(sba_dev->dev->hpa.start + offset, SBA_FUNC_SIZE);
|
||||
return ioremap_nocache(sba_dev->dev->hpa.start + offset, SBA_FUNC_SIZE);
|
||||
}
|
||||
|
||||
static void sba_hw_init(struct sba_device *sba_dev)
|
||||
@@ -2040,7 +2040,7 @@ sba_driver_callback(struct parisc_device *dev)
|
||||
u32 func_class;
|
||||
int i;
|
||||
char *version;
|
||||
void __iomem *sba_addr = ioremap(dev->hpa.start, SBA_FUNC_SIZE);
|
||||
void __iomem *sba_addr = ioremap_nocache(dev->hpa.start, SBA_FUNC_SIZE);
|
||||
struct proc_dir_entry *info_entry, *bitmap_entry, *root;
|
||||
|
||||
sba_dump_ranges(sba_addr);
|
||||
|
新增問題並參考
封鎖使用者