From owner-freebsd-ppc@freebsd.org Mon Mar 6 16:44:21 2017 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 150BFCFB7C0 for ; Mon, 6 Mar 2017 16:44:21 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C7E561784; Mon, 6 Mar 2017 16:44:20 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk0-x22d.google.com with SMTP id v125so100882804qkh.2; Mon, 06 Mar 2017 08:44:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HQobyCssqdj4lvckmf6cjWHIQLzR18A2UyB+yboekUU=; b=lk/9GL86LKCWiYxVYSAQAIJ7CsYQjSqtB5BZfFbzvHkbpsaC2oih3w379ZIi6LLb0m yt0qHIbFhfH6ZMJx0GiUo4o4hxkK38TlgsvTlHXl0M0ysyv5aQXqsm4dtuhQjuDqqD/m 9Rtr0rFURWlgLY+uhyXGh3Vc3mhPsCG13YFYlB3yRGkNGdhx0U61Z6DvtCLgnvJfvgTn vqJLVoOpVypzVsh98B8VsU/PbXIwZEhgrmnrlDy3Yi2GoyXHTF/LuydN9MbSBPoPb50B O22Q3rLI5FU/qRUF9SmuIJubdoqc2XwH3k8F+yBuCVDmidBo/nfpA593V+z4KL7TTyWZ ba4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=HQobyCssqdj4lvckmf6cjWHIQLzR18A2UyB+yboekUU=; b=JAyYwnlG2dqqCFxDBk4DwfVtcPhVIuS0OA4k5KFSROA06JjePXYJ5QIWFyOJALXnA7 FgKfinIK2FKUIkJv9QFDUgQH3kommYPJ4683UUTJxnuXh9WNgKFz31lsqnItdGsRGgKN BkLr8jJKTXJti0lqaDH5laPKHDFxEj0dRzG12m9g5wHT0L3q2WsrJGqKbF4vXruoEV3t x6QQlGUphPPBDtbhxOdXAL4uaKuNQeAB9ZMa6ngE6d6f54fKkMBv68BIqKqT5YUEmArp eHVvmo4dNbpeRth8Ul+A9IoIWg8QitbDrqbvYCp1afdqQLpjQYm0b0Kb/hzv0FogVoGs P9Kg== X-Gm-Message-State: AMke39lVvP48vS1H3SmOzxPIRNGJhBEEAczc+Lp1g9DEqfmZ0VGtsUQeP72QhHGy3bWttw== X-Received: by 10.200.62.137 with SMTP id y9mr16186352qtf.182.1488818659588; Mon, 06 Mar 2017 08:44:19 -0800 (PST) Received: from wkstn-mjohnston.west.isilon.com (c-76-104-201-218.hsd1.wa.comcast.net. [76.104.201.218]) by smtp.gmail.com with ESMTPSA id 126sm13713299qkl.24.2017.03.06.08.44.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Mar 2017 08:44:18 -0800 (PST) Sender: Mark Johnston Date: Mon, 6 Mar 2017 08:43:41 -0800 From: Mark Johnston To: Mark Millard Cc: FreeBSD PowerPC ML , Justin Hibbits , Nathan Whitehorn Subject: Re: powerpc64 head -r314687 (PowerMac G5 so-called "Quad Core", clang based): CAM status: Command timeout (always?) Message-ID: <20170306164341.GA83069@wkstn-mjohnston.west.isilon.com> References: <98A62E0D-C2A0-40B1-AE6D-5810906208AE@dsl-only.net> <4C78F6AA-5ABD-4445-B5EF-4E6778CE36FE@dsl-only.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C78F6AA-5ABD-4445-B5EF-4E6778CE36FE@dsl-only.net> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 16:44:21 -0000 On Mon, Mar 06, 2017 at 02:05:39AM -0800, Mark Millard wrote: > On 2017-Mar-6, at 1:37 AM, Mark Millard wrote: > > > When I tried to jump from head -r314479 to -r314687 the -r314687 kernel > > the result failed by always(?) getting: > > > > CAM status: Command timeout > > > > for: > > > > ATAPI_IDENTIFY > > INQUIRY > > DSM TRIM > > READ_DMA48 > > SETFEATURES ENABLE RCACHE > > WRITE_DMA48 > > etc. > > > > at: > > > > ada0:ata2:0:0:0 > > aprobe0:ata0:0:0:0 > > > > Booting with the older -r314479 works fine (same -r314687 world). > > > > [FYI: It is a ufs context.] > > > > > > The only thing that looks likely to me for > > the change in behavior is. . . > > > > Author: markj > > Date: Fri Mar 3 20:51:57 2017 > > New Revision: 314624 > > URL: > > https://svnweb.freebsd.org/changeset/base/314624 > > > > > > Log: > > Reject userland CCBs that have CAM_UNLOCKED set. > > > > CAM_UNLOCKED is internal flag and cannot correctly be set by userland. > > Return EINVAL from CAMIOCOMMAND and CAMIOQUEUE if it is set. > > > > Also fix leaks in some of the error paths for CAMIOQUEUE. > > > > PR: 215356 > > Reviewed by: ken, mav > > MFC after: 1 week > > Differential Revision: > > https://reviews.freebsd.org/D9869 > > > > > > Modified: > > head/sys/cam/cam_xpt.c > > head/sys/cam/scsi/scsi_pass.c > > > > > > > > [This may just mean that it exposes other problems.] > > Yep: reverting the two files allowed the PowerMac G5 so-called > "Quad Core" to boot fully and I could log in. Do you have a full dmesg of the failed boot? Am I correct in thinking that the boot failed before making it to user mode? If so I'm rather puzzled, as the change should only affect userland applications. Specifically, it modified a couple of ioctl handlers. > > It appears that if such powerpc64 machines are to stay bootable > then other things need to be cleaned up before the two updated > files from -r314624 should be used. > > Should the 2 files be reverted until other things are cleaned up? I don't mind reverting the change, but my suspicion is that it uncovered a problem rather than introducing it. If you're willing to narrow things down a bit, could you try booting with one of the file modifications and not the other? They are independent.