- 23 Dec, 2015 29 commits
-
-
Achiad Shochat authored
When handling a responder completion, if the link layer is Ethernet, set the work completion network_hdr_type field according to CQE's info and the IB_WC_WITH_NETWORK_HDR_TYPE flag. Signed-off-by:
Achiad Shochat <achiad@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Achiad Shochat authored
Using the vport access functions to retrieve the Ethernet specific information and return this information in ib_query_device and ib_query_port. Signed-off-by:
Achiad Shochat <achiad@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Achiad Shochat authored
Introduce access functions to query NIC vport system_image_guid, node_guid and qkey_viol_cntr. Signed-off-by:
Achiad Shochat <achiad@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Achiad Shochat authored
A mlx5 Ethernet port must be explicitly enabled for RoCE. When RoCE is not enabled on the port, the NIC will refuse to create QPs attached to it and incoming RoCE packets will be considered by the NIC as plain Ethernet packets. Signed-off-by:
Achiad Shochat <achiad@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Achiad Shochat authored
Introduce a new function called mlx5_query_nic_vport_context(). This function gets all the NIC vport attributes from the device. The MAC address is just one of the NIC vport attributes, so mlx5_query_nic_vport_mac_address() is now just a wrapper function above mlx5_query_nic_vport_context(). More NIC vport attributes will be used in following commits. Signed-off-by:
Achiad Shochat <achiad@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Achiad Shochat authored
For Eth ports only: Maintain a net device pointer in mlx5_ib_device and update it upon NETDEV_REGISTER and NETDEV_UNREGISTER events if the net-device and IB device have the same PCI parent device. Implement the get_netdev callback to return this net device. Signed-off-by:
Achiad Shochat <achiad@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Achiad Shochat authored
Make the existing mlx5_ib_port_link_layer() signature match the ib device callback signature (add port_num parameter). Refactor it to use a sub function so that the link layer could be queried also before the ibdev is created. Signed-off-by:
Achiad Shochat <achiad@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Julia Lawall authored
kzalloc doesn't return ERR_PTR, so there is no need to test for it. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression x,e; @@ * x = kzalloc(...) ... when != x = e * IS_ERR_OR_NULL(x) // </smpl> Signed-off-by:
Julia Lawall <Julia.Lawall@lip6.fr> Reviewed-by:
Dave Goodell <dgoodell@cisco.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Nelson Escobar authored
Signed-off-by:
Dave Goodell <dgoodell@cisco.com> Reviewed-by:
Reese Faucette <rfaucett@cisco.com> Reviewed-by:
Xuyang Wang <xuywang@cisco.com> Signed-off-by:
Nelson Escobar <neescoba@cisco.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Nelson Escobar authored
Signed-off-by:
Dave Goodell <dgoodell@cisco.com> Reviewed-by:
Reese Faucette <rfaucett@cisco.com> Reviewed-by:
Xuyang Wang <xuywang@cisco.com> Signed-off-by:
Nelson Escobar <neescoba@cisco.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Nelson Escobar authored
They were already implemented at a lower layer, but the upper level routine placed arbitrary restrictions on which transitions were permitted. Simplify the state machine logic to live wholly in usnic_ib_qp_grp_modify. Signed-off-by:
Dave Goodell <dgoodell@cisco.com> Reviewed-by:
Reese Faucette <rfaucett@cisco.com> Reviewed-by:
Xuyang Wang <xuywang@cisco.com> Signed-off-by:
Nelson Escobar <neescoba@cisco.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Nelson Escobar authored
Signed-off-by:
Dave Goodell <dgoodell@cisco.com> Reviewed-by:
Reese Faucette <rfaucett@cisco.com> Reviewed-by:
Xuyang Wang <xuywang@cisco.com> Signed-off-by:
Nelson Escobar <neescoba@cisco.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Nelson Escobar authored
Signed-off-by:
Christian Benvenuti <benve@cisco.com> Signed-off-by:
Nelson Escobar <neescoba@cisco.com> Reviewed-by:
Dave Goodell <dgoodell@cisco.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Nelson Escobar authored
Signed-off-by:
Nelson Escobar <neescoba@cisco.com> Reviewed-by:
Dave Goodell <dgoodell@cisco.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Nelson Escobar authored
query_protocol() was added in commit 6b90a6d6 ("IB/Verbs: Implement new callback query_protocol()") and then removed in commit f9b22e35 ("IB/core: Convert core to use bitfield for caps"). This left behind an unused prototype. Signed-off-by:
Nelson Escobar <neescoba@cisco.com> Reviewed-by:
Dave Goodell <dgoodell@cisco.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Moni Shoua authored
Since RoCEv2 is a protocol over IP header it is required to send IGMP join and leave requests to the network when joining and leaving multicast groups. Signed-off-by:
Moni Shoua <monis@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Moni Shoua authored
ib_ud_header_init() is used to format InfiniBand headers in a buffer up to (but not with) BTH. For RoCE UDP ENCAP it is required that this function would be able to build also IP and UDP headers. Signed-off-by:
Moni Shoua <monis@mellanox.com> Signed-off-by:
Matan Barak <matanb@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
Users would like to control the behaviour of rdma_cm. For example, old applications which don't set the required RoCE gid type could be executed on RoCE V2 network types. In order to support this configuration, we implement a configfs for rdma_cm. In order to use the configfs, one needs to mount it and mkdir <IB device name> inside rdma_cm directory. The patch adds support for a single configuration file, default_roce_mode. The mode can either be "IB/RoCE v1" or "RoCE v2". Signed-off-by:
Matan Barak <matanb@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
Currently, cma users can't increase or decrease the cma reference count. This is necassary when setting cma attributes (like the default GID type) in order to avoid use-after-free errors. Adding cma_ref_dev and cma_deref_dev APIs. Signed-off-by:
Matan Barak <matanb@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
In order to make sure API users don't try to use SGIDs which don't conform to the routing table, validate the route before searching the RoCE GID table. Signed-off-by:
Matan Barak <matanb@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
In order to validate the route, we need an easy way to check if a net-device belongs to our RDMA device. Move this helper function to a header file in order to make this check easier. Signed-off-by:
Matan Barak <matanb@mellanox.com> Reviewed-by:
Haggai Eran <haggaie@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Somnath Kotur authored
Providers should tell IB core the wc's network type. This is used in order to search for the proper GID in the GID table. When using HCAs that can't provide this info, IB core tries to deep examine the packet and extract the GID type by itself. We choose sgid_index and type from all the matching entries in RDMA-CM based on hint from the IP stack and we set hop_limit for the IP packet based on above hint from IP stack. Signed-off-by:
Matan Barak <matanb@mellanox.com> Signed-off-by:
Somnath Kotur <Somnath.Kotur@Avagotech.Com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
Adding RoCE v2 GID type and port type. Vendors which support this type will get their GID table populated with RoCE v2 GIDs automatically. Signed-off-by:
Matan Barak <matanb@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
This patch set adds attributes of net device and gid type to each GID in the GID table. Users that use verbs directly need to specify the GID index. Since the same GID could have different types or associated net devices, users should have the ability to query the associated GID attributes. Adding these attributes to sysfs. Signed-off-by:
Matan Barak <matanb@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
Previosuly, cm and cma modules supported only IB and RoCE v1 GID type. In order to support multiple GID types, the gid_type is passed to cm_init_av_by_path and stored in the path record. The rdma cm client would use a default GID type that will be saved in rdma_id_private. Signed-off-by:
Matan Barak <matanb@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
In order to support multiple GID types, we need to store the gid_type with each GID. This is also aligned with the RoCE v2 annex "RoCEv2 PORT GID table entries shall have a "GID type" attribute that denotes the L3 Address type". The currently supported GID is IB_GID_TYPE_IB which is also RoCE v1 GID type. This implies that gid_type should be added to roce_gid_table meta-data. Signed-off-by:
Matan Barak <matanb@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
Previously, we've searched the GID table twice: first when we searched the table for a GID matching the proposed new one, and second when we didn't find a match, we searched again for an empty GID slot in the table. Instead, search the table once noting the first empty slot as we search for our target GID. Signed-off-by:
Matan Barak <matanb@mellanox.com> Reviewed-by:
Haggai Eran <haggaie@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
Previously, IB GID cached used a lock per entry. This could result in spending a lot of CPU cycles for locking and unlocking just in order to find a GID. Changing this in favor of one lock per a GID table. Signed-off-by:
Matan Barak <matanb@mellanox.com> Reviewed-by:
Haggai Eran <haggaie@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Matan Barak authored
Refactor ib_dispatch_event into a new function in order to avoid duplicating code in the next patch. Signed-off-by:
Matan Barak <matanb@mellanox.com> Reviewed-by:
Haggai Eran <haggaie@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
- 22 Dec, 2015 8 commits
-
-
Doug Ledford authored
Signed-off-by:
Doug Ledford <dledford@redhat.com> Conflicts: drivers/infiniband/ulp/iser/iser_verbs.c
-
Or Gerlitz authored
The copy of the attributes present on the device is now used by all consumers except for uverbs in case of serving user-space query, where dev->query_device is called. Signed-off-by:
Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Or Gerlitz authored
Instead, use the cached copy of the attributes present on the device. Signed-off-by:
Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Or Gerlitz authored
Instead, use the cached copy of the attributes present on the device. Signed-off-by:
Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Or Gerlitz authored
Instead, use the cached copy of the attributes present on the device. Signed-off-by:
Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Or Gerlitz authored
Instead, use the cached copy of the attributes present on the device. Signed-off-by:
Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Or Gerlitz authored
Use the cached copy of the attributes present on the device, except for the case of a query originating from user-space, where we have to invoke the driver query_device entry, so they can fill in their udata. Signed-off-by:
Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
Ira Weiny authored
This way both the IB core and upper level drivers can access these cached device attributes rather than querying or caching them on their own. Signed-off-by:
Ira Weiny <ira.weiny@intel.com> Signed-off-by:
Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
-
- 21 Dec, 2015 1 commit
-
-
Linus Torvalds authored
-
- 20 Dec, 2015 2 commits
-
-
git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linuxLinus Torvalds authored
Pull RTC fixes from Alexandre Belloni: "Late fixes for the RTC subsystem for 4.4: A fix for a nasty hardware bug in rk808 and an initialization reordering in da9063 to fix a possible crash" * tag 'rtc-4.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: rtc: da9063: fix access ordering error during RTC interrupt at system power on rtc: rk808: Compensate for Rockchip calendar deviation on November 31st
-
Steve Twiss authored
This fix alters the ordering of the IRQ and device registrations in the RTC driver probe function. This change will apply to the RTC driver that supports both DA9063 and DA9062 PMICs. A problem could occur with the existing RTC driver if: A system is started from a cold boot using the PMIC RTC IRQ to initiate a power on operation. For instance, if an RTC alarm is used to start a platform from power off. The existing driver IRQ is requested before the device has been properly registered. i.e. ret = devm_request_threaded_irq() comes before rtc->rtc_dev = devm_rtc_device_register(); In this case, the interrupt can be called before the device has been registered and the handler can be called immediately. The IRQ handler da9063_alarm_event() contains the function call rtc_update_irq(rtc->rtc_dev, 1, RTC_IRQF | RTC_AF); which in turn tries to access the unavailable rtc->rtc_dev. The fix is to reorder the functions inside the RTC probe. The IRQ is requested after the RTC device resource has been registered so that get_irq_byname is the last thing to happen. Signed-off-by:
Steve Twiss <stwiss.opensource@diasemi.com> Signed-off-by:
Alexandre Belloni <alexandre.belloni@free-electrons.com>
-