From owner-freebsd-arm@freebsd.org Sat Feb 3 08:29:13 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1A5BECCF90 for ; Sat, 3 Feb 2018 08:29:12 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (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 2BC1F7B6BE for ; Sat, 3 Feb 2018 08:29:12 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-lf0-x22f.google.com with SMTP id v188so34839337lfa.11 for ; Sat, 03 Feb 2018 00:29:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=IqXSTQ+S7guPvAkK+6ULclAI6CrwqLTls4EjGY4TdT8=; b=Q3Rka4Ia+OgfLyb7uQAaPWVNUchOrds9s7V0OX7hVJt3lea2IG5P0Myl44llMzXBGq aGzy6WpTJv+IoCrvg/9rCm9l8+FBHJibNPGXrLcxnQx+WJxJz3IXFkYB3xmiowx3zweX 0Fz8O6TH6h+PJYZXuP03NIpdOUF2NNZjhsbIy1zCw10jbizx4kLzCpZbfu0AIqwMnFNX F3IycDFPrhjtWkt6cMdfS8JcVIHdQv0zPs9S5Hiiw9rk+pmWhcV5ow6nRJ7bqd51ugJd 533xhde2DWprdqAnbp3/j5TzltE51zSwiTgtnp8uZMxCFN4UpjxoKUer62UqwuMDkTWg 45Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=IqXSTQ+S7guPvAkK+6ULclAI6CrwqLTls4EjGY4TdT8=; b=Ri52tRf1+eGxFXB++vMXKAYl819IWq/YRf6Q8voyGsCVgg5J4D5ZjKZBF1Mjsqi+wz eheeL9dYe3l6Fvdxg0STwjd68f64+BHWwR/6NR8S9nKpsNY66I4FnHcu6ZzIpBfYxi8P EdrWUWuap2ssD9BxvJGjxCQRShZWNQSP7ch22mQIZDIMJ4wL25qa17VLdXB1ZNlVhugz onxHlXQY5HR/9VfHLSqgG9WfL4Y1YH3Dl7X6lEX++SHmz0pTRhOJRypNL3+VohFVUvlE yNIrsWPHKolWhCd3XCtHJcT1o0rLTYrPwViW0GvVzQICVsHXVg5qDqGYDsZ/NTevJwZ4 4smg== X-Gm-Message-State: AKwxytcZc7Uj1ig6k9r2YMXDINW5e+goBVOFGbTt9oPwLCh0Zrskc9BI 7s3Q1ZRtNoVi7DPoxNFZK8/vCsXCXaVgnkhx9Gg= X-Google-Smtp-Source: AH8x225J9ODbmNhS37M/Gbe/mrZAojvISKljv8sd1jqnf85yZ+B54z5JcKRqyHpa95iUKqBU7Vl+KST5fkP3pLMPK0g= X-Received: by 10.25.149.143 with SMTP id x137mr27820690lfd.119.1517646550231; Sat, 03 Feb 2018 00:29:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.46.93.220 with HTTP; Sat, 3 Feb 2018 00:29:09 -0800 (PST) In-Reply-To: <812183.70978.qm@web101705.mail.ssk.yahoo.co.jp> References: <64850.63077.qm@web101706.mail.ssk.yahoo.co.jp> <387823.67007.qm@web101711.mail.ssk.yahoo.co.jp> <812183.70978.qm@web101705.mail.ssk.yahoo.co.jp> From: Michael Zhilin Date: Sat, 3 Feb 2018 11:29:09 +0300 Message-ID: Subject: Re: still hang up arm/ralink To: Mori Hiroki Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2018 08:29:13 -0000 Hi Hiroki-san, We had the similar problem with mallocinit on MIPS32. The details are here= : https://reviews.freebsd.org/D13351 https://svnweb.freebsd.org/base?view=3Drevision&revision=3D326508 Please check if your revision includes this fix. BTW, DDB is not yet available in this step, but you can make it by patch: diff --git a/sys/ddb/ddb.h b/sys/ddb/ddb.h index d54fe332652..8ae78d81f27 100644 --- a/sys/ddb/ddb.h +++ b/sys/ddb/ddb.h @@ -136,11 +136,11 @@ static struct command __CONCAT(_name,_suffix) =3D { \ }; \ static void __CONCAT(__CONCAT(_name,_suffix),_add)(void *arg __unused) \ { db_command_register(&list, &__CONCAT(_name,_suffix)); } \ -SYSINIT(__CONCAT(_name,_suffix), SI_SUB_KLD, SI_ORDER_ANY, \ +SYSINIT(__CONCAT(_name,_suffix), SI_SUB_DDB, SI_ORDER_ANY, \ __CONCAT(__CONCAT(_name,_suffix),_add), NULL); \ static void __CONCAT(__CONCAT(_name,_suffix),_del)(void *arg __unused) \ { db_command_unregister(&list, &__CONCAT(_name,_suffix)); } \ -SYSUNINIT(__CONCAT(_name,_suffix), SI_SUB_KLD, SI_ORDER_ANY, \ +SYSUNINIT(__CONCAT(_name,_suffix), SI_SUB_DDB, SI_ORDER_ANY, \ __CONCAT(__CONCAT(_name,_suffix),_del), NULL); /* diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h index 2e103c7804b..b028d001046 100644 --- a/sys/sys/kernel.h +++ b/sys/sys/kernel.h @@ -92,6 +92,7 @@ enum sysinit_sub_id { SI_SUB_TUNABLES =3D 0x0700000, /* establish tunable valu= es */ SI_SUB_COPYRIGHT =3D 0x0800001, /* first use of console*/ SI_SUB_VM =3D 0x1000000, /* virtual memory system init*/ + SI_SUB_DDB =3D 0x1100000, /* try to get ddb early *= / SI_SUB_KMEM =3D 0x1800000, /* kernel memory*/ SI_SUB_HYPERVISOR =3D 0x1A40000, /* * Hypervisor detection and DDB can provide a lot of information about memory init status via "show" command. On Sat, Feb 3, 2018 at 10:28 AM, Mori Hiroki wrote: > Hi > > Marvell 88F5181 is also hang. > > Marvell>> tftpboot 400100 Buffalo_WZR-AMPG300NH_kernel.kbin > Using egiga0 device > TFTP from server 10.10.10.3; our IP address is 10.10.10.108 > Filename 'Buffalo_WZR-AMPG300NH_kernel.kbin'. > Load address: 0x400100 > Loading: ################################################################= # > ################################################################= # > ################################################################= # > ################################################################= # > ################################################################= # > ################################################################= # > ################################################################= # > ################################################################= # > ################################################################= # > ############################################### > done > Bytes transferred =3D 3231588 (314f64 hex) > Marvell>> go 0x400100 > ## Starting application at 0x00400100 ... > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2018 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 12.0-CURRENT #0 b8cfc17(arm_debug)-dirty: Sat Feb 3 16:21:42 JST > 2018 > hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/ > home/hiroki/zorg/ZR > outer/tmp/storage/home/hiroki/freebsd/arm.arm/sys/Buffalo_WZR-AMPG300NH > arm > FreeBSD clang version 6.0.0 (branches/release_60 323338) (based on LLVM > 6.0.0) > > > > ----- Original Message ----- > > From: Mori Hiroki > > To: Michael Zhilin > > Cc: "freebsd-arm@freebsd.org" > > Date: 2018/2/3, Sat 11:11 > > Subject: Re: still hang up arm/ralink > > > > Hi > > > > I set VERBOSE_SYSINIT option and build kernel. > > > > Starting kernel @40000100... > > > > KDB: debugger backends: ddb > > KDB: current backend: ddb > > Copyright (c) 1992-2018 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 199= 4 > > The Regents of the University of California. All rights reserve= d. > > FreeBSD is a registered trademark of The FreeBSD Foundation. > > FreeBSD 12.0-CURRENT #3 b8cfc17(arm_debug)-dirty: Sat Feb 3 11:01:10 > JST 2018 > > hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/ > home/hiroki/zorg/ZR > > outer/tmp/storage/home/hiroki/freebsd/arm.arm/sys/Buffalo_WZR2-G300N ar= m > > FreeBSD clang version 6.0.0 (branches/release_60 323338) (based on LLVM > 6.0.0) > > subsystem 1000000 > > 0xc0205ef0(0)... done. > > 0xc0219140(0)... done. > > subsystem 1800000 > > 0xc00fea44(0)... done. > > 0xc00dc4f0(0)... done. > > 0xc00dc13c(0xc02cc84c)... > > > > Hang. > > > > 0xc00dc13c is malloc_init() > > > > c00dc13c : > > c00dc13c: e92d4830 push {r4, r5, fp, lr} > > c00dc140: e28db008 add fp, sp, #8 ; 0x8 > > c00dc144: e1a04000 mov r4, r0 > > > > armv5t use arm/arm/pmap-v4.c. This code not change recently. > > > > I think this is vm issue. > > > > Hiroki Mori > > > > ----- Original Message ----- > >> From: Michael Zhilin > >> To: Mori Hiroki > >> Cc: freebsd-arm@freebsd.org > >> Date: 2018/1/30, Tue 14:11 > >> Subject: Re: still hang up arm/ralink > >> > >> > >> Hi Hiroki-san, > >> > >> > >> It may be result of recent changes of arm pmap/vm. Please enable > > SYSINIT_VERBOSE to print information about init step results. > >> > >> > >> Thanks! > >> > >> > >> P.S. To init DDB I'll send patch under separate cover > >> > >> > >> 30 =D1=8F=D0=BD=D0=B2. 2018 =D0=B3. 7:28 =D0=94=D0=9F =D0=BF=D0=BE=D0= =BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Mori Hiroki" > > =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > >> > >> Hi. > >>> > >>> I build current yesterday for arm/ralink. > >>> It is still hang up on boot. > >>> > >>> Does anyone have armv5t running on current? > >>> > >>> > >>> ## Booting image at 1f010000 ... > >>> Image Name: FreeBSD Kernel Image > >>> Image Type: ARM Linux Kernel Image (lzma compressed) > >>> Data Size: 1063133 Bytes =3D 1 MB > >>> Load Address: 40000180 > >>> Entry Point: 40000180 > >>> Verifying Checksum ... OK > >>> Uncompressing LZMA Kernel Image .............................. > > ..............O > >>> K > >>> > >>> Starting kernel @40000180... > >>> > >>> KDB: debugger backends: ddb > >>> KDB: current backend: ddb > >>> Copyright (c) 1992-2018 The FreeBSD Project. > >>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > 1994 > >>> The Regents of the University of California. All rights > > reserved. > >>> FreeBSD is a registered trademark of The FreeBSD Foundation. > >>> FreeBSD 12.0-CURRENT #0 b8cfc17(master): Mon Jan 29 17:55:11 JST 2018 > >>> hiroki@microserver:/storage/ home/hiroki/zorg/obj/storage/ > > home/hiroki/zorg/ZR > >>> outer/tmp/storage/home/hiroki/ freebsd/arm.arm/sys/Buffalo_ WZR2-G300= N > > arm > >>> FreeBSD clang version 6.0.0 (branches/release_60 323338) (based on LL= VM > > 6.0.0) > >>> > >>> ______________________________ _________________ > >>> freebsd-arm@freebsd.org mailing list > >>> https://lists.freebsd.org/ mailman/listinfo/freebsd-arm > >>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@ > > freebsd.org" > >>> > >> > >> > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > >