From nobody Sat Jun 11 08:57:11 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1CEFD83FD33 for ; Sat, 11 Jun 2022 08:57:19 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LKsCd6RFwz3pLg for ; Sat, 11 Jun 2022 08:57:17 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-oi1-x234.google.com with SMTP id k11so2057240oia.12 for ; Sat, 11 Jun 2022 01:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=/dzrTv3kNS+RtWYb2rF6JyMAHreFYyCgDyX0CUBRkZo=; b=d0GJL9IXV2kXQuMi1DfPOKB5x0cTjp8SpprLpkmMm2AC6U52uKrX3fztD4oiNOaiCe 11283TX+bOpsUERKU5OGSSzD9ge+a7cmg72w3zxyVeVFTps9jdqIpigly/azP6UXv5Hh O9MISQK7fxfQlfEieKxO8tkNaRDrJufBnsMxA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=/dzrTv3kNS+RtWYb2rF6JyMAHreFYyCgDyX0CUBRkZo=; b=dD4RbhNXSTbENf1k+2mBX2BNLmdiv0c62YH4xM2TfbvNbfikPrFyxUZf/yUbnea2jt 9gnmp9TggMCl2H7LPcOvDavI4VmeQZlncI+55c52gQfhlRr9Q9f+zidK41ADbXJ/gW+i tSPaYKyidbZyCvIIO1CmBV2jh0HJBARudXi+TCDKk0qdlr2n7dJCRGsPxP5n60eqOLBQ /cGf8iG1glGx+z2ejYVeMF/IPon3NWcRiC/AjpztvjLjfJFtDfv6imfaFjR4LWduvJUw b7yLFGQBEv4Fd6shNCWZYCWOKMhVcSLSnHJRJqWzwdb4M/ZHgBCj54X3u4faZkgCy2Et ibiQ== X-Gm-Message-State: AOAM530ShuJXChnheXA9sXTfNkEIemnhuV047My/iimcwqeQ7tifIgvY 9QucuSmtsSLpSBwB7a1Ug5HLUhkiZAVHuw== X-Google-Smtp-Source: ABdhPJwHgHIjPcEw9tKanpl/fbh/RlGp3GcTUAmdQlwLtBsM5ZFXHRNduYZVgb+JTCW1VY12imxPjg== X-Received: by 2002:a05:6808:1386:b0:32f:219c:bb2 with SMTP id c6-20020a056808138600b0032f219c0bb2mr558275oiw.146.1654937837018; Sat, 11 Jun 2022 01:57:17 -0700 (PDT) Received: from ?IPV6:2804:29b8:5099:52c:378e:75f1:1e7e:4f18? ([2804:29b8:5099:52c:378e:75f1:1e7e:4f18]) by smtp.gmail.com with ESMTPSA id m25-20020a0568301e7900b0060bf9d6c060sm678067otr.1.2022.06.11.01.57.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Jun 2022 01:57:16 -0700 (PDT) Message-ID: <62e9b445-5b59-9a61-a01f-a3f6624d407b@bsd.com.br> Date: Sat, 11 Jun 2022 05:57:11 -0300 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Wrong number of CPUs detected on RPI3 and FreeBSD 13.1 Content-Language: en-US To: greg@unrelenting.technology, Ronald Klop Cc: freebsd-arm@freebsd.org References: <8fcbebf4-60c3-0ccb-259b-3324b123245c@bsd.com.br> <1047394639.643.1654181685742@localhost> From: Otacilio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4LKsCd6RFwz3pLg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsd.com.br header.s=capeta header.b=d0GJL9IX; dmarc=none; spf=pass (mx1.freebsd.org: domain of otacilio.neto@bsd.com.br designates 2607:f8b0:4864:20::234 as permitted sender) smtp.mailfrom=otacilio.neto@bsd.com.br X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsd.com.br:s=capeta]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[bsd.com.br]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsd.com.br:+]; NEURAL_HAM_SHORT(-1.00)[-0.998]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::234:from]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Em 05/06/2022 14:31, greg@unrelenting.technology escreveu: > June 5, 2022 2:18 PM, "Otacilio" wrote: > >> After some debug I found that this routine is returning -1: >> >> Someone can give-me a hint about the function of psci_callfn ? > PSCI is an interface for calling into power management firmware. > Just saying that *a* PSCI call failed is not informative, we really need the arguments of the call. > > I'm not sure what firmware you have on the SD card but armstub8 from > https://github.com/gonzoua/rpi3-psci-monitor should support: > PSCI_VERSION, PSCI_CPU_ON, PSCI_SYSTEM_OFF, and PSCI_SYSTEM_RESET. > Which should be all the calls that FreeBSD ever does… I have solved the issue following the procedure of this message. I think that the problem was the old firmware. https://lists.freebsd.org/pipermail/freebsd-arm/2020-March/021430.html Thanks a lot