From owner-freebsd-mips@freebsd.org Wed Nov 14 07:46:36 2018 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 95717110D58F for ; Wed, 14 Nov 2018 07:46:36 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 704CF6B975 for ; Wed, 14 Nov 2018 07:46:35 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-wr1-x429.google.com with SMTP id z13-v6so16105217wrs.3 for ; Tue, 13 Nov 2018 23:46:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JNNwmVpxhFcw2SKbOi+4l4D7sEFW+lM05nygNJg8olc=; b=dhiQ5/77Ex9YM6k6vSC/V7/zKcFeZf2hgcif61kjlvQUAfAucNWexy4vf9RxGK9Egu UJrwwNm0YWoVUg6CgJ6J1x1wpm1bvRW/9SvgmDLtxetH1dgnm7b1Hr1wvokVBzWoZ30w LB6wLpSj6nx4SN7/EZEP3S+AFOUcmxLE4PgqJGqRnvtdp/WWtd8my/JSIjIP76dxFUjx r8Y4t43In//TAf68DUjiPL9h8H2ORgKaa38bDx6dGOwiLPE1oCSFlj+WcSLRX0wIS/sf oTjXBDzkmuRl2RlBoczN1+qYmgtMorQuyt4bGR9W8qB/jK2Pf9jntARpnjMSWnSN+nbh fZug== 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=JNNwmVpxhFcw2SKbOi+4l4D7sEFW+lM05nygNJg8olc=; b=OCos7nAlTkejjnNZxyo9kYB3Wk9RoOyrkvcLglMk30dkrrq0gHgvSkwkxipI2gmQI7 wOwQFK9hHrfmIQNcA9jcrmycFa6cuT6FKsNOf8fGMHSCGLh3qZeu2bLXvRw8V43+m/ef /4p2TELghr1FYvBny/1+SRWdQ6j21gkF3OunhOEiVwbbBjWfdV5omjiVGoTrJVcNvz2v MPEYUAPTVqhQ2WPDczcWsCMalSJecIqtb6j5ZSd5RQvvNh5vGlLgSEBsK7qh4bsWmG6l +wCkuQ6+uGoiMpsRsqN2JribQn71LvbyZ7OFpf6rsVMafVXds6zFTQAeG7FzYgZ53wwo jXPg== X-Gm-Message-State: AGRZ1gJSKkCiBFfeqMJy0IFfuBI3QlpXiipRu89roE/ZodnxwlJGxGhV HMjps5FMcNgDHbPkSBXOCngfPCjxtRio9snV58ub7g== X-Google-Smtp-Source: AJdET5dNa2uYw44SUFKc6EiA6u7gDxo6ZkeyBO/JbzNDDjIT5pBdXIkt+Kb/Ir6u0GwvhNL9UbBgO6a7ZEgkUi049sg= X-Received: by 2002:a5d:68cc:: with SMTP id p12-v6mr843541wrw.34.1542181593915; Tue, 13 Nov 2018 23:46:33 -0800 (PST) MIME-Version: 1.0 References: <376089.55679.qm@web103915.mail.ssk.yahoo.co.jp> <386566.36409.qm@web103917.mail.ssk.yahoo.co.jp> <952422.39638.qm@web103909.mail.ssk.yahoo.co.jp> In-Reply-To: <952422.39638.qm@web103909.mail.ssk.yahoo.co.jp> From: Michael Zhilin Date: Wed, 14 Nov 2018 10:46:20 +0300 Message-ID: Subject: Re: BCM/mips still hang up To: Mori Hiroki Cc: freebsd-mips@freebsd.org X-Rspamd-Queue-Id: 704CF6B975 X-Spamd-Result: default: False [-4.69 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.92)[-0.920,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[9.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FREEMAIL_TO(0.00)[yahoo.co.jp]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.76)[ipnet: 2a00:1450::/32(-1.87), asn: 15169(-1.82), country: US(-0.10)] X-Rspamd-Server: mx1.freebsd.org 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: Wed, 14 Nov 2018 07:46:36 -0000 Hi Hiroki-san, Blame on me... I have buggy code of network driver, so I don't want to commit it into tree. On TX path it free buffer for each interrupt call. But not each TX packet causes interrupt, so I need to fix post-TX cleanup function to free all mbuf until current descriptor. In addition, I'm not sure it's last bug ;) Thx! On Wed, Nov 14, 2018 at 1:39 AM Mori Hiroki wrote: > Hi > > > BCM5357(bcma) can boot and login. > > > https://dmesgd.nycbug.org/index.cgi?do=view&id=4578 > > But this have no network interface... > > Hiroki Moiri > > > > ----- Original Message ----- > > From: Mori Hiroki > > To: "freebsd-mips@freebsd.org" > > Cc: > > Date: 2018/11/14, Wed 07:01 > > Subject: Re: BCM/mips still hang up > > > > Hi. > > > > I found may be same problem cns11xx(arm) before. > > > > I think this problem cuase of uart and interrupt. > > > > Old Rays code work on fine on BCM/mips. But same > > time that have same hang up problem. I doubt > > merge INTERNG in system. > > > > Thanks > > > > Hiroki Mori > > > > ----- Original Message ----- > >> From: Mori Hiroki > >> To: "freebsd-mips@freebsd.org" > >> Cc: > >> Date: 2018/11/12, Mon 14:26 > >> Subject: BCM/mips still hang up > >> > >> Hi > >> > >> I try to 12.0-BETA4 on BCM5351 & BCM5352. It sill hang up on boot. > >> This log. > >> > >> entry: mips_init() > >> Cache info: > >> picache_stride = 4096 > >> picache_loopcount = 4 > >> pdcache_stride = 4096 > >> pdcache_loopcount = 2 > >> max line size = 16 > >> cpu0: Broadcom processor v8.144 > >> MMU: Standard TLB, 32 entries (1K 4K 16K 64K 256K 1M 16M 64M 256M pg > > sizes) > >> L1 i-cache: 2 ways of 512 sets, 16 bytes per line > >> L1 d-cache: 2 ways of 256 sets, 16 bytes per line > >> L2 cache: disabled > >> Config1=0x3ed94c82 > >> ---<>--- > >> 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-BETA4 e78279655eb(stable/12) Buffalo_WHR-HP-G54 mips > >> gcc version 4.2.1 20070831 patched [FreeBSD] > >> real memory = 16109568 (15732K bytes) > >> avail memory = 11276288 (10MB) > >> arc4random: no preloaded entropy cache > >> random: entropy device external interface > >> nexus0: > >> bhnd_nvram0: on nexus0 > >> bhnd0: at mem 0x18000000-0x180fffff on nexus0 > >> bhnd_chipc0: mem > >> > > > 0x18000000-0x18000dff,0x1fc00000-0x1fffffff,0x1c000000-0x1dffffff,0x1a000000-0x1bffffff,0x18000f00-0x18000fff,0x18000e00-0x18000eff > > > > >> irq 8 at core 0 on bhnd0 > >> gpio0: mem 0x18000000-0x18000dff on > > bhnd_chipc0 > >> gpiobus0: on gpio0 > >> cpupic0: on nexus0 > >> bcm_mips0: mem > >> 0x18002000-0x18002dff,0x18002f00-0x18002fff,0x18002e00-0x18002eff irq > 10 at > > core > >> 2 on bhnd0 > >> bhnd_pwrctl0: on bhnd_chipc0 > >> clock0: on nexus0 > >> Timecounter "MIPS32" frequency 100000000 Hz quality 800 > >> Event timer "MIPS32" frequency 100000000 Hz quality 800 > >> gpioc0: on gpio0 > >> uart0: <16750 or compatible> mem 0x18000300-0x180003ff irq 13 on > >> bhnd_chipc0 > >> uart0: console (115200,n,8,1) > >> uart1: <16750 or compatible> mem 0x18000400-0x180004ff irq 14 on > >> bhnd_chipc0 > >> cfi1: mem > >> 0x1c000000-0x1dffffff,0x18000040-0x1800004b on bhnd_chipc0 > >> cfid0 on cfi1 > >> bhnd0: mem > >> 0x18001000-0x18001dff,0x18001f00-0x18001fff,0x18001e00-0x18001eff irq > 9 at > > core > >> 1 (no driver attached) > >> bhnd0: mem > >> 0x18003000-0x18003dff,0x18003f00-0x18003fff,0x18003e00-0x18003eff irq > 11 at > > core > >> 3 (no driver attached) > >> bhnd0: mem > >> > > > 0x18004000-0x18004dff,0-0x7ffffff,0x10000000-0x17ffffff,0x80000000-0x9fffffff,0x18004f00-0x18004fff,0x18004e00-0x18004eff > > > > >> at core 4 (no driver attached) > >> bhnd0: mem > >> 0x18005000-0x18005dff,0x18005f00-0x18005fff,0x18005e00-0x18005eff irq > 12 at > > core > >> 5 (no driver attached) > >> bhnd0: mem > >> 0x18006000-0x18006dff,0x18006f00-0x18006fff,0x18006e00-0x18006eff at > core 6 > > (no > >> driver attached) > >> cfi0 at mem 0x1c000000-0x1dffffff on nexus0 > >> nexus_alloc_resource: could not reserve resource for cfi0 > >> device_attach: cfi0 attach returned 6 > >> Timecounters tick every 10.000 msec > >> Trying to mount root from cd9660:/dev/map/rootfs.uzip []... > >> Warning: no time-of-day clock registered, system time will not be set > > accurately > >> kern.coredump: > >> _______________________________________________ > >> 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" > > > _______________________________________________ > 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" >