[PATCH v9 09/19] cxl/pci: Factor out interrupt policy check

2025-04-13 Thread Ira Weiny
Dynamic Capacity Devices (DCD) require event interrupts to process memory addition or removal. BIOS may have control over non-DCD event processing. DCD interrupt configuration needs to be separate from memory event interrupt configuration. Factor out event interrupt setting validation

Re: [PATCH v4 0/6] Fix some issues related to an interrupt type in pci_endpoint_test

2025-03-05 Thread Krzysztof Wilczynski
Hello, > This series solves some issues about global "irq_type" that is used for > indicating the current type for users. > > In addition, avoid an unexpected warning that occur due to interrupts > remaining after displaying an error caused by devm_request_irq(). > > Patch 1 includes adding GET_

[PATCH v4 1/6] selftests: pci_endpoint: Add GET_IRQTYPE checks to each interrupt test

2025-02-25 Thread Kunihiko Hayashi
Add GET_IRQTYPE API checks to each interrupt test. And change pci_ep_ioctl() to get the appropriate return value from ioctl(). Suggested-by: Manivannan Sadhasivam Signed-off-by: Kunihiko Hayashi --- .../selftests/pci_endpoint/pci_endpoint_test.c| 11 ++- 1 file changed, 10

[PATCH v4 0/6] Fix some issues related to an interrupt type in pci_endpoint_test

2025-02-25 Thread Kunihiko Hayashi
ot;devm" version of IRQ functions (patch 5/5) Changes since v1: - Divide original patch into two - Add an error message example - Add "pcitest" display example - Add a patch to fix an interrupt remaining issue Kunihiko Hayashi (6): selftests: pci_endpoint: Add GET_IRQTYPE checks

RE: [PATCH v2 4/4] vdpa/octeon_ep: add interrupt handler for virtio crypto device

2024-12-09 Thread Shijith Thotton
>>> Introduced an interrupt handler for the virtio crypto device, as its >>> queue usage differs from that of network devices. While virtio network >>> device receives packets only on even-indexed queues, virtio crypto >>> device utilize all available queues fo

Re: [PATCH v2 4/4] vdpa/octeon_ep: add interrupt handler for virtio crypto device

2024-12-06 Thread Shijith Thotton
>> Introduced an interrupt handler for the virtio crypto device, as its >> queue usage differs from that of network devices. While virtio network >> device receives packets only on even-indexed queues, virtio crypto >> device utilize all available queues for processing data

Re: [PATCH v2 4/4] vdpa/octeon_ep: add interrupt handler for virtio crypto device

2024-12-05 Thread Jason Wang
On Thu, Nov 21, 2024 at 9:43 PM Shijith Thotton wrote: > > Introduced an interrupt handler for the virtio crypto device, as its > queue usage differs from that of network devices. While virtio network > device receives packets only on even-indexed queues, virtio crypto > dev

[PATCH v2 4/4] vdpa/octeon_ep: add interrupt handler for virtio crypto device

2024-11-21 Thread Shijith Thotton
Introduced an interrupt handler for the virtio crypto device, as its queue usage differs from that of network devices. While virtio network device receives packets only on even-indexed queues, virtio crypto device utilize all available queues for processing data. Signed-off-by: Shijith Thotton

[PATCH 4/4] vdpa/octeon_ep: add interrupt handler for virtio crypto device

2024-11-19 Thread Shijith Thotton
Introduced an interrupt handler for the virtio crypto device, as its queue usage differs from that of network devices. While virtio network device receives packets only on even-indexed queues, virtio crypto device utilize all available queues for processing data. Signed-off-by: Shijith Thotton

Re: [PATCH v4 0/2] Use of devname for interrupt descriptions and tracepoint support for smp2p

2024-07-28 Thread Bjorn Andersson
On Tue, 16 Jul 2024 23:08:32 +0530, Sudeepgoud Patil wrote: > This commit enhances the smp2p driver by adding support for using the device > name in interrupt descriptions and introducing tracepoint functionality. > These improvements facilitate more effective debugging of smp2

[PATCH v4 0/2] Use of devname for interrupt descriptions and tracepoint support for smp2p

2024-07-16 Thread Sudeepgoud Patil
This commit enhances the smp2p driver by adding support for using the device name in interrupt descriptions and introducing tracepoint functionality. These improvements facilitate more effective debugging of smp2p-related issues. The devname patch, along with the callback to print the irq chip

[PATCH v4 1/2] soc: qcom: smp2p: Use devname for interrupt descriptions

2024-07-16 Thread Sudeepgoud Patil
From: Chris Lew When using /proc/interrupts to collect statistics on smp2p interrupt counts, it is hard to distinguish the different instances of smp2p from each other. For example to debug a processor boot issue, the ready and handover interrupts are checked for sanity to ensure the firmware

Re: (subset) [PATCH V3 0/2] Use of devname for interrupt descriptions and tracepoint support for smp2p

2024-07-02 Thread Bjorn Andersson
On Thu, 27 Jun 2024 16:18:29 +0530, Sudeepgoud Patil wrote: > This commit enhances the smp2p driver by adding support for using the device > name in interrupt descriptions and introducing tracepoint functionality. > These improvements facilitate more effective debugging of smp2

Re: [PATCH V3 1/2] soc: qcom: smp2p: Use devname for interrupt descriptions

2024-07-02 Thread Dmitry Baryshkov
On Thu, Jun 27, 2024 at 04:18:30PM GMT, Sudeepgoud Patil wrote: > From: Chris Lew > > When using /proc/interrupts to collect statistics on smp2p interrupt > counts, it is hard to distinguish the different instances of smp2p from > each other. For example to debug a processor

Re: [PATCH V3 1/2] soc: qcom: smp2p: Use devname for interrupt descriptions

2024-07-01 Thread Sudeep Patil
On 6/27/2024 4:18 PM, Sudeepgoud Patil wrote: From: Chris Lew When using /proc/interrupts to collect statistics on smp2p interrupt counts, it is hard to distinguish the different instances of smp2p from each other. For example to debug a processor boot issue, the ready and handover

Re: [PATCH V3 1/2] soc: qcom: smp2p: Use devname for interrupt descriptions

2024-06-29 Thread Konrad Dybcio
On 27.06.2024 12:48 PM, Sudeepgoud Patil wrote: > From: Chris Lew > > When using /proc/interrupts to collect statistics on smp2p interrupt > counts, it is hard to distinguish the different instances of smp2p from > each other. For example to debug a processor boot issue, the ready

[PATCH V3 1/2] soc: qcom: smp2p: Use devname for interrupt descriptions

2024-06-27 Thread Sudeepgoud Patil
From: Chris Lew When using /proc/interrupts to collect statistics on smp2p interrupt counts, it is hard to distinguish the different instances of smp2p from each other. For example to debug a processor boot issue, the ready and handover interrupts are checked for sanity to ensure the firmware

[PATCH V3 0/2] Use of devname for interrupt descriptions and tracepoint support for smp2p

2024-06-27 Thread Sudeepgoud Patil
This commit enhances the smp2p driver by adding support for using the device name in interrupt descriptions and introducing tracepoint functionality. These improvements facilitate more effective debugging of smp2p-related issues. The devname patch, along with the callback to print the irq chip

Re: [PATCH V2 1/3] virtio: allow nested disabling of the configure interrupt

2024-06-25 Thread Michael S. Tsirkin
On Tue, Jun 25, 2024 at 04:18:00PM +0800, Jason Wang wrote: > > > > > > > > > > > > > > > > But in conclusion ;) if you don't like my suggestion do something else > > > > but make the APIs make sense, > > > > > > I don't say I don't like it:) > > > > > > Limiting it to virtio-net seems to be the mo

Re: [PATCH V2 1/3] virtio: allow nested disabling of the configure interrupt

2024-06-25 Thread Jason Wang
etween the virtio core and the > > > > > > virtio driver. > > > > > > > > > > > > The counter is not allowed to be increased greater than one, this > > > > > > simplifies the logic where the interrupt could be disabled > >

Re: [PATCH V2 1/3] virtio: allow nested disabling of the configure interrupt

2024-06-25 Thread Michael S. Tsirkin
> > > > config_enabled to be a integer counter. This allows the toggling of > > > > > the config_enable to be synchronized between the virtio core and the > > > > > virtio driver. > > > > > > > > > > The counter is not allowed to be increa

Re: [PATCH V2 1/3] virtio: allow nested disabling of the configure interrupt

2024-06-25 Thread Jason Wang
nable to be synchronized between the virtio core and the > > > > virtio driver. > > > > > > > > The counter is not allowed to be increased greater than one, this > > > > simplifies the logic where the interrupt could be disabled immediately > > >

Re: [PATCH V2 1/3] virtio: allow nested disabling of the configure interrupt

2024-06-25 Thread Michael S. Tsirkin
t; > > The counter is not allowed to be increased greater than one, this > > > simplifies the logic where the interrupt could be disabled immediately > > > without extra synchronization between driver and core. > > > > > > Signed-off-by: Jason Wang > > > ---

Re: [PATCH V2 1/3] virtio: allow nested disabling of the configure interrupt

2024-06-24 Thread Jason Wang
; config_enabled to be a integer counter. This allows the toggling of > > the config_enable to be synchronized between the virtio core and the > > virtio driver. > > > > The counter is not allowed to be increased greater than one, this > > simplifies the logic where t

Re: [PATCH V2 1/3] virtio: allow nested disabling of the configure interrupt

2024-06-24 Thread Michael S. Tsirkin
enable to be synchronized between the virtio core and the > virtio driver. > > The counter is not allowed to be increased greater than one, this > simplifies the logic where the interrupt could be disabled immediately > without extra synchronization between driver and core. >

[PATCH V2 1/3] virtio: allow nested disabling of the configure interrupt

2024-06-23 Thread Jason Wang
counter is not allowed to be increased greater than one, this simplifies the logic where the interrupt could be disabled immediately without extra synchronization between driver and core. Signed-off-by: Jason Wang --- drivers/virtio/virtio.c | 20 +--- include/linux/virtio.h | 2

Re: [PATCH V1] rpmsg: glink: Make glink smem interrupt wakeup capable

2024-06-18 Thread Bjorn Andersson
On Thu, Jun 13, 2024 at 04:05:17PM +0530, Deepak Kumar Singh wrote: > > > On 6/3/2024 3:07 PM, Caleb Connolly wrote: > > Hi Deepak, > > > > On 03/06/2024 09:36, Deepak Kumar Singh wrote: > > > There are certain usecases which require glink interrupt to be

Re: [PATCH V1] rpmsg: glink: Make glink smem interrupt wakeup capable

2024-06-13 Thread Deepak Kumar Singh
On 6/3/2024 3:07 PM, Caleb Connolly wrote: Hi Deepak, On 03/06/2024 09:36, Deepak Kumar Singh wrote: There are certain usecases which require glink interrupt to be wakeup capable. For example if handset is in sleep state and usb charger is plugged in, dsp wakes up and sends glink interrupt

Re: [PATCH V1] rpmsg: glink: Make glink smem interrupt wakeup capable

2024-06-04 Thread Chris Lew
On 6/3/2024 2:37 AM, Caleb Connolly wrote: Hi Deepak, On 03/06/2024 09:36, Deepak Kumar Singh wrote: There are certain usecases which require glink interrupt to be wakeup capable. For example if handset is in sleep state and usb charger is plugged in, dsp wakes up and sends glink interrupt

Re: [PATCH V1] rpmsg: glink: Make glink smem interrupt wakeup capable

2024-06-03 Thread Caleb Connolly
Hi Deepak, On 03/06/2024 09:36, Deepak Kumar Singh wrote: There are certain usecases which require glink interrupt to be wakeup capable. For example if handset is in sleep state and usb charger is plugged in, dsp wakes up and sends glink interrupt to host for glink pmic channel communication

[PATCH V1] rpmsg: glink: Make glink smem interrupt wakeup capable

2024-06-03 Thread Deepak Kumar Singh
There are certain usecases which require glink interrupt to be wakeup capable. For example if handset is in sleep state and usb charger is plugged in, dsp wakes up and sends glink interrupt to host for glink pmic channel communication. Glink is suppose to wakeup host processor completely for

[PATCH] ring-buffer: Add interrupt information to dump of data sub-buffer

2023-12-19 Thread Steven Rostedt
From: "Steven Rostedt (Google)" When the ring buffer timestamp verifier triggers, it dumps the content of the sub-buffer. But currently it only dumps the timestamps and the offset of the data as well as the deltas. It would be even more informative if the event data also showed the

Re: [PATCH v2] ring-buffer: Add interrupt information to dump of data sub-buffer

2023-12-18 Thread Steven Rostedt
On Mon, 18 Dec 2023 17:01:06 -0500 Steven Rostedt wrote: > @@ -3347,7 +3418,8 @@ static void check_buffer(struct ring_buffer_per_cpu > *cpu_buffer, > } > } > if ((full && ts > info->ts) || > - (!full && ts + info->delta != info->ts)) { > + (!full && ts +

[PATCH v2] ring-buffer: Add interrupt information to dump of data sub-buffer

2023-12-18 Thread Steven Rostedt
From: "Steven Rostedt (Google)" When the ring buffer timestamp verifier triggers, it dumps the content of the sub-buffer. But currently it only dumps the timestamps and the offset of the data as well as the deltas. It would be even more informative if the event data also showed the

[PATCH] ring-buffer: Add interrupt information to dump of data sub-buffer

2023-12-18 Thread Steven Rostedt
From: "Steven Rostedt (Google)" When the ring buffer timestamp verifier triggers, it dumps the content of the sub-buffer. But currently it only dumps the timestamps and the offset of the data as well as the deltas. It would be even more informative if the event data also showed the

Re: [PATCH v2] dt-bindings: remoteproc: pru: Add Interrupt property

2023-09-20 Thread Bjorn Andersson
On Mon, 14 Aug 2023 15:21:41 +0530, MD Danish Anwar wrote: > Add interrupts and interrupt-names protperties for PRU and RTU cores. > > Applied, thanks! [1/1] dt-bindings: remoteproc: pru: Add Interrupt property commit: d93f191b95bec3c913978eb18c6297e797915993 Best regards,

[PATCH v2 2/2] dt-bindings: interrupt-controller: Add IDT 79RC3243x Interrupt Controller

2021-04-20 Thread Thomas Bogendoerfer
Document DT bindings for IDT 79RC3243x Interrupt Controller. Signed-off-by: Thomas Bogendoerfer --- .../interrupt-controller/idt,3243x-pic.yaml | 48 +++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/idt,3243x

[PATCH v2 1/2] irqchip: Add support for IDT 79rc3243x interrupt controller

2021-04-20 Thread Thomas Bogendoerfer
IDT 79rc3243x SoCs have rather simple interrupt controllers connected to the MIPS CPU interrupt lines. Each of them has room for up to 32 interrupts. Signed-off-by: Thomas Bogendoerfer --- drivers/irqchip/Kconfig| 5 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq

Re: [PATCH] irqchip: Add support for IDT 79rc3243x interrupt controller

2021-04-20 Thread Thomas Bogendoerfer
On Tue, Apr 20, 2021 at 06:34:59PM +0100, Marc Zyngier wrote: > On 2021-04-20 13:34, Thomas Bogendoerfer wrote: > > IDT 79rc3243x SoCs have rather simple interrupt controllers connected > > to the MIPS CPU interrupt lines. Each of them has room for up to > > 32 interrupts. &

Re: [PATCH] irqchip: Add support for IDT 79rc3243x interrupt controller

2021-04-20 Thread Marc Zyngier
On 2021-04-20 13:34, Thomas Bogendoerfer wrote: IDT 79rc3243x SoCs have rather simple interrupt controllers connected to the MIPS CPU interrupt lines. Each of them has room for up to 32 interrupts. Signed-off-by: Thomas Bogendoerfer Is there a DT binding for this irqchip? The code looks fine

[PATCH] irqchip: Add support for IDT 79rc3243x interrupt controller

2021-04-20 Thread Thomas Bogendoerfer
IDT 79rc3243x SoCs have rather simple interrupt controllers connected to the MIPS CPU interrupt lines. Each of them has room for up to 32 interrupts. Signed-off-by: Thomas Bogendoerfer --- drivers/irqchip/Kconfig| 5 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-20 Thread Wanpeng Li
> >> !vcpu_dy_runnable(vcpu)) > >> continue; > >> - if (READ_ONCE(vcpu->preempted) && > >> yield_to_kernel_mode && > >> - !kvm_arch_vc

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-20 Thread Paolo Bonzini
continue; + if (READ_ONCE(vcpu->preempted) && yield_to_kernel_mode && + !kvm_arch_vcpu_in_kernel(vcpu)) { + /* +* A vCPU running in userspace can get to kernel mode via +

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-20 Thread Wanpeng Li
Christopherson wrote: > >>>> If false positives are a big concern, what about adding another pass to > >>>> the loop > >>>> and only yielding to usermode vCPUs with interrupts in the second full > >>>> pass? > >>>> I.e. g

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-20 Thread Paolo Bonzini
usermode vCPUs with interrupts in the second full pass? I.e. give vCPUs that are already in kernel mode priority, and only yield to handle an interrupt if there are no vCPUs in kernel mode. kvm_arch_dy_runnable() pulls in pv_unhalted, which seems like a good thing. pv_unhalted won't help if y

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-19 Thread Wanpeng Li
> > and only yielding to usermode vCPUs with interrupts in the second full > > > pass? > > > I.e. give vCPUs that are already in kernel mode priority, and only yield > > > to > > > handle an interrupt if there are no vCPUs in kernel mode. > > &g

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-19 Thread Wanpeng Li
> > I.e. give vCPUs that are already in kernel mode priority, and only yield to > > handle an interrupt if there are no vCPUs in kernel mode. > > > > kvm_arch_dy_runnable() pulls in pv_unhalted, which seems like a good thing. > > pv_unhalted won't help if you'

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-19 Thread Paolo Bonzini
interrupt if there are no vCPUs in kernel mode. kvm_arch_dy_runnable() pulls in pv_unhalted, which seems like a good thing. pv_unhalted won't help if you're waiting for a kernel spinlock though, would it? Doing two passes (or looking for a "best" candidate that prefers kernel mod

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-19 Thread Sean Christopherson
arge number > > > of continuous PLE events because the IPI sender causes PLE events > > > repeatedly until the receiver is scheduled while the receiver is not > > > candidate for a boost. > > > > > > This patch boosts the vCPU candidiate in user mod

[PATCH 5.4 64/73] ARM: footbridge: fix PCI interrupt mapping

2021-04-19 Thread Greg Kroah-Hartman
return -1; /* not a valid interrupt. */ diff --git a/arch/arm/mach-footbridge/ebsa285-pci.c b/arch/arm/mach-footbridge/ebsa285-pci.c index 6f28aaa9ca79..c3f280d08fa7 100644 --- a/arch/arm/mach-footbridge/ebsa285-pci.c +++ b/arch/arm/mach-footbridge/ebsa285-pci.c @@ -14,9 +14,9 @@ #include

[PATCH 5.10 088/103] ARM: footbridge: fix PCI interrupt mapping

2021-04-19 Thread Greg Kroah-Hartman
return -1; /* not a valid interrupt. */ diff --git a/arch/arm/mach-footbridge/ebsa285-pci.c b/arch/arm/mach-footbridge/ebsa285-pci.c index 6f28aaa9ca79..c3f280d08fa7 100644 --- a/arch/arm/mach-footbridge/ebsa285-pci.c +++ b/arch/arm/mach-footbridge/ebsa285-pci.c @@ -14,9 +14,9 @@ #include

[PATCH 5.11 106/122] ARM: footbridge: fix PCI interrupt mapping

2021-04-19 Thread Greg Kroah-Hartman
return -1; /* not a valid interrupt. */ diff --git a/arch/arm/mach-footbridge/ebsa285-pci.c b/arch/arm/mach-footbridge/ebsa285-pci.c index 6f28aaa9ca79..c3f280d08fa7 100644 --- a/arch/arm/mach-footbridge/ebsa285-pci.c +++ b/arch/arm/mach-footbridge/ebsa285-pci.c @@ -14,9 +14,9 @@ #include

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-19 Thread Wanpeng Li
tedly until the receiver is scheduled while the receiver is not > > candidate for a boost. > > > > This patch boosts the vCPU candidiate in user mode which is delivery > > interrupt. We can observe the speed of pbzip2 improves 10% in 96 vCPUs > > VM in over-subscribe sc

Re: [PATCH v2 15/15] usb: dwc2: Get rid of useless error checks in suspend interrupt

2021-04-19 Thread Minas Harutyunyan
On 4/16/2021 4:48 PM, Artur Petrosyan wrote: > Squashed from Douglas Anderson's suggested commit > "usb: dwc2: Get rid of useless error checks for > hibernation/partial power down" > > - After this commit there should never be any > case where dwc2_enter_partial_power_down() and > dwc2_enter_hib

Re: [PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-17 Thread Paolo Bonzini
nning in user mode. It can lead to a large number of continuous PLE events because the IPI sender causes PLE events repeatedly until the receiver is scheduled while the receiver is not candidate for a boost. This patch boosts the vCPU candidiate in user mode which is delivery interrupt. We can observ

Re: [PATCH net-next v6] atl1c: move tx cleanup processing out of interrupt

2021-04-16 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Wed, 14 Apr 2021 22:09:20 +0300 you wrote: > Tx queue cleanup happens in interrupt handler on same core as rx queue > processing. Both can take considerable amount of processing in high > packet-per-second

Re: [PATCH 2/3] serial: stm32: fix threaded interrupt handling

2021-04-16 Thread Johan Hovold
very recently neither disabled interrupts > > in the device or used IRQF_ONESHOT. This would lead to a deadlock if an > > interrupt comes in while the threaded receive handler is running under > > the port lock. > > > Greg told me there was a patch fixed this case. In case hard ir

Re: [PATCH 2/3] serial: stm32: fix threaded interrupt handling

2021-04-16 Thread Johan Hovold
doesn't disable interrupt in the device (it just disables all interrupts in the threaded handler). The rest stands as is. > in the device or used IRQF_ONESHOT. This would lead to a deadlock if an > interrupt comes in while the threaded receive handler is running under > the port

[PATCH 2/3] serial: stm32: fix threaded interrupt handling

2021-04-16 Thread Johan Hovold
When DMA is enabled the receive handler runs in a threaded handler, but the primary handler up until very recently neither disabled interrupts in the device or used IRQF_ONESHOT. This would lead to a deadlock if an interrupt comes in while the threaded receive handler is running under the port

[PATCH 1/3] serial: do not restore interrupt state in sysrq helper

2021-04-16 Thread Johan Hovold
The uart_unlock_and_check_sysrq() helper can be used to defer processing of sysrq until the interrupt handler has released the port lock and is about to return. Since commit 81e2073c175b ("genirq: Disable interrupts for force threaded handlers") interrupt handlers that are not

[PATCH v2 15/15] usb: dwc2: Get rid of useless error checks in suspend interrupt

2021-04-16 Thread Artur Petrosyan
Squashed from Douglas Anderson's suggested commit "usb: dwc2: Get rid of useless error checks for hibernation/partial power down" - After this commit there should never be any case where dwc2_enter_partial_power_down() and dwc2_enter_hibernation() are called when 'params.power_down' is not correc

[PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-15 Thread Wanpeng Li
to a large number of continuous PLE events because the IPI sender causes PLE events repeatedly until the receiver is scheduled while the receiver is not candidate for a boost. This patch boosts the vCPU candidiate in user mode which is delivery interrupt. We can observe the speed of pbzip2 improv

[PATCH 4.14 14/68] ARM: dts: turris-omnia: configure LED[2]/INTn pin as interrupt pin

2021-04-15 Thread Greg Kroah-Hartman
From: Marek Behún commit a26c56ae67fa9fbb45a8a232dcd7ebaa7af16086 upstream. Use the `marvell,reg-init` DT property to configure the LED[2]/INTn pin of the Marvell 88E1514 ethernet PHY on Turris Omnia into interrupt mode. Without this the pin is by default in LED[2] mode, and the Marvell PHY

Re: [PATCH 2/2] KVM: x86: Fix split-irqchip vs interrupt injection window request

2021-04-15 Thread Lai Jiangshan
e if (vcpu->arch.interrupt.injected) { > >> static_call(kvm_x86_set_irq)(vcpu); > >> can_inject = false; > > > > And comes here and vcpu->arch.interrupt.injected is true for there is > > an interrupt queued by

Re: [RFC v2 PATCH 7/7] dmaengine: xilinx_dma: Program interrupt delay timeout

2021-04-15 Thread Lars-Peter Clausen
On 4/9/21 7:56 PM, Radhey Shyam Pandey wrote: Program IRQDelay for AXI DMA. The interrupt timeout mechanism causes the DMA engine to generate an interrupt after the delay time period has expired. It enables dmaengine to respond in real-time even though interrupt coalescing is configured. It also

Re: [PATCH 2/2] KVM: x86: Fix split-irqchip vs interrupt injection window request

2021-04-14 Thread Paolo Bonzini
s here and vcpu->arch.interrupt.injected is true for there is an interrupt queued by KVM_INTERRUPT for pure user irqchip. It then does the injection of the interrupt without checking the EFLAGS.IF. Ok, understood now. Yeah, that could be a problem for userspace irqchip so we shoul

[PATCH 15/15] usb: dwc2: Get rid of useless error checks in suspend interrupt

2021-04-14 Thread Artur Petrosyan
Squashed from Douglas Anderson's suggested commit "usb: dwc2: Get rid of useless error checks for hibernation/partial power down" - After this commit there should never be any case where dwc2_enter_partial_power_down() and dwc2_enter_hibernation() are called when 'params.power_down' is not correc

Re: [PATCH 2/2] KVM: x86: Fix split-irqchip vs interrupt injection window request

2021-04-14 Thread Lai Jiangshan
> >>> stash the IRQ when EFLAGS.IF=0, but inject_pending_event() seams to ignore > >>> EFLAGS.IF and queues the IRQ to the guest directly in the first branch > >>> of using "kvm_x86_ops.set_irq(vcpu)". > >> > >> This is only true for pure

[PATCH v4 1/6] i2c: mpc: Interrupt driven transfer

2021-04-14 Thread Chris Packham
The fsl-i2c controller will generate an interrupt after every byte transferred. Make use of this interrupt to drive a state machine which allows the next part of a transfer to happen as soon as the interrupt is received. This is particularly helpful with SMBUS devices like the LM81 which will

Re: [PATCH v10 3/3] PCI: uniphier: Add misc interrupt handler to invoke PME and AER

2021-04-14 Thread Bjorn Helgaas
On Sat, Apr 10, 2021 at 01:22:18AM +0900, Kunihiko Hayashi wrote: > This patch adds misc interrupt handler to detect and invoke PME/AER event. > > In UniPhier PCIe controller, PME/AER signals are assigned to the same > signal as MSI by the internal logic. These signals should be detec

[PATCH net-next v6] atl1c: move tx cleanup processing out of interrupt

2021-04-14 Thread Gatis Peisenieks
Tx queue cleanup happens in interrupt handler on same core as rx queue processing. Both can take considerable amount of processing in high packet-per-second scenarios. Sending big amounts of packets can stall the rx processing which is unfair and also can lead to out-of-memory condition since

Re: [PATCH 2/2] KVM: x86: Fix split-irqchip vs interrupt injection window request

2021-04-14 Thread Paolo Bonzini
directly in the first branch of using "kvm_x86_ops.set_irq(vcpu)". This is only true for pure-userspace irqchip. For split-irqchip, in which case the "place to stash" the interrupt is vcpu->arch.pending_external_vector. For pure-userspace irqchip, KVM_INTERRUPT only ca

Re: [PATCH 2/2] KVM: x86: Fix split-irqchip vs interrupt injection window request

2021-04-13 Thread Lai Jiangshan
ctly in the first branch > > of using "kvm_x86_ops.set_irq(vcpu)". > > This is only true for pure-userspace irqchip. For split-irqchip, in > which case the "place to stash" the interrupt is > vcpu->arch.pending_external_vector. > > For pure-user

Re: [PATCH v3 2/4] i2c: mpc: Interrupt driven transfer

2021-04-13 Thread Chris Packham
On 14/04/21 10:28 am, Chris Packham wrote: > > On 14/04/21 1:52 am, Andy Shevchenko wrote: >> On Tue, Apr 13, 2021 at 8:10 AM Chris Packham >> wrote: >>> The fsl-i2c controller will generate an interrupt after every byte >>> transferred. Make use of this inte

Re: [PATCH v3 2/4] i2c: mpc: Interrupt driven transfer

2021-04-13 Thread Chris Packham
On 14/04/21 1:52 am, Andy Shevchenko wrote: > On Tue, Apr 13, 2021 at 8:10 AM Chris Packham > wrote: >> The fsl-i2c controller will generate an interrupt after every byte >> transferred. Make use of this interrupt to drive a state machine which >> allows the next part of

Re: [PATCH v2 0/3] PRU firmware event/interrupt mapping fixes

2021-04-13 Thread Suman Anna
Hi Bjorn, On 4/7/21 10:56 AM, Suman Anna wrote: > Hi All, > > The following is a minor revised version of the series [1] that includes fixes > for various different issues associated with the PRU firmware event/interrupt > mapping configuration logic. Please see the v1 cover

Re: [RFC v4 net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-13 Thread DENG Qingfang
On Tue, Apr 13, 2021 at 02:52:59PM +0200, Andrew Lunn wrote: > > I guess this is depends whether the most usual case is to have all > > these interrupts being actively in use or not. Most interrupts only > > use a limited portion of their interrupt space at any given time.

Re: [PATCH v3 2/4] i2c: mpc: Interrupt driven transfer

2021-04-13 Thread Andy Shevchenko
On Tue, Apr 13, 2021 at 8:10 AM Chris Packham wrote: > > The fsl-i2c controller will generate an interrupt after every byte > transferred. Make use of this interrupt to drive a state machine which > allows the next part of a transfer to happen as soon as the interrupt is > re

Re: [RFC v4 net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-13 Thread Andrew Lunn
> I guess this is depends whether the most usual case is to have all > these interrupts being actively in use or not. Most interrupts only > use a limited portion of their interrupt space at any given time. > Allocating all interrupts and creating mappings upfront is a waste of >

Re: [PATCH v3 2/4] i2c: mpc: Interrupt driven transfer

2021-04-13 Thread Wolfram Sang
On Tue, Apr 13, 2021 at 05:09:53PM +1200, Chris Packham wrote: > The fsl-i2c controller will generate an interrupt after every byte > transferred. Make use of this interrupt to drive a state machine which > allows the next part of a transfer to happen as soon as the interrupt is > re

Re: [PATCH 2/2] KVM: x86: Fix split-irqchip vs interrupt injection window request

2021-04-13 Thread Paolo Bonzini
e for pure-userspace irqchip. For split-irqchip, in which case the "place to stash" the interrupt is vcpu->arch.pending_external_vector. For pure-userspace irqchip, KVM_INTERRUPT only cares about being able to stash the interrupt in vcpu->arch.interrupt.injected. It is indeed w

Re: [PATCH 2/2] KVM: x86: Fix split-irqchip vs interrupt injection window request

2021-04-13 Thread Paolo Bonzini
On 12/04/21 23:43, Sean Christopherson wrote: where kvm_arch_interrupt_allowed() checks EFLAGS.IF (and an edge case related to nested virtualization). KVM also captures EFLAGS.IF in vcpu->run->if_flag. For whatever reason, QEMU checks both vcpu->run flags before injecting an IRQ, maybe to handle

Re: [PATCH 2/2] KVM: x86: Fix split-irqchip vs interrupt injection window request

2021-04-13 Thread Lai Jiangshan
ge-podge of conditions, hacked together to get something that > > > more or less works. But what is actually needed is much simpler; > > > in both cases the fundamental question is, do we have a place to stash > > > an interrupt if userspace does KVM_INTERRUPT? > > &

Re: [PATCH 03/12] usb: dwc2: Allow entering clock gating from USB_SUSPEND interrupt

2021-04-13 Thread Sergei Shtylyov
On 13.04.2021 10:16, Artur Petrosyan wrote: If core doesn't support hibernation or partial power down power saving options, power can still be saved using clock gating on all the clocks. - Added entering clock gating state from USB_SUSPEND interrupt. Signed-off-by: Artur Petrosyan

Re: [RFC v4 net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-13 Thread Marc Zyngier
rq_create_mapping(priv->irq_domain, p); > > > > > > This seems odd. Why aren't the MDIO IRQs allocated on demand as > > > endpoint attached to this interrupt controller are being probed > > > individually? In general, doing this allocation upfront is

[PATCH v2 05/12] usb: dwc2: Add exit clock gating from session request interrupt

2021-04-13 Thread Artur Petrosyan
Added clock gating exit flow from session request interrupt handler according programming guide. Signed-off-by: Artur Petrosyan --- Changes in v2: - None drivers/usb/dwc2/core_intr.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/usb/dwc2

[PATCH v2 04/12] usb: dwc2: Add exit clock gating from wakeup interrupt

2021-04-13 Thread Artur Petrosyan
Added exit from clock gating mode when wakeup interrupt is detected. To exit from the clock gating in device mode "dwc2_gadget_exit_clock_gating()" function is used with rem_wakeup parameter 0. To exit clock gating in host mode "dwc2_host_exit_clock_gating()" with rem_wakeup

[PATCH v2 03/12] usb: dwc2: Allow entering clock gating from USB_SUSPEND interrupt

2021-04-13 Thread Artur Petrosyan
If core doesn't support hibernation or partial power down power saving options, power can still be saved using clock gating on all the clocks. - Added entering clock gating state from USB_SUSPEND interrupt. Signed-off-by: Artur Petrosyan Acked-by: Minas Harutyunyan --- drivers/usb

[PATCH 04/12] usb: dwc2: Add exit clock gating from wakeup interrupt

2021-04-13 Thread Artur Petrosyan
Added exit from clock gating mode when wakeup interrupt is detected. To exit from the clock gating in device mode "dwc2_gadget_exit_clock_gating()" function is used with rem_wakeup parameter 0. To exit clock gating in host mode "dwc2_host_exit_clock_gating()" with rem_wakeup

[PATCH 03/12] usb: dwc2: Allow entering clock gating from USB_SUSPEND interrupt

2021-04-13 Thread Artur Petrosyan
If core doesn't support hibernation or partial power down power saving options, power can still be saved using clock gating on all the clocks. - Added entering clock gating state from USB_SUSPEND interrupt. Signed-off-by: Artur Petrosyan Acked-by: Minas Harutyunyan --- drivers/usb

[PATCH 05/12] usb: dwc2: Add exit clock gating from session request interrupt

2021-04-13 Thread Artur Petrosyan
Added clock gating exit flow from session request interrupt handler according programming guide. Signed-off-by: Artur Petrosyan --- drivers/usb/dwc2/core_intr.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb

[PATCH RFC v2 0/4] virtio net: spurious interrupt related fixes

2021-04-12 Thread Michael S. Tsirkin
With the implementation of napi-tx in virtio driver, we clean tx descriptors from rx napi handler, for the purpose of reducing tx complete interrupts. But this introduces a race where tx complete interrupt has been raised, but the handler finds there is no work to do because we have done the work

[PATCH v3 2/4] i2c: mpc: Interrupt driven transfer

2021-04-12 Thread Chris Packham
The fsl-i2c controller will generate an interrupt after every byte transferred. Make use of this interrupt to drive a state machine which allows the next part of a transfer to happen as soon as the interrupt is received. This is particularly helpful with SMBUS devices like the LM81 which will

Re: [RFC v4 net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-12 Thread Andrew Lunn
if (BIT(p) & ds->phys_mii_mask) { > > > + unsigned int irq; > > > + > > > + irq = irq_create_mapping(priv->irq_domain, p); > > > > This seems odd. Why aren't the MDIO IRQs allocated on demand as > > endpoint at

[PATCH 2/6] ARM: dts: ux500: Fix interrupt cells

2021-04-12 Thread Sebastian Reichel
Fix interrupt cells in DT AB8500/AB8505 source files. The compiled DTB files will stay the same. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/ste-ab8500.dtsi | 26 +- arch/arm/boot/dts/ste-ab8505.dtsi | 22 +++--- 2 files changed, 24 insertions

Re: [PATCH v2 6/6] i2c: mpc: Interrupt driven transfer

2021-04-12 Thread Andy Shevchenko
On Sat, Apr 10, 2021 at 11:15 PM Wolfram Sang wrote: > > On Mon, Mar 29, 2021 at 02:52:06PM +1300, Chris Packham wrote: > > The fsl-i2c controller will generate an interrupt after every byte > > transferred. Make use of this interrupt to drive a state machine which > > a

Re: [PATCH 2/2] KVM: x86: Fix split-irqchip vs interrupt injection window request

2021-04-12 Thread Sean Christopherson
orks. But what is actually needed is much simpler; > > in both cases the fundamental question is, do we have a place to stash > > an interrupt if userspace does KVM_INTERRUPT? > > > > In userspace irqchip mode, that is !vcpu->arch.interrupt.injected. > > Curr

Re: [PATCH v2 6/6] i2c: mpc: Interrupt driven transfer

2021-04-12 Thread Wolfram Sang
Hi Chris, > Yep I plan on being around. I've got access to a couple of designs with > P2040 and T2081 so hopefully that's sufficient to deal with any > regressions. One issue is a lack of different i2c devices (the systems > we have tend to use the same devices) but hopefully any reports of >

Re: [RFC v4 net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-12 Thread DENG Qingfang
On Mon, Apr 12, 2021 at 09:21:12AM +0100, Marc Zyngier wrote: > On Mon, 12 Apr 2021 04:42:35 +0100, > DENG Qingfang wrote: > > > > Add support for MT7530 interrupt controller to handle internal PHYs. > > In order to assign an IRQ number to each PHY, the registration of M

Re: [RFC v4 net-next 3/4] dt-bindings: net: dsa: add MT7530 interrupt controller binding

2021-04-12 Thread Kurt Kanzenbach
On Mon Apr 12 2021, DENG Qingfang wrote: > Add device tree binding to support MT7530 interrupt controller. > > Signed-off-by: DENG Qingfang > Reviewed-by: Andrew Lunn > --- > RFC v3 -> RFC v4: > - Add #interrupt-cells property. > > Documentation/devicetree/b

  1   2   3   4   5   6   7   8   9   10   >