<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hwtracing/intel_th/core.c, branch linux-4.20.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.20.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.20.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-09-18T14:08:38Z</updated>
<entry>
<title>intel_th: Fix resource handling for ACPI glue layer</title>
<updated>2018-09-18T14:08:38Z</updated>
<author>
<name>Alexander Shishkin</name>
</author>
<published>2018-09-18T13:10:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ebe4582281d6e90972f057318a6edea14810ea48'/>
<id>urn:sha1:ebe4582281d6e90972f057318a6edea14810ea48</id>
<content type='text'>
The core of the driver expects the resource array from the glue layer
to be indexed by even numbers, as is the case for 64-bit PCI resources.
This doesn't hold true for others, ACPI in this instance, which leads
to an out-of-bounds access and an ioremap() on whatever address that
access fetches.

This patch fixes the problem by reading resource array differently based
on whether the 64-bit flag is set, which would indicate PCI glue layer.

Signed-off-by: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;
Fixes: ebc57e399b8e ("intel_th: Add ACPI glue layer")
CC: stable@vger.kernel.org # v4.17+
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>intel_th: Fix device removal logic</title>
<updated>2018-09-18T14:08:38Z</updated>
<author>
<name>Alexander Shishkin</name>
</author>
<published>2018-09-18T13:10:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8801922cd94c918e4dc3a108ecaa500c4d40583f'/>
<id>urn:sha1:8801922cd94c918e4dc3a108ecaa500c4d40583f</id>
<content type='text'>
Commit a753bfcfdb1f ("intel_th: Make the switch allocate its subdevices")
brings in new subdevice addition/removal logic that's broken for "host
mode": the SWITCH device has no children to begin with, which is not
handled in the code. This results in a null dereference bug later down
the path.

This patch fixes the subdevice removal code to handle host mode correctly.

Signed-off-by: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;
Fixes: a753bfcfdb1f ("intel_th: Make the switch allocate its subdevices")
CC: stable@vger.kernel.org # v4.14+
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>intel_th: Allow forcing host mode through drvdata</title>
<updated>2018-03-28T15:47:21Z</updated>
<author>
<name>Alexander Shishkin</name>
</author>
<published>2017-08-23T06:52:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=282ffec565c2e9fe18bbb48c19767cccd2437f11'/>
<id>urn:sha1:282ffec565c2e9fe18bbb48c19767cccd2437f11</id>
<content type='text'>
Some devices can only operate in host mode, so we need means of
communicating this to the core driver on per-device basis. This
adds a flag to drvdata to signal host-only capability to the core.

Signed-off-by: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>intel_th: Pick up irq number from resources</title>
<updated>2018-03-28T15:47:21Z</updated>
<author>
<name>Alexander Shishkin</name>
</author>
<published>2017-08-23T06:47:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=661b0df8489a35da4ee8acaaf43f204a913ccfc9'/>
<id>urn:sha1:661b0df8489a35da4ee8acaaf43f204a913ccfc9</id>
<content type='text'>
Platform devices pass their IRQs around as resources, so as a convenience
for the glue layer code, allow them pass the IRQ to the core driver in
the resources array.

Signed-off-by: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>intel_th: Don't touch switch routing in host mode</title>
<updated>2018-03-28T15:47:20Z</updated>
<author>
<name>Alexander Shishkin</name>
</author>
<published>2018-03-01T08:17:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c2d2c7de972d7a08533bde622c36ff6feb112907'/>
<id>urn:sha1:c2d2c7de972d7a08533bde622c36ff6feb112907</id>
<content type='text'>
When the Trace Hub is operating in Host Debugger mode, it is up to the
debugger to configure master routing even for the software sources. Do
not do this in the driver in this case.

Signed-off-by: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>intel_th: Use correct method of finding hub</title>
<updated>2018-03-28T15:47:19Z</updated>
<author>
<name>Alexander Shishkin</name>
</author>
<published>2018-03-01T08:15:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ad577087165478c9d9be82b15ed9bf2db5835f5'/>
<id>urn:sha1:9ad577087165478c9d9be82b15ed9bf2db5835f5</id>
<content type='text'>
Since commit 8edc514b01e9 ("intel_th: Make SOURCE devices children of the
root device") the hub is not the parent of SOURCE devices any more, so the
new helper function should be used for that instead of always using the
parent. The intel_th_set_output() path, however, still uses the old
logic, leading to the hub driver structure being aliased with something
else, like struct pci_driver or struct acpi_driver, and an incorrect call
to an address inferred from that, potentially resulting in a crash.

Fixes: 8edc514b01e9 ("intel_th: Make SOURCE devices children of the root device")
Signed-off-by: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>intel_th: Add SPDX GPL-2.0 header to replace GPLv2 boilerplate</title>
<updated>2018-03-28T15:47:19Z</updated>
<author>
<name>Alexander Shishkin</name>
</author>
<published>2018-03-28T15:46:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=50352fa730328b2e946fb912d495653b627c0bf9'/>
<id>urn:sha1:50352fa730328b2e946fb912d495653b627c0bf9</id>
<content type='text'>
This adds SPDX GPL-2.0 header to the Trace Hub driver and removes the
GPLv2 boilerplate text.

Signed-off-by: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>intel_th: Perform time resync on capture start</title>
<updated>2017-08-25T15:48:00Z</updated>
<author>
<name>Alexander Shishkin</name>
</author>
<published>2017-02-24T14:09:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a0e7df335afd2a8a8a688251ffee375b58b6517c'/>
<id>urn:sha1:a0e7df335afd2a8a8a688251ffee375b58b6517c</id>
<content type='text'>
On some devices (TH 2.x devices at the moment), the internal time counter
is initially not synchronized to the global crystal clock, so the time
stamps it produces will not be useful. In this case, the driver needs
to force the time counter resync.

This applies the workaround to relevant devices.

Signed-off-by: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>intel_th: Add global activate/deactivate callbacks for the glue layers</title>
<updated>2017-08-25T15:48:00Z</updated>
<author>
<name>Alexander Shishkin</name>
</author>
<published>2017-08-25T12:47:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=29e15e83a99cdc13d0d38de558fbea641f8fdda8'/>
<id>urn:sha1:29e15e83a99cdc13d0d38de558fbea641f8fdda8</id>
<content type='text'>
A glue layer may want to install its own hooks into trace capture start
and stop paths to apply workarounds. This adds optional callbacks.

Signed-off-by: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>intel_th: pci: Use drvdata for quirks</title>
<updated>2017-08-25T15:47:59Z</updated>
<author>
<name>Alexander Shishkin</name>
</author>
<published>2017-08-18T14:57:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3321371b5d648479058fa6f9441168abbc1467c9'/>
<id>urn:sha1:3321371b5d648479058fa6f9441168abbc1467c9</id>
<content type='text'>
Allow attaching miscellaneous quirk information to devices as drvdata.

Signed-off-by: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;
</content>
</entry>
</feed>
