[dpdk-dev] [PATCH 33/44] event/octeontx2: add TIM IRQ handlers

Jerin Jacob Kollanukkaran jerinj at marvell.com
Mon Jun 17 10:25:22 CEST 2019


> -----Original Message-----
> From: pbhagavatula at marvell.com <pbhagavatula at marvell.com>
> Sent: Sunday, June 2, 2019 12:24 AM
> To: Jerin Jacob Kollanukkaran <jerinj at marvell.com>; Pavan Nikhilesh
> Bhagavatula <pbhagavatula at marvell.com>
> Cc: dev at dpdk.org
> Subject: [dpdk-dev] [PATCH 33/44] event/octeontx2: add TIM IRQ handlers
> 
> From: Pavan Nikhilesh <pbhagavatula at marvell.com>
> 
> Register and implement TIM IRQ handlers for error interrupts
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
> ---
>  drivers/event/octeontx2/otx2_evdev_irq.c | 99 ++++++++++++++++++++++++
> drivers/event/octeontx2/otx2_tim_evdev.c | 37 +++++++++
> drivers/event/octeontx2/otx2_tim_evdev.h | 14 ++++
>  3 files changed, 150 insertions(+)
> 
> diff --git a/drivers/event/octeontx2/otx2_evdev_irq.c
> b/drivers/event/octeontx2/otx2_evdev_irq.c
> index e10389703..80de2f407 100644
> --- a/drivers/event/octeontx2/otx2_evdev_irq.c
> +++ b/drivers/event/octeontx2/otx2_evdev_irq.c
> @@ -3,6 +3,7 @@
>   */
> 
>  #include "otx2_evdev.h"
> +#include "otx2_tim_evdev.h"
> 
>  static void
>  sso_lf_irq(void *param)
> @@ -177,3 +178,101 @@ sso_unregister_irqs(const struct rte_eventdev
> *event_dev)
>  		ssow_lf_unregister_irq(event_dev, dev->ssow_msixoff[i], base);
>  	}
>  }
> +
> +static void
> +tim_lf_irq(void *param)
> +{
> +	uintptr_t base = (uintptr_t)param;
> +	uint64_t intr;
> +	uint8_t ring;
> +
> +	ring = (base >> 12) & 0xFF;
> +
> +	intr = otx2_read64(base + TIM_LF_NRSPERR_INT);
> +	otx2_err("TIM RING %d TIM_LF_NRSPERR_INT=0x%" PRIx64 "", ring,
> intr);
> +	intr = otx2_read64(base + TIM_LF_RAS_INT);
> +	otx2_err("TIM RING %d TIM_LF_RAS_INT=0x%" PRIx64 "", ring, intr);
> +
> +	/* Clear interrupt */
> +	otx2_write64(intr, base + TIM_LF_NRSPERR_INT);
> +	otx2_write64(intr, base + TIM_LF_RAS_INT);
> +
> +	abort();

Remove abort() from driver.




More information about the dev mailing list