[SCSI] bnx2i: Fix context mapping issue for architectures with PAGE_SIZE != 4096
authorAnil Veerabhadrappa <anilgv@broadcom.com>
Fri, 11 Sep 2009 17:38:26 +0000 (10:38 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 2 Oct 2009 14:45:34 +0000 (09:45 -0500)
commit53203244a4f9988f132ef481867ff47d6bd055b5
tree585b47f57d771c859e70fb4afcf51ad900dff5a3
parent3bfc13c239fd56ebc1ac98a914c6c6b8b0045478
[SCSI] bnx2i: Fix context mapping issue for architectures with PAGE_SIZE != 4096

5706/5708/5709 devices allow driver/user to set page size. By default it is
set to 4096.  Current drivers do not program this register based on
architecture type (e.g. x86 = 4K, IA64 = 16K) and by choice lets device use
the defaults. So while mapping connection context memory (doorebll registers),
driver has to match page size used by the device. Included change fixes the
issue we uncovered during IA64 testing

Signed-off-by: Anil Veerabhadrappa <anilgv@broadcom.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bnx2i/bnx2i.h
drivers/scsi/bnx2i/bnx2i_hwi.c