Blame SOURCES/github_bf48dd4e_arm64_devmem_read_error.patch

bc6356
commit bf48dd4e9926515345cad06c1bfce49d7a057a26
bc6356
Author: Dave Anderson <anderson@redhat.com>
bc6356
Date:   Mon Jun 10 14:12:52 2019 -0400
bc6356
bc6356
    Fix for Linux 4.16 and later ARM64 kernels that contain kernel commit
bc6356
    fa2a8445b1d3810c52f2a6b3a006456bd1aacb7e, titled "arm64: allow ID map
bc6356
    to be extended to 52 bits", and which have been configured with both
bc6356
    CONFIG_DEVMEM=y and CONFIG_STRICT_DEVMEM=y.  Without the patch, an
bc6356
    inconsequential error message indicating "crash: read error: kernel
bc6356
    virtual address: <address> type: idmap_ptrs_per_pgd" is displayed
bc6356
    during initialization.
bc6356
    (anderson@redhat.com)
bc6356
bc6356
diff --git a/arm64.c b/arm64.c
bc6356
index 5b82263..6b34b5f 100644
bc6356
--- a/arm64.c
bc6356
+++ b/arm64.c
bc6356
@@ -283,7 +283,7 @@ arm64_init(int when)
bc6356
 		case 65536:
bc6356
 			if (kernel_symbol_exists("idmap_ptrs_per_pgd") &&
bc6356
 			    readmem(symbol_value("idmap_ptrs_per_pgd"), KVADDR,
bc6356
-			    &value, sizeof(ulong), "idmap_ptrs_per_pgd", RETURN_ON_ERROR))
bc6356
+			    &value, sizeof(ulong), "idmap_ptrs_per_pgd", QUIET|RETURN_ON_ERROR))
bc6356
 				machdep->ptrs_per_pgd = value;
bc6356
 		
bc6356
 			if (machdep->machspec->VA_BITS > PGDIR_SHIFT_L3_64K) {