aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorPiotr Piórkowski <[email protected]>2022-08-05 17:59:59 +0200
committerJani Nikula <[email protected]>2022-08-10 13:11:17 +0300
commit1bba7323c79b169d855ecb4a1eba410f18a38674 (patch)
tree7e3f2175753acb1ec2923b68490b140c0c13fe43 /lib/mpi/mpi-internal.h
parent6bba2b30d29cbba78ba0f935210108e74dbe7ab3 (diff)
drm/i915: Sanitycheck PCI BARs
For proper operation of i915 we need usable PCI GTTMMADDR BAR 0 (1 for GEN2). In most cases we also need usable PCI GFXMEM BAR 2. Let's add functions to check if BARs are set, and that it have a size greater than 0. In case GTTMMADDR BAR, let's validate at the beginning of i915 initialization. For other BARs, let's validate before first use. Signed-off-by: Piotr Piórkowski <[email protected]> Cc: Jani Nikula <[email protected]> Cc: Lucas De Marchi <[email protected]> Cc: Matt Roper <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions