Skip to contentSkip to conversation

flush the function in sdram is not correct because sram is changed.

PATCH In review ye janboe 2 participants 4 messages Aug 28, 2009

Subsystems (2)
lore
Share & tools
lore

ye janboe

author
#0 lore raw

PATCH 1/1 flush the function in sdram is not correct because sram is changed.

Quoted 1 line

From f10090bf307066f1317d7152c6f9a6f395007d4a Mon Sep 17 00:00:00 2001

From: janboe <[email protected]>
Date: Fri, 28 Aug 2009 13:50:57 +0800
Subject: [PATCH] flush the function in sdram is not correct because sram is changed.

---
 arch/arm/plat-omap/sram.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-omap/sram.c +1 -1
index f2b0fa6..253fcf7 100644
@@ -270,7 +270,7 @@ void * omap_sram_push(void * start, unsigned long size)
        omap_sram_ceil -= size;
        omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *));
        memcpy((void *)omap_sram_ceil, start, size);
-       flush_icache_range((unsigned long)start, (unsigned long)(start + size));
+       flush_icache_range((unsigned long)omap_sram_ceil, (unsigned

long)(omap_sram_ceil + size));

        return (void *)omap_sram_ceil;

}

Signature · 1 line
1.6.3.3
#1 lore raw

Hello janboe,

Quoted 7 lines · ye janboe
Quoted 1 line

From f10090bf307066f1317d7152c6f9a6f395007d4a Mon Sep 17 00:00:00 2001

From: janboe <[email protected]>
Date: Fri, 28 Aug 2009 13:50:57 +0800
Subject: [PATCH] flush the function in sdram is not correct because sram is changed.

The technical part of the patch makes sense, but the patch format needs to be changed.

Your subject line should start with something like "[PATCH] OMAP SRAM:", and you should add a short patch description that describes the bug and why the patch does what it does to fix it.

Also your post should not include the "From", "Date", and "Subject" lines inside the E-mail. You might wish to consider using 'git send-email' or at least 'git format-patch' if possible.

- Paul

Quoted 21 lines
---
 arch/arm/plat-omap/sram.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-omap/sram.c +1 -1
index f2b0fa6..253fcf7 100644
@@ -270,7 +270,7 @@ void * omap_sram_push(void * start, unsigned long size)
        omap_sram_ceil -= size;
        omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *));
        memcpy((void *)omap_sram_ceil, start, size);
-       flush_icache_range((unsigned long)start, (unsigned long)(start + size));
+       flush_icache_range((unsigned long)omap_sram_ceil, (unsigned
 long)(omap_sram_ceil + size));
 
        return (void *)omap_sram_ceil;

}

Signature · 1 line
1.6.3.3
author
#2 lore raw

Hi, Paul

I resent the patch after fix the format issue.

Please help to review it.

Thanks

Janboe

2009/8/28 Paul Walmsley <[email protected]>:

Quoted 42 lines

Hello janboe,

Quoted 7 lines · ye janboe
Quoted 1 line

From f10090bf307066f1317d7152c6f9a6f395007d4a Mon Sep 17 00:00:00 2001

From: janboe <[email protected]>
Date: Fri, 28 Aug 2009 13:50:57 +0800
Subject: [PATCH] flush the function in sdram is not correct because sram is changed.

The technical part of the patch makes sense, but the patch format needs to be changed.

Your subject line should start with something like "[PATCH] OMAP SRAM:", and you should add a short patch description that describes the bug and why the patch does what it does to fix it.

Also your post should not include the "From", "Date", and "Subject" lines inside the E-mail.  You might wish to consider using 'git send-email' or at least 'git format-patch' if possible.

- Paul

Quoted 16 lines

---
 arch/arm/plat-omap/sram.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-omap/sram.c +1 -1
index f2b0fa6..253fcf7 100644
@@ -270,7 +270,7 @@ void * omap_sram_push(void * start, unsigned long size)
         omap_sram_ceil -= size;
         omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *));
         memcpy((void *)omap_sram_ceil, start, size);
-       flush_icache_range((unsigned long)start, (unsigned long)(start + size));
+       flush_icache_range((unsigned long)omap_sram_ceil, (unsigned
 long)(omap_sram_ceil + size));
 
Quoted 8 lines
Quoted 5 lines
arch/arm/plat-omap/sram.c +0 -0
         return (void *)omap_sram_ceil;

 }
--
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Hi Janboe,

Quoted 5 lines · ye janboe

Hi, Paul

I resent the patch after fix the format issue.

Please help to review it.

Thanks, you fixed one issue, but this other one still needs to be fixed:

Quoted 3 lines
Quoted 3 lines

Your subject line should start with something like "[PATCH] OMAP SRAM:", and you should add a short patch description that describes the bug and why the patch does what it does to fix it.

- Paul

Quoted 57 lines

Thanks

Janboe

2009/8/28 Paul Walmsley <[email protected]>:

Quoted 50 lines

Hello janboe,

Quoted 7 lines · ye janboe
Quoted 1 line

From f10090bf307066f1317d7152c6f9a6f395007d4a Mon Sep 17 00:00:00 2001

From: janboe <[email protected]>
Date: Fri, 28 Aug 2009 13:50:57 +0800
Subject: [PATCH] flush the function in sdram is not correct because sram is changed.

The technical part of the patch makes sense, but the patch format needs to be changed.

Your subject line should start with something like "[PATCH] OMAP SRAM:", and you should add a short patch description that describes the bug and why the patch does what it does to fix it.

Also your post should not include the "From", "Date", and "Subject" lines inside the E-mail.  You might wish to consider using 'git send-email' or at least 'git format-patch' if possible.

- Paul

Quoted 21 lines

---
 arch/arm/plat-omap/sram.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-omap/sram.c +1 -1
index f2b0fa6..253fcf7 100644
@@ -270,7 +270,7 @@ void * omap_sram_push(void * start, unsigned long size)
         omap_sram_ceil -= size;
         omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *));
         memcpy((void *)omap_sram_ceil, start, size);
-       flush_icache_range((unsigned long)start, (unsigned long)(start + size));
+       flush_icache_range((unsigned long)omap_sram_ceil, (unsigned
 long)(omap_sram_ceil + size));
 
         return (void *)omap_sram_ceil;

 }
--
1.6.3.3

- Paul