Skip to contentSkip to conversation

Extend reserved memory on 0xfc000000

PATCH asd 2 participants 2 messages Sep 8, 2014 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore

asd

author
#0 lore raw

Hi

This patch correct on usb keyboard acces on number when enter via Ctrl
+ Alt + F12 on vt after Xorg running.Without this patch when enter on vt vas unable to use numbers from NumLock an only numbers from main keyboard.

 nouveau  [  DEVICE][0000:01:00.0] BOOT0  : 0x046f00a3
 nouveau  [  DEVICE][0000:01:00.0] Chipset: G72 (NV46)
 nouveau [  DEVICE][0000:01:00.0] Family : NV40
 nouveau  [   VBIOS][0000:01:00.0] checking PRAMIN for image...
 nouveau [   VBIOS][0000:01:00.0] ... appears to be valid
 nouveau  [   VBIOS][0000:01:00.0] using image from PRAMIN
 nouveau  [   VBIOS][0000:01:00.0] BIT signature found

nouveau
[ VBIOS][0000:01:00.0] version 05.72.22.43.00

drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c +9 -7
Index: master_local/drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c
===================================================================
@@ -64,14 +64,14 @@
 		bar = 2;
 	else
 		bar = 3;
-
+	printk(KERN_INFO "resource start is %x\n", pci_resource_start(pdev, bar));
 	priv->iomem = ioremap(pci_resource_start(pdev, bar),
 			      pci_resource_len(pdev, bar));
 	if (!priv->iomem) {
 		nv_error(priv, "unable to map PRAMIN BAR\n");
 		return -EFAULT;
 	}
-
+	
 	/* PRAMIN aperture maps over the end of vram, reserve enough space
 	 * to fit graphics contexts for every channel, the magics come
 	 * from engine/graph/nv40.c
@@ -90,11 +90,12 @@
 
 	ret = nouveau_mm_init(&priv->heap, 0, priv->base.reserved, 1);
 	if (ret)
-		return ret;
+			return ret;
 
 	/* 0x00000-0x10000: reserve for probable vbios image */
 	ret = nouveau_gpuobj_new(nv_object(priv), NULL, 0x10000, 0, 0,
-				&priv->vbios);
+				&priv->vbios); 
+
 	if (ret)
 		return ret;
 
@@ -102,7 +103,7 @@
 	ret = nouveau_ramht_new(nv_object(priv), NULL, 0x08000, 0,
 			       &priv->ramht);
 	if (ret)
-		return ret;
+		return ret; 
 
 	/* 0x18000-0x18200: reserve for RAMRO
 	 * 0x18200-0x20000: padding
@@ -114,11 +115,12 @@
 
 	/* 0x20000-0x21000: reserve for RAMFC
 	 * 0x21000-0x40000: padding and some unknown crap
+	 *  0x50000 is good for keyboard
 	 */
-	ret = nouveau_gpuobj_new(nv_object(priv), NULL, 0x20000, 0,
+	ret = nouveau_gpuobj_new(nv_object(priv), NULL, 0x50000, 0,
 				 NVOBJ_FLAG_ZERO_ALLOC, &priv->ramfc);
 	if (ret)
-		return ret;
+		return ret; 
 
 	return 0;
 }

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): 20140908121243.00080081-jrA/[email protected]

#2 lore raw
Quoted 14 lines · asd

Hi

This patch correct on usb keyboard acces on number when enter via Ctrl
+ Alt + F12 on vt after Xorg running.Without this patch when enter on vt vas unable to use numbers from NumLock an only numbers from main keyboard.

  nouveau  [  DEVICE][0000:01:00.0] BOOT0  : 0x046f00a3
  nouveau  [  DEVICE][0000:01:00.0] Chipset: G72 (NV46)
  nouveau [  DEVICE][0000:01:00.0] Family : NV40
  nouveau  [   VBIOS][0000:01:00.0] checking PRAMIN for image...
  nouveau [   VBIOS][0000:01:00.0] ... appears to be valid
  nouveau  [   VBIOS][0000:01:00.0] using image from PRAMIN
  nouveau  [   VBIOS][0000:01:00.0] BIT signature found
Quoted 3 lines

nouveau
[ VBIOS][0000:01:00.0] version 05.72.22.43.00

Seems like a useful patch but please clean it up the patch, many changes are unnecessary.

Please also send the patch with git send-email so as we can comment on the patch inline :)