[Patch V2 12/13] irqchip: Add IMS (Interrupt Message Store) driver

2021-02-26 Thread Megha Dey
Added reads after writes to flush writes to device Added set_desc ops to IMS msi domain ops Tested the IMS infrastructure with the IDXD driver] Reviewed-by: Tony Luck Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- drivers/irqchip/Kconfig | 14

[Patch V2 13/13] genirq/msi: Provide helpers to return Linux IRQ/dev_msi hw IRQ number

2021-02-26 Thread Megha Dey
-by: Dave Jiang Signed-off-by: Megha Dey --- include/linux/msi.h | 2 ++ kernel/irq/msi.c| 44 2 files changed, 46 insertions(+) diff --git a/include/linux/msi.h b/include/linux/msi.h index 24abec0..d60a6ba 100644 --- a/include/linux/msi.h +++ b

[Patch V2 10/13] iommu: Add capability IOMMU_CAP_VIOMMU_HINT

2021-02-26 Thread Megha Dey
outside of the IOMMU subsystem, where it could be used with other known means (CPUID, smbios) to sense whether Linux is running in a virtualized environment. Add a capability bit so that it could be used there. Cc: Joerg Roedel Reviewed-by: Tony Luck Signed-off-by: Lu Baolu Signed-off-by: Megha Dey

[Patch V2 09/13] iommu/vt-d: Add DEV-MSI support

2021-02-26 Thread Megha Dey
-by: Megha Dey --- drivers/iommu/intel/irq_remapping.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/intel/irq_remapping.c b/drivers/iommu/intel/irq_remapping.c index 611ef52..2a55e54 100644 --- a/drivers/iommu/intel/irq_remapping.c +++ b/drivers/iommu/intel

[Patch V2 11/13] platform-msi: Add platform check for subdevice irq domain

2021-02-26 Thread Megha Dey
@nanos.tec.linutronix.de/ Link: https://lore.kernel.org/linux-pci/877dqrnzr3@nanos.tec.linutronix.de/ Link: https://lore.kernel.org/linux-pci/877dqqmc2h@nanos.tec.linutronix.de/ Reviewed-by: Tony Luck Signed-off-by: Lu Baolu Signed-off-by: Megha Dey --- arch/x86/pci/common.c | 72

[Patch V2 08/13] genirq: Set auxiliary data for an interrupt

2021-02-26 Thread Megha Dey
(introduced in a later patch) and that data are not typically present in MSI entry. Reviewed-by: Tony Luck Signed-off-by: Megha Dey --- include/linux/interrupt.h | 2 ++ include/linux/irq.h | 4 kernel/irq/manage.c | 32 3 files changed, 38 insertions

[Patch V2 05/13] genirq/msi: Provide and use msi_domain_set_default_info_flags()

2021-02-26 Thread Megha Dey
From: Thomas Gleixner MSI interrupts have some common flags which should be set not only for PCI/MSI interrupts. Move the PCI/MSI flag setting into a common function so it can be reused. Reviewed-by: Tony Luck Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- drivers/pci/msi.c

[Patch V2 06/13] platform-msi: Add device MSI infrastructure

2021-02-26 Thread Megha Dey
MSI on platform MSI, the better variant is to reimplement platform MSI on top of device MSI. Reviewed-by: Tony Luck Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- drivers/base/platform-msi.c | 131 include/linux/irqdomain.h | 1

[Patch V2 07/13] irqdomain/msi: Provide msi_alloc/free_store() callbacks

2021-02-26 Thread Megha Dey
separate callbacks which operate on struct device. The resulting storage information has to be stored in struct msi_desc so the underlying irq chip implementation can retrieve it for the relevant operations. Reviewed-by: Tony Luck Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- include

[Patch V2 00/13] Introduce dev-msi and interrupt message store

2021-02-26 Thread Megha Dey
iommu: Add capability IOMMU_CAP_VIOMMU_HINT platform-msi: Add platform check for subdevice irq domain Megha Dey (3): genirq: Set auxiliary data for an interrupt iommu/vt-d: Add DEV-MSI support irqchip: Add IMS (Interrupt Message Store) driver Thomas Gleixner (7): x86/irq: Add DEV_MSI allocation t

[Patch V2 04/13] genirq/proc: Take buslock on affinity write

2021-02-26 Thread Megha Dey
-by: Thomas Gleixner Signed-off-by: Megha Dey --- kernel/irq/manage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index dec3f73..85ede4e 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -443,16 +443,16 @@ int

[Patch V2 01/13] x86/irq: Add DEV_MSI allocation type

2021-02-26 Thread Megha Dey
From: Thomas Gleixner For the upcoming device MSI support a new allocation type is required. Reviewed-by: Tony Luck Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- arch/x86/include/asm/hw_irq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/hw_irq.h b

[Patch V2 02/13] x86/msi: Rename and rework pci_msi_prepare() to cover non-PCI MSI

2021-02-26 Thread Megha Dey
. One arch specific function for MSI support is truly enough. Reviewed-by: Tony Luck Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- arch/x86/include/asm/msi.h | 4 +++- arch/x86/kernel/apic/msi.c | 27 --- drivers/pci/controller/pci-hyperv.c

[Patch V2 03/13] platform-msi: Provide default irq_chip:: Ack

2021-02-26 Thread Megha Dey
From: Thomas Gleixner For the upcoming device MSI support it's required to have a default irq_chip::ack implementation (irq_chip_ack_parent) so the drivers do not need to care. Reviewed-by: Tony Luck Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- drivers/base/platform-msi.c | 2

[PATCH 11/12] platform-msi: Add platform check for subdevice irq domain

2021-02-03 Thread Megha Dey
@nanos.tec.linutronix.de/ Link: https://lore.kernel.org/linux-pci/877dqrnzr3@nanos.tec.linutronix.de/ Link: https://lore.kernel.org/linux-pci/877dqqmc2h@nanos.tec.linutronix.de/ Signed-off-by: Lu Baolu Signed-off-by: Megha Dey --- arch/x86/pci/common.c | 74

[PATCH 06/12] platform-msi: Add device MSI infrastructure

2021-02-03 Thread Megha Dey
MSI on platform MSI, the better variant is to reimplement platform MSI on top of device MSI. Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- drivers/base/platform-msi.c | 131 include/linux/irqdomain.h | 1 + include/linux/msi.h

[PATCH 07/12] irqdomain/msi: Provide msi_alloc/free_store() callbacks

2021-02-03 Thread Megha Dey
separate callbacks which operate on struct device. The resulting storage information has to be stored in struct msi_desc so the underlying irq chip implementation can retrieve it for the relevant operations. Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- include/linux/msi.h | 8

[PATCH 05/12] genirq/msi: Provide and use msi_domain_set_default_info_flags()

2021-02-03 Thread Megha Dey
From: Thomas Gleixner MSI interrupts have some common flags which should be set not only for PCI/MSI interrupts. Move the PCI/MSI flag setting into a common function so it can be reused. Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- drivers/pci/msi.c | 7 +-- include

[PATCH 08/12] genirq: Set auxiliary data for an interrupt

2021-02-03 Thread Megha Dey
(introduced in a later patch) and that data are not typically present in MSI entry. Reviewed-by: Tony Luck Signed-off-by: Megha Dey --- include/linux/interrupt.h | 2 ++ include/linux/irq.h | 4 kernel/irq/manage.c | 32 3 files changed, 38 insertions

[PATCH 04/12] genirq/proc: Take buslock on affinity write

2021-02-03 Thread Megha Dey
Signed-off-by: Megha Dey --- kernel/irq/manage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index dec3f73..85ede4e 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -443,16 +443,16 @@ int irq_update_affinity_desc

[PATCH 10/12] iommu: Add capability IOMMU_CAP_VIOMMU_HINT

2021-02-03 Thread Megha Dey
outside of the IOMMU subsystem, where it could be used with other known means (CPUID, smbios) to sense whether Linux is running in a virtualized environment. Add a capability bit so that it could be used there. Signed-off-by: Lu Baolu Signed-off-by: Megha Dey --- drivers/iommu/amd/iommu.c| 2

[PATCH 12/12] irqchip: Add IMS (Interrupt Message Store) driver

2021-02-03 Thread Megha Dey
of IMS_VECTOR_CTRL Added reads after writes to flush writes to device Added set_desc ops to IMS msi domain ops Tested the IMS infrastructure with the IDXD driver] Reviewed-by: Tony Luck Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- drivers/irqchip/Kconfig

[PATCH 09/12] iommu/vt-d: Add DEV-MSI support

2021-02-03 Thread Megha Dey
-by: Megha Dey --- drivers/iommu/intel/irq_remapping.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/intel/irq_remapping.c b/drivers/iommu/intel/irq_remapping.c index 685200a..18f1b53 100644 --- a/drivers/iommu/intel/irq_remapping.c +++ b/drivers/iommu/intel

[PATCH 02/12] x86/msi: Rename and rework pci_msi_prepare() to cover non-PCI MSI

2021-02-03 Thread Megha Dey
. One arch specific function for MSI support is truly enough. Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- arch/x86/include/asm/msi.h | 4 +++- arch/x86/kernel/apic/msi.c | 27 --- drivers/pci/controller/pci-hyperv.c | 2 +- include/linux

[PATCH 01/12] x86/irq: Add DEV_MSI allocation type

2021-02-03 Thread Megha Dey
From: Thomas Gleixner For the upcoming device MSI support a new allocation type is required. Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- arch/x86/include/asm/hw_irq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm

[PATCH 03/12] platform-msi: Provide default irq_chip:: Ack

2021-02-03 Thread Megha Dey
From: Thomas Gleixner For the upcoming device MSI support it's required to have a default irq_chip::ack implementation (irq_chip_ack_parent) so the drivers do not need to care. Signed-off-by: Thomas Gleixner Signed-off-by: Megha Dey --- drivers/base/platform-msi.c | 2 ++ 1 file changed, 2

[PATCH 00/12] Introduce dev-msi and interrupt message store

2021-02-03 Thread Megha Dey
rnel.org/linux-pci/20210106022749.2769057-1-baolu...@linux.intel.com/ Lu Baolu (2): iommu: Add capability IOMMU_CAP_VIOMMU_HINT platform-msi: Add platform check for subdevice irq domain Megha Dey (2): genirq: Set auxiliary data for an interrupt iommu/vt-d: Add DEV-MSI support Thomas Gleixner (8): x8

[RFC V1 4/7] crypto: tcrypt - Add speed test for optimized GHASH computations

2020-12-18 Thread Megha Dey
From: Kyung Min Park Add speed test for optimized GHASH computations with vectorized instructions. Introduce a new test suite to calculate the speed for this algorithm. Signed-off-by: Kyung Min Park Signed-off-by: Megha Dey --- crypto/tcrypt.c | 5 + 1 file changed, 5 insertions(+) diff

[RFC V1 3/7] crypto: ghash - Optimized GHASH computations

2020-12-18 Thread Megha Dey
rk Co-developed-by: Megha Dey Signed-off-by: Megha Dey --- arch/x86/crypto/Makefile |1 + arch/x86/crypto/avx512_vaes_common.S | 1211 ++ arch/x86/crypto/ghash-clmulni-intel_avx512.S | 68 ++ arch/x86/crypto/ghash-clmulni-intel_glue.c

[RFC V1 2/7] crypto: crct10dif - Accelerated CRC T10 DIF with vectorized instruction

2020-12-18 Thread Megha Dey
er/crc/crc16_t10dif_by16_10.asm Co-developed-by: Greg Tucker Signed-off-by: Greg Tucker Co-developed-by: Tomasz Kantecki Signed-off-by: Tomasz Kantecki Signed-off-by: Kyung Min Park Signed-off-by: Megha Dey --- arch/x86/crypto/Makefile | 1 + arch/x86/crypto/crct10dif-avx512-asm_64.S

[RFC V1 7/7] crypto: aesni - AVX512 version of AESNI-GCM using VPCLMULQDQ

2020-12-18 Thread Megha Dey
s inspired by the AES GCM mode optimization published in Intel Optimized IPSEC Cryptographic library. https://github.com/intel/intel-ipsec-mb/blob/master/lib/avx512/gcm_vaes_avx512.asm Co-developed-by: Tomasz Kantecki Signed-off-by: Tomasz Kantecki Signed-off-by: Megha Dey --- arch/x86/crypt

[RFC V1 1/7] x86: Probe assembler capabilities for VAES and VPLCMULQDQ support

2020-12-18 Thread Megha Dey
This is a preparatory patch to introduce the optimized crypto algorithms using AVX512 instructions which would require VAES and VPLCMULQDQ support. Check for VAES and VPCLMULQDQ assembler support using AVX512 registers. Cc: x...@kernel.org Signed-off-by: Megha Dey --- arch/x86

[RFC V1 6/7] crypto: aesni - fix coding style for if/else block

2020-12-18 Thread Megha Dey
The if else block in aesni_init does not follow required coding conventions. If other conditionals are added to the block, it becomes very difficult to parse. Use the correct coding style instead. Signed-off-by: Megha Dey --- arch/x86/crypto/aesni-intel_glue.c | 3 +-- 1 file changed, 1

[RFC V1 5/7] crypto: aesni - AES CTR x86_64 "by16" AVX512 optimization

2020-12-18 Thread Megha Dey
--- This work was inspired by the AES CTR mode optimization published in Intel Optimized IPSEC Cryptographic library. https://github.com/intel/intel-ipsec-mb/blob/master/lib/avx512/cntr_vaes_avx512.asm Co-developed-by: Tomasz Kantecki Signed-off-by: Tomasz Ka

[RFC V1 0/7] Introduce AVX512 optimized crypto algorithms

2020-12-18 Thread Megha Dey
on crypto: ghash - Optimized GHASH computations crypto: tcrypt - Add speed test for optimized GHASH computations Megha Dey (4): x86: Probe assembler capabilities for VAES and VPLCMULQDQ support crypto: aesni - AES CTR x86_64 "by16" AVX512 optimization crypto: aesni - fix coding styl

[RFC V1 0/7] Add support for a new IMS interrupt mechanism

2019-09-12 Thread Megha Dey
and was wondering why IMS is x86 sepcific. Perhaps we can use this thread to discuss further on this. Megha Dey (7): genirq/msi: Differentiate between various MSI based interrupts drivers/base: Introduce callbacks for IMS interrupt domain x86/ims: Add support for a new IMS irq domain irq_remapping

[RFC V1 4/7] irq_remapping: New interfaces to support IMS irqdomain

2019-09-12 Thread Megha Dey
irq_alloc_info *); Cc: Jacob Pan Signed-off-by: Sanjay Kumar Signed-off-by: Megha Dey --- arch/x86/include/asm/irq_remapping.h | 13 + drivers/iommu/intel_irq_remapping.c | 30 ++ drivers/iommu/irq_remapping.c| 9 + drivers/iommu/irq_remapping.h

[RFC V1 3/7] x86/ims: Add support for a new IMS irq domain

2019-09-12 Thread Megha Dey
This patch adds support for the creation of a new IMS irq domain. It creates a new irq_chip associated with the IMS domain and adds the necessary domain operations to it. Cc: Jacob Pan Signed-off-by: Sanjay Kumar Signed-off-by: Megha Dey --- arch/x86/include/asm/msi.h | 4 ++ arch/x86

[RFC V1 5/7] x86/ims: Introduce x86_ims_ops

2019-09-12 Thread Megha Dey
-by: Sanjay Kumar Signed-off-by: Megha Dey --- arch/x86/include/asm/pci.h | 4 arch/x86/include/asm/x86_init.h | 10 ++ arch/x86/kernel/apic/ims.c | 18 ++ arch/x86/kernel/x86_init.c | 23 +++ drivers/base/ims-msi.c | 34

[RFC V1 2/7] drivers/base: Introduce callbacks for IMS interrupt domain

2019-09-12 Thread Megha Dey
of the code is similar to platform-msi.c. TODO: Conclude if ims-msi.c and platform-msi.c can be merged. Cc: Jacob Pan Signed-off-by: Sanjay Kumar Signed-off-by: Megha Dey --- drivers/base/Kconfig | 7 drivers/base/Makefile | 1 + drivers/base/ims-msi.c | 94

[RFC V1 7/7] ims: Add the set_desc callback

2019-09-12 Thread Megha Dey
Add the set_desc callback to the ims domain ops. The set_desc callback is used to find a unique hwirq number from a given domain. Each mdev can have a maximum of 2048 IMS interrupts. Cc: Jacob Pan Signed-off-by: Sanjay Kumar Signed-off-by: Megha Dey --- arch/x86/kernel/apic/ims.c | 7

[RFC V1 1/7] genirq/msi: Differentiate between various MSI based interrupts

2019-09-12 Thread Megha Dey
Since a device can support both MSI-X and IMS interrupts simultaneously, do away with is_msix and introduce a new enum msi_desc_tag to differentiate between the various types of msi_descs. Signed-off-by: Megha Dey --- arch/mips/pci/msi-xlp.c| 2 +- arch/s390/pci/pci_irq.c| 2 +- arch

[RFC V1 6/7] ims-msi: Add APIs to allocate/free IMS interrupts

2019-09-12 Thread Megha Dey
This patch introduces APIs to allocate and free IMS interrupts. Cc: Jacob Pan Signed-off-by: Sanjay Kumar Signed-off-by: Megha Dey --- drivers/base/ims-msi.c | 216 + include/linux/msi.h| 2 + 2 files changed, 218 insertions(+) diff --git

Re: [RFC V1 RESEND 5/6] PCI/MSI: Free MSI-X resources by group

2019-08-12 Thread Megha Dey
On Sun, 2019-08-11 at 09:18 +0200, Thomas Gleixner wrote: > On Tue, 6 Aug 2019, Megha Dey wrote: > > > > > On Sat, 2019-06-29 at 10:08 +0200, Thomas Gleixner wrote: > > > > > > Megha, > > > > > > On Fri, 21 Jun 2019, Megha Dey wrote: &

Re: [RFC V1 RESEND 2/6] PCI/MSI: Dynamic allocation of MSI-X vectors by group

2019-08-12 Thread Megha Dey
On Sun, 2019-08-11 at 09:20 +0200, Thomas Gleixner wrote: > On Wed, 7 Aug 2019, Marc Zyngier wrote: > > > > On 07/08/2019 14:56, Thomas Gleixner wrote: > > > > > > On Tue, 6 Aug 2019, Megha Dey wrote: > > > > > > > >

Re: [RFC V1 RESEND 2/6] PCI/MSI: Dynamic allocation of MSI-X vectors by group

2019-08-12 Thread Megha Dey
On Wed, 2019-08-07 at 15:18 +0100, Marc Zyngier wrote: > On 07/08/2019 14:56, Thomas Gleixner wrote: > > > > Megha, > > > > On Tue, 6 Aug 2019, Megha Dey wrote: > > > > > > On Sat, 2019-06-29 at 09:59 +0200, Thomas Gleixner wrote: > >

Re: [RFC V1 RESEND 2/6] PCI/MSI: Dynamic allocation of MSI-X vectors by group

2019-08-12 Thread Megha Dey
On Wed, 2019-08-07 at 15:56 +0200, Thomas Gleixner wrote: > Megha, > > On Tue, 6 Aug 2019, Megha Dey wrote: > > > > On Sat, 2019-06-29 at 09:59 +0200, Thomas Gleixner wrote: > > > > > > On Fri, 21 Jun 2019, Megha Dey wrote: > > Totally agreed. The

Re: [RFC V1 RESEND 0/6] Introduce dynamic allocation/freeing of MSI-X vectors

2019-08-06 Thread Megha Dey
On Thu, 2019-08-01 at 19:24 -0500, Bjorn Helgaas wrote: > Hi Megha, > > On Fri, Jun 21, 2019 at 05:19:32PM -0700, Megha Dey wrote: > > > > Currently, MSI-X vector enabling and allocation for a PCIe device > > is > > static i.e. a device driver gets only on

Re: [RFC V1 RESEND 5/6] PCI/MSI: Free MSI-X resources by group

2019-08-06 Thread Megha Dey
On Sat, 2019-06-29 at 10:08 +0200, Thomas Gleixner wrote: > Megha, > > On Fri, 21 Jun 2019, Megha Dey wrote: > > > > +static int free_msi_irqs_grp(struct pci_dev *dev, int group_id) > > +{ > > > > + > > + for_each_pci_msi_entry(entry, dev) { &g

Re: [RFC V1 RESEND 3/6] x86: Introduce the dynamic teardown function

2019-08-06 Thread Megha Dey
On Sat, 2019-06-29 at 10:01 +0200, Thomas Gleixner wrote: > Megha, > > On Fri, 21 Jun 2019, Megha Dey wrote: > > > >   > > +void default_teardown_msi_irqs_grp(struct pci_dev *dev, int > > group_id) > > +{ > > + int i; > > + struct msi_desc

Re: [RFC V1 RESEND 2/6] PCI/MSI: Dynamic allocation of MSI-X vectors by group

2019-08-06 Thread Megha Dey
On Sat, 2019-06-29 at 09:59 +0200, Thomas Gleixner wrote: > Megha, > > On Fri, 21 Jun 2019, Megha Dey wrote: > > > > > Currently, MSI-X vector enabling and allocation for a PCIe device > > is > > static i.e. a device driver gets only one chance to enabl

[RFC V1 RESEND 1/6] PCI/MSI: New structures/macros for dynamic MSI-X allocation

2019-06-21 Thread Megha Dey
This is a preparatory patch to introduce the dynamic allocation of MSI-X vectors. In this patch, we add new structure members and macros which will be consumed by the API that will dynamically allocate MSI-X vectors. Cc: Jacob Pan Cc: Ashok Raj Signed-off-by: Megha Dey --- include/linux

[RFC V1 RESEND 3/6] x86: Introduce the dynamic teardown function

2019-06-21 Thread Megha Dey
This is a preparatory patch to introduce disabling of MSI-X vectors belonging to a particular group. In this patch, we introduce a x86 specific mechanism to teardown the IRQ vectors belonging to a particular group. Cc: Jacob Pan Cc: Ashok Raj Signed-off-by: Megha Dey --- arch/x86/include/asm

[RFC V1 RESEND 4/6] PCI/MSI: Introduce new structure to manage MSI-x entries

2019-06-21 Thread Megha Dey
-off-by: Megha Dey --- drivers/pci/msi.c | 12 +++- drivers/pci/probe.c | 1 + include/linux/pci.h | 9 + 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index fd7fa6e..e947243 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci

[RFC V1 RESEND 6/6] Documentation: PCI/MSI: Document dynamic MSI-X infrastructure

2019-06-21 Thread Megha Dey
Add Documentation for the newly introduced dynamic allocation and deallocation of MSI-X vectors. Cc: Jacob Pan Cc: Ashok Raj Signed-off-by: Megha Dey --- Documentation/PCI/MSI-HOWTO.txt | 38 ++ 1 file changed, 38 insertions(+) diff --git a/Documentation

[RFC V1 RESEND 5/6] PCI/MSI: Free MSI-X resources by group

2019-06-21 Thread Megha Dey
group, which can be called even if the device is not being shut down. The pci_free_irq_vectors_grp() function provides this type of interface. The existing pci_free_irq_vectors() can be called along side this API. Cc: Jacob Pan Cc: Ashok Raj Signed-off-by: Megha Dey --- drivers/pci/msi.c

[RFC V1 RESEND 2/6] PCI/MSI: Dynamic allocation of MSI-X vectors by group

2019-06-21 Thread Megha Dey
number associated with any vector in a group, a new API pci_irq_vector_group() has been introduced. Cc: Jacob Pan Cc: Ashok Raj Signed-off-by: Megha Dey --- drivers/pci/msi.c | 203 +--- drivers/pci/probe.c | 8 +++ include/linux/pci.h | 37

[RFC V1 RESEND 0/6] Introduce dynamic allocation/freeing of MSI-X vectors

2019-06-21 Thread Megha Dey
are based out of Linux 5.2-rc5. Megha Dey (6): PCI/MSI: New structures/macros for dynamic MSI-X allocation PCI/MSI: Dynamic allocation of MSI-X vectors by group x86: Introduce the dynamic teardown function PCI/MSI: Introduce new structure to manage MSI-x entries PCI/MSI: Free MSI-X resources

[RFC] crypto: Remove mcryptd

2018-05-11 Thread Megha Dey
. Instead everything runs in a single thread of execution. You had suggested that the SIMD wrapper will defer the job to the Kthread context, but I am not sure that will be done. Please let me know what you think. Signed-off-by: Megha Dey <megha@linux.intel.com> --- arch/x86/crypto/s

[RFC] crypto: Remove mcryptd

2018-05-11 Thread Megha Dey
. Instead everything runs in a single thread of execution. You had suggested that the SIMD wrapper will defer the job to the Kthread context, but I am not sure that will be done. Please let me know what you think. Signed-off-by: Megha Dey --- arch/x86/crypto/sha1-mb/sha1_mb.c | 312

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2018-04-04 Thread Megha Dey
On Wed, 2017-12-20 at 13:23 -0800, Megha Dey wrote: > On Wed, 2017-12-13 at 08:21 +0100, Peter Zijlstra wrote: > > On Tue, Dec 12, 2017 at 03:08:00PM -0800, Megha Dey wrote: > > > > > > > > There's work on the way to allow multiple HW PMUs. You'll either have

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2018-04-04 Thread Megha Dey
On Wed, 2017-12-20 at 13:23 -0800, Megha Dey wrote: > On Wed, 2017-12-13 at 08:21 +0100, Peter Zijlstra wrote: > > On Tue, Dec 12, 2017 at 03:08:00PM -0800, Megha Dey wrote: > > > > > > > > There's work on the way to allow multiple HW PMUs. You'll either have

Re: [PATCH V8 1/5] crypto: Multi-buffer encryption infrastructure support

2018-01-18 Thread Megha Dey
On Thu, 2018-01-18 at 22:39 +1100, Herbert Xu wrote: > On Tue, Jan 09, 2018 at 04:09:04PM -0800, Megha Dey wrote: > > > > +static void mcryptd_skcipher_encrypt(struct crypto_async_request *base, > > + int err)

Re: [PATCH V8 1/5] crypto: Multi-buffer encryption infrastructure support

2018-01-18 Thread Megha Dey
On Thu, 2018-01-18 at 22:39 +1100, Herbert Xu wrote: > On Tue, Jan 09, 2018 at 04:09:04PM -0800, Megha Dey wrote: > > > > +static void mcryptd_skcipher_encrypt(struct crypto_async_request *base, > > + int err)

[PATCH V8 1/5] crypto: Multi-buffer encryption infrastructure support

2018-01-09 Thread Megha Dey
multi-buffer encryption build support. For an introduction to the multi-buffer implementation, please see http://www.intel.com/content/www/us/en/communications/communications-ia-multi-buffer-paper.html Originally-by: Chandramouli Narayanan <mouli_7...@yahoo.com> Signed-off-by: Megha Dey

[PATCH V8 1/5] crypto: Multi-buffer encryption infrastructure support

2018-01-09 Thread Megha Dey
multi-buffer encryption build support. For an introduction to the multi-buffer implementation, please see http://www.intel.com/content/www/us/en/communications/communications-ia-multi-buffer-paper.html Originally-by: Chandramouli Narayanan Signed-off-by: Megha Dey Acked-by: Tim Chen --- crypto

[PATCH V8 4/5] crypto: AES CBC by8 encryption

2018-01-09 Thread Megha Dey
This patch introduces the assembly routine to do a by8 AES CBC encryption in support of the AES CBC multi-buffer implementation. It encrypts 8 data streams of the same key size simultaneously. Originally-by: Chandramouli Narayanan <mouli_7...@yahoo.com> Signed-off-by: Megha Dey

[PATCH V8 3/5] crypto: AES CBC multi-buffer scheduler

2018-01-09 Thread Megha Dey
completed state. Originally-by: Chandramouli Narayanan <mouli_7...@yahoo.com> Signed-off-by: Megha Dey <megha@linux.intel.com> Acked-by: Tim Chen <tim.c.c...@linux.intel.com> --- arch/x86/crypto/aes-cbc-mb/aes_mb_mgr_init.c | 146 arch/x86/crypto/aes-cbc-mb/m

[PATCH V8 5/5] crypto: AES CBC multi-buffer glue code

2018-01-09 Thread Megha Dey
-by: Chandramouli Narayanan <mouli_7...@yahoo.com> Signed-off-by: Megha Dey <megha@linux.intel.com> Acked-by: Tim Chen <tim.c.c...@linux.intel.com> --- arch/x86/crypto/Makefile| 1 + arch/x86/crypto/aes-cbc-mb/Makefile | 22 + arch/x86/crypto/aes-cbc-mb/

[PATCH V8 4/5] crypto: AES CBC by8 encryption

2018-01-09 Thread Megha Dey
This patch introduces the assembly routine to do a by8 AES CBC encryption in support of the AES CBC multi-buffer implementation. It encrypts 8 data streams of the same key size simultaneously. Originally-by: Chandramouli Narayanan Signed-off-by: Megha Dey Acked-by: Tim Chen --- arch/x86

[PATCH V8 3/5] crypto: AES CBC multi-buffer scheduler

2018-01-09 Thread Megha Dey
completed state. Originally-by: Chandramouli Narayanan Signed-off-by: Megha Dey Acked-by: Tim Chen --- arch/x86/crypto/aes-cbc-mb/aes_mb_mgr_init.c | 146 arch/x86/crypto/aes-cbc-mb/mb_mgr_inorder_x8_asm.S | 223 +++ arch/x86/crypto/aes-cbc-mb/mb_mgr_ooo_x8_asm.S

[PATCH V8 5/5] crypto: AES CBC multi-buffer glue code

2018-01-09 Thread Megha Dey
-by: Chandramouli Narayanan Signed-off-by: Megha Dey Acked-by: Tim Chen --- arch/x86/crypto/Makefile| 1 + arch/x86/crypto/aes-cbc-mb/Makefile | 22 + arch/x86/crypto/aes-cbc-mb/aes_cbc_mb.c | 698 3 files changed, 721 insertions(+) create mode 100644

[PATCH V8 2/5] crypto: AES CBC multi-buffer data structures

2018-01-09 Thread Megha Dey
<mouli_7...@yahoo.com> Signed-off-by: Megha Dey <megha@linux.intel.com> Acked-by: Tim Chen <tim.c.c...@linux.intel.com> --- arch/x86/crypto/aes-cbc-mb/aes_cbc_mb_ctx.h| 97 + arch/x86/crypto/aes-cbc-mb/aes_cbc_mb_mgr.h| 132 arch/x86

[PATCH V8 2/5] crypto: AES CBC multi-buffer data structures

2018-01-09 Thread Megha Dey
Signed-off-by: Megha Dey Acked-by: Tim Chen --- arch/x86/crypto/aes-cbc-mb/aes_cbc_mb_ctx.h| 97 + arch/x86/crypto/aes-cbc-mb/aes_cbc_mb_mgr.h| 132 arch/x86/crypto/aes-cbc-mb/mb_mgr_datastruct.S | 271 + arch/x86/crypto/aes-cbc-mb/reg_sizes.S

[PATCH V8 0/5] crypto: AES CBC multibuffer implementation

2018-01-09 Thread Megha Dey
ablkcipher_walk helpers to walk the scatter gather list and eliminated needs to modify blkcipher_walk for multibuffer cipher v2 1. Update cpu feature check to make sure SSE is supported 2. Fix up unloading of aes-cbc-mb module to properly free memory Megha Dey (5): crypto: Multi-buffer encryption

[PATCH V8 0/5] crypto: AES CBC multibuffer implementation

2018-01-09 Thread Megha Dey
ablkcipher_walk helpers to walk the scatter gather list and eliminated needs to modify blkcipher_walk for multibuffer cipher v2 1. Update cpu feature check to make sure SSE is supported 2. Fix up unloading of aes-cbc-mb module to properly free memory Megha Dey (5): crypto: Multi-buffer encryption

Re: [PATCH V7 5/7] crypto: AES CBC multi-buffer glue code

2018-01-09 Thread Megha Dey
On Thu, 2017-08-03 at 13:27 +0800, Herbert Xu wrote: > On Tue, Jul 25, 2017 at 07:09:58PM -0700, Megha Dey wrote: > > > > +/* notify the caller of progress ; request still stays in queue */ > > + > > +static void notify_callback(struct mcryptd

Re: [PATCH V7 5/7] crypto: AES CBC multi-buffer glue code

2018-01-09 Thread Megha Dey
On Thu, 2017-08-03 at 13:27 +0800, Herbert Xu wrote: > On Tue, Jul 25, 2017 at 07:09:58PM -0700, Megha Dey wrote: > > > > +/* notify the caller of progress ; request still stays in queue */ > > + > > +static void notify_callback(struct mcryptd

[PATCH V1] perf tools: Get correct max value of format attribute

2017-12-20 Thread Megha Dey
set to 0xff00 instead of 0xff. This patch fixes the pmu_format_max_value() function to return the correct maximum value. Acked-by: Jiri Olsa <jo...@kernel.org> Signed-off-by: Megha Dey <megha@linux.intel.com> --- tools/perf/util/pmu.c | 8 +--- 1 file changed, 1 insertion(

[PATCH V1] perf tools: Get correct max value of format attribute

2017-12-20 Thread Megha Dey
set to 0xff00 instead of 0xff. This patch fixes the pmu_format_max_value() function to return the correct maximum value. Acked-by: Jiri Olsa Signed-off-by: Megha Dey --- tools/perf/util/pmu.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tools/perf/util/pmu.c b/to

[PATCH] perf-tool: get correct format attribute value

2017-12-20 Thread Megha Dey
!= 0x80004145) + if (attr.config1 != 0x8000a145) break; if (attr.config2 != 0x040020041d07) break; Signed-off-by: Megha Dey <megha@linux.intel.com> --- tools/perf/util/pmu.c | 2 ++ 1 file changed, 2 insertions(+) diff -

[PATCH] perf-tool: get correct format attribute value

2017-12-20 Thread Megha Dey
!= 0x80004145) + if (attr.config1 != 0x8000a145) break; if (attr.config2 != 0x040020041d07) break; Signed-off-by: Megha Dey --- tools/perf/util/pmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/pmu.c b

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-12-20 Thread Megha Dey
On Wed, 2017-12-13 at 08:21 +0100, Peter Zijlstra wrote: > On Tue, Dec 12, 2017 at 03:08:00PM -0800, Megha Dey wrote: > > > > > > There's work on the way to allow multiple HW PMUs. You'll either have to > > > wait for that or help in making that happen. What you do

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-12-20 Thread Megha Dey
On Wed, 2017-12-13 at 08:21 +0100, Peter Zijlstra wrote: > On Tue, Dec 12, 2017 at 03:08:00PM -0800, Megha Dey wrote: > > > > > > There's work on the way to allow multiple HW PMUs. You'll either have to > > > wait for that or help in making that happen. What you do

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-12-12 Thread Megha Dey
On Tue, 2017-12-12 at 23:32 +0100, Peter Zijlstra wrote: > On Tue, Dec 12, 2017 at 01:10:57PM -0800, Megha Dey wrote: > > On Mon, 2017-11-20 at 12:57 +0100, Peter Zijlstra wrote: > > > On Fri, Nov 17, 2017 at 05:54:05PM -0800, Megha Dey wrote: > > > > +

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-12-12 Thread Megha Dey
On Tue, 2017-12-12 at 23:32 +0100, Peter Zijlstra wrote: > On Tue, Dec 12, 2017 at 01:10:57PM -0800, Megha Dey wrote: > > On Mon, 2017-11-20 at 12:57 +0100, Peter Zijlstra wrote: > > > On Fri, Nov 17, 2017 at 05:54:05PM -0800, Megha Dey wrote: > > > > +

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-12-12 Thread Megha Dey
On Mon, 2017-11-20 at 12:57 +0100, Peter Zijlstra wrote: > On Fri, Nov 17, 2017 at 05:54:05PM -0800, Megha Dey wrote: > > + mutex_lock(_counter_mutex); > > + for (i = 0; i < BM_MAX_COUNTERS; i++) { > > + if (bm_counter_owner[i] == NULL) { > > +

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-12-12 Thread Megha Dey
On Mon, 2017-11-20 at 12:57 +0100, Peter Zijlstra wrote: > On Fri, Nov 17, 2017 at 05:54:05PM -0800, Megha Dey wrote: > > + mutex_lock(_counter_mutex); > > + for (i = 0; i < BM_MAX_COUNTERS; i++) { > > + if (bm_counter_owner[i] == NULL) { > > +

Re: [PATCH V2 3/3] x86, bm: Add documentation on Intel Branch Monitoring

2017-12-12 Thread Megha Dey
On Mon, 2017-11-20 at 15:07 +0100, Jiri Olsa wrote: > On Fri, Nov 17, 2017 at 05:54:06PM -0800, Megha Dey wrote: > > SNIP > > > +IV. User-configurable inputs > > + > > + > > +Several sysfs entries are provided in /sys/devices/

Re: [PATCH V2 3/3] x86, bm: Add documentation on Intel Branch Monitoring

2017-12-12 Thread Megha Dey
On Mon, 2017-11-20 at 15:07 +0100, Jiri Olsa wrote: > On Fri, Nov 17, 2017 at 05:54:06PM -0800, Megha Dey wrote: > > SNIP > > > +IV. User-configurable inputs > > + > > + > > +Several sysfs entries are provided in /sys/devices/

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-12-12 Thread Megha Dey
On Mon, 2017-11-20 at 15:10 +0100, Jiri Olsa wrote: > On Fri, Nov 17, 2017 at 05:54:05PM -0800, Megha Dey wrote: > > SNIP > > > +/* Branch Monitoring default and mask values */ > > +#define BM_MAX_WINDOW_SIZE 0x3ff > > +#define BM_MAX_THRESHOLD 0

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-12-12 Thread Megha Dey
On Mon, 2017-11-20 at 15:10 +0100, Jiri Olsa wrote: > On Fri, Nov 17, 2017 at 05:54:05PM -0800, Megha Dey wrote: > > SNIP > > > +/* Branch Monitoring default and mask values */ > > +#define BM_MAX_WINDOW_SIZE 0x3ff > > +#define BM_MAX_THRESHOLD 0

[PATCH V2 3/3] x86, bm: Add documentation on Intel Branch Monitoring

2017-11-17 Thread Megha Dey
This patch adds the Documentation/x86/intel_bm.txt file with some information about Intel Branch monitoring. Signed-off-by: Megha Dey <megha@linux.intel.com> --- Documentation/x86/intel_bm.txt | 216 + 1 file changed, 216 insertions(+) creat

[PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-11-17 Thread Megha Dey
branch monitoring interrupts occurred during the execution of the user-space application. Signed-off-by: Yu-Cheng Yu <yu-cheng...@intel.com> Signed-off-by: Megha Dey <megha@linux.intel.com> --- arch/x86/events/Kconfig | 10 + arch/x86/events/intel/Makefile | 2 + arch/x86

[PATCH V2 3/3] x86, bm: Add documentation on Intel Branch Monitoring

2017-11-17 Thread Megha Dey
This patch adds the Documentation/x86/intel_bm.txt file with some information about Intel Branch monitoring. Signed-off-by: Megha Dey --- Documentation/x86/intel_bm.txt | 216 + 1 file changed, 216 insertions(+) create mode 100644 Documentation/x86

[PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-11-17 Thread Megha Dey
branch monitoring interrupts occurred during the execution of the user-space application. Signed-off-by: Yu-Cheng Yu Signed-off-by: Megha Dey --- arch/x86/events/Kconfig | 10 + arch/x86/events/intel/Makefile | 2 + arch/x86/events/intel/bm.c

[PATCH V2 1/3] x86/cpu/intel: Add Cannonlake to Intel family

2017-11-17 Thread Megha Dey
Add CPUID of Cannonlake (CNL) processors to Intel family list. Signed-off-by: Megha Dey <megha@linux.intel.com> --- arch/x86/include/asm/intel-family.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/intel-family.h b/arch/x86/include/asm/intel-family.h

[PATCH V2 1/3] x86/cpu/intel: Add Cannonlake to Intel family

2017-11-17 Thread Megha Dey
Add CPUID of Cannonlake (CNL) processors to Intel family list. Signed-off-by: Megha Dey --- arch/x86/include/asm/intel-family.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/intel-family.h b/arch/x86/include/asm/intel-family.h index 35a6bc4..056bd41 100644

[PATCH V2 0/3] perf/x86/intel: Add Branch Monitoring support

2017-11-17 Thread Megha Dey
_event' function when used 9. Removed the setting of event->count to 0 in event_init. This is redundant as this is its default value 10. Do not allow threshold to be set as 0 Megha Dey (3): x86/cpu/intel: Add Cannonlake to Intel family perf/x86/intel/bm.c: Add Intel Branch Monitoring supp

[PATCH V2 0/3] perf/x86/intel: Add Branch Monitoring support

2017-11-17 Thread Megha Dey
_event' function when used 9. Removed the setting of event->count to 0 in event_init. This is redundant as this is its default value 10. Do not allow threshold to be set as 0 Megha Dey (3): x86/cpu/intel: Add Cannonlake to Intel family perf/x86/intel/bm.c: Add Intel Branch Monitoring supp

  1   2   3   >