1. 23 Jun, 2023 3 commits
    • Song Shuai's avatar
      riscv: hibernate: remove WARN_ON in save_processor_state · 91afbaaf
      Song Shuai authored
      During hibernation or restoration, freeze_secondary_cpus
      checks num_online_cpus via BUG_ON, and the subsequent
      save_processor_state also does the checking with WARN_ON.
      
      In the case of CONFIG_PM_SLEEP_SMP=n, freeze_secondary_cpus
      is not defined, but the sole possible condition to disable
      CONFIG_PM_SLEEP_SMP is !SMP where num_online_cpus is always 1.
      We also don't have to check it in save_processor_state.
      
      So remove the unnecessary checking in save_processor_state.
      
      Fixes: c0317210 ("RISC-V: Add arch functions to support hibernation/suspend-to-disk")
      Signed-off-by: default avatarSong Shuai <songshuaishuai@tinylab.org>
      Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
      Link: https://lore.kernel.org/r/20230609075049.2651723-4-songshuaishuai@tinylab.orgSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      91afbaaf
    • Palmer Dabbelt's avatar
      Merge patch series "riscv: Add independent irq/softirq stacks support" · b5e13f3a
      Palmer Dabbelt authored
      guoren@kernel.org <guoren@kernel.org> says:
      
      From: Guo Ren <guoren@linux.alibaba.com>
      
      This patch series adds independent irq/softirq stacks to decrease the
      press of the thread stack. Also, add a thread STACK_SIZE config for
      users to adjust the proper size during compile time.
      
      * b4-shazam-merge:
        riscv: stack: Add config of thread stack size
        riscv: stack: Support HAVE_SOFTIRQ_ON_OWN_STACK
        riscv: stack: Support HAVE_IRQ_EXIT_ON_IRQ_STACK
      
      Link: https://lore.kernel.org/r/20230614013018.2168426-1-guoren@kernel.orgSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      b5e13f3a
    • Palmer Dabbelt's avatar
      Merge patch series "ISA string parser cleanups" · 42b89447
      Palmer Dabbelt authored
      Conor Dooley <conor@kernel.org> says:
      
      From: Conor Dooley <conor.dooley@microchip.com>
      
      Here are some bits that were discussed with Drew on the "should we
      allow caps" threads that I have now created patches for:
      - splitting of riscv_of_processor_hartid() into two distinct functions,
        one for use purely during early boot, prior to the establishment of
        the possible-cpus mask & another to fit the other current use-cases
      - that then allows us to then completely skip some validation of the
        hartid in the parser
      - the biggest diff in the series is a rework of the comments in the
        parser, as I have mostly found the existing (sparse) ones to not be
        all that helpful whenever I have to go back and look at it
      - from writing the comments, I found a conditional doing a bit of a
        dance that I found counter-intuitive, so I've had a go at making that
        match what I would expect a little better
      - `i` implies 4 other extensions, so add them as extensions and set
        them for the craic. Sure why not like...
      
      * b4-shazam-merge:
        RISC-V: always report presence of extensions formerly part of the base ISA
        dt-bindings: riscv: explicitly mention assumption of Zicntr & Zihpm support
        RISC-V: remove decrement/increment dance in ISA string parser
        RISC-V: rework comments in ISA string parser
        RISC-V: validate riscv,isa at boot, not during ISA string parsing
        RISC-V: split early & late of_node to hartid mapping
        RISC-V: simplify register width check in ISA string parsing
      
      Link: https://lore.kernel.org/r/20230607-audacity-overhaul-82bb867a825f@spudSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      42b89447
  2. 22 Jun, 2023 3 commits
  3. 21 Jun, 2023 7 commits
  4. 20 Jun, 2023 5 commits
  5. 19 Jun, 2023 9 commits
  6. 14 Jun, 2023 2 commits
  7. 08 Jun, 2023 11 commits