[PATCH] virtio_net: Warn if insufficient queue length for transmitting

2024-04-30 Thread Darius Rad
-off-by: Darius Rad --- drivers/net/virtio_net.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 115c3c5414f2..72ee8473b61c 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -4917,6 +4917,9 @@ static int

Re: [PATCH] irqchip/sifive-plic: add irq_mask and irq_unmask

2019-09-16 Thread Darius Rad
On 9/16/19 4:51 PM, Palmer Dabbelt wrote: > On Mon, 16 Sep 2019 12:04:56 PDT (-0700), Darius Rad wrote: >> On 9/15/19 2:20 PM, Marc Zyngier wrote: >>> On Sun, 15 Sep 2019 18:31:33 +0100, >>> Palmer Dabbelt wrote: >>> >>> Hi Palmer, >>>

Re: [PATCH] irqchip/sifive-plic: add irq_mask and irq_unmask

2019-09-16 Thread Darius Rad
On 9/15/19 2:20 PM, Marc Zyngier wrote: > On Sun, 15 Sep 2019 18:31:33 +0100, > Palmer Dabbelt wrote: > > Hi Palmer, > >> >> On Sun, 15 Sep 2019 07:24:20 PDT (-0700), m...@kernel.org wrote: >>> On Thu, 12 Sep 2019 22:40:34 +0100, >>> Darius Rad w

[PATCH] irqchip/sifive-plic: add irq_mask and irq_unmask

2019-09-12 Thread Darius Rad
/irqchip/chained_irq.h). Signed-off-by: Darius Rad --- drivers/irqchip/irq-sifive-plic.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c index cf755964f2f8..52d5169f924f 100644 --- a/drivers

Re: [PATCH] riscv: kbuild: drop CONFIG_RISCV_ISA_C

2019-08-12 Thread Darius Rad
On 8/12/19 11:03 AM, Christoph Hellwig wrote: On Thu, Aug 08, 2019 at 02:18:53PM +0200, Charles Papon wrote: Please do not drop it. Compressed instruction extension has some specific overhead in small RISC-V FPGA softcore, especialy in the ones which can't implement the register file read in a

Re: [PATCH] include/asm-generic/cmpxchg-local.h: perform comparison in cmpxchg using appropriate size of data

2014-08-26 Thread Darius Rad
On 08/26/2014 08:33 AM, Arnd Bergmann wrote: > On Monday 25 August 2014 11:33:07 Darius Rad wrote: >> In the generic implementation of cmpxchg, cast the parameters to the size >> of the data prior to comparison. Otherwise, it is possible for the >> comparison to be done in

[PATCH] include/asm-generic/cmpxchg-local.h: perform comparison in cmpxchg using appropriate size of data

2014-08-25 Thread Darius Rad
-bit architectures that make use of the generic cmpxchg. Signed-off-by: Darius Rad --- It does not appear that this is relevant to architectures that are in the kernel tree, since the generic cmpxchg is only ever used by some 32-bit architectures. This does impact the RISC-V architecture that is

[PATCH] include/linux/atomic.h: include asm-generic/atomic-long.h after asm-generic/atomic64.h

2014-08-25 Thread Darius Rad
Move the include of asm-generic/atomic-long.h to after the conditional include of asm-generic/atomic64.h. This is necessary if CONFIG_GENERIC_ATOMIC64 is y and BITS_PER_LONG == 64, because atomic-long.h uses functions declared in atomic64.h. Signed-off-by: Darius Rad --- It does not appear

[PATCH] include/linux/types.h: avoid duplicate definition of atomic64_t when 64BIT && GENERIC_ATOMIC64

2014-08-25 Thread Darius Rad
-off-by: Darius Rad --- It does not appear that this is relevant to architectures that are in the kernel tree (i.e., no architectures use GENERIC_ATOMIC64 on 64-bit). It is relevant, however, to certain combinations of options for the RISC-V architecture currently in development. Patch generated