History log of /arch/blackfin/kernel/cplb-mpu/cplbinit.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1ed181f248dbd26ee1bbbb1e7a61e94f875191ed 28-May-2010 Mike Frysinger <vapier@gentoo.org> Blackfin: move MPU anomaly check to common location

Keep all anomaly/arch checks in one place to keep logic simple.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
d86bfb1600db38e8387beee0aaab4263cfd728a2 07-Jan-2010 Barry Song <barry.song@analog.com> Blackfin: initial XIP support

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
0a68b5341de1d80cf0ec8e6c9a851e4bfd99787c 12-Dec-2009 Mike Frysinger <vapier@gentoo.org> Blackfin: MPU: add missing __init markings

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
7bae2c4898dd6e1e4a8276e5c428c55a7ff01bdf 30-Oct-2009 André Goddard Rosa <andre.goddard@gmail.com> Blackfin: fix cache Kconfig typo

The Kconfig option is "BFIN_EXTMEM_WRITETHROUGH", not "..._WRITETROUGH".

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
96f1050d3df105c9ae6c6ac224f370199ea82fcd 24-Sep-2009 Robin Getz <robin.getz@analog.com> Blackfin: mass clean up of copyright/licensing info

Bill Gatliff & David Brownell pointed out we were missing some
copyrights, and licensing terms in some of the files in
./arch/blackfin, so this fixes things, and cleans them up.

It also removes:
- verbose GPL text(refer to the top level ./COPYING file)
- file names (you are looking at the file)
- bug url (it's in the ./MAINTAINERS file)
- "or later" on GPL-2, when we did not have that right

It also allows some Blackfin-specific assembly files to be under a BSD
like license (for people to use them outside of Linux).

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
41ba653f24a39a0e6a4afe9b2763a95a57e042c2 16-Jun-2009 Jie Zhang <jie.zhang@analog.com> Blackfin: decouple unrelated cache settings to get exact behavior

The current cache options don't really represent the hardware features.
They end up setting different aspects of the hardware so that the end
result is to turn on/off the cache. Unfortunately, when we hit cache
problems with the hardware, it's difficult to test different settings to
root cause the problem. The current settings also don't cleanly allow for
different caching behaviors with different regions of memory.

So split the configure options such that they properly reflect the settings
that are applied to the hardware.

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
a17c7f6f5b3b3f91ff7121c33bea8748c415ab15 05-May-2009 Robin Getz <robin.getz@analog.com> Blackfin: make sure MPU CPLB for first 1k is marked as valid

This way we properly catch and kill applications that jump to a NULL ptr.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
bf324cb81a2f7da357eba00b6b1ef1cf38c264b8 04-Feb-2009 Bernd Schmidt <bernds_cb1@t-online.de> Blackfin arch: fix bug - traps test case 19 for exception 0x2d fails

Enable null pointer checking for ICPLBs. The code was there but for
some reason I had commented it out at some stage during development.

Should restrict this to 1K since atomic ops start there.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
dbdf20db537a5369c65330f878ad4905020a8bfa 07-Jan-2009 Bernd Schmidt <bernds_cb1@t-online.de> 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>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
dbc895f95500a73ebf1ff12fe85f2e2b3790f52f 07-Jan-2009 Graf Yang <graf.yang@analog.com> Blackfin arch: smp patch cleanup from LKML review

1. Use inline get_l1_... functions instead of macro
2. Fix compile issue about smp barrier functions

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
b8a989893cbdeb6c97a7b5af5f38fb0e480235f9 18-Nov-2008 Graf Yang <graf.yang@analog.com> Blackfin arch: SMP supporting patchset: Blackfin CPLB related code

Blackfin dual core BF561 processor can support SMP like features.
https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:smp-like

In this patch, we provide SMP extend to Blackfin CPLB related code

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
f099f39acf7575eff3dee3c562cec4e592876c33 09-Oct-2008 Sonic Zhang <sonic.zhang@analog.com> Blackfin arch: Make L2 SRAM cacheable

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
5b04f271fe49bb7adb061de454d383c027a18de0 08-Oct-2008 Graf Yang <graf.yang@analog.com> Blackfin arch: Modify some funtion names to more genernal ones

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
8cab0288c6376b9c00155b0802cbe84118d1ba89 23-Apr-2008 Mike Frysinger <vapier.adi@gmail.com> [Blackfin] arch: add boot messages to quickly distinguish between MPU/NOMPU settings

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
dbfe44f02b6855efb5a596e942ec2fd96d592f60 23-Apr-2008 Bernd Schmidt <bernds_cb1@t-online.de> [Blackfin] arch: fix up - CONFIG_BLKFIN_WT was renamed CONFIG_BFIN_WT while the MPU code was out-of-tree.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
c605999bd9a90a7a9915666f4531c60928cbc368 01-Feb-2008 Mike Frysinger <michael.frysinger@analog.com> [Blackfin] arch: error out if ANOMALY_05000263 applies while enabling the MPU

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c
b97b8a998397e8c64699559099fa9febffae2b4d 27-Jan-2008 Bernd Schmidt <bernd.schmidt@analog.com> [Blackfin] arch: Initial checkin of the memory protection support.

Enable it with CONFIG_MPU.

Signed-off-by: Bernd Schmidt <bernd.schmidt@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
/arch/blackfin/kernel/cplb-mpu/cplbinit.c