1. 01 11月, 2019 7 次提交
  2. 28 10月, 2019 8 次提交
    • B
      ARM: 8917/1: mm: include <asm/set_memory.h> · 9110f3e7
      Ben Dooks (Codethink) 提交于
      The definitions of set_kernel_text_rw() and
      set_kernel_text_ro() are in <asm/set_memory.h>
      but this is not included in init.c which defines
      these. Silence the following warnings by including
      the <asm/set_memory.h> header.
      
      arch/arm/mm/init.c:669:6: warning: symbol 'set_kernel_text_rw' was not declared. Should it be static?
      arch/arm/mm/init.c:678:6: warning: symbol 'set_kernel_text_ro' was not declared. Should it be static?
      Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      9110f3e7
    • B
      ARM: 8916/1: mm: make set_section_perms() static · ea5379be
      Ben Dooks (Codethink) 提交于
      The set_section_perms() is not defined outside of the
      init.c file, so make it static to avoid the following
      warning:
      
      arch/arm/mm/init.c:596:6: warning: symbol 'set_section_perms' was not declared. Should it be static?
      Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      ea5379be
    • B
      ARM: 8915/1: zImage: atags_to_fdt: fix __be32 and __be64 types · 43fa593e
      Ben Dooks (Codethink) 提交于
      There are some sparse warnings about type conversion in
      the atags_to_fdt.c code, due to __be32 and __be64, so
      fix the following:
      
      - Change _be32 and __be64 where appropriate
      - Change setprop() to take a 'void *'
      - Change incorrect fdt32_to_cpu() on FDT_MAGIC
      
      Fixes the following sparse warnings:
      
      arch/arm/boot/compressed/atags_to_fdt.c:66:29: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:66:29: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:66:29: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:66:29: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:66:29: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:66:29: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:141:34: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:141:34: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:141:34: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:141:34: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:141:34: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:141:34: warning: cast to restricted __be32
      arch/arm/boot/compressed/atags_to_fdt.c:182:60: warning: incorrect type in assignment (different base types)
      arch/arm/boot/compressed/atags_to_fdt.c:182:60:    expected unsigned long long [usertype]
      arch/arm/boot/compressed/atags_to_fdt.c:182:60:    got restricted __be64 [usertype]
      arch/arm/boot/compressed/atags_to_fdt.c:184:60: warning: incorrect type in assignment (different base types)
      arch/arm/boot/compressed/atags_to_fdt.c:184:60:    expected unsigned long long [usertype]
      arch/arm/boot/compressed/atags_to_fdt.c:184:60:    got restricted __be64 [usertype]
      arch/arm/boot/compressed/atags_to_fdt.c:187:62: warning: incorrect type in assignment (different base types)
      arch/arm/boot/compressed/atags_to_fdt.c:187:62:    expected unsigned int
      arch/arm/boot/compressed/atags_to_fdt.c:187:62:    got restricted __be32 [usertype]
      arch/arm/boot/compressed/atags_to_fdt.c:189:62: warning: incorrect type in assignment (different base types)
      arch/arm/boot/compressed/atags_to_fdt.c:189:62:    expected unsigned int
      arch/arm/boot/compressed/atags_to_fdt.c:189:62:    got restricted __be32 [usertype]
      Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      43fa593e
    • B
      ARM: 8913/1: arch_timer: include <asm/arch_timer.h> · 05b1fd8b
      Ben Dooks 提交于
      The arch_timer_arch_init is defined in <asm/arch_timer.h> so include
      that to fix the following sparse error:
      
      arch/arm/kernel/arch_timer.c:31:12: warning: symbol 'arch_timer_arch_init' was not declared. Should it be static?
      Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      05b1fd8b
    • B
      ARM: 8911/1: move pcibios_report_status to <asm/pci.h> · e3c5b361
      Ben Dooks 提交于
      Move the pcibios_report_status to <asm/pci.h> include to remove the
      following sparse warning and to remove the extra definition in the
      footbrdige dc21285.c driver:
      
      arch/arm/kernel/bios32.c:59:6: warning: symbol 'pcibios_report_status' was not declared. Should it be static?
      Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      e3c5b361
    • B
      ARM: 8910/1: fix missing declartion of module_frob_arch_sections · a959f887
      Ben Dooks 提交于
      The module_frob_arch_sections function is missing the header declaration
      which is in <linux/moduleloader.h> so include that to fix the following
      sparse warning:
      
      arch/arm/kernel/module-plts.c:188:5: warning: symbol 'module_frob_arch_sections' was not declared. Should it be static?
      Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      a959f887
    • B
      ARM: 8909/1: make unexported items static · 17fe8684
      Ben Dooks 提交于
      Fixup the following sparse warnings by making the functions and structures
      static.
      
      arch/arm/mm/dma-mapping.c:1562:6: warning: symbol '__arm_iommu_free_attrs' was not declared. Should it be static?
      arch/arm/mm/dma-mapping.c:1586:6: warning: symbol 'arm_iommu_free_attrs' was not declared. Should it be static?
      arch/arm/mm/dma-mapping.c:1592:6: warning: symbol 'arm_coherent_iommu_free_attrs' was not declared. Should it be static?
      arch/arm/mm/dma-mapping.c:1716:5: warning: symbol 'arm_coherent_iommu_map_sg' was not declared. Should it be static?
      arch/arm/mm/dma-mapping.c:1734:5: warning: symbol 'arm_iommu_map_sg' was not declared. Should it be static?
      arch/arm/mm/dma-mapping.c:1767:6: warning: symbol 'arm_coherent_iommu_unmap_sg' was not declared. Should it be static?
      arch/arm/mm/dma-mapping.c:1784:6: warning: symbol 'arm_iommu_unmap_sg' was not declared. Should it be static?
      arch/arm/mm/dma-mapping.c:1798:6: warning: symbol 'arm_iommu_sync_sg_for_cpu' was not declared. Should it be static?
      arch/arm/mm/dma-mapping.c:1816:6: warning: symbol 'arm_iommu_sync_sg_for_device' was not declared. Should it be static?
      arch/arm/mm/dma-mapping.c:2018:26: warning: symbol 'iommu_ops' was not declared. Should it be static?
      arch/arm/mm/dma-mapping.c:2040:26: warning: symbol 'iommu_coherent_ops' was not declared. Should it be static?
      Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      17fe8684
    • C
      ARM: 8907/1: arch: reuse addr variable in pfn_valid · 032be728
      Clemens Gruber 提交于
      Avoid calling __pfn_to_phys twice.
      Signed-off-by: NClemens Gruber <clemens.gruber@pqgruber.com>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      032be728
  3. 25 10月, 2019 1 次提交
  4. 22 10月, 2019 1 次提交
    • A
      ARM: 8926/1: v7m: remove register save to stack before svc · 2ecb2879
      afzal mohammed 提交于
      r0-r3 & r12 registers are saved & restored, before & after svc
      respectively. Intention was to preserve those registers across thread to
      handler mode switch.
      
      On v7-M, hardware saves the register context upon exception in AAPCS
      complaint way. Restoring r0-r3 & r12 is done from stack location where
      hardware saves it, not from the location on stack where these registers
      were saved.
      
      To clarify, on stm32f429 discovery board:
      
      1. before svc, sp - 0x90009ff8
      2. r0-r3,r12 saved to 0x90009ff8 - 0x9000a00b
      3. upon svc, h/w decrements sp by 32 & pushes registers onto stack
      4. after svc,  sp - 0x90009fd8
      5. r0-r3,r12 restored from 0x90009fd8 - 0x90009feb
      
      Above means r0-r3,r12 is not restored from the location where they are
      saved, but since hardware pushes the registers onto stack, the registers
      are restored correctly.
      
      Note that during register saving to stack (step 2), it goes past
      0x9000a000. And it seems, based on objdump, there are global symbols
      residing there, and it perhaps can cause issues on a non-XIP Kernel
      (on XIP, data section is setup later).
      
      Based on the analysis above, manually saving registers onto stack is at
      best no-op and at worst can cause data section corruption. Hence remove
      storing of registers onto stack before svc.
      
      Fixes: b70cd406 ("ARM: 8671/1: V7M: Preserve registers across switch from Thread to Handler mode")
      Signed-off-by: Nafzal mohammed <afzal.mohd.ma@gmail.com>
      Acked-by: NVladimir Murzin <vladimir.murzin@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      2ecb2879
  5. 19 10月, 2019 1 次提交
    • S
      ARM: dts: bcm2837-rpi-cm3: Avoid leds-gpio probing issue · 626c45d2
      Stefan Wahren 提交于
      bcm2835-rpi.dtsi defines the behavior of the ACT LED, which is available
      on all Raspberry Pi boards. But there is no driver for this particual
      GPIO on CM3 in mainline yet, so this node was left incomplete without
      the actual GPIO definition. Since commit 025bf377 ("gpio: Fix return
      value mismatch of function gpiod_get_from_of_node()") this causing probe
      issues of the leds-gpio driver for users of the CM3 dtsi file.
      
        leds-gpio: probe of leds failed with error -2
      
      Until we have the necessary GPIO driver hide the ACT node for CM3
      to avoid this.
      Reported-by: NFredrik Yhlen <fredrik.yhlen@endian.se>
      Signed-off-by: NStefan Wahren <wahrenst@gmx.net>
      Fixes: a54fe8a6 ("ARM: dts: add Raspberry Pi Compute Module 3 and IO board")
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Krzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      626c45d2
  6. 18 10月, 2019 2 次提交
    • S
      ARM: OMAP2+: Add pdata for OMAP3 ISP IOMMU · 0af3e1a4
      Suman Anna 提交于
      The OMAP3 ISP IOMMU does not have any reset lines, so it didn't
      need any pdata previously. The OMAP IOMMU driver now requires the
      platform data ops for device_enable/idle on all the IOMMU devices
      after commit db8918f6 ("iommu/omap: streamline enable/disable
      through runtime pm callbacks") to enable/disable the clocks properly
      and maintain the reference count and the omap_hwmod state machine.
      So, add these callbacks through iommu pdata quirks for the OMAP3
      ISP IOMMU.
      Signed-off-by: NSuman Anna <s-anna@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      0af3e1a4
    • S
      ARM: OMAP2+: Plug in device_enable/idle ops for IOMMUs · 19feeee5
      Suman Anna 提交于
      The OMAP IOMMU driver requires the device_enable/idle platform
      data ops on all the IOMMU devices to be able to enable and disable
      the clocks after commit db8918f6 ("iommu/omap: streamline
      enable/disable through runtime pm callbacks"). Plug in these
      pdata ops for all the existing IOMMUs through pdata quirks to
      maintain functionality.
      Signed-off-by: NSuman Anna <s-anna@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      19feeee5
  7. 17 10月, 2019 2 次提交
  8. 16 10月, 2019 2 次提交
  9. 14 10月, 2019 4 次提交
  10. 11 10月, 2019 2 次提交
  11. 10 10月, 2019 3 次提交
    • R
      ARM: mm: alignment: use "u32" for 32-bit instructions · 1bb9fb0a
      Russell King 提交于
      Rather than using "unsigned long", use "u32" for 32-bit instructions in
      the alignment fault handler.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      1bb9fb0a
    • R
      ARM: mm: fix alignment handler faults under memory pressure · 67e15fa5
      Russell King 提交于
      When the system has high memory pressure, the page containing the
      instruction may be paged out.  Using probe_kernel_address() means that
      if the page is swapped out, the resulting page fault will not be
      handled because page faults are disabled by this function.
      
      Use get_user() to read the instruction instead.
      Reported-by: NJing Xiangfeng <jingxiangfeng@huawei.com>
      Fixes: b255188f ("ARM: fix scheduling while atomic warning in alignment handling code")
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      67e15fa5
    • T
      ARM: dts: Use level interrupt for omap4 & 5 wlcore · 087a2b7e
      Tony Lindgren 提交于
      Commit 572cf7d7 ("ARM: dts: Improve omap l4per idling with wlcore edge
      sensitive interrupt") changed wlcore interrupts to use edge interrupt based
      on what's specified in the wl1835mod.pdf data sheet.
      
      However, there are still cases where we can have lost interrupts as
      described in omap_gpio_unidle(). And using a level interrupt instead of edge
      interrupt helps as we avoid the check for untriggered GPIO interrupts in
      omap_gpio_unidle().
      
      And with commit e6818d29 ("gpio: gpio-omap: configure edge detection
      for level IRQs for idle wakeup") GPIOs idle just fine with level interrupts.
      
      Let's change omap4 and 5 wlcore users back to using level interrupt
      instead of edge interrupt. Let's not change the others as I've only seen
      this on omap4 and 5, probably because the other SoCs don't have l4per idle
      independent of the CPUs.
      
      Fixes: 572cf7d7 ("ARM: dts: Improve omap l4per idling with wlcore edge sensitive interrupt")
      Depends-on: e6818d29 ("gpio: gpio-omap: configure edge detection for level IRQs for idle wakeup")
      Cc: Anders Roxell <anders.roxell@linaro.org>
      Cc: Eyal Reizer <eyalr@ti.com>
      Cc: Guy Mishol <guym@ti.com>
      Cc: John Stultz <john.stultz@linaro.org>
      Cc: Ulf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      087a2b7e
  12. 08 10月, 2019 2 次提交
  13. 07 10月, 2019 1 次提交
  14. 05 10月, 2019 2 次提交
  15. 04 10月, 2019 2 次提交