Update SFC net drivers
PATCH 2/3 Update SFC net drivers
This patch against linux-2.6.18-xen.hg changest 974:aa133dee7792
Update Solarflare Communications resource driver to version 3.0.2.2074 to match net driver update.
Add support to sfc_resource driver for new SFC9000 series NICs
Update Solarflare Communications resource driver to version 3.0.2.2074 to match net driver update.
Add support for new SFC9000 series NICs
drivers/net/sfc/sfc_resource/Makefile +1 -1
@@ -7,7 +7,7 @@ sfc_resource-objs := resource_driver.o iopage.o efx_vi_shm.o \ driverlink_new.o kernel_proc.o kfifo.o \ - nic.o eventq.o falcon.o falcon_mac.o falcon_hash.o \ + nic.o eventq.o falcon.o falcon_hash.o \ assert_valid.o buddy.o buffer_table.o filter_resource.o \ iobufset_resource.o resource_manager.o resources.o \ vi_resource_alloc.o vi_resource_event.o vi_resource_flush.o \
drivers/net/sfc/sfc_resource/assert_valid.c +6 -9
@@ -6,7 +6,7 @@* This file contains functions to assert validness of resources and * resource manager in DEBUG build of the resource driver. * -* Copyright 2005-2007: Solarflare Communications Inc, +* Copyright 2005-2010: Solarflare Communications Inc, * 9501 Jeronimo Road, Suite 250, * Irvine, CA 92618, USA *
@@ -50,8 +50,6 @@_EFRM_ASSERT (rm, file, line);_EFRM_ASSERT (rm->rm_name, file, line);_EFRM_ASSERT (rm->rm_type <EFRM_RESOURCE_NUM , file, line); -_EFRM_ASSERT (rm->rm_table, file, line); -_EFRM_ASSERT (rm->rm_table_size >0 , file, line);_EFRM_ASSERT (rm->rm_dtor, file, line); }EXPORT_SYMBOL (efrm_resource_manager_assert_valid);
@@ -72,19 +70,18 @@_EFRM_ASSERT (rs, file, line);if (ref_count_is_zero >=0 ) { -if (!(ref_count_is_zero ||atomic_read (&rs->rs_ref_count) >0 ) - || !(!ref_count_is_zero - ||atomic_read (&rs->rs_ref_count) ==0 )) +if (!(ref_count_is_zero || rs->rs_ref_count >0 ) + || !(!ref_count_is_zero || rs->rs_ref_count ==0 ))EFRM_WARN ("%s: check %szero ref=%d " EFRM_RESOURCE_FMT , __FUNCTION__, ref_count_is_zero ==0 ?"non-" :"" , -atomic_read (&rs->rs_ref_count), + rs->rs_ref_count,EFRM_RESOURCE_PRI_ARG (rs->rs_handle));_EFRM_ASSERT (!(ref_count_is_zero ==0 ) || -atomic_read (&rs->rs_ref_count) !=0 , file, line); + rs->rs_ref_count !=0 , file, line);_EFRM_ASSERT (!(ref_count_is_zero >0 ) || -atomic_read (&rs->rs_ref_count) ==0 , file, line); + rs->rs_ref_count ==0 , file, line); } rm = efrm_rm_table[EFRM_RESOURCE_TYPE (rs->rs_handle)];
drivers/net/sfc/sfc_resource/buddy.c +4 -91
119 lines not on this page · raw message
drivers/net/sfc/sfc_resource/buffer_table.c +21 -22
98 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware.h +77 -33
174 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/common.h +7 -1
@@ -6,7 +6,7 @@* This file provides EtherFabric NIC hardware interface common * definitions. * -* Copyright 2005-2007: Solarflare Communications Inc, +* Copyright 2005-2010: Solarflare Communications Inc, * 9501 Jeronimo Road, Suite 250, * Irvine, CA 92618, USA *
@@ -65,4 +65,10 @@#define EFHW_4G 0x100000000ULL#define EFHW_8G 0x200000000ULL +/* --- DMA --- */ +#define EFHW_DMA_ADDRMASK (0xffffffffffffffffULL) + +#define EFHW_IP_FILTER_NUM 8192 +#define EFHW_MAX_PAGE_SIZE (EFHW_8K) +#endif /* __CI_DRIVER_EFAB_HARDWARE_COMMON_H__ */
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/falcon.h +69 -34
213 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/falcon/falcon_core.h deleted +0 -1149
1,149 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/falcon/falcon_desc.h +1 -1
@@ -6,7 +6,7 @@* This file provides EtherFabric NIC - EFXXXX (aka Falcon) descriptor * definitions. * -* Copyright 2005-2007: Solarflare Communications Inc, +* Copyright 2005-2010: Solarflare Communications Inc, * 9501 Jeronimo Road, Suite 250, * Irvine, CA 92618, USA *
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/falcon/falcon_event.h +3 -1
@@ -6,7 +6,7 @@* This file provides EtherFabric NIC - EFXXXX (aka Falcon) event * definitions. * -* Copyright 2005-2007: Solarflare Communications Inc, +* Copyright 2005-2010: Solarflare Communications Inc, * 9501 Jeronimo Road, Suite 250, * Irvine, CA 92618, USA *
@@ -126,6 +126,8 @@#define TX_PKT_NON_TCP_UDP_DECODE 0x9#define TIMER_EV_DECODE 0xA#define RX_DSC_ERROR_EV_DECODE 0xE +#define DRIVER_EV_RX_FLUSH_FAIL_LBN 12 +#define DRIVER_EV_RX_FLUSH_FAIL_WIDTH 1#define DRIVER_EV_TX_DESCQ_ID_LBN 0#define DRIVER_EV_TX_DESCQ_ID_WIDTH 12#define DRIVER_EV_RX_DESCQ_ID_LBN 0
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/falcon/falcon_grmon.h +1 -1
@@ -6,7 +6,7 @@* This file provides EtherFabric NIC - EFXXXX (aka Falcon) 1G MAC * counters. * -* Copyright 2005-2007: Solarflare Communications Inc, +* Copyright 2005-2010: Solarflare Communications Inc, * 9501 Jeronimo Road, Suite 250, * Irvine, CA 92618, USA *
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/falcon/falcon_intr_vec.h +1 -1
@@ -6,7 +6,7 @@* This file provides EtherFabric NIC - EFXXXX (aka Falcon) interrupt * vector definitions. * -* Copyright 2005-2007: Solarflare Communications Inc, +* Copyright 2005-2010: Solarflare Communications Inc, * 9501 Jeronimo Road, Suite 250, * Irvine, CA 92618, USA *
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/falcon/falcon_mac.h +3 -1
@@ -6,7 +6,7 @@* This file provides EtherFabric NIC - EFXXXX (aka Falcon) MAC register * definitions. * -* Copyright 2005-2007: Solarflare Communications Inc, +* Copyright 2005-2010: Solarflare Communications Inc, * 9501 Jeronimo Road, Suite 250, * Irvine, CA 92618, USA *
@@ -29,6 +29,7 @@* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA **************************************************************************** */ +#ifdef USE_OLD_HWDEFS /*********---- 1G/10G Ethernet MAC Wrapper Registers C Header ----*********/ #define MD_TXD_REG_KER_OFST 0xC00/* PHY management transmit data register */
@@ -709,3 +710,4 @@#define XX_DISPERR_CH1_WIDTH 1#define XX_DISPERR_CH0_LBN 0#define XX_DISPERR_CH0_WIDTH 1 +#endif
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/falcon/falcon_xgrmon.h +1 -1
@@ -6,7 +6,7 @@* This file provides EtherFabric NIC - EFXXXX (aka Falcon) 10G MAC * statistics register definitions. * -* Copyright 2005-2007: Solarflare Communications Inc, +* Copyright 2005-2010: Solarflare Communications Inc, * 9501 Jeronimo Road, Suite 250, * Irvine, CA 92618, USA *
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/host_common.h new file +2850 -0
1,114 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/host_common_mac.h new file +730 -0
730 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/host_common_pci_defs.h new file +2057 -0
2,057 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/driver/efab/hardware/workarounds.h deleted +0 -75
75 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/driver/resource/efx_vi.h +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/driver/resource/linux_efhw_nic.h +11 -5
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/checks.h +45 -52
97 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/efhw/common.h +37 -14
51 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/efhw/common_sysdep.h +2 -10
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/debug.h +7 -3
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/efhw_config.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/efhw_types.h +130 -25
155 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/efhw/eventq.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/eventq_macros.h +4 -8
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/falcon.h +11 -6
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/falcon_hash.h +23 -7
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/hardware_sysdep.h +6 -1
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/iopage.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/iopage_types.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/nic.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efhw/public.h +40 -1
41 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/efhw/sysdep.h +6 -11
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/buddy.h +2 -3
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/buffer_table.h +6 -11
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/debug.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/driver_private.h +8 -5
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/efrm_client.h new file +65 -0
65 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/efrm/efrm_nic.h new file +58 -0
58 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/efrm/filter.h +25 -76
101 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/efrm/iobufset.h +12 -25
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/nic_set.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/nic_table.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/private.h +2 -33
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/resource.h +10 -13
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/resource_id.h +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/sysdep.h +2 -4
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/sysdep_linux.h +4 -10
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/ci/efrm/vi_resource.h +15 -39
54 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/efrm/vi_resource_manager.h +16 -43
59 lines not on this page · raw message
drivers/net/sfc/sfc_resource/ci/efrm/vi_resource_private.h +2 -23
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/driver_object.c +182 -16
198 lines not on this page · raw message
drivers/net/sfc/sfc_resource/driverlink_new.c +26 -49
75 lines not on this page · raw message
drivers/net/sfc/sfc_resource/efrm_internal.h new file +73 -0
73 lines not on this page · raw message
drivers/net/sfc/sfc_resource/efx_vi_shm.c +66 -59
125 lines not on this page · raw message
drivers/net/sfc/sfc_resource/eventq.c +16 -24
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/falcon.c +1997 -1730
3,727 lines not on this page · raw message
drivers/net/sfc/sfc_resource/falcon_hash.c +128 -81
209 lines not on this page · raw message
drivers/net/sfc/sfc_resource/falcon_mac.c deleted +0 -171
171 lines not on this page · raw message
drivers/net/sfc/sfc_resource/filter_resource.c +122 -137
259 lines not on this page · raw message
drivers/net/sfc/sfc_resource/iobufset_resource.c +96 -65
161 lines not on this page · raw message
drivers/net/sfc/sfc_resource/kernel_compat.c +12 -10
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/kernel_compat.h +15 -15
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/kernel_proc.c +4 -6
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/linux_resource_internal.h +2 -12
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/nic.c +57 -2
59 lines not on this page · raw message
drivers/net/sfc/sfc_resource/resource_driver.c +65 -77
142 lines not on this page · raw message
drivers/net/sfc/sfc_resource/resource_manager.c +52 -170
222 lines not on this page · raw message
drivers/net/sfc/sfc_resource/resources.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/sfc/sfc_resource/vi_resource_alloc.c +76 -138
214 lines not on this page · raw message
drivers/net/sfc/sfc_resource/vi_resource_event.c +67 -53
120 lines not on this page · raw message
drivers/net/sfc/sfc_resource/vi_resource_flush.c +74 -220
294 lines not on this page · raw message
drivers/net/sfc/sfc_resource/vi_resource_manager.c +14 -38
52 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Part of the diff is not shown here. View the raw message.