Skip to content

Commit fc1f556

Browse files
xxkentabrodkin
authored andcommitted
ARCv3: Setup cluster apertures
There was an issue P10019796-55966 where we first time made an attempt tuning cluster apertures. Issue was fixed. But the function which setups apertures is commented out in the kernel. And all works. Now I'm enabling and start testing the kernel with arc_cluster_mumbojumbo(). Not sure that it is necessary, will live will see.
1 parent 2e23702 commit fc1f556

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

arch/arc/mm/cache-arcv3.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ static int read_decode_cache_bcr_arcv3(int c, char *buf, int len)
2828
if (cbcr.ver_maj == 0)
2929
return n;
3030

31+
arc_cluster_mumbojumbo();
32+
3133
READ_BCR(ARC_REG_CLNR_BCR_0, cln0);
3234

3335
if (cln0.has_scm) {

arch/arc/mm/cluster.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
#include <asm/cluster.h>
66

7-
#if 0
8-
TODO: blocked by P10019796-55966
97
void arc_cluster_mumbojumbo()
108
{
119
/*
@@ -16,16 +14,15 @@ void arc_cluster_mumbojumbo()
1614
* SCM -> 0xFz+1MB -> 1Mb
1715
*/
1816

19-
arc_cln_write_reg(ARC_CLN_MST_NOC_0_0_ADDR, 0x800);
20-
arc_cln_write_reg(ARC_CLN_MST_NOC_0_0_SIZE, 0x400);
17+
arc_cln_write_reg(ARC_CLN_MST_NOC_0_0_ADDR, 0x000); //0x800
18+
arc_cln_write_reg(ARC_CLN_MST_NOC_0_0_SIZE, 0x800); //0x400
2119

2220
arc_cln_write_reg(ARC_CLN_PER_0_BASE, 0xf00);
2321
arc_cln_write_reg(ARC_CLN_PER_0_SIZE, 0x1);
2422

2523
arc_cln_write_reg(ARC_CLN_SHMEM_ADDR, 0xf01);
2624
arc_cln_write_reg(ARC_CLN_SHMEM_SIZE, 0x1);
2725
}
28-
#endif
2926

3027
void arc_cluster_scm_enable()
3128
{

0 commit comments

Comments
 (0)