platform:x86: Makefile/Kconfig/MAINTAINERS changes for Intel Telemetry
PATCH v2 4/4 platform:x86: Makefile/Kconfig/MAINTAINERS changes for Intel Telemetry
Makefile, Kconfig & MAINTAINERS changes for compiling Telemetry. It depends on PUNIT and PMC IPC drivers.
---
Changes in v2:
* Change bool to tristate in Kconfig to enable support as module
* Remove PUNIT_IPC specific additions. These will be merged separately by Qipeng's PUNIT_IPC patch.
--- MAINTAINERS | 9 +++++++++ drivers/platform/x86/Kconfig | 11 +++++++++++ drivers/platform/x86/Makefile | 3 +++ 3 files changed, 23 insertions(+)
MAINTAINERS +9 -0
@@ -5548,6 +5548,15 @@ S: Maintained F: drivers/platform/x86/intel_pmc_ipc.c F: arch/x86/include/asm/intel_pmc_ipc.h +INTEL TELEMETRY DRIVER +M: Souvik Kumar Chakravarty <[email protected]> +L: [email protected] +S: Maintained +F: drivers/platform/x86/intel_telemetry_core.c +F: drivers/platform/x86/intel_telemetry_pltdrv.c +F: drivers/platform/x86/intel_telemetry_debugfs.c +F: arch/x86/include/asm/intel_telemetry.h + IOC3 ETHERNET DRIVER M: Ralf Baechle <[email protected]> L: [email protected]
drivers/platform/x86/Kconfig +11 -0
@@ -919,4 +919,15 @@ config INTEL_PMC_IPC The PMC is an ARC processor which defines IPC commands for communication with other entities in the CPU. +config INTEL_TELEMETRY + tristate "Intel SoC Telemetry Driver" + default n + depends on INTEL_PMC_IPC && INTEL_PUNIT_IPC && X86_64 + ---help--- + This driver provides interfaces to configure and use + telemetry for INTEL SoC from APL onwards. It is also + used to get various SoC events and parameters + directly via debugfs files. Various tools may use + this interface for SoC state monitoring. + endif # X86_PLATFORM_DEVICES
drivers/platform/x86/Makefile +3 -0
@@ -60,3 +60,6 @@ obj-$(CONFIG_INTEL_SMARTCONNECT) += intel-smartconnect.o obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_ALIENWARE_WMI) += alienware-wmi.o obj-$(CONFIG_INTEL_PMC_IPC) += intel_pmc_ipc.o +obj-$(CONFIG_INTEL_TELEMETRY) += intel_telemetry_core.o \ + intel_telemetry_pltdrv.o \ + intel_telemetry_debugfs.o
Signature · 1 line
1.7.9.5
Quoted 4 lines · Souvik Kumar Chakravarty
Makefile,Kconfig&MAINTAINERSchanges for compiling Telemetry. It depends on PUNIT and PMC IPC drivers.Signed-off-by Souvik Kumar Chakravarty <[email protected]>
Souvik, v2 seems to be the latest I have from you and checkpatch still reports several basic coding style errors about comment blocks and comparison constant location.
See my response to v1 regarding that on Sep 18.
Signature · 2 lines
Darren Hart Intel Open Source Technology Center
Hi Darren,
I am a bit confused as checkpatch that I pulled from Linus' tree gave me all clear. Can you please send me the log, because I have a clean checkpatch report at my end.
BR,
Souvik
skchakra@intel-desktop:~/disk2/linux-platform-drivers-x86/linux$ ./scripts/checkpatch.pl 0004-platform-x86-Makefile-Kconfig-MAINTAINERS-changes-fo.patch total: 0 errors, 0 warnings, 36 lines checked
0004-platform-x86-Makefile-Kconfig-MAINTAINERS-changes-fo.patch has no obvious style problems and is ready for submission.
skchakra@intel-desktop:~/disk2/linux-platform-drivers-x86/linux$ ./scripts/checkpatch.pl 0003-platform-x86-Add-Intel-Telemetry-Debugfs-interfaces.patch WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #29: new file mode 100644
total: 0 errors, 1 warnings, 1094 lines checked
0003-platform-x86-Add-Intel-Telemetry-Debugfs-interfaces.patch has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
skchakra@intel-desktop:~/disk2/linux-platform-drivers-x86/linux$ ./scripts/checkpatch.pl 0002-platform-x86-Add-Intel-telemetry-platform-device-dri.patch WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #195: new file mode 100644
total: 0 errors, 1 warnings, 1371 lines checked
0002-platform-x86-Add-Intel-telemetry-platform-device-dri.patch has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
skchakra@intel-desktop:~/disk2/linux-platform-drivers-x86/linux$ ./scripts/checkpatch.pl 0001-platform-x86-Add-Intel-Telemetry-Core-Driver.patch WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #34: new file mode 100644
total: 0 errors, 1 warnings, 611 lines checked
0001-platform-x86-Add-Intel-Telemetry-Core-Driver.patch has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
Quoted 30 lines
-----Original Message-----
From: [email protected] [mailto:platform-driver-x86- [email protected]] On Behalf Of Darren Hart
Sent: Thursday, October 8, 2015 10:22 PM
To: Chakravarty, Souvik K <[email protected]>
Cc: [email protected]; Kasagar, Srinidhi <[email protected]>; Zha, Qipeng <[email protected]>
Subject: Re: [PATCH v2 4/4] platform:x86: Makefile/Kconfig/MAINTAINERS changes for Intel TelemetryQuoted 5 lines · Souvik Kumar Chakravarty
Makefile,Kconfig&MAINTAINERSchanges for compiling Telemetry. It depends on PUNIT and PMC IPC drivers.Signed-off-by: Souvik Kumar Chakravarty
<[email protected]>Souvik, v2 seems to be the latest I have from you and checkpatch still reports several basic coding style errors about comment blocks and comparison constant location.
See my response to v1 regarding that on Sep 18.
--
Darren Hart
Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Souvik K
Hi Darren,
I am a bit confused as checkpatch that I pulled from Linus' tree gave me all clear. Can you please send me the log, because I have a clean checkpatch report at my end.
Sure, using checkpatch.pl from Linux v4.3-rc4:
$ scripts/checkpatch.pl ~/incoming/*mbox ------------------------------------------------------------------------------------ /home/dvhart/incoming/PATCH_v2_1-4_platform-x86_Add_Intel_Telemetry_Core_Driver.mbox ------------------------------------------------------------------------------------ WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #51: new file mode 100644
WARNING: Comparisons should place the constant on the right side of the test #645: FILE: drivers/platform/x86/intel_telemetry_core.c:437:
+ if (TELEM_PSS == telem_unit)
WARNING: Comparisons should place the constant on the right side of the test #648: FILE: drivers/platform/x86/intel_telemetry_core.c:440:
+ else if (TELEM_IOSS == telem_unit)
total: 0 errors, 3 warnings, 611 lines checked
/home/dvhart/incoming/PATCH_v2_1-4_platform-x86_Add_Intel_Telemetry_Core_Driver.mbox has style problems, please review.
-------------------------------------------------------------------------------------------------
/home/dvhart/incoming/PATCH_v2_2-4_platform-x86_Add_Intel_telemetry_platform_device_&_driver.mbox
-------------------------------------------------------------------------------------------------
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#211:
new file mode 100644
WARNING: Block comments use * on subsequent lines
#318: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:103:
+/* The following counters are programmed by default during setup.
+ Only 20 allocated to kernel driver */
WARNING: Block comments use a trailing */ on a separate line #318: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:103:
+ Only 20 allocated to kernel driver */
WARNING: Comparisons should place the constant on the right side of the test #388: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:173:
+ if (TELEM_PSS == telem_unit)
WARNING: Comparisons should place the constant on the right side of the test #390: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:175:
+ else if (TELEM_IOSS == telem_unit)
WARNING: Comparisons should place the constant on the right side of the test #421: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:206:
+ if ((len > 0) && (NULL == evtmap))
WARNING: Comparisons should place the constant on the right side of the test #431: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:216:
+ if ((len > 0) && (NULL == evtmap))
WARNING: Comparisons should place the constant on the right side of the test #509: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:294:
+ if (TELEM_RESET == action) {
WARNING: Comparisons should place the constant on the right side of the test #539: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:324:
+ if (TELEM_UPDATE == action) {
WARNING: Comparisons should place the constant on the right side of the test #571: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:356:
+ if (TELEM_ADD == action) {
WARNING: Comparisons should place the constant on the right side of the test #642: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:427:
+ if (TELEM_RESET == action) {
WARNING: Comparisons should place the constant on the right side of the test #669: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:454:
+ if (TELEM_UPDATE == action) {
WARNING: Comparisons should place the constant on the right side of the test #699: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:484:
+ if (TELEM_ADD == action) {
WARNING: Comparisons should place the constant on the right side of the test #1204: FILE: drivers/platform/x86/intel_telemetry_pltdrv.c:989:
+ if (NULL == verbosity)
total: 0 errors, 14 warnings, 1371 lines checked
/home/dvhart/incoming/PATCH_v2_2-4_platform-x86_Add_Intel_telemetry_platform_device_&_driver.mbox has style problems, please review.
-------------------------------------------------------------------------------------------/home/dvhart/incoming/PATCH_v2_3-4_platform-x86_Add_Intel_Telemetry_Debugfs_interfaces.mbox
-------------------------------------------------------------------------------------------
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#46:
new file mode 100644
total: 0 errors, 1 warnings, 1094 lines checked
/home/dvhart/incoming/PATCH_v2_3-4_platform-x86_Add_Intel_Telemetry_Debugfs_interfaces.mbox has style problems, please review.
-------------------------------------------------------------------------------------------------------------/home/dvhart/incoming/PATCH_v2_4-4_platform-x86_Makefile-Kconfig-MAINTAINERS_changes_for_Intel_Telemetry.mbox
-------------------------------------------------------------------------------------------------------------
total: 0 errors, 0 warnings, 36 lines checked
/home/dvhart/incoming/PATCH_v2_4-4_platform-x86_Makefile-Kconfig-MAINTAINERS_changes_for_Intel_Telemetry.mbox has no obvious style problems and is ready for submission.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
Signature · 2 lines
Darren Hart Intel Open Source Technology Center
Yes this helps.
Seems the checkpatch.pl in 4.3-rc4 has some changes. Will update the patches.
BR,
Souvik
Quoted 137 lines
-----Original Message-----
From: Darren Hart [mailto:[email protected]]
Sent: Sunday, October 11, 2015 12:08 AM
To: Chakravarty, Souvik K <[email protected]>
Cc: [email protected]; Kasagar, Srinidhi <[email protected]>; Zha, Qipeng <[email protected]>
Subject: Re: [PATCH v2 4/4] platform:x86: Makefile/Kconfig/MAINTAINERS changes for Intel TelemetryQuoted 3 lines · Souvik K
Hi Darren,
I am a bit confused as checkpatch that I pulled from Linus' tree gave me all
clear.
Quoted 1 line
Can you please send me the log, because I have a clean checkpatch report at
my end.
Quoted 1 line
Sure, using checkpatch.pl from Linux v4.3-rc4:
$ scripts/checkpatch.pl ~/incoming/*mbox ------------------------------------------------------------------------------------ /home/dvhart/incoming/PATCH_v2_1-4_platform- x86_Add_Intel_Telemetry_Core_Driver.mbox ------------------------------------------------------------------------------------ WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #51: new file mode 100644WARNING: Comparisons should place the constant on the right side of the test #645: FILE:
drivers/platform/x86/intel_telemetry_core.c:437:(quoted diff) +1
-0+ if (TELEM_PSS == telem_unit)WARNING: Comparisons should place the constant on the right side of the test #648: FILE:
drivers/platform/x86/intel_telemetry_core.c:440:(quoted diff) +1
-0+ else if (TELEM_IOSS == telem_unit)total: 0 errors, 3 warnings, 611 lines checked
/home/dvhart/incoming/PATCH_v2_1-4_platform-x86_Add_Intel_Telemetry_Core_Driver.mbox has style problems, please review.
-------------------------------------------------------------------------------------------------/home/dvhart/incoming/PATCH_v2_2-4_platform-x86_Add_Intel_telemetry_platform_device_&_driver.mbox
-------------------------------------------------------------------------------------------------
WARNING: added, moved or deleted file(s), doesMAINTAINERSneed updating? #211:
new file mode 100644WARNING: Block comments use * on subsequent lines #318: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:103:(quoted diff) +2
-0+/* The following counters are programmed by default during setup. + Only 20 allocated to kernel driver */WARNING: Block comments use a trailing */ on a separate line #318: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:103:
+ Only 20 allocated to kernel driver */WARNING: Comparisons should place the constant on the right side of the test #388: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:173:(quoted diff) +1
-0+ if (TELEM_PSS == telem_unit)WARNING: Comparisons should place the constant on the right side of the test #390: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:175:(quoted diff) +1
-0+ else if (TELEM_IOSS == telem_unit)WARNING: Comparisons should place the constant on the right side of the test #421: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:206:(quoted diff) +1
-0+ if ((len > 0) && (NULL == evtmap))WARNING: Comparisons should place the constant on the right side of the test #431: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:216:(quoted diff) +1
-0+ if ((len > 0) && (NULL == evtmap))WARNING: Comparisons should place the constant on the right side of the test #509: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:294:(quoted diff) +1
-0+ if (TELEM_RESET == action) {WARNING: Comparisons should place the constant on the right side of the test #539: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:324:(quoted diff) +1
-0+ if (TELEM_UPDATE == action) {WARNING: Comparisons should place the constant on the right side of the test #571: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:356:(quoted diff) +1
-0+ if (TELEM_ADD == action) {WARNING: Comparisons should place the constant on the right side of the test #642: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:427:(quoted diff) +1
-0+ if (TELEM_RESET == action) {WARNING: Comparisons should place the constant on the right side of the test #669: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:454:(quoted diff) +1
-0+ if (TELEM_UPDATE == action) {WARNING: Comparisons should place the constant on the right side of the test #699: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:484:(quoted diff) +1
-0+ if (TELEM_ADD == action) {WARNING: Comparisons should place the constant on the right side of the test #1204: FILE:
drivers/platform/x86/intel_telemetry_pltdrv.c:989:(quoted diff) +1
-0+ if (NULL == verbosity)total: 0 errors, 14 warnings, 1371 lines checked
/home/dvhart/incoming/PATCH_v2_2-4_platform-x86_Add_Intel_telemetry_platform_device_&_driver.mbox has style problems, please review.
-------------------------------------------------------------------------------------------/home/dvhart/incoming/PATCH_v2_3-4_platform-x86_Add_Intel_Telemetry_Debugfs_interfaces.mbox
-------------------------------------------------------------------------------------------
WARNING: added, moved or deleted file(s), doesMAINTAINERSneed updating? #46:
new file mode 100644total: 0 errors, 1 warnings, 1094 lines checked
/home/dvhart/incoming/PATCH_v2_3-4_platform-x86_Add_Intel_Telemetry_Debugfs_interfaces.mbox has style problems, please review.
-------------------------------------------------------------------------------------------------------------/home/dvhart/incoming/PATCH_v2_4-4_platform-x86_Makefile-Kconfig-MAINTAINERS_changes_for_Intel_Telemetry.mbox
-------------------------------------------------------------------------------------------------------------
total: 0 errors, 0 warnings, 36 lines checked
/home/dvhart/incoming/PATCH_v2_4-4_platform-x86_Makefile-Kconfig-MAINTAINERS_changes_for_Intel_Telemetry.mbox has no obvious style problems and is ready for submission.NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH inMAINTAINERS.--
Darren Hart
Intel Open Source Technology Center