no cursor on nvidiafb console in 2.6.14-rc1-mm1

Started by jurriaan on Sep 19, 2005 · 9 messages from 4 authors · Last reply Sep 21, 2005

open the first message on its own page

Message details and related content
After updating from 2.6.13-rc4-mm1 to 2.6.14-rc1-mm1 I see no cursor on
my console.

Bootdata ok (command line is root=/dev/md2 video=nvidiafb:1600x1200-16@85 atkbd.softrepeat=1)
Linux version 2.6.14-rc1-mm1 (jurriaan@middle) (gcc version 4.0.2 20050913 (prerelease) (Debian 4.0.1-7)) #3 Sun Sep 18 15:31:55 CEST 2005
Kernel command line: root=/dev/md2 video=nvidiafb:1600x1200-16@85 atkbd.softrepeat=1
nvidiafb: nVidia device/chipset 10DE0141
nvidiafb: CRTC0 found
nvidiafb: CRTC1 found
nvidiafb: EDID found from BUS2
nvidiafb: CRTC 0 appears to have a CRT attached
nvidiafb: Using CRT on CRTC 0
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 133x54
nvidiafb: PCI nVidia NV14 framebuffer (64MB @ 0xC0000000)

hardware: XFX 6600 pci-e card:

0000:01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600] (rev a2) (prog-if 00 [VGA])
	Flags: bus master, fast devsel, latency 0, IRQ 217
	Memory at d0000000 (32-bit, non-prefetchable) [size=64M]
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	Memory at d4000000 (64-bit, non-prefetchable) [size=16M]
	Expansion ROM at d5000000 [disabled] [size=128K]
	Capabilities: [60] Power Management version 2
	Capabilities: [68] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
	Capabilities: [78] #10 [0001]

#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.14-rc1-mm1
# Sun Sep 18 15:31:28 2005
#
CONFIG_X86_64=y
CONFIG_64BIT=y
CONFIG_X86=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_MMU=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y

1844 more lines

Message details and related content
jurriaan wrote:
After updating from 2.6.13-rc4-mm1 to 2.6.14-rc1-mm1 I see no cursor on
my console.
Me too, 2.6.14-rc1-git4. Didn't try any kernel before with framebuffer,
sorry. No fb options on the kernel command line.

[4294669.750000] nvidiafb: nVidia device/chipset 10DE0250
[4294669.754000] nvidiafb: CRTC0 not found
[4294669.758000] nvidiafb: CRTC1 not found
[4294669.871000] nvidiafb: EDID found from BUS1
[4294669.887000] nvidiafb: CRTC 1 is currently programmed for DFP
[4294669.887000] nvidiafb: Using DFP on CRTC 1
[4294669.887000] Panel size is 1920 x 1200
[4294669.888000] nvidiafb: MTRR set to ON
[4294669.895000] Console: switching to colour frame buffer device 240x75
[4294669.895000] nvidiafb: PCI nVidia NV25 framebuffer (64MB @ 0xD0000000)

# lspci -vv -s 01:00.0
0000:01:00.0 VGA compatible controller: nVidia Corporation NV25 [GeForce4 Ti
4600] (rev a3) (prog-if 00 [VGA])
        Subsystem: CardExpert Technology: Unknown device 03ea
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 32 (1250ns min, 250ns max)
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at de000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at d0000000 (32-bit, prefetchable) [size=128M]
        Region 2: Memory at ddc80000 (32-bit, prefetchable) [size=512K]
        Expansion ROM at dfee0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [44] AGP version 2.0
                Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans-
64bit- FW+ AGP3- Rate=x1,x2,x4
                Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW-
Rate=<none>

Jan
Message details and related content
Jan Dittmer wrote:
jurriaan wrote:
quoted
After updating from 2.6.13-rc4-mm1 to 2.6.14-rc1-mm1 I see no cursor on
my console.
Me too, 2.6.14-rc1-git4. Didn't try any kernel before with framebuffer,
sorry. No fb options on the kernel command line.
Can you try reversing this particular diff?

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff_plain;h=af99ea96012ec72ef57fd36655a6d8aaa22e809e;hp=30f80c23f934bb0a76719232f492153fc7cca00a

Tony




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

Re: [Linux-fbdev-devel] Re: no cursor on nvidiafb console in 2.6.14-rc1-mm1

Message details and related content
the hwcur module parameter is set to off by default. Should it be removed?

On Tue, 20 Sep 2005, Antonino A. Daplas wrote:
Jan Dittmer wrote:
quoted
jurriaan wrote:
quoted
After updating from 2.6.13-rc4-mm1 to 2.6.14-rc1-mm1 I see no cursor on
my console.
Me too, 2.6.14-rc1-git4. Didn't try any kernel before with framebuffer,
sorry. No fb options on the kernel command line.
Can you try reversing this particular diff?

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff_plain;h=af99ea96012ec72ef57fd36655a6d8aaa22e809e;hp=30f80c23f934bb0a76719232f492153fc7cca00a

Tony




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

Re: [Linux-fbdev-devel] Re: no cursor on nvidiafb console in 2.6.14-rc1-mm1

Message details and related content
James Simmons wrote:
the hwcur module parameter is set to off by default. Should it be removed?
The hardware cursor for newer chipsets (NV20 and above?) is not very
nice to the eyes.  When the cursor is moved, the old cursor image does
not disappear immediately, but kinda fades away.  I believe it is an
nvidia special effect for mouse pointer trails. Cool when in graphics, but
irritating when in text mode.

So, no, let's leave hwcur to 0.

Tony
Message details and related content
Antonino A. Daplas wrote:
Jan Dittmer wrote:
quoted
jurriaan wrote:
quoted
After updating from 2.6.13-rc4-mm1 to 2.6.14-rc1-mm1 I see no cursor on
my console.
Me too, 2.6.14-rc1-git4. Didn't try any kernel before with framebuffer,
sorry. No fb options on the kernel command line.

Can you try reversing this particular diff?

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff_plain;h=af99ea96012ec72ef57fd36655a6d8aaa22e809e;hp=30f80c23f934bb0a76719232f492153fc7cca00a

Tony
--- 30f80c23f934bb0a76719232f492153fc7cca00a
+++ af99ea96012ec72ef57fd36655a6d8aaa22e809e
^^^ Which file??

@@ -893,7 +893,7 @@ static int nvidiafb_cursor(struct fb_inf
 	int i, set = cursor->set;
 	u16 fg, bg;

-	if (cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS)
+	if (!hwcur || cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS)
 		return -ENXIO;

 	NVShowHideCursor(par, 0);
@@ -1356,8 +1356,6 @@ static int __devinit nvidia_set_fbinfo(s
 	info->pixmap.size = 8 * 1024;
 	info->pixmap.flags = FB_PIXMAP_SYSTEM;

-	if (!hwcur)
-		info->fbops->fb_cursor = soft_cursor;
 	info->var.accel_flags = (!noaccel);

 	switch (par->Architecture) {

-- 
Jan
Message details and related content
Jan Dittmer wrote:
quoted hunk
Antonino A. Daplas wrote:
quoted
Jan Dittmer wrote:
quoted
jurriaan wrote:
quoted
After updating from 2.6.13-rc4-mm1 to 2.6.14-rc1-mm1 I see no cursor on
my console.
Me too, 2.6.14-rc1-git4. Didn't try any kernel before with framebuffer,
sorry. No fb options on the kernel command line.
Can you try reversing this particular diff?

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff_plain;h=af99ea96012ec72ef57fd36655a6d8aaa22e809e;hp=30f80c23f934bb0a76719232f492153fc7cca00a

Tony
--- 30f80c23f934bb0a76719232f492153fc7cca00a
+++ af99ea96012ec72ef57fd36655a6d8aaa22e809e
^^^ Which file??
Heh, didn't realize that. drivers/video/nvidia/nvidia.c, actually.
But just apply this patch instead, as a Kconfig change is also
needed.

Signed-off-by: Antonino Daplas <redacted>
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -650,6 +650,7 @@ config FB_NVIDIA
 	select FB_CFB_FILLRECT
 	select FB_CFB_COPYAREA
 	select FB_CFB_IMAGEBLIT
+	select FB_SOFT_CURSOR
 	help
 	  This driver supports graphics boards with the nVidia chips, TNT
 	  and newer. For very old chipsets, such as the RIVA128, then use
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
--- a/drivers/video/nvidia/nvidia.c
+++ b/drivers/video/nvidia/nvidia.c
@@ -893,7 +893,7 @@ static int nvidiafb_cursor(struct fb_inf
 	int i, set = cursor->set;
 	u16 fg, bg;
 
-	if (!hwcur || cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS)
+	if (cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS)
 		return -ENXIO;
 
 	NVShowHideCursor(par, 0);
@@ -1356,6 +1356,9 @@ static int __devinit nvidia_set_fbinfo(s
 	info->pixmap.size = 8 * 1024;
 	info->pixmap.flags = FB_PIXMAP_SYSTEM;
 
+	if (!hwcur)
+	    info->fbops->fb_cursor = soft_cursor;
+
 	info->var.accel_flags = (!noaccel);
 
 	switch (par->Architecture) {


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
Message details and related content
Antonino A. Daplas wrote:
Jan Dittmer wrote:
quoted
Antonino A. Daplas wrote:
quoted
Jan Dittmer wrote:

quoted
jurriaan wrote:

quoted
After updating from 2.6.13-rc4-mm1 to 2.6.14-rc1-mm1 I see no cursor on
my console.
Me too, 2.6.14-rc1-git4. Didn't try any kernel before with framebuffer,
sorry. No fb options on the kernel command line.
Can you try reversing this particular diff?

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff_plain;h=af99ea96012ec72ef57fd36655a6d8aaa22e809e;hp=30f80c23f934bb0a76719232f492153fc7cca00a

Tony
--- 30f80c23f934bb0a76719232f492153fc7cca00a
+++ af99ea96012ec72ef57fd36655a6d8aaa22e809e
^^^ Which file??

Heh, didn't realize that. drivers/video/nvidia/nvidia.c, actually.
But just apply this patch instead, as a Kconfig change is also
needed.
This fixes it,

Thanks,

Jan
Message details and related content
From: Antonino A. Daplas <adaplas@gmail.com>
Date: Tue, Sep 20, 2005 at 06:26:40PM +0800
quoted hunk
Heh, didn't realize that. drivers/video/nvidia/nvidia.c, actually.
But just apply this patch instead, as a Kconfig change is also
needed.

Signed-off-by: Antonino Daplas <redacted>
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -650,6 +650,7 @@ config FB_NVIDIA
 	select FB_CFB_FILLRECT
 	select FB_CFB_COPYAREA
 	select FB_CFB_IMAGEBLIT
+	select FB_SOFT_CURSOR
 	help
 	  This driver supports graphics boards with the nVidia chips, TNT
 	  and newer. For very old chipsets, such as the RIVA128, then use
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
--- a/drivers/video/nvidia/nvidia.c
+++ b/drivers/video/nvidia/nvidia.c
@@ -893,7 +893,7 @@ static int nvidiafb_cursor(struct fb_inf
 	int i, set = cursor->set;
 	u16 fg, bg;
 
-	if (!hwcur || cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS)
+	if (cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS)
 		return -ENXIO;
 
 	NVShowHideCursor(par, 0);
@@ -1356,6 +1356,9 @@ static int __devinit nvidia_set_fbinfo(s
 	info->pixmap.size = 8 * 1024;
 	info->pixmap.flags = FB_PIXMAP_SYSTEM;
 
+	if (!hwcur)
+	    info->fbops->fb_cursor = soft_cursor;
+
 	info->var.accel_flags = (!noaccel);
 
 	switch (par->Architecture) {
Thanks, this fixes my problem.

Jurriaan
-- 
Pine - the outlook of Unix.
        Erik Hensema in xs4all.general
Debian (Unstable) GNU/Linux 2.6.14-rc1-mm1 5404 bogomips load 0.58


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help