Commit 5d389af
ACPI: video: Handle fetching EDID that is longer than 256 bytes
The ACPI specification allows for an EDID to be up to 512 bytes but
the _DDC EDID fetching code will only try up to 256 bytes.
Modify the code to instead start at 512 bytes and work it's way
down instead.
As _DDC is now called up to 4 times on a machine debugging messages
are noisier than necessary. Decrease from info to debug.
Link: https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/Apx_B_Video_Extensions/output-device-specific-methods.html#ddc-return-the-edid-for-this-device
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
[ rjw: Type mismatch fix, minor whitespace adjustment ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 54be6c6 commit 5d389af
1 file changed
Lines changed: 11 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
| 628 | + | |
633 | 629 | | |
634 | 630 | | |
| 631 | + | |
| 632 | + | |
635 | 633 | | |
636 | 634 | | |
637 | 635 | | |
| |||
641 | 639 | | |
642 | 640 | | |
643 | 641 | | |
644 | | - | |
| 642 | + | |
| 643 | + | |
645 | 644 | | |
646 | 645 | | |
647 | 646 | | |
| |||
1447 | 1446 | | |
1448 | 1447 | | |
1449 | 1448 | | |
1450 | | - | |
1451 | 1449 | | |
1452 | 1450 | | |
1453 | 1451 | | |
| |||
1478 | 1476 | | |
1479 | 1477 | | |
1480 | 1478 | | |
1481 | | - | |
1482 | | - | |
1483 | | - | |
1484 | | - | |
1485 | | - | |
| 1479 | + | |
1486 | 1480 | | |
1487 | 1481 | | |
1488 | | - | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
| 1482 | + | |
| 1483 | + | |
1492 | 1484 | | |
| 1485 | + | |
| 1486 | + | |
1493 | 1487 | | |
1494 | 1488 | | |
1495 | 1489 | | |
| |||
0 commit comments