diff options
| author | Lucas De Marchi <lucas.demarchi@intel.com> | 2019-11-26 14:51:08 -0800 |
|---|---|---|
| committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2019-12-02 13:54:21 -0800 |
| commit | fd0186ce185161915d0d51e6efd2c632571f948f (patch) | |
| tree | 3bf37840bea9d4abfce6558a9a15a2559421699a /tools/perf/scripts/python | |
| parent | d5746bf20e971caf194b1e69b9332570041fc6d6 (diff) | |
| download | linux-fd0186ce185161915d0d51e6efd2c632571f948f.tar.gz linux-fd0186ce185161915d0d51e6efd2c632571f948f.zip | |
drm/i915/bios: do not discard address space
When we map the VBT through pci_map_rom() we may not be allowed
to simply discard the address space and go on reading the memory.
That doesn't work on my test system, but by dumping the rom via
sysfs I can can get the correct vbt. So change our find_vbt() to do
the same as done by pci_read_rom(), i.e. use memcpy_fromio().
v2: the just the minimal changes by not bothering with the unaligned io
reads: this can be done on top (from Ville and Jani)
v3: drop const in function return since now we are copying the vbt,
rather than just finding it
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191126225110.8127-2-lucas.demarchi@intel.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
