linux_dsm_epyc7002/arch/blackfin/kernel
Bernd Schmidt dbdf20db53 Blackfin arch: Faster C implementation of no-MPU CPLB handler
This is a mixture ofcMichael McTernan's patch and the existing cplb-mpu code.

We ditch the old cplb-nompu implementation, which is a good example of
why a good algorithm in a HLL is preferrable to a bad algorithm written in
assembly.  Rather than try to construct a table of all posible CPLBs and
search it, we just create a (smaller) table of memory regions and
their attributes.  Some of the data structures are now unified for both
the mpu and nompu cases.  A lot of needless complexity in cplbinit.c is
removed.

Further optimizations:
  * compile cplbmgr.c with a lot of -ffixed-reg options, and omit saving
    these registers on the stack when entering a CPLB exception.
  * lose cli/nop/nop/sti sequences for some workarounds - these don't
  * make
    sense in an exception context

Additional code unification should be possible after this.

[Mike Frysinger <vapier.adi@gmail.com>:
 - convert CPP if statements to C if statements
 - remove redundant statements
 - use a do...while loop rather than a for loop to get slightly better
   optimization and to avoid gcc "may be used uninitialized" warnings ...
   we know that the [id]cplb_nr_bounds variables will never be 0, so this
   is OK
 - the no-mpu code was the last user of MAX_MEM_SIZE and with that rewritten,
   we can punt it
 - add some BUG_ON() checks to make sure we dont overflow the small
   cplb_bounds array
 - add i/d cplb entries for the bootrom because there is functions/data in
   there we want to access
 - we do not need a NULL trailing entry as any time we access the bounds
   arrays, we use the nr_bounds variable
]

Signed-off-by: Michael McTernan <mmcternan@airvana.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
2009-01-07 23:14:38 +08:00
..
cplb-mpu Blackfin arch: Faster C implementation of no-MPU CPLB handler 2009-01-07 23:14:38 +08:00
cplb-nompu Blackfin arch: Faster C implementation of no-MPU CPLB handler 2009-01-07 23:14:38 +08:00
asm-offsets.c Blackfin arch: SMP supporting patchset: Blackfin kernel and memory management code 2008-11-18 17:48:22 +08:00
bfin_dma_5xx.c Blackfin arch: push cache flushing up to dma_memcpy 2009-01-07 23:14:39 +08:00
bfin_gpio.c Blackfin arch: Allow a gpio pin be requested both as gpio and irq. 2009-01-07 23:14:38 +08:00
bfin_ksyms.c Blackfin arch: smp patch cleanup from LKML review 2009-01-07 23:14:39 +08:00
cplbinfo.c Blackfin arch: Faster C implementation of no-MPU CPLB handler 2009-01-07 23:14:38 +08:00
dma-mapping.c [Blackfin] arch: __FUNCTION__ is gcc-specific, use __func__ 2008-04-23 09:39:01 +08:00
early_printk.c Blackfin arch: emulate a TTY over the EMUDAT/JTAG interface 2008-10-10 17:37:52 +08:00
entry.S Blackfin arch: SMP supporting patchset: Blackfin kernel and memory management code 2008-11-18 17:48:22 +08:00
fixed_code.S Blackfin arch: move fixed code into init section 2008-11-18 17:48:22 +08:00
flat.c Blackfin arch: cleanup warnings from checkpatch -- no functional changes 2007-07-12 22:58:21 +08:00
gptimers.c Blackfin arch: Cleanup no functional changes 2008-05-20 16:42:39 +08:00
init_task.c take init_fs to saner place 2008-12-31 18:07:42 -05:00
irqchip.c Blackfin arch: Add basic irq stack checking for Blackfin 2009-01-07 23:14:38 +08:00
kgdb.c Blackfin arch: remove #if check on L2_LENGTH 2009-01-07 23:14:39 +08:00
Makefile Blackfin arch: unify cplbinfo files 2008-11-18 17:48:22 +08:00
module.c Blackfin arch: Remove all traces of the relocation stack 2009-01-07 23:14:39 +08:00
process.c Blackfin arch: smp patch cleanup from LKML review 2009-01-07 23:14:39 +08:00
ptrace.c Blackfin arch: smp patch cleanup from LKML review 2009-01-07 23:14:39 +08:00
reboot.c Blackfin arch: SMP supporting patchset: Blackfin kernel and memory management code 2008-11-18 17:48:22 +08:00
setup.c Blackfin arch: Faster C implementation of no-MPU CPLB handler 2009-01-07 23:14:38 +08:00
signal.c [Blackfin] arch: disable single stepping when delivering a signal 2008-05-07 11:41:26 +08:00
sys_bfin.c unified (weak) sys_pipe implementation 2008-05-03 13:50:33 -07:00
time-ts.c cpumask: convert struct clock_event_device to cpumask pointers. 2008-12-13 21:20:26 +10:30
time.c Blackfin arch: add __init markings to Blackfin timer init functions 2009-01-07 23:14:38 +08:00
traps.c Blackfin arch: do not define decode_instruction if hwtrace is turned off 2008-11-18 17:48:22 +08:00
vmlinux.lds.S Blackfin arch: fix bugs in linker script when using upstream binutils 2009-01-07 23:14:39 +08:00