From nobody Sun Feb 06 13:46:38 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 AF4F119B6677 for ; Sun, 6 Feb 2022 13:46:42 +0000 (UTC) (envelope-from devesas.campos@gmail.com) Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 4Js9YF3T2xz4kv4 for ; Sun, 6 Feb 2022 13:46:41 +0000 (UTC) (envelope-from devesas.campos@gmail.com) Received: by mail-wr1-x432.google.com with SMTP id f17so20382045wrx.1 for ; Sun, 06 Feb 2022 05:46:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=cMk4T+7SS4VWKvltla3ZNgFaP5ZfkJSCoaRY80ch4so=; b=KZVe39ZLrwhYO3J8WDN5XvIBOLOOeWW4Er792kIpoLMPY6VtRQc+GBp5qpIStAZhkm FJ1Y8MuQxyI4Va1KleQCV8Wys+FbhBb0XnmQkdgop0UT99SwhzR606uitOLRnZKVnISh 3EJsgAl9dAygtcic6mbYquacdQMO3SScYwgu6lt52TTE14mLEKC6KMwWm1ssaevSZsuh lYSbYGk7VdzINNUz0KECRBli9Sa38h5gEdzpvcujwaaICDhlMKH0VgNygASFUB1kz+Ka zZO/1rx/D/7IERgLgRJIYmHhjkEo9bZ8X2UkDg+g+Q1bZHisd2yycg7hU3ehmFvLCAwy ppnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=cMk4T+7SS4VWKvltla3ZNgFaP5ZfkJSCoaRY80ch4so=; b=eq/HBEEfZbiUYQuzNbgLCTtfBg/t5apvIvqi0Fhz+fMYJ0iWiWOJnehyBiHKxSZD9+ BZ89z8UgWQrT1V/IWSJgdgvG4MyJoebNKck+RJ4JfHIi8D/JSzR6somPjiKle8CH7VSA /LMJCvrZCk2TBN6pYCM5TvJWpZ8jdqVzRNp1Med8ZsFgFZtqYZNg8xT4VZhcFcJLjnNT wvgPETodSnD5V2XSRCDiCDuaQY4k3UqN8TFgYjTPLYkvh0Yme2J7TrAg24SBVKaTNbtc By7lcsYICbB4vYf6aaryoZ+w4upBHOpfc+YDT+OqxW2etYfIPB9Tt4ub02vMm76J6KCA p79w== X-Gm-Message-State: AOAM531JQKu+KFM+FU+lcatOM4jKy95zo5rlIDWfMX8SECE7Q4xd0x+y c/6BCaThAetCc42pE/YjWms= X-Google-Smtp-Source: ABdhPJy8lgkGM2sD33RcSfltxB8V94WFGxSQwBFb1VzOVGBb2qwDcveVZE16vsVi49bPJWdXZkCDyQ== X-Received: by 2002:adf:e281:: with SMTP id v1mr6352596wri.308.1644155200410; Sun, 06 Feb 2022 05:46:40 -0800 (PST) Received: from smtpclient.apple (a213-22-242-181.cpe.netcabo.pt. [213.22.242.181]) by smtp.gmail.com with ESMTPSA id j12sm7075139wru.38.2022.02.06.05.46.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Feb 2022 05:46:39 -0800 (PST) From: Marco Devesas Campos Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [PATCH] Experimental vchiq and bcm2835_audio support for arm64 Date: Sun, 6 Feb 2022 13:46:38 +0000 References: To: Ronald Klop , freebsd-arm@freebsd.org In-Reply-To: Message-Id: <8EC05647-00D9-455B-98A9-B83A33DDFC5D@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4Js9YF3T2xz4kv4 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=KZVe39ZL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of devesascampos@gmail.com designates 2a00:1450:4864:20::432 as permitted sender) smtp.mailfrom=devesascampos@gmail.com X-Spamd-Result: default: False [0.86 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; 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:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; RECEIVED_SPAMHAUS_PBL(0.00)[213.22.242.181:received]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.77)[0.774]; NEURAL_HAM_LONG(-0.25)[-0.252]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_SPAM_MEDIUM(0.83)[0.833]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::432:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi Ronald, Thanks so much for trying out the patch out. > On 6 Feb 2022, at 13:05, Ronald Klop wrote: >=20 > Hi, >=20 > I compiled this on a RPI4 + 14-CURRENT. It boots, but I see no = difference in available devices. > I can try to boot it on a RPI3B+ on another time. I *think* the GPU/VC in RPI-4 is a very different beast from the others. = I'll look into it, but if you could give it a try on the 3+ I'd be much = obliged. >=20 > What would be the expected outcome? Where should I look at (or listen = to)? >=20 You should see something like=20 vchiq0: mem 0x7e00b840-0x7e00b87b irq 54 on simplebus0 vchiq: local ver 8 (min 3), remote ver 8. pcm0: on vchiq0 in your dmesg output. The file /dev/vchiq should exist, as well as the following sysctl-s (I'm assuming no other audio devices are attached) % sysctl dev.pcm dev.pcm.0.trace: 0 ...=20 dev.pcm.0.dest: 0 ...=20 dev.pcm.0.%parent: vchiq0 ...=20 dev.pcm.0.%driver: pcm dev.pcm.0.%desc: VCHIQ audio =E2=80=A6 Then if you `cat < /dev/random > /dev/dsp` you should hear some static = coming out of whatever is connected to hdmi (maybe headphones too? otherwise = try setting `sysctl dev.pcm.0.dest=3D1`) Best, Marco=