Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105799207
D10724.id28324.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1005 B
Referenced Files
None
Subscribers
None
D10724.id28324.diff
View Options
Index: sys/arm/mv/mv_common.c
===================================================================
--- sys/arm/mv/mv_common.c
+++ sys/arm/mv/mv_common.c
@@ -1114,6 +1114,7 @@
decode_win_cesa_setup(u_long base)
{
uint32_t br, cr;
+ uint64_t size;
int i, j;
for (i = 0; i < MV_WIN_CESA_MAX; i++) {
@@ -1126,7 +1127,21 @@
if (ddr_is_active(i)) {
br = ddr_base(i);
- cr = (((ddr_size(i) - 1) & 0xffff0000) |
+ size = ddr_size(i);
+#ifdef SOC_MV_ARMADA38X
+ /*
+ * Armada 38x SoC's equipped with 4GB DRAM
+ * suffer freeze during CESA operation, if
+ * MBUS window opened at given DRAM CS reaches
+ * end of the address space. Apply a workaround
+ * by setting the window size to the closest possible
+ * value, i.e. divide it by 2.
+ */
+ if (size + ddr_base(i) == 0x100000000ULL)
+ size /= 2;
+#endif
+
+ cr = (((size - 1) & 0xffff0000) |
(ddr_attr(i) << IO_WIN_ATTR_SHIFT) |
(ddr_target(i) << IO_WIN_TGT_SHIFT) |
IO_WIN_ENA_MASK);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 8:58 PM (17 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15546702
Default Alt Text
D10724.id28324.diff (1005 B)
Attached To
Mode
D10724: Add workaround for CESA MBUS windows with 4GB DRAM
Attached
Detach File
Event Timeline
Log In to Comment