{ "__inputs": [ { "name": "DS_YARDSTICK", "label": "yardstick", "description": "", "type": "datasource", "pluginId": "influxdb", "pluginName": "InfluxDB" } ], "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "4.4.3" }, { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, { "type": "datasource", "id": "influxdb", "name": "InfluxDB", "version": "1.0.0" } ], "annotations": { "list": [] }, "editable": true, "gnetId": null, "graphTooltip": 0, "hideControls": false, "id": null, "links": [], "refresh": false, "rows": [ { "collapse": false, "height": 250, "panels": [ { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "yardstick", "fill": 1, "id": 8, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "targets": [ { "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "mpstat_average.cpu.%gnice" ], "type": "field" } ] ], "tags": [] }, { "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "refId": "B", "resultFormat": "time_series", "select": [ [ { "params": [ "mpstat_average.cpu.%guest" ], "type": "field" } ] ], "tags": [] }, { "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "refId": "C", "resultFormat": "time_series", "select": [ [ { "params": [ "mpstat_average.cpu.%iowait" ], "type": "field" } ] ], "tags": [] }, { "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "refId": "D", "resultFormat": "time_series", "select": [ [ { "params": [ "mpstat_average.cpu.%idle" ], "type": "field" } ] ], "tags": [] }, { "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "refId": "E", "resultFormat": "time_series", "select": [ [ { "params": [ "mpstat_average.cpu.%irq" ], "type": "field" } ] ], "tags": [] }, { "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "refId": "F", "resultFormat": "time_series", "select": [ [ { "params": [ "mpstat_average.cpu.%nice" ], "type": "field" } ] ], "tags": [] }, { "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "refId": "G", "resultFormat": "time_series", "select": [ [ { "params": [ "mpstat_average.cpu.%soft" ], "type": "field" } ] ], "tags": [] }, { "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "refId": "H", "resultFormat": "time_series", "select": [ [ { "params": [ "mpstat_average.cpu.%steal" ], "type": "field" } ] ], "tags": [] }, { "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "refId": "I", "resultFormat": "time_series", "select": [ [ { "params": [ "mpstat_average.cpu.%sys" ], "type": "field" } ] ], "tags": [] }, { "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "refId": "J", "resultFormat": "time_series", "select": [ [ { "params": [ "mpstat_average.cpu.%usr" ], "type": "field" } ] ], "tags": [] } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "CPU Usage", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "percent", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Dashboard Row", "titleSize": "h6" }, { "collapse": false, "height": 340, "panels": [ { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "yardstick", "description": "Packets loss Per Million", "fill": 1, "id": 1, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": true, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "targets": [ { "alias": "Packets loss Per Million", "dsType": "influxdb", "groupBy": [], "measurement": "opnfv_yardstick_tc037", "orderByTime": "ASC", "policy": "default", "query": "SELECT \"packets_received\" * 100, \"packets_sent\", \"packetsize\" FROM \"opnfv_yardstick_tc001\" WHERE $timeFilter GROUP BY fill(null)", "rawQuery": false, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "ppm" ], "type": "field" } ] ], "tags": [] } ], "thresholds": [ { "colorMode": "critical", "fill": true, "line": true, "op": "gt", "value": 1000 } ], "timeFrom": null, "timeShift": null, "title": "Packets loss Per Million", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "ppm", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Dashboard Row", "titleSize": "h6" }, { "collapse": false, "height": 318, "panels": [ { "aliasColors": {}, "bars": true, "dashLength": 10, "dashes": false, "datasource": "yardstick", "fill": 1, "id": 5, "legend": { "avg": false, "current": false,
/*******************************************************************************
  This is the driver for the GMAC on-chip Ethernet controller for ST SoCs.
  DWC Ether MAC 10/100/1000 Universal version 3.41a  has been used for
  developing this code.

  This contains the functions to handle the dma.

  Copyright (C) 2007-2009  STMicroelectronics Ltd

  This program is free software; you can redistribute it and/or modify it
  under the terms and conditions of the GNU General Public License,
  version 2, as published by the Free Software Foundation.

  This program is distributed in the hope it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  more details.

  You should have received a copy of the GNU General Public License along with
  this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.

  The full GNU General Public License is included in this distribution in
  the file called "COPYING".

  Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
*******************************************************************************/

#include <asm/io.h>
#include "dwmac1000.h"
#include "dwmac_dma.h"

static int dwmac1000_dma_init(void __iomem *ioaddr, int pbl, int fb, int mb,
			      int burst_len, u32 dma_tx, u32 dma_rx, int atds)
{
	u32 value = readl