1. 03 7月, 2018 7 次提交
  2. 02 7月, 2018 11 次提交
  3. 30 6月, 2018 2 次提交
  4. 29 6月, 2018 9 次提交
    • H
      lib: div64: fix typeo in include/div64.h · 2121bbe4
      Heinrich Schuchardt 提交于
      %s/reminder/remainder/
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      2121bbe4
    • N
      ARM: mach-omap2: omap3/am335x: Enable ACR::IBE on Cortex-A8 SoCs for CVE-2017-5715 · 94c6a89a
      Nishanth Menon 提交于
      Enable CVE-2017-5715 option to set the IBE bit. This enables kernel
      workarounds necessary for the said CVE.
      
      With this enabled, Linux reports:
      CPU0: Spectre v2: using BPIALL workaround
      
      This workaround may need to be re-applied in OS environment around low
      power transition resume states where context of ACR would be lost (off-mode
      etc).
      Signed-off-by: NNishanth Menon <nm@ti.com>
      94c6a89a
    • N
      ARM: mach-omap2: omap5/dra7: Enable ACTLR[0] (Enable invalidates of BTB) to... · dbb7caf1
      Nishanth Menon 提交于
      ARM: mach-omap2: omap5/dra7: Enable ACTLR[0] (Enable invalidates of BTB) to facilitate CVE_2017-5715 WA in OS
      
      Enable CVE_2017_5715 and since we have our own v7_arch_cp15_set_acr
      function to setup the bits, we are able to override the settings.
      
      Without this enabled, Linux kernel reports:
      CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
      
      With this enabled, Linux kernel reports:
      CPU0: Spectre v2: using ICIALLU workaround
      
      NOTE: This by itself does not enable the workaround for CPU1 (on
      OMAP5 and DRA72/AM572 SoCs) and may require additional kernel patches.
      Signed-off-by: NNishanth Menon <nm@ti.com>
      dbb7caf1
    • N
      ARM: Introduce ability to enable invalidate of BTB with ICIALLU on Cortex-A15 for CVE-2017-5715 · c2ca3fdf
      Nishanth Menon 提交于
      As recommended by Arm in [1], ACTLR[0] (Enable invalidates of BTB)
      needs to be set[2] for BTB to be invalidated on ICIALLU. This needs to
      be done unconditionally for Cortex-A15 processors. Provide a config
      option for platforms to enable this option based on impact analysis
      for products.
      
      NOTE: This patch in itself is NOT the final solution, this requires:
      a) Implementation of v7_arch_cp15_set_acr on SoCs which may not
         provide direct access to ACR register.
      b) Operating Systems such as Linux to provide adequate workaround in the
         right locations.
      c) This workaround applies to only the boot processor. It is important
         to apply workaround as necessary (context-save-restore) around low
         power context loss OR additional processors as necessary in either
         firmware support OR elsewhere in OS.
      
      [1] https://developer.arm.com/support/security-update
      [2] http://infocenter.arm.com/help/topic/com.arm.doc.ddi0438c/BABGHIBG.html
      
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Robin Murphy <robin.murphy@arm.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Christoffer Dall <christoffer.dall@linaro.org>
      Cc: Andre Przywara <Andre.Przywara@arm.com>
      Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Tested-by: NFabio Estevam <fabio.estevam@nxp.com>
      c2ca3fdf
    • N
      ARM: Introduce ability to enable ACR::IBE on Cortex-A8 for CVE-2017-5715 · 7b37a9c7
      Nishanth Menon 提交于
      As recommended by Arm in [1], IBE[2] has to be enabled unconditionally
      for BPIALL to be functional on Cortex-A8 processors. Provide a config
      option for platforms to enable this option based on impact analysis
      for products.
      
      NOTE: This patch in itself is NOT the final solution, this requires:
      a) Implementation of v7_arch_cp15_set_acr on SoCs which may not
         provide direct access to ACR register.
      b) Operating Systems such as Linux to provide adequate workaround in the right
         locations.
      c) This workaround applies to only the boot processor. It is important
         to apply workaround as necessary (context-save-restore) around low
         power context loss OR additional processors as necessary in either
         firmware support OR elsewhere in OS.
      
      [1] https://developer.arm.com/support/security-update
      [2] http://infocenter.arm.com/help/topic/com.arm.doc.ddi0344k/Bgbffjhh.html
      
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Robin Murphy <robin.murphy@arm.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Christoffer Dall <christoffer.dall@linaro.org>
      Cc: Andre Przywara <Andre.Przywara@arm.com>
      Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Tested-by: NFabio Estevam <fabio.estevam@nxp.com>
      7b37a9c7
    • J
      usb: sunxi: Use proper reg_mask for clock gate, reset · 9c22aec4
      Jagan Teki 提交于
      Masking clock gate, reset register bits based on the
      probed controller is proper only due to the assumption
      that masking should start with 0 even thought the controller
      has separate PHY or shared between OTG.
      
      unfortunately these are fixed due to lack of separate
      clock, reset drivers.
      
      Say for example EHCI1 - EHCI3 in the datasheet (EHCI0 is for the OTG)
      so we need to start reg_mask 0 - 2.
      
      This patch calculated the mask, based on the register base
      so that we can get the proper bits to set with respect to
      probed controller.
      
      We even do this masking by using PHY index specifier from dt,
      but dev_read_addr_size is failing for 64-bit boards.
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      9c22aec4
    • J
      sunxi: Fix USB PHY index for H3 · 9763df8b
      Jagan Teki 提交于
      This patch update the USB PHY index for Allwinner H3.
      
      Same change[1] initially sent, by 'Chen-Yu Tai' but missed
      to apply due to recursive version changes on the same series.
      
      [1] https://lists.denx.de/pipermail/u-boot/2018-January/318817.htmlSigned-off-by: NJagan Teki <jagan@amarulasolutions.com>
      9763df8b
    • Z
      usb: ohci: change the NUM_EDs from 8 to 32 · 11080bf6
      Zeng Tao 提交于
      For ohci, the maximam supported endpoint number is 32(in and out), and
      now we have used (usb_pipeendpoint(pipe) << 1) to index the specified
      endpoint descritor, usb_pipeendpoint(pipe) can reach 0xf, so we need
      change the NUM_EDs from 8 to 32.
      Signed-off-by: NZeng Tao <prime.zeng@hisilicon.com>
      11080bf6
    • V
      usb: sunxi: ohci: make ohci_t the first member in private data · ebbc23a0
      Vasily Khoruzhick 提交于
      ohci-hcd casts priv_data pointer to (ohci_t *), thus it must be
      the first member in private data struct.
      
      Fixes 831cc98b ("usb: sunxi: Simplify ccm reg base code")
      Signed-off-by: NVasily Khoruzhick <anarsoul@gmail.com>
      ebbc23a0
  5. 28 6月, 2018 4 次提交
  6. 27 6月, 2018 7 次提交