Skip to content
  1. Nov 12, 2019
  2. Oct 05, 2019
  3. Oct 04, 2019
  4. Oct 03, 2019
  5. Oct 02, 2019
    • Christophe JAILLET's avatar
      mips: Loongson: Fix the link time qualifier of 'serial_exit()' · 25b69a88
      Christophe JAILLET authored
      
      
      'exit' functions should be marked as __exit, not __init.
      
      Fixes: 85cc0288 ("mips: make loongsoon serial driver explicitly modular")
      Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Cc: chenhc@lemote.com
      Cc: ralf@linux-mips.org
      Cc: jhogan@kernel.org
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: kernel-janitors@vger.kernel.org
      25b69a88
    • Thomas Bogendoerfer's avatar
      MIPS: init: Prevent adding memory before PHYS_OFFSET · bd848d1b
      Thomas Bogendoerfer authored
      
      
      On some SGI machines (IP28 and IP30) a small region of memory is mirrored
      to pyhsical address 0 for exception vectors while rest of the memory
      is reachable at a higher physical address. ARC PROM marks this
      region as reserved, but with commit a94e4f24 ("MIPS: init: Drop
      boot_mem_map") this chunk is used, when searching for start of ram,
      which breaks at least IP28 and IP30 machines. To fix this
      add_region_memory() checks for start address < PHYS_OFFSET and ignores
      these chunks.
      
      Fixes: a94e4f24 ("MIPS: init: Drop boot_mem_map")
      Signed-off-by: default avatarThomas Bogendoerfer <tbogendoerfer@suse.de>
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: James Hogan <jhogan@kernel.org>
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      bd848d1b
    • Thomas Bogendoerfer's avatar
      MIPS: init: Fix reservation of memory between PHYS_OFFSET and mem start · 66b416ee
      Thomas Bogendoerfer authored
      
      
      Fix calculation of the size for reserving memory between PHYS_OFFSET
      and real memory start.
      
      Fixes: a94e4f24 ("MIPS: init: Drop boot_mem_map")
      Signed-off-by: default avatarThomas Bogendoerfer <tbogendoerfer@suse.de>
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: James Hogan <jhogan@kernel.org>
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      66b416ee
    • Paul Burton's avatar
      MIPS: VDSO: Fix build for binutils < 2.25 · 8919975b
      Paul Burton authored
      
      
      Versions of binutils prior to 2.25 are unable to link our VDSO due to an
      unsupported R_MIPS_PC32 relocation generated by the ".word _start - ."
      line of the inline asm in get_vdso_base(). As such, the intent is that
      when building with binutils older than 2.25 we don't build code for
      gettimeofday() & friends in the VDSO that rely upon get_vdso_base().
      
      Commit 24640f23 ("mips: Add support for generic vDSO") converted us
      to using generic VDSO infrastructure, and as part of that the
      gettimeofday() functionality moved to a new vgettimeofday.c file. The
      check for binutils < 2.25 wasn't updated to handle this new filename,
      and so it continues trying to remove the old unused filename from the
      build. The end result is that we try to include the gettimeofday() code
      in builds that will fail to link.
      
      Fix this by updating the binutils < 2.25 case to remove vgettimeofday.c
      from obj-vdso-y, rather than gettimeofday.c.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Fixes: 24640f23 ("mips: Add support for generic vDSO")
      Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
      Cc: linux-mips@vger.kernel.org
      8919975b
    • Paul Burton's avatar
      MIPS: VDSO: Remove unused gettimeofday.c · 90800281
      Paul Burton authored
      
      
      arch/mips/vdso/gettimeofday.c has been unused since commit 24640f23
      ("mips: Add support for generic vDSO"). Remove the dead code.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Fixes: 24640f23 ("mips: Add support for generic vDSO")
      Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
      Cc: linux-mips@vger.kernel.org
      90800281
    • Paul Burton's avatar
      MIPS: Wire up clone3 syscall · 0671c5b8
      Paul Burton authored
      Wire up the new clone3 syscall for MIPS, using save_static_function() to
      generate a wrapper that saves registers $s0-$s7 prior to invoking the
      generic sys_clone3 function just like we do for plain old clone.
      
      Tested atop 64r6el_defconfig using o32, n32 & n64 builds of the simple
      test program from:
      
        https://lore.kernel.org/lkml/20190716130631.tohj4ub54md25dys@brauner.io/
      
      
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Cc: Christian Brauner <christian@brauner.io>
      Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
      Cc: linux-mips@vger.kernel.org
      0671c5b8
    • Paul Burton's avatar
      MIPS: octeon: Include required header; fix octeon ethernet build · 0228ecf6
      Paul Burton authored
      
      
      Commit 171a9bae ("staging/octeon: Allow test build on !MIPS") moved
      the inclusion of a bunch of headers by various files in the Octeon
      ethernet driver into a common header, but in doing so it changed the
      order in which those headers are included.
      
      Prior to the referenced commit drivers/staging/octeon/ethernet.c
      included asm/octeon/cvmx-pip.h before asm/octeon/cvmx-ipd.h, which makes
      use of the CVMX_PIP_SFT_RST definition pulled in by the former. After
      commit 171a9bae ("staging/octeon: Allow test build on !MIPS") we
      pull in asm/octeon/cvmx-ipd.h first & builds fail with:
      
        In file included from drivers/staging/octeon/octeon-ethernet.h:27,
                         from drivers/staging/octeon/ethernet.c:22:
        arch/mips/include/asm/octeon/cvmx-ipd.h: In function 'cvmx_ipd_free_ptr':
        arch/mips/include/asm/octeon/cvmx-ipd.h:330:27: error: storage size of
          'pip_sft_rst' isn't known
            union cvmx_pip_sft_rst pip_sft_rst;
                                   ^~~~~~~~~~~
        arch/mips/include/asm/octeon/cvmx-ipd.h:331:36: error: 'CVMX_PIP_SFT_RST'
          undeclared (first use in this function); did you mean 'CVMX_CIU_SOFT_RST'?
            pip_sft_rst.u64 = cvmx_read_csr(CVMX_PIP_SFT_RST);
                                            ^~~~~~~~~~~~~~~~
                                            CVMX_CIU_SOFT_RST
        arch/mips/include/asm/octeon/cvmx-ipd.h:331:36: note: each undeclared
          identifier is reported only once for each function it appears in
        arch/mips/include/asm/octeon/cvmx-ipd.h:330:27: warning: unused variable
          'pip_sft_rst' [-Wunused-variable]
            union cvmx_pip_sft_rst pip_sft_rst;
                                   ^~~~~~~~~~~
        make[4]: *** [scripts/Makefile.build:266: drivers/staging/octeon/ethernet.o]
          Error 1
        make[3]: *** [scripts/Makefile.build:509: drivers/staging/octeon] Error 2
      
      Fix this by having asm/octeon/cvmx-ipd.h include the
      asm/octeon/cvmx-pip-defs.h header that it is reliant upon, rather than
      requiring its users to pull in that header before it.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Fixes: 171a9bae ("staging/octeon: Allow test build on !MIPS")
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
      Cc: linux-mips@vger.kernel.org
      Cc: David S . Miller <davem@davemloft.net>
      Cc: Matthew Wilcox <willy@infradead.org>
      0228ecf6
    • Juergen Gross's avatar
      xen/efi: have a common runtime setup function · 09515706
      Juergen Gross authored
      
      
      Today the EFI runtime functions are setup in architecture specific
      code (x86 and arm), with the functions themselves living in drivers/xen
      as they are not architecture dependent.
      
      As the setup is exactly the same for arm and x86 move the setup to
      drivers/xen, too. This at once removes the need to make the single
      functions global visible.
      
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      Reviewed-by: default avatarJan Beulich <jbeulich@suse.com>
      [boris: "Dropped EXPORT_SYMBOL_GPL(xen_efi_runtime_setup)"]
      Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      09515706
    • Peng Fan's avatar
      arm: xen: mm: use __GPF_DMA32 for arm64 · ec066de1
      Peng Fan authored
      
      
      arm64 shares some code under arch/arm/xen, including mm.c.
      However ZONE_DMA is removed by commit
      ad67f5a6("arm64: replace ZONE_DMA with ZONE_DMA32").
      
      So add a check if CONFIG_ZONE_DMA32 is enabled use __GFP_DMA32.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Acked-by: default avatarStefano Stabellini <sstabellini@kernel.org>
      Signed-off-by: default avatarStefano Stabellini <sstabellini@kernel.org>
      ec066de1
  6. Oct 01, 2019
  7. Sep 30, 2019
Loading