From owner-freebsd-arm@FreeBSD.ORG Wed Mar 11 09:39:15 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 72A8F8AC for ; Wed, 11 Mar 2015 09:39:15 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 52E21D59 for ; Wed, 11 Mar 2015 09:39:15 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t2B9dFti014160 for ; Wed, 11 Mar 2015 09:39:15 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t2B9dFQH014159; Wed, 11 Mar 2015 09:39:15 GMT (envelope-from root) Date: Wed, 11 Mar 2015 09:39:15 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Subject: [Differential] [Commented On] D2018: Introduce Annapurna Labs AHCI support Message-ID: X-Priority: 3 Thread-Topic: D2018: Introduce Annapurna Labs AHCI support X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ZGMxZTcyZjQyYTA3MjQzZjU5NjlmODc0YTQ5IFUADUM= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2015 09:39:15 -0000 zbb added inline comments. INLINE COMMENTS sys/dev/ahci/ahci.c:150-153 **Jakub Palider wrote:** >I have overlooked it in the specs and took the CAP register RW for >granted. You are right, writing to RO registers doesn't sound fine, and >we don't like it either. But we have little choice but to perform the >writes to make it operational. >You say adding it to quirks is not proper place? Where then? sys/dev/ahci/ahci.c:199-201 **Jakub Palider wrote:** >I'd prefer read MAY/SHOULD/MUST but the spec simply says that it is >loaded by the BIOS. However in reality that does not always happen and >higher level stuff suffers from broken implementations. Linux does it >and although it is not our reference it shows a way to just make things >work. Again - is adding platform quirks wrong way? REVISION DETAIL https://reviews.freebsd.org/D2018 To: zbb, mav, imp, smh Cc: freebsd-arm