* [PATCH 1/3] pci: add "fundamental reset" quirk [not found] <1389935328-22588-1-git-send-email-aik@ozlabs.ru> @ 2014-01-17 5:08 ` Alexey Kardashevskiy 2014-01-17 5:09 ` Alexey Kardashevskiy 2014-01-17 5:08 ` [PATCH 2/3] PPC: KVM: fix to compile without VFIO Alexey Kardashevskiy 1 sibling, 1 reply; 3+ messages in thread From: Alexey Kardashevskiy @ 2014-01-17 5:08 UTC (permalink / raw) To: linuxppc-dev; +Cc: aik, Paul Mackerras, Thadeu Lima de Souza Cascardo From: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> --- drivers/pci/quirks.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index f6c31fa..f3eedbf 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -3271,6 +3271,19 @@ static int reset_chelsio_generic_dev(struct pci_dev *dev, int probe) return 0; } +static int reset_fundamental(struct pci_dev *dev, int probe) +{ + if (probe) + return 0; + + pci_set_pcie_reset_state(dev, pcie_hot_reset); + msleep(250); + pci_set_pcie_reset_state(dev, pcie_deassert_reset); + msleep(1800); + + return 0; +} + #define PCI_DEVICE_ID_INTEL_82599_SFP_VF 0x10ed #define PCI_DEVICE_ID_INTEL_IVB_M_VGA 0x0156 #define PCI_DEVICE_ID_INTEL_IVB_M2_VGA 0x0166 @@ -3286,6 +3299,14 @@ static const struct pci_dev_reset_methods pci_dev_reset_methods[] = { reset_intel_generic_dev }, { PCI_VENDOR_ID_CHELSIO, PCI_ANY_ID, reset_chelsio_generic_dev }, + + { PCI_VENDOR_ID_IBM, PCI_ANY_ID, + reset_fundamental }, + { PCI_VENDOR_ID_MELLANOX, PCI_ANY_ID, + reset_fundamental }, + { PCI_VENDOR_ID_TI, PCI_ANY_ID, + reset_fundamental }, + { 0 } }; -- 1.8.4.rc4 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/3] pci: add "fundamental reset" quirk 2014-01-17 5:08 ` [PATCH 1/3] pci: add "fundamental reset" quirk Alexey Kardashevskiy @ 2014-01-17 5:09 ` Alexey Kardashevskiy 0 siblings, 0 replies; 3+ messages in thread From: Alexey Kardashevskiy @ 2014-01-17 5:09 UTC (permalink / raw) To: linuxppc-dev; +Cc: aik, Paul Mackerras, Thadeu Lima de Souza Cascardo Rats. Please ignore this patchset. On 01/17/2014 04:08 PM, Alexey Kardashevskiy wrote: > From: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> > > Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> > --- > drivers/pci/quirks.c | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index f6c31fa..f3eedbf 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -3271,6 +3271,19 @@ static int reset_chelsio_generic_dev(struct pci_dev *dev, int probe) > return 0; > } > > +static int reset_fundamental(struct pci_dev *dev, int probe) > +{ > + if (probe) > + return 0; > + > + pci_set_pcie_reset_state(dev, pcie_hot_reset); > + msleep(250); > + pci_set_pcie_reset_state(dev, pcie_deassert_reset); > + msleep(1800); > + > + return 0; > +} > + > #define PCI_DEVICE_ID_INTEL_82599_SFP_VF 0x10ed > #define PCI_DEVICE_ID_INTEL_IVB_M_VGA 0x0156 > #define PCI_DEVICE_ID_INTEL_IVB_M2_VGA 0x0166 > @@ -3286,6 +3299,14 @@ static const struct pci_dev_reset_methods pci_dev_reset_methods[] = { > reset_intel_generic_dev }, > { PCI_VENDOR_ID_CHELSIO, PCI_ANY_ID, > reset_chelsio_generic_dev }, > + > + { PCI_VENDOR_ID_IBM, PCI_ANY_ID, > + reset_fundamental }, > + { PCI_VENDOR_ID_MELLANOX, PCI_ANY_ID, > + reset_fundamental }, > + { PCI_VENDOR_ID_TI, PCI_ANY_ID, > + reset_fundamental }, > + > { 0 } > }; > > -- Alexey ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/3] PPC: KVM: fix to compile without VFIO [not found] <1389935328-22588-1-git-send-email-aik@ozlabs.ru> 2014-01-17 5:08 ` [PATCH 1/3] pci: add "fundamental reset" quirk Alexey Kardashevskiy @ 2014-01-17 5:08 ` Alexey Kardashevskiy 1 sibling, 0 replies; 3+ messages in thread From: Alexey Kardashevskiy @ 2014-01-17 5:08 UTC (permalink / raw) To: linuxppc-dev; +Cc: Alexey Kardashevskiy, Paul Mackerras Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> --- arch/powerpc/kvm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig index cb6e84a..88cffb8 100644 --- a/arch/powerpc/kvm/Kconfig +++ b/arch/powerpc/kvm/Kconfig @@ -65,7 +65,7 @@ config KVM_BOOK3S_64 select KVM select SPAPR_TCE_IOMMU if IOMMU_SUPPORT select KVM_BOOK3S_PR_POSSIBLE if !KVM_BOOK3S_HV_POSSIBLE - select KVM_VFIO + select KVM_VFIO if VFIO ---help--- Support running unmodified book3s_64 and book3s_32 guest kernels in virtual machines on book3s_64 host processors. -- 1.8.4.rc4 ^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-17 5:10 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1389935328-22588-1-git-send-email-aik@ozlabs.ru> 2014-01-17 5:08 ` [PATCH 1/3] pci: add "fundamental reset" quirk Alexey Kardashevskiy 2014-01-17 5:09 ` Alexey Kardashevskiy 2014-01-17 5:08 ` [PATCH 2/3] PPC: KVM: fix to compile without VFIO Alexey Kardashevskiy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).