Skip to content

Commit 723a2cc

Browse files
jgunthorpehcahca
authored andcommitted
s390: use the correct count for __iowrite64_copy()
The signature for __iowrite64_copy() requires the number of 64 bit quantities, not bytes. Multiple by 8 to get to a byte length before invoking zpci_memcpy_toio() Fixes: 87bc359 ("s390/pci: speed up __iowrite64_copy by using pci store block insn") Acked-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/0-v1-9223d11a7662+1d7785-s390_iowrite64_jgg@nvidia.com Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent 124468a commit 723a2cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/pci/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res,
252252
/* combine single writes by using store-block insn */
253253
void __iowrite64_copy(void __iomem *to, const void *from, size_t count)
254254
{
255-
zpci_memcpy_toio(to, from, count);
255+
zpci_memcpy_toio(to, from, count * 8);
256256
}
257257

258258
void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size,

0 commit comments

Comments
 (0)