From owner-freebsd-arm@freebsd.org Tue Oct 15 21:03:00 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4145E1547B8 for ; Tue, 15 Oct 2019 21:03:00 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46t7Dg3Ngwz3M58 for ; Tue, 15 Oct 2019 21:02:59 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-lf1-x12c.google.com with SMTP id r22so15617574lfm.1 for ; Tue, 15 Oct 2019 14:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=w2azKC1tEDrp0vJ56tqocwcCzifkIkyFAXl2AvzBkgQ=; b=DZcnTaN7RHn6XX5kDxSpX9Kg4/YEpusNkCT6P9SmNqxC8S8GLGY7UlwtBmcyU/SyFM UTLkj7rAtNPh3yfbKB74x6r8O8bph8y4N6uK3uzzkwpZT/5ytTOJ371Ta5lL4C4ZjsUa PIgClmRmX5XH74wYkzLeBBnlYANgTrdqYk5l9z3xHrgM/QCHE1k5NlaoNlMEA0VDOM5o DgSelRGgK4FZgknwKFl+JQGckv+VN5tJz35xOfZQNjLhyIw8GmcXbm2nuzevnEszOzaA Rs9sWyQNLu0LIIIIUTFoGxvAYAU3D0vBfBjJ6ixqLF+IfYsOz/2PqH/UsptYLQjv0Rq+ bTyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=w2azKC1tEDrp0vJ56tqocwcCzifkIkyFAXl2AvzBkgQ=; b=GwSU1apPI5hmIzPxznv4BVEXJJG4chjTo9VUMELmrGbx4nrub9+1ZRMdX/3AUfc1Xa TBxmfOPFbVnh9qORM/81ULy8S3ie87EPMgdxXvZsrSQeomVbnjLv8Cl6myjKIVG4eq9z EIlHG5PD/hn3tDpY9UowZahuQlnLILPNEcw2TENaV3vT0Q4smxnOwivYZFPr+TkB8e+R aZ5JdaF43aijBkNqX9P5OlPecEzJh8KM1dT/pxlOyg9bmJpJJWJ13GKcfGBk+5P2Ub8+ w4fgWp3hHquezkA5in8H1lmTo/w15rgab1ro4CMhGsFXHumxoss44v24zF6McA3kjN4A 23bA== X-Gm-Message-State: APjAAAWt2hXIsUxHgElmbFuk8Sc71bfmVnTPLJTMd2WnYrOKLFaW/czU fUQ4oYk1oE26ajw8a5x+6hPBwXBl X-Google-Smtp-Source: APXvYqxmtwh00TGlg/rQJAgtK4KNxzgVYMvF3HHS7ja7YmOiwpW3cUZFSezYD9NRmMQ2bkSDhrTBrA== X-Received: by 2002:a19:fc0b:: with SMTP id a11mr22282302lfi.105.1571173376253; Tue, 15 Oct 2019 14:02:56 -0700 (PDT) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id j28sm5270403lfh.57.2019.10.15.14.02.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 14:02:55 -0700 (PDT) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: <4A09598C-3097-4F52-A21F-E82F5D84A72C@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Trouble starting AP cpu's on all winner R40/V40 chip, help needed? Date: Tue, 15 Oct 2019 23:02:54 +0200 In-Reply-To: <20191015224618.3448bd3496ec15df60b64f58@bidouilliste.com> Cc: freebsd-arm To: Emmanuel Vadot References: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> <07E4329F-3DFD-49FB-A3BC-A63790DCC798@gmail.com> <184A8618-F027-42F2-B930-C3331DB43A50@gmail.com> <20191015224618.3448bd3496ec15df60b64f58@bidouilliste.com> X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 46t7Dg3Ngwz3M58 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DZcnTaN7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::12c as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[c.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.38), ipnet: 2a00:1450::/32(-2.85), asn: 15169(-2.10), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2019 21:03:00 -0000 >>=20 >> Success, I now have all 4 cores running, took a little experimenting = though, release the power switch/clamp is non-std too. >=20 > Cool. >=20 >> Now to the last part, the gmac 1G ether controller :) >=20 > What's missing ? is it dwc or awg ? As far as I can tell it is awg type, but possibly with its own = deficiencies :) >> PS: I have had to add devices to the .dtsi and dts files for the = r40/v40 for this to work at all, std-linux doesn?t support this setup = either. >=20 > What was missing ? It misses the dma controller and iosc clock, and possibly the gmac = clocks in sun8i-r40.dtsi, ahci, echi2, and the gmac stuff in = sun8i-v40-m2-berry.dts >=20 >> PPS: when this is all done, any chance for it to get into the = official sources ? (Yeah I retired my src commit bit long ago :))=20 >=20 > Sure open a review on phabricator and add me as a reviewer. OK, will do, but I=E2=80=99ll give the gmac a try first and get more = testing done, its compiling world now on a SATA SSD, that will take some = time :) -S=C3=B8ren=