From owner-freebsd-arm@FreeBSD.ORG Sun Dec 22 06:44:55 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 19CF68E1 for ; Sun, 22 Dec 2013 06:44:55 +0000 (UTC) Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DA8E014D6 for ; Sun, 22 Dec 2013 06:44:54 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id to1so4871735ieb.32 for ; Sat, 21 Dec 2013 22:44:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version; bh=V//cHndsuc754NBPXxU6YGSVLysMCvk8OZVqFW2iMIY=; b=NPcwrIB1eK1JFMHlLy7lGfC63QlsRrydWtmTjkVtawWatadP8NN8/4r/3HXMHa+wTz p6mF3f+FZBosnr8+ZwJjM+gGzZubMuzl4a3oBEGFYHSZW6t43TbY+bzNpMiOgh6hKuhD +lQmm6uv7ZoM4hFPGbx+clXydhLFgNTBPs6neQC4XUlaFkTEhTIPhSxSDvL9BlIplwwW N3k0YFc6tslyDN7WlKYB9EMfyoFqdMBfItv0IPBVLyB+AfBwwlWkdB7p8D3Pgg3xPKUX rYHgaBHqn6E9bHtmTL+j5QeB2qEvKlpLkQio2NeP91zt6mB4upReDDU9/WEEfonJz0wV mSkw== X-Gm-Message-State: ALoCoQnzcEGb/4gfyuh7S8oNy9714OoJLwC9SvCwXsnLA0ZmxxyFy2DYut6tUipIo1Br3AHetKDL X-Received: by 10.51.17.71 with SMTP id gc7mr15031616igd.12.1387694688730; Sat, 21 Dec 2013 22:44:48 -0800 (PST) Received: from [10.0.0.23] (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id p14sm20209067igr.7.2013.12.21.22.44.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Dec 2013 22:44:47 -0800 (PST) Sender: Warner Losh From: Warner Losh Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 10.0-release proposed patch for Atmel Date: Sat, 21 Dec 2013 23:44:47 -0700 Message-Id: To: "freebsd-arm@freebsd.org" Mime-Version: 1.0 (Apple Message framework v1085) X-Mailer: Apple Mail (2.1085) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Dec 2013 06:44:55 -0000 Gentlemen, Right now, the mountroot prompt doesn't work on Atmel CPUs. Almost all = the characters are eaten. I recently committed an elegant fix for this = into head to mask the interrupt for new characters and only do polling. However, it touched the base uart. In an abundance of caution, the re@ = has asked me to see if I can come up with a fix w/o that. A less elegant, less functional fix can be found at = http://people.freebsd.org/~imp/at91-mountroot-10.diff This fix defers turning on the RXRDY bit in the interrupt mask until we = get the first interrupt after the first opening of the device. This is = sufficient for mountroot> to work, but wouldn't fix things like GELI = that prompt the user from the kernel. I think that's acceptable for 10.0 = given the typical use case for atmel. Can the folks here that know Atmel take a look at the patch and let me = know what you think? Warner