diff mbox series

[kvm-unit-tests,5/5] s390x: firq: Fix sclp buffer allocation

Message ID 20220114100245.8643-6-frankja@linux.ibm.com (mailing list archive)
State New, archived
Headers show
Series s390x: Allocation and hosting environment detection fixes | expand

Commit Message

Janosch Frank Jan. 14, 2022, 10:02 a.m. UTC
We need a 32 bit address for the sclp buffer so let's use a page from
the first 31 bits.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
---
 s390x/firq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Claudio Imbrenda Jan. 14, 2022, 11:19 a.m. UTC | #1
On Fri, 14 Jan 2022 10:02:45 +0000
Janosch Frank <frankja@linux.ibm.com> wrote:

> We need a 32 bit address for the sclp buffer so let's use a page from
> the first 31 bits.
> 
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

> ---
>  s390x/firq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/s390x/firq.c b/s390x/firq.c
> index 1f877183..a0ef1555 100644
> --- a/s390x/firq.c
> +++ b/s390x/firq.c
> @@ -87,7 +87,7 @@ static void test_wait_state_delivery(void)
>  	 */
>  	while(smp_sense_running_status(1));
>  
> -	h = alloc_page();
> +	h = alloc_pages_flags(1, AREA_DMA31);
>  	h->length = 4096;
>  	ret = servc(SCLP_CMDW_READ_CPU_INFO, __pa(h));
>  	if (ret) {
diff mbox series

Patch

diff --git a/s390x/firq.c b/s390x/firq.c
index 1f877183..a0ef1555 100644
--- a/s390x/firq.c
+++ b/s390x/firq.c
@@ -87,7 +87,7 @@  static void test_wait_state_delivery(void)
 	 */
 	while(smp_sense_running_status(1));
 
-	h = alloc_page();
+	h = alloc_pages_flags(1, AREA_DMA31);
 	h->length = 4096;
 	ret = servc(SCLP_CMDW_READ_CPU_INFO, __pa(h));
 	if (ret) {