<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/include/uapi/misc, branch v5.4.262</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v5.4.262</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v5.4.262'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2019-09-05T11:55:27Z</updated>
<entry>
<title>habanalabs: stop using the acronym KMD</title>
<updated>2019-09-05T11:55:27Z</updated>
<author>
<name>Oded Gabbay</name>
<email>oded.gabbay@gmail.com</email>
</author>
<published>2019-08-30T13:59:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4c172bbfaa4e1aa26dab58781301902c7b3e4ebc'/>
<id>urn:sha1:4c172bbfaa4e1aa26dab58781301902c7b3e4ebc</id>
<content type='text'>
We want to stop using the acronym KMD. Therefore, replace all locations
(except for register names we can't modify) where KMD is written to other
terms such as "Linux kernel driver" or "Host kernel driver", etc.

Signed-off-by: Oded Gabbay &lt;oded.gabbay@gmail.com&gt;
Reviewed-by: Omer Shpigelman &lt;oshpigelman@habana.ai&gt;
</content>
</entry>
<entry>
<title>habanalabs: add uapi to retrieve aggregate H/W events</title>
<updated>2019-09-05T11:55:27Z</updated>
<author>
<name>Oded Gabbay</name>
<email>oded.gabbay@gmail.com</email>
</author>
<published>2019-08-28T18:51:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e9730763a21a5441d46511f124d703d76a5ef6e6'/>
<id>urn:sha1:e9730763a21a5441d46511f124d703d76a5ef6e6</id>
<content type='text'>
Add a new opcode to INFO IOCTL to retrieve aggregate H/W events. i.e. the
events counters are NOT cleared upon device reset, but count from the
loading of the driver.

Add the code to support it in the device event handling function.

Signed-off-by: Oded Gabbay &lt;oded.gabbay@gmail.com&gt;
Reviewed-by: Omer Shpigelman &lt;oshpigelman@habana.ai&gt;
</content>
</entry>
<entry>
<title>habanalabs: add uapi to retrieve device utilization</title>
<updated>2019-09-05T11:55:27Z</updated>
<author>
<name>Oded Gabbay</name>
<email>oded.gabbay@gmail.com</email>
</author>
<published>2019-08-28T14:32:04Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=75b3cb2bb080372d043e8f0c0aeae8f52461136b'/>
<id>urn:sha1:75b3cb2bb080372d043e8f0c0aeae8f52461136b</id>
<content type='text'>
Users and sysadmins usually want to know what is the device utilization as
a level 0 indication if they are efficiently using the device.

Add a new opcode to the INFO IOCTL that will return the device utilization
over the last period of 100-1000ms. The return value is 0-100,
representing as percentage the total utilization rate.

Signed-off-by: Oded Gabbay &lt;oded.gabbay@gmail.com&gt;
Reviewed-by: Omer Shpigelman &lt;oshpigelman@habana.ai&gt;
</content>
</entry>
<entry>
<title>habanalabs: Make the Coresight timestamp perpetual</title>
<updated>2019-09-05T11:55:27Z</updated>
<author>
<name>Tomer Tayar</name>
<email>ttayar@habana.ai</email>
</author>
<published>2019-08-27T16:14:18Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=413cf576fd50297429e967b050d63067c997645c'/>
<id>urn:sha1:413cf576fd50297429e967b050d63067c997645c</id>
<content type='text'>
The Coresight timestamp is enabled for a specific debug session using
the HL_DEBUG_OP_TIMESTAMP opcode of the debug IOCTL.
In order to have a perpetual timestamp that would be comparable between
various debug sessions, this patch moves the timestamp enablement to be
part of the HW initialization.
The HL_DEBUG_OP_TIMESTAMP opcode turns to be deprecated and shouldn't be
used. Old user-space that will call it won't see any change in the
behavior of the debug session.

Signed-off-by: Tomer Tayar &lt;ttayar@habana.ai&gt;
Reviewed-by: Oded Gabbay &lt;oded.gabbay@gmail.com&gt;
Signed-off-by: Oded Gabbay &lt;oded.gabbay@gmail.com&gt;
</content>
</entry>
<entry>
<title>habanalabs: explicitly set the queue-id enumerated numbers</title>
<updated>2019-09-05T11:55:27Z</updated>
<author>
<name>Dotan Barak</name>
<email>dbarak@habana.ai</email>
</author>
<published>2019-08-12T07:23:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4fd2cb15cd0894520422b3e7d9cf68b7e6548b13'/>
<id>urn:sha1:4fd2cb15cd0894520422b3e7d9cf68b7e6548b13</id>
<content type='text'>
When looking at kernel log messages and when debugging user applications,
we only see the queue id. This patch explicitly set the queue id in the
queue enumeration which will be helpful for finding the queue name when we
have its id.

Signed-off-by: Dotan Barak &lt;dbarak@habana.ai&gt;
Reviewed-by: Oded Gabbay &lt;oded.gabbay@gmail.com&gt;
Reviewed-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Oded Gabbay &lt;oded.gabbay@gmail.com&gt;
</content>
</entry>
<entry>
<title>habanalabs: add comments on INFO IOCTL</title>
<updated>2019-09-05T11:55:25Z</updated>
<author>
<name>Oded Gabbay</name>
<email>oded.gabbay@gmail.com</email>
</author>
<published>2019-07-16T05:55:04Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f388ec7c16ad8676ee516a735a6b7588252f971d'/>
<id>urn:sha1:f388ec7c16ad8676ee516a735a6b7588252f971d</id>
<content type='text'>
This patch adds some in-code documentation on the different opcodes of the
INFO IOCTL.

Signed-off-by: Oded Gabbay &lt;oded.gabbay@gmail.com&gt;
Reviewed-by: Omer Shpigelman &lt;oshpigelman@habana.ai&gt;
</content>
</entry>
<entry>
<title>misc: xilinx_sdfec: Add stats &amp; status ioctls</title>
<updated>2019-08-15T15:54:38Z</updated>
<author>
<name>Dragan Cvetic</name>
<email>dragan.cvetic@xilinx.com</email>
</author>
<published>2019-07-27T08:33:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6bd6a690c2e7e710aa7ccefa4edc83f14099907e'/>
<id>urn:sha1:6bd6a690c2e7e710aa7ccefa4edc83f14099907e</id>
<content type='text'>
SD-FEC statistic data are:
- count of data interface errors (isr_err_count)
- count of Correctable ECC errors (cecc_count)
- count of Uncorrectable ECC errors (uecc_count)

Add support:
1. clear stats ioctl callback which clears collected
statistic data,
2. get stats ioctl callback which reads a collected
statistic data,
3. set default configuration ioctl callback,
4. start ioctl callback enables SD-FEC HW,
5. stop ioctl callback disables SD-FEC HW.

In a failed state driver enables the following ioctls:
- get status
- get statistics
- clear stats
- set default SD-FEC device configuration

Tested-by: Santhosh Dyavanapally &lt;SDYAVANA@xilinx.com&gt;
Tested by: Punnaiah Choudary Kalluri &lt;punnaia@xilinx.com&gt;
Tested-by: Derek Kiernan &lt;derek.kiernan@xilinx.com&gt;
Tested-by: Dragan Cvetic &lt;dragan.cvetic@xilinx.com&gt;
Signed-off-by: Derek Kiernan &lt;derek.kiernan@xilinx.com&gt;
Signed-off-by: Dragan Cvetic &lt;dragan.cvetic@xilinx.com&gt;
Link: https://lore.kernel.org/r/1564216438-322406-7-git-send-email-dragan.cvetic@xilinx.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>misc: xilinx_sdfec: Support poll file operation</title>
<updated>2019-08-15T15:54:38Z</updated>
<author>
<name>Dragan Cvetic</name>
<email>dragan.cvetic@xilinx.com</email>
</author>
<published>2019-07-27T08:33:55Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=cc538f609dee49b73545569c49e3abd891fdd8b3'/>
<id>urn:sha1:cc538f609dee49b73545569c49e3abd891fdd8b3</id>
<content type='text'>
Support monitoring and detecting the SD-FEC error events
through IRQ and poll file operation.

The SD-FEC device can detect one-error or multi-error events.
An error triggers an interrupt which creates and run the ONE_SHOT
IRQ thread.
The ONE_SHOT IRQ thread detects type of error and pass that
information to the poll function.
The file_operation callback poll(), collects the events and
updates the statistics accordingly.
The function poll blocks() on waiting queue which can be
unblocked by ONE_SHOT IRQ handling thread.

Support SD-FEC interrupt set ioctl callback.
The SD-FEC can detect two type of errors: coding errors (ECC) and
a data interface errors (TLAST).
The errors are  events which can trigger an IRQ if enabled.
The driver can monitor and detect these errors through IRQ.
Also the driver updates the statistical data.

Tested-by: Dragan Cvetic &lt;dragan.cvetic@xilinx.com&gt;
Signed-off-by: Derek Kiernan &lt;derek.kiernan@xilinx.com&gt;
Signed-off-by: Dragan Cvetic &lt;dragan.cvetic@xilinx.com&gt;
Link: https://lore.kernel.org/r/1564216438-322406-6-git-send-email-dragan.cvetic@xilinx.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>misc: xilinx_sdfec: Add ability to get/set config</title>
<updated>2019-08-15T15:54:38Z</updated>
<author>
<name>Dragan Cvetic</name>
<email>dragan.cvetic@xilinx.com</email>
</author>
<published>2019-07-27T08:33:54Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=77dd39d924e650cd20696d790f861dfe26e0cb64'/>
<id>urn:sha1:77dd39d924e650cd20696d790f861dfe26e0cb64</id>
<content type='text'>
- Add capability to get SD-FEC config data using ioctl
XSDFEC_GET_CONFIG.

- Add capability to set SD-FEC data order using ioctl
SDFEC_SET_ORDER.

- Add capability to set SD-FEC bypass option using ioctl
XSDFEC_SET_BYPASS.

- Add capability to set SD-FEC active state using ioctl
XSDFEC_IS_ACTIVE.

Tested-by: Dragan Cvetic &lt;dragan.cvetic@xilinx.com&gt;
Signed-off-by: Derek Kiernan &lt;derek.kiernan@xilinx.com&gt;
Signed-off-by: Dragan Cvetic &lt;dragan.cvetic@xilinx.com&gt;
Link: https://lore.kernel.org/r/1564216438-322406-5-git-send-email-dragan.cvetic@xilinx.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>misc: xilinx_sdfec: Add ability to configure LDPC</title>
<updated>2019-08-15T15:54:37Z</updated>
<author>
<name>Dragan Cvetic</name>
<email>dragan.cvetic@xilinx.com</email>
</author>
<published>2019-07-27T08:33:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=20ec628e8007ec75c2f884e00004f39eab6289b5'/>
<id>urn:sha1:20ec628e8007ec75c2f884e00004f39eab6289b5</id>
<content type='text'>
Add the capability to configure LDPC mode via the ioctl
XSDFEC_ADD_LDPC_CODE_PARAMS.

Tested-by: Dragan Cvetic &lt;dragan.cvetic@xilinx.com&gt;
Signed-off-by: Derek Kiernan &lt;derek.kiernan@xilinx.com&gt;
Signed-off-by: Dragan Cvetic &lt;dragan.cvetic@xilinx.com&gt;
Link: https://lore.kernel.org/r/1564216438-322406-4-git-send-email-dragan.cvetic@xilinx.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
