hw/arm: versal: Add the CRP as unimplemented
cover hw/arm: versal: Add the CRP as unimplemented
From: "Edgar E. Iglesias" <[email protected]>
Some boot-loaders will access the CRP block and bug out if recieving bus errors. Since we're in freeze, this does not try to add a model of the CRP instead we only add it as unimplemented. This is enough to work around the issue.
Cheers,
Edgar
Edgar E. Iglesias (1):
hw/arm: versal: Add the CRP as unimplemented
hw/arm/xlnx-versal.c | 2 ++ include/hw/arm/xlnx-versal.h | 3 +++ 2 files changed, 5 insertions(+)
Signature · 1 line
2.20.1
PATCH 1/1 hw/arm: versal: Add the CRP as unimplemented
From: "Edgar E. Iglesias" <[email protected]>
Add the CRP as unimplemented thus avoiding bus errors when guests access these registers.
--- hw/arm/xlnx-versal.c | 2 ++ include/hw/arm/xlnx-versal.h | 3 +++ 2 files changed, 5 insertions(+)
hw/arm/xlnx-versal.c +2 -0
@@ -257,6 +257,8 @@ static void versal_unimp(Versal *s) MM_CRL, MM_CRL_SIZE);versal_unimp_area (s,"crf" , &s->mr_ps,MM_FPD_CRF ,MM_FPD_CRF_SIZE ); +versal_unimp_area (s,"crp" , &s->mr_ps, +MM_PMC_CRP ,MM_PMC_CRP_SIZE );versal_unimp_area (s,"iou-scntr" , &s->mr_ps,MM_IOU_SCNTR ,MM_IOU_SCNTR_SIZE ); versal_unimp_area(s, "iou-scntr-seucre", &s->mr_ps,
include/hw/arm/xlnx-versal.h +3 -0
@@ -119,4 +119,7 @@ typedef struct Versal {#define MM_IOU_SCNTRS_SIZE 0x10000#define MM_FPD_CRF 0xfd1a0000U#define MM_FPD_CRF_SIZE 0x140000 + +#define MM_PMC_CRP 0xf1260000U +#define MM_PMC_CRP_SIZE 0x10000#endif
Signature · 1 line
2.20.1
Quoted 7 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Add the CRP as unimplemented thus avoiding bus errors when guests access these registers.
Signed-off-by Edgar E. Iglesias <[email protected]>
Alistair
Quoted 34 lines
--- hw/arm/xlnx-versal.c | 2 ++ include/hw/arm/xlnx-versal.h | 3 +++ 2 files changed, 5 insertions(+)hw/arm/xlnx-versal.c +2
-0@@ -257,6 +257,8 @@ static void versal_unimp(Versal *s) MM_CRL, MM_CRL_SIZE);versal_unimp_area (s,"crf" , &s->mr_ps,MM_FPD_CRF ,MM_FPD_CRF_SIZE ); +versal_unimp_area (s,"crp" , &s->mr_ps, +MM_PMC_CRP ,MM_PMC_CRP_SIZE );versal_unimp_area (s,"iou-scntr" , &s->mr_ps,MM_IOU_SCNTR ,MM_IOU_SCNTR_SIZE ); versal_unimp_area(s, "iou-scntr-seucre", &s->mr_ps,include/hw/arm/xlnx-versal.h +3
-1@@ -119,4 +119,7 @@ typedef struct Versal {#define MM_IOU_SCNTRS_SIZE 0x10000#define MM_FPD_CRF 0xfd1a0000U#define MM_FPD_CRF_SIZE 0x140000 + +#define MM_PMC_CRP 0xf1260000U +#define MM_PMC_CRP_SIZE 0x10000#endif --2.20.1
Quoted 6 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Add the CRP as unimplemented thus avoiding bus errors when guests access these registers.
Signed-off-by Edgar E. Iglesias <[email protected]>
Quoted 31 lines
--- hw/arm/xlnx-versal.c | 2 ++ include/hw/arm/xlnx-versal.h | 3 +++ 2 files changed, 5 insertions(+)hw/arm/xlnx-versal.c +2
-0@@ -257,6 +257,8 @@ static void versal_unimp(Versal *s) MM_CRL, MM_CRL_SIZE);versal_unimp_area (s,"crf" , &s->mr_ps,MM_FPD_CRF ,MM_FPD_CRF_SIZE ); +versal_unimp_area (s,"crp" , &s->mr_ps, +MM_PMC_CRP ,MM_PMC_CRP_SIZE );versal_unimp_area (s,"iou-scntr" , &s->mr_ps,MM_IOU_SCNTR ,MM_IOU_SCNTR_SIZE ); versal_unimp_area(s, "iou-scntr-seucre", &s->mr_ps,include/hw/arm/xlnx-versal.h +3
-0@@ -119,4 +119,7 @@ typedef struct Versal {#define MM_IOU_SCNTRS_SIZE 0x10000#define MM_FPD_CRF 0xfd1a0000U#define MM_FPD_CRF_SIZE 0x140000 + +#define MM_PMC_CRP 0xf1260000U +#define MM_PMC_CRP_SIZE 0x10000#endif
Hi Peter,
Can we consider this patch for 4.2?
Thanks,
Edgar
Quoted 39 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Add the CRP as unimplemented thus avoiding bus errors when guests access these registers.
Signed-off-by Edgar E. Iglesias <[email protected]>--- hw/arm/xlnx-versal.c | 2 ++ include/hw/arm/xlnx-versal.h | 3 +++ 2 files changed, 5 insertions(+)hw/arm/xlnx-versal.c +2
-0@@ -257,6 +257,8 @@ static void versal_unimp(Versal *s) MM_CRL, MM_CRL_SIZE);versal_unimp_area (s,"crf" , &s->mr_ps,MM_FPD_CRF ,MM_FPD_CRF_SIZE ); +versal_unimp_area (s,"crp" , &s->mr_ps, +MM_PMC_CRP ,MM_PMC_CRP_SIZE );versal_unimp_area (s,"iou-scntr" , &s->mr_ps,MM_IOU_SCNTR ,MM_IOU_SCNTR_SIZE ); versal_unimp_area(s, "iou-scntr-seucre", &s->mr_ps,include/hw/arm/xlnx-versal.h +3
-0@@ -119,4 +119,7 @@ typedef struct Versal {#define MM_IOU_SCNTRS_SIZE 0x10000#define MM_FPD_CRF 0xfd1a0000U#define MM_FPD_CRF_SIZE 0x140000 + +#define MM_PMC_CRP 0xf1260000U +#define MM_PMC_CRP_SIZE 0x10000#endif Signature · 1 line
2.20.1
Quoted 4 lines · Edgar E. Iglesias
Hi Peter,
Can we consider this patch for 4.2?
Sure, it looks pretty safe. I've applied it to my queue for rc3.
thanks
-- PMM
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
=== TEST SCRIPT BEGIN ===
#!/bin/bash
make docker-image-centos7 V=1 NETWORK=1
time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1 === TEST SCRIPT END ===
The full log is available at
http://patchew.org/logs/[email protected]/testing.docker-quick@centos7/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Quoted 6 lines · On 11/15/19 7:12 PM, [email protected] wrote:
Patchew URL: https://patchew.org/QEMU/[email protected]/
This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
[...]
Quoted 2 lines
The full log is available at
http://patchew.org/logs/[email protected]/testing.docker-quick@centos7/?type=message.
Unrelated error:
From https://github.com/patchew-project/qemu
* [new tag]
patchew/[email protected] -> patchew/[email protected]
fatal: failed to write ref-pack file
fatal: The remote end hung up unexpectedly