From owner-freebsd-mips@freebsd.org Fri May 24 01:30:59 2019 Return-Path: Delivered-To: freebsd-mips@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 481A11592391 for ; Fri, 24 May 2019 01:30:59 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CC5756CFBB for ; Fri, 24 May 2019 01:30:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72f.google.com with SMTP id p26so2515132qkj.5 for ; Thu, 23 May 2019 18:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v/LAG4j+S0MZwtThI2CTqcjytCmXkeGPe3gQn5HNOaE=; b=m/aqAStAPQbe4R0D/wh1Z7D79UbtzAhm/RkhZ6av+LZfGfnJvzlLwmcrL8aHO4R9Up q+2TvjiI5CxFZFLGQdOS5qJOkL9VVEql4B8Y2nQyv7GDsC4cmx6IDs5OjPnoAA/pENgR QLzqBDABMidq3IwI+eJZDRt5u3G/HsvTbmIxLxQGw4kmK/awLTqZrxehYXVOBFGbE5Xb xd06WrVYlIwg0+MwkEBBdMaXSiPhdY9FanmiUOG1IrIAvPFFi/+D50ZaC/VCq+iUA7yR +Lc8AI9JoE4zXEpazgeSwJS0+cDI5dh0GWz3t5c1cuiI+sRPI4B7bxtUrOuFszVgYOn0 jQ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v/LAG4j+S0MZwtThI2CTqcjytCmXkeGPe3gQn5HNOaE=; b=EseKv+a8/1ZvXNELBq28VkUhhahUwSxV9FjnRv4Lbi5Uwq90YtvSZh1Yg19FUyH3KD C1vJrJYwGMgBaWQUQMRiiHeEKXxQG7gFGIOoV/ZwnsNRrf3LhbsUq7RT4mG+zWqkOiwc cEPe03geT+/aJ0ipQo0vksDuwmmFKl9FbuJDd6bTEZO0TCdxi9lDbejSdiisQYK2UJ7A ceP5WlrKvxOADsjXmwV5opn22vspsmlFcwM9+yxEmyAg3X+WZT7a4BhSgRhRN8Njabvl Xj30LhSoOzJNoMIy+MdrB2YWPTg5WhdpnhWNyxACe7MBZOwriv241U5tXLsgseLTSmid dnYg== X-Gm-Message-State: APjAAAW3CmAu4khKyEcXFg9+RP2qZVB7q2WHQDzyhrVxUVWNCIOQ8ma4 CWD9Lun6hg9sUcRH1kr0fM3K92fG9pCHZ87Nj0zZlg== X-Google-Smtp-Source: APXvYqy+CP6Zygpzp5hxBbjk2KSuK7cPvDX8KvBxHVJeVkSauXW3Qvqo2bIBJHsLwKIoG3ZlXdcADMwozzajG/7BdrY= X-Received: by 2002:a05:620a:1384:: with SMTP id k4mr25124373qki.69.1558661457081; Thu, 23 May 2019 18:30:57 -0700 (PDT) MIME-Version: 1.0 References: <897817.7763.qm@web103915.mail.ssk.yahoo.co.jp> <530507.76366.qm@web103901.mail.ssk.yahoo.co.jp> <150518145.3964519.1558597051972.JavaMail.yahoo@jws700101.mail.ssk.yahoo.co.jp> In-Reply-To: <150518145.3964519.1558597051972.JavaMail.yahoo@jws700101.mail.ssk.yahoo.co.jp> From: Warner Losh Date: Thu, 23 May 2019 19:30:45 -0600 Message-ID: Subject: Re: mips boot message To: Mori Hiroki Cc: Adrian Chadd , "freebsd-mips@freebsd.org" X-Rspamd-Queue-Id: CC5756CFBB X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=m/aqAStA X-Spamd-Result: default: False [-5.91 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[f.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.88)[-0.877,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[yahoo.co.jp]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-3.03)[ip: (-9.50), ipnet: 2607:f8b0::/32(-3.29), asn: 15169(-2.29), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 May 2019 01:30:59 -0000 I've integrated this into my tree, but am unsure of which kernel config you used. None of the ones we have in the tree seem to pull in the AR531x files. Warner On Thu, May 23, 2019 at 1:39 AM Mori Hiroki wrote: > Hi > > This is new review. > > https://reviews.freebsd.org/D20371 > > Last time Phabricator is not work for me then abandon. > > Regards > > Hiroki Mori > > ----- Original Message ----- > > From: Adrian Chadd > > To: Mori Hiroki ; "freebsd-mips@freebsd.org. > Robert Pera" > > Cc: > > Date: 2019/5/20, Mon 01:05 > > Subject: Re: mips boot message > > > > hi! > > > > Did you create a PR for this so we can get it merged in? > > > > > > > > -adrian > > > > On Tue, 16 Oct 2018 at 19:55, Mori Hiroki wrote: > >> > >> Hi > >> > >> I was modify mips/mips source. > >> > >> https://gist.github.com/yamori813/aad6abc78b68a9e19a8563944d32033b > >> > >> > >> diff --git a/sys/mips/mips/cpu.c b/sys/mips/mips/cpu.c > >> index 0f8583d..c490f09 100644 > >> --- a/sys/mips/mips/cpu.c > >> +++ b/sys/mips/mips/cpu.c > >> @@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$"); > >> #include > >> #endif > >> > >> -static void cpu_identify(void); > >> +void cpu_identify(void); > >> > >> struct mips_cpuinfo cpuinfo; > >> > >> @@ -341,11 +341,9 @@ mips_cpu_init(void) > >> > >> mips_icache_sync_all(); > >> mips_dcache_wbinv_all(); > >> -/* Print some info about CPU */ > >> -cpu_identify(); > >> } > >> > >> -static void > >> +void > >> cpu_identify(void) > >> { > >> uint32_t cfg0, cfg1, cfg2, cfg3; > >> diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c > >> index efd604a..cf8aaeb 100644 > >> --- a/sys/mips/mips/machdep.c > >> +++ b/sys/mips/mips/machdep.c > >> @@ -179,6 +179,8 @@ struct bootinfo bootinfo; > >> */ > >> vm_offset_t kernel_kseg0_end = (vm_offset_t)&end; > >> > >> +void cpu_identify(void); > >> + > >> static void > >> cpu_startup(void *dummy) > >> { > >> @@ -186,6 +188,10 @@ cpu_startup(void *dummy) > >> if (boothowto & RB_VERBOSE) > >> bootverbose++; > >> > >> +printf("CPU model: %s\n", cpu_model); > >> + > >> +cpu_identify(); > >> + > >> printf("real memory = %ju (%juK bytes)\n", > > ptoa((uintmax_t)realmem), > >> ptoa((uintmax_t)realmem) / 1024); > >> > >> > >> > >> > >> ----- Original Message ----- > >> >From: Warner Losh > >> >To: Mori Hiroki > >> >Cc: freebsd-mips@freebsd.org > >> >Date: 2018/10/13, Sat 00:22 > >> >Subject: Re: mips boot message > >> > > >> > > >> > > >> > > >> > > >> >On Fri, Oct 12, 2018, 1:50 AM Mori Hiroki > > wrote: > >> > > >> >Hi > >> >> > >> >>FreeBSD/mips cpu information is before dmesg. > >> >> > >> >>I think good that is cpu information is after this. > >> >> > >> >>---<>--- > >> >> > >> >> > >> >>How about this ? > >> >> > >> >>Thanks > >> >> > >> >>Hiroki Mori > >> >> > >> >> > >> >>Starting kernel ... > >> >> > >> >>CPU platform: Atheros AR7241 rev 1 > >> >>CPU Frequency=400 MHz > >> >>CPU DDR Frequency=400 MHz > >> >>CPU AHB Frequency=200 MHz > >> >>platform frequency: 400 MHz > >> >>CPU reference clock: 5 MHz > >> >>CPU MDIO clock: 5 MHz > >> >>arguments: > >> >> a0 = 00000007 > >> >> a1 = a3f6bfb0 > >> >> a2 = a3f6c460 > >> >> a3 = 00000004 > >> >>Cmd line:argv is invalid > >> >>Environment: > >> >>envp is invalid > >> >>Cache info: > >> >> picache_stride = 4096 > >> >> picache_loopcount = 16 > >> >> pdcache_stride = 4096 > >> >> pdcache_loopcount = 8 > >> >> max line size = 32 > >> >>cpu0: MIPS Technologies processor v116.147 > >> >> MMU: Standard TLB, 16 entries (4K 16K 64K 256K 1M 16M 64M 256M pg > > sizes) > >> >> L1 i-cache: 4 ways of 512 sets, 32 bytes per line > >> >> L1 d-cache: 4 ways of 256 sets, 32 bytes per line > >> >> L2 cache: disabled > >> >> Config1=0x9ee3519e > >> >> Config2=0x80000000 > >> >> Config3=0x20 > >> >>Physical memory chunk(s): > >> >>0x373000 - 0x3ffffff, 63492096 bytes (15501 pages) > >> >>Maxmem is 0x4000000 > >> >>---<>--- > >> >>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-ALPHA8 #0 fd45ead(zrouter)-dirty: Fri Oct 12 16:32:39 > > JST 2018 > >> >> > > hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zorg/ZRouter/tmp/storage/home/hiroki/freebsd/mips.mips/sys/Nec_WR8170N > > > mips > >> >>gcc version 4.2.1 20070831 patched [FreeBSD] > >> >>Preloaded elf kernel "kernel" at 0x8036d370. > >> >>real memory = 67108864 (65536K bytes) > >> >>Physical memory chunk(s): > >> >> > >> > > >> > > >> >I like the idea, but other platforms put this after the memory. Can > you > > make this more like x86 so we can automatically parse it more easily? > >> > > >> > > >> >Warner > >> > > >> > > >> _______________________________________________ > >> freebsd-mips@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-mips > >> To unsubscribe, send any mail to > > "freebsd-mips-unsubscribe@freebsd.org" > > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" >