From: Wesley Sheng Date: Thu, 6 Dec 2018 13:30:51 +0000 (+0800) Subject: ntb_hw_switchtec: NT req id mapping table register entry number should be 512 X-Git-Tag: Ubuntu-4.15.0-89.89~92 X-Git-Url: https://git.proxmox.com/?p=mirror_ubuntu-bionic-kernel.git;a=commitdiff_plain;h=b48981e6da810d8f9655a3e305ffc9aaf02e6fba ntb_hw_switchtec: NT req id mapping table register entry number should be 512 BugLink: https://bugs.launchpad.net/bugs/1863019 [ Upstream commit d123fab71f63aae129aebe052664fda73131921a ] The number of available NT req id mapping table entries per NTB control register is 512. The driver mistakenly limits the number to 256. Fix the array size of NT req id mapping table. Fixes: c082b04c9d40 ("NTB: switchtec: Add NTB hardware register definitions") Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe Signed-off-by: Jon Mason Signed-off-by: Sasha Levin Signed-off-by: Kamal Mostafa Signed-off-by: Khalid Elmously --- diff --git a/include/linux/switchtec.h b/include/linux/switchtec.h index 09d73d0d1aa8..028295df8c1f 100644 --- a/include/linux/switchtec.h +++ b/include/linux/switchtec.h @@ -237,8 +237,8 @@ struct ntb_ctrl_regs { u64 xlate_addr; } bar_entry[6]; u32 reserved2[216]; - u32 req_id_table[256]; - u32 reserved3[512]; + u32 req_id_table[512]; + u32 reserved3[256]; u64 lut_entry[512]; } __packed;