All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gavin Shan <gwshan@linux.vnet.ibm.com>
To: linuxppc-dev@lists.ozlabs.org
Cc: bhelgaas@google.com, mpe@ellerman.id.au,
	Gavin Shan <gwshan@linux.vnet.ibm.com>
Subject: [PATCH v3 1/6] powerpc/eeh: Allow to freeze PE in eeh_pe_set_option()
Date: Wed, 28 Sep 2016 14:34:53 +1000	[thread overview]
Message-ID: <1475037298-19188-2-git-send-email-gwshan@linux.vnet.ibm.com> (raw)
In-Reply-To: <1475037298-19188-1-git-send-email-gwshan@linux.vnet.ibm.com>

Function eeh_pe_set_option() is used to apply the requested options
(enable, disable, unfreeze) in EEH virtualization path. The semantics
of this function isn't complete until freezing is supported.

This allows to freeze the indicated PE. The new semantics is going to
be used in PCI surprise hot remove path, to freeze removed PCI devices
(PE) to avoid unexpected EEH error reporting.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
---
 arch/powerpc/kernel/eeh.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
index 7429556..0699f15 100644
--- a/arch/powerpc/kernel/eeh.c
+++ b/arch/powerpc/kernel/eeh.c
@@ -1502,6 +1502,7 @@ int eeh_pe_set_option(struct eeh_pe *pe, int option)
 		break;
 	case EEH_OPT_THAW_MMIO:
 	case EEH_OPT_THAW_DMA:
+	case EEH_OPT_FREEZE_PE:
 		if (!eeh_ops || !eeh_ops->set_option) {
 			ret = -ENOENT;
 			break;
-- 
2.1.0

  reply	other threads:[~2016-09-28  4:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28  4:34 [PATCH v3 0/6] powerpc/powernv: PCI Surprise Hotplug Support Gavin Shan
2016-09-28  4:34 ` Gavin Shan [this message]
2016-09-29 13:13   ` [v3,1/6] powerpc/eeh: Allow to freeze PE in eeh_pe_set_option() Michael Ellerman
2016-09-28  4:34 ` [PATCH v3 2/6] powerpc/eeh: Export confirm_error_lock Gavin Shan
2016-09-28  4:34 ` [PATCH v3 3/6] powerpc/eeh: Export eeh_pe_state_mark() Gavin Shan
2016-09-28  4:34 ` [PATCH v3 4/6] powerpc/powernv: Unfreeze PE on allocation Gavin Shan
2016-09-28  4:34 ` [PATCH v3 5/6] drivers/pci/hotplug: Remove likely() and unlikely() in powernv driver Gavin Shan
2016-09-28  4:34 ` [PATCH v3 6/6] drivers/pci/hotplug: Support surprise hotplug " Gavin Shan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1475037298-19188-2-git-send-email-gwshan@linux.vnet.ibm.com \
    --to=gwshan@linux.vnet.ibm.com \
    --cc=bhelgaas@google.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mpe@ellerman.id.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.