Skip to content

Commit

Permalink
Merge tag 'xilinx-v2017.4'
Browse files Browse the repository at this point in the history
Tagged for xilinx-v2017.4
  • Loading branch information
ionel-badisor committed Mar 12, 2019
2 parents 83ccde7 + b450e90 commit a8c769a
Show file tree
Hide file tree
Showing 33 changed files with 1,284 additions and 405 deletions.
9 changes: 0 additions & 9 deletions arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,10 @@
/* fpd_dma clk 667MHz, lpd_dma 500MHz */
&fpd_dma_chan1 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
xlnx,overfetch; /* for testing purpose */
xlnx,ratectrl = <0>; /* for testing purpose */
xlnx,src-issue = <31>;
};

&fpd_dma_chan2 {
status = "okay";
xlnx,ratectrl = <100>; /* for testing purpose */
xlnx,src-issue = <4>; /* for testing purpose */
};

&fpd_dma_chan3 {
Expand All @@ -67,7 +61,6 @@

&fpd_dma_chan4 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan5 {
Expand All @@ -76,7 +69,6 @@

&fpd_dma_chan6 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan7 {
Expand All @@ -85,7 +77,6 @@

&fpd_dma_chan8 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&gem3 {
Expand Down
9 changes: 0 additions & 9 deletions arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,10 @@
/* fpd_dma clk 667MHz, lpd_dma 500MHz */
&fpd_dma_chan1 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
xlnx,overfetch; /* for testing purpose */
xlnx,ratectrl = <0>; /* for testing purpose */
xlnx,src-issue = <31>;
};

&fpd_dma_chan2 {
status = "okay";
xlnx,ratectrl = <100>; /* for testing purpose */
xlnx,src-issue = <4>; /* for testing purpose */
};

&fpd_dma_chan3 {
Expand All @@ -80,7 +74,6 @@

&fpd_dma_chan4 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan5 {
Expand All @@ -89,7 +82,6 @@

&fpd_dma_chan6 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan7 {
Expand All @@ -98,7 +90,6 @@

&fpd_dma_chan8 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&gem2 {
Expand Down
9 changes: 0 additions & 9 deletions arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,10 @@
/* fpd_dma clk 667MHz, lpd_dma 500MHz */
&fpd_dma_chan1 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
xlnx,overfetch; /* for testing purpose */
xlnx,ratectrl = <0>; /* for testing purpose */
xlnx,src-issue = <31>;
};

&fpd_dma_chan2 {
status = "okay";
xlnx,ratectrl = <100>; /* for testing purpose */
xlnx,src-issue = <4>; /* for testing purpose */
};

&fpd_dma_chan3 {
Expand All @@ -65,7 +59,6 @@

&fpd_dma_chan4 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan5 {
Expand All @@ -74,7 +67,6 @@

&fpd_dma_chan6 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan7 {
Expand All @@ -83,7 +75,6 @@

&fpd_dma_chan8 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&gem0 {
Expand Down
9 changes: 0 additions & 9 deletions arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm018-dc4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,10 @@
/* fpd_dma clk 667MHz, lpd_dma 500MHz */
&fpd_dma_chan1 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
xlnx,overfetch; /* for testing purpose */
xlnx,ratectrl = <0>; /* for testing purpose */
xlnx,src-issue = <31>;
};

&fpd_dma_chan2 {
status = "okay";
xlnx,ratectrl = <100>; /* for testing purpose */
xlnx,src-issue = <4>; /* for testing purpose */
};

&fpd_dma_chan3 {
Expand All @@ -76,7 +70,6 @@

&fpd_dma_chan4 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan5 {
Expand All @@ -85,7 +78,6 @@

&fpd_dma_chan6 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan7 {
Expand All @@ -94,7 +86,6 @@

&fpd_dma_chan8 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&lpd_dma_chan1 {
Expand Down
9 changes: 0 additions & 9 deletions arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm019-dc5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,10 @@
/* fpd_dma clk 667MHz, lpd_dma 500MHz */
&fpd_dma_chan1 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
xlnx,overfetch; /* for testing purpose */
xlnx,ratectrl = <0>; /* for testing purpose */
xlnx,src-issue = <31>;
};

&fpd_dma_chan2 {
status = "okay";
xlnx,ratectrl = <100>; /* for testing purpose */
xlnx,src-issue = <4>; /* for testing purpose */
};

&fpd_dma_chan3 {
Expand All @@ -65,7 +59,6 @@

&fpd_dma_chan4 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan5 {
Expand All @@ -74,7 +67,6 @@

&fpd_dma_chan6 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan7 {
Expand All @@ -83,7 +75,6 @@

&fpd_dma_chan8 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&gem1 {
Expand Down
9 changes: 0 additions & 9 deletions arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,10 @@
/* fpd_dma clk 667MHz, lpd_dma 500MHz */
&fpd_dma_chan1 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
xlnx,overfetch; /* for testing purpose */
xlnx,ratectrl = <0>; /* for testing purpose */
xlnx,src-issue = <31>;
};

&fpd_dma_chan2 {
status = "okay";
xlnx,ratectrl = <100>; /* for testing purpose */
xlnx,src-issue = <4>; /* for testing purpose */
};

&fpd_dma_chan3 {
Expand All @@ -102,7 +96,6 @@

&fpd_dma_chan4 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan5 {
Expand All @@ -111,7 +104,6 @@

&fpd_dma_chan6 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan7 {
Expand All @@ -120,7 +112,6 @@

&fpd_dma_chan8 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&gem3 {
Expand Down
9 changes: 0 additions & 9 deletions arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,10 @@
/* fpd_dma clk 667MHz, lpd_dma 500MHz */
&fpd_dma_chan1 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
xlnx,overfetch; /* for testing purpose */
xlnx,ratectrl = <0>; /* for testing purpose */
xlnx,src-issue = <31>;
};

&fpd_dma_chan2 {
status = "okay";
xlnx,ratectrl = <100>; /* for testing purpose */
xlnx,src-issue = <4>; /* for testing purpose */
};

&fpd_dma_chan3 {
Expand All @@ -102,7 +96,6 @@

&fpd_dma_chan4 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan5 {
Expand All @@ -111,7 +104,6 @@

&fpd_dma_chan6 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&fpd_dma_chan7 {
Expand All @@ -120,7 +112,6 @@

&fpd_dma_chan8 {
status = "okay";
xlnx,include-sg; /* for testing purpose */
};

&gem3 {
Expand Down
4 changes: 2 additions & 2 deletions drivers/char/xilinx_devcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,14 @@ xdevcfg_write(struct file *file, const char __user *buf, size_t count,

timeout = jiffies + msecs_to_jiffies(1000);

while (!drvdata->dma_done) {
while (!READ_ONCE(drvdata->dma_done)) {
if (time_after(jiffies, timeout)) {
status = -ETIMEDOUT;
goto error;
}
}

if (drvdata->error_status)
if (READ_ONCE(drvdata->error_status))
status = drvdata->error_status;

/* Disable the DMA and error interrupts */
Expand Down
4 changes: 0 additions & 4 deletions drivers/clk/zynqmp/clkc.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ static const char *can0_mio_mux2_parents[] __initconst = {"can0_ref",
"can0_mio_mux"};
static const char *can1_mio_mux2_parents[] __initconst = {"can1_ref",
"can1_mio_mux"};
static const char *usb0_mio_mux_parents[] __initconst = {"usb0_bus_ref",
"usb0_mio_ulpi_clk"};
static const char *usb1_mio_mux_parents[] __initconst = {"usb1_bus_ref",
"usb1_mio_ulpi_clk"};
static const char *swdt_ext_clk_input_names[] __initconst = {"swdt0_ext_clk",
"swdt1_ext_clk"};
static const char *gem0_tx_mux_parents[] __initconst = {"gem0_ref_div1",
Expand Down
6 changes: 2 additions & 4 deletions drivers/dma/xilinx/axidmatest.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <linux/wait.h>
#include <linux/dma/xilinx_dma.h>

static unsigned int test_buf_size = 64;
static unsigned int test_buf_size = 16384;
module_param(test_buf_size, uint, S_IRUGO);
MODULE_PARM_DESC(test_buf_size, "Size of the memcpy test buffer");

Expand Down Expand Up @@ -226,9 +226,6 @@ static int dmatest_slave_func(void *data)

ret = -ENOMEM;

/* JZ: limit testing scope here */
test_buf_size = 700;

smp_rmb();
tx_chan = thread->tx_chan;
rx_chan = thread->rx_chan;
Expand Down Expand Up @@ -627,6 +624,7 @@ static int xilinx_axidmatest_remove(struct platform_device *pdev)
dmatest_cleanup_channel(dtc);
pr_info("xilinx_dmatest: dropped channel %s\n",
dma_chan_name(chan));
dmaengine_terminate_all(chan);
dma_release_channel(chan);
}
return 0;
Expand Down
Loading

0 comments on commit a8c769a

Please sign in to comment.