Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1579557 > unrolled thread

Re: [RFC PATCH 05/33] irqchip/gic-v3-its: Zero command on allocation

Started byThomas Gleixner <tglx@linutronix.de>
First post2017-02-13 11:00 +0100
Last post2017-02-13 11:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [RFC PATCH 05/33] irqchip/gic-v3-its: Zero command on  allocation Thomas Gleixner <tglx@linutronix.de> - 2017-02-13 11:00 +0100

#1579557 — Re: [RFC PATCH 05/33] irqchip/gic-v3-its: Zero command on allocation

FromThomas Gleixner <tglx@linutronix.de>
Date2017-02-13 11:00 +0100
SubjectRe: [RFC PATCH 05/33] irqchip/gic-v3-its: Zero command on allocation
Message-ID<talAl-1ZB-1@gated-at.bofh.it>
On Tue, 17 Jan 2017, Marc Zyngier wrote:

> When reusing commands from the ring buffer, it would be better
> to zero them out, even if the ITS should ignore the unused
> fields.
> 
> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
> ---
>  drivers/irqchip/irq-gic-v3-its.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c
> index 2ca27f6..9304dd2 100644
> --- a/drivers/irqchip/irq-gic-v3-its.c
> +++ b/drivers/irqchip/irq-gic-v3-its.c
> @@ -426,6 +426,12 @@ static struct its_cmd_block *its_allocate_entry(struct its_node *its)
>  	if (its->cmd_write == (its->cmd_base + ITS_CMD_QUEUE_NR_ENTRIES))
>  		its->cmd_write = its->cmd_base;
>  
> +	/* Clear command  */
> +	cmd->raw_cmd[0] = 0;
> +	cmd->raw_cmd[1] = 0;
> +	cmd->raw_cmd[2] = 0;
> +	cmd->raw_cmd[3] = 0;

  memset ?

Thanks,

	tglx

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web