1. 18 Sep, 2019 1 commit
  2. 12 Aug, 2019 20 commits
  3. 19 Jul, 2019 1 commit
    • Thomas Tai's avatar
      iscsi_ibft: make ISCSI_IBFT dependson ACPI instead of ISCSI_IBFT_FIND · 94bccc34
      Thomas Tai authored
      iscsi_ibft can use ACPI to find the iBFT entry during bootup,
      currently, ISCSI_IBFT depends on ISCSI_IBFT_FIND which is
      a X86 legacy way to find the iBFT by searching through the
      low memory. This patch changes the dependency so that other
      arch like ARM64 can use ISCSI_IBFT as long as the arch supports
      ibft_init() needs to use the global variable ibft_addr declared
      in iscsi_ibft_find.c. A #ifndef CONFIG_ISCSI_IBFT_FIND is needed
      to declare the variable if CONFIG_ISCSI_IBFT_FIND is not selected.
      Moving ibft_addr into the iscsi_ibft.c does not work because if
      ISCSI_IBFT is selected as a module, the arch/x86/kernel/setup.c won't
      be able to find the variable at compile time.
      Signed-off-by: default avatarThomas Tai <thomas.tai@oracle.com>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
  4. 25 Jun, 2019 2 commits
  5. 24 Jun, 2019 5 commits
  6. 22 Jun, 2019 1 commit
    • Tian Baofeng's avatar
      efibc: Replace variable set function in notifier call · 975a6166
      Tian Baofeng authored
      Replace the variable set function from "efivar_entry_set" to
      "efivar_entry_set_safe" in efibc panic notifier.
      In safe function parameter "block" will set to false
      and will call "efivar_entry_set_nonblocking"to set efi variables.
      efivar_entry_set_nonblocking is guaranteed to
      not block and is suitable for calling from crash/panic handlers.
      In UEFI android platform, when warm reset happens,
      with this change, efibc will not block the reboot process.
      Otherwise, set variable will call queue work and send to other offlined
      cpus then cause another panic, finally will cause reboot failure.
      Signed-off-by: default avatarTian Baofeng <baofeng.tian@intel.com>
      Signed-off-by: default avatarLuo XinanX <xinanx.luo@intel.com>
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
  7. 19 Jun, 2019 6 commits
  8. 18 Jun, 2019 1 commit
    • Arnd Bergmann's avatar
      firmware: trusted_foundations: add ARMv7 dependency · cad47b32
      Arnd Bergmann authored
      The "+sec" extension is invalid for older ARM architectures, but
      the code can now be built on any ARM configuration:
      /tmp/trusted_foundations-2d0882.s: Assembler messages:
      /tmp/trusted_foundations-2d0882.s:194: Error: architectural extension `sec' is not allowed for the current base architecture
      /tmp/trusted_foundations-2d0882.s:201: Error: selected processor does not support `smc #0' in ARM mode
      /tmp/trusted_foundations-2d0882.s:213: Error: architectural extension `sec' is not allowed for the current base architecture
      /tmp/trusted_foundations-2d0882.s:220: Error: selected processor does not support `smc #0' in ARM mode
      Add a dependency on ARMv7 for the build.
      Fixes: 4cb5d9ec
       ("firmware: Move Trusted Foundations support")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
  9. 17 Jun, 2019 1 commit
    • Jean-Philippe Brucker's avatar
      firmware/psci: psci_checker: Park kthreads before stopping them · 92e074ac
      Jean-Philippe Brucker authored
      Since commit 85f1abe0 ("kthread, sched/wait: Fix kthread_parkme()
      completion issue"), kthreads that are bound to a CPU must be parked
      before being stopped. At the moment the PSCI checker calls
      kthread_stop() directly on the suspend kthread, which triggers the
      following warning:
      [    6.068288] WARNING: CPU: 1 PID: 1 at kernel/kthread.c:398 __kthread_bind_mask+0x20/0x78
      [    6.190151] Call trace:
      [    6.192566]  __kthread_bind_mask+0x20/0x78
      [    6.196615]  kthread_unpark+0x74/0x80
      [    6.200235]  kthread_stop+0x44/0x1d8
      [    6.203769]  psci_checker+0x3bc/0x484
      [    6.207389]  do_one_initcall+0x48/0x260
      [    6.211180]  kernel_init_freeable+0x2c8/0x368
      [    6.215488]  kernel_init+0x10/0x100
      [    6.218935]  ret_from_fork+0x10/0x1c
      [    6.222467] ---[ end trace e05e22863d043cd3 ]---
      kthread_unpark() tries to bind the thread to its CPU and aborts with a
      WARN() if the thread wasn't in TASK_PARKED state. Park the kthreads
      before stopping them.
      Fixes: 85f1abe0
       ("kthread, sched/wait: Fix kthread_parkme() completion issue")
      Signed-off-by: default avatarJean-Philippe Brucker <jean-philippe.brucker@arm.com>
      Reviewed-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
      Acked-by: Lorenzo Pieralisi's avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
  10. 14 Jun, 2019 2 commits
    • Mauro Carvalho Chehab's avatar
      docs: kbuild: convert docs to ReST and rename to *.rst · cd238eff
      Mauro Carvalho Chehab authored
      The kbuild documentation clearly shows that the documents
      there are written at different times: some use markdown,
      some use their own peculiar logic to split sections.
      Convert everything to ReST without affecting too much
      the author's style and avoiding adding uneeded markups.
      The conversion is actually:
        - add blank lines and identation in order to identify paragraphs;
        - fix tables markups;
        - add some lists markups;
        - mark literal blocks;
        - adjust title markups.
      At its new index.rst, let's add a :orphan: while this is not linked to
      the main index.rst file, in order to avoid build warnings.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    • Bitan Biswas's avatar
      firmware: tegra: Early resume BPMP · 61ed7ef9
      Bitan Biswas authored
      Early resume Tegra BPMP to fix Xavier clock rate error as follows:
      	[  159.017101] of_serial 3110000.serial: calling platform_pm_resume+0x0/0x58 @ 317, parent: cbb
      	[  159.025501] of_serial 3110000.serial: platform_pm_resume+0x0/0x58 returned 0 after 14 usecs
      	[  159.033694] tegra-i2c 31c0000.i2c: calling platform_pm_resume+0x0/0x58 @ 317, parent: cbb
      	[  159.042254] tegra-i2c 31c0000.i2c: failed changing clock rate: -22
      	[  159.048216] PM: dpm_run_callback(): platform_pm_resume+0x0/0x58 returns -22
      	[  159.055553] tegra-i2c 31c0000.i2c: platform_pm_resume+0x0/0x58 returned -22 after 13072 usecs
      	[  159.063875] PM: Device 31c0000.i2c failed to resume: error -22
      Signed-off-by: default avatarBitan Biswas <bbiswas@nvidia.com>
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>