All of lore.kernel.org
 help / color / mirror / Atom feed
* two minor update patches for RAS
@ 2014-07-28  6:50 ` Chen, Gong
  0 siblings, 0 replies; 8+ messages in thread
From: Chen, Gong @ 2014-07-28  6:50 UTC (permalink / raw)
  To: tony.luck, n-horiguchi, bp; +Cc: linux-acpi, linux-mm

[PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less
[PATCH 2/2] RAS, HWPOISON: Fix wrong error recovery status

These two patches are trivial fixes for APEI and HWPOISON.
Send them together to avoid fragments.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* two minor update patches for RAS
@ 2014-07-28  6:50 ` Chen, Gong
  0 siblings, 0 replies; 8+ messages in thread
From: Chen, Gong @ 2014-07-28  6:50 UTC (permalink / raw)
  To: tony.luck, n-horiguchi, bp; +Cc: linux-acpi, linux-mm

[PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less
[PATCH 2/2] RAS, HWPOISON: Fix wrong error recovery status

These two patches are trivial fixes for APEI and HWPOISON.
Send them together to avoid fragments.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less list
  2014-07-28  6:50 ` Chen, Gong
  (?)
@ 2014-07-28  6:50 ` Chen, Gong
  2014-07-28 14:48   ` Naoya Horiguchi
  -1 siblings, 1 reply; 8+ messages in thread
From: Chen, Gong @ 2014-07-28  6:50 UTC (permalink / raw)
  To: tony.luck, n-horiguchi, bp; +Cc: linux-acpi, linux-mm, Chen, Gong

We have provided a reverse function for lock-less list so delete
uncessary codes.

Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Acked-by: Borislav Petkov <bp@suse.de>
---
 drivers/acpi/apei/ghes.c | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index dab7cb7..1f9fba9 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -734,20 +734,6 @@ static int ghes_notify_sci(struct notifier_block *this,
 	return ret;
 }
 
-static struct llist_node *llist_nodes_reverse(struct llist_node *llnode)
-{
-	struct llist_node *next, *tail = NULL;
-
-	while (llnode) {
-		next = llnode->next;
-		llnode->next = tail;
-		tail = llnode;
-		llnode = next;
-	}
-
-	return tail;
-}
-
 static void ghes_proc_in_irq(struct irq_work *irq_work)
 {
 	struct llist_node *llnode, *next;
@@ -761,7 +747,7 @@ static void ghes_proc_in_irq(struct irq_work *irq_work)
 	 * Because the time order of estatus in list is reversed,
 	 * revert it back to proper order.
 	 */
-	llnode = llist_nodes_reverse(llnode);
+	llnode = llist_reverse_order(llnode);
 	while (llnode) {
 		next = llnode->next;
 		estatus_node = llist_entry(llnode, struct ghes_estatus_node,
@@ -794,7 +780,7 @@ static void ghes_print_queued_estatus(void)
 	 * Because the time order of estatus in list is reversed,
 	 * revert it back to proper order.
 	 */
-	llnode = llist_nodes_reverse(llnode);
+	llnode = llist_reverse_order(llnode);
 	while (llnode) {
 		estatus_node = llist_entry(llnode, struct ghes_estatus_node,
 					   llnode);
-- 
2.0.0.rc2

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] RAS, HWPOISON: Fix wrong error recovery status
  2014-07-28  6:50 ` Chen, Gong
@ 2014-07-28  6:51   ` Chen, Gong
  -1 siblings, 0 replies; 8+ messages in thread
From: Chen, Gong @ 2014-07-28  6:51 UTC (permalink / raw)
  To: tony.luck, n-horiguchi, bp; +Cc: linux-acpi, linux-mm, Chen, Gong

When Uncorrected error happens, if the poisoned page is referenced
by more than one user after error recovery, the recovery is not
successful. But currently the display result is wrong.
Before this patch:

MCE 0x44e336: dirty mlocked LRU page recovery: Recovered
MCE 0x44e336: dirty mlocked LRU page still referenced by 1 users
mce: Memory error not recovered

After this patch:

MCE 0x44e336: dirty mlocked LRU page recovery: Failed
MCE 0x44e336: dirty mlocked LRU page still referenced by 1 users
mce: Memory error not recovered

Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
---
 mm/memory-failure.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index c6399e3..2985861 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -860,7 +860,6 @@ static int page_action(struct page_state *ps, struct page *p,
 	int count;
 
 	result = ps->action(p, pfn);
-	action_result(pfn, ps->msg, result);
 
 	count = page_count(p) - 1;
 	if (ps->action == me_swapcache_dirty && result == DELAYED)
@@ -871,6 +870,7 @@ static int page_action(struct page_state *ps, struct page *p,
 		       pfn, ps->msg, count);
 		result = FAILED;
 	}
+	action_result(pfn, ps->msg, result);
 
 	/* Could do more checks here if page looks ok */
 	/*
-- 
2.0.0.rc2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] RAS, HWPOISON: Fix wrong error recovery status
@ 2014-07-28  6:51   ` Chen, Gong
  0 siblings, 0 replies; 8+ messages in thread
From: Chen, Gong @ 2014-07-28  6:51 UTC (permalink / raw)
  To: tony.luck, n-horiguchi, bp; +Cc: linux-acpi, linux-mm, Chen, Gong

When Uncorrected error happens, if the poisoned page is referenced
by more than one user after error recovery, the recovery is not
successful. But currently the display result is wrong.
Before this patch:

MCE 0x44e336: dirty mlocked LRU page recovery: Recovered
MCE 0x44e336: dirty mlocked LRU page still referenced by 1 users
mce: Memory error not recovered

After this patch:

MCE 0x44e336: dirty mlocked LRU page recovery: Failed
MCE 0x44e336: dirty mlocked LRU page still referenced by 1 users
mce: Memory error not recovered

Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
---
 mm/memory-failure.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index c6399e3..2985861 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -860,7 +860,6 @@ static int page_action(struct page_state *ps, struct page *p,
 	int count;
 
 	result = ps->action(p, pfn);
-	action_result(pfn, ps->msg, result);
 
 	count = page_count(p) - 1;
 	if (ps->action == me_swapcache_dirty && result == DELAYED)
@@ -871,6 +870,7 @@ static int page_action(struct page_state *ps, struct page *p,
 		       pfn, ps->msg, count);
 		result = FAILED;
 	}
+	action_result(pfn, ps->msg, result);
 
 	/* Could do more checks here if page looks ok */
 	/*
-- 
2.0.0.rc2

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less list
  2014-07-28  6:50 ` [PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less list Chen, Gong
@ 2014-07-28 14:48   ` Naoya Horiguchi
  0 siblings, 0 replies; 8+ messages in thread
From: Naoya Horiguchi @ 2014-07-28 14:48 UTC (permalink / raw)
  To: Chen, Gong; +Cc: tony.luck, bp, linux-acpi, linux-mm

On Mon, Jul 28, 2014 at 02:50:59AM -0400, Chen, Gong wrote:
> We have provided a reverse function for lock-less list so delete
> uncessary codes.
> 
> Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
> Acked-by: Borislav Petkov <bp@suse.de>

Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>

> ---
>  drivers/acpi/apei/ghes.c | 18 ++----------------
>  1 file changed, 2 insertions(+), 16 deletions(-)
> 
> diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
> index dab7cb7..1f9fba9 100644
> --- a/drivers/acpi/apei/ghes.c
> +++ b/drivers/acpi/apei/ghes.c
> @@ -734,20 +734,6 @@ static int ghes_notify_sci(struct notifier_block *this,
>  	return ret;
>  }
>  
> -static struct llist_node *llist_nodes_reverse(struct llist_node *llnode)
> -{
> -	struct llist_node *next, *tail = NULL;
> -
> -	while (llnode) {
> -		next = llnode->next;
> -		llnode->next = tail;
> -		tail = llnode;
> -		llnode = next;
> -	}
> -
> -	return tail;
> -}
> -
>  static void ghes_proc_in_irq(struct irq_work *irq_work)
>  {
>  	struct llist_node *llnode, *next;
> @@ -761,7 +747,7 @@ static void ghes_proc_in_irq(struct irq_work *irq_work)
>  	 * Because the time order of estatus in list is reversed,
>  	 * revert it back to proper order.
>  	 */
> -	llnode = llist_nodes_reverse(llnode);
> +	llnode = llist_reverse_order(llnode);
>  	while (llnode) {
>  		next = llnode->next;
>  		estatus_node = llist_entry(llnode, struct ghes_estatus_node,
> @@ -794,7 +780,7 @@ static void ghes_print_queued_estatus(void)
>  	 * Because the time order of estatus in list is reversed,
>  	 * revert it back to proper order.
>  	 */
> -	llnode = llist_nodes_reverse(llnode);
> +	llnode = llist_reverse_order(llnode);
>  	while (llnode) {
>  		estatus_node = llist_entry(llnode, struct ghes_estatus_node,
>  					   llnode);
> -- 
> 2.0.0.rc2
> 
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org.  For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
> 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: two minor update patches for RAS
  2014-07-28  6:50 ` Chen, Gong
@ 2014-07-29 17:29   ` Tony Luck
  -1 siblings, 0 replies; 8+ messages in thread
From: Tony Luck @ 2014-07-29 17:29 UTC (permalink / raw)
  To: Chen, Gong; +Cc: Naoya Horiguchi, Borislav Petkov, linux-acpi, linux-mm

On Sun, Jul 27, 2014 at 11:50 PM, Chen, Gong <gong.chen@linux.intel.com> wrote:
> [PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less
> [PATCH 2/2] RAS, HWPOISON: Fix wrong error recovery status

both parts:

Acked-by: Tony Luck <tony.luck@intel.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: two minor update patches for RAS
@ 2014-07-29 17:29   ` Tony Luck
  0 siblings, 0 replies; 8+ messages in thread
From: Tony Luck @ 2014-07-29 17:29 UTC (permalink / raw)
  To: Chen, Gong; +Cc: Naoya Horiguchi, Borislav Petkov, linux-acpi, linux-mm

On Sun, Jul 27, 2014 at 11:50 PM, Chen, Gong <gong.chen@linux.intel.com> wrote:
> [PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less
> [PATCH 2/2] RAS, HWPOISON: Fix wrong error recovery status

both parts:

Acked-by: Tony Luck <tony.luck@intel.com>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-29 17:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-28  6:50 two minor update patches for RAS Chen, Gong
2014-07-28  6:50 ` Chen, Gong
2014-07-28  6:50 ` [PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less list Chen, Gong
2014-07-28 14:48   ` Naoya Horiguchi
2014-07-28  6:51 ` [PATCH 2/2] RAS, HWPOISON: Fix wrong error recovery status Chen, Gong
2014-07-28  6:51   ` Chen, Gong
2014-07-29 17:29 ` two minor update patches for RAS Tony Luck
2014-07-29 17:29   ` Tony Luck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.