From owner-freebsd-scsi Mon Mar 15 3:29:35 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from rose.niw.com.au (app3022-2.gw.connect.com.au [203.63.119.4]) by hub.freebsd.org (Postfix) with ESMTP id 2429614CE2 for ; Mon, 15 Mar 1999 03:29:29 -0800 (PST) (envelope-from ian@apdata.com.au) Received: from apdata.com.au (localhost [127.0.0.1]) by rose.niw.com.au (Postfix) with ESMTP id 617B2A372B for ; Mon, 15 Mar 1999 21:59:10 +1030 (CST) Message-ID: <36ECEF06.80D63F63@apdata.com.au> Date: Mon, 15 Mar 1999 21:59:10 +1030 From: Ian West Organization: Applied Data Control X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: cam_periph_mapmem: attempt to map 66560 bytes, which is greater than DFLTPHYS(65536) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have the following error when trying to write a cd using the latest version of cdrecord (1.8a17). I worked around it by (probably wrongly, but it works) doubling the sizes of DFLTPHYS, and MAXPHYS in src/i386/param.h. The system is running fine, and it allowed me to write my cd. cam_periph_mapmem: attempt to map 66560 bytes, which is greater than DFLTPHYS(65536) Looking into this for a 'proper' answer, the section of code in cam_periph (line 552) which seems to relate is below... if ((lengths[i] + (((vm_offset_t)(*data_ptrs[i])) & PAGE_MASK)) > DFLTPHYS){ printf("cam_periph_mapmem: attempt to map %u bytes, " "which is greater than DFLTPHYS(%d)\n", lengths[i] + (((vm_offset_t)(*data_ptrs[i])) & PAGE_MASK), DFLTPHYS); return(E2BIG); seems to be where the error is ocuring. As I understand it, this allows for the possibility of having the users buffer offset from the start of a page. If the user is allowed to request up to DFLTPHYS bytes of transfer, should the comparison not be for MAXPHYS ? Am I missing the point completely ? Is this simply a code error in cdrecord ? Thankyou... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message