1. 14 10月, 2021 1 次提交
  2. 07 10月, 2021 1 次提交
    • A
      qcom_scm: hide Kconfig symbol · 424953cf
      Arnd Bergmann 提交于
      Now that SCM can be a loadable module, we have to add another
      dependency to avoid link failures when ipa or adreno-gpu are
      built-in:
      
      aarch64-linux-ld: drivers/net/ipa/ipa_main.o: in function `ipa_probe':
      ipa_main.c:(.text+0xfc4): undefined reference to `qcom_scm_is_available'
      
      ld.lld: error: undefined symbol: qcom_scm_is_available
      >>> referenced by adreno_gpu.c
      >>>               gpu/drm/msm/adreno/adreno_gpu.o:(adreno_zap_shader_load) in archive drivers/built-in.a
      
      This can happen when CONFIG_ARCH_QCOM is disabled and we don't select
      QCOM_MDT_LOADER, but some other module selects QCOM_SCM. Ideally we'd
      use a similar dependency here to what we have for QCOM_RPROC_COMMON,
      but that causes dependency loops from other things selecting QCOM_SCM.
      
      This appears to be an endless problem, so try something different this
      time:
      
       - CONFIG_QCOM_SCM becomes a hidden symbol that nothing 'depends on'
         but that is simply selected by all of its users
      
       - All the stubs in include/linux/qcom_scm.h can go away
      
       - arm-smccc.h needs to provide a stub for __arm_smccc_smc() to
         allow compile-testing QCOM_SCM on all architectures.
      
       - To avoid a circular dependency chain involving RESET_CONTROLLER
         and PINCTRL_SUNXI, drop the 'select RESET_CONTROLLER' statement.
         According to my testing this still builds fine, and the QCOM
         platform selects this symbol already.
      Acked-by: NKalle Valo <kvalo@codeaurora.org>
      Acked-by: NAlex Elder <elder@linaro.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      424953cf
  3. 09 9月, 2021 1 次提交
    • R
      iommu: Clarify default domain Kconfig · 8cc63319
      Robin Murphy 提交于
      Although strictly it is the AMD and Intel drivers which have an existing
      expectation of lazy behaviour by default, it ends up being rather
      unintuitive to describe this literally in Kconfig. Express it instead as
      an architecture dependency, to clarify that it is a valid config-time
      decision. The end result is the same since virtio-iommu doesn't support
      lazy mode and thus falls back to strict at runtime regardless.
      
      The per-architecture disparity is a matter of historical expectations:
      the AMD and Intel drivers have been lazy by default since 2008, and
      changing that gets noticed by people asking where their I/O throughput
      has gone. Conversely, Arm-based systems with their wider assortment of
      IOMMU drivers mostly only support strict mode anyway; only the Arm SMMU
      drivers have later grown support for passthrough and lazy mode, for
      users who wanted to explicitly trade off isolation for performance.
      These days, reducing the default level of isolation in a way which may
      go unnoticed by users who expect otherwise hardly seems worth risking
      for the sake of one line of Kconfig, so here's where we are.
      Reported-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NRobin Murphy <robin.murphy@arm.com>
      Link: https://lore.kernel.org/r/69a0c6f17b000b54b8333ee42b3124c1d5a869e2.1631105737.git.robin.murphy@arm.comSigned-off-by: NJoerg Roedel <jroedel@suse.de>
      8cc63319
  4. 18 8月, 2021 1 次提交
  5. 12 8月, 2021 2 次提交
  6. 26 7月, 2021 3 次提交
  7. 20 7月, 2021 1 次提交
  8. 25 6月, 2021 2 次提交
  9. 07 4月, 2021 2 次提交
  10. 18 3月, 2021 1 次提交
  11. 23 11月, 2020 3 次提交
  12. 10 11月, 2020 1 次提交
  13. 29 9月, 2020 1 次提交
  14. 18 9月, 2020 1 次提交
  15. 29 7月, 2020 2 次提交
  16. 19 7月, 2020 1 次提交
  17. 10 7月, 2020 2 次提交
  18. 30 6月, 2020 1 次提交
  19. 23 6月, 2020 1 次提交
  20. 14 6月, 2020 1 次提交
    • M
      treewide: replace '---help---' in Kconfig files with 'help' · a7f7f624
      Masahiro Yamada 提交于
      Since commit 84af7a61 ("checkpatch: kconfig: prefer 'help' over
      '---help---'"), the number of '---help---' has been gradually
      decreasing, but there are still more than 2400 instances.
      
      This commit finishes the conversion. While I touched the lines,
      I also fixed the indentation.
      
      There are a variety of indentation styles found.
      
        a) 4 spaces + '---help---'
        b) 7 spaces + '---help---'
        c) 8 spaces + '---help---'
        d) 1 space + 1 tab + '---help---'
        e) 1 tab + '---help---'    (correct indentation)
        f) 1 tab + 1 space + '---help---'
        g) 1 tab + 2 spaces + '---help---'
      
      In order to convert all of them to 1 tab + 'help', I ran the
      following commend:
      
        $ find . -name 'Kconfig*' | xargs sed -i 's/^[[:space:]]*---help---/\thelp/'
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      a7f7f624
  21. 14 5月, 2020 1 次提交
  22. 29 4月, 2020 2 次提交
    • K
      iommu: spapr_tce: Disable compile testing to fix build on book3s_32 config · 9dd124b6
      Krzysztof Kozlowski 提交于
      Although SPAPR_TCE_IOMMU itself can be compile tested on certain PowerPC
      configurations, its presence makes arch/powerpc/kvm/Makefile to select
      modules which do not build in such configuration.
      
      The arch/powerpc/kvm/ modules use kvm_arch.spapr_tce_tables which exists
      only with CONFIG_PPC_BOOK3S_64.  However these modules are selected when
      COMPILE_TEST and SPAPR_TCE_IOMMU are chosen leading to build failures:
      
          In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:0,
                           from arch/powerpc/kvm/book3s_64_vio_hv.c:22:
          arch/powerpc/include/asm/book3s/64/pgtable.h:17:0: error: "_PAGE_EXEC" redefined [-Werror]
           #define _PAGE_EXEC  0x00001 /* execute permission */
      
          In file included from arch/powerpc/include/asm/book3s/32/pgtable.h:8:0,
                           from arch/powerpc/include/asm/book3s/pgtable.h:8,
                           from arch/powerpc/include/asm/pgtable.h:18,
                           from include/linux/mm.h:95,
                           from arch/powerpc/include/asm/io.h:29,
                           from include/linux/io.h:13,
                           from include/linux/irq.h:20,
                           from arch/powerpc/include/asm/hardirq.h:6,
                           from include/linux/hardirq.h:9,
                           from include/linux/kvm_host.h:7,
                           from arch/powerpc/kvm/book3s_64_vio_hv.c:12:
          arch/powerpc/include/asm/book3s/32/hash.h:29:0: note: this is the location of the previous definition
           #define _PAGE_EXEC 0x200 /* software: exec allowed */
      
      Fixes: e93a1695 ("iommu: Enable compile testing for some of drivers")
      Reported-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NKrzysztof Kozlowski <krzk@kernel.org>
      Link: https://lore.kernel.org/r/20200414142630.21153-1-krzk@kernel.orgSigned-off-by: NJoerg Roedel <jroedel@suse.de>
      9dd124b6
    • G
      iommu/mediatek: Fix MTK_IOMMU dependencies · d1dcb725
      Geert Uytterhoeven 提交于
      If NO_DMA=y (e.g. Sun-3 all{mod,yes}-config):
      
          drivers/iommu/dma-iommu.o: In function `iommu_dma_mmap':
          dma-iommu.c:(.text+0x836): undefined reference to `dma_pgprot'
      
      IOMMU_DMA must not be selected, unless HAS_DMA=y.
      
      Hence fix this by making MTK_IOMMU depend on HAS_DMA.
      While at it, remove the dependency on ARM || ARM64, as that is already
      implied by the dependency on ARCH_MEDIATEK.
      
      Fixes: e93a1695 ("iommu: Enable compile testing for some of drivers")
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Link: https://lore.kernel.org/r/20200410143047.19691-1-geert@linux-m68k.orgSigned-off-by: NJoerg Roedel <jroedel@suse.de>
      d1dcb725
  23. 27 3月, 2020 1 次提交
  24. 04 3月, 2020 1 次提交
  25. 28 2月, 2020 1 次提交
  26. 07 1月, 2020 2 次提交
  27. 23 12月, 2019 3 次提交