public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* No more vcs1 and vcsa1 in 2.6.30.N
@ 2009-07-10 20:35 Gerardo Exequiel Pozzi
  2009-07-11  0:19 ` Kay Sievers
  0 siblings, 1 reply; 3+ messages in thread
From: Gerardo Exequiel Pozzi @ 2009-07-10 20:35 UTC (permalink / raw)
  To: linux-kernel, kay.sievers

Hello.

Since upgrade my system to 2.6.30[.1]. I don't have anymore
/sys/devices/virtual/vc/vcs1 and /sys/devices/virtual/vc/vcs1 in
consequence not have anymore the corresponding char devs in /dev.

The problem is with this commit: {vcs: hook sysfs devices into object
lifetime instead of "binding"} [#1]
Reverting it solves the issue.

[#1]
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.30.y.git;a=commitdiff;h=4995f8ef9d3aac72745e12419d7fbaa8d01b1d81

Cheers,


Please CC to me, not subscribed to LKML. Thanks.

-- 
Gerardo Exequiel Pozzi ( djgera )
http://www.djgera.com.ar
KeyID: 0x1B8C330D
Key fingerprint = 0CAA D5D4 CD85 4434 A219  76ED 39AB 221B 1B8C 330D


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: No more vcs1 and vcsa1 in 2.6.30.N
  2009-07-10 20:35 No more vcs1 and vcsa1 in 2.6.30.N Gerardo Exequiel Pozzi
@ 2009-07-11  0:19 ` Kay Sievers
  2009-07-11  0:42   ` Gerardo Exequiel Pozzi
  0 siblings, 1 reply; 3+ messages in thread
From: Kay Sievers @ 2009-07-11  0:19 UTC (permalink / raw)
  To: Gerardo Exequiel Pozzi; +Cc: linux-kernel

On Fri, 2009-07-10 at 17:35 -0300, Gerardo Exequiel Pozzi wrote:
> Since upgrade my system to 2.6.30[.1]. I don't have anymore
> /sys/devices/virtual/vc/vcs1 and /sys/devices/virtual/vc/vcs1 in
> consequence not have anymore the corresponding char devs in /dev.

Seems we missed the consoles, which are always pre-allocated, and not
created on demand. Does this help?

Thanks,
Kay

diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c
index d94d25c..c1791a6 100644
--- a/drivers/char/vc_screen.c
+++ b/drivers/char/vc_screen.c
@@ -495,11 +495,15 @@ void vcs_remove_sysfs(int index)
 
 int __init vcs_init(void)
 {
+	unsigned int i;
+
 	if (register_chrdev(VCS_MAJOR, "vcs", &vcs_fops))
 		panic("unable to get major %d for vcs device", VCS_MAJOR);
 	vc_class = class_create(THIS_MODULE, "vc");
 
 	device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs");
 	device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa");
+	for (i = 0; i < MIN_NR_CONSOLES; i++)
+		vcs_make_sysfs(i);
 	return 0;
 }



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: No more vcs1 and vcsa1 in 2.6.30.N
  2009-07-11  0:19 ` Kay Sievers
@ 2009-07-11  0:42   ` Gerardo Exequiel Pozzi
  0 siblings, 0 replies; 3+ messages in thread
From: Gerardo Exequiel Pozzi @ 2009-07-11  0:42 UTC (permalink / raw)
  To: Kay Sievers; +Cc: linux-kernel

Kay Sievers wrote:
> On Fri, 2009-07-10 at 17:35 -0300, Gerardo Exequiel Pozzi wrote:
>   
>> Since upgrade my system to 2.6.30[.1]. I don't have anymore
>> /sys/devices/virtual/vc/vcs1 and /sys/devices/virtual/vc/vcs1 in
>> consequence not have anymore the corresponding char devs in /dev.
>>     
>
> Seems we missed the consoles, which are always pre-allocated, and not
> created on demand. Does this help?
>
> Thanks,
> Kay
>
> diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c
> index d94d25c..c1791a6 100644
> --- a/drivers/char/vc_screen.c
> +++ b/drivers/char/vc_screen.c
> @@ -495,11 +495,15 @@ void vcs_remove_sysfs(int index)
>  
>  int __init vcs_init(void)
>  {
> +	unsigned int i;
> +
>  	if (register_chrdev(VCS_MAJOR, "vcs", &vcs_fops))
>  		panic("unable to get major %d for vcs device", VCS_MAJOR);
>  	vc_class = class_create(THIS_MODULE, "vc");
>  
>  	device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs");
>  	device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa");
> +	for (i = 0; i < MIN_NR_CONSOLES; i++)
> +		vcs_make_sysfs(i);
>  	return 0;
>  }
>
>
>
>   
Yes, the problem is solved applying this patch. Thanks for the quick fix
Kay.

Good Luck!

-- 
Gerardo Exequiel Pozzi ( djgera )
http://www.djgera.com.ar
KeyID: 0x1B8C330D
Key fingerprint = 0CAA D5D4 CD85 4434 A219  76ED 39AB 221B 1B8C 330D


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-11  0:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10 20:35 No more vcs1 and vcsa1 in 2.6.30.N Gerardo Exequiel Pozzi
2009-07-11  0:19 ` Kay Sievers
2009-07-11  0:42   ` Gerardo Exequiel Pozzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox