net: axienet: Remove NETIF_F_SG dropping for no checksum feature
Subsystems (5)
PATCH 1/11 net: axienet: Remove NETIF_F_SG dropping for no checksum feature
Warning message:
eth0: Dropping NETIF_F_SG since no checksum feature.
--- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +3 -3
@@ -1494,7 +1494,7 @@ static int __devinit axienet_of_probe(struct platform_device *op)SET_NETDEV_DEV (ndev, &op->dev); ndev->flags &= ~IFF_MULTICAST ;/* clear multicast */ - ndev->features =NETIF_F_SG |NETIF_F_FRAGLIST ; + ndev->features =NETIF_F_FRAGLIST ; ndev->netdev_ops = &axienet_netdev_ops; ndev->ethtool_ops = &axienet_ethtool_ops;
@@ -1519,14 +1519,14 @@ static int __devinit axienet_of_probe(struct platform_device *op)XAE_FEATURE_PARTIAL_TX_CSUM ; lp->features |=XAE_FEATURE_PARTIAL_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ - ndev->features |=NETIF_F_IP_CSUM ; + ndev->features |=NETIF_F_IP_CSUM |NETIF_F_SG ;break ;case 2 : lp->csum_offload_on_tx_path =XAE_FEATURE_FULL_TX_CSUM ; lp->features |=XAE_FEATURE_FULL_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ - ndev->features |=NETIF_F_IP_CSUM ; + ndev->features |=NETIF_F_IP_CSUM |NETIF_F_SG ;break ;default : lp->csum_offload_on_tx_path =XAE_NO_CSUM_OFFLOAD ;
Signature · 1 line
1.7.0.4
PATCH 2/11 net: axienet: Add ioctl support
Allow user to access the MDIO from userspace.
--- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +15 -0
@@ -1053,6 +1053,20 @@ static void axienet_poll_controller(struct net_device *ndev) }#endif +/* Ioctl MII Interface */ +static int axienet_ioctl (struct net_device *dev,struct ifreq *rq,int cmd) +{ +struct axienet_local *priv =netdev_priv (dev); + +if (!netif_running (dev)) +return -EINVAL ; + +if (!priv->phy_dev) +return -ENODEV ; + +return phy_mii_ioctl (priv->phy_dev, rq, cmd); +} +static const struct net_device_ops axienet_netdev_ops = { .ndo_open = axienet_open, .ndo_stop = axienet_stop,
@@ -1061,6 +1075,7 @@ static const struct net_device_ops axienet_netdev_ops = { .ndo_set_mac_address = netdev_set_mac_address, .ndo_validate_addr = eth_validate_addr, .ndo_set_rx_mode = axienet_set_multicast_list, + .ndo_do_ioctl = axienet_ioctl,#ifdef CONFIG_NET_POLL_CONTROLLER .ndo_poll_controller = axienet_poll_controller,#endif
Signature · 1 line
1.7.0.4
Re: [PATCH 02/11] net: axienet: Add ioctl support
Quoted 17 lines · Michal Simek
Allow user to access the MDIO from userspace.
Signed-off-by Michal Simek <[email protected]>CC Anirudha Sarangi <[email protected]>CC John Linn <[email protected]>CC Grant Likely <[email protected]>CC Rob Herring <[email protected]>CC David S. Miller <[email protected]>--- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)drivers/net/ethernet/xilinx/xilinx_axienet_main.c +0
-0
drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_poll_controller(struct net_device *ndev) · line 1062
Quoted 10 lines
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +7
-0@@ -1053,6 +1053,20 @@ static void axienet_poll_controller(struct net_device *ndev) }#endif +/* Ioctl MII Interface */ +static int axienet_ioctl (struct net_device *dev,struct ifreq *rq,int cmd) +{ +struct axienet_local *priv =netdev_priv (dev); + +if (!netif_running (dev)) +return -EINVAL ;
Not sure this is the appropriate error code.
drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_poll_controller(struct net_device *ndev) · line 1065
Quoted 2 lines
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +2
-0+if (!priv->phy_dev) +return -ENODEV ;
Error code should be EOPNOTSUPP - the device is present but just doesn't support MDIO.
Ben.
Quoted 14 lines
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +4
-0+return phy_mii_ioctl (priv->phy_dev, rq, cmd); +} +static const struct net_device_ops axienet_netdev_ops = { .ndo_open = axienet_open, .ndo_stop = axienet_stop,@@ -1061,6 +1075,7 @@ static const struct net_device_ops axienet_netdev_ops = { .ndo_set_mac_address = netdev_set_mac_address, .ndo_validate_addr = eth_validate_addr, .ndo_set_rx_mode = axienet_set_multicast_list, + .ndo_do_ioctl = axienet_ioctl,#ifdef CONFIG_NET_POLL_CONTROLLER .ndo_poll_controller = axienet_poll_controller,#endif
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
Re: [PATCH 02/11] net: axienet: Add ioctl support
Quoted 31 lines · Ben Hutchings
Quoted 17 lines · Michal Simek
Allow user to access the MDIO from userspace.
Signed-off-by Michal Simek <[email protected]>CC Anirudha Sarangi <[email protected]>CC John Linn <[email protected]>CC Grant Likely <[email protected]>CC Rob Herring <[email protected]>CC David S. Miller <[email protected]>--- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)drivers/net/ethernet/xilinx/xilinx_axienet_main.c +0
-0drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_poll_controller(struct net_device *ndev) · line 1062
Quoted 10 lines
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +7
-0@@ -1053,6 +1053,20 @@ static void axienet_poll_controller(struct net_device *ndev) }#endif +/* Ioctl MII Interface */ +static int axienet_ioctl (struct net_device *dev,struct ifreq *rq,int cmd) +{ +struct axienet_local *priv =netdev_priv (dev); + +if (!netif_running (dev)) +return -EINVAL ;Not sure this is the appropriate error code.
Quoted 5 lines
drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_poll_controller(struct net_device *ndev) · line 1065
Quoted 2 lines
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +2
-0+if (!priv->phy_dev) +return -ENODEV ;Error code should be EOPNOTSUPP - the device is present but just doesn't support MDIO.
ok. Thanks will fix it.
Thanks,
Michal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian
PATCH 3/11 net: axienet: Do not use NO_IRQ
In reply to Michal SimekNO_IRQ is not longer used by Microblaze.
--- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +1 -1
@@ -1599,7 +1599,7 @@ static int __devinit axienet_of_probe(struct platform_device *op) lp->rx_irq =irq_of_parse_and_map (np,1 ); lp->tx_irq =irq_of_parse_and_map (np,0 );of_node_put (np); -if ((lp->rx_irq ==NO_IRQ ) || (lp->tx_irq ==NO_IRQ )) { +if ((!lp->rx_irq) || (!lp->tx_irq)) {dev_err (&op->dev,"could not determine irqs\n" ); ret = -ENOMEM ; goto err_iounmap_2;
Signature · 1 line
1.7.0.4
PATCH 4/11 net: axienet: Additional MDIO clock functionality
In reply to Michal SimekThe MDIO clock was previously hard coded and it is now calculated thanks to a patch from the community.
Modify the Xilinx patch to get the clock frequency from the connected AXI bus instead of the CPU.
Currently, the AXI ethernet mdio bus id is set as the mdio device node start address, but the mdio node don't have a start address. Use the start address of the AXI ethernet controller which connects to the MDIO bus instead.
--- drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c | 76 +++++++++++---------- 1 files changed, 40 insertions(+), 36 deletions(-)
drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c +40 -36
@@ -128,11 +128,11 @@ static int axienet_mdio_write(struct mii_bus *bus, int phy_id, int reg,int axienet_mdio_setup (struct axienet_local *lp,struct device_node *np) {int ret; -u32 clk_div, host_clock; -u32 *property_p; +u32 clk_div;struct mii_bus *bus;struct resource res;struct device_node *np1; +struct device_node *npp =0 ;/* the ethernet controller device node */ /* clk_div can be calculated by deriving it from the equation: * fMDIO = fHOST / ((1 + clk_div) * 2)
@@ -158,41 +158,46 @@ int axienet_mdio_setup(struct axienet_local *lp, struct device_node *np)* fHOST can be read from the flattened device tree as property * "clock-frequency" from the CPU */ - - np1 =of_find_node_by_name (NULL ,"cpu" ); -if (!np1) { -printk (KERN_WARNING "%s(): Could not find CPU device node." , - __func__); -printk (KERN_WARNING "Setting MDIO clock divisor to " -"default %d\n" ,DEFAULT_CLOCK_DIVISOR ); - clk_div =DEFAULT_CLOCK_DIVISOR ; - goto issue; - } - property_p = (u32 *)of_get_property (np1,"clock-frequency" ,NULL ); -if (!property_p) { -printk (KERN_WARNING "%s(): Could not find CPU property: " -"clock-frequency." , __func__); -printk (KERN_WARNING "Setting MDIO clock divisor to " -"default %d\n" ,DEFAULT_CLOCK_DIVISOR ); + np1 =of_get_parent (lp->phy_node); +if (np1) + npp =of_get_parent (np1); +if (!npp) { +dev_warn (lp->dev, +"Could not find ethernet controller device node." ); +dev_warn (lp->dev,"Setting MDIO clock divisor to default %d\n" , +DEFAULT_CLOCK_DIVISOR ); clk_div =DEFAULT_CLOCK_DIVISOR ; - goto issue; + }else { +u32 *property_p; + + property_p = (uint32_t *)of_get_property (npp, +"clock-frequency" ,NULL ); +if (!property_p) { +dev_warn (lp->dev,"Could not find clock ethernet " \ +"controller property." ); +dev_warn (lp->dev, +"Setting MDIO clock divisor to default %d\n" , +DEFAULT_CLOCK_DIVISOR ); + clk_div =DEFAULT_CLOCK_DIVISOR ; + }else { +u32 host_clock =be32_to_cpup (property_p); + + clk_div = (host_clock / (MAX_MDIO_FREQ *2 )) -1 ; + +/* If there is any remainder from the division of +* fHOST / (MAX_MDIO_FREQ * 2), then we need to add 1 +* to the clock divisor or we will surely be +* above 2.5 MHz */ +if (host_clock % (MAX_MDIO_FREQ *2 )) + clk_div++; +dev_dbg (lp->dev,"Setting MDIO clock divisor to %u " \ +"based on %u Hz host clock.\n" , + clk_div, host_clock); + } } - host_clock =be32_to_cpup (property_p); - clk_div = (host_clock / (MAX_MDIO_FREQ *2 )) -1 ; -/* If there is any remainder from the division of -* fHOST / (MAX_MDIO_FREQ * 2), then we need to add -* 1 to the clock divisor or we will surely be above 2.5 MHz */ -if (host_clock % (MAX_MDIO_FREQ *2 )) - clk_div++; - -printk (KERN_DEBUG "%s(): Setting MDIO clock divisor to %u based " -"on %u Hz host clock.\n" , __func__, clk_div, host_clock); - -of_node_put (np1); -issue: -axienet_iow (lp,XAE_MDIO_MC_OFFSET , - (((u32 ) clk_div) |XAE_MDIO_MC_MDIOEN_MASK )); +axienet_iow (lp,XAE_MDIO_MC_OFFSET , (((u32 )clk_div) | +XAE_MDIO_MC_MDIOEN_MASK )); ret =axienet_mdio_wait_until_ready (lp);if (ret <0 )
@@ -202,8 +207,7 @@ issue:if (!bus)return -ENOMEM ; - np1 =of_get_parent (lp->phy_node); -of_address_to_resource (np1,0 , &res); +of_address_to_resource (npp,0 , &res);snprintf (bus->id,MII_BUS_ID_SIZE ,"%.8llx" , (unsigned long long ) res.start);
Signature · 1 line
1.7.0.4
PATCH 5/11 net: axienet: Enable VLAN support by default
In reply to Michal SimekThe driver is using frame size for VLAN packets but does not enable VLAN IP option.
--- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +1 -0
@@ -483,6 +483,7 @@ static void axienet_device_reset(struct net_device *ndev)__axienet_device_reset (lp, &ndev->dev,XAXIDMA_RX_CR_OFFSET ); lp->max_frm_size =XAE_MAX_VLAN_FRAME_SIZE ; + lp->options |=XAE_OPTION_VLAN ; lp->options &= (~XAE_OPTION_JUMBO ); if ((ndev->mtu > XAE_MTU) &&
Signature · 1 line
1.7.0.4
PATCH 6/11 net: ll_temac: Fix mdio initialization
In reply to Michal SimekCurrent driver required to have phy-node directly in the driver. After this fixed we can use standard structure.
DTS fragment:
phy-handle = <&phy0>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy0: phy@7 {
compatible = "marvell,88e1111";
device_type = "ethernet-phy";
reg = <7>;
} ;
} ;--- drivers/net/ethernet/xilinx/ll_temac_main.c | 11 ++++++----- drivers/net/ethernet/xilinx/ll_temac_mdio.c | 5 +++-- 2 files changed, 9 insertions(+), 7 deletions(-)
drivers/net/ethernet/xilinx/ll_temac_main.c +6 -5
@@ -1108,14 +1108,15 @@ static int __devinit temac_of_probe(struct platform_device *op) }temac_set_mac_address (ndev, (void *)addr); - rc =temac_mdio_setup (lp, op->dev.of_node); -if (rc) -dev_warn (&op->dev,"error registering MDIO bus\n" ); - lp->phy_node =of_parse_phandle (op->dev.of_node,"phy-handle" ,0 ); -if (lp->phy_node) +if (lp->phy_node) {dev_dbg (lp->dev,"using PHY node %s (%p)\n" , np->full_name, np); + rc =temac_mdio_setup (lp, op->dev.of_node); +if (rc) +dev_warn (&op->dev,"error registering MDIO bus\n" ); + } +/* Add the device attributes */ rc =sysfs_create_group (&lp->dev->kobj, &temac_attr_group);if (rc) {
drivers/net/ethernet/xilinx/ll_temac_mdio.c +3 -2
@@ -63,6 +63,7 @@ int temac_mdio_setup(struct temac_local *lp, struct device_node *np)int clk_div;int rc, size;struct resource res; +struct device_node *np1 =of_get_parent (lp->phy_node);/* Calculate a reasonable divisor for the clock rate */ clk_div =0x3f ;/* worst-case default setting */
@@ -85,7 +86,7 @@ int temac_mdio_setup(struct temac_local *lp, struct device_node *np)if (!bus)return -ENOMEM ; -of_address_to_resource (np,0 , &res); +of_address_to_resource (np1,0 , &res);snprintf (bus->id,MII_BUS_ID_SIZE ,"%.8llx" , (unsigned long long )res.start); bus->priv = lp;
@@ -97,7 +98,7 @@ int temac_mdio_setup(struct temac_local *lp, struct device_node *np) lp->mii_bus = bus; - rc =of_mdiobus_register (bus, np); + rc =of_mdiobus_register (bus, np1);if (rc) goto err_register;
Signature · 1 line
1.7.0.4
PATCH 7/11 net: ll_temac: Fix DMA map size bug
In reply to Michal SimekDMA allocates skb->len instead of headlen which is used for DMA.
The same fix was applied to the axienet driver.
--- drivers/net/ethernet/xilinx/ll_temac_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/xilinx/ll_temac_main.c +2 -2
@@ -710,8 +710,8 @@ static int temac_start_xmit(struct sk_buff *skb, struct net_device *ndev) cur_p->app0 |=STS_CTRL_APP0_SOP ; cur_p->len =skb_headlen (skb); - cur_p->phys =dma_map_single (ndev->dev.parent, skb->data, skb->len, -DMA_TO_DEVICE ); + cur_p->phys =dma_map_single (ndev->dev.parent, skb->data, +skb_headlen (skb),DMA_TO_DEVICE ); cur_p->app4 = (unsigned long )skb;for (ii =0 ; ii < num_frag; ii++) {
Signature · 1 line
1.7.0.4
PATCH 8/11 net: ll_temac: Do not use fixed mtu size
In reply to Michal SimekUse max mtu instead.
--- drivers/net/ethernet/xilinx/ll_temac_main.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
drivers/net/ethernet/xilinx/ll_temac_main.c +7 -7
@@ -212,7 +212,7 @@ static void temac_dma_bd_release(struct net_device *ndev)break ; else {dma_unmap_single (ndev->dev.parent, lp->rx_bd_v[i].phys, -XTE_MAX_JUMBO_FRAME_SIZE ,DMA_FROM_DEVICE ); + ndev->mtu,DMA_FROM_DEVICE );dev_kfree_skb (lp->rx_skb[i]); } }
@@ -274,7 +274,7 @@ static int temac_dma_bd_init(struct net_device *ndev)sizeof (*lp->rx_bd_v) * ((i +1 ) %RX_BD_NUM ); skb =netdev_alloc_skb_ip_align (ndev, -XTE_MAX_JUMBO_FRAME_SIZE ); + ndev->mtu);if (skb ==0 ) {dev_err (&ndev->dev,"alloc_skb error %d\n" , i);
@@ -284,9 +284,9 @@ static int temac_dma_bd_init(struct net_device *ndev)/* returns physical address of skb->data */ lp->rx_bd_v[i].phys =dma_map_single (ndev->dev.parent, skb->data, -XTE_MAX_JUMBO_FRAME_SIZE , + ndev->mtu,DMA_FROM_DEVICE ); - lp->rx_bd_v[i].len =XTE_MAX_JUMBO_FRAME_SIZE ; + lp->rx_bd_v[i].len = ndev->mtu; lp->rx_bd_v[i].app0 =STS_CTRL_APP0_IRQONEND ; }
@@ -787,7 +787,7 @@ static void ll_temac_recv(struct net_device *ndev) ndev->stats.rx_bytes += length; new_skb =netdev_alloc_skb_ip_align (ndev, -XTE_MAX_JUMBO_FRAME_SIZE ); + ndev->mtu);if (new_skb ==0 ) {dev_err (&ndev->dev,"no memory for new sk_buff\n" );
@@ -797,9 +797,9 @@ static void ll_temac_recv(struct net_device *ndev) cur_p->app0 =STS_CTRL_APP0_IRQONEND ; cur_p->phys =dma_map_single (ndev->dev.parent, new_skb->data, -XTE_MAX_JUMBO_FRAME_SIZE , + ndev->mtu,DMA_FROM_DEVICE ); - cur_p->len =XTE_MAX_JUMBO_FRAME_SIZE ; + cur_p->len = ndev->mtu; lp->rx_skb[lp->rx_bd_ci] = new_skb; lp->rx_bd_ci++;
Signature · 1 line
1.7.0.4
Re: [PATCH 08/11] net: ll_temac: Do not use fixed mtu size
Quoted 1 line · Michal Simek
Use max mtu instead.
[...]
MTU does not include the Ethernet header so I have no idea how this is expected to work...
Ben.
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
Re: [PATCH 08/11] net: ll_temac: Do not use fixed mtu size
Quoted 6 lines · Ben Hutchings
Quoted 1 line · Michal Simek
Use max mtu instead.
[...]
MTU does not include the Ethernet header so I have no idea how this is expected to work...
Right. This is wrong fix. It should be the same as is in axienet. There is max_frm_size used which is mtu+header+tailer. I will fix it.
Thanks,
Michal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian
PATCH 9/11 net: ll_temac: Move frag loading to frag loop
In reply to Michal SimekLoad frag value when necessary.
--- drivers/net/ethernet/xilinx/ll_temac_main.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/net/ethernet/xilinx/ll_temac_main.c +1 -2
@@ -686,7 +686,6 @@ static int temac_start_xmit(struct sk_buff *skb, struct net_device *ndev)skb_frag_t *frag; num_frag =skb_shinfo (skb)->nr_frags; - frag = &skb_shinfo (skb)->frags[0 ]; start_p = lp->tx_bd_p +sizeof (*lp->tx_bd_v) * lp->tx_bd_tail; cur_p = &lp->tx_bd_v[lp->tx_bd_tail];
@@ -715,6 +714,7 @@ static int temac_start_xmit(struct sk_buff *skb, struct net_device *ndev) cur_p->app4 = (unsigned long )skb;for (ii =0 ; ii < num_frag; ii++) { + frag = &skb_shinfo (skb)->frags[ii]; lp->tx_bd_tail++;if (lp->tx_bd_tail >=TX_BD_NUM ) lp->tx_bd_tail =0 ;
@@ -725,7 +725,6 @@ static int temac_start_xmit(struct sk_buff *skb, struct net_device *ndev) skb_frag_size(frag), DMA_TO_DEVICE); cur_p->len =skb_frag_size (frag); cur_p->app0 =0 ; - frag++; } cur_p->app0 |=STS_CTRL_APP0_EOP ;
Signature · 1 line
1.7.0.4
PATCH 10/11 net: ll_temac: Simplify xmit
In reply to Michal SimekUse one return statement instead of two.
--- drivers/net/ethernet/xilinx/ll_temac_main.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/net/ethernet/xilinx/ll_temac_main.c +1 -3
@@ -690,10 +690,8 @@ static int temac_start_xmit(struct sk_buff *skb, struct net_device *ndev) cur_p = &lp->tx_bd_v[lp->tx_bd_tail];if (temac_check_tx_bd_space (lp, num_frag)) { -if (!netif_queue_stopped (ndev)) { +if (!netif_queue_stopped (ndev))netif_stop_queue (ndev); -return NETDEV_TX_BUSY ; - }return NETDEV_TX_BUSY ; }
Signature · 1 line
1.7.0.4
PATCH 11/11 net: xilinx: Show csum in bootlog
In reply to Michal SimekJust show current setting in bootlog.
--- drivers/net/ethernet/xilinx/ll_temac_main.c | 2 ++ drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-)
drivers/net/ethernet/xilinx/ll_temac_main.c +2 -0
@@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op)/* Setup checksum offload, but default to off if not specified */ lp->temac_features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) { lp->temac_features |=TEMAC_FEATURE_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ ndev->features |=NETIF_F_IP_CSUM ; } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) lp->temac_features |=TEMAC_FEATURE_RX_CSUM ;
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +2 -0
@@ -1528,6 +1528,7 @@ static int __devinit axienet_of_probe(struct platform_device *op) lp->features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p) {switch (be32_to_cpup (p)) {case 1 :
@@ -1549,6 +1550,7 @@ static int __devinit axienet_of_probe(struct platform_device *op) } } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));if (p) {switch (be32_to_cpup (p)) {case 1 :
Signature · 1 line
1.7.0.4
Re: [PATCH 11/11] net: xilinx: Show csum in bootlog
Quoted 1 line · Michal Simek
Just show current setting in bootlog.
[...]
Quoted 4 lines
drivers/net/ethernet/xilinx/ll_temac_main.c +0
-0@@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op)/* Setup checksum offload, but default to off if not specified */
drivers/net/ethernet/xilinx/ll_temac_main.c static int __devinit temac_of_probe(struct platform_device *op) · line 1062
Quoted 10 lines
drivers/net/ethernet/xilinx/ll_temac_main.c +2
-0lp->temac_features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) { lp->temac_features |=TEMAC_FEATURE_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ ndev->features |=NETIF_F_IP_CSUM ; } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));
[...]
Is there any particular reason you think this needs to be logged by default, rather than letting users run ethtool -k? I suggest using dev_dbg() instead.
Ben.
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
Re: [PATCH 11/11] net: xilinx: Show csum in bootlog
Quoted 19 lines · Ben Hutchings
Quoted 1 line · Michal Simek
Just show current setting in bootlog.
[...]
Quoted 14 lines
drivers/net/ethernet/xilinx/ll_temac_main.c +2
-0@@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op)/* Setup checksum offload, but default to off if not specified */ lp->temac_features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) { lp->temac_features |=TEMAC_FEATURE_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ ndev->features |=NETIF_F_IP_CSUM ; } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));[...]
Quoted 3 lines
Is there any particular reason you think this needs to be logged by default, rather than letting users run ethtool -k? I suggest using
dev_dbg()instead.
The reason was just to show it in the bootlog. I will check ethtool support for these drivers.
Thanks for your comments,
Michal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian
Re: [PATCH 11/11] net: xilinx: Show csum in bootlog
Quoted 20 lines · Michal Simek
Quoted 19 lines · Ben Hutchings
Quoted 1 line · Michal Simek
Just show current setting in bootlog.
[...]
Quoted 14 lines
drivers/net/ethernet/xilinx/ll_temac_main.c +2
-0@@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op)/* Setup checksum offload, but default to off if not specified */ lp->temac_features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) { lp->temac_features |=TEMAC_FEATURE_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ ndev->features |=NETIF_F_IP_CSUM ; } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));[...]
Quoted 6 lines
Quoted 3 lines
Is there any particular reason you think this needs to be logged by default, rather than letting users run ethtool -k? I suggest using
dev_dbg()instead.The reason was just to show it in the bootlog.
I will check ethtool support for these drivers.
'ethtool -k' should just work so long as the driver sets the right bits in ndev->features.
Ben.
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
Re: [PATCH 11/11] net: xilinx: Show csum in bootlog
In reply to Ben HutchingsQuoted 19 lines · Ben Hutchings
Quoted 1 line · Michal Simek
Just show current setting in bootlog.
[...]
Quoted 14 lines
drivers/net/ethernet/xilinx/ll_temac_main.c +2
-0@@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op)/* Setup checksum offload, but default to off if not specified */ lp->temac_features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) { lp->temac_features |=TEMAC_FEATURE_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ ndev->features |=NETIF_F_IP_CSUM ; } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));[...]
Quoted 3 lines
Is there any particular reason you think this needs to be logged by default, rather than letting users run ethtool -k? I suggest using
dev_dbg()instead.
Ok. I have looked at it and there are missing some bits in ndev->features.
Can you please check that my setting is correct?
It is SG DMA ip/driver.ndev->features = NETIF_F_FRAGLIST | NETIF_F_SG
With two options for csum on RX/TX. They can be selected independently. tx Partial csum over IPv4. -> NETIF_F_IP_CSUM
tx Full csum. -> NETIF_F_HW_CSUM
rx Full csum -> NETIF_F_RXCSUM
Is there any option to support partial csum?
Thanks,
Michal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian
Re: [PATCH 11/11] net: xilinx: Show csum in bootlog
Quoted 24 lines · Michal Simek
Quoted 19 lines · Ben Hutchings
Quoted 1 line · Michal Simek
Just show current setting in bootlog.
[...]
Quoted 14 lines
drivers/net/ethernet/xilinx/ll_temac_main.c +2
-0@@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op)/* Setup checksum offload, but default to off if not specified */ lp->temac_features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) { lp->temac_features |=TEMAC_FEATURE_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ ndev->features |=NETIF_F_IP_CSUM ; } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));[...]
Quoted 3 lines
Is there any particular reason you think this needs to be logged by default, rather than letting users run ethtool -k? I suggest using
dev_dbg()instead.
Quoted 6 lines
Ok. I have looked at it and there are missing some bits in
ndev->features.Can you please check that my setting is correct?
It is SG DMA ip/driver.
ndev->features=NETIF_F_FRAGLIST|NETIF_F_SG
NETIF_F_SG only; NETIF_F_FRAGLIST means you can handle skbs chained through the frag_list pointer.
Quoted 3 lines
With two options for csum on RX/TX. They can be selected independently. tx Partial csum over IPv4. ->
NETIF_F_IP_CSUM
tx Full csum. ->NETIF_F_HW_CSUM
NETIF_F_IP_CSUM means you have hardware checksum generation for TCP/IPv4 and UDP/IPv4 only (XAE_FEATURE_FULL_TX_CSUM).
NETIF_F_HW_CSUM means you have generic TCP-style checksum generation using the csum_start and csum_offset fields of the skb (XAE_FEATURE_PARTIAL_TX_CSUM). By the way, you're actually testing XAE_FEATURE_PARTIAL_RX_CSUM in axienet_start_xmit()...
Quoted 3 lines
rx Full csum ->
NETIF_F_RXCSUMIs there any option to support partial csum?
There is no need to differentiate these in the device features. For TX the stack needs to know whether to use a software fallback before passing the skb to you, but on RX it looks at the ip_summed field of each skb you pass up.
Ben.
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
Re: [PATCH 11/11] net: xilinx: Show csum in bootlog
Quoted 27 lines · Ben Hutchings
Quoted 26 lines · Michal Simek
Quoted 19 lines · Ben Hutchings
Quoted 1 line · Michal Simek
Just show current setting in bootlog.
[...]
Quoted 14 lines
drivers/net/ethernet/xilinx/ll_temac_main.c +2
-0@@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op)/* Setup checksum offload, but default to off if not specified */ lp->temac_features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) { lp->temac_features |=TEMAC_FEATURE_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ ndev->features |=NETIF_F_IP_CSUM ; } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));[...]
Quoted 3 lines
Is there any particular reason you think this needs to be logged by default, rather than letting users run ethtool -k? I suggest using
dev_dbg()instead.Ok. I have looked at it and there are missing some bits in
ndev->features.
Quoted 7 lines
Quoted 4 lines
Can you please check that my setting is correct?
It is SG DMA ip/driver.
ndev->features=NETIF_F_FRAGLIST|NETIF_F_SG
NETIF_F_SGonly;NETIF_F_FRAGLISTmeans you can handle skbs chained through thefrag_listpointer.
The driver is able to handle skb fragments too. temac_start_xmit
Quoted 11 lines
Quoted 3 lines
With two options for csum on RX/TX. They can be selected independently. tx Partial csum over IPv4. ->
NETIF_F_IP_CSUM
tx Full csum. ->NETIF_F_HW_CSUM
NETIF_F_IP_CSUMmeans you have hardware checksum generation for TCP/IPv4 and UDP/IPv4 only (XAE_FEATURE_FULL_TX_CSUM).
NETIF_F_HW_CSUMmeans you have generic TCP-style checksum generation using thecsum_startandcsum_offsetfields of the skb (XAE_FEATURE_PARTIAL_TX_CSUM). By the way, you're actually testingXAE_FEATURE_PARTIAL_RX_CSUMinaxienet_start_xmit()...
We have used non mainline ll_temac driver for a long time but we will move to this mainline version soon. It is on my todo list to clean this driver and test all these options.
Also performance tests will be necessary to do.
Quoted 8 lines
Quoted 3 lines
rx Full csum ->
NETIF_F_RXCSUMIs there any option to support partial csum?
There is no need to differentiate these in the device features. For TX the stack needs to know whether to use a software fallback before passing the skb to you, but on RX it looks at the
ip_summedfield of each skb you pass up.
Hardware can be setup asymmetrically. It means enable CSUM only on RX or TX. All combination are valid.
The point here is if Linux is not able to handle this then we have to create logic in the driver to support these options too.
Thanks,
Michal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian
Re: [PATCH 11/11] net: xilinx: Show csum in bootlog
Quoted 30 lines · Michal Simek
Quoted 29 lines · Ben Hutchings
Quoted 28 lines · Michal Simek
Quoted 19 lines · Ben Hutchings
Quoted 1 line · Michal Simek
Just show current setting in bootlog.
[...]
Quoted 14 lines
drivers/net/ethernet/xilinx/ll_temac_main.c +2
-0@@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op)/* Setup checksum offload, but default to off if not specified */ lp->temac_features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) { lp->temac_features |=TEMAC_FEATURE_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ ndev->features |=NETIF_F_IP_CSUM ; } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));[...]
Quoted 3 lines
Is there any particular reason you think this needs to be logged by default, rather than letting users run ethtool -k? I suggest using
dev_dbg()instead.Ok. I have looked at it and there are missing some bits in
ndev->features.Can you please check that my setting is correct?
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
It is SG DMA ip/driver.
ndev->features=NETIF_F_FRAGLIST|NETIF_F_SG
NETIF_F_SGonly;NETIF_F_FRAGLISTmeans you can handle skbs chained through thefrag_listpointer.The driver is able to handle skb fragments too.
temac_start_xmit
"git grep -w -E 'frag_list|skb_walk_frags|skb_to_sgvec' drivers/net/ethernet/xilinx" returns nothing in net-next.
[...]
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
rx Full csum ->
NETIF_F_RXCSUMIs there any option to support partial csum?
There is no need to differentiate these in the device features. For TX the stack needs to know whether to use a software fallback before passing the skb to you, but on RX it looks at the
ip_summedfield of each skb you pass up.
Quoted 4 lines
Hardware can be setup asymmetrically. It means enable CSUM only on RX or TX. All combination are valid.
The point here is if Linux is not able to handle this then we have to create logic in the driver to support these options too.
Linux handles this just fine. The point is you don't have to tell the stack in advance whether or what kind of RX checksum validation your devices will do. (In fact the only reason that feature flag exists at all is so that it can be generically exposed through the ethtool API.)
Ben.
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
Re: [PATCH 11/11] net: xilinx: Show csum in bootlog
2012/10/9 Ben Hutchings <[email protected]>:
Quoted 34 lines · Michal Simek
Quoted 33 lines · Ben Hutchings
Quoted 32 lines · Michal Simek
Quoted 30 lines · Ben Hutchings
Quoted 19 lines · Michal Simek
Quoted 1 line
Just show current setting in bootlog.
[...]
Quoted 14 lines
drivers/net/ethernet/xilinx/ll_temac_main.c +2
-0@@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op)/* Setup checksum offload, but default to off if not specified */ lp->temac_features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) { lp->temac_features |=TEMAC_FEATURE_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ ndev->features |=NETIF_F_IP_CSUM ; } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));[...]
Quoted 3 lines
Is there any particular reason you think this needs to be logged by default, rather than letting users run ethtool -k? I suggest using
dev_dbg()instead.Ok. I have looked at it and there are missing some bits in
ndev->features.Can you please check that my setting is correct?
It is SG DMA ip/driver.
ndev->features=NETIF_F_FRAGLIST|NETIF_F_SG
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
NETIF_F_SGonly;NETIF_F_FRAGLISTmeans you can handle skbs chained through thefrag_listpointer.The driver is able to handle skb fragments too.
temac_start_xmit"git grep -w -E 'frag_list|skb_walk_frags|skb_to_sgvec'
drivers/net/ethernet/xilinx" returns nothing in net-next.
What about this? Maybe it is different fragmentation. drivers/net/ethernet/xilinx/ll_temac_main.c
688 num_frag = skb_shinfo(skb)->nr_frags;
689 frag = &skb_shinfo(skb)->frags[0];
Quoted 16 lines
[...]
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
rx Full csum ->
NETIF_F_RXCSUMIs there any option to support partial csum?
There is no need to differentiate these in the device features. For TX the stack needs to know whether to use a software fallback before passing the skb to you, but on RX it looks at the
ip_summedfield of each skb you pass up.Quoted 4 lines
Hardware can be setup asymmetrically. It means enable CSUM only on RX or TX. All combination are valid.
The point here is if Linux is not able to handle this then we have to create logic in the driver to support these options too.
Quoted 4 lines
Linux handles this just fine. The point is you don't have to tell the stack in advance whether or what kind of RX checksum validation your devices will do. (In fact the only reason that feature flag exists at all is so that it can be generically exposed through the ethtool API.)
Ok.
Thanks,
Michal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian
Re: [PATCH 11/11] net: xilinx: Show csum in bootlog
Quoted 40 lines · Michal Simek
2012/10/9 Ben Hutchings <[email protected]>:
Quoted 39 lines · Michal Simek
Quoted 37 lines · Ben Hutchings
Quoted 27 lines · Michal Simek
Quoted 26 lines · Ben Hutchings
Quoted 19 lines · Michal Simek
Quoted 1 line
Just show current setting in bootlog.
[...]
Quoted 14 lines
drivers/net/ethernet/xilinx/ll_temac_main.c +2
-0@@ -1052,12 +1052,14 @@ static int __devinit temac_of_probe(struct platform_device *op)/* Setup checksum offload, but default to off if not specified */ lp->temac_features =0 ; p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,txcsum" ,NULL ); +dev_info (&op->dev,"TX_CSUM %d\n" ,be32_to_cpup (p));if (p &&be32_to_cpu (*p)) { lp->temac_features |=TEMAC_FEATURE_TX_CSUM ;/* Can checksum TCP/UDP over IPv4. */ ndev->features |=NETIF_F_IP_CSUM ; } p = (__be32 *)of_get_property (op->dev.of_node,"xlnx,rxcsum" ,NULL ); +dev_info (&op->dev,"RX_CSUM %d\n" ,be32_to_cpup (p));[...]
Quoted 3 lines
Is there any particular reason you think this needs to be logged by default, rather than letting users run ethtool -k? I suggest using
dev_dbg()instead.Ok. I have looked at it and there are missing some bits in
ndev->features.Quoted 7 lines
Quoted 4 lines
Can you please check that my setting is correct?
It is SG DMA ip/driver.
ndev->features=NETIF_F_FRAGLIST|NETIF_F_SG
NETIF_F_SGonly;NETIF_F_FRAGLISTmeans you can handle skbs chained through thefrag_listpointer.The driver is able to handle skb fragments too.
temac_start_xmit
Quoted 7 lines
Quoted 2 lines
"git grep -w -E 'frag_list|skb_walk_frags|skb_to_sgvec'
drivers/net/ethernet/xilinx" returns nothing in net-next.What about this? Maybe it is different fragmentation.
drivers/net/ethernet/xilinx/ll_temac_main.c
688num_frag= skb_shinfo(skb)->nr_frags;
689 frag = &skb_shinfo(skb)->frags[0];
[...]
Yes, the fact that you handle the frags array is indicated by feature flag NETIF_F_SG.
Ben.
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
David Miller
maintainerSorry, no.
I've announced on netdev very clearly that net-next submissions are not appropriate at this time and that only pure bug fixes should be submitted.
Watch for the announcement on netdev of net-next openning up after the merge window closes, that's when you should resubmit this series.
Hi David,
Quoted 8 lines · David Miller
Sorry, no.
I've announced on netdev very clearly that net-next submissions are not appropriate at this time and that only pure bug fixes should be submitted.
Watch for the announcement on netdev of net-next openning up after the merge window closes, that's when you should resubmit this series.
Sorry I should label it as RFC.
Thanks,
Michal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian