From owner-freebsd-arm@freebsd.org  Thu Feb 25 19:36:00 2021
Return-Path: <owner-freebsd-arm@freebsd.org>
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 A681C56DBEF
 for <freebsd-arm@mailman.nyi.freebsd.org>;
 Thu, 25 Feb 2021 19:36:00 +0000 (UTC)
 (envelope-from samm@freebsd.org)
Received: from reindeer.net-art.cz (reindeer.net-art.cz
 [IPv6:2001:15e8:110:513c::1])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
 client-signature RSA-PSS (2048 bits) client-digest SHA256)
 (Client CN "reindeer.net-art.cz", Issuer "R3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4Dmjh03gXqz3JK9
 for <freebsd-arm@freebsd.org>; Thu, 25 Feb 2021 19:36:00 +0000 (UTC)
 (envelope-from samm@freebsd.org)
Received: by reindeer.net-art.cz (Postfix, from userid 65534)
 id 057275EF40; Thu, 25 Feb 2021 19:35:52 +0000 (GMT)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on reindeer
X-Spam-Level: 
X-Spam-Status: No, score=-0.8 required=10.0 tests=BAYES_00,KHOP_HELO_FCRDNS,
 SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no
 version=3.4.2
Received: from owl.net-art.cz (surikat.net-art.cz [IPv6:2a03:6920:0:10::101])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (Client CN "owl.net-art.cz", Issuer "R3" (not verified))
 by reindeer.net-art.cz (Postfix) with ESMTPS id B75835EEB5;
 Thu, 25 Feb 2021 19:35:51 +0000 (GMT)
Received: from [::1] (account samm@net-art.cz HELO webmail.net-art.cz)
 by owl.net-art.cz (CommuniGate Pro SMTP 6.1.20)
 with ESMTPA id 797868; Thu, 25 Feb 2021 20:35:51 +0100
MIME-Version: 1.0
Date: Thu, 25 Feb 2021 20:35:51 +0100
From: Alex Samorukov <samm@freebsd.org>
To: Greg V <greg@unrelenting.technology>
Cc: freebsd-arm@freebsd.org
Subject: Re: /dev/vchiq on rpi4 (aarch64)
In-Reply-To: <CED3PQ.YQZ9F4DXL3I7@unrelenting.technology>
References: <061e9a1892e1df1e6a01f930efd64547@freebsd.org>
 <60464d431bb929fef2650b397e55f546@freebsd.org>
 <CED3PQ.YQZ9F4DXL3I7@unrelenting.technology>
User-Agent: Roundcube Webmail/1.4.9
Message-ID: <75ebb7d63e522287c28a1ba94d09bd63@freebsd.org>
X-Sender: samm@freebsd.org
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
X-Rspamd-Queue-Id: 4Dmjh03gXqz3JK9
X-Spamd-Bar: ----
Authentication-Results: mx1.freebsd.org;
	none
X-Spamd-Result: default: False [-4.00 / 15.00];
	 REPLY(-4.00)[]
X-BeenThere: freebsd-arm@freebsd.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: Porting FreeBSD to ARM processors <freebsd-arm.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arm/>
List-Post: <mailto:freebsd-arm@freebsd.org>
List-Help: <mailto:freebsd-arm-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Feb 2021 19:36:00 -0000

On 2021/02/25 16:51, Greg V wrote:

>> simplebus0: <mailbox@7e00b840> mem 0x7e00b840-0x7e00b87b irq 55 compat 
>> brcm,bcm2711-vchiq (no driver attached)
>> 
>> Do i need to add something to the dtb to fix that?
> 
> No, sys/contrib/vchiq/interface/vchiq_arm/vchiq_kmod.c needs
> to actually bind to brcm,bcm2711-vchiq and not just the 2835 one.
> 
> (and, well, actually handle hardware difference between these)
Got it, that was my assumption. Already found in Linux sources that they 
are using different addressing and some other model-depended quicks. 
Also it seems that broadcom sources in contrib/ are based on very old 
release. Not sure if i have enough knowledge to properly sync them as it 
seems they been modified a lot.