diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2014-02-26 13:25:57 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-02-26 13:56:09 -0500 |
commit | 5c513bd580323dbe794270c5a96b65ba22f376eb (patch) | |
tree | 8e257c4f472251f5841e4fdb01acbaaacb194c57 /drivers/message/i2o | |
parent | 7ed37fc3289d2d7d9c33abbebc0ecc9343e17101 (diff) |
i2o: Fix I/O space alignment requirement
When i2o_iop_systab_set() allocates I/O port space, it specifies 1Mb
alignment required. This seems unlikely, since most platforms have only
64Kb of I/O space total. I think 4Kb is a more reasonable choice, since
that's the minimum alignment of a PCI-PCI bridge I/O window.
My guess is that this is a copy/paste error from the memory allocation
code, which specifies 1Mb alignment (which is the minimum alignment of a
PCI-PCI bridge memory window).
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/message/i2o')
-rw-r--r-- | drivers/message/i2o/iop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/message/i2o/iop.c b/drivers/message/i2o/iop.c index a8373d7aaef7..68aef58bf89c 100644 --- a/drivers/message/i2o/iop.c +++ b/drivers/message/i2o/iop.c | |||
@@ -700,7 +700,7 @@ static int i2o_iop_systab_set(struct i2o_controller *c) | |||
700 | root = pci_find_parent_resource(c->pdev, res); | 700 | root = pci_find_parent_resource(c->pdev, res); |
701 | if (root == NULL) | 701 | if (root == NULL) |
702 | osm_warn("%s: Can't find parent resource!\n", c->name); | 702 | osm_warn("%s: Can't find parent resource!\n", c->name); |
703 | if (root && allocate_resource(root, res, sb->desired_io_size, sb->desired_io_size, sb->desired_io_size, 1 << 20, /* Unspecified, so use 1Mb and play safe */ | 703 | if (root && allocate_resource(root, res, sb->desired_io_size, sb->desired_io_size, sb->desired_io_size, 1 << 12, /* Unspecified, so use 4Kb and play safe */ |
704 | NULL, NULL) >= 0) { | 704 | NULL, NULL) >= 0) { |
705 | c->io_alloc = 1; | 705 | c->io_alloc = 1; |
706 | sb->current_io_size = resource_size(res); | 706 | sb->current_io_size = resource_size(res); |