Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH] Added prefix pop at bottom of DBCN test function.
@ 2024-08-26  5:33 Cade Richard
  2024-08-27 15:14 ` Andrew Jones
  2024-08-27 15:25 ` Andrew Jones
  0 siblings, 2 replies; 3+ messages in thread
From: Cade Richard @ 2024-08-26  5:33 UTC (permalink / raw)
  To: kvm, kvm-riscv; +Cc: andrew.jones, atishp, cade.richard, jamestiotio

Added report prefix pop at bottom of DBCN test function.

Fixes: https://lore.kernel.org/kvm/20240812141354.119889-10-andrew.jones@linux.dev/#t

Signed-off-by: Cade Richard <cade.richard@berkeley.edu>
---
 riscv/sbi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/riscv/sbi.c b/riscv/sbi.c
index 36ddfd48..01697aed 100644
--- a/riscv/sbi.c
+++ b/riscv/sbi.c
@@ -418,6 +418,7 @@ static void check_dbcn(void)
 	report(ret.value == 0, "expected ret.value (%ld)", ret.value);
 
 	report_prefix_pop();
+	report_prefix_pop();
 }
 
 int main(int argc, char **argv)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [kvm-unit-tests PATCH] Added prefix pop at bottom of DBCN test function.
  2024-08-26  5:33 [kvm-unit-tests PATCH] Added prefix pop at bottom of DBCN test function Cade Richard
@ 2024-08-27 15:14 ` Andrew Jones
  2024-08-27 15:25 ` Andrew Jones
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Jones @ 2024-08-27 15:14 UTC (permalink / raw)
  To: Cade Richard; +Cc: kvm, kvm-riscv, atishp, cade.richard, jamestiotio

On Sun, Aug 25, 2024 at 10:33:09PM GMT, Cade Richard wrote:
> Added report prefix pop at bottom of DBCN test function.
> 
> Fixes: https://lore.kernel.org/kvm/20240812141354.119889-10-andrew.jones@linux.dev/#t

This should be

Fixes: ce58d3a45d96 ("riscv: sbi: Add dbcn write test")

and without a space before the s-o-b.

I've fixed it up while queuing.

Thanks,
drew

> 
> Signed-off-by: Cade Richard <cade.richard@berkeley.edu>
> ---
>  riscv/sbi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/riscv/sbi.c b/riscv/sbi.c
> index 36ddfd48..01697aed 100644
> --- a/riscv/sbi.c
> +++ b/riscv/sbi.c
> @@ -418,6 +418,7 @@ static void check_dbcn(void)
>  	report(ret.value == 0, "expected ret.value (%ld)", ret.value);
>  
>  	report_prefix_pop();
> +	report_prefix_pop();
>  }
>  
>  int main(int argc, char **argv)
> -- 
> 2.43.0
> 
> 
> -- 
> kvm-riscv mailing list
> kvm-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kvm-riscv

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [kvm-unit-tests PATCH] Added prefix pop at bottom of DBCN test function.
  2024-08-26  5:33 [kvm-unit-tests PATCH] Added prefix pop at bottom of DBCN test function Cade Richard
  2024-08-27 15:14 ` Andrew Jones
@ 2024-08-27 15:25 ` Andrew Jones
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Jones @ 2024-08-27 15:25 UTC (permalink / raw)
  To: Cade Richard; +Cc: kvm, kvm-riscv, atishp, cade.richard, jamestiotio


This patch summary has a period. I've removed it. I also rewrote the
commit message. Just repeating the summary isn't helpful. I wrote

    The number of pops needs to balance the number of pushes, but
    check_dbcn was missing a pop, resulting in a dbcn prefix being output
    on following non-dbcn tests. Add the pop.

Thanks,
drew

On Sun, Aug 25, 2024 at 10:33:09PM GMT, Cade Richard wrote:
> Added report prefix pop at bottom of DBCN test function.
> 
> Fixes: https://lore.kernel.org/kvm/20240812141354.119889-10-andrew.jones@linux.dev/#t
> 
> Signed-off-by: Cade Richard <cade.richard@berkeley.edu>
> ---
>  riscv/sbi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/riscv/sbi.c b/riscv/sbi.c
> index 36ddfd48..01697aed 100644
> --- a/riscv/sbi.c
> +++ b/riscv/sbi.c
> @@ -418,6 +418,7 @@ static void check_dbcn(void)
>  	report(ret.value == 0, "expected ret.value (%ld)", ret.value);
>  
>  	report_prefix_pop();
> +	report_prefix_pop();
>  }
>  
>  int main(int argc, char **argv)
> -- 
> 2.43.0
> 
> 
> -- 
> kvm-riscv mailing list
> kvm-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kvm-riscv

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-27 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-26  5:33 [kvm-unit-tests PATCH] Added prefix pop at bottom of DBCN test function Cade Richard
2024-08-27 15:14 ` Andrew Jones
2024-08-27 15:25 ` Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox