From: Felix Manlunas
Date: Thu, 29 Dec 2016 17:04:47 -0800
> Reads from Octeon PCI console are inefficient because before each read
> operation, a dynamic mapping to Octeon DRAM is set up. This patch replaces
> the repeated setup of a dynamic mapping with a one-time setup of a static
> mapping.
Chickles, Derek wrote on Thu [2016-Dec-29 17:42:34
-0800]:
> > #ifdef __BIG_ENDIAN_BITFIELD
> > static inline void
> > @@ -96,6 +96,25 @@ __octeon_pci_rw_core_mem(struct octeon_device
> > *oct, u64 addr,
> > u32 copy_len = 0, index_reg_val = 0;
> > unsigned long flags;
> > u8 __iome
> #ifdef __BIG_ENDIAN_BITFIELD
> static inline void
> @@ -96,6 +96,25 @@ __octeon_pci_rw_core_mem(struct octeon_device
> *oct, u64 addr,
> u32 copy_len = 0, index_reg_val = 0;
> unsigned long flags;
> u8 __iomem *mapped_addr;
> + u64 static_mapping_base;
> +
> + static_m
Reads from Octeon PCI console are inefficient because before each read
operation, a dynamic mapping to Octeon DRAM is set up. This patch replaces
the repeated setup of a dynamic mapping with a one-time setup of a static
mapping.
Signed-off-by: Felix Manlunas
Signed-off-by: Raghu Vatsavayi
Signe