Skip to contentSkip to conversation

Staging: hv: Add the necessary dependencies to hyperv Kconfig

PATCH In review K. Y. Srinivasan 5 participants 13 messages May 4, 2011

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

PATCH 1/1 Staging: hv: Add the necessary dependencies to hyperv Kconfig

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/hv/Kconfig +1 -1
index 76f0756..5e0c9f6 100644
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 15 lines · K. Y. Srinivasan

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/hv/Kconfig +0 -0
index 76f0756..5e0c9f6 100644

drivers/staging/hv/Kconfig line 6

Quoted 7 lines
drivers/staging/hv/Kconfig +1 -1
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating

ACPI itself depends on PCI. It also depends on IA64 || X86. Will the vmbus driver work with IA64? If so the depends on could just be:

	depends on ACPI && m

Also, default n is redudant since n is the default anyway.

Regards,
Hartley

#2 lore raw
In reply to K. Y. Srinivasan
Quoted 15 lines · K. Y. Srinivasan

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/hv/Kconfig +0 -0
index 76f0756..5e0c9f6 100644

drivers/staging/hv/Kconfig line 6

Quoted 7 lines
drivers/staging/hv/Kconfig +1 -1
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating

ACPI itself depends on PCI. It also depends on IA64 || X86. Will the vmbus driver work with IA64? If so the depends on could just be:

	depends on ACPI && m

Also, default n is redudant since n is the default anyway.

Regards,
Hartley

#3 lore raw
Quoted 38 lines

-----Original Message-----
From: H Hartley Sweeten [mailto:[email protected]]
Sent: Wednesday, May 04, 2011 2:44 PM
To: KY Srinivasan; [email protected]; [email protected]; [email protected]; [email protected]
Cc: Haiyang Zhang
Subject: RE: [PATCH 1/1] Staging: hv: Add the necessary dependencies to hyperv Kconfig

Quoted 15 lines · K. Y. Srinivasan

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/hv/Kconfig +0 -0
index 76f0756..5e0c9f6 100644

drivers/staging/hv/Kconfig line 6

Quoted 7 lines
drivers/staging/hv/Kconfig +1 -1
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating

ACPI itself depends on PCI. It also depends on IA64 || X86. Will the vmbus driver work with IA64? If so the depends on could just be:

Quoted 1 line
	depends on ACPI && m

Good point; vmbus will not work on IA64 though. So, minimally we would want X86 && ACPI. I will resend this with this change.

Regards,

K. Y

Quoted 5 lines

Also, default n is redudant since n is the default anyway.

Regards,
Hartley

#4 lore raw
In reply to H Hartley Sweeten
Quoted 38 lines

-----Original Message-----
From: H Hartley Sweeten [mailto:[email protected]]
Sent: Wednesday, May 04, 2011 2:44 PM
To: KY Srinivasan; [email protected]; [email protected]; [email protected]; [email protected]
Cc: Haiyang Zhang
Subject: RE: [PATCH 1/1] Staging: hv: Add the necessary dependencies to hyperv Kconfig

Quoted 15 lines · K. Y. Srinivasan

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/hv/Kconfig +0 -0
index 76f0756..5e0c9f6 100644

drivers/staging/hv/Kconfig line 6

Quoted 7 lines
drivers/staging/hv/Kconfig +1 -1
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating

ACPI itself depends on PCI. It also depends on IA64 || X86. Will the vmbus driver work with IA64? If so the depends on could just be:

Quoted 1 line
	depends on ACPI && m

Good point; vmbus will not work on IA64 though. So, minimally we would want X86 && ACPI. I will resend this with this change.

Regards,

K. Y

Quoted 5 lines

Also, default n is redudant since n is the default anyway.

Regards,
Hartley

#11 lore raw
In reply to K. Y. Srinivasan

drivers/staging/hv/Kconfig line 3

Quoted 4 lines · K. Y. Srinivasan

config HYPERV

drivers/staging/hv/Kconfig +1 -1
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m

I can't see anything preventing this driver from beeing built-in, so the "depends on m" should probably go away.

#5 lore raw
In reply to H Hartley Sweeten
Quoted 11 lines · H Hartley Sweeten
Quoted 10 lines · K. Y. Srinivasan

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 14 lines

drivers/staging/hv/Kconfig line 6

Quoted 12 lines
drivers/staging/hv/Kconfig +1 -1
index 76f0756..5e0c9f6 100644
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating

ACPI itself depends on PCI.

Still? I thought that got removed a while ago.

Quoted 1 line

It also depends on IA64 || X86. Will the vmbus driver work with IA64?

No.

Quoted 3 lines

If so the depends on could just be:

	depends on ACPI && m

No, see above for the IA64 reason.

Quoted 1 line

Also, default n is redudant since n is the default anyway.

True, but it doesn't hurt either :)

thanks,

greg k-h

#12 lore raw
In reply to Christoph Hellwig
Quoted 8 lines · Christoph Hellwig

drivers/staging/hv/Kconfig line 3

Quoted 4 lines · K. Y. Srinivasan

config HYPERV

drivers/staging/hv/Kconfig +1 -1
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m

I can't see anything preventing this driver from beeing built-in, so the "depends on m" should probably go away.

Originally there were some problems with some bad global symbols. Hopefully those should all be resolved now, but it can't hurt to review the code to verify this first.

thanks,

greg k-h

#6 lore raw
In reply to Greg KH
Quoted 27 lines · On Wed, 4 May 2011 11:53:38 -0700 Greg KH wrote:
Quoted 11 lines · H Hartley Sweeten
Quoted 10 lines · K. Y. Srinivasan

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 14 lines

drivers/staging/hv/Kconfig line 6

Quoted 12 lines
drivers/staging/hv/Kconfig +1 -1
index 76f0756..5e0c9f6 100644
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating

ACPI itself depends on PCI.

Quoted 1 line

Still? I thought that got removed a while ago.

Still. Len has written in the past that technically there is no such dependency, but in reality there is, for now at least. IIRC.

Quoted 6 lines
Quoted 1 line

It also depends on IA64 || X86. Will the vmbus driver work with IA64?

No.

Quoted 2 lines

If so the depends on could just be:

Quoted 7 lines
Quoted 1 line
	depends on ACPI && m

No, see above for the IA64 reason.

Quoted 1 line

Also, default n is redudant since n is the default anyway.

True, but it doesn't hurt either :)

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#7 lore raw
Quoted 29 lines · Randy Dunlap
Quoted 27 lines · On Wed, 4 May 2011 11:53:38 -0700 Greg KH wrote:
Quoted 25 lines · H Hartley Sweeten
Quoted 15 lines · K. Y. Srinivasan

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/hv/Kconfig +0 -0
index 76f0756..5e0c9f6 100644

drivers/staging/hv/Kconfig line 6

Quoted 7 lines
drivers/staging/hv/Kconfig +1 -1
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating

ACPI itself depends on PCI.

Quoted 4 lines
Quoted 1 line

Still? I thought that got removed a while ago.

Still. Len has written in the past that technically there is no such dependency, but in reality there is, for now at least. IIRC.

Ok, but then we should still say we depend on PCI to handle if/when ACPI removes that dependancy in the future. It doesn't hurt here at all.

thanks,

greg k-h

#8 lore raw
Quoted 42 lines

-----Original Message-----
From: [email protected] [mailto:devel- [email protected]] On Behalf Of Greg KH
Sent: Wednesday, May 04, 2011 3:40 PM
To: Randy Dunlap
Cc: [email protected]; [email protected]; H Hartley Sweeten; Haiyang Zhang; [email protected]
Subject: Re: [PATCH 1/1] Staging: hv: Add the necessary dependencies to hyperv Kconfig

Quoted 29 lines · Randy Dunlap
Quoted 27 lines · On Wed, 4 May 2011 11:53:38 -0700 Greg KH wrote:
Quoted 25 lines · H Hartley Sweeten
Quoted 15 lines · K. Y. Srinivasan

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/hv/Kconfig +0 -0
index 76f0756..5e0c9f6 100644

drivers/staging/hv/Kconfig line 6

Quoted 7 lines
drivers/staging/hv/Kconfig +1 -1
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating

ACPI itself depends on PCI.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Still? I thought that got removed a while ago.

Still. Len has written in the past that technically there is no such dependency, but in reality there is, for now at least. IIRC.

Ok, but then we should still say we depend on PCI to handle if/when ACPI removes that dependancy in the future. It doesn't hurt here at all.

Greg,
I have sent you both versions of this patch; one with explicit dependency on PCI and one with implicit dependency on PCI; you decide.

Regards,

K. Y

#10 lore raw
In reply to Greg KH
Quoted 30 lines · On Wed, 4 May 2011 12:39:54 -0700 Greg KH wrote:
Quoted 29 lines · Randy Dunlap
Quoted 27 lines · On Wed, 4 May 2011 11:53:38 -0700 Greg KH wrote:
Quoted 25 lines · H Hartley Sweeten
Quoted 15 lines · K. Y. Srinivasan

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/hv/Kconfig +0 -0
index 76f0756..5e0c9f6 100644

drivers/staging/hv/Kconfig line 6

Quoted 7 lines
drivers/staging/hv/Kconfig +1 -1
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating

ACPI itself depends on PCI.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Still? I thought that got removed a while ago.

Still. Len has written in the past that technically there is no such dependency, but in reality there is, for now at least. IIRC.

Ok, but then we should still say we depend on PCI to handle if/when ACPI removes that dependancy in the future. It doesn't hurt here at all.

Yes, I prefer that also.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#9 lore raw
In reply to KY Srinivasan
Quoted 47 lines · KY Srinivasan
Quoted 47 lines

-----Original Message-----
From: [email protected] [mailto:devel- [email protected]] On Behalf Of Greg KH
Sent: Wednesday, May 04, 2011 3:40 PM
To: Randy Dunlap
Cc: [email protected]; [email protected]; H Hartley Sweeten; Haiyang Zhang; [email protected]
Subject: Re: [PATCH 1/1] Staging: hv: Add the necessary dependencies to hyperv Kconfig

Quoted 33 lines · Randy Dunlap
Quoted 27 lines · On Wed, 4 May 2011 11:53:38 -0700 Greg KH wrote:
Quoted 11 lines · H Hartley Sweeten
Quoted 10 lines · K. Y. Srinivasan

The vmbus driver dependes on ACPI and PCI subsystems. Change Kconfig to reflect this.

---
 drivers/staging/hv/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 14 lines

drivers/staging/hv/Kconfig line 6

Quoted 12 lines
drivers/staging/hv/Kconfig +1 -1
index 76f0756..5e0c9f6 100644
@@ -1,6 +1,6 @@
 config HYPERV
 	tristate "Microsoft Hyper-V client drivers"
-	depends on X86 && m
+	depends on X86 && ACPI && PCI && m
 	default n
 	help
 	  Select this option to run Linux as a Hyper-V client operating

ACPI itself depends on PCI.

Quoted 1 line

Still? I thought that got removed a while ago.

Still. Len has written in the past that technically there is no such dependency, but in reality there is, for now at least. IIRC.

Quoted 6 lines
Quoted 2 lines

Ok, but then we should still say we depend on PCI to handle if/when ACPI removes that dependancy in the future. It doesn't hurt here at all.

Greg,
I have sent you both versions of this patch; one with explicit dependency on PCI and one with implicit dependency on PCI; you decide.

Thanks, I'll pick one :)