1. 17 Oct, 2018 1 commit
    • Jan Kiszka's avatar
      x86/entry/32: Clear the CS high bits · 04f4f954
      Jan Kiszka authored
      Even if not on an entry stack, the CS's high bits must be
      initialized because they are unconditionally evaluated in
      PARANOID_EXIT_TO_KERNEL_MODE.
      
      Failing to do so broke the boot on Galileo Gen2 and IOT2000 boards.
      
       [ bp: Make the commit message tone passive and impartial. ]
      
      Fixes: b92a165d ("x86/entry/32: Handle Entry from Kernel-Mode on Entry-Stack")
      Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Reviewed-by: default avatarJoerg Roedel <jroedel@suse.de>
      Acked-by: default avatarJoerg Roedel <jroedel@suse.de>
      CC: "H. Peter Anvin" <hpa@zytor.com>
      CC: Andrea Arcangeli <aarcange@redhat.com>
      CC: Andy Lutomirski <luto@kernel.org>
      CC: Boris Ostrovsky <boris.ostrovsky@oracle.com>
      CC: Brian Gerst <brgerst@gmail.com>
      CC: Dave Hansen <dave.hansen@intel.com>
      CC: David Laight <David.Laight@aculab.com>
      CC: Denys Vlasenko <dvlasenk@redhat.com>
      CC: Eduardo Valentin <eduval@amazon.com>
      CC: Greg KH <gregkh@linuxfoundation.org>
      CC: Ingo Molnar <mingo@kernel.org>
      CC: Jiri Kosina <jkosina@suse.cz>
      CC: Josh Poimboeuf <jpoimboe@redhat.com>
      CC: Juergen Gross <jgross@suse.com>
      CC: Linus Torvalds <torvalds@linux-foundation.org>
      CC: Peter Zijlstra <peterz@infradead.org>
      CC: Thomas Gleixner <tglx@linutronix.de>
      CC: Will Deacon <will.deacon@arm.com>
      CC: aliguori@amazon.com
      CC: daniel.gruss@iaik.tugraz.at
      CC: hughd@google.com
      CC: keescook@google.com
      CC: linux-mm <linux-mm@kvack.org>
      CC: x86-ml <x86@kernel.org>
      Link: http://lkml.kernel.org/r/f271c747-1714-5a5b-a71f-ae189a093b8d@siemens.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      04f4f954
  2. 14 Oct, 2018 7 commits
  3. 13 Oct, 2018 11 commits
  4. 12 Oct, 2018 18 commits
  5. 11 Oct, 2018 3 commits
    • David S. Miller's avatar
      Merge branch 'net-dsa-bcm_sf2-Couple-of-fixes' · 6b9bab55
      David S. Miller authored
      Florian Fainelli says:
      
      ====================
      net: dsa: bcm_sf2: Couple of fixes
      
      Here are two fixes for the bcm_sf2 driver that were found during
      testing unbind and analysing another issue during system
      suspend/resume.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6b9bab55
    • Florian Fainelli's avatar
      net: dsa: bcm_sf2: Call setup during switch resume · 54baca09
      Florian Fainelli authored
      There is no reason to open code what the switch setup function does, in
      fact, because we just issued a switch reset, we would make all the
      register get their default values, including for instance, having unused
      port be enabled again and wasting power and leading to an inappropriate
      switch core clock being selected.
      
      Fixes: 8cfa9498 ("net: dsa: bcm_sf2: add suspend/resume callbacks")
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      54baca09
    • Florian Fainelli's avatar
      net: dsa: bcm_sf2: Fix unbind ordering · bf3b452b
      Florian Fainelli authored
      The order in which we release resources is unfortunately leading to bus
      errors while dismantling the port. This is because we set
      priv->wol_ports_mask to 0 to tell bcm_sf2_sw_suspend() that it is now
      permissible to clock gate the switch. Later on, when dsa_slave_destroy()
      comes in from dsa_unregister_switch() and calls
      dsa_switch_ops::port_disable, we perform the same dismantling again, and
      this time we hit registers that are clock gated.
      
      Make sure that dsa_unregister_switch() is the first thing that happens,
      which takes care of releasing all user visible resources, then proceed
      with clock gating hardware. We still need to set priv->wol_ports_mask to
      0 to make sure that an enabled port properly gets disabled in case it
      was previously used as part of Wake-on-LAN.
      
      Fixes: d9338023 ("net: dsa: bcm_sf2: Make it a real platform device driver")
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bf3b452b