From owner-freebsd-mips@freebsd.org Sun Jan 17 16:30:29 2016 Return-Path: Delivered-To: freebsd-mips@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 27AB6A8560D for ; Sun, 17 Jan 2016 16:30:29 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (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 E898A137F for ; Sun, 17 Jan 2016 16:30:28 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 36CCA153A51; Sun, 17 Jan 2016 17:30:15 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9r9u8PwRfuoc; Sun, 17 Jan 2016 17:30:05 +0100 (CET) Received: from [192.168.10.10] (asus [192.168.10.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 41BEA153413; Sun, 17 Jan 2016 17:15:20 +0100 (CET) Subject: Re: Ralink/MediaTek support progress To: Stanislav Galabov , freebsd-mips@freebsd.org References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> From: Willem Jan Withagen X-Enigmail-Draft-Status: N1110 Message-ID: <569BBE18.9030407@digiware.nl> Date: Sun, 17 Jan 2016 17:15:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2016 16:30:29 -0000 On 12-1-2016 17:42, Stanislav Galabov wrote: > Hi all, > > Just to let you know that there is now basic support for MT7621 in my github branch: > https://github.com/sgalabov/freebsd/tree/local/sgalabov_mtk > > Currently only UART, interrupts, SPI and basic ethernet support is there (no SMP either for now), but I thought it may be of interest to those who have MT7621 boards (e.g., WiTi board). > > The kernel config is MT7621. It is currently configured for MFS, but can be configured for NFS of course :-) > > Work continues... In the master branch is not MT7621 configs available. In local/mt7621 and local/sgalabov_mt7621 they are, but then building gives me: In file included from /usr/srcs/Mips/MT6721/freebsd/sys/mips/mt762x/rt305x_sysctl.c:41: /usr/srcs/Mips/MT6721/freebsd/sys/mips/rt305x/rt305xreg.h:45:2: error: #error "No platform selected" In file included from /usr/srcs/Mips/MT6721/freebsd/sys/mips/mt762x/rt305x_ic.c:41: /usr/srcs/Mips/MT6721/freebsd/sys/mips/rt305x/rt305xreg.h:45:2: error: #error "No platform selected" So it does not have a PLATFORM_COUNTER_FREQ defined. copying /usr/srcs/Mips/MT6721/freebsd/sys/mips/rt305x/rt305xreg.h helps for this file. But than the next one is: /usr/srcs/Mips/MT6721/freebsd/sys/mips/mt762x/rt305xreg.h So I'm definitly not in the right branch with local/mt7620.... Which one do I need for the MT7621? --WjW From owner-freebsd-mips@freebsd.org Sun Jan 17 16:54:48 2016 Return-Path: Delivered-To: freebsd-mips@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 708FDA85F85 for ; Sun, 17 Jan 2016 16:54:48 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c: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 095291010 for ; Sun, 17 Jan 2016 16:54:48 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id l65so73580601wmf.1 for ; Sun, 17 Jan 2016 08:54:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pGhyqXUmrxUU1unM+YO/oMHcJ1VHT9YmNCM/kCUt6kc=; b=j6lvvZ01AiWnUdXyiZkW94lXi3h3vKBDRBbmLgEyrkh4mZ1ugk/6Q116s5KquwEDv0 7ebKPaYmbSajJMEazx2DOhJkSiD4TSML+6fuvmti9ORe1DLseVeZU0g/xJwunWIwOEAf byN3M1DiMnhfq7Ae9UIkb/6xmqao1hVgThB6PxgGmN3OhMRFxNLrCHqV1D3sNO5HH241 CsUeXjwwvk7B2h8bzyhq6fpI3p6J3yveKQmvt7Nq3O8sjRg3oK9bktr3NFMVxETkP/c2 1u94pMjfyGYtHy6neFqr3TX6+o6qMGNHPdzML7U/US3yeH3AcOouRR70VzLjKq31htOp v6VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=pGhyqXUmrxUU1unM+YO/oMHcJ1VHT9YmNCM/kCUt6kc=; b=KW1CHy79Q8xsWCAGRNiLFsTY/V++MMRoItTf7VKH/aPdC0TIjD4GbW/XIpZgJL318U rSgEpiGNcIKVviTZEtD0WNzKd47nLwuSmNhc7OPt70ubVLPNVFrsS5B8TFcUQlIsqFVw JaH/oKiYUhwpIX5Er3Hl6bf4RcAJ8Ol8UYtlTuQFyp2PwZk2z35ayp/4/sMfQ1ko+NU+ fMn5Gxc9m+u7UDIehKu8gsGKIxMOq9lycohSeO9x0cj6unPnBNmBO/SdTQFUyG7xmLyL 9dw97sI7hz9mxx4bUWVMx3e/nq+239sPZjf1aWdDDpSaeitYhuOyX2at4wLoDI+t5xpp bEMg== X-Gm-Message-State: AG10YOSdjktPwCxgtgSwQeNHTfnkjCIfkxUXduHHjePYd+IuXNG4QaL0p2AaQZKX1JgohA== X-Received: by 10.28.3.131 with SMTP id 125mr9472541wmd.14.1453049685425; Sun, 17 Jan 2016 08:54:45 -0800 (PST) Received: from [10.0.50.12] ([94.155.70.123]) by smtp.gmail.com with ESMTPSA id c185sm11877245wma.5.2016.01.17.08.54.44 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Jan 2016 08:54:44 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: Ralink/MediaTek support progress From: Stanislav Galabov X-Mailer: iPhone Mail (12B440) In-Reply-To: <569BBE18.9030407@digiware.nl> Date: Sun, 17 Jan 2016 18:54:44 +0200 Cc: "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> To: Willem Jan Withagen X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2016 16:54:48 -0000 Hi Willem, The right branch is local/sgalabov_mtk. Best wishes, Stanislav > On Jan 17, 2016, at 18:15, Willem Jan Withagen wrote: >=20 >> On 12-1-2016 17:42, Stanislav Galabov wrote: >> Hi all, >>=20 >> Just to let you know that there is now basic support for MT7621 in my git= hub branch: >> https://github.com/sgalabov/freebsd/tree/local/sgalabov_mtk >>=20 >> Currently only UART, interrupts, SPI and basic ethernet support is there (= no SMP either for now), but I thought it may be of interest to those who hav= e MT7621 boards (e.g., WiTi board). >>=20 >> The kernel config is MT7621. It is currently configured for MFS, but can b= e configured for NFS of course :-) >>=20 >> Work continues... >=20 > In the master branch is not MT7621 configs available. >=20 > In local/mt7621 > and local/sgalabov_mt7621 > they are, but then building gives me: >=20 > In file included from > /usr/srcs/Mips/MT6721/freebsd/sys/mips/mt762x/rt305x_sysctl.c:41: > /usr/srcs/Mips/MT6721/freebsd/sys/mips/rt305x/rt305xreg.h:45:2: error: > #error "No platform selected" > In file included from > /usr/srcs/Mips/MT6721/freebsd/sys/mips/mt762x/rt305x_ic.c:41: > /usr/srcs/Mips/MT6721/freebsd/sys/mips/rt305x/rt305xreg.h:45:2: error: > #error "No platform selected" >=20 > So it does not have a PLATFORM_COUNTER_FREQ defined. > copying /usr/srcs/Mips/MT6721/freebsd/sys/mips/rt305x/rt305xreg.h helps > for this file. >=20 > But than the next one is: > /usr/srcs/Mips/MT6721/freebsd/sys/mips/mt762x/rt305xreg.h >=20 > So I'm definitly not in the right branch with local/mt7620.... >=20 > Which one do I need for the MT7621? >=20 > --WjW >=20 >=20 >=20 >=20 >=20 >=20 >=20 From owner-freebsd-mips@freebsd.org Sun Jan 17 17:11:18 2016 Return-Path: Delivered-To: freebsd-mips@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 248C6A8657E for ; Sun, 17 Jan 2016 17:11:18 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (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 E1F6015C6 for ; Sun, 17 Jan 2016 17:11:17 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 1636F153431; Sun, 17 Jan 2016 18:11:15 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id smba9GN9SFi9; Sun, 17 Jan 2016 18:10:47 +0100 (CET) Received: from [192.168.10.10] (asus [192.168.10.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id B94A9153401; Sun, 17 Jan 2016 18:10:47 +0100 (CET) Subject: Re: Ralink/MediaTek support progress To: Stanislav Galabov References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> Cc: "freebsd-mips@freebsd.org" From: Willem Jan Withagen Message-ID: <569BCB17.7010807@digiware.nl> Date: Sun, 17 Jan 2016 18:10:47 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2016 17:11:18 -0000 On 17-1-2016 17:54, Stanislav Galabov wrote: > > Hi Willem, > > The right branch is local/sgalabov_mtk. > That helps... Thanx, --WjW From owner-freebsd-mips@freebsd.org Sun Jan 17 17:59:40 2016 Return-Path: Delivered-To: freebsd-mips@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 6A072A8631D for ; Sun, 17 Jan 2016 17:59:40 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (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 1BDD51A14 for ; Sun, 17 Jan 2016 17:59:40 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 224721534E6; Sun, 17 Jan 2016 18:59:38 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y-en6DsqUb9n; Sun, 17 Jan 2016 18:59:17 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:2d24:8a18:97f3:86d0] (unknown [IPv6:2001:4cb8:3:1:2d24:8a18:97f3:86d0]) by smtp.digiware.nl (Postfix) with ESMTP id 5F7D1153431; Sun, 17 Jan 2016 18:59:17 +0100 (CET) Subject: Re: Ralink/MediaTek support progress To: Stanislav Galabov References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> Cc: "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <569BD676.9040506@digiware.nl> Date: Sun, 17 Jan 2016 18:59:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <569BCB17.7010807@digiware.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2016 17:59:40 -0000 On 17-1-2016 18:10, Willem Jan Withagen wrote: > On 17-1-2016 17:54, Stanislav Galabov wrote: >> >> Hi Willem, >> >> The right branch is local/sgalabov_mtk. >> > > That helps... > > Thanx, > --WjW With the rest of the compile/build info on the MIPS Wiki: https://wiki.freebsd.org/FreeBSD/mips/RT3052F I get, the appended console at 56700 bit/s, so the kernel is booting. Now I just have to find out to either get an md in the right place. Config NFS Or get it to use the /dev/sd0s1a device, like it did before, which i guess would be hard since the bits and pieces are not yet in the config. --WjW Filename 'test.bin'. TIMEOUT_COUNT=10,Load address: 0x80a00000 Loading: Got ARP REPLY, set server/gtwy eth addr (1c:6f:65:82:ec:12) Got it ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ####################### done Bytes transferred = 3444372 (348e94 hex) NetBootFileXferSize= 00348e94 Erasing SPI Flash... . Writing to SPI Flash... . done Automatic boot of image at addr 0x80A00000 ... ## Booting image at 80a00000 ... Image Name: FreeBSD Kernel Image Image Type: MIPS Linux Kernel Image (uncompressed) Data Size: 3444308 Bytes = 3.3 MB Load Address: 80001100 Entry Point: 80001100 Verifying Checksum ... OK OK No initrd ## Transferring control to Linux (at address 80001100) ... ## Giving linux memsize in MB, 256 Starting kernel ... FDT DTB at: 0x8031ef10 CPU clock: 880MHz SYS clock: 220MHz UART clock: 50MHz U-Boot args (from 0 args): None Environment: memsize=256 initrd_start=0x00000000 initrd_size=0x0 flash_start=0x00000000 flash_size=0x1000000 entry: mips_init() Cache info: picache_stride = 4096 picache_loopcount = 8 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v47.153 MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) L1 i-cache: 4 ways of 256 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line L2 cache: 8 ways of 1024 sets, 32 bytes per line, 256 KiB total size Config1=0xbea3519e Config2=0x80000447 Config3=0x2000242c Physical memory chunk(s): 0x3d3000 - 0xfffffff, 264425472 bytes (64557 pages) Maxmem is 0x10000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2016 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 11.0-CURRENT #0 041b950(local/sgalabov_mtk): Sun Jan 17 18:11:32 CET 2016 wjw@freetest.digiware.nl:/usr/obj/mips.mipsel/usr/srcs/Mips/MT6721/freebsd/sys/MT7621 mips gcc version 4.2.1 20070831 patched [FreeBSD] WARNING: WITNESS option enabled, expect reduced performance. Preloaded elf kernel "kernel" at 0x803ca650. real memory = 268435456 (262144K bytes) Physical memory chunk(s): 0x0045f000 - 0x0fb50fff, 258940928 bytes (63218 pages) avail memory = 254562304 (242MB) ULE: setup cpu 0 random: entropy device external interface mem: null: openfirm: nexus0: random: harvesting attach, 8 bytes (4 bits) from nexus0 ofwbus0: on nexus0 simplebus0: mem 0x1e000000-0x1e1fffff on ofwbus0 simplebus1: mem 0x1e000000-0x1e0fffff on simplebus0 random: harvesting attach, 8 bytes (4 bits) from simplebus1 random: harvesting attach, 8 bytes (4 bits) from simplebus0 random: harvesting attach, 8 bytes (4 bits) from ofwbus0 sysc0: mem 0-0xff on simplebus1 sysc0: Chip ID: MT7621 sysc0: GPIOMODE: 0x0004042c random: harvesting attach, 8 bytes (4 bits) from sysc0 mips_pic0: on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from mips_pic0 intc0: mem 0x1fbc0000-0x1fbcffff irq 0 on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from intc0 gpio0: mem 0x600-0x6ff irq 2 on simplebus1 random: harvesting attach, 8 bytes (4 bits) from gpio0 gpio1: mem 0x600-0x6ff irq 2 on simplebus1 random: harvesting attach, 8 bytes (4 bits) from gpio1 gpiobus0: on gpio0 random: harvesting attach, 8 bytes (4 bits) from gpiobus0 gpioc0: on gpio0 random: harvesting attach, 8 bytes (4 bits) from gpioc0 gpiobus1: on gpio1 random: harvesting attach, 8 bytes (4 bits) from gpiobus1 gpioc1: on gpio1 random: harvesting attach, 8 bytes (4 bits) from gpioc1 uart0: mem 0xc00-0xcff irq 3 on simplebus1 uart0: console (57870,n,8,1) uart0: fast interrupt uart0: PPS capture mode 2 (DCD) random: harvesting attach, 8 bytes (4 bits) from uart0 spi0: mem 0xb00-0xbff on simplebus1 spibus0: on spi0 mx25l0: at cs 0 on spibus0 Unknown SPI flash device. Vendor: c8, device id: 4018 device_attach: mx25l0 attach returned 6 random: harvesting attach, 8 bytes (4 bits) from spibus0 random: harvesting attach, 8 bytes (4 bits) from spi0 rt0: mem 0x1e100000-0x1e10ffff irq 1 on simplebus0 rt0: RT7621 Ethernet MAC (rev 0x00000000) rt0: use hardcoded 00:18:e7:d5:83:90 macaddr rt0: bpf attached rt0: Ethernet address: 00:18:e7:d5:83:90 random: harvesting attach, 8 bytes (4 bits) from rt0 clock0: on nexus0 Timecounter "MIPS32" frequency 440000000 Hz quality 800 Event timer "MIPS32" frequency 440000000 Hz quality 800 random: harvesting attach, 8 bytes (4 bits) from clock0 Device configuration finished. Timecounters tick every 10.000 msec tcp_init: net.inet.tcp.tcbhashsize auto tuned to 4096 lo0: bpf attached WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:md0.uncompress []... mountroot: waiting for device md0.uncompress... Mounting from ufs:md0.uncompress failed with error 19. Loader variables: Manual root filesystem specification: : [options] Mount using filesystem and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:tank cd9660:/dev/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) Abort manual input mountroot> ufs:/dev/da0s1a Trying to mount root from ufs:/dev/da0s1a []... mountroot: waiting for device /dev/da0s1a... Mounting from ufs:/dev/da0s1a failed with error 19. From owner-freebsd-mips@freebsd.org Sun Jan 17 19:15:44 2016 Return-Path: Delivered-To: freebsd-mips@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 3799BA85F1D for ; Sun, 17 Jan 2016 19:15:44 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-vk0-x22b.google.com (mail-vk0-x22b.google.com [IPv6:2607:f8b0:400c:c05::22b]) (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 EED4415CD for ; Sun, 17 Jan 2016 19:15:43 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-vk0-x22b.google.com with SMTP id a123so292238715vkh.1 for ; Sun, 17 Jan 2016 11:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tJ37Fi7x9/1Hj71eqHSoYRl8v8jF5IBPzsUFQ9cGN8A=; b=AhGVWq6y6MilqrTg8wO0mC9iH5rdzbtBPJfFKnCfBPYZbb9DB2frFcnke8rXPBb4Nv cK6MOAyX+lnKHtrwTNdP3IZfhjQ3i7fHSgD64UbY5X84zxgmBD39HU80z7LpfAe+r4Ch hJInSJtXjKMCUqarraGx4gGDfP4vB7sgeQML1ExXDyyj1ohfthTvDLsae1aNzp7W9XB1 lWCyFiUgrZUVmUKLMsnnWywSnC6EUnHJ0YYFgJyjRzXXZp7YYo4Otaebrh9yKeaQDGdx hL05YYeFjEau63639levPlSdAtGhTX8au4yz2ZEKJXTXW5q6KE2DZoSBD0Z0tsPG3NhJ Y6cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=tJ37Fi7x9/1Hj71eqHSoYRl8v8jF5IBPzsUFQ9cGN8A=; b=JIUvI75LAl/UlxfL+nuIE6oWjVCnOZ8qT0ttBOPnF2iTw/HYNzJcKE89wR8jXJbRpO Y9xJpGTCHD+aCRTSkyPBcGwg0Isdr2jX3CHvKj7uz8hP1Hwif6b31HmytIMWQdpjKjUX SheGIahPHmPCXd3G+UH6Dg+7NodobBWHi8VkHbskI5RXH69wLI653rdE1QQyZ80mNetR lQxGAcxPz5+fWUFJsjFltmRsAUIWo8ImQpsgLbEx6rc4RavoG4BI1TOLZIk4UridhuhL 0jJF5qhsVQ0t9I6xxFJkdlw2xaZgTeshD5ca+AwX4UvBHKzHw86eFEnYCXtRDJ3Ds1Z4 eLLA== X-Gm-Message-State: ALoCoQmxaOrfq+C8BEYSHJBFo347nZFsF/bkTBQmr43b7wQdoTjyKvtZTLDI+k14DJLHH0rwh3u8G4BWCPdFzYYfZelJfDAVqA== MIME-Version: 1.0 X-Received: by 10.31.56.133 with SMTP id f127mr14907217vka.56.1453058142567; Sun, 17 Jan 2016 11:15:42 -0800 (PST) Received: by 10.31.183.147 with HTTP; Sun, 17 Jan 2016 11:15:42 -0800 (PST) In-Reply-To: <569BD676.9040506@digiware.nl> References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> Date: Sun, 17 Jan 2016 21:15:42 +0200 Message-ID: Subject: Re: Ralink/MediaTek support progress From: Stanislav Galabov To: Willem Jan Withagen Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2016 19:15:44 -0000 On Sun, Jan 17, 2016 at 7:59 PM, Willem Jan Withagen wrote: > > With the rest of the compile/build info on the MIPS Wiki: > https://wiki.freebsd.org/FreeBSD/mips/RT3052F > > I get, the appended console at 56700 bit/s, so the kernel is booting. > Now I just have to find out to either get an md in the right place. > Config NFS > Or get it to use the /dev/sd0s1a device, like it did before, which i > guess would be hard since the bits and pieces are not yet in the config. > > --WjW > > You should be able to use your SATA drive by the end of the coming week... :-) Stanislav From owner-freebsd-mips@freebsd.org Mon Jan 18 00:04:46 2016 Return-Path: Delivered-To: freebsd-mips@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 0B4EFA86CFF for ; Mon, 18 Jan 2016 00:04:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qg0-x22d.google.com (mail-qg0-x22d.google.com [IPv6:2607:f8b0:400d:c04::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 BB02312F8 for ; Mon, 18 Jan 2016 00:04:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qg0-x22d.google.com with SMTP id 6so467979315qgy.1 for ; Sun, 17 Jan 2016 16:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=8LcbG4MvyCC8SDMDG8ri6BObRGbJY7FYFfPeCXnI9yE=; b=VJfqyOeoYAzcHHw/Vopisbr8B6tAiTe/yaDzGQ8RDHvtjNmyTc9qUJ7yAdmBj/JiTt IN1WRioGnCaPSGYuy2ZYYjQmB92Fc7Xlmfe3C8OZiHyiP+8T6BhP2IRKGiVIbaSv6+bV vVvQi8rD+p5nno10NRnNXPjURi82q6BDo2+7R7FXn5fDw8IPjqQ0KyuvQk16Werslj2A eC5K5TI4KTnLV5X/H9k0sgr0+ZCQ64ynhyjK284g3lry12bS0wJf1jCvyThCzn9RPcRE GTFVhsUx91t1oSGbt93sCScfwlSrXPYySXp4662K59cwbR0E7O10Ec/bZXMgTjpDAt/d +iOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=8LcbG4MvyCC8SDMDG8ri6BObRGbJY7FYFfPeCXnI9yE=; b=fOkzS4suiXbbvBXjAXaWRnbGJICU1w6YJb+21n3FvVsOXeQhT53Bkpnbx13hwHUX0+ MRy0gb5nK0HiPUTGbLN7+dkwxBKXDwpHriblXllDG6MMaddXZrvfLEMsAME5DgwNaFvC E0xZUPkWSAM0Z3w9Yte0xSfvWPCdYfCdqgYUsmPji/GYnWbQmNib/AP/baeFCp6bow9x us2i/fArbXj6qmu2CWsZxS4xw4IUiYieyWNXUH6e6m6l2i6kqiApvZN/fVcQdWbRVVcr Ck+7W6wPFLjSO5+4oYLDbu/C/gDWzbp144Tjl783NVwq7gT3LapMg0Zog79X2ypeqDPx 95Qg== X-Gm-Message-State: ALoCoQkZK92eNJHBedKmoUgXDs9LYdbtFbY2UgrSafgeDlGXKK1RO5+tYktie1Mr+ffFKlIGFxF7zkyOg76d4paS/7JGGplf/A== MIME-Version: 1.0 X-Received: by 10.140.141.138 with SMTP id 132mr29504983qhn.74.1453075484835; Sun, 17 Jan 2016 16:04:44 -0800 (PST) Sender: wlosh@bsdimp.com Received: by 10.140.30.166 with HTTP; Sun, 17 Jan 2016 16:04:44 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: References: Date: Sun, 17 Jan 2016 17:04:44 -0700 X-Google-Sender-Auth: KMolSwTldRUgEMAUE2u7IInNIEk Message-ID: Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c From: Warner Losh To: Stanislav Galabov Cc: "freebsd-mips@freebsd.org" , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 00:04:46 -0000 I don't see how resets help. Maybe I missed where it was documented, could you send that to me? Even with that, it seems that a generic ohci_fdt driver isn't possible. Warner On Thu, Jan 14, 2016 at 2:01 AM, Stanislav Galabov wrote: > Hi all, > > First off, sorry for the cross-post, I wasn=E2=80=99t very sure where thi= s should > go=E2=80=A6 > > I=E2=80=99ve created 3 PRs, which enable some functionality that my work = on > Ralink/Mediatek SoCs would benefit from. > > 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 > - This enables geom_flashmap and fdt_slicer support for SPI flash chips > supported by the mx25l driver (sys/dev/flash/mx25l.c) > > 2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228 > - This adds support for FDT =E2=80=98resets=3D=E2=80=99 property in much = the same way as ian@=E2=80=99s > sys/dev/fdt/fdt_clock* supports FDT =E2=80=98clocks=3D=E2=80=98 property.= In fact this work > is basically a modified version of fdt_clock* :-) > > 3. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229 > - This simply moves the at91 specific sys/dev/usb/controller/ohci_fdt.c t= o > sys/dev/usb/controller/at91ohci_fdt.c (and changes the filename in > sys/arm/at91/files.at91 as well). The current naming is misleading IMHO a= nd > also, I have some (vague-ish) plans to see if I can implement generic > ohci_fdt and ehci_fdt based on dwc_otg_fdt, so that systems with standard > ehci/ohci controllers can reuse these. > > Patches are attached to the PRs. > > I would appreciate any feedback on the PRs and would also appreciate it i= f > someone could commit these if the proposed changes are appropriate. > > Best wishes, > Stanislav > _______________________________________________ > 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" From owner-freebsd-mips@freebsd.org Mon Jan 18 14:28:19 2016 Return-Path: Delivered-To: freebsd-mips@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 142C2A86089 for ; Mon, 18 Jan 2016 14:28:19 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::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 9C9D6195E for ; Mon, 18 Jan 2016 14:28:18 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id r129so53541266wmr.0 for ; Mon, 18 Jan 2016 06:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=baBwcaTRLm5HHc1AAYtiRhqMA3Uz/DyW6wagFttTxDM=; b=AoVqZ0k3OdyvscTqD+n5ErEVOO/rBso1wy9JAJ4HHjIPhSZ/AIcbfKb9txpwPUOOvm Tf5nlMXrjV+Q5pJtoaV6RNMvTliEnVtysxKfvZmfyI/v3nmjoyJTunQHSiGAsLzJEN0o upUx6ZTPHklFQM9D0t9i/Xgt1sG/dfnhRYvOLsPjjZq8kOz3REUhqrm0mnQIx0AaFNBF 22WGJcOT7Qemyfk1ss5rbTfYQf4zFo6fr37YJb6UgZgCf++GrJRgicPkBOUTAGmG37rw Yj0jKXPn7Ye9WYAK7P8L6g8VN7efEffOcZgu60G3ClH9zGu6ds9rPF6iEVWFRK355A4t Fy7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=baBwcaTRLm5HHc1AAYtiRhqMA3Uz/DyW6wagFttTxDM=; b=Gx12CXk8NttKJUbnHFI15fcSMIDnk4na2g6/gRFnfkrxA0bnaKb2kB+fMSd+xihrJF Xq1GfiHLtgjYgIOW8nrLT8COF2nTnRCZAl+twuHjuJeseAcX5mmR6W32alacGdCBwmx3 Horqr7US0SOoKE2DuJqy8sf7KYJlz+O8zETJBB8IFxCx1aJIWfuCYbZ99GSYQcsYXu49 1jvyYgAtv+xJJ90sDSBc2Tva1MIrgUNj2PfPUP25Ue9cuzN7VIwgkXDTQ1S7XR6UwUJU 5S80GaMSYXTv1HCTA8oh74XnRDpXnbfVr0wsQLI/Hoa4j17BiVUm9peHwAb9uS8XAvvX J/lw== X-Gm-Message-State: ALoCoQlS4KIqmiyESLS+weQxNKlTQpeW2KozqXPbsuQme7qqjUIEibmnt2fu06ArT6hB5PrvNqjjeJCpNJP1aUbsuH/H9LL4hw== X-Received: by 10.194.241.228 with SMTP id wl4mr24690924wjc.11.1453127296141; Mon, 18 Jan 2016 06:28:16 -0800 (PST) Received: from macbookpro-894a.hsmt ([193.178.153.131]) by smtp.gmail.com with ESMTPSA id m143sm16023710wma.17.2016.01.18.06.28.15 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jan 2016 06:28:15 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: Ralink/MediaTek support progress From: Stanislav Galabov In-Reply-To: Date: Mon, 18 Jan 2016 16:28:14 +0200 Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" Message-Id: References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> To: Willem Jan Withagen X-Mailer: Apple Mail (2.3094) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 14:28:19 -0000 > On Jan 17, 2016, at 21:15, Stanislav Galabov = wrote: >=20 >=20 >=20 > On Sun, Jan 17, 2016 at 7:59 PM, Willem Jan Withagen > wrote: >=20 > With the rest of the compile/build info on the MIPS Wiki: > https://wiki.freebsd.org/FreeBSD/mips/RT3052F = >=20 > I get, the appended console at 56700 bit/s, so the kernel is booting. > Now I just have to find out to either get an md in the right place. > Config NFS > Or get it to use the /dev/sd0s1a device, like it did before, which i > guess would be hard since the bits and pieces are not yet in the = config. >=20 > --WjW >=20 > You should be able to use your SATA drive by the end of the coming = week... :-) >=20 > Stanislav=20 Hi Willem, Can you please pull my local/sgalabov_mtk branch again and see if you = can use your SATA drive for rootfs now? Best wishes, Stanislav= From owner-freebsd-mips@freebsd.org Mon Jan 18 14:49:14 2016 Return-Path: Delivered-To: freebsd-mips@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 83A0DA866E5; Mon, 18 Jan 2016 14:49:14 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (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 0836E110D; Mon, 18 Jan 2016 14:49:14 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id r129so54320431wmr.0; Mon, 18 Jan 2016 06:49:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=xsCBtJ+J4k129Lk9LTngm4CJufA9dMMBTNTeThUgyoM=; b=vZkSUtnLqnpw8lCkjFSe6oZ9vtpDnax1MysZwwWEbYRQLLCS4oEminTl+M+Vw5I5qM aZbFPPGQKTFBYy0yQWMxHnTGvRzeKghYzeVe6DXCQAsi2XJK9q9lfNA6d27hxIIaPcv1 eSh+siQMpj0mjOppuGfbPe/3fb+Jjxh/+X4rNycMLgHgUks8WXhuNQ34DiYEwxPj+xw5 5SR8eedVVWvEgZ+yYamh0mPp0+MeOgOSj+9uohpedH3InloeHdmZob5tV2SSVgSgY5DO /IIJnObAn8Yi5oYseMJ++klGBiaO5gOlweABZgtr86V/wsbHj6CPOUnyYMdr5gdzCKtJ vewA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=xsCBtJ+J4k129Lk9LTngm4CJufA9dMMBTNTeThUgyoM=; b=NCwKj41DHBvkMGhhq0n6+wFW954xr2ZpKahxfpfHDY8wQ35DIz0hVYbYO1qaSehcit o+dudoH5ipVa/cKtkSS5nJtAZpvW1l6iaqSaClVVN8oKnReh1WOPzBW3rrue01kL6gJX H4Os4KLfWntwsNEfrxWuNxybAKd6r+ySOOIF+rCREtX+NHxaiCCpap+JZyNe7sWRRsaN Cu+OSQHbkP/ALWr6q8hdnB0/NqYNLPvrKcyFB2/xCxr9WigUTBhmUygRTk/uZUUcdTws cBHT5xR9ej7hrVb7vRcik37bFa5vQQEgtw4g/2r9zDXwmdJ8fzgWNggsDI8gAL0Gu4AG DUdg== X-Gm-Message-State: AG10YOQE8Gdyuxc6BPP5Qho+6JBj1Bn+qb6N0Ko4ThuCRec4kJATlQM4sYg0z0l1tPV1QQ== X-Received: by 10.28.144.10 with SMTP id s10mr13064869wmd.97.1453128552530; Mon, 18 Jan 2016 06:49:12 -0800 (PST) Received: from macbookpro-894a.hsmt ([193.178.153.131]) by smtp.gmail.com with ESMTPSA id q129sm16187706wmd.14.2016.01.18.06.49.11 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jan 2016 06:49:11 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c From: Stanislav Galabov In-Reply-To: Date: Mon, 18 Jan 2016 16:49:10 +0200 Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" , "freebsd-arm@freebsd.org" Message-Id: <2AB9D6E1-BFF8-4EEE-B366-C980B72C4779@gmail.com> References: To: Warner Losh X-Mailer: Apple Mail (2.3094) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 14:49:14 -0000 Hi Warner, I was thinking resets could help in general, not specifically in the = case of trying to implement a generic ohci_fdt driver. As I already mentioned to you off-list (and in order for this message to = possibly make some more sense), I saw that Linux makes use of the = =E2=80=98resets=E2=80=99 property and looked at the documentation for = it: = https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bin= dings/reset/reset.txt = For example, with the work I am currently doing on Ralink/Mediatek = support, I have over 10 different chips in the same family, that have = very similar peripheral blocks, but their clocks and resets are = controlled via different bits in one of the SysCtl registers (the = register itself is at the same offset within the SysCtl block of each = chip). So I may have chip X which has its USB (for example) reset = controlled by bit 10 and chip Y with USB reset controlled by bit 12. So being able to write something like: resets =3D <&sysctl 10>; or resets =3D <&sysctl 11>; in my dts/dtsi files helps me immensely, instead of having to check what = chip I am running on and based on that use a different register = layout=E2=80=A6 Then, if I wanted to (de)assert reset for a peripheral block that has = this property defined I=E2=80=99d just do fdt_reset_(de)assert_all(dev), = where dev is the device_t for the peripheral in question. This would = (de)assert all reset pins associated with the peripheral. The same is the case for clock control (gating) in the Ralink/Mediatek = SoCs and this is the main reason I used fdt_clock that is already in = sys/dev/fdt and then thought about implementing the fdt_reset based on = it. I hope this clarifies a bit my reason for submitting the fdt_reset = patch. Best wishes Stanislav > On Jan 18, 2016, at 02:04, Warner Losh wrote: >=20 > I don't see how resets help. Maybe I missed where it was documented, = could you send that to me? >=20 > Even with that, it seems that a generic ohci_fdt driver isn't = possible. >=20 > Warner >=20 > On Thu, Jan 14, 2016 at 2:01 AM, Stanislav Galabov > wrote: > Hi all, >=20 > First off, sorry for the cross-post, I wasn=E2=80=99t very sure where = this should go=E2=80=A6 >=20 > I=E2=80=99ve created 3 PRs, which enable some functionality that my = work on Ralink/Mediatek SoCs would benefit from. >=20 > 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 = > - This enables geom_flashmap and fdt_slicer support for SPI flash = chips supported by the mx25l driver (sys/dev/flash/mx25l.c) >=20 > 2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228 = > - This adds support for FDT =E2=80=98resets=3D=E2=80=99 property in = much the same way as ian@=E2=80=99s sys/dev/fdt/fdt_clock* supports FDT = =E2=80=98clocks=3D=E2=80=98 property. In fact this work is basically a = modified version of fdt_clock* :-) >=20 > 3. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229 = > - This simply moves the at91 specific = sys/dev/usb/controller/ohci_fdt.c to = sys/dev/usb/controller/at91ohci_fdt.c (and changes the filename in = sys/arm/at91/files.at91 as well). The current naming is misleading IMHO = and also, I have some (vague-ish) plans to see if I can implement = generic ohci_fdt and ehci_fdt based on dwc_otg_fdt, so that systems with = standard ehci/ohci controllers can reuse these. >=20 > Patches are attached to the PRs. >=20 > I would appreciate any feedback on the PRs and would also appreciate = it if someone could commit these if the proposed changes are = appropriate. >=20 > Best wishes, > Stanislav > _______________________________________________ > 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 = " >=20 From owner-freebsd-mips@freebsd.org Mon Jan 18 15:01:49 2016 Return-Path: Delivered-To: freebsd-mips@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 D69F0A86C7E for ; Mon, 18 Jan 2016 15:01:49 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (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 9D02A181E for ; Mon, 18 Jan 2016 15:01:49 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 8D7B0153402; Mon, 18 Jan 2016 16:01:45 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LOqbXubmGPCm; Mon, 18 Jan 2016 16:01:31 +0100 (CET) Received: from [192.168.101.107] (vpn.ecoracks.nl [31.223.170.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id A470F153401; Mon, 18 Jan 2016 16:01:31 +0100 (CET) Subject: Re: Ralink/MediaTek support progress To: Stanislav Galabov References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> Cc: "freebsd-mips@freebsd.org" From: Willem Jan Withagen Message-ID: <569CFE4C.6010101@digiware.nl> Date: Mon, 18 Jan 2016 16:01:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 15:01:49 -0000 On 18-1-2016 15:28, Stanislav Galabov wrote: > >> On Jan 17, 2016, at 21:15, Stanislav Galabov > > wrote: >> >> >> >> On Sun, Jan 17, 2016 at 7:59 PM, Willem Jan Withagen > > wrote: >> >> >> With the rest of the compile/build info on the MIPS Wiki: >> https://wiki.freebsd.org/FreeBSD/mips/RT3052F >> >> I get, the appended console at 56700 bit/s, so the kernel is booting. >> Now I just have to find out to either get an md in the right place. >> Config NFS >> Or get it to use the /dev/sd0s1a device, like it did before, which i >> guess would be hard since the bits and pieces are not yet in the >> config. >> >> --WjW >> >> You should be able to use your SATA drive by the end of the coming >> week... :-) >> >> Stanislav > > > Hi Willem, > > Can you please pull my local/sgalabov_mtk branch again and see if you > can use your SATA drive for rootfs now? I'm going to be busy until 21:00 CET, so I'll have to see what I can do tonight. Otherwise it might take a bit longer. --WjW From owner-freebsd-mips@freebsd.org Mon Jan 18 15:02:58 2016 Return-Path: Delivered-To: freebsd-mips@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 EB724A86CA4 for ; Mon, 18 Jan 2016 15:02:57 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 9833418D4 for ; Mon, 18 Jan 2016 15:02:57 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id u188so107518524wmu.1 for ; Mon, 18 Jan 2016 07:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ppXToEwbhxb8eIowDM2xgpl1n02oU8wBiZI3VHjLy40=; b=kP31AguoQAe1heLBjmBkk9urI2IqUxiNyp+LNmUOfwCptSYDS3OujdyqUleCXPAIGM Txv4cMy4E5J2EzI7791w35szteVsb3YDQF5f+BuBuhlWF91L+wR7fv/ZH1XEUZsMfF9o vHS8AgHotIOXvv+Q7SDRanaZrU0BjSzXwkD5WDakDLoUvUe9+1784BzIB4nUWEwub/Rj D2jQreUPIHMOQsdJrC9j0Q8z2vxYOGovAD92l1y7fedMfDt4+/OxHg4tBbo7KTLjMXZL iWhRysJiXDoFi4aQBrsLgy4pFWCMGOAG1Y4YuL7t79EzBoStGDuLlkH2rotk3BK+MFtD r5hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=ppXToEwbhxb8eIowDM2xgpl1n02oU8wBiZI3VHjLy40=; b=OgsxAjlC983KzdAkoYnzMHhkf/4VhlP3CVwfAJukFUcgCuzcWRzFuftFjiX57h9Dd9 hRmuj+DpU0SDhPi6XTGHbFlYsRlH91S0seHeO7rjJgLmFcvHYfmcqwhs12ywCeqcfKFg 4oAYrX3fiqWHMGS3qjDstRnx9R7nmnmcy0miy6G4FY4ROanio+rfbysJm+Gwejsfo89N 2QYtrX9k+2VU6R7CFMzeYUJxiK4g8CwteiTTUg+sp2BLktA/wEPr55+2F5TWz3hLmCRY R5+n2hqcAEGmMi2KC3TlZ7XRwrOgSJEdEmigkSpZ7BAkxSIJ4Ku2fkjbp2+8TY0Ft6F8 f5ag== X-Gm-Message-State: ALoCoQkQ30Y+qkp5C9EOdqE7gDSpzlAAZQckBAnCC+fWXshEEqYg7S3CG6xeZZWJWEWIDR5M1X+fIxOkDnzZIP7n4DxpY2TWlw== X-Received: by 10.195.12.75 with SMTP id eo11mr24412391wjd.50.1453129375965; Mon, 18 Jan 2016 07:02:55 -0800 (PST) Received: from macbookpro-894a.hsmt ([193.178.153.131]) by smtp.gmail.com with ESMTPSA id x6sm24148669wje.38.2016.01.18.07.02.54 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jan 2016 07:02:54 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: Ralink/MediaTek support progress From: Stanislav Galabov In-Reply-To: <569CFE4C.6010101@digiware.nl> Date: Mon, 18 Jan 2016 17:02:54 +0200 Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569CFE4C.6010101@digiware.nl> To: Willem Jan Withagen X-Mailer: Apple Mail (2.3094) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 15:02:58 -0000 > On Jan 18, 2016, at 17:01, Willem Jan Withagen = wrote: >=20 > On 18-1-2016 15:28, Stanislav Galabov wrote: >>=20 >>> On Jan 17, 2016, at 21:15, Stanislav Galabov >> > wrote: >>>=20 >>>=20 >>>=20 >>> On Sun, Jan 17, 2016 at 7:59 PM, Willem Jan Withagen = >> > wrote: >>>=20 >>>=20 >>> With the rest of the compile/build info on the MIPS Wiki: >>> https://wiki.freebsd.org/FreeBSD/mips/RT3052F >>>=20 >>> I get, the appended console at 56700 bit/s, so the kernel is = booting. >>> Now I just have to find out to either get an md in the right = place. >>> Config NFS >>> Or get it to use the /dev/sd0s1a device, like it did before, = which i >>> guess would be hard since the bits and pieces are not yet in the >>> config. >>>=20 >>> --WjW >>>=20 >>> You should be able to use your SATA drive by the end of the coming >>> week... :-) >>>=20 >>> Stanislav=20 >>=20 >>=20 >> Hi Willem, >>=20 >> Can you please pull my local/sgalabov_mtk branch again and see if you >> can use your SATA drive for rootfs now? >=20 > I'm going to be busy until 21:00 CET, so I'll have to see what I can = do > tonight. Otherwise it might take a bit longer. >=20 > --WjW >=20 >=20 Don=92t worry - there=92s no hurry :-) I am just curious to confirm it would work on the WiTi board too.= From owner-freebsd-mips@freebsd.org Mon Jan 18 21:12:05 2016 Return-Path: Delivered-To: freebsd-mips@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 A12CFA87B22 for ; Mon, 18 Jan 2016 21:12:05 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (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 63FE31AC9 for ; Mon, 18 Jan 2016 21:12:04 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 99BBF153431; Mon, 18 Jan 2016 22:11:55 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gzCASPHnNcGZ; Mon, 18 Jan 2016 22:11:45 +0100 (CET) Received: from [192.168.10.10] (asus [192.168.10.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 671B71534E6; Mon, 18 Jan 2016 21:59:09 +0100 (CET) Subject: Re: Ralink/MediaTek support progress To: Stanislav Galabov References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569CFE4C.6010101@digiware.nl> <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> Cc: "freebsd-mips@freebsd.org" From: Willem Jan Withagen Message-ID: <569D521D.1030704@digiware.nl> Date: Mon, 18 Jan 2016 21:59:09 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 21:12:05 -0000 On 18-1-2016 16:02, Stanislav Galabov wrote: >>>> You should be able to use your SATA drive by the end of the coming >>>> week... :-) >>>> >>> Can you please pull my local/sgalabov_mtk branch again and see if you >>> can use your SATA drive for rootfs now? >> >> I'm going to be busy until 21:00 CET, so I'll have to see what I can do >> tonight. Otherwise it might take a bit longer. >> > Dont worry - theres no hurry :-) > I am just curious to confirm it would work on the WiTi board too. Seems to be working: Starting file system checks: /dev/ada0s1: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ada0s1: clean, 49451906 free (314 frags, 6181449 blocks, 0.0% fragmentation) lock order reversal: 1st 0x817d4b74 ufs (ufs) @ /usr/srcs/Mips/MT6721/sys/kern/vfs_mount.c:1224 2nd 0x817d5154 devfs (devfs) @ /usr/srcs/Mips/MT6721/sys/kern/vfs_subr.c:2473 stack backtrace: Mounting local file systems:. /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). Setting up harvesting:[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED Feeding entropy:random: unblocking device. . Starting Network: lo0. lo0: flags=8049 metric 0 mtu 16384 options=600003 inet 127.0.0.1 netmask 0xff000000 groups: lo ELF ldconfig path: /lib /usr/lib /usr/lib/compat Starting devd. Creating and/or trimming log files. Starting syslogd. Starting casperd. Clearing /tmp (X related). Updating motd:. Mounting late file systems:. Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. Starting background file system checks in 60 seconds. Fri Dec 25 14:19:37 UTC 2015 FreeBSD/mips (Amnesiac) (ttyu0) login: From owner-freebsd-mips@freebsd.org Mon Jan 18 21:21:35 2016 Return-Path: Delivered-To: freebsd-mips@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 6118AA87DEC for ; Mon, 18 Jan 2016 21:21:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::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 2BCEA1F1F for ; Mon, 18 Jan 2016 21:21:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x22f.google.com with SMTP id ik10so63859253igb.1 for ; Mon, 18 Jan 2016 13:21:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2Cx8xWJGRQxJkthtHvyJvRPZxXAdUdmzxOpoLG5r9ws=; b=KtSu6DtoPYcwGMBeX7JevSlskoynjKrKxvS2VDhmWmC0QVl7KmKfgXQccKSIh9aThU OL5opik8QF8vd7xiaaPcEji4FZ2NQ6XdwYOU2PPnFHL0m9cdD0DVJQSI9Y0Ey4H2e1Wb z08TBpGLX7VVv2Ek6pBm/ZtMsJwdTUqUubKNpUizK+rJbyG3L/qhGtAPB77Y2zRm4S3i 7WZhzRuFmdsByjzQk613G96iY/a1OqCLOdvO3+7clBd12FvHE3uvdKmtY5fPGewtGCVZ qMYyBVh85lMIfC0IcSZ3acHPdLoOyK7qbayBMKwECdaYNEiyaXdNhfB7qDkwnATUJKnk wRGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=2Cx8xWJGRQxJkthtHvyJvRPZxXAdUdmzxOpoLG5r9ws=; b=ELlORdIxa8ScVg/k4TUR/pOW0C2UhTh9kXFoDB8/VO0P3Ij5lD0WENkkBmMpe5Idcz S8vADFVKu2UY1SQUMEnWSAV20NfF45tutFPlMBn/ND291gzI1UjL+sF6DpFGNwsTEw4g t/49zgOH0zIoV04TX/Hho03euKFaD2Jb/hb6c8KDi+wh024/R0uwR/XUJ5aEc1AUt0Hz 8Y0hton/A3LdpjOzLsPWFpb7iyTW4yNtPKwd+Ume6O8IFdgJPDKKwas4LECHiDGeHT2K VTi5rDxqeG1htfgIo1P67nzLwg+wEvvlS5TQYovXLuAANgjCSNXkxDqgEZbv/lcfwOxb De3Q== X-Gm-Message-State: AG10YOTn/MPIntmQl/3Ti+oJBLj6S1a+y2UXcCa0xsWkqLNzW4CY2+JzReKgyY8i/lKhqHs91TY4h36S7Ezi2g== MIME-Version: 1.0 X-Received: by 10.50.122.100 with SMTP id lr4mr12949974igb.37.1453152094636; Mon, 18 Jan 2016 13:21:34 -0800 (PST) Received: by 10.36.121.16 with HTTP; Mon, 18 Jan 2016 13:21:34 -0800 (PST) In-Reply-To: <569D521D.1030704@digiware.nl> References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569CFE4C.6010101@digiware.nl> <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> <569D521D.1030704@digiware.nl> Date: Mon, 18 Jan 2016 13:21:34 -0800 Message-ID: Subject: Re: Ralink/MediaTek support progress From: Adrian Chadd To: Willem Jan Withagen Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 21:21:35 -0000 [snip] sweet, this is good news! I'm going to start merging in some more of the prep work done by Stanislav and kan@ . Hopefully well have this stuff in -HEAD soon! -a From owner-freebsd-mips@freebsd.org Mon Jan 18 22:01:06 2016 Return-Path: Delivered-To: freebsd-mips@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 E0CB4A87B17 for ; Mon, 18 Jan 2016 22:01:06 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (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 A91131941 for ; Mon, 18 Jan 2016 22:01:06 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id CE66E153413; Mon, 18 Jan 2016 23:01:01 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2hcDc2WqRs8f; Mon, 18 Jan 2016 23:00:33 +0100 (CET) Received: from [192.168.10.10] (asus [192.168.10.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id B53E1153402; Mon, 18 Jan 2016 23:00:33 +0100 (CET) Subject: Re: Ralink/MediaTek support progress To: Adrian Chadd References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569CFE4C.6010101@digiware.nl> <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> <569D521D.1030704@digiware.nl> Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" From: Willem Jan Withagen X-Enigmail-Draft-Status: N1110 Message-ID: <569D6082.7010409@digiware.nl> Date: Mon, 18 Jan 2016 23:00:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 22:01:07 -0000 On 18-1-2016 22:21, Adrian Chadd wrote: > [snip] > > sweet, this is good news! > > I'm going to start merging in some more of the prep work done by > Stanislav and kan@ . Hopefully well have this stuff in -HEAD soon! Network is running as well.... downloading ports with 25KB/sec so the speed is not great. Might be due to WITNESS testing ..... Got the feeling that the scheduler is still a bit rough around the edges... response goes with spurts. Might also be because it is only one CPU.... Although key-generation for ssh did complete in reasonable time. --WjW From owner-freebsd-mips@freebsd.org Mon Jan 18 22:13:08 2016 Return-Path: Delivered-To: freebsd-mips@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 124F8A86157 for ; Mon, 18 Jan 2016 22:13:08 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) (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 BCB9D1298 for ; Mon, 18 Jan 2016 22:13:07 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by mail-qg0-x229.google.com with SMTP id b35so436610208qge.0 for ; Mon, 18 Jan 2016 14:13:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=PtvJRt7C7fNdS6MZLPEzdj8VcVKI2F/mqBx0x0UEdAI=; b=EX/O3LWhddODGXY8lX/E6QfUfD/ScxZlk4CBdQiu5G42TOatbeZVg0gFAJewMh/TWW eg10F1y8rbsoDQB51CWl39MRRY6AmpLkAf1rAlbeUJ2EdJfsJ3W4iY92DIOhkAkinnQx VDFZ+LsHY5P/W858aRsLj1je/tsMuSGgFdM4CEiQex/gbjgrGzTmN75RbL1cE+RE4GQp PPjtzTNOICqqmBQmCT+eqYgKVW6s07xPGjVTaQ/FCTP0uN3zc4HJDKDyC2FnL05/4ovP 88oc88jQWlAkBKDJBS0G6TBmY1Z3bGzMx6Tg/9OAYD70isDXMK7d4pyG8oVYOoeumqRc UDuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type; bh=PtvJRt7C7fNdS6MZLPEzdj8VcVKI2F/mqBx0x0UEdAI=; b=J0rtORfabsfOA1WFhuCaP0DydluH0ZHy1fmknCK1LQOyBPMJ9+IMlKWSf3cJffjNmr IjIzw81yzVeS7Vrdah+SNKCYcFS1kMn/ltmF56eM2kFYb5UZKqVGZx1WJ/TymAGZXypL zqZ06uthgqApfaSZA9pnif3SDGONqPM4ejfOAO7DEkI5id0YpS5Y2HG/aED61W99QZvG VJFrFEPlQ3lnpnEmXm1AEuNkoexEMAxcKFxnScSgM5vOC4X3nXtVmSybip2fmUXBp9ga IS4BFxr4m54DhrkMr+qMoEOQbfYxEjAZibO7D5bKMUfcIaxoQ/koVpMlE6AgcMISXjpK wjdQ== X-Gm-Message-State: ALoCoQnCt1dPcj8+/P6grUCoswwWe5hIpFrkoBf9Twz1GGwgaoQQRISHPPLGPi+F2v+OG8nn3F10fQmBgwoxBNpQZlj2TwZC0w== X-Received: by 10.140.253.3 with SMTP id y3mr36371071qhc.39.1453155186721; Mon, 18 Jan 2016 14:13:06 -0800 (PST) Received: from kan ([2601:18f:802:4680:226:18ff:fe00:232e]) by smtp.gmail.com with ESMTPSA id r8sm10876816qha.47.2016.01.18.14.13.05 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jan 2016 14:13:05 -0800 (PST) Date: Mon, 18 Jan 2016 17:12:56 -0500 From: Alexander Kabaev To: Adrian Chadd Cc: Willem Jan Withagen , "freebsd-mips@freebsd.org" Subject: Re: Ralink/MediaTek support progress Message-ID: <20160118171256.1c047a40@kan> In-Reply-To: References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569CFE4C.6010101@digiware.nl> <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> <569D521D.1030704@digiware.nl> X-Mailer: Claws Mail 3.13.1 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/nO8nV2v7o=Nsxo/4Y_8CSRj"; protocol="application/pgp-signature" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 22:13:08 -0000 --Sig_/nO8nV2v7o=Nsxo/4Y_8CSRj Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 18 Jan 2016 13:21:34 -0800 Adrian Chadd wrote: > [snip] >=20 > sweet, this is good news! >=20 > I'm going to start merging in some more of the prep work done by > Stanislav and kan@ . Hopefully well have this stuff in -HEAD soon! >=20 >=20 > -a > _______________________________________________ > 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" Or, alternatively, I can merge own changes myself. And if clk changes hit the tree this week, I can do that to the whole of the Creator CI20 port-in-progress. --=20 Alexander Kabaev --Sig_/nO8nV2v7o=Nsxo/4Y_8CSRj Content-Type: application/pgp-signature Content-Description: Цифровая подпись OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJWnWNpXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDNUY3RDk5NTk5QjY0MUUxM0M1MTU2OTEw NzEzMjI5OTkyNzkyRTdFAAoJEAcTIpmSeS5+NH8P/0KZaeR7Ux+kdgD0Qm35NJlW I0aJOri4GIY6UKSMswAWLmMZ3g7xrzTKsk/8mkZ/FwF7r3esVG4ME1exim/LZtXk 61P+gL1gfr2vPkhFViRF6LPLt/wCBwpIUK9hwFqwSsz/3PsWhLW64sWGdW0RTA8E TRajdqxxHacCPARtSt4O/nmvE90nsryvmn7y0BOvtcJ3gww8Gpz4UZpFqMsLQM5P OOl6TWmbD9DHhVQYV+SpPDaYg4CtwBVYlHuu7ToHP0hcGcQguyakbuxmTCi7yIi4 MK1jhOzxJ8zMaLxjv6eTqhYusW9r1yZDv1TuYdUAJrjV9CNy3avj5Fc391C911Yg KMsQFB52AVASxiJirI3kg0cnQvFtTJivxNIDlt595a3yedq/6iwvZKuwzEop4/sE lXIyiRETtbQ2W5zclx6ZqYGqJ/CJAe+W9lY5f37mnZhKHGZ3I1/iPVMD2VoiFw/c DWOvLVo5yhfwUApN1/Bf1NmMRZhdsUMWQGs/QlDPYNDlHlZsQC0RtbE29WnEBWYE O46hXLnpIEirAvDWQgsePQ3Ncb6nrm4+Sfk7Y8asGUefOhZasbZaYGqBEn9s1Pdc hErEgIA+no6yMfdT7Oe1+3pJTqlOPYifWN/ayEGKH8BSLugT6V82vyw7bgUt+72K m+8cnEiXF7h7xzl7AJp6 =h0BJ -----END PGP SIGNATURE----- --Sig_/nO8nV2v7o=Nsxo/4Y_8CSRj-- From owner-freebsd-mips@freebsd.org Tue Jan 19 02:54:32 2016 Return-Path: Delivered-To: freebsd-mips@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 7751FA8780D for ; Tue, 19 Jan 2016 02:54:32 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 0BF911FEA for ; Tue, 19 Jan 2016 02:54:32 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id 123so74159805wmz.0 for ; Mon, 18 Jan 2016 18:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=NgaiDeIb8K1LuDDaVznxtIR3h7r8scZq4lSUheqpcbc=; b=V5u15Cp61K/zhYPkDQyVU1ioV0L3HlnCrm5bJlobfccjNBNmR01XhfBXD3wUcNtKRC EDqX/CbcqjYp08cIFuN8A1pLQn7NBOsSrK+iqC+yfSQb6WPE2XGgxRemDP1POP3YhfIi ceOBYMGhy4aMjMSvmVuAPg0LDOz8bB7Qh9eYSVsJra/hXRyprvuOtmGaIlpMAu9zPL9i PjXb4jib2dqvLs8+uh/0gKGse2IdlVcwJb8yNo/N5VPDbxkT0mk8h9mdoWulqzh9cX1x Vcob3iyV/ZxuJF7M9IgUJYujfQb3GhMm3yiUT0Gn7ngibOQX8wLBd+3gLW6j5Gd2fT8s 0w3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=NgaiDeIb8K1LuDDaVznxtIR3h7r8scZq4lSUheqpcbc=; b=jw35twW5wtfP+fyH7LTi2wrv64+N1VjetK5jJZXIAujAuutEwDNVOyMO6zOXdZNz5Z aqVlQE4bhldYSNohkvhTmmH1+zAk8mlX8srVWvObv4dDGoLlYZESYXf7dO7UIqbvb1/a ifwDF4Xdfy6M39DDkj4h5bDchriMFBA72r6B53PJgTeBus5X386ofeeKqDW0Cb3e3ysZ RBINzlzWooJk2mZEZiypcAzyCwUL8a66U25fVMU+v4tafI15skrULWz+VetvXBrgpS3T uHUuDRub/YaRTysfIKwujdg+spbgHalirMj6YgNocSYfEviQ+ywRZagsObjDIb8nPyUq ueEw== X-Gm-Message-State: AG10YOSuLCSj36lXTGDNrTSFtUE6pNmGsCRPa6+6k1/pCYGFbpcSnv13vbIWfUAAEnhHPg== X-Received: by 10.28.54.209 with SMTP id y78mr17478749wmh.26.1453172070617; Mon, 18 Jan 2016 18:54:30 -0800 (PST) Received: from [10.0.50.3] ([94.155.70.123]) by smtp.gmail.com with ESMTPSA id ha9sm26146343wjc.3.2016.01.18.18.54.29 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jan 2016 18:54:30 -0800 (PST) References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569CFE4C.6010101@digiware.nl> <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> <569D521D.1030704@digiware.nl> <569D6082.7010409@digiware.nl> Mime-Version: 1.0 (1.0) In-Reply-To: <569D6082.7010409@digiware.nl> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <901187C8-5FE5-4D10-878D-5156CEE47186@gmail.com> Cc: Adrian Chadd , "freebsd-mips@freebsd.org" X-Mailer: iPad Mail (12A405) From: Stanislav Galabov Subject: Re: Ralink/MediaTek support progress Date: Tue, 19 Jan 2016 04:54:26 +0200 To: Willem Jan Withagen X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 02:54:32 -0000 Hi Willem, Could you try doing an 'ifconfig rt0 promisc' and see if it makes network tr= ansfer speeds any better? Thanks, Stanislav > On 19.01.2016 =D0=B3., at 0:00, Willem Jan Withagen wrot= e: >=20 >> On 18-1-2016 22:21, Adrian Chadd wrote: >> [snip] >>=20 >> sweet, this is good news! >>=20 >> I'm going to start merging in some more of the prep work done by >> Stanislav and kan@ . Hopefully well have this stuff in -HEAD soon! >=20 > Network is running as well.... > downloading ports with 25KB/sec so the speed is not great. >=20 > Might be due to WITNESS testing ..... >=20 > Got the feeling that the scheduler is still a bit rough around the > edges... response goes with spurts. Might also be because it is only one > CPU.... Although key-generation for ssh did complete in reasonable time. >=20 > --WjW >=20 >=20 From owner-freebsd-mips@freebsd.org Tue Jan 19 08:46:51 2016 Return-Path: Delivered-To: freebsd-mips@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 AC051A874A5 for ; Tue, 19 Jan 2016 08:46:51 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (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 6B43615B8 for ; Tue, 19 Jan 2016 08:46:51 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 5E61B153416; Tue, 19 Jan 2016 09:46:47 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2GUUcSLh6utk; Tue, 19 Jan 2016 09:46:45 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:39:7fc5:2603:a0f0] (unknown [IPv6:2001:4cb8:3:1:39:7fc5:2603:a0f0]) by smtp.digiware.nl (Postfix) with ESMTP id 45509153431; Tue, 19 Jan 2016 09:34:51 +0100 (CET) Subject: Re: Ralink/MediaTek support progress To: Stanislav Galabov References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569CFE4C.6010101@digiware.nl> <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> <569D521D.1030704@digiware.nl> <569D6082.7010409@digiware.nl> <901187C8-5FE5-4D10-878D-5156CEE47186@gmail.com> Cc: Adrian Chadd , "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <569DF528.30006@digiware.nl> Date: Tue, 19 Jan 2016 09:34:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <901187C8-5FE5-4D10-878D-5156CEE47186@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 08:46:51 -0000 On 19-1-2016 03:54, Stanislav Galabov wrote: > ifconfig rt0 promisc That does increase the speed dramatically.... Where it was 25kBps before, it is now at a steady > 500 kBps. --WjW From owner-freebsd-mips@freebsd.org Tue Jan 19 09:59:42 2016 Return-Path: Delivered-To: freebsd-mips@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 6C8F6A87242 for ; Tue, 19 Jan 2016 09:59:42 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 F3D321877 for ; Tue, 19 Jan 2016 09:59:41 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id l65so130964556wmf.1 for ; Tue, 19 Jan 2016 01:59:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pWjGp0LX9vbi/AGTWd3ucvrq6f0mHOeqjeUF5aKhNLo=; b=bZZN95UBMeAvAYKogpCAoJGlijdXgwi8oLmNPQ8K86eJf0B2t3NGs5WoiQtjYURsJs Yy87V+GiLkKnDI1CMx6sE70xY+7KQRCiIuGr7tEiBB53QsMWXBa4CwhycyWaG3rRu+EB m0j7ChOETSuVk+t8thgl3M0g37MVYUw+t5dxeU6LTZST/i4i7mml9W0NdFjY2H2QnP8w lXAafZg4iOybVCz3LZok+tsoX4Vg7up81NMW0aDRxD80EA4Fy0dgLzQILKzHd1kI6/Qo AgB3jtd1RgCQ2SaL6c+ggQvMKaDO10MuDGXdFmHQRVTBjYKn5FnV8Why9VDO3UmaxreV iyRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=pWjGp0LX9vbi/AGTWd3ucvrq6f0mHOeqjeUF5aKhNLo=; b=QNv+vC6G4lbCReJODZY9kgBVHFvoalJ7PevYEr/OzruaF5iQG9A6UfPzzNMgQVSqMl +ZOkL6F5rLRd7wh/EvkkhF7ei9QsGDOsyAFbWX1kAM4m0Y9f26jj3XhjSLY1wpyYSRAd 0FX7mlCDps5zy7xhxppnSKuGZy3AGzyLS0Qw1Ig81QCt149KwyE+LNN0bTyD3VVQF6tv C/EVLwNfVY7rTIQINTskCCiTIOAdy08zXYiw+TnVFL+u4EVJXQtEtmstGteqfCqPGsIe 1R4VJ9Dy3lFO4PbRouzFoJrJw74rBkmbO5iK3QPctN4jES2IDorp1kwZal2ff+6QLaiD +ZKA== X-Gm-Message-State: AG10YOSDAu6BQbR1YH6VdOp+dMrldCkNajNUsoefaxmWmNzQxfcUUVXLuvVINW5WyNPBIw== X-Received: by 10.194.188.100 with SMTP id fz4mr24092762wjc.126.1453197580485; Tue, 19 Jan 2016 01:59:40 -0800 (PST) Received: from macbookpro-894a.hsmt ([193.178.153.131]) by smtp.gmail.com with ESMTPSA id 17sm19665308wmy.15.2016.01.19.01.59.39 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jan 2016 01:59:39 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: Ralink/MediaTek support progress From: Stanislav Galabov In-Reply-To: <569DF528.30006@digiware.nl> Date: Tue, 19 Jan 2016 11:59:40 +0200 Cc: Stanislav Galabov , Adrian Chadd , "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <01B8D296-45EF-4999-B00F-02889938868D@gmail.com> References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569CFE4C.6010101@digiware.nl> <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> <569D521D.1030704@digiware.nl> <569D6082.7010409@digiware.nl> <901187C8-5FE5-4D10-878D-5156CEE47186@gmail.com> <569DF528.30006@digiware.nl> To: Willem Jan Withagen X-Mailer: Apple Mail (2.3094) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 09:59:42 -0000 > On Jan 19, 2016, at 10:34, Willem Jan Withagen = wrote: >=20 > On 19-1-2016 03:54, Stanislav Galabov wrote: >> ifconfig rt0 promisc >=20 > That does increase the speed dramatically.... > Where it was 25kBps before, it is now at a steady > 500 kBps. >=20 > --WjW Hi Willem, Thanks for the feedback. This should now be fixed in my git branch. I am now able to sustain = ~3MB/s doing an scp from/to the board. Best wishes, Stanislav= From owner-freebsd-mips@freebsd.org Tue Jan 19 10:07:21 2016 Return-Path: Delivered-To: freebsd-mips@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 91363A87610 for ; Tue, 19 Jan 2016 10:07:21 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (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 556561CE6 for ; Tue, 19 Jan 2016 10:07:21 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 88669153402; Tue, 19 Jan 2016 11:07:17 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6qN6HkRgMV_Z; Tue, 19 Jan 2016 11:06:57 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:39:7fc5:2603:a0f0] (unknown [IPv6:2001:4cb8:3:1:39:7fc5:2603:a0f0]) by smtp.digiware.nl (Postfix) with ESMTP id D403B15340A; Tue, 19 Jan 2016 11:06:57 +0100 (CET) Subject: Re: Ralink/MediaTek support progress To: Stanislav Galabov References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569CFE4C.6010101@digiware.nl> <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> <569D521D.1030704@digiware.nl> <569D6082.7010409@digiware.nl> <901187C8-5FE5-4D10-878D-5156CEE47186@gmail.com> <569DF528.30006@digiware.nl> <01B8D296-45EF-4999-B00F-02889938868D@gmail.com> Cc: Adrian Chadd , "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <569E0AC0.20309@digiware.nl> Date: Tue, 19 Jan 2016 11:06:56 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <01B8D296-45EF-4999-B00F-02889938868D@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 10:07:21 -0000 On 19-1-2016 10:59, Stanislav Galabov wrote: > >> On Jan 19, 2016, at 10:34, Willem Jan Withagen wrote: >> >> On 19-1-2016 03:54, Stanislav Galabov wrote: >>> ifconfig rt0 promisc >> >> That does increase the speed dramatically.... >> Where it was 25kBps before, it is now at a steady > 500 kBps. >> >> --WjW > > Hi Willem, > > Thanks for the feedback. > > This should now be fixed in my git branch. I am now able to sustain ~3MB/s doing an scp from/to the board. I was downloading the ports with portsnap. But if I find some more time I'll hookup some more indicative tests after upgrading. Do you have ideas on how to get the second network port active? And even further on: how to start accessing the onboard switch? I want to use my board mainly a home-core router, instead of my P4-i386 power burner. :) SO I hope that the target for networking is going to be more than 3MB/s. Otherwise I can not use my 1Gb fiber connection to the max. 8D --WjW From owner-freebsd-mips@freebsd.org Tue Jan 19 10:13:13 2016 Return-Path: Delivered-To: freebsd-mips@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 8F546A8846F for ; Tue, 19 Jan 2016 10:13:13 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (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 20D9D1A37 for ; Tue, 19 Jan 2016 10:13:13 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22e.google.com with SMTP id b14so162580076wmb.1 for ; Tue, 19 Jan 2016 02:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=c1fEJf4OAchBnY6jRrZaaM7RSN/mzS0MImCS1TSVrT0=; b=f5ok31FppXBL/ql6PYGc2/wx51cIb5fsyCX1xO90yGWZ8C22jABVXdJXOYGhT1s5b3 1IVPJZSaA6UhVUWoHmH/bGlszuJ9lSftzsUS17SGszJM7tRZYulb3K3nUIt3JZvXBVHG eTC9WQJhvenepAq+CI25Y0WejJI1Gyw+vDA7ouSiMp3rxi6nZhTAFrCkIID8/h7CPQxH gGtajBPB5gjwRUqgZXgUXOuN8TKF+AySuapqsi4zLFWqCPJBZQQYKMD2S3VTDdL11SEA lctyrynQKKGR53k+T27jt+TB88JN+FNlBIsefCNVfj1/oCwkf/MYUYiJgt18MidD9VQE 51pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=c1fEJf4OAchBnY6jRrZaaM7RSN/mzS0MImCS1TSVrT0=; b=V5S5GtQ9qiytw1yiD0PQTN/UYhCKQE9Ekz26AEyMr0cxL0pFhKTzC5dq5MO2nj5WRG ruqTsFbSTkrAXeqMy4z5fhAQJ9svmSVe/+P4HuZ19npZV+C1EioBWeNCbO74qhzHsRag IlSqShKlXShmF9xNUtgBA0xceL49fJjC/cTIQrGm8sZrOmgV5kh8bQKmlE5UJcD7b3gt NBaEao2OfFsS7rYPeRHG31Abyjo0NLYkdZVTESK8IQji2P1W95eefhpqcUD/nIb8JeNN ZMeotqxN5rbRRCtVFTtFriCJjrFdTDyF0ZYYPvmG9TZjyVvvLyDJ/Q/Cm5qvCBS0Tbo2 +9oA== X-Gm-Message-State: AG10YOQf6yE4AymA/AM1y1VX+VaM5xL2XaozrbD2OKT6mjsCabvr26V907tmL0A+DSs6Rg== X-Received: by 10.28.45.207 with SMTP id t198mr19145839wmt.32.1453198391259; Tue, 19 Jan 2016 02:13:11 -0800 (PST) Received: from macbookpro-894a.hsmt ([193.178.153.131]) by smtp.gmail.com with ESMTPSA id jm4sm27783187wjb.7.2016.01.19.02.13.10 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jan 2016 02:13:10 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: Ralink/MediaTek support progress From: Stanislav Galabov In-Reply-To: <569E0AC0.20309@digiware.nl> Date: Tue, 19 Jan 2016 12:13:11 +0200 Cc: Stanislav Galabov , Adrian Chadd , "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <55A9DB18-26AC-4029-B7A8-14993CB4E8F4@gmail.com> References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569CFE4C.6010101@digiware.nl> <65D72FB0-8AB9-4BF8-A7FE-56FAB0E1A0EA@gmail.com> <569D521D.1030704@digiware.nl> <569D6082.7010409@digiware.nl> <901187C8-5FE5-4D10-878D-5156CEE47186@gmail.com> <569DF528.30006@digiware.nl> <01B8D296-45EF-4999-B00F-02889938868D@gmail.com> <569E0AC0.20309@digiware.nl> To: Willem Jan Withagen X-Mailer: Apple Mail (2.3094) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 10:13:13 -0000 >=20 > I was downloading the ports with portsnap. > But if I find some more time I'll hookup some more indicative tests > after upgrading. >=20 > Do you have ideas on how to get the second network port active? > And even further on: how to start accessing the onboard switch? I do, but it=E2=80=99s going to take time. I am now focused on bringing = up what I initially promised for all Ralink/Mediatek chipsets, then = I=E2=80=99ll see about finding time to do the switch support for them. > I want to use my board mainly a home-core router, instead of my > P4-i386 power burner. :) SO I hope that the target for networking is > going to be more than 3MB/s. I certainly hope so too ;-) Again, the focus at the moment is to get = more chipsets supported, networking performance will have to wait a = little=E2=80=A6 Best wishes, Stanislav= From owner-freebsd-mips@freebsd.org Tue Jan 19 10:31:54 2016 Return-Path: Delivered-To: freebsd-mips@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 70538A88D73 for ; Tue, 19 Jan 2016 10:31:54 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (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 373851569 for ; Tue, 19 Jan 2016 10:31:53 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 02D8B1534E6; Tue, 19 Jan 2016 11:31:51 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sGzrMauerCk0; Tue, 19 Jan 2016 11:31:50 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:39:7fc5:2603:a0f0] (unknown [IPv6:2001:4cb8:3:1:39:7fc5:2603:a0f0]) by smtp.digiware.nl (Postfix) with ESMTP id 5B73B1534EC; Tue, 19 Jan 2016 11:31:50 +0100 (CET) Subject: Re: Ralink/MediaTek support progress To: Stanislav Galabov References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> Cc: "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <569E1094.5080903@digiware.nl> Date: Tue, 19 Jan 2016 11:31:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 10:31:54 -0000 On 18-1-2016 15:28, Stanislav Galabov wrote: > Can you please pull my local/sgalabov_mtk branch again and see if you > can use your SATA drive for rootfs now? While extracting ports with portsnap: /usr/ports/sysutils/usrinfo/ /usr/ports/sysutils/utcount/ /usr/ports/sysutils/vagrant/ panic: vfs_vmio_iodone: foff(0)/pindex(32) mismatch KDB: enter: panic [ thread pid 12 tid 100008 ] Stopped at kdb_enter+0x4c: lui at,0x803c db> If there is anything you'd like me to lookup, let me know. I'll leave it at the db> prompt for the time being. --WjW From owner-freebsd-mips@freebsd.org Tue Jan 19 16:09:04 2016 Return-Path: Delivered-To: freebsd-mips@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 7A464A88923 for ; Tue, 19 Jan 2016 16:09:04 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::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 43849131C for ; Tue, 19 Jan 2016 16:09:04 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x22d.google.com with SMTP id 77so554113052ioc.2 for ; Tue, 19 Jan 2016 08:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pcma7xbFAoXh99+2YTlLZjwqGY2teeT06a6mGCaXxjU=; b=vKAoDckEUouGmZd0yzlMRk0fJ62hR2ELXkPwNnois8ne7WSIlBvE9IQLlryzXN+kKH /iU6KSzIU8M2d12E7I0MWvLQ+km/vNXkHuMGwvVE2EYs11iha01FGjwFSosCsG9ZRL8N YUi/y/KgDuP+P3Wm1Rcv0b39oq/ugK1AzMZeg1LQM7K4HXTrsuDBH+Jdp2Vw77WS4f9i JAjiTL3DSHSmXwmL1444IqDv1tdnOE7NE/7UwRfzDTsSWUjGvNOLsFN6welMh1z4pYZc 0M//PoyQQPyf/t80eNzaFioCiHoOLxpOtZgHOeM4g/6hv9i721ta5y1Q3x/9dD+yqx1W 8Y1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=pcma7xbFAoXh99+2YTlLZjwqGY2teeT06a6mGCaXxjU=; b=aF1Q8tmZBPqjGLXkpl4zRAG9A/K5Dkl/cIrQzcxHsgeYpJ9Ne58R+chogh2dDnH4WA 1sJZIhnmkQe6+MofJUpu63Kk0cH7wljNbm7O8iYcyWCeTTA1tH1WUYQmJSYLwz9p97k+ 9+6+d4rry5GaHI3iLoE86eg2zSrJISf/gthK8Qtgkn1rPppItDhYgx1oPmyv0RkyfpTs hiOgwKWXyas0vKMEkLM02QILj3TrHCUvkF5Db5l1AtAz70JPpFggKHwqi29XIn0yZa2c jYqYJPPhIWy6peHMXpR5tHxWOVQs8dsuDgVcIOMZwmP2Yy4ssohAMxw2UsrxiTwwUY21 TeUQ== X-Gm-Message-State: ALoCoQlkoKNOTCkVAS+12gle1/TT6p9vTqwDjkLHLfmTfHpqn3JtyPpAok+83EsCn/DVFsmBGR3oOhj24Vjd6+f45fMzT7mNNg== MIME-Version: 1.0 X-Received: by 10.107.11.162 with SMTP id 34mr25924509iol.165.1453219743742; Tue, 19 Jan 2016 08:09:03 -0800 (PST) Received: by 10.36.121.16 with HTTP; Tue, 19 Jan 2016 08:09:03 -0800 (PST) In-Reply-To: <569E1094.5080903@digiware.nl> References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> <569BD676.9040506@digiware.nl> <569E1094.5080903@digiware.nl> Date: Tue, 19 Jan 2016 08:09:03 -0800 Message-ID: Subject: Re: Ralink/MediaTek support progress From: Adrian Chadd To: Willem Jan Withagen Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 16:09:04 -0000 hiya, I'll do the switch support once we land more of the basic support into -HEAD. -a From owner-freebsd-mips@freebsd.org Fri Jan 22 03:35:11 2016 Return-Path: Delivered-To: freebsd-mips@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 66A52A8C387; Fri, 22 Jan 2016 03:35:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (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 2F75E117B; Fri, 22 Jan 2016 03:35:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x230.google.com with SMTP id h5so46199282igh.0; Thu, 21 Jan 2016 19:35:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=WAvfeMqM564nwQImxPAjRPmKeQfCC2KGybK0YExOaYI=; b=e0VvUK3n7LgYohVAeaIxr8MlncQDada3JNZX7UbOoq4GgHjpkMICh8BoT2IYOqmrIG XvSHGXJ/S2dH5EpdZBLLS6FPofHR0ukamnuC6oXLiGWQBrSCKqY1RmHdZU6jOCTb3Ubx xFTH7sOK1ZaogQ1Y0bStlOkQl+1UJWXYA9aICYWYP+DB44dd5tuP1Ap5copBiDPMTrDp qnbvvHDuX3vfYHBTfq8UF5OZg8dfj86m466227FUTi2j2VhH4kbSntYTszflbOjzsPoi BPgGZcwixBNPSXnDoal9Py3sykxiUJCaycDzrlMgiAzulydoqOYNZNCqQsOokfMwxRhu FpMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=WAvfeMqM564nwQImxPAjRPmKeQfCC2KGybK0YExOaYI=; b=nAvwcn1QWDpwBYZ5oMvoIScDZHVm4bcSHRN8eTvmGXMWYtIIEW8Mj1PKyg6fyAzD+5 96KRUe9sQUB2Ms3qUHDH4UiOW3zN4qlM2J9U+V4IFFxGhvY11AhmuukqPqa6eXeHo6au uSOrlhpf0emSdlyAr1w0WSwaGb9Cimsc4rruJQep++fseGRgt1ScRu3Qebo93MLOfiFc 8Eol0wiLhUQyAqIFYmWEklS8hfBaiKosCBkxtwOc4IYLr+DqG9crExdDE+H36hh83btt lWfYApWW21aonODNp+CpQrotijEMa77e6FP7tPcUcdCHwo2yL2yBsf4tMHT5HpC5JBuC n3lw== X-Gm-Message-State: AG10YOReGmKLpteKEFCp3O/L7jn0P1UJx+4bpqQqhWmkdRRv2SD3XjpUe5+6YXwnCcAV+qukIdQuZdjm53TTfA== MIME-Version: 1.0 X-Received: by 10.50.122.100 with SMTP id lr4mr1250847igb.37.1453433710638; Thu, 21 Jan 2016 19:35:10 -0800 (PST) Received: by 10.36.121.16 with HTTP; Thu, 21 Jan 2016 19:35:10 -0800 (PST) In-Reply-To: <2AB9D6E1-BFF8-4EEE-B366-C980B72C4779@gmail.com> References: <2AB9D6E1-BFF8-4EEE-B366-C980B72C4779@gmail.com> Date: Thu, 21 Jan 2016 19:35:10 -0800 Message-ID: Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c From: Adrian Chadd To: Stanislav Galabov Cc: Warner Losh , "freebsd-arm@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2016 03:35:11 -0000 On 18 January 2016 at 06:49, Stanislav Galabov wrote: > Hi Warner, > > I was thinking resets could help in general, not specifically in the case= of trying to implement a generic ohci_fdt driver. > > As I already mentioned to you off-list (and in order for this message to = possibly make some more sense), I saw that Linux makes use of the =E2=80=98= resets=E2=80=99 property and looked at the documentation for it: > https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bi= ndings/reset/reset.txt > > For example, with the work I am currently doing on Ralink/Mediatek suppor= t, I have over 10 different chips in the same family, that have very simila= r peripheral blocks, but their clocks and resets are controlled via differe= nt bits in one of the SysCtl registers (the register itself is at the same = offset within the SysCtl block of each chip). So I may have chip X which ha= s its USB (for example) reset controlled by bit 10 and chip Y with USB rese= t controlled by bit 12. > > So being able to write something like: > resets =3D <&sysctl 10>; > or > resets =3D <&sysctl 11>; > > in my dts/dtsi files helps me immensely, instead of having to check what = chip I am running on and based on that use a different register layout=E2= =80=A6 > Then, if I wanted to (de)assert reset for a peripheral block that has thi= s property defined I=E2=80=99d just do fdt_reset_(de)assert_all(dev), where= dev is the device_t for the peripheral in question. This would (de)assert = all reset pins associated with the peripheral. > > The same is the case for clock control (gating) in the Ralink/Mediatek So= Cs and this is the main reason I used fdt_clock that is already in sys/dev/= fdt and then thought about implementing the fdt_reset based on it. > > I hope this clarifies a bit my reason for submitting the fdt_reset patch. This seems fine to me. Hm. Ian? Any comments? -a > Best wishes > Stanislav > >> On Jan 18, 2016, at 02:04, Warner Losh wrote: >> >> I don't see how resets help. Maybe I missed where it was documented, cou= ld you send that to me? >> >> Even with that, it seems that a generic ohci_fdt driver isn't possible. >> >> Warner >> >> On Thu, Jan 14, 2016 at 2:01 AM, Stanislav Galabov > wrote: >> Hi all, >> >> First off, sorry for the cross-post, I wasn=E2=80=99t very sure where th= is should go=E2=80=A6 >> >> I=E2=80=99ve created 3 PRs, which enable some functionality that my work= on Ralink/Mediatek SoCs would benefit from. >> >> 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 >> - This enables geom_flashmap and fdt_slicer support for SPI flash chips = supported by the mx25l driver (sys/dev/flash/mx25l.c) >> >> 2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228 >> - This adds support for FDT =E2=80=98resets=3D=E2=80=99 property in much= the same way as ian@=E2=80=99s sys/dev/fdt/fdt_clock* supports FDT =E2=80= =98clocks=3D=E2=80=98 property. In fact this work is basically a modified v= ersion of fdt_clock* :-) >> >> 3. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229 >> - This simply moves the at91 specific sys/dev/usb/controller/ohci_fdt.c = to sys/dev/usb/controller/at91ohci_fdt.c (and changes the filename in sys/a= rm/at91/files.at91 as well). The current naming is misleading IMHO and also= , I have some (vague-ish) plans to see if I can implement generic ohci_fdt = and ehci_fdt based on dwc_otg_fdt, so that systems with standard ehci/ohci = controllers can reuse these. >> >> Patches are attached to the PRs. >> >> I would appreciate any feedback on the PRs and would also appreciate it = if someone could commit these if the proposed changes are appropriate. >> >> Best wishes, >> Stanislav >> _______________________________________________ >> 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" From owner-freebsd-mips@freebsd.org Fri Jan 22 04:43:33 2016 Return-Path: Delivered-To: freebsd-mips@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 5CDABA8DA23 for ; Fri, 22 Jan 2016 04:43:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qg0-x236.google.com (mail-qg0-x236.google.com [IPv6:2607:f8b0:400d:c04::236]) (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 22E5E1D84 for ; Fri, 22 Jan 2016 04:43:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qg0-x236.google.com with SMTP id e32so49791870qgf.3 for ; Thu, 21 Jan 2016 20:43:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=VX2RTLm3uhEiTAhq4mI+RnmSZ7l6izerhrlBLAM6QpA=; b=PNqO8ZQ0fCWbtXDOkQSZi3eVf8IU9OSxdSC8L7e7OJL/fgXY6Z81ZYitP0yJ7hGAkr /wXMY+s5f2B1a7izTxbnMsxzDUwgN/5c5cGYeZGl5VBjIdxWUCAQcS5AfMFGQ3o0Af54 WF2CtrH2hFjdIfmSFYrb15GfMfIu8hMXEPf8AnOGJet4dyaoZIW65qLllyVH9C7X1Ey7 g2WEXk6oPNUMun7MYUeP0ZEbU2VrWNHAzrBuIaRId6hYJ1ang4ag8mnGWZWMU3Vi7G32 NRDN1ExClBoD6GJSh6lAaV4QcLtbqSn7i/hNTH3KcZbhIOirR0aRg7Wj9NB3ENKt4sPw plpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=VX2RTLm3uhEiTAhq4mI+RnmSZ7l6izerhrlBLAM6QpA=; b=N0yFWkG6N0xeUpO6SaNCbB1+kNT0EXHVzGmkTRvJz+fh60EzxCEKCAlHWPNKmoiLD7 RKjdrqp7BcNfdr3P4IBAheBCbEyNCeFvUFJBeVrx+7UHubeXOzbOHvMQR41JOUfZ6Fyb xsKOZq+QOQuV6FizXOLsZUgHIJzy3/OsO8j6KaX6+XspV5timEuf3U4Ak2tpGKiyFePl cIBNeXDfrHwC5kLLqgVDtUBBXOAF65kyKKHWacH6Zz7e/bsx2zbpYMJdi/F1Svt6xOVI 3XcYf4sP5GM8GM+Gs+r15R3f9tqYtc4snIkOzoX5xbAvC05PGQfFfNUZbvJYWNXWhDEA eolQ== X-Gm-Message-State: AG10YORAzCyecWH09m1FbVfJ1TwDI3XH0Xxrd6JU393RNuMF58oDkW4sbbgyQbS78lHKb6sYWS5hK+5hPIpIdQ== MIME-Version: 1.0 X-Received: by 10.140.255.8 with SMTP id a8mr1281899qhd.20.1453437812119; Thu, 21 Jan 2016 20:43:32 -0800 (PST) Sender: wlosh@bsdimp.com Received: by 10.140.30.166 with HTTP; Thu, 21 Jan 2016 20:43:32 -0800 (PST) X-Originating-IP: [2601:280:4900:3700:8400:bf66:d6e:dfb1] In-Reply-To: References: <2AB9D6E1-BFF8-4EEE-B366-C980B72C4779@gmail.com> Date: Thu, 21 Jan 2016 21:43:32 -0700 X-Google-Sender-Auth: CfYMvnogoZGSwqm1UEXE6tVYgS4 Message-ID: Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c From: Warner Losh To: Adrian Chadd Cc: Stanislav Galabov , "freebsd-arm@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2016 04:43:33 -0000 On Thu, Jan 21, 2016 at 8:35 PM, Adrian Chadd wrote: > On 18 January 2016 at 06:49, Stanislav Galabov wrote= : > > Hi Warner, > > > > I was thinking resets could help in general, not specifically in the > case of trying to implement a generic ohci_fdt driver. > > > > As I already mentioned to you off-list (and in order for this message t= o > possibly make some more sense), I saw that Linux makes use of the =E2=80= =98resets=E2=80=99 > property and looked at the documentation for it: > > > https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bi= ndings/reset/reset.txt > < > https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bi= ndings/reset/reset.txt > > > > > > For example, with the work I am currently doing on Ralink/Mediatek > support, I have over 10 different chips in the same family, that have ver= y > similar peripheral blocks, but their clocks and resets are controlled via > different bits in one of the SysCtl registers (the register itself is at > the same offset within the SysCtl block of each chip). So I may have chip= X > which has its USB (for example) reset controlled by bit 10 and chip Y wit= h > USB reset controlled by bit 12. > > > > So being able to write something like: > > resets =3D <&sysctl 10>; > > or > > resets =3D <&sysctl 11>; > > > > in my dts/dtsi files helps me immensely, instead of having to check wha= t > chip I am running on and based on that use a different register layout=E2= =80=A6 > > Then, if I wanted to (de)assert reset for a peripheral block that has > this property defined I=E2=80=99d just do fdt_reset_(de)assert_all(dev), = where dev > is the device_t for the peripheral in question. This would (de)assert all > reset pins associated with the peripheral. > > > > The same is the case for clock control (gating) in the Ralink/Mediatek > SoCs and this is the main reason I used fdt_clock that is already in > sys/dev/fdt and then thought about implementing the fdt_reset based on it= . > > > > I hope this clarifies a bit my reason for submitting the fdt_reset patc= h. > > This seems fine to me. Hm. Ian? Any comments? > I want to check on a few things before we head down this path. I've been traveling so haven't had a chance to look through it to see if Atmel uses this, and who else does... Warner > -a > > > Best wishes > > Stanislav > > > >> On Jan 18, 2016, at 02:04, Warner Losh wrote: > >> > >> I don't see how resets help. Maybe I missed where it was documented, > could you send that to me? > >> > >> Even with that, it seems that a generic ohci_fdt driver isn't possible= . > >> > >> Warner > >> > >> On Thu, Jan 14, 2016 at 2:01 AM, Stanislav Galabov > wrote: > >> Hi all, > >> > >> First off, sorry for the cross-post, I wasn=E2=80=99t very sure where = this > should go=E2=80=A6 > >> > >> I=E2=80=99ve created 3 PRs, which enable some functionality that my wo= rk on > Ralink/Mediatek SoCs would benefit from. > >> > >> 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 < > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227> > >> - This enables geom_flashmap and fdt_slicer support for SPI flash chip= s > supported by the mx25l driver (sys/dev/flash/mx25l.c) > >> > >> 2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228 < > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228> > >> - This adds support for FDT =E2=80=98resets=3D=E2=80=99 property in mu= ch the same way as > ian@=E2=80=99s sys/dev/fdt/fdt_clock* supports FDT =E2=80=98clocks=3D=E2= =80=98 property. In fact > this work is basically a modified version of fdt_clock* :-) > >> > >> 3. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229 < > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229> > >> - This simply moves the at91 specific sys/dev/usb/controller/ohci_fdt.= c > to sys/dev/usb/controller/at91ohci_fdt.c (and changes the filename in > sys/arm/at91/files.at91 as well). The current naming is misleading IMHO a= nd > also, I have some (vague-ish) plans to see if I can implement generic > ohci_fdt and ehci_fdt based on dwc_otg_fdt, so that systems with standard > ehci/ohci controllers can reuse these. > >> > >> Patches are attached to the PRs. > >> > >> I would appreciate any feedback on the PRs and would also appreciate i= t > if someone could commit these if the proposed changes are appropriate. > >> > >> Best wishes, > >> Stanislav > >> _______________________________________________ > >> freebsd-arm@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm < > 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" > From owner-freebsd-mips@freebsd.org Fri Jan 22 05:35:55 2016 Return-Path: Delivered-To: freebsd-mips@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 B9F79A8CD79; Fri, 22 Jan 2016 05:35:55 +0000 (UTC) (envelope-from mmel@freebsd.org) Received: from mail.miracle.cz (mail.miracle.cz [193.84.128.19]) by mx1.freebsd.org (Postfix) with ESMTP id 8208D12F1; Fri, 22 Jan 2016 05:35:55 +0000 (UTC) (envelope-from mmel@freebsd.org) Received: from [193.84.128.50] (meloun.ad.miracle.cz [193.84.128.50]) by mail.miracle.cz (Postfix) with ESMTPSA id 5F5EF3AC9A; Fri, 22 Jan 2016 06:35:54 +0100 (CET) Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c To: freebsd-arm@freebsd.org, freebsd-mips@freebsd.org References: <2AB9D6E1-BFF8-4EEE-B366-C980B72C4779@gmail.com> Cc: "freebsd-mips@freebsd.org" From: Michal Meloun X-Enigmail-Draft-Status: N0020 Organization: freebsd.org Message-ID: <56A1BFBB.8050204@freebsd.org> Date: Fri, 22 Jan 2016 06:35:55 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.miracle.cz); Fri, 22 Jan 2016 06:35:54 +0100 (CET) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2016 05:35:55 -0000 Dne 22.01.2016 v 5:43 Warner Losh napsal(a): > On Thu, Jan 21, 2016 at 8:35 PM, Adrian Chadd > wrote: > >> On 18 January 2016 at 06:49, Stanislav Galabov wrote: >>> Hi Warner, >>> >>> I was thinking resets could help in general, not specifically in the >> case of trying to implement a generic ohci_fdt driver. >>> >>> As I already mentioned to you off-list (and in order for this message to >> possibly make some more sense), I saw that Linux makes use of the ‘resets’ >> property and looked at the documentation for it: >>> >> https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/reset/reset.txt >> < >> https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/reset/reset.txt >>> >>> >>> For example, with the work I am currently doing on Ralink/Mediatek >> support, I have over 10 different chips in the same family, that have very >> similar peripheral blocks, but their clocks and resets are controlled via >> different bits in one of the SysCtl registers (the register itself is at >> the same offset within the SysCtl block of each chip). So I may have chip X >> which has its USB (for example) reset controlled by bit 10 and chip Y with >> USB reset controlled by bit 12. >>> >>> So being able to write something like: >>> resets = <&sysctl 10>; >>> or >>> resets = <&sysctl 11>; >>> >>> in my dts/dtsi files helps me immensely, instead of having to check what >> chip I am running on and based on that use a different register layout… >>> Then, if I wanted to (de)assert reset for a peripheral block that has >> this property defined I’d just do fdt_reset_(de)assert_all(dev), where dev >> is the device_t for the peripheral in question. This would (de)assert all >> reset pins associated with the peripheral. >>> >>> The same is the case for clock control (gating) in the Ralink/Mediatek >> SoCs and this is the main reason I used fdt_clock that is already in >> sys/dev/fdt and then thought about implementing the fdt_reset based on it. >>> >>> I hope this clarifies a bit my reason for submitting the fdt_reset patch. >> >> This seems fine to me. Hm. Ian? Any comments? >> > > I want to check on a few things before we head down this path. I've been > traveling so haven't had a chance to look through it to see if Atmel uses > this, and who else does... > > Warner > > I think that i have more complete implementation of reset framework ready to commit. Just waiting for mentor approval. Please see https://github.com/strejda/tegra/tree/master/sys/dev/reset Michal >> -a >> >>> Best wishes >>> Stanislav >>> >>>> On Jan 18, 2016, at 02:04, Warner Losh wrote: >>>> >>>> I don't see how resets help. Maybe I missed where it was documented, >> could you send that to me? >>>> >>>> Even with that, it seems that a generic ohci_fdt driver isn't possible. >>>> >>>> Warner >>>> >>>> On Thu, Jan 14, 2016 at 2:01 AM, Stanislav Galabov > > wrote: >>>> Hi all, >>>> >>>> First off, sorry for the cross-post, I wasn’t very sure where this >> should go… >>>> >>>> I’ve created 3 PRs, which enable some functionality that my work on >> Ralink/Mediatek SoCs would benefit from. >>>> >>>> 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206227 < >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206227> >>>> - This enables geom_flashmap and fdt_slicer support for SPI flash chips >> supported by the mx25l driver (sys/dev/flash/mx25l.c) >>>> >>>> 2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206228 < >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206228> >>>> - This adds support for FDT ‘resets=’ property in much the same way as >> ian@’s sys/dev/fdt/fdt_clock* supports FDT ‘clocks=‘ property. In fact >> this work is basically a modified version of fdt_clock* :-) >>>> >>>> 3. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206229 < >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206229> >>>> - This simply moves the at91 specific sys/dev/usb/controller/ohci_fdt.c >> to sys/dev/usb/controller/at91ohci_fdt.c (and changes the filename in >> sys/arm/at91/files.at91 as well). The current naming is misleading IMHO and >> also, I have some (vague-ish) plans to see if I can implement generic >> ohci_fdt and ehci_fdt based on dwc_otg_fdt, so that systems with standard >> ehci/ohci controllers can reuse these. >>>> >>>> Patches are attached to the PRs. >>>> >>>> I would appreciate any feedback on the PRs and would also appreciate it >> if someone could commit these if the proposed changes are appropriate. >>>> >>>> Best wishes, >>>> Stanislav >>>> _______________________________________________ >>>> freebsd-arm@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm < >> 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" >> > _______________________________________________ > 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" > From owner-freebsd-mips@freebsd.org Fri Jan 22 20:09:22 2016 Return-Path: Delivered-To: freebsd-mips@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 5D588A8D1A6; Fri, 22 Jan 2016 20:09:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (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 311401242; Fri, 22 Jan 2016 20:09:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x236.google.com with SMTP id t15so157129134igr.0; Fri, 22 Jan 2016 12:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=o4lyxYuaa6GRDAsC6DK4I7CDhR7HIPGYd+UyMjMfcK8=; b=zPsN0Jsvg776LkZwd88zlexjAF/jC5wX9XqD4ec1lQ+8fRMY6+rqCW+aGVTQ+DvgH5 uQyfSZHFY/RBpdfX9I5I+MZYXGrfkkb/Lzj5FLlxw+gN08HBIuR5okPnpzskUYUVyl4c alFQdWTWfN6+EqTRfGoHOSQpJSwRkygMs51M4oS3GneohGAAKzp5/YtcvlJnOr4DkqfP 4xaZ3juW3S5M3FUSk7CRJJr3EW3QwlXxqDjwcDtT5UCfX/3WLyqzxjqtT/Fqb5IM+eDv r072NsKQ0Wz4pPuUtuPUAtxmkjWUSBokI1Asw0qbo8uXgIbKPAakfOL92W28YtBB1DRh fjUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=o4lyxYuaa6GRDAsC6DK4I7CDhR7HIPGYd+UyMjMfcK8=; b=DTDiadMhYaQJhGNz7NLS6GcCJNxDa9H/74JfkaenFYaq3BbOoey/Oo/aK54N/B8nL2 NJ2dOC7Jd58RyhIdDnoXW612i8CrJBPi+KkI+qMOGmC5EIR5GGgOU/MoAbnLp7vt61s7 VqTMizwAmPage/ylNPgT5lIEFuqRBVOOQ6cV4ZiYXmc128tVREPk2b92Nsc+HF7QBT0X 6ASQCOY0D8StRPoCJrnADY8FiyqGSJWvyuuRjCSSV/TiYwCgKsRhiIdQqmgCfdk3s5Ir TtRhtwsQRenzowJ+p2bld7LM9qLca8R4H0uSCB9mpH/2m3r6LAWDuSPEYtaHwXA5uyDt WuLw== X-Gm-Message-State: AG10YOSabcMAphDHdKJs/9vRVsoQtQ8oQ9cu0fbOUxEMrOWeCCTpc/GaqJ6ZQAhp183ps/imxA2oIjkO/AnEGg== MIME-Version: 1.0 X-Received: by 10.50.150.36 with SMTP id uf4mr5089842igb.61.1453493361403; Fri, 22 Jan 2016 12:09:21 -0800 (PST) Received: by 10.36.121.16 with HTTP; Fri, 22 Jan 2016 12:09:21 -0800 (PST) In-Reply-To: <56A1BFBB.8050204@freebsd.org> References: <2AB9D6E1-BFF8-4EEE-B366-C980B72C4779@gmail.com> <56A1BFBB.8050204@freebsd.org> Date: Fri, 22 Jan 2016 12:09:21 -0800 Message-ID: Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c From: Adrian Chadd To: Michal Meloun Cc: "freebsd-arm@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2016 20:09:22 -0000 Congratulations! Kib freed you from needing to check with your mentor before committing! :) -a From owner-freebsd-mips@freebsd.org Fri Jan 22 23:13:42 2016 Return-Path: Delivered-To: freebsd-mips@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 84637A8D1CE; Fri, 22 Jan 2016 23:13:42 +0000 (UTC) (envelope-from stevek@juniper.net) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0144.outbound.protection.outlook.com [157.56.111.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E73BE199E; Fri, 22 Jan 2016 23:13:41 +0000 (UTC) (envelope-from stevek@juniper.net) Received: from BY2PR05CA036.namprd05.prod.outlook.com (10.141.250.26) by BL2PR05MB051.namprd05.prod.outlook.com (10.255.228.151) with Microsoft SMTP Server (TLS) id 15.1.365.19; Fri, 22 Jan 2016 22:39:12 +0000 Received: from BN1AFFO11OLC002.protection.gbl (2a01:111:f400:7c10::126) by BY2PR05CA036.outlook.office365.com (2a01:111:e400:2c5f::26) with Microsoft SMTP Server (TLS) id 15.1.390.13 via Frontend Transport; Fri, 22 Jan 2016 22:39:12 +0000 Authentication-Results: spf=softfail (sender IP is 66.129.239.19) smtp.mailfrom=juniper.net; freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=juniper.net; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.19 as permitted sender) Received: from p-emfe01b-sac.jnpr.net (66.129.239.19) by BN1AFFO11OLC002.mail.protection.outlook.com (10.58.53.73) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Fri, 22 Jan 2016 22:39:12 +0000 Received: from stevek-ubuntu.jnpr.net (172.25.4.171) by p-emfe01b-sac.jnpr.net (172.24.192.21) with Microsoft SMTP Server id 14.3.123.3; Fri, 22 Jan 2016 14:39:11 -0800 Date: Fri, 22 Jan 2016 17:39:06 -0500 From: Steve Kiernan To: Stanislav Galabov CC: , Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c Message-ID: <20160122173906.147bb7c2@stevek-ubuntu.jnpr.net> In-Reply-To: References: Organization: Juniper Networks Inc. X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC002; 1:DVUj8XKBCTwF8HUZfMW8Sm03OCiERZZ7Jc69VOmKetRpPqwpnDJDrItsMy+yyKqygL6jGV/UqvFOPwWn96LVgVXasYpt4PFQZ+h99pq5Nv+jGNyF/jNUBi6jzQkwWj8ZAtGm50aVujJ7kftdLgSNNxHQAXY1keYiuEzi3ivAsUlkcZcLReHvbgNB6B2hTaV0U4n3uE4mz8LANB1EtbNogY0aOTnmjQj6xRI/AtRPTxJqBd08KSU9r1J48k/j3MTDajE3TmZajPkE03Vx40VqIs4qBIi7VKt9xemOSHvJh6v6tdPExhV4imozRGcZJSn05m2Gb/oHfSA2LgxbyAmZ53nvvg7joAGBHnPyNcoIMBs4FEru8L8ojF/8loP5yP2cUO85reOtF83p2h0fMEhkhd25/AP0x9J21KsFOL0vBcs= X-Forefront-Antispam-Report: CIP:66.129.239.19; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(24454002)(199003)(53754006)(189002)(1076002)(50226001)(586003)(1096002)(6806005)(2950100001)(2906002)(4326007)(1220700001)(5003600100002)(77096005)(110136002)(15975445007)(189998001)(19580395003)(19580405001)(11100500001)(92566002)(53416004)(106466001)(69596002)(97736004)(105596002)(1411001)(47776003)(5001960100002)(81156007)(76176999)(33646002)(50986999)(50466002)(23676002)(86362001)(5820100001)(87936001)(5008740100001)(104016004)(39210200001); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR05MB051; H:p-emfe01b-sac.jnpr.net; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2PR05MB051; 2:T/09fNEyg2sNyt7y1ejBMSEMDEmr/QO/HxX/OfFp4DOcQ0IRAH+CXZ5AhCeQ7Y2NdQlKKUGgDlObTdbTO97hHdR5pWROQ4guJQTCyOg7ntEM2P0aWch88YiMfPLYw6yRSiilcWvDgp7HL89urvx6fw==; 3:2XOqRFq3i000TP50cNhkNQiDgvk36NbwkVpdeXKjqoqk1NPMiKVboA5SqYv0ZaHO5bIPR+l2sYL7F+h/jmsjoIqasyu8+0aQ3yRpNHfTzEYfX6tde9Jh+YYLuNLECz2a779hH3nuOW9FtbrmIczfttiz4xXHMTboItiAX9eXvNrxZytGOdj8zhAtJVfqpLfYlBcDdCSi505KahgMXEbF7C2vGED0oMHo35hVaUka2Ig=; 25:dWjv7PQbsgG30Exdu/GqodD+EblTQ2PZgwpi9OKKddhGRPYa9mgGsIoyAu2CCDgDAbjCt2TAC2ZaItJtlbjWu43XV+2NdDP9nx8qeXYelL8TjAxpIuTLe/CC0qGOy3yCIEgLkYXd7yDMYjTmZTBq/8fQgyFcJ1VQYcL2bkHVV9Qldr+Zcs/9iRO3JwoWSqdvdjCIx7W7JVKmj7ECBEJaTTgKQW+OP4fNg7CrcxnH56UTV52oXUd85rZJHFxTrbmq X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR05MB051; X-MS-Office365-Filtering-Correlation-Id: ee434a07-5068-4ccb-c0d3-08d3237cd9ec X-Microsoft-Exchange-Diagnostics: 1; BL2PR05MB051; 20:exMZnafgih9yNC2zVBudi1Ou6MjJwVhz1csDcaaUACDwCsPoQ+1rZtKa7+I9nDKFQJ+tuySeYykMlgpacJ35gcFYayZwZeeMEzAlxYNpPj8B1yekIk5JI4vLGtaZON7YjGSpOTzCxO1qbGY3vEiRtE3Axsl0MCs7EqAOtMx3U/xYNXGJ1fnKq3I+kiSetvJVzC/BsbcdmRhiCIuoL1f2RO+OeYJ0/O2pOy6I8CPVz2l1djjFm28NCiaaBHOrz2xrOmQ6dfkAi8PDT4qSHwk2D5x9wfVxZX5H13cSLP2gm0pVXhcrKKKUsjMD06mO7T8ekVEePiRRX1k+4zGmIC4aRyCre+KEYS2lpI1R807iCc+85usfW9osrVJ57K6327RYMD/OQjxwLVuQq+dIVQNu6Wi05n318jPzvtFSgIS99Z2v6yyBDWPUu4dX12U4Gv6tUx8vPKcMRmuDL2nBMct7T7dP2/Ev8YSw8TvYaU6N+ShM446lnSo18A+uoizMcUcg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13023025)(520078)(13015025)(8121501046)(13024025)(13017025)(5005006)(3002001)(10201501046); SRVR:BL2PR05MB051; BCL:0; PCL:0; RULEID:; SRVR:BL2PR05MB051; X-Microsoft-Exchange-Diagnostics: 1; BL2PR05MB051; 4:Sf7yoBo4eJ5y6dQLFg3+Kwc2/P0zFVyIagbSvqcps/Iwkeraa1aQOBL/d8X3g9Qc6cCooeX7G3dzj/tUARrJvr7qEZvHtSzRa/cti0rm2HWUdil5fjI5g0vdBvUvbdYIvpXliOIfQD34xlDZXfWayjI0rLUCDBYTBNQPe3g0hGimNaH8J3adjSvIEmFfXWTWw1Y7WEty36lLLvEH1rhyVr2Q+efxgXz7LVKGHyh18YWhEfB7KCF9YdJ4+Q/9w50S8pS5b1i1u9iBIXKPzX60dAGjt9uaTYa3s4WXsK0QALJo64FDPjHXHG/PFBmYXj/zRTrpZyIE9O7OB0I7XxcI8MZ9s5NDxJr8SpvwZt4vLU7o6psuQV8EruLpknhnA1UQGnK1wPCrNSZAUecooO0k+O8VNqYg/jscaZNI70xkONMIbg4CV0JqAPkq4/z0Lrrfe3Lu5oSRkrGvwST6aaouWZe2rfriZ6RZOFqoLNqiHVk= X-Forefront-PRVS: 08296C9B35 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTDJQUjA1TUIwNTE7MjM6RXphQmNsSHpNRkkzYzVCNlpGelVzb2pTcDVD?= =?utf-8?B?SEs4b25qZTdVd3N4NWpWZllxd1V2WkpCY0lPLys4U0xrcnBqTlpIWDJUNUNh?= =?utf-8?B?R3ZMNm1GalBYeDlQNnJaTWhyd0Qwcm4zbjNuMzZFQTBReklUZTYyWDNEdUpl?= =?utf-8?B?cU9QNFdJL21QZEpLLzJoeHI4YVB2R3F6eGpDL051VnUzaW4vc09Nc1ltRGZR?= =?utf-8?B?enVnS1VxUThIQlhBY3ZxM2pPdnR4NlBRK3cwUTNTU1cwREdFcGFVbTBEcWdG?= =?utf-8?B?ZGtXTzZjcGRlbGtxMWEwMWE1d1VNL256REN5Q2paN0YrTHdPaC9FVnlTMElW?= =?utf-8?B?REZsbkxlb0h5empxenEwdGNQaS9pd2Nad0ZUaGRQS1FxWHFSb0N6WnZqQlI5?= =?utf-8?B?d2E1RHFpdHhHUUhZNXdxb1M3bm5YSkZLY0tZYUlPbFhVMURlSmpKVHF1OWp5?= =?utf-8?B?TE5FVEkzZVA4dXpkSytXQ1h6cit2YkljRTJpK1JtOUFvRGxzL0RQcytzZHl2?= =?utf-8?B?NUdWTEc5YkpnOWJyZ1NITlBZVzNvbjdwVFViNWdSR3FCaTBobVB3UktBRHUr?= =?utf-8?B?OGw5WjFpQ0xVYWlNbytoRWdXT3h0YmlncmIyWVdnSWt6WG5pcnU0QjRSOE9y?= =?utf-8?B?K1NOd1ViQjFTOGdWQWNJdmxQdjE0L1BKRW42TElSMWRET3RES05sN3dFRGYx?= =?utf-8?B?ZzMybHNoRlIzdCtKbXZJTnZJVlhORUx0MjJQOWVNbW1XbFEzd1VQR2dOWVVu?= =?utf-8?B?bk05aWJ1OEJVSlJFR0hHeERaRWY4NEFWa2JlNXNPYkNwYmlkczJDWFdreXJJ?= =?utf-8?B?ZUxReTBOSTlPLzcrZTJyQ2tyZVFWcy9EQUZJbGlRQzRpZFpUSnVzaGN5VklL?= =?utf-8?B?Zzdna1g4VXJTMEJlTWhvSmlsVVVhWDJHaFBOMWFjb0hNNkhxbnprWVVsSHNY?= =?utf-8?B?clVJOVFHZFBXUWtzbDZPZHd6MWUzcXZuQmtQK2o1bFhBWkRSaUtuWWFtUURi?= =?utf-8?B?YU1YdnhLMHkzeWs1VFVUc0FPS1NIekR2bHpVdnM2dVNPQ1p6R0VkZ2VXUDZB?= =?utf-8?B?cEYrVXZkSFdhTWx6dEdWVDhBTkZyMjhtVWFXbjg0dHVQVDk3L0VUdVZsaWtT?= =?utf-8?B?T3BFK0xCQWU0M3ZYK2REd1Jsb1ZHQVQrTVhyb1d6MzNSK1Z3K3dLU0RrU2or?= =?utf-8?B?OCtwQzFzOUh5eGhYQ2pnMTMwMDhMZGtoQ3dJUGhYQ2pyaW5vajhFZVo1WG0w?= =?utf-8?B?VnRWbmhrajBoRkhYUjAxbVVjT1NFaVdyQmp6TUJCdERLZWhHeWdDRVJMSGZ5?= =?utf-8?B?OEhqMnNTYk1tYldPTDJSbkRCTTBsekwxdWF4NENUL0M1d0w4TnZuOXZjd1ph?= =?utf-8?B?R0d3dEJUZzIvd2w4VFFhckhXZ3MzcWdrZHBBb2d6K0dnNE4wWFFMN21xZi9F?= =?utf-8?B?d3V1WmZLRlZKSWt5SlA5eEh2WHFMUi9jWnI3V0NzMmlGdTNpM0F2V2NnYmhp?= =?utf-8?B?MnQvRFBhNENBclhtMjAxRDlCQ09VY3luRndoTUlTeGI4OVJLamQrdEsrTThJ?= =?utf-8?B?bW85d1RIbTdQR2p4U1VEM1FlQVJIZz09?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR05MB051; 5:u0PS01Wu8zba3hGIrNytJD90bIkQKPoDSPNvTLgf4y5Bpoxg2QlccShCDGf/7Si3M4WpjqhhLCNkVNdtwWd2VmE0if0X9GAMLabm9pKVGYe1DXb4ks3zyx7WbeHoneKMqIgSSuitL7CaPEcl8OVQRw==; 24:shrhv2nkSEFo1+vFjgnggnd13dM0Kil13kRXQsHH+f5guiWQwxhgUnAet4H3xtuNvTQ7Ps6mHse1FVcPTNilWPidQvs44uRaIehC0+cSqgg= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2016 22:39:12.4872 (UTC) X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.19]; Helo=[p-emfe01b-sac.jnpr.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR05MB051 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2016 23:13:42 -0000 On Thu, 14 Jan 2016 11:01:10 +0200 Stanislav Galabov wrote: > Hi all, >=20 > First off, sorry for the cross-post, I wasn=E2=80=99t very sure where thi= s should go=E2=80=A6 >=20 > I=E2=80=99ve created 3 PRs, which enable some functionality that my work = on Ralink/Mediatek SoCs would benefit from. >=20 > 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 > - This enables geom_flashmap and fdt_slicer support for SPI flash chips s= upported by the mx25l driver (sys/dev/flash/mx25l.c) I see this change was committed to head, but I don't see a corresponding ch= ange to sys/conf/files to ensure fdt_slicer.c and geom_flashmap.c get compi= led. I think you also need something like the following: Index: sys/conf/files =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/conf/files (revision 294541) +++ sys/conf/files (working copy) @@ -1419,7 +1419,7 @@ dev/fdt/fdt_common.c optional fdt dev/fdt/fdt_pinctrl.c optional fdt fdt_pinctrl dev/fdt/fdt_pinctrl_if.m optional fdt fdt_pinctrl -dev/fdt/fdt_slicer.c optional fdt cfi | fdt nand +dev/fdt/fdt_slicer.c optional fdt cfi | fdt nand | fdt mx25l dev/fdt/fdt_static_dtb.S optional fdt fdt_dtb_static \ dependency "$S/boot/fdt/dts/${MACHINE}/${FDT_DTS_FILE}" dev/fdt/simplebus.c optional fdt @@ -3010,7 +3010,7 @@ geom/geom_dump.c stfgeom_dumandard geom/geom_event.c standard geom/geom_fox.c optional geom_fox -geom/geom_flashmap.c optional fdt cfi | fdt nand +geom/geom_flashmap.c optional fdt cfi | fdt nand | fdt mx25l geom/geom_io.c standard geom/geom_kern.c standard geom/geom_map.c optional geom_map From owner-freebsd-mips@freebsd.org Sat Jan 23 01:51:56 2016 Return-Path: Delivered-To: freebsd-mips@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 33650A8D81A for ; Sat, 23 Jan 2016 01:51:56 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oi0-x22f.google.com (mail-oi0-x22f.google.com [IPv6:2607:f8b0:4003:c06::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 E66C81B61 for ; Sat, 23 Jan 2016 01:51:55 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by mail-oi0-x22f.google.com with SMTP id o124so58343182oia.3 for ; Fri, 22 Jan 2016 17:51:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to; bh=I1Bi5CkCYk0K87jJdyQOteQmr12KcfdPwq1aaRwrnpo=; b=OrrYQNaCVkBilJzvkqUI8B0xVMK3SrXZsaDZOeLWa1Nm548LMxtCryf4lyhEHuL2kp U5YMggZCvpU0py18KzRGuB0BSRu1oLd7yA0iRQzdRj8TXKn3Udz8wAWKb620jYdXzWtf vN1BPIJ3v8ef7LcddRqhjdM5JXSmJFsacTlITh4JUdyYfRyNCFhoN3zc2fEBppqdujhF WlGK7gpfjuywb+Q1jy6ddpBQ8b+Lf2FAFjy9A+QYDkVbCg1VS4ak9T7u9ibHd0IVGe3d LpPBhw/LH/dQpChF7qN89ST4u+tSjRc/dNzGcCIZ9Vym4A/C2U3V6ClXhdhbXzNBEHjc st9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=I1Bi5CkCYk0K87jJdyQOteQmr12KcfdPwq1aaRwrnpo=; b=YU3etYgbzGbrGEPL63T5NW7aTP/jD7DNgw1AosgGlcWSzBSZrvjVjzYor3OzuR5yVi IS2Cu1FhxcxiWyYhxzgzTHgKRqBLxBP2LfidqAAsljvA5aIf8kuEr1zIVc5IZ2vSrKP/ 0FkklMUAhRso5yUyLuvEKbKKuS5P77IG9VnLEheR6AnfsjuxJdIntzFh41PjfWP/KFer Xdutijzpb05Jx2k6cHSo6YVQRYf/K3onr2JVQm7+sAdgO5wu1UqG7YlmHjyAhi2PdVub e+YNsjOYXp3eUUb4NXjMnwOK/mS2N8aXdK9XuYTAg3O3i3IM5VEf8sfGlREKmV405xVI 7n2g== X-Gm-Message-State: AG10YOScy/Ai5fe5Mut3bCLdRnpBWDVE69gqiws2e2OiMSOGxNzrqTontniJ+7oVktqEBg== X-Received: by 10.202.80.201 with SMTP id e192mr4755570oib.14.1453513914924; Fri, 22 Jan 2016 17:51:54 -0800 (PST) Received: from ?IPv6:2601:280:4900:3700:8c4e:fe46:fde5:e44f? ([2601:280:4900:3700:8c4e:fe46:fde5:e44f]) by smtp.gmail.com with ESMTPSA id k1sm4669962obz.22.2016.01.22.17.51.53 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jan 2016 17:51:54 -0800 (PST) Sender: Warner Losh Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: multipart/signed; boundary="Apple-Mail=_24CDE167-DB4D-4F5F-ADFF-173724FA42B8"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5.2 From: Warner Losh In-Reply-To: <56A1BFBB.8050204@freebsd.org> Date: Fri, 22 Jan 2016 18:51:52 -0700 Cc: freebsd-arm@freebsd.org, freebsd-mips@freebsd.org Message-Id: <9175E4D1-85CD-482F-A867-E327966A22FC@bsdimp.com> References: <2AB9D6E1-BFF8-4EEE-B366-C980B72C4779@gmail.com> <56A1BFBB.8050204@freebsd.org> To: Michal Meloun X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 01:51:56 -0000 --Apple-Mail=_24CDE167-DB4D-4F5F-ADFF-173724FA42B8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 21, 2016, at 10:35 PM, Michal Meloun wrote: >=20 > Dne 22.01.2016 v 5:43 Warner Losh napsal(a): >> On Thu, Jan 21, 2016 at 8:35 PM, Adrian Chadd = >> wrote: >>=20 >>> On 18 January 2016 at 06:49, Stanislav Galabov = wrote: >>>> Hi Warner, >>>>=20 >>>> I was thinking resets could help in general, not specifically in = the >>> case of trying to implement a generic ohci_fdt driver. >>>>=20 >>>> As I already mentioned to you off-list (and in order for this = message to >>> possibly make some more sense), I saw that Linux makes use of the = =E2=80=98resets=E2=80=99 >>> property and looked at the documentation for it: >>>>=20 >>> = https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bin= dings/reset/reset.txt >>> < >>> = https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bin= dings/reset/reset.txt >>>>=20 >>>>=20 >>>> For example, with the work I am currently doing on Ralink/Mediatek >>> support, I have over 10 different chips in the same family, that = have very >>> similar peripheral blocks, but their clocks and resets are = controlled via >>> different bits in one of the SysCtl registers (the register itself = is at >>> the same offset within the SysCtl block of each chip). So I may have = chip X >>> which has its USB (for example) reset controlled by bit 10 and chip = Y with >>> USB reset controlled by bit 12. >>>>=20 >>>> So being able to write something like: >>>> resets =3D <&sysctl 10>; >>>> or >>>> resets =3D <&sysctl 11>; >>>>=20 >>>> in my dts/dtsi files helps me immensely, instead of having to check = what >>> chip I am running on and based on that use a different register = layout=E2=80=A6 >>>> Then, if I wanted to (de)assert reset for a peripheral block that = has >>> this property defined I=E2=80=99d just do = fdt_reset_(de)assert_all(dev), where dev >>> is the device_t for the peripheral in question. This would = (de)assert all >>> reset pins associated with the peripheral. >>>>=20 >>>> The same is the case for clock control (gating) in the = Ralink/Mediatek >>> SoCs and this is the main reason I used fdt_clock that is already in >>> sys/dev/fdt and then thought about implementing the fdt_reset based = on it. >>>>=20 >>>> I hope this clarifies a bit my reason for submitting the fdt_reset = patch. >>>=20 >>> This seems fine to me. Hm. Ian? Any comments? >>>=20 >>=20 >> I want to check on a few things before we head down this path. I've = been >> traveling so haven't had a chance to look through it to see if Atmel = uses >> this, and who else does... >>=20 >> Warner >>=20 >>=20 > I think that i have more complete implementation of reset framework > ready to commit. Just waiting for mentor approval. > Please see https://github.com/strejda/tegra/tree/master/sys/dev/reset This looks fairly good. Bummer that Atmel doesn=E2=80=99t use it yet in = their FDT files. Warner > Michal >=20 >>> -a >>>=20 >>>> Best wishes >>>> Stanislav >>>>=20 >>>>> On Jan 18, 2016, at 02:04, Warner Losh wrote: >>>>>=20 >>>>> I don't see how resets help. Maybe I missed where it was = documented, >>> could you send that to me? >>>>>=20 >>>>> Even with that, it seems that a generic ohci_fdt driver isn't = possible. >>>>>=20 >>>>> Warner >>>>>=20 >>>>> On Thu, Jan 14, 2016 at 2:01 AM, Stanislav Galabov = >> > wrote: >>>>> Hi all, >>>>>=20 >>>>> First off, sorry for the cross-post, I wasn=E2=80=99t very sure = where this >>> should go=E2=80=A6 >>>>>=20 >>>>> I=E2=80=99ve created 3 PRs, which enable some functionality that = my work on >>> Ralink/Mediatek SoCs would benefit from. >>>>>=20 >>>>> 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 < >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227> >>>>> - This enables geom_flashmap and fdt_slicer support for SPI flash = chips >>> supported by the mx25l driver (sys/dev/flash/mx25l.c) >>>>>=20 >>>>> 2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228 < >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228> >>>>> - This adds support for FDT =E2=80=98resets=3D=E2=80=99 property = in much the same way as >>> ian@=E2=80=99s sys/dev/fdt/fdt_clock* supports FDT =E2=80=98clocks=3D=E2= =80=98 property. In fact >>> this work is basically a modified version of fdt_clock* :-) >>>>>=20 >>>>> 3. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229 < >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229> >>>>> - This simply moves the at91 specific = sys/dev/usb/controller/ohci_fdt.c >>> to sys/dev/usb/controller/at91ohci_fdt.c (and changes the filename = in >>> sys/arm/at91/files.at91 as well). The current naming is misleading = IMHO and >>> also, I have some (vague-ish) plans to see if I can implement = generic >>> ohci_fdt and ehci_fdt based on dwc_otg_fdt, so that systems with = standard >>> ehci/ohci controllers can reuse these. >>>>>=20 >>>>> Patches are attached to the PRs. >>>>>=20 >>>>> I would appreciate any feedback on the PRs and would also = appreciate it >>> if someone could commit these if the proposed changes are = appropriate. >>>>>=20 >>>>> Best wishes, >>>>> Stanislav >>>>> _______________________________________________ >>>>> freebsd-arm@freebsd.org mailing = list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm < >>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm> >>>>> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org >>> " >>>>>=20 >>>>=20 >>>> _______________________________________________ >>>> 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" >>>=20 >> _______________________________________________ >> 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" >>=20 >=20 > _______________________________________________ > 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" --Apple-Mail=_24CDE167-DB4D-4F5F-ADFF-173724FA42B8 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJWoty4AAoJEGwc0Sh9sBEAnnMP/2MrNmJvqgK6t8UT63cWCuim 6xZVTRivoZzEF4gJd+DdfAlvyGSmbvmzn+nGlcYjS/HKZbZtfbufzcYJfCng4iJn RcBf00pf7IuGkRMTuvZTIBhrNfo3lOhhg4wMVxQc1o3+7nxVMquOEG9rkqt1EIM1 kYAjCWGArAxObjkJ9I2WP/TXkFt4ltYVbltBTTpeWXcML0IxZpT4F/TcOuF7OJcN 0IjPYOAy4+pG6CWt3+jNi2LexyuuVT+y/NMd/QiG2dyz6ElPetniINe20ID2Cqaj xUCmkCkDJIouMhDxuJI9IPvn0XiFtpWun5NPI9ip0GNZinVH+vEemMsolInis+zb PuuVRrcTdtsMtnAV9TnABJldjHPuwAojaJx2VpdMncdO/EuSTXcfDztcS/wIr1An nMooQH9k7TxXHI76Lko01fBShNPdxdzMR2YYYDckDmtm/Y/YS+IpXqIjdZ9UiETP bZpf9jriq4ErV7dsNFfGgB5ucxHsQ2GYkLg8bfWqoLGBcxF8PlmVuMErU5uWdJgu ybIKmm5fRNpbAO9/y1UP64vxItWD69KZ9vYP0v/6EALl9OPYUwjNm8uKAzhDBstK yQvTIytwGvSoGkz174ay19nNsiyIfUmx97guuECvNvxmwku6Xu6cJDSCMZ0/X7um toBPZ3tXCQPcbCisFVtV =D+0m -----END PGP SIGNATURE----- --Apple-Mail=_24CDE167-DB4D-4F5F-ADFF-173724FA42B8-- From owner-freebsd-mips@freebsd.org Sat Jan 23 05:18:06 2016 Return-Path: Delivered-To: freebsd-mips@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 0BC7DA8D191; Sat, 23 Jan 2016 05:18:06 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-vk0-x22e.google.com (mail-vk0-x22e.google.com [IPv6:2607:f8b0:400c:c05::22e]) (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 C7B2F1AA5; Sat, 23 Jan 2016 05:18:05 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-vk0-x22e.google.com with SMTP id k1so51600792vkb.2; Fri, 22 Jan 2016 21:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mW2+HkIiGk3UWA0BewHg1xEaK/1Kys/ivg19mTZm5dc=; b=m1f/BySZ0ACWkuGzJTVSWJRcx2U5kTQEB34tcfFLo6HPaZ5sWGlcw+3ZTBiQXxvMHs E8vH7WbcqIqD7/4xBzSIC7EFR82iH4bgQwLeWNNT8F4qM85QxPcuyAmadaXVvWmJlVGa gJGC97O2LkpjMR6m678fSPmGyPOHp6wGc9uXP8LL6/bmDS6XWlWYTkiD8PbqVSYen8S/ xnmy21RX+NTeuayZ66WgrCdcnoV/nLLotgcnZOQ4oPU3z1tghtfnuwy4m4037tFUvkUn BAbCnFFUzmLgD+PK/yE2Y0jlunxO8Cw5bljdHTVMleiNflFJMdUvPS0DKtQYpl82C5Pl SPUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mW2+HkIiGk3UWA0BewHg1xEaK/1Kys/ivg19mTZm5dc=; b=Bggbiiu06CUSF1inwqreDbzeEQgSLNKlJ6qdDX37LQeO+dfqP6LyTyxPKs6r1IIymI 5VSZ1z4wE99hj7Ra7RZcqgrPBPxGoZkNCnkkeXTrbimQf9+hq9/ZlQTtKe3SK2aoY7N5 Hd0VI8HYxbakrPUT1YH0xF5s0jZ00pkBCHxatlBIiscoxpVaPQfu1VXirGNr2dfhxMry zHB8AQ7r9AbeqvZ6ZV4liFOtwWZ0dC59UHb38jR7hiGfcm8cFOrGeR8EYlBozBNZc0oh +WITMPe7V0vEyzMfeTSF/8eA7iKJXRdvn6EVIoA6/BvoJLPySx4I209ZaDbdoEj2Uv7N /NKQ== X-Gm-Message-State: AG10YOQCVZ3KIbtYClmk45r3UYHJAxa8g42LRG5QZIAK98T474YNYcXzTrSBXENCxsPPI+paz+fA0qKT3MTFfA== MIME-Version: 1.0 X-Received: by 10.31.153.11 with SMTP id b11mr4295738vke.127.1453526284881; Fri, 22 Jan 2016 21:18:04 -0800 (PST) Received: by 10.31.183.147 with HTTP; Fri, 22 Jan 2016 21:18:04 -0800 (PST) In-Reply-To: <20160122173906.147bb7c2@stevek-ubuntu.jnpr.net> References: <20160122173906.147bb7c2@stevek-ubuntu.jnpr.net> Date: Sat, 23 Jan 2016 07:18:04 +0200 Message-ID: Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c From: Stanislav Galabov To: Steve Kiernan Cc: freebsd-mips@freebsd.org, freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 05:18:06 -0000 It looks like only part of the original patch I submitted made it into head (only the mx25l part). We also need to change sys/conf/files as Steve pointed out, as well as sys/geom/geom_flashmap.c: https://bz-attachments.freebsd.org/attachment.cgi?id=3D165546 Best wishes, Stanislav On Sat, Jan 23, 2016 at 12:39 AM, Steve Kiernan wrote: > On Thu, 14 Jan 2016 11:01:10 +0200 > Stanislav Galabov wrote: > > > Hi all, > > > > First off, sorry for the cross-post, I wasn=E2=80=99t very sure where t= his > should go=E2=80=A6 > > > > I=E2=80=99ve created 3 PRs, which enable some functionality that my wor= k on > Ralink/Mediatek SoCs would benefit from. > > > > 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 > > - This enables geom_flashmap and fdt_slicer support for SPI flash chips > supported by the mx25l driver (sys/dev/flash/mx25l.c) > > I see this change was committed to head, but I don't see a corresponding > change to sys/conf/files to ensure fdt_slicer.c and geom_flashmap.c get > compiled. > > I think you also need something like the following: > > Index: sys/conf/files > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/conf/files (revision 294541) > +++ sys/conf/files (working copy) > @@ -1419,7 +1419,7 @@ > dev/fdt/fdt_common.c optional fdt > dev/fdt/fdt_pinctrl.c optional fdt fdt_pinctrl > dev/fdt/fdt_pinctrl_if.m optional fdt fdt_pinctrl > -dev/fdt/fdt_slicer.c optional fdt cfi | fdt nand > +dev/fdt/fdt_slicer.c optional fdt cfi | fdt nand | fdt mx25l > dev/fdt/fdt_static_dtb.S optional fdt fdt_dtb_static \ > dependency "$S/boot/fdt/dts/${MACHINE}/${FDT_DTS_FILE}" > dev/fdt/simplebus.c optional fdt > @@ -3010,7 +3010,7 @@ > geom/geom_dump.c stfgeom_dumandard > geom/geom_event.c standard > geom/geom_fox.c optional geom_fox > -geom/geom_flashmap.c optional fdt cfi | fdt nand > +geom/geom_flashmap.c optional fdt cfi | fdt nand | fdt mx25l > geom/geom_io.c standard > geom/geom_kern.c standard > geom/geom_map.c optional geom_map > From owner-freebsd-mips@freebsd.org Sat Jan 23 05:22:54 2016 Return-Path: Delivered-To: freebsd-mips@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 36D5CA8D42A; Sat, 23 Jan 2016 05:22:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (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 F29D61D73; Sat, 23 Jan 2016 05:22:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x231.google.com with SMTP id ik10so4829725igb.1; Fri, 22 Jan 2016 21:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Bnb/kuIWQC3hlJ1mKCDc0O7xnRQoyU++gNZA+ljyx4M=; b=gGWK+f3e8Ovp6NFyGN7qoVRwhDmspnLvdg/SI582L8eIlE4B7APm0/l3cPwcdsJQ+R bvE2+2qqTW7ZMHBRW8y91NVoRY3KuRwljI0MoiG24GFNACxz+a3Jnf2qvCusgVCDsD9I hRI8f/crfmXqsrCSKosy6ZXf79+OBoo4Ntzqi2UocK4EXzIEZLtRD10nhj3zxjA6ao77 YiuvSTL6iwy1NTXXFYPUdtMkSNuoaU5+qvJT+eiMASLYzrRcpagH6xJl591VRdR3UlEC kIbyFRD6Y3N3JR8RsUmD8qWn4cyQS0EdFLqbxW5vjDfU4WybNeRVmnt2LRbEbcACiCZA HYyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Bnb/kuIWQC3hlJ1mKCDc0O7xnRQoyU++gNZA+ljyx4M=; b=l1CeQjF8/l9KMu7ITECJNW/R5VwztIVAJR1sZJwKk/msL0bs3Qa7Bc0UyrlbqFPDEr YWX71Gxbknrd2KOo/e4VPYGhPVIx1rg4dOC6wdZFJXOMv55X8LLS566tcG/AVCSkhFNR 7V+6H0AlUmUyNjKDcgeYAUZ5pPpAd9V8F09f/TmBcgvBHstmyh42DXeS/aEd81Nm/26T j+OD784g+F/h15kBaXnCJQB7mUghiLJFb4hzapRyJz8gMlUn+LQO2HZ4qoNkt/LEOCIz dqs/CgBzDx+rcw3r/RDUi4HZy7edx/1RgYhMs7yIpkjX5FX9lEs2HQnS7Ey8mCE7gHp0 E/og== X-Gm-Message-State: AG10YOQoy2hPW0msKVcQBSYstKniHer+Dnbpy6qX2GASeYw+irNGC9DxR4bXpau44/pHpdhP7F9PEzq0tCSZoA== MIME-Version: 1.0 X-Received: by 10.50.171.225 with SMTP id ax1mr6683935igc.61.1453526573397; Fri, 22 Jan 2016 21:22:53 -0800 (PST) Received: by 10.36.121.16 with HTTP; Fri, 22 Jan 2016 21:22:53 -0800 (PST) In-Reply-To: References: <20160122173906.147bb7c2@stevek-ubuntu.jnpr.net> Date: Fri, 22 Jan 2016 21:22:53 -0800 Message-ID: Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c From: Adrian Chadd To: Stanislav Galabov Cc: Steve Kiernan , "freebsd-arm@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 05:22:54 -0000 let me .. fix that. -a On 22 January 2016 at 21:18, Stanislav Galabov wrote: > It looks like only part of the original patch I submitted made it into he= ad > (only the mx25l part). > We also need to change sys/conf/files as Steve pointed out, as well as > sys/geom/geom_flashmap.c: > https://bz-attachments.freebsd.org/attachment.cgi?id=3D165546 > > Best wishes, > Stanislav > > On Sat, Jan 23, 2016 at 12:39 AM, Steve Kiernan wrot= e: > >> On Thu, 14 Jan 2016 11:01:10 +0200 >> Stanislav Galabov wrote: >> >> > Hi all, >> > >> > First off, sorry for the cross-post, I wasn=E2=80=99t very sure where = this >> should go=E2=80=A6 >> > >> > I=E2=80=99ve created 3 PRs, which enable some functionality that my wo= rk on >> Ralink/Mediatek SoCs would benefit from. >> > >> > 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 >> > - This enables geom_flashmap and fdt_slicer support for SPI flash chip= s >> supported by the mx25l driver (sys/dev/flash/mx25l.c) >> >> I see this change was committed to head, but I don't see a corresponding >> change to sys/conf/files to ensure fdt_slicer.c and geom_flashmap.c get >> compiled. >> >> I think you also need something like the following: >> >> Index: sys/conf/files >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- sys/conf/files (revision 294541) >> +++ sys/conf/files (working copy) >> @@ -1419,7 +1419,7 @@ >> dev/fdt/fdt_common.c optional fdt >> dev/fdt/fdt_pinctrl.c optional fdt fdt_pinctrl >> dev/fdt/fdt_pinctrl_if.m optional fdt fdt_pinctrl >> -dev/fdt/fdt_slicer.c optional fdt cfi | fdt nand >> +dev/fdt/fdt_slicer.c optional fdt cfi | fdt nand | fdt mx25l >> dev/fdt/fdt_static_dtb.S optional fdt fdt_dtb_static \ >> dependency "$S/boot/fdt/dts/${MACHINE}/${FDT_DTS_FILE}" >> dev/fdt/simplebus.c optional fdt >> @@ -3010,7 +3010,7 @@ >> geom/geom_dump.c stfgeom_dumandard >> geom/geom_event.c standard >> geom/geom_fox.c optional geom_fox >> -geom/geom_flashmap.c optional fdt cfi | fdt nand >> +geom/geom_flashmap.c optional fdt cfi | fdt nand | fdt mx25l >> geom/geom_io.c standard >> geom/geom_kern.c standard >> geom/geom_map.c optional geom_map >> > _______________________________________________ > 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" From owner-freebsd-mips@freebsd.org Sat Jan 23 08:28:17 2016 Return-Path: Delivered-To: freebsd-mips@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 0B670A8D32F; Sat, 23 Jan 2016 08:28:17 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (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 86F071ED7; Sat, 23 Jan 2016 08:28:16 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x243.google.com with SMTP id b14so1891227wmb.1; Sat, 23 Jan 2016 00:28:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=QAz5vVYnKlVpsYaYuaP0gQf11qxhLOzLpu5LpLeDrSQ=; b=toPOp44YYSwCvwGlNATfoMxaHGjjFMlVpFAZXTgWgkXNDPdjviJEHTA7HzHc9u9h2L RLhzSd9O0Z/wrBInKd9JTWzUPv93sRltCUW81rQwq6VjG5lHdBvxthWUtMeO+kVWG743 eHqiPGRXW/nQ5/Vk4Ceugamgg3NP05W9Txd0PCf5FEPMoTz7JhZ/fekN3h2Z8jscNRHK CViVjrQZdtLoMdj25xOt7KsVisAN4A8/ZbXdadl9suBeoEahUGc5r6vLjH/ZP9GpLFTN 1bsqiot6uIc9A3Ut1vIHmab/JlPc/utQ1TxfFNEbu4EiD/CNY1UyZqnqiDDtuG5EdCzu IKKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=QAz5vVYnKlVpsYaYuaP0gQf11qxhLOzLpu5LpLeDrSQ=; b=BCwvvHNkZSRSY4xuWt3LjpwT4OUXEyHfF/bv1foMrRfy/xaXzydpei6rd9iVytWfV3 KZMWPMI+HiJWi0wC+C9S908/BMrj5yCNG5spzAHnp++B/SAwg/MG9XV9muFLs9AkfppS 7wwl6eoR3Rk6o40sEgAOiUTZ3XxOHc0zo5yHokeuih3ZShN34UTN20yq56kdjDaw90AY feC3REj3/RQ+SzYrqYfTk5E/8JCCt2VQzI31lBymqC5gvAHEvYodilrFaz67q6WnsoHE UZM0onWUDZwde4/yAb2g3FjVC+UEHnYBEIJAtCqRGCwCFNzkFEtEiOxep73LYhwyjz8r 3k+Q== X-Gm-Message-State: AG10YORN9OpwjKehC/wr74Q1XWVeNdMnbwCNLT1peynMletq7/emr4i8mGoJDdxSZIMs0A== X-Received: by 10.194.58.235 with SMTP id u11mr7393265wjq.52.1453537694791; Sat, 23 Jan 2016 00:28:14 -0800 (PST) Received: from [10.190.99.221] (85-118-68-209.mtel.net. [85.118.68.209]) by smtp.gmail.com with ESMTPSA id 75sm6284554wmo.22.2016.01.23.00.28.13 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 23 Jan 2016 00:28:13 -0800 (PST) Mime-Version: 1.0 (1.0) Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c From: Stanislav Galabov X-Mailer: iPhone Mail (12B440) In-Reply-To: <56A1BFBB.8050204@freebsd.org> Date: Sat, 23 Jan 2016 10:28:16 +0200 Cc: "freebsd-arm@freebsd.org" , "freebsd-mips@freebsd.org" Message-Id: <57E542F6-FCF2-4E51-9FE5-8EDD85DA2102@gmail.com> References: <2AB9D6E1-BFF8-4EEE-B366-C980B72C4779@gmail.com> <56A1BFBB.8050204@freebsd.org> To: Michal Meloun Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 08:28:17 -0000 > On Jan 22, 2016, at 07:35, Michal Meloun wrote: >=20 > Dne 22.01.2016 v 5:43 Warner Losh napsal(a): >> On Thu, Jan 21, 2016 at 8:35 PM, Adrian Chadd >> wrote: >>=20 >>>> On 18 January 2016 at 06:49, Stanislav Galabov wro= te: >>>> Hi Warner, >>>>=20 >>>> I was thinking resets could help in general, not specifically in the >>> case of trying to implement a generic ohci_fdt driver. >>>>=20 >>>> As I already mentioned to you off-list (and in order for this message t= o >>> possibly make some more sense), I saw that Linux makes use of the =E2=80= =98resets=E2=80=99 >>> property and looked at the documentation for it: >>> https://github.com/torvalds/linux/blob/master/Documentation/devicetree/b= indings/reset/reset.txt >>> < >>> https://github.com/torvalds/linux/blob/master/Documentation/devicetree/b= indings/reset/reset.txt >>>>=20 >>>>=20 >>>> For example, with the work I am currently doing on Ralink/Mediatek >>> support, I have over 10 different chips in the same family, that have ve= ry >>> similar peripheral blocks, but their clocks and resets are controlled vi= a >>> different bits in one of the SysCtl registers (the register itself is at= >>> the same offset within the SysCtl block of each chip). So I may have chi= p X >>> which has its USB (for example) reset controlled by bit 10 and chip Y wi= th >>> USB reset controlled by bit 12. >>>>=20 >>>> So being able to write something like: >>>> resets =3D <&sysctl 10>; >>>> or >>>> resets =3D <&sysctl 11>; >>>>=20 >>>> in my dts/dtsi files helps me immensely, instead of having to check wha= t >>> chip I am running on and based on that use a different register layout=E2= =80=A6 >>>> Then, if I wanted to (de)assert reset for a peripheral block that has >>> this property defined I=E2=80=99d just do fdt_reset_(de)assert_all(dev),= where dev >>> is the device_t for the peripheral in question. This would (de)assert al= l >>> reset pins associated with the peripheral. >>>>=20 >>>> The same is the case for clock control (gating) in the Ralink/Mediatek >>> SoCs and this is the main reason I used fdt_clock that is already in >>> sys/dev/fdt and then thought about implementing the fdt_reset based on i= t. >>>>=20 >>>> I hope this clarifies a bit my reason for submitting the fdt_reset patc= h. >>>=20 >>> This seems fine to me. Hm. Ian? Any comments? >>=20 >> I want to check on a few things before we head down this path. I've been >> traveling so haven't had a chance to look through it to see if Atmel uses= >> this, and who else does... >>=20 >> Warner > I think that i have more complete implementation of reset framework > ready to commit. Just waiting for mentor approval. > Please see https://github.com/strejda/tegra/tree/master/sys/dev/reset >=20 > Michal I have no objections to using Michal's framework, especially if the patch fr= om PR 206516 is applied: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206516 His framework is really more complete than what I did. Best wishes, Stanislav >>> -a >>>=20 >>>> Best wishes >>>> Stanislav >>>>=20 >>>>> On Jan 18, 2016, at 02:04, Warner Losh wrote: >>>>>=20 >>>>> I don't see how resets help. Maybe I missed where it was documented, >>> could you send that to me? >>>>>=20 >>>>> Even with that, it seems that a generic ohci_fdt driver isn't possible= . >>>>>=20 >>>>> Warner >>>>>=20 >>>>> On Thu, Jan 14, 2016 at 2:01 AM, Stanislav Galabov >> > wrote: >>>>> Hi all, >>>>>=20 >>>>> First off, sorry for the cross-post, I wasn=E2=80=99t very sure where t= his >>> should go=E2=80=A6 >>>>>=20 >>>>> I=E2=80=99ve created 3 PRs, which enable some functionality that my wo= rk on >>> Ralink/Mediatek SoCs would benefit from. >>>>>=20 >>>>> 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 < >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227> >>>>> - This enables geom_flashmap and fdt_slicer support for SPI flash chip= s >>> supported by the mx25l driver (sys/dev/flash/mx25l.c) >>>>>=20 >>>>> 2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228 < >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228> >>>>> - This adds support for FDT =E2=80=98resets=3D=E2=80=99 property in mu= ch the same way as >>> ian@=E2=80=99s sys/dev/fdt/fdt_clock* supports FDT =E2=80=98clocks=3D=E2= =80=98 property. In fact >>> this work is basically a modified version of fdt_clock* :-) >>>>>=20 >>>>> 3. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229 < >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229> >>>>> - This simply moves the at91 specific sys/dev/usb/controller/ohci_fdt.= c >>> to sys/dev/usb/controller/at91ohci_fdt.c (and changes the filename in >>> sys/arm/at91/files.at91 as well). The current naming is misleading IMHO a= nd >>> also, I have some (vague-ish) plans to see if I can implement generic >>> ohci_fdt and ehci_fdt based on dwc_otg_fdt, so that systems with standar= d >>> ehci/ohci controllers can reuse these. >>>>>=20 >>>>> Patches are attached to the PRs. >>>>>=20 >>>>> I would appreciate any feedback on the PRs and would also appreciate i= t >>> if someone could commit these if the proposed changes are appropriate. >>>>>=20 >>>>> Best wishes, >>>>> Stanislav >>>>> _______________________________________________ >>>>> freebsd-arm@freebsd.org mailing list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm < >>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm> >>>>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org >>> " >>>>=20 >>>> _______________________________________________ >>>> 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" >=20 > _______________________________________________ > 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" From owner-freebsd-mips@freebsd.org Sat Jan 23 15:28:45 2016 Return-Path: Delivered-To: freebsd-mips@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 B44F3A8EF13; Sat, 23 Jan 2016 15:28:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (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 7B7241FCC; Sat, 23 Jan 2016 15:28:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x229.google.com with SMTP id 77so114963494ioc.2; Sat, 23 Jan 2016 07:28:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=TgbCB3lX0omU3bwOF+icQ+12wuOVbas5xAHGy7L2tFg=; b=eTiPu8Tv43F0h8OlxtXozBcZi5S90RkQ51hK+ETfOhP8Y0Arf0UENfe7R21qC8mMeW gYdGdwe5goX5csCP9gfab8GCEkeVhFr5I0SAkuWXnKZBLa3QTfd4ul24pBVfdCfy9TmQ lVYqT1ZdHGd/fXSQmtdAY8YWRiHGJtm6KtdvhVqoU+Xo7detSlTVHLYqLGWS8KnUvFk+ 2u8HW9tEfxlF++68I8IPZz8k2abuR0NYnRBJpvT1zPc+iPyu6t4SBOQ59GZuB4Wqe4wk KFzAS0sXGeBqXIP4K36wJea0n8hYNyCxg/diuOx9NAZQ+IZyaVk+RbWwQmuXp9SazVsa Nn1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TgbCB3lX0omU3bwOF+icQ+12wuOVbas5xAHGy7L2tFg=; b=e3MQI24QRt36j09PiiB1gHBsklglNjdDno7ZIz/6dQH5Si6QhotgU0JpbvZt0T39NG 2+UPJ7lf6Ba6ggrtEqqUPN7Z+o1gGd1CxW0bCoI7zdm5aUFLIXgXonuvXlIpwGuXReIF 5d/5GgXFjxEUPjLpWyvwBQ1c2wPhiIEczqBpDs0aklEEEGRXQbLzbihrqKozanIbPMuR OYLocvyntrCdJSzkOBz8RYMTI0Va2c3N2dM+yBfV9rCpxtZK06LMXybtSJsHTjzOg50N Bc2u4TrHELFUhj2w9thyT6+VypsIpeW0IEEZBzjcr4bgGGmGlhypMGuWKKomtx+egDCF sapw== X-Gm-Message-State: AG10YOS5fdqPFp0okAq0T1PA0dWsWOL720YSxfnn0KbqA8Su3f2kWfgSIW/sMfc7+kPrEtWZ4KvgWrXOHD2apA== MIME-Version: 1.0 X-Received: by 10.107.162.146 with SMTP id l140mr8362232ioe.123.1453562924849; Sat, 23 Jan 2016 07:28:44 -0800 (PST) Received: by 10.36.121.16 with HTTP; Sat, 23 Jan 2016 07:28:44 -0800 (PST) In-Reply-To: <57E542F6-FCF2-4E51-9FE5-8EDD85DA2102@gmail.com> References: <2AB9D6E1-BFF8-4EEE-B366-C980B72C4779@gmail.com> <56A1BFBB.8050204@freebsd.org> <57E542F6-FCF2-4E51-9FE5-8EDD85DA2102@gmail.com> Date: Sat, 23 Jan 2016 07:28:44 -0800 Message-ID: Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c From: Adrian Chadd To: Stanislav Galabov Cc: Michal Meloun , "freebsd-arm@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 15:28:45 -0000 ok, I think you've now hit the "please register for an account at reviews.freebsd.org and publish patches there" step. :) -a On 23 January 2016 at 00:28, Stanislav Galabov wrote: > > >> On Jan 22, 2016, at 07:35, Michal Meloun wrote: >> >> Dne 22.01.2016 v 5:43 Warner Losh napsal(a): >>> On Thu, Jan 21, 2016 at 8:35 PM, Adrian Chadd >>> wrote: >>> >>>>> On 18 January 2016 at 06:49, Stanislav Galabov w= rote: >>>>> Hi Warner, >>>>> >>>>> I was thinking resets could help in general, not specifically in the >>>> case of trying to implement a generic ohci_fdt driver. >>>>> >>>>> As I already mentioned to you off-list (and in order for this message= to >>>> possibly make some more sense), I saw that Linux makes use of the =E2= =80=98resets=E2=80=99 >>>> property and looked at the documentation for it: >>>> https://github.com/torvalds/linux/blob/master/Documentation/devicetree= /bindings/reset/reset.txt >>>> < >>>> https://github.com/torvalds/linux/blob/master/Documentation/devicetree= /bindings/reset/reset.txt >>>>> >>>>> >>>>> For example, with the work I am currently doing on Ralink/Mediatek >>>> support, I have over 10 different chips in the same family, that have = very >>>> similar peripheral blocks, but their clocks and resets are controlled = via >>>> different bits in one of the SysCtl registers (the register itself is = at >>>> the same offset within the SysCtl block of each chip). So I may have c= hip X >>>> which has its USB (for example) reset controlled by bit 10 and chip Y = with >>>> USB reset controlled by bit 12. >>>>> >>>>> So being able to write something like: >>>>> resets =3D <&sysctl 10>; >>>>> or >>>>> resets =3D <&sysctl 11>; >>>>> >>>>> in my dts/dtsi files helps me immensely, instead of having to check w= hat >>>> chip I am running on and based on that use a different register layout= =E2=80=A6 >>>>> Then, if I wanted to (de)assert reset for a peripheral block that has >>>> this property defined I=E2=80=99d just do fdt_reset_(de)assert_all(dev= ), where dev >>>> is the device_t for the peripheral in question. This would (de)assert = all >>>> reset pins associated with the peripheral. >>>>> >>>>> The same is the case for clock control (gating) in the Ralink/Mediate= k >>>> SoCs and this is the main reason I used fdt_clock that is already in >>>> sys/dev/fdt and then thought about implementing the fdt_reset based on= it. >>>>> >>>>> I hope this clarifies a bit my reason for submitting the fdt_reset pa= tch. >>>> >>>> This seems fine to me. Hm. Ian? Any comments? >>> >>> I want to check on a few things before we head down this path. I've bee= n >>> traveling so haven't had a chance to look through it to see if Atmel us= es >>> this, and who else does... >>> >>> Warner >> I think that i have more complete implementation of reset framework >> ready to commit. Just waiting for mentor approval. >> Please see https://github.com/strejda/tegra/tree/master/sys/dev/reset >> >> Michal > > I have no objections to using Michal's framework, especially if the patch= from PR 206516 is applied: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206516 > > His framework is really more complete than what I did. > > Best wishes, > Stanislav > >>>> -a >>>> >>>>> Best wishes >>>>> Stanislav >>>>> >>>>>> On Jan 18, 2016, at 02:04, Warner Losh wrote: >>>>>> >>>>>> I don't see how resets help. Maybe I missed where it was documented, >>>> could you send that to me? >>>>>> >>>>>> Even with that, it seems that a generic ohci_fdt driver isn't possib= le. >>>>>> >>>>>> Warner >>>>>> >>>>>> On Thu, Jan 14, 2016 at 2:01 AM, Stanislav Galabov >>> > wrote: >>>>>> Hi all, >>>>>> >>>>>> First off, sorry for the cross-post, I wasn=E2=80=99t very sure wher= e this >>>> should go=E2=80=A6 >>>>>> >>>>>> I=E2=80=99ve created 3 PRs, which enable some functionality that my = work on >>>> Ralink/Mediatek SoCs would benefit from. >>>>>> >>>>>> 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 < >>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227> >>>>>> - This enables geom_flashmap and fdt_slicer support for SPI flash ch= ips >>>> supported by the mx25l driver (sys/dev/flash/mx25l.c) >>>>>> >>>>>> 2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228 < >>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228> >>>>>> - This adds support for FDT =E2=80=98resets=3D=E2=80=99 property in = much the same way as >>>> ian@=E2=80=99s sys/dev/fdt/fdt_clock* supports FDT =E2=80=98clocks=3D= =E2=80=98 property. In fact >>>> this work is basically a modified version of fdt_clock* :-) >>>>>> >>>>>> 3. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229 < >>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229> >>>>>> - This simply moves the at91 specific sys/dev/usb/controller/ohci_fd= t.c >>>> to sys/dev/usb/controller/at91ohci_fdt.c (and changes the filename in >>>> sys/arm/at91/files.at91 as well). The current naming is misleading IMH= O and >>>> also, I have some (vague-ish) plans to see if I can implement generic >>>> ohci_fdt and ehci_fdt based on dwc_otg_fdt, so that systems with stand= ard >>>> ehci/ohci controllers can reuse these. >>>>>> >>>>>> Patches are attached to the PRs. >>>>>> >>>>>> I would appreciate any feedback on the PRs and would also appreciate= it >>>> if someone could commit these if the proposed changes are appropriate. >>>>>> >>>>>> Best wishes, >>>>>> Stanislav >>>>>> _______________________________________________ >>>>>> freebsd-arm@freebsd.org mailing lis= t >>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm < >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm> >>>>>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.or= g >>>> " >>>>> >>>>> _______________________________________________ >>>>> 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" >> >> _______________________________________________ >> 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-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Sat Jan 23 19:07:15 2016 Return-Path: Delivered-To: freebsd-mips@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 48EF0A8E3A2; Sat, 23 Jan 2016 19:07:15 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-vk0-x22b.google.com (mail-vk0-x22b.google.com [IPv6:2607:f8b0:400c:c05::22b]) (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 F2599107A; Sat, 23 Jan 2016 19:07:14 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-vk0-x22b.google.com with SMTP id e64so57329191vkg.0; Sat, 23 Jan 2016 11:07:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=va4HTywTY3AblvVx+hQxhpu1DRFEXj9UToimZBUOwvQ=; b=S+7USrBY1sfROPypi/OHcGn5Ntq9gnVNGEGX7GIXFQNoS6iwNVXgznwQVQVffFoEEZ LVQSb6qdyLuQw+j3oVvYB2raPA/JEEBLKpB73aAwrryI3y5Egf29ghfTgdjgXyavGCpe h7L3yZHnRqx1PFbE8+A8b/Q8/NSGprFJdhE6j+7+6g5OX5rBoztu4r7aR7jZnATFktxU Dobyqa61CLpIxH1f+AEbmPXnVrl0/Bx1b94Sklz5z90i47pUIJhPdkzEtjvtfHuplbiG cieSAOwkAYoqlrqpMeOHzKvWEmi6eSBy+ykP4wLoLGjkNCjBTJ+yWJtTGSWdanc0Lr2+ y/cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=va4HTywTY3AblvVx+hQxhpu1DRFEXj9UToimZBUOwvQ=; b=TqoySCCKP8A4f0asWoS5XOKI1qlr/GDWjiaZu/iKV+LwkkaIb5Wz/VCodV+jiMJVKS Ek2QjTLpMGcsYNo06fAHBKPhGniTUq9gANlCFQP/0KbLpv0h9qkxm0sXj0i+hJOs/Hy+ 8BXO2l6aDsjdLfzDzNfH6E5F6eQL81Ybk0bBk8SZqu+kzSpvlIvfWag6JU2Cntx9EsbP 4FFR4L82j79c+idViAv/i7NvWFBm4ea7AcYfnEbNocIggYUUsa9HvevM5WY8YIQ+gBZ0 OT13V+sjgc6muXRuLFxk0p80A5zytLjW8npiyDA6x7gcQvTpuz/TYkbwu67hcKpHlOPz kVug== X-Gm-Message-State: AG10YORqjnQWEaQ95ABOao0nvVWyrwYA9kbKA0mWYgg/gHgbM/4yKNjYP0/iMPlAlwU+gA4PvBZzmCNJYra4CA== MIME-Version: 1.0 X-Received: by 10.31.54.12 with SMTP id d12mr6340804vka.34.1453576033751; Sat, 23 Jan 2016 11:07:13 -0800 (PST) Received: by 10.31.183.147 with HTTP; Sat, 23 Jan 2016 11:07:13 -0800 (PST) In-Reply-To: References: <2AB9D6E1-BFF8-4EEE-B366-C980B72C4779@gmail.com> <56A1BFBB.8050204@freebsd.org> <57E542F6-FCF2-4E51-9FE5-8EDD85DA2102@gmail.com> Date: Sat, 23 Jan 2016 21:07:13 +0200 Message-ID: Subject: Re: SPI geom_flashmap/fdt_slicer support, FDT 'resets=' support and a move of ohci_fdt.c From: Stanislav Galabov To: Adrian Chadd Cc: Michal Meloun , "freebsd-arm@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 19:07:15 -0000 :-) Here goes nothing: https://reviews.freebsd.org/D5043 On Sat, Jan 23, 2016 at 5:28 PM, Adrian Chadd wrote: > ok, I think you've now hit the "please register for an account at > reviews.freebsd.org and publish patches there" step. :) > > > -a > > > On 23 January 2016 at 00:28, Stanislav Galabov wrote= : > > > > > >> On Jan 22, 2016, at 07:35, Michal Meloun wrote: > >> > >> Dne 22.01.2016 v 5:43 Warner Losh napsal(a): > >>> On Thu, Jan 21, 2016 at 8:35 PM, Adrian Chadd > >>> wrote: > >>> > >>>>> On 18 January 2016 at 06:49, Stanislav Galabov > wrote: > >>>>> Hi Warner, > >>>>> > >>>>> I was thinking resets could help in general, not specifically in th= e > >>>> case of trying to implement a generic ohci_fdt driver. > >>>>> > >>>>> As I already mentioned to you off-list (and in order for this > message to > >>>> possibly make some more sense), I saw that Linux makes use of the > =E2=80=98resets=E2=80=99 > >>>> property and looked at the documentation for it: > >>>> > https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bi= ndings/reset/reset.txt > >>>> < > >>>> > https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bi= ndings/reset/reset.txt > >>>>> > >>>>> > >>>>> For example, with the work I am currently doing on Ralink/Mediatek > >>>> support, I have over 10 different chips in the same family, that hav= e > very > >>>> similar peripheral blocks, but their clocks and resets are controlle= d > via > >>>> different bits in one of the SysCtl registers (the register itself i= s > at > >>>> the same offset within the SysCtl block of each chip). So I may have > chip X > >>>> which has its USB (for example) reset controlled by bit 10 and chip = Y > with > >>>> USB reset controlled by bit 12. > >>>>> > >>>>> So being able to write something like: > >>>>> resets =3D <&sysctl 10>; > >>>>> or > >>>>> resets =3D <&sysctl 11>; > >>>>> > >>>>> in my dts/dtsi files helps me immensely, instead of having to check > what > >>>> chip I am running on and based on that use a different register > layout=E2=80=A6 > >>>>> Then, if I wanted to (de)assert reset for a peripheral block that h= as > >>>> this property defined I=E2=80=99d just do fdt_reset_(de)assert_all(d= ev), > where dev > >>>> is the device_t for the peripheral in question. This would (de)asser= t > all > >>>> reset pins associated with the peripheral. > >>>>> > >>>>> The same is the case for clock control (gating) in the > Ralink/Mediatek > >>>> SoCs and this is the main reason I used fdt_clock that is already in > >>>> sys/dev/fdt and then thought about implementing the fdt_reset based > on it. > >>>>> > >>>>> I hope this clarifies a bit my reason for submitting the fdt_reset > patch. > >>>> > >>>> This seems fine to me. Hm. Ian? Any comments? > >>> > >>> I want to check on a few things before we head down this path. I've > been > >>> traveling so haven't had a chance to look through it to see if Atmel > uses > >>> this, and who else does... > >>> > >>> Warner > >> I think that i have more complete implementation of reset framework > >> ready to commit. Just waiting for mentor approval. > >> Please see https://github.com/strejda/tegra/tree/master/sys/dev/reset > >> > >> Michal > > > > I have no objections to using Michal's framework, especially if the > patch from PR 206516 is applied: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206516 > > > > His framework is really more complete than what I did. > > > > Best wishes, > > Stanislav > > > >>>> -a > >>>> > >>>>> Best wishes > >>>>> Stanislav > >>>>> > >>>>>> On Jan 18, 2016, at 02:04, Warner Losh wrote: > >>>>>> > >>>>>> I don't see how resets help. Maybe I missed where it was documente= d, > >>>> could you send that to me? > >>>>>> > >>>>>> Even with that, it seems that a generic ohci_fdt driver isn't > possible. > >>>>>> > >>>>>> Warner > >>>>>> > >>>>>> On Thu, Jan 14, 2016 at 2:01 AM, Stanislav Galabov < > sgalabov@gmail.com > >>>> > wrote: > >>>>>> Hi all, > >>>>>> > >>>>>> First off, sorry for the cross-post, I wasn=E2=80=99t very sure wh= ere this > >>>> should go=E2=80=A6 > >>>>>> > >>>>>> I=E2=80=99ve created 3 PRs, which enable some functionality that m= y work on > >>>> Ralink/Mediatek SoCs would benefit from. > >>>>>> > >>>>>> 1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227 < > >>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206227> > >>>>>> - This enables geom_flashmap and fdt_slicer support for SPI flash > chips > >>>> supported by the mx25l driver (sys/dev/flash/mx25l.c) > >>>>>> > >>>>>> 2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228 < > >>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206228> > >>>>>> - This adds support for FDT =E2=80=98resets=3D=E2=80=99 property i= n much the same way > as > >>>> ian@=E2=80=99s sys/dev/fdt/fdt_clock* supports FDT =E2=80=98clocks= =3D=E2=80=98 property. In > fact > >>>> this work is basically a modified version of fdt_clock* :-) > >>>>>> > >>>>>> 3. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229 < > >>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206229> > >>>>>> - This simply moves the at91 specific > sys/dev/usb/controller/ohci_fdt.c > >>>> to sys/dev/usb/controller/at91ohci_fdt.c (and changes the filename i= n > >>>> sys/arm/at91/files.at91 as well). The current naming is misleading > IMHO and > >>>> also, I have some (vague-ish) plans to see if I can implement generi= c > >>>> ohci_fdt and ehci_fdt based on dwc_otg_fdt, so that systems with > standard > >>>> ehci/ohci controllers can reuse these. > >>>>>> > >>>>>> Patches are attached to the PRs. > >>>>>> > >>>>>> I would appreciate any feedback on the PRs and would also > appreciate it > >>>> if someone could commit these if the proposed changes are appropriat= e. > >>>>>> > >>>>>> Best wishes, > >>>>>> Stanislav > >>>>>> _______________________________________________ > >>>>>> freebsd-arm@freebsd.org mailing > list > >>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm < > >>>> 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" > >>> _______________________________________________ > >>> 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-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-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >