diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2022-06-01 13:25:20 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2022-06-07 09:40:04 +0200 |
commit | 98da4b99a0525c222dab7cd8e73153eaea062dc3 (patch) | |
tree | 704282cb63f0d9d544f6507ad6111286d1242427 /drivers/gpu/drm/mgag200/mgag200_g200.c | |
parent | drm/mgag200: Store HW_BUG_NO_STARTADD flag in device info (diff) | |
download | linux-98da4b99a0525c222dab7cd8e73153eaea062dc3.tar.xz linux-98da4b99a0525c222dab7cd8e73153eaea062dc3.zip |
drm/mgag200: Store maximum resolution and memory bandwidth in device info
The maximum resolution and memory bandwidth are model-specific limits.
Both are used during display-mode validation. Store the values in struct
mgag200_device_info and simplify the validation code.
v2:
* 'bandwith' -> 'bandwidth' in commit message
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220601112522.5774-9-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/mgag200/mgag200_g200.c')
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_g200.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_g200.c b/drivers/gpu/drm/mgag200/mgag200_g200.c index 90b33a7352e5..4ec1b18ab170 100644 --- a/drivers/gpu/drm/mgag200/mgag200_g200.c +++ b/drivers/gpu/drm/mgag200/mgag200_g200.c @@ -34,7 +34,7 @@ static int mgag200_g200_init_pci_options(struct pci_dev *pdev) */ static const struct mgag200_device_info mgag200_g200_device_info = - MGAG200_DEVICE_INFO_INIT(false); + MGAG200_DEVICE_INFO_INIT(2048, 2048, 0, false); static void mgag200_g200_interpret_bios(struct mgag200_g200_device *g200, const unsigned char *bios, size_t size) |