1. 08 5月, 2015 3 次提交
  2. 06 5月, 2015 27 次提交
  3. 05 5月, 2015 10 次提交
    • D
      efi: Fix error handling in add_sysfs_runtime_map_entry() · d67e1996
      Dan Carpenter 提交于
      I spotted two (difficult to hit) bugs while reviewing this.
      
      1)  There is a double free bug because we unregister "map_kset" in
          add_sysfs_runtime_map_entry() and also efi_runtime_map_init().
      2)  If we fail to allocate "entry" then we should return
          ERR_PTR(-ENOMEM) instead of NULL.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Cc: Dave Young <dyoung@redhat.com>
      Cc: Guangyu Sun <guangyu.sun@oracle.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NMatt Fleming <matt.fleming@intel.com>
      d67e1996
    • L
      IB/qib: use arch_phys_wc_add() · d4988623
      Luis R. Rodriguez 提交于
      This driver already makes use of ioremap_wc() on PIO buffers,
      so convert it to use arch_phys_wc_add().
      
      The qib driver uses a mmap() special case for when PAT is
      not used, this behaviour used to be determined with a
      module parameter but since we have been asked to just
      remove that module parameter this checks for the WC cookie,
      if not set we can assume PAT was used. If its set we do
      what we used to do for the mmap for when MTRR was enabled.
      
      The removal of the module parameter is OK given that Andy
      notes that even if users of module parameter are still around
      it will not prevent loading of the module on recent kernels.
      
      Cc: Doug Ledford <dledford@redhat.com>
      Cc: Toshi Kani <toshi.kani@hp.com>
      Cc: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
      Cc: Mike Marciniszyn <mike.marciniszyn@intel.com>
      Cc: Roland Dreier <roland@purestorage.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Suresh Siddha <sbsiddha@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Juergen Gross <jgross@suse.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Antonino Daplas <adaplas@gmail.com>
      Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Cc: Stefan Bader <stefan.bader@canonical.com>
      Cc: konrad.wilk@oracle.com
      Cc: ville.syrjala@linux.intel.com
      Cc: david.vrabel@citrix.com
      Cc: jbeulich@suse.com
      Cc: Roger Pau Monné <roger.pau@citrix.com>
      Cc: infinipath@intel.com
      Cc: linux-rdma@vger.kernel.org
      Cc: linux-fbdev@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: xen-devel@lists.xensource.com
      Signed-off-by: NLuis R. Rodriguez <mcgrof@suse.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      d4988623
    • L
      IB/qib: add acounting for MTRR · 87a26e97
      Luis R. Rodriguez 提交于
      There is no good reason not to, we eventually delete it as well.
      
      Cc: Toshi Kani <toshi.kani@hp.com>
      Cc: Suresh Siddha <sbsiddha@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Juergen Gross <jgross@suse.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Antonino Daplas <adaplas@gmail.com>
      Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Mike Marciniszyn <infinipath@intel.com>
      Cc: Roland Dreier <roland@kernel.org>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: linux-rdma@vger.kernel.org
      Cc: linux-fbdev@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NLuis R. Rodriguez <mcgrof@suse.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      87a26e97
    • G
      IB/core: dma unmap optimizations · 325ad061
      Guy Shapiro 提交于
      While unmapping an ODP writable page, the dirty bit of the page is set. In
      order to do so, the head of the compound page is found.
      Currently, the compound head is found even on non-writable pages, where it is
      never used, leading to unnecessary cpu barrier that impacts performance.
      
      This patch moves the search for the compound head to be done only when needed.
      Signed-off-by: NGuy Shapiro <guysh@mellanox.com>
      Acked-by: NShachar Raindel <raindel@mellanox.com>
      Reviewed-by: NSagi Grimberg <sagig@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      325ad061
    • G
      IB/core: dma map/unmap locking optimizations · c1d383b5
      Guy Shapiro 提交于
      Currently, while mapping or unmapping pages for ODP, the umem mutex is locked
      and unlocked once for each page. Such lock/unlock operation take few tens to
      hundreds of nsecs. This makes a significant impact when mapping or unmapping few
      MBs of memory.
      
      To avoid this, the mutex should be locked only once per operation, and not per
      page.
      Signed-off-by: NGuy Shapiro <guysh@mellanox.com>
      Acked-by: NShachar Raindel <raindel@mellanox.com>
      Reviewed-by: NSagi Grimberg <sagig@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      c1d383b5
    • S
      RDMA/cxgb4: Report the actual address of the remote connecting peer · 5b6b8fe6
      Steve Wise 提交于
      Get the actual (non-mapped) ip/tcp address of the connecting peer from
      the port mapper
      
      Also setup the passive side endpoint to correctly display the actual
      and mapped addresses for the new connection.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      5b6b8fe6
    • T
      RDMA/nes: Report the actual address of the remote connecting peer · 230da36a
      Tatyana Nikolova 提交于
      Get the actual (non-mapped) ip/tcp address of the connecting peer from
      the port mapper and report the address info to the user space application
      at the time of connection establishment
      Signed-off-by: NTatyana Nikolova <tatyana.e.nikolova@intel.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      230da36a
    • T
      RDMA/core: Enable the iWarp Port Mapper to provide the actual address of the... · 6eec1774
      Tatyana Nikolova 提交于
      RDMA/core: Enable the iWarp Port Mapper to provide the actual address of the connecting peer to its clients
      
      Add functionality to enable the port mapper on the passive side to provide to its
      clients the actual (non-mapped) ip/tcp address information of the connecting peer
      
      1) Adding remote_info_cb() to process the address info of the connecting peer
         The address info is provided by the user space port mapper service when
         the connection is initiated by the peer
      2) Adding a hash list to store the remote address info
      3) Adding functionality to add/remove the remote address info
         After the info has been provided to the port mapper client,
         it is removed from the hash list
      Signed-off-by: NTatyana Nikolova <tatyana.e.nikolova@intel.com>
      Reviewed-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      6eec1774
    • H
      iw_cxgb4: enforce qp/cq id requirements · 4a75a86c
      Hariprasad S 提交于
      Currently the iw_cxgb4 implementation requires the qp and cq qid densities
      to match as well as the qp and cq id ranges.  So fail a device open if
      the device configuration doesn't meet the requirements.
      
      The reason for these restictions has to do with the fact that IQ qid X
      has a UGTS register in the same bar2 page as EQ qid X.  Thus both qids
      need to be allocated to the same user process for security reasons.
      The logic that does this (the qpid allocator in iw_cxgb4/resource.c)
      handles this but requires the above restrictions.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NHariprasad Shenai <hariprasad@chelsio.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      4a75a86c
    • H
      iw_cxgb4: use BAR2 GTS register for T5 kernel mode CQs · 09ece8b9
      Hariprasad S 提交于
      For T5, we must not use the kdb/kgts registers, in order avoid db drops
      under extreme loads.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NHariprasad Shenai <hariprasad@chelsio.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      09ece8b9