drm/nouveau/secboot: fix WPR region alignment
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 26 Jan 2017 05:55:56 +0000 (14:55 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:11 +0000 (17:05 +1000)
A WPR region smaller than 256K will result in secure boot failure.
Adjust the minimal size.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c

index 32de99196ec0ab5b8dcc0229d2945a52c6ac14e4..205bf453ad477057b039a3b05f2552304c09ab6f 100644 (file)
@@ -381,8 +381,8 @@ acr_r352_ls_write_wpr(struct acr_r352 *acr, struct list_head *imgs,
        return 0;
 }
 
-/* Both size and address of WPR need to be 128K-aligned */
-#define WPR_ALIGNMENT  0x20000
+/* Both size and address of WPR need to be 256K-aligned */
+#define WPR_ALIGNMENT  0x40000
 /**
  * acr_r352_prepare_ls_blob() - prepare the LS blob
  *