From nobody Sun Oct 15 10:26:13 2023 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 4S7bxd4vjmz4wl25 for ; Sun, 15 Oct 2023 10:26:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S7bxd3BP4z3DVd for ; Sun, 15 Oct 2023 10:26:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697365573; a=rsa-sha256; cv=none; b=v01njEC4rhT2ZLn8Vhax19uxBKybVnBERntkoeM+r1zB2Vvik5XzGNLcashhOpjiZenCwD mOFRIlGsOXTUGKyouEU+qVOsn2XF/0sT5MAgot/eJd1O4iCWYzQuI9JYlBy4k/ky6VVA6e njZjFVgLrPe4WVNnqGvW5+9FE4fqytgQCWtwGCkcdMgmUTaYh5twDpmDxHQo9vBR+hH2tw Ld5O/zvV2vJqEetCjaglvmacV9OsDs77PtVff6CY2kbOS+rcH+6Fr/hBAtXRZ4EqE4E6MV VSTYzXrAExTFVSwNUL3CPeOJVL32dvkYZm3WM7dUefsIW3f4To1a2p4wAEtygw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697365573; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5MJKkKqxGe3GZgZ2PtIgUmOWDkA4sHQ0Kxq4MqZXR0Q=; b=K+/618lsiMikGtd+0G4/r253y9U5HM3musdrIWSm1AdVEQZnIYEEldiSQaYEAOrKEpwUZf S/PKDuXVX9ulm0nPz4JeHBSaFTSaQWf3Cqd92zoBuYp0R8lQYGzL80OXdhdH5CTVizagjS 7WmWfjAqjHI2CRuhOBe0b5V5stn/Z7oxmtYrLnM7s4VJhsFiw7oYWztwAttCG/BtjXErn3 657kSd+0xfyLbNQao9G/jnWd6dozgveRlsKX8iEbpGfRLaitX1+yVLulz6nBt8MtxPe3Kt dKUYWwujjqGn01B6Yn5Wzj3TWK1McTJMesl4FX0r9qGWkmRVa4R5z9LAYhsKaw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S7bxd2Ft4z18KY for ; Sun, 15 Oct 2023 10:26:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 39FAQDcK029990 for ; Sun, 15 Oct 2023 10:26:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39FAQDT6029989 for freebsd-arm@FreeBSD.org; Sun, 15 Oct 2023 10:26:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 274484] NVMe drive not working on RK3566 Rock 3C Model Date: Sun, 15 Oct 2023 10:26:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: szczepan@szczepan.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274484 Bug ID: 274484 Summary: NVMe drive not working on RK3566 Rock 3C Model Product: Base System Version: 15.0-CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: szczepan@szczepan.net Hi. I'm trying to get NVMe driver working under this board. From the specs it's very similar to Quartz64-B, which should have some support already in kernel and also in DTS (PCIe is enabled in there). I'm using FreeBSD 15.0-CURRENT #0 main-n265904-bb679b0c4909. DTS used is the one from https://github.com/warpme/minimyth2/blob/master/script/kernel/linux-6.5/fil= es/0845-arm64-dts-rockchip-add-dts-for-rock3c.patch (I've compared it with Quartz64-b and only some USB diffs are in there). The effect is the same with this DTS and Quart64-b one. Ethernet works, 2 USB works. Here are some logs from boot (if needed I can provide full dmesg, I think this part is related to pcie): pcib0: mem 0x3c0000000-0x3c03fffff,0xfe260000-0xfe26ffff,0xf4000000-0xf40fffff irq 34,35,36,37,38 on ofwbus0 rk3568_combphy1: configuring for PCIe ref_clk=3D25000000 pcib0: Bus is not cache-coherent pcib0: Using iATU unroll mode pcib0: Detected outbound iATU regions: 8 pci0: on pcib0 pci0: domain=3D0, physical bus=3D0 found-> vendor=3D0x1d87, dev=3D0x3566, revid=3D0x01 domain=3D0, bus=3D0, slot=3D0, func=3D0 class=3D06-04-00, hdrtype=3D0x01, mfdev=3D0 cmdreg=3D0x0107, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Da, irq=3D255 powerspec 3 supports D0 D1 D2 D3 current D0 MSI supports 32 messages, 64 bit MSI-X supports 1 message in map 0x10 secbus=3D1, subbus=3D255 pcib1: at device 0.0 on pci0 pcib0: failed to reserve resource for pcib1 pcib1: failed to allocate initial I/O port window: 0-0xfff pcib0: failed to reserve resource for pcib1 pcib1: failed to allocate initial memory window: 0-0xfffff pcib0: failed to reserve resource for pcib1 pcib1: failed to allocate initial prefetch window: 0-0xfffff pcib1: domain 0 pcib1: secondary bus 1 pcib1: subordinate bus 255 pci1: on pcib1 pcib1: allocated bus range (1-1) for rid 0 of pci1 pci1: domain=3D0, physical bus=3D1 found-> vendor=3D0x1217, dev=3D0x8760, revid=3D0x01 domain=3D0, bus=3D1, slot=3D0, func=3D0 class=3D01-08-02, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0000, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Da, irq=3D255 powerspec 3 supports D0 D3 current D0 MSI supports 16 messages, 64 bit, vector masks MSI-X supports 16 messages in map 0x10 map[10]: type Memory, range 64, base 0, size 14, memory disabled nvme0: at device 0.0 on pci1 pcib1: allocated initial memory window of 0x40000000-0x400fffff pcib1: allocated memory range (0x40000000-0x40003fff) for rid 10 of nvme0 nvme0: Lazy allocation of 0x4000 bytes rid 0x10 type 3 at 0x40000000 ofw_pci mapdev: start 300000000, len 16384 nvme0: attempting to allocate 5 MSI-X vectors (16 supported) nvme0: using IRQs 82-86 for MSI-X nvme0: CapLo: 0xffffffff: MQES 65535, CQR, AMS WRRwUPC VS, TO 255 nvme0: CapHi: 0xffffffff: DSTRD 15, NSSRS, CSS ff, BPS, MPSMIN 15, MPSMAX 1= 5, PMRS, CMBS nvme0: Version: 0xffffffff: 65535.255 nvme0: PMRCap: 0xffffffff: BIR 7, RDS, WDS, PMRTU 3, PMRWBM f, PMRTO 255, C= MSS Then: root@freebsd:~ # nvmecontrol devlist nvme0: pt->len (4096) exceeds max_xfer_size (0) I've checked the NVMe under Linux on the same board and it's working fine, = the specs are: root@rock-3c:~# nvme list Node SN Model=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Namespace Usage Format FW Rev --------------------- -------------------- ---------------------------------------- --------- ------------------------= -- ---------------- -------- /dev/nvme0n1 MCF433D00C30E E2M2 64GB=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1 61.87 GB / 61.87 GB 512 B + 0 B 10100080 The drive is FORESEE FE2H0M064G-B5X10 64GB M.2 PCIe --=20 You are receiving this mail because: You are the assignee for the bug.=