From owner-freebsd-questions@FreeBSD.ORG Tue Jan 4 15:43:39 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56DBF16A4CF for ; Tue, 4 Jan 2005 15:43:39 +0000 (GMT) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 070F143D1D for ; Tue, 4 Jan 2005 15:43:39 +0000 (GMT) (envelope-from olivier.certner@free.fr) Received: from lon92-2-82-226-188-149.fbx.proxad.net (unknown [82.226.188.149]) by postfix3-2.free.fr (Postfix) with ESMTP id 16E60C028 for ; Tue, 4 Jan 2005 16:43:37 +0100 (CET) From: Olivier Certner To: freebsd-questions@freebsd.org Date: Tue, 4 Jan 2005 16:43:10 +0100 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501041643.11006.olivier.certner@free.fr> Subject: Freeze with CAM (using KsCD) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 15:43:39 -0000 Hello all, I'm getting a problem when using KsCD, the KDE CD player, and the SCSI emulation for ATAPI devices within the kernel. A couple of minutes after having logged in with kdm, which launches a KDE session with a KsCD iconified, the whole machine freezes: apparently no more display update, impossible to move the pointer, etc. Pressing keys on the keyboard continues to work, but at a very low rate, ie if I do a CTRL+ALT+Fn to switch to console mode, I have to wait for 5 minutes... Then I'm sometimes able to login (sometimes keys are ignored), which means the kernel is still alive. Here are the logged messages I get every time the problem occurs: kernel: atapicam0: timeout sending command=a0 kernel: atapicam0: error issuing ATAPI packet command ...repeated lots of times... kernel: scsi_cd: error in readtocentries, returning EINVAL The only way I've found to avoid that is to deactivate KsCD in KDE. Despite that, I'm not totally sure if the problem is really trigerred by KsCD, since no precise visible operation seems to trigger it instantaneously. I use CAM in order to be able to burn CDs/DVDs, so I have compiled support for atapicam, among others, as these lines in my kernel conf file states: device ata device atadisk # ATA disk drives device atapicam # emulate ATAPI devices as SCSI ditto via CAM # needs CAM to be present (scbus & pass) options ATA_STATIC_ID # Static device numbering device scbus # SCSI bus (required for SCSI) device cd # CD device pass # Passthrough device (direct SCSI access) There is no support for SCSI's hard disk since I just want to use my CD/DVD units through the emulation. I'm using FreeBSD 5.3-RELEASE for the kernel source (as well as for the KDE packages). Does anybody have heard something about that? It seems to me it is a bug but I would like some advices before submitting it. Thanks in advance for your answers. Regards, Olivier