Skip to contentSkip to conversation

Drivers: hv: vmbus: Miscellaneous fixes

PATCH New [email protected] 2 participants 5 messages Mar 27, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Drivers: hv: vmbus: Miscellaneous fixes

From: "K. Y. Srinivasan" <[email protected]>

Some miscellaneous fixes and adjustments.

Dexuan Cui (2):
Drivers: hv: vmbus: respect what we get from hv_get_synint_state()
Drivers: hv: vmbus: do not mark HV_PCIE as perf_device

Stephen Hemminger (2):
hv: add SPDX license to trace
hv: add SPDX license id to Kconfig

 drivers/hv/Kconfig        | 2 ++
 drivers/hv/channel_mgmt.c | 2 +-
 drivers/hv/hv.c           | 1 -
 drivers/hv/hv_trace.c     | 2 ++
 drivers/hv/hv_trace.h     | 2 ++
 5 files changed, 7 insertions(+), 2 deletions(-)
Signature · 6 lines
2.15.1

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
#1 lore raw

PATCH 1/4 Drivers: hv: vmbus: respect what we get from hv_get_synint_state()

From: Dexuan Cui <[email protected]>

I didn't really hit a bug, but just happened to notice the redundant line.

Cc Stephen Hemminger <[email protected]>
Cc K. Y. Srinivasan <[email protected]>
---
 drivers/hv/hv.c | 1 -
 1 file changed, 1 deletion(-)
drivers/hv/hv.c +0 -1
index b1f6793acf4c..8137b3885b99 100644
@@ -302,7 +302,6 @@ int hv_synic_init(unsigned int cpu)
 	hv_get_synint_state(HV_X64_MSR_SINT0 + VMBUS_MESSAGE_SINT,
 			    shared_sint.as_uint64);
 
-	shared_sint.as_uint64 = 0;
 	shared_sint.vector = HYPERVISOR_CALLBACK_VECTOR;
 	shared_sint.masked = false;
 	if (ms_hyperv.hints & HV_X64_DEPRECATING_AEOI_RECOMMENDED)
Signature · 6 lines
2.15.1

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
#2 lore raw

PATCH 2/4 Drivers: hv: vmbus: do not mark HV_PCIE as perf_device

From: Dexuan Cui <[email protected]>

The pci-hyperv driver's channel callback hv_pci_onchannelcallback() is not really a hot path, so we don't need to mark it as a perf_device, meaning with this patch all HV_PCIE channels' target_cpu will be CPU0.

---
 drivers/hv/channel_mgmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hv/channel_mgmt.c +1 -1
index c6d9d19bc04e..ecc2bd275a73 100644
@@ -71,7 +71,7 @@ static const struct vmbus_device vmbus_devs[] = {
 	/* PCIE */
 	{ .dev_type = HV_PCIE,
 	  HV_PCIE_GUID,
-	  .perf_device = true,
+	  .perf_device = false,
 	},
 
 	/* Synthetic Frame Buffer */
Signature · 1 line
2.15.1
#3 lore raw

PATCH 3/4 hv: add SPDX license to trace

In reply to [email protected]

From: Stephen Hemminger <[email protected]>

Missing license on Hyper-V VMBUS tracing files.

---
 drivers/hv/hv_trace.c | 2 ++
 drivers/hv/hv_trace.h | 2 ++
 2 files changed, 4 insertions(+)
drivers/hv/hv_trace.c +2 -0
index df47acd01a81..38d359cf1e70 100644
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
 #include "hyperv_vmbus.h"
 
 #define CREATE_TRACE_POINTS
drivers/hv/hv_trace.h +2 -0
index d635ee95b20d..999f80a63bff 100644
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM hyperv
 
Signature · 6 lines
2.15.1

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
#4 lore raw

PATCH 4/4 hv: add SPDX license id to Kconfig

In reply to [email protected]

From: Stephen Hemminger <[email protected]>

Missing license on Kconfig file.

---
 drivers/hv/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/hv/Kconfig +2 -0
index 50b89ea0e60f..97954f575c3f 100644
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 menu "Microsoft Hyper-V guest support"
 
 config HYPERV
Signature · 6 lines
2.15.1

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel