diff options
author | Ben Fradella <bfradell@netapp.com> | 2024-05-09 19:49:34 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2024-05-14 12:43:39 +0300 |
commit | 2c6370e6607663fc5fa0fd9ed58e2e01014898c7 (patch) | |
tree | 2e948229e0ce5cf5c1ece8068cafd20c330a80f6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7c4cd2afee68aea873c0c1fb729ba309f945510c (diff) | |
download | linux-2c6370e6607663fc5fa0fd9ed58e2e01014898c7.tar.xz |
platform/x86: p2sb: Don't init until unassigned resources have been assigned
The P2SB could get an invalid BAR from the BIOS, and that won't be fixed
up until pcibios_assign_resources(), which is an fs_initcall().
- Move p2sb_fs_init() to an fs_initcall_sync(). This is still early
enough to avoid a race with any dependent drivers.
- Add a check for IORESOURCE_UNSET in p2sb_valid_resource() to catch
unset BARs going forward.
- Return error values from p2sb_fs_init() so that the 'initcall_debug'
cmdline arg provides useful data.
Signed-off-by: Ben Fradella <bfradell@netapp.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Klara Modin <klarasmodin@gmail.com>
Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link: https://lore.kernel.org/r/20240509164905.41016-1-bcfradella@proton.me
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions