1. 14 May, 2019 1 commit
    • Ira Weiny's avatar
      mm/gup: change GUP fast to use flags rather than a write 'bool' · 73b0140b
      Ira Weiny authored
      To facilitate additional options to get_user_pages_fast() change the
      singular write parameter to be gup_flags.
      This patch does not change any functionality.  New functionality will
      follow in subsequent patches.
      Some of the get_user_pages_fast() call sites were unchanged because they
      already passed FOLL_WRITE or 0 for the write parameter.
      NOTE: It was suggested to change the ordering of the get_user_pages_fast()
      arguments to ensure that callers were converted.  This breaks the current
      GUP call site convention of having the returned pages be the final
      parameter.  So the suggestion was rejected.
      Link: http://lkml.kernel.org/r/20190328084422.29911-4-ira.weiny@intel.com
      Link: http://lkml.kernel.org/r/20190317183438.2057-4-ira.weiny@intel.com
      Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
      Reviewed-by: default avatarMike Marshall <hubcap@omnibond.com>
      Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Hogan <jhogan@kernel.org>
      Cc: Jason Gunthorpe <jgg@ziepe.ca>
      Cc: John Hubbard <jhubbard@nvidia.com>
      Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Michal Hocko <mhocko@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Rich Felker <dalias@libc.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
  2. 20 Jun, 2018 1 commit
  3. 07 May, 2018 1 commit
  4. 09 Jan, 2018 1 commit
  5. 28 Dec, 2017 3 commits
  6. 15 Dec, 2017 4 commits
  7. 04 Aug, 2017 1 commit
  8. 09 Mar, 2017 1 commit
    • Jens Wiklander's avatar
      tee: generic TEE subsystem · 967c9cca
      Jens Wiklander authored
      Initial patch for generic TEE subsystem.
      This subsystem provides:
      * Registration/un-registration of TEE drivers.
      * Shared memory between normal world and secure world.
      * Ioctl interface for interaction with user space.
      * Sysfs implementation_id of TEE driver
      A TEE (Trusted Execution Environment) driver is a driver that interfaces
      with a trusted OS running in some secure environment, for example,
      TrustZone on ARM cpus, or a separate secure co-processor etc.
      The TEE subsystem can serve a TEE driver for a Global Platform compliant
      TEE, but it's not limited to only Global Platform TEEs.
      This patch builds on other similar implementations trying to solve
      the same problem:
      * "optee_linuxdriver" by among others
        Jean-michel DELORME<jean-michel.delorme@st.com> and
        Emmanuel MICHEL <emmanuel.michel@st.com>
      * "Generic TrustZone Driver" by Javier González <javier@javigon.com>
      Acked-by: default avatarAndreas Dannenberg <dannenberg@ti.com>
      Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey)
      Tested-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> (RCAR H3)
      Tested-by: default avatarScott Branden <scott.branden@broadcom.com>
      Reviewed-by: default avatarJavier González <javier@javigon.com>
      Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>