Skip to contentSkip to conversation

mm: Fix alloc_vm_area for noMMU system

PATCH In review Michal Simek 3 participants 7 messages Nov 16, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: Fix alloc_vm_area for noMMU system

Patch:
"xen: map foreign pages for shared rings by updating the PTEs directly" (sha1: 5149c0d53f6959d6ab87b4702d544b17ebdc783e) changed number of argument for alloc_vm_area but forget to change it for noMMU systems. This patch fix it.

CC David Vrabel <[email protected]>
CC Andrew Morton <[email protected]>
CC Konrad Rzeszutek Wilk <[email protected]>

---
It is for linux-next tree.

Michal

---
 mm/nommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/nommu.c +1 -1
index 73419c5..b982290 100644
@@ -454,7 +454,7 @@ void  __attribute__((weak)) vmalloc_sync_all(void)
  *	between processes, it syncs the pagetable across all
  *	processes.
  */
-struct vm_struct *alloc_vm_area(size_t size)
+struct vm_struct *alloc_vm_area(size_t size, pte_t **ptes)
 {
 	BUG();
 	return NULL;
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 5 lines · Michal Simek

Patch:
"xen: map foreign pages for shared rings by updating the PTEs directly" (sha1: 5149c0d53f6959d6ab87b4702d544b17ebdc783e) changed number of argument for alloc_vm_area but forget to change it for noMMU systems. This patch fix it.

Duh!

Quoted 4 lines
CC David Vrabel <[email protected]>
CC Andrew Morton <[email protected]>
CC Konrad Rzeszutek Wilk <[email protected]>

Yes, please. Thank you!

Quoted 25 lines

---
It is for linux-next tree.

Michal

---
 mm/nommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/nommu.c +1 -1
index 73419c5..b982290 100644
@@ -454,7 +454,7 @@ void  __attribute__((weak)) vmalloc_sync_all(void)
  *	between processes, it syncs the pagetable across all
  *	processes.
  */
-struct vm_struct *alloc_vm_area(size_t size)
+struct vm_struct *alloc_vm_area(size_t size, pte_t **ptes)
 {
 	BUG();
 	return NULL;
Signature · 1 line
1.7.5.4
#2 lore raw
Quoted 7 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Michal Simek

Patch:
"xen: map foreign pages for shared rings by updating the PTEs directly" (sha1: 5149c0d53f6959d6ab87b4702d544b17ebdc783e) changed number of argument for alloc_vm_area but forget to change it for noMMU systems. This patch fix it.

Quoted 7 lines

Duh!

Quoted 4 lines
CC David Vrabel <[email protected]>
CC Andrew Morton <[email protected]>
CC Konrad Rzeszutek Wilk <[email protected]>

Yes, please. Thank you!

Konrad, I would suggest folding this into the original patch to avoid breaking bisects for noMMU users unnecessarily.

David

Quoted 25 lines
Quoted 25 lines

---
It is for linux-next tree.

Michal

---
 mm/nommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/nommu.c +1 -1
index 73419c5..b982290 100644
@@ -454,7 +454,7 @@ void  __attribute__((weak)) vmalloc_sync_all(void)
  *	between processes, it syncs the pagetable across all
  *	processes.
  */
-struct vm_struct *alloc_vm_area(size_t size)
+struct vm_struct *alloc_vm_area(size_t size, pte_t **ptes)
 {
 	BUG();
 	return NULL;
Signature · 1 line
1.7.5.4
#6 lore raw
In reply to Michal Simek
Quoted 8 lines · Michal Simek

Patch:
"xen: map foreign pages for shared rings by updating the PTEs directly" (sha1: 5149c0d53f6959d6ab87b4702d544b17ebdc783e) changed number of argument for alloc_vm_area but forget to change it for noMMU systems. This patch fix it.

CC David Vrabel <[email protected]>
CC Andrew Morton <[email protected]>

Andrew, I was thinking to send that "xen: map foreign pages.." to Linus at some point.

Is it OK if I have your Ack on this patch and stick this with the mentioned patch in my queue?

Quoted 31 lines
CC Konrad Rzeszutek Wilk <[email protected]>

---
It is for linux-next tree.

Michal

---
 mm/nommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/nommu.c +1 -1
index 73419c5..b982290 100644
@@ -454,7 +454,7 @@ void  __attribute__((weak)) vmalloc_sync_all(void)
  *	between processes, it syncs the pagetable across all
  *	processes.
  */
-struct vm_struct *alloc_vm_area(size_t size)
+struct vm_struct *alloc_vm_area(size_t size, pte_t **ptes)
 {
 	BUG();
 	return NULL;
Signature · 6 lines
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-next" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
In reply to David Vrabel
Quoted 10 lines · David Vrabel
Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Michal Simek

Patch:
"xen: map foreign pages for shared rings by updating the PTEs directly" (sha1: 5149c0d53f6959d6ab87b4702d544b17ebdc783e) changed number of argument for alloc_vm_area but forget to change it for noMMU systems. This patch fix it.

Duh!

Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
CC David Vrabel <[email protected]>
CC Andrew Morton <[email protected]>
CC Konrad Rzeszutek Wilk <[email protected]>

Yes, please. Thank you!

Konrad, I would suggest folding this into the original patch to avoid breaking bisects for noMMU users unnecessarily.

Can't do. We would lose Michal authership that way and that is not good.

Quoted 33 lines

David

Quoted 10 lines
Quoted 10 lines

---
It is for linux-next tree.

Michal

---
 mm/nommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 15 lines
Quoted 15 lines
mm/nommu.c +1 -1
index 73419c5..b982290 100644
@@ -454,7 +454,7 @@ void  __attribute__((weak)) vmalloc_sync_all(void)
  *	between processes, it syncs the pagetable across all
  *	processes.
  */
-struct vm_struct *alloc_vm_area(size_t size)
+struct vm_struct *alloc_vm_area(size_t size, pte_t **ptes)
 {
 	BUG();
 	return NULL;
Signature · 1 line
1.7.5.4

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

#4 lore raw
Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 8 lines · David Vrabel
Quoted 7 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Michal Simek

Patch:
"xen: map foreign pages for shared rings by updating the PTEs directly" (sha1: 5149c0d53f6959d6ab87b4702d544b17ebdc783e) changed number of argument for alloc_vm_area but forget to change it for noMMU systems. This patch fix it.

Duh!

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
CC David Vrabel <[email protected]>
CC Andrew Morton <[email protected]>
CC Konrad Rzeszutek Wilk <[email protected]>

Yes, please. Thank you!

Konrad, I would suggest folding this into the original patch to avoid breaking bisects for noMMU users unnecessarily.

Can't do. We would lose Michal authership that way and that is not good.

Do it in way you like and it is the best for others. Not sure where exactly your patch is and it is hard to suggest you how to do it in connection to your merging strategy Anyway you can add my signed-off-by line to origin patch or keep it single patch

Thanks,
Michal

Signature · 4 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
#5 lore raw
Quoted 13 lines · Michal Simek
Quoted 12 lines · Konrad Rzeszutek Wilk
Quoted 11 lines · David Vrabel
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Michal Simek

Patch:
"xen: map foreign pages for shared rings by updating the PTEs directly" (sha1: 5149c0d53f6959d6ab87b4702d544b17ebdc783e) changed number of argument for alloc_vm_area but forget to change it for noMMU systems. This patch fix it.

Duh!

Quoted 3 lines
CC David Vrabel <[email protected]>
CC Andrew Morton <[email protected]>
CC Konrad Rzeszutek Wilk <[email protected]>
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Yes, please. Thank you!

Konrad, I would suggest folding this into the original patch to avoid breaking bisects for noMMU users unnecessarily.

Can't do. We would lose Michal authership that way and that is not good.

Do it in way you like and it is the best for others. Not sure where exactly your patch

That is very nice of you!

Quoted 2 lines

is and it is hard to suggest you how to do it in connection to your merging strategy Anyway you can add my signed-off-by line to origin patch or keep it single patch

Ok. That certainly makes it easier and it does not break the git bisection.

Will do! Thank you.