stm class/intel_th: Fixes for v5.3
Subsystems (5)
Alexander Shishkin
maintainerHi Greg,
These are the fixes that I have for v5.3. One is an actual bugfix that's copied to stable, one SPDX header fix and two new PCI IDs. Signed tag below, individual patches follow. Please consider applying or pulling. Thanks!
The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b:
Linus 5.3-rc1 (2019-07-21 14:05:38 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/ash/stm.git tags/stm-intel_th-fixes-for-greg-20190820
for you to fetch changes up to 1114218bb49423c2ed6767f0f385f994da71c068:
intel_th: pci: Add Tiger Lake support (2019-08-20 13:02:59 +0300)
----------------------------------------------------------------
stm class/intel_th: Fixes for v5.3
These are:
* Double-free fix, going back to v4.4.
* SPDX license header fix.
* 2 new PCI IDs.
----------------------------------------------------------------
Alexander Shishkin (2):
intel_th: pci: Add support for another Lewisburg PCH
intel_th: pci: Add Tiger Lake support
Ding Xiang (1):
stm class: Fix a double free of stm_source_device
Nishad Kamdar (1):
intel_th: Use the correct style for SPDX License Identifier
drivers/hwtracing/intel_th/msu.h | 2 +- drivers/hwtracing/intel_th/pci.c | 10 ++++++++++ drivers/hwtracing/intel_th/pti.h | 2 +- drivers/hwtracing/stm/core.c | 1 - 4 files changed, 12 insertions(+), 3 deletions(-)
Signature · 1 line
2.23.0.rc1
Alexander Shishkin
maintainer[GIT PULL 3/4] intel_th: pci: Add support for another Lewisburg PCH
Add support for the Trace Hub in another Lewisburg PCH.
--- drivers/hwtracing/intel_th/pci.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/hwtracing/intel_th/pci.c +5 -0
@@ -164,6 +164,11 @@ static const struct pci_device_id intel_th_pci_id_table[] = { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xa1a6), .driver_data = (kernel_ulong_t )0 , }, + { +/* Lewisburg PCH */ +PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0xa226 ), + .driver_data = (kernel_ulong_t)0, + }, {/* Gemini Lake */ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x318e),
Signature · 1 line
2.23.0.rc1
Greg Kroah-Hartman
maintainerRe: [GIT PULL 3/4] intel_th: pci: Add support for another Lewisburg PCH
Quoted 6 lines · Alexander Shishkin
Add support for the Trace Hub in another Lewisburg PCH.
Signed-off-by Alexander Shishkin <[email protected]>--- drivers/hwtracing/intel_th/pci.c | 5 +++++ 1 file changed, 5 insertions(+)
same here, ok for stable?
thanks,
greg k-h
Alexander Shishkin
maintainerRe: [GIT PULL 3/4] intel_th: pci: Add support for another Lewisburg PCH
Quoted 9 lines · Greg Kroah-Hartman
Quoted 6 lines · Alexander Shishkin
Add support for the Trace Hub in another Lewisburg PCH.
Signed-off-by Alexander Shishkin <[email protected]>--- drivers/hwtracing/intel_th/pci.c | 5 +++++ 1 file changed, 5 insertions(+)same here, ok for stable?
Yes for both. Should I resend?
Regards,
--
Alex
Alexander Shishkin
maintainer[GIT PULL 4/4] intel_th: pci: Add Tiger Lake support
In reply to Alexander ShishkinThis adds support for the Trace Hub in Tiger Lake PCH.
--- drivers/hwtracing/intel_th/pci.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/hwtracing/intel_th/pci.c +5 -0
@@ -204,6 +204,11 @@ static const struct pci_device_id intel_th_pci_id_table[] = { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x45c5), .driver_data = (kernel_ulong_t)&intel_th_2x, }, + { +/* Tiger Lake PCH */ + PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xa0a6), + .driver_data = (kernel_ulong_t)&intel_th_2x, + }, { 0 }, };
Signature · 1 line
2.23.0.rc1
Greg Kroah-Hartman
maintainerRe: [GIT PULL 4/4] intel_th: pci: Add Tiger Lake support
Quoted 6 lines · Alexander Shishkin
This adds support for the Trace Hub in Tiger Lake PCH.
Signed-off-by Alexander Shishkin <[email protected]>--- drivers/hwtracing/intel_th/pci.c | 5 +++++ 1 file changed, 5 insertions(+)
Why are new ids not ok for stable?
thanks,
greg k-h
Alexander Shishkin
maintainer[GIT PULL 1/4] stm class: Fix a double free of stm_source_device
In reply to Alexander ShishkinFrom: Ding Xiang <[email protected]>
In the error path of stm_source_register_device(), the kfree is unnecessary, as the put_device() before it ends up calling stm_source_device_release() to free stm_source_device, leading to a double free at the outer kfree() call. Remove it.
--- drivers/hwtracing/stm/core.c | 1 - 1 file changed, 1 deletion(-)
drivers/hwtracing/stm/core.c +0 -1
@@ -1276,7 +1276,6 @@ int stm_source_register_device(struct device *parent, err:put_device (&src->dev); -kfree (src);return err; }
Signature · 1 line
2.23.0.rc1
Alexander Shishkin
maintainer[GIT PULL 2/4] intel_th: Use the correct style for SPDX License Identifier
In reply to Alexander ShishkinFrom: Nishad Kamdar <[email protected]>
This patch corrects the SPDX License Identifier style in header files related to Drivers for Intel(R) Trace Hub controller.
For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used)
Changes made by using a script provided by Joe Perches here:
https://lkml.org/lkml/2019/2/7/46
--- drivers/hwtracing/intel_th/msu.h | 2 +- drivers/hwtracing/intel_th/pti.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/hwtracing/intel_th/msu.h +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0 */ /* * Intel(R) Trace Hub Memory Storage Unit (MSU) data structures *
drivers/hwtracing/intel_th/pti.h +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0 */ /* * Intel(R) Trace Hub PTI output data structures *
Signature · 1 line
2.23.0.rc1