drm/xe: Use max wopcm size when validating the preset GuC wopcm size
authorBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Fri, 17 Mar 2023 16:53:35 +0000 (22:23 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:30:20 +0000 (18:30 -0500)
commiteb230dc47dd6f543ae2ff9c85bbe86243502e171
tree3ae5eaa3ec9a32ab2434c6527a7b4581fefc8837
parent1a653b879d6e408813096434ece5fa46c0752343
drm/xe: Use max wopcm size when validating the preset GuC wopcm size

When the GuC wopcm base and size registers are populated by BIOS/IFWI,
validate the parameters against the maximum allowed wopcm size.

Bpsec: 44982

Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_wopcm.c