Plan 9 from Bell Labs’s /usr/web/sources/extra/changes/2006/0119

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Correct big-memory bug.
 [rsc] --rw-rw-r-- M 852702 glenda sys 12395 Jan 19 11:45 sys/src/9/pc/vganvidia.c
	/n/sourcesdump/2006/0119/plan9/sys/src/9/pc/vganvidia.c:189,195 - 
	/n/sourcesdump/2006/0120/plan9/sys/src/9/pc/vganvidia.c:189,195
	  		 * have allocated less storage than aux/vga
	  		 * expected.
	  		 */
	- 		tmp = scr->storage - 96*1024;
	+ 		tmp = scr->apsize - 96*1024;
	  		p = (void*)((uchar*)scr->vaddr + tmp);
	  		vgaxo(Crtx, 0x30, 0x80|(tmp>>17));
	  		vgaxo(Crtx, 0x31, (tmp>>11)<<2);
	/n/sourcesdump/2006/0119/plan9/sys/src/9/pc/vganvidia.c:363,369 - 
	/n/sourcesdump/2006/0120/plan9/sys/src/9/pc/vganvidia.c:363,385
	  
	  	pitch = scr->gscreen->width*BY2WD;
	  
	- 	nv.dmabase = (void*)((uchar*)scr->vaddr + scr->storage - 128*1024);
	+ 	/*
	+ 	 * DMA is at the end of the virtual window,
	+ 	 * but we might have cut it short when mapping it.
	+ 	 */
	+ 	if(nv.dmabase == nil){
	+ 		if(scr->storage <= scr->apsize)
	+ 			nv.dmabase = (ulong*)((uchar*)scr->vaddr + scr->storage - 128*1024);
	+ 		else{
	+ 			nv.dmabase = (void*)vmap(scr->paddr + scr->storage - 128*1024, 128*1024);
	+ 			if(nv.dmabase == 0){
	+ 				hwaccel = 0;
	+ 				hwblank = 0;
	+ 				print("vmap nvidia dma failed\n");
	+ 				return;
	+ 			}
	+ 		}
	+ 	}
	  
	  	for(i=0; i<SKIPS; i++)
	  		nv.dmabase[i] = 0x00000000;

Add vid, did to print.
 [rsc] --rw-rw-r-- M 852702 sape sys 3032 Jan 19 11:39 sys/src/cmd/usb/lib/device.c
	/n/sourcesdump/2006/0119/plan9/sys/src/cmd/usb/lib/device.c:96,105 - 
	/n/sourcesdump/2006/0120/plan9/sys/src/cmd/usb/lib/device.c:96,105
	  	Endpt *e;
	  
	  	if (e = d->ep[n]) {
	- 		if (verbose) fprint(2, "class %d %d %#6.6lux\n",
	- 			d->nif, n, e->csp);
	- 		fprint(d->ctl, "class %d %d %#6.6lux",
	- 			d->nif, n, e->csp);
	+ 		if (verbose) fprint(2, "class %d %d %#6.6lux %#4.4ux %#4.4ux\n",
	+ 			d->nif, n, e->csp, d->vid, d->did);
	+ 		fprint(d->ctl, "class %d %d %#6.6lux %#4.4ux %#4.4ux",
	+ 			d->nif, n, e->csp, d->vid, d->did);
	  	}
	  }
	  


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.