1. 10 Mar, 2022 1 commit
  2. 09 Mar, 2022 1 commit
    • Darren Hart's avatar
      ACPI/APEI: Limit printable size of BERT table data · 3f8dec11
      Darren Hart authored
      Platforms with large BERT table data can trigger soft lockup errors
      while attempting to print the entire BERT table data to the console at
      boot:
      
        watchdog: BUG: soft lockup - CPU#160 stuck for 23s! [swapper/0:1]
      
      Observed on Ampere Altra systems with a single BERT record of ~250KB.
      
      The original bert driver appears to have assumed relatively small table
      data. Since it is impractical to reassemble large table data from
      interwoven console messages, and the table data is available in
      
        /sys/firmware/acpi/tables/data/BERT
      
      limit the size for tables printed to the console to 1024 (for no reason
      other than it seemed like a good place to kick off the discussion, would
      appreciate feedback from existing users in terms of what size would
      maintain their current usage model).
      
      Alternatively, we could make printing a CONFIG option, use the
      bert_disable boot arg (or something similar), or use a debug log level.
      However, all those solutions require extra steps or change the existing
      behavior for small table data. Limiting the size preserves existing
      behavior on existing platforms with small table data, and eliminates the
      soft lockups for platforms with large table data, while still making it
      available.
      Signed-off-by: default avatarDarren Hart <darren@os.amperecomputing.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      3f8dec11
  3. 08 Mar, 2022 1 commit
    • Randy Dunlap's avatar
      ACPI: APEI: fix return value of __setup handlers · f3303ff6
      Randy Dunlap authored
      __setup() handlers should return 1 to indicate that the boot option
      has been handled. Returning 0 causes a boot option to be listed in
      the Unknown kernel command line parameters and also added to init's
      arg list (if no '=' sign) or environment list (if of the form 'a=b').
      
      Unknown kernel command line parameters "erst_disable
        bert_disable hest_disable BOOT_IMAGE=/boot/bzImage-517rc6", will be
        passed to user space.
      
       Run /sbin/init as init process
         with arguments:
           /sbin/init
           erst_disable
           bert_disable
           hest_disable
         with environment:
           HOME=/
           TERM=linux
           BOOT_IMAGE=/boot/bzImage-517rc6
      
      Fixes: a3e2acc5 ("ACPI / APEI: Add Boot Error Record Table (BERT) support")
      Fixes: a08f82d0 ("ACPI, APEI, Error Record Serialization Table (ERST) support")
      Fixes: 9dc96664 ("ACPI, APEI, HEST table parsing")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reported-by: default avatarIgor Zhbanov <i.zhbanov@omprussia.ru>
      Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru
      Reviewed-by: default avatar"Huang, Ying" <ying.huang@intel.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      f3303ff6
  4. 03 Mar, 2022 2 commits
  5. 27 Feb, 2022 4 commits
  6. 26 Feb, 2022 22 commits
  7. 25 Feb, 2022 9 commits