<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/staging/greybus/loopback.c, branch v4.9</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>staging: greybus: Use setup_timer function</title>
<updated>2016-09-23T17:00:43+00:00</updated>
<author>
<name>sayli karnik</name>
<email>karniksayli1995@gmail.com</email>
</author>
<published>2016-09-22T16:39:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=82af03f7b945634bfa93fef4e2f50db4459aabea'/>
<id>82af03f7b945634bfa93fef4e2f50db4459aabea</id>
<content type='text'>
This patch uses setup_timer function instead of initializing timer with the
function and data fields.

Signed-off-by: sayli karnik &lt;karniksayli1995@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch uses setup_timer function instead of initializing timer with the
function and data fields.

Signed-off-by: sayli karnik &lt;karniksayli1995@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>greybus: loopback: add runtime pm support</title>
<updated>2016-07-14T21:53:55+00:00</updated>
<author>
<name>Axel Haslam</name>
<email>haslam_axel@projectara.com</email>
</author>
<published>2016-07-14T20:13:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e854ff58ed7011f73c7cdfcb7966ffa9c103571e'/>
<id>e854ff58ed7011f73c7cdfcb7966ffa9c103571e</id>
<content type='text'>
Add runtime pm to the loopback driver so that
the module wakes up from suspend while a test
is executed.

Testing Done: Let the module enter standby and
execute a loopback test.

Signed-off-by: Axel Haslam &lt;haslam_axel@projectara.com&gt;
Signed-off-by: David Lin &lt;dtwlin@google.com&gt;
Reviewed-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add runtime pm to the loopback driver so that
the module wakes up from suspend while a test
is executed.

Testing Done: Let the module enter standby and
execute a loopback test.

Signed-off-by: Axel Haslam &lt;haslam_axel@projectara.com&gt;
Signed-off-by: David Lin &lt;dtwlin@google.com&gt;
Reviewed-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Alex Elder &lt;elder@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>greybus: gpbridge: rename 'gpbridge' to 'gbphy' everywhere</title>
<updated>2016-05-19T17:09:13+00:00</updated>
<author>
<name>Sandeep Patil</name>
<email>patil_sandeep@projectara.com</email>
</author>
<published>2016-05-19T15:52:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e54b106dd1be50377fe8365392466e080b659ab6'/>
<id>e54b106dd1be50377fe8365392466e080b659ab6</id>
<content type='text'>
The 'gpbridge' name didn't relaly reflect what the bus is; which
is a bus for bridged-phy devices. So, rename all instances
of 'gpbridge' to more appropriate 'gbphy'

Testing Done:
Build and boot tested. 'lsgb' will stop displaying 'GPBridge' devices
until I change the library to reflect this change.

Signed-off-by: Sandeep Patil &lt;patil_sandeep@projectara.com&gt;
Suggested-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The 'gpbridge' name didn't relaly reflect what the bus is; which
is a bus for bridged-phy devices. So, rename all instances
of 'gpbridge' to more appropriate 'gbphy'

Testing Done:
Build and boot tested. 'lsgb' will stop displaying 'GPBridge' devices
until I change the library to reflect this change.

Signed-off-by: Sandeep Patil &lt;patil_sandeep@projectara.com&gt;
Suggested-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>greybus: loopback: remove unsupported version request</title>
<updated>2016-04-29T21:27:05+00:00</updated>
<author>
<name>Johan Hovold</name>
<email>johan@hovoldconsulting.com</email>
</author>
<published>2016-04-29T15:08:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=b1f8bfea65183b4575e3dde64641f7340a3dfa38'/>
<id>b1f8bfea65183b4575e3dde64641f7340a3dfa38</id>
<content type='text'>
Remove the unsupported version request from the loopback-driver request
handler.

Unsupported requests are already handled and logged using the default
case.

Signed-off-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the unsupported version request from the loopback-driver request
handler.

Unsupported requests are already handled and logged using the default
case.

Signed-off-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>greybus: Ensure gb-&gt;mutex is held when adding timer</title>
<updated>2016-03-17T04:49:31+00:00</updated>
<author>
<name>Bryan O'Donoghue</name>
<email>bryan.odonoghue@linaro.org</email>
</author>
<published>2016-03-16T11:29:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=fece9c87cb80aceec7dd0205a77c37ff7ba831fe'/>
<id>fece9c87cb80aceec7dd0205a77c37ff7ba831fe</id>
<content type='text'>
Currently in loopback on the async path we issue an operation and then add
a timer to time-out that operation should it fail to complete. Looking at a
backtrace given in its feasible op_async-&gt;pending can be true and
del_timer() can run before add_timer() has run. In the callback handler we
already hold gb-&gt;mutex. This patch fixes that potential race by ensuring we
hold gb-&gt;mutex both when we are adding and when we are removing the
relevant timer.

Signed-off-by: Bryan O'Donoghue &lt;bryan.odonoghue@linaro.org&gt;
Reported-and-tested-by: Axel Haslam &lt;ahaslam@baylibre.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently in loopback on the async path we issue an operation and then add
a timer to time-out that operation should it fail to complete. Looking at a
backtrace given in its feasible op_async-&gt;pending can be true and
del_timer() can run before add_timer() has run. In the callback handler we
already hold gb-&gt;mutex. This patch fixes that potential race by ensuring we
hold gb-&gt;mutex both when we are adding and when we are removing the
relevant timer.

Signed-off-by: Bryan O'Donoghue &lt;bryan.odonoghue@linaro.org&gt;
Reported-and-tested-by: Axel Haslam &lt;ahaslam@baylibre.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>greybus: loopback: Fix broken loopback min values</title>
<updated>2016-03-17T04:49:31+00:00</updated>
<author>
<name>Alexandre Bailon</name>
<email>abailon@baylibre.com</email>
</author>
<published>2016-03-11T16:23:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=1dc8d3d7c568d9a80fa20570a764da57677f1050'/>
<id>1dc8d3d7c568d9a80fa20570a764da57677f1050</id>
<content type='text'>
Currently, when a loopback test completely fail,
loopback will return 4294967295 for every min value.
Return 0 instead of 4294967295 in such case.

Signed-off-by: Alexandre Bailon &lt;abailon@baylibre.com&gt;
Reviewed-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, when a loopback test completely fail,
loopback will return 4294967295 for every min value.
Return 0 instead of 4294967295 in such case.

Signed-off-by: Alexandre Bailon &lt;abailon@baylibre.com&gt;
Reviewed-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>greybus: loopback: Fix broken synchonous test</title>
<updated>2016-03-10T06:31:32+00:00</updated>
<author>
<name>Alexandre Bailon</name>
<email>abailon@baylibre.com</email>
</author>
<published>2016-03-08T16:40:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=01480ba336982d49e2208636e38c0a80b732eba8'/>
<id>01480ba336982d49e2208636e38c0a80b732eba8</id>
<content type='text'>
loopback driver use the send_count variable to know the test progress.
The test may be stopped or change but this variable is never cleaned.
Such situation may break the next run.

Signed-off-by: Alexandre Bailon &lt;abailon@baylibre.com&gt;
Reviewed-by: Bryan O'Donoghue &lt;bryan.odonoghue@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
loopback driver use the send_count variable to know the test progress.
The test may be stopped or change but this variable is never cleaned.
Such situation may break the next run.

Signed-off-by: Alexandre Bailon &lt;abailon@baylibre.com&gt;
Reviewed-by: Bryan O'Donoghue &lt;bryan.odonoghue@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>greybus: loopback: round closest the sixth decimal</title>
<updated>2016-03-10T06:31:32+00:00</updated>
<author>
<name>Alexandre Bailon</name>
<email>abailon@baylibre.com</email>
</author>
<published>2016-03-08T15:37:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=58a527afff2b27bc912dbb7111d3f23d4f28105b'/>
<id>58a527afff2b27bc912dbb7111d3f23d4f28105b</id>
<content type='text'>
The original round was removed becaused it was rounding
the integer whereas we had decimals.
Round the sixth decimal.

Signed-off-by: Alexandre Bailon &lt;abailon@baylibre.com&gt;
Reviewed-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The original round was removed becaused it was rounding
the integer whereas we had decimals.
Round the sixth decimal.

Signed-off-by: Alexandre Bailon &lt;abailon@baylibre.com&gt;
Reviewed-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>greybus: loopback: Fix warning on 32-bit build</title>
<updated>2016-03-10T06:31:32+00:00</updated>
<author>
<name>Alexandre Bailon</name>
<email>abailon@baylibre.com</email>
</author>
<published>2016-03-08T15:37:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=89ec14ceaedf887fb666f09e1b768afdc32cb291'/>
<id>89ec14ceaedf887fb666f09e1b768afdc32cb291</id>
<content type='text'>
gb_loopback_ro_avg_attr() is using "/" to divide two 64-bit integer,
causing a reference to __aeabi_uldivmod() that is not availalbe on 32-bit.
Instead, use do_div().

Signed-off-by: Alexandre Bailon &lt;abailon@baylibre.com&gt;
Reviewed-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
gb_loopback_ro_avg_attr() is using "/" to divide two 64-bit integer,
causing a reference to __aeabi_uldivmod() that is not availalbe on 32-bit.
Instead, use do_div().

Signed-off-by: Alexandre Bailon &lt;abailon@baylibre.com&gt;
Reviewed-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>greybus: loopback: fix double error count</title>
<updated>2016-03-03T18:02:48+00:00</updated>
<author>
<name>Johan Hovold</name>
<email>johan@hovoldconsulting.com</email>
</author>
<published>2016-03-03T14:29:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=41993cd54fdc5c774cc4881e18a21e3e4a2544cd'/>
<id>41993cd54fdc5c774cc4881e18a21e3e4a2544cd</id>
<content type='text'>
Make sure not count errors during asynchronous tests twice (first in
the timeout handler then again in the completion handler) to avoid
obviously broken error stats such as:

$ loopback_test -i 1000 -t transfer -p -o 200000 -c 64 -x -s 2000

1970-1-1 1:3:35
 test:                  transfer
 path:                  gb_loopback0
 size:                  2000
 iterations:            1000
 errors:                1998
 async:                 Enabled
 requests per-sec:      min=0, max=0, average=0.310556, jitter=0
 ap-throughput B/s:     min=0 max=4026 average=1254.647461 jitter=4026
 ap-latency usec:       min=12803 max=12803 average=12803.000000 jitter=0
 apbridge-latency usec: min=89 max=89 average=89.000000 jitter=0
 gpbridge-latency usec: min=294 max=294 average=294.000000 jitter=0

where we supposedly have more errors than iterations (operations
initiated).

Signed-off-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make sure not count errors during asynchronous tests twice (first in
the timeout handler then again in the completion handler) to avoid
obviously broken error stats such as:

$ loopback_test -i 1000 -t transfer -p -o 200000 -c 64 -x -s 2000

1970-1-1 1:3:35
 test:                  transfer
 path:                  gb_loopback0
 size:                  2000
 iterations:            1000
 errors:                1998
 async:                 Enabled
 requests per-sec:      min=0, max=0, average=0.310556, jitter=0
 ap-throughput B/s:     min=0 max=4026 average=1254.647461 jitter=4026
 ap-latency usec:       min=12803 max=12803 average=12803.000000 jitter=0
 apbridge-latency usec: min=89 max=89 average=89.000000 jitter=0
 gpbridge-latency usec: min=294 max=294 average=294.000000 jitter=0

where we supposedly have more errors than iterations (operations
initiated).

Signed-off-by: Johan Hovold &lt;johan@hovoldconsulting.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@google.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
