bios: Restrict missing fp table message to desktop cards.
PATCH 1/1 bios: Restrict missing fp table message to desktop cards.
A 2 minute google search shows that this error is prevalent with mobile Nvidia GPUs. Since we can assume mobile parts have no fp table, demote the error to desktop cards.
Also reword the comment since the error is not restricted to Apple hardware.
Signed-off by: Rosen Penev <[email protected]>
--- drm/nouveau/nouveau_bios.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drm/nouveau/nouveau_bios.c +5 -5
@@ -351,11 +351,11 @@ static int parse_fp_mode_table(struct drm_device *dev, struct nvbios *bios)struct lvdstableheader lth;if (bios->fp.fptablepointer ==0x0 ) { -/* Apple cards don't have the fp table; the laptops use DDC */ -/* The table is also missing on some x86 IGPs */ -#ifndef __powerpc__ -NV_ERROR (drm,"Pointer to flat panel table invalid\n" ); -#endif +if (!bios->is_mobile) { +/* Most laptop cards lack an fp table. They use DDC.*/ +NV_ERROR (drm,"Pointer to flat panel table invalid\n" ); + } + bios->digital_min_front_porch =0x4b ;return 0 ; }
Signature · 6 lines
2.13.3 _______________________________________________ Nouveau mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 5 lines · Rosen Penev
A 2 minute google search shows that this error is prevalent with mobile Nvidia GPUs. Since we can assume mobile parts have no fp table, demote the error to desktop cards.
Also reword the comment since the error is not restricted to Apple hardware.
Thanks for the patch. Dealing with this is something that I've thought about on and off for a while, but never done.
Instead of making it conditional, I'd suggest instead just removing it completely, or silencing it with NV_DEBUG instead of NV_ERROR.
Ben.
Quoted 18 lines
Signed-off by: Rosen Penev <[email protected]>
--- drm/nouveau/nouveau_bios.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drm/nouveau/nouveau_bios.c +0
-3@@ -351,11 +351,11 @@ static int parse_fp_mode_table(struct drm_device *dev, struct nvbios *bios)struct lvdstableheader lth;if (bios->fp.fptablepointer ==0x0 ) { -/* Apple cards don't have the fp table; the laptops use DDC */ -/* The table is also missing on some x86 IGPs */ -#ifndef __powerpc__
drm/nouveau/nouveau_bios.c static int parse_fp_mode_table(struct drm_device *dev, struct nvbios *bios) · line 361
Quoted 10 lines
drm/nouveau/nouveau_bios.c +5
-2-NV_ERROR (drm,"Pointer to flat panel table invalid\n" ); -#endif +if (!bios->is_mobile) { +/* Most laptop cards lack an fp table. They use DDC.*/ +NV_ERROR (drm,"Pointer to flat panel table invalid\n" ); + } + bios->digital_min_front_porch =0x4b ;return 0 ; }
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau