Skip to content
  1. Feb 08, 2021
  2. Feb 05, 2021
  3. Feb 02, 2021
    • Douglas Anderson's avatar
      iommu: Properly pass gfp_t in _iommu_map() to avoid atomic sleeping · b8437a3e
      Douglas Anderson authored
      Sleeping while atomic = bad.  Let's fix an obvious typo to try to avoid it.
      
      The warning that was seen (on a downstream kernel with the problematic
      patch backported):
      
       BUG: sleeping function called from invalid context at mm/page_alloc.c:4726
       in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 9, name: ksoftirqd/0
       CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 5.4.93-12508-gc10c93e28e39 #1
       Call trace:
        dump_backtrace+0x0/0x154
        show_stack+0x20/0x2c
        dump_stack+0xa0/0xfc
        ___might_sleep+0x11c/0x12c
        __might_sleep+0x50/0x84
        __alloc_pages_nodemask+0xf8/0x2bc
        __arm_lpae_alloc_pages+0x48/0x1b4
        __arm_lpae_map+0x124/0x274
        __arm_lpae_map+0x1cc/0x274
        arm_lpae_map+0x140/0x170
        arm_smmu_map+0x78/0xbc
        __iommu_map+0xd4/0x210
        _iommu_map+0x4c/0x84
        iommu_map_atomic+0x44/0x58
        __iommu_dma_map+0x8c/0xc4
        iommu_dma_map_page+0xac/0xf0
      
      Fixes: d8c1df02
      
       ("iommu: Move iotlb_sync_map out from __iommu_map")
      Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
      Reviewed-by: default avatarYong Wu <yong.wu@mediatek.com>
      Acked-by: default avatarWill Deacon <will@kernel.org>
      Link: https://lore.kernel.org/r/20210201170611.1.I64a7b62579287d668d7c89e105dcedf45d641063@changeid
      Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
      b8437a3e
    • Joerg Roedel's avatar
      Merge tag 'arm-smmu-updates' of... · d1e3306b
      Joerg Roedel authored
      Merge tag 'arm-smmu-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into arm/smmu
      
      Arm SMMU updates for 5.12
      
      - Support for MT8192 IOMMU from Mediatek
      
      - Arm v7s io-pgtable extensions for MT8192
      
      - Removal of TLBI_ON_MAP quirk
      
      - New Qualcomm compatible strings
      
      - Allow SVA without hardware broadcast TLB maintenance on SMMUv3
      
      - Virtualization Host Extension support for SMMUv3 (SVA)
      
      - Allow SMMUv3 PMU (perf) driver to be built independently from IOMMU
      
      - Misc cleanups
      d1e3306b
  4. Feb 01, 2021
  5. Jan 29, 2021