From nobody Tue Jun 25 07:00:20 2024 X-Original-To: pf@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 4W7bLs1W4Sz5NtyP for ; Tue, 25 Jun 2024 07:00:21 +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 4W7bLs0CDkz44f4 for ; Tue, 25 Jun 2024 07:00:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719298821; a=rsa-sha256; cv=none; b=OADZYNzI4OLxmS/3ZbHJ7HZK7TS5uvDNFDoZQBGEJLtwB80qJRkutwP+rVFxbNX8Dv47S3 w6ERfgz6hBaNFoCl3QvAOboxCZRhLyqfBLqRE7S+MaYXPPLJh3oNL18Y5E6Xu6xfTKK5gB DOeTGIj53oHEwGFU728kaILEjjHyEEJVfuCAJbZJ7aUKDRfTm7oz3xKvN+jwLMGCpIkvEf 76zSBWJP3vJrPKT8k9wqDcRB1WAjuvd9dSgQy2MBq9YJ9URYq1nrj+C1x7OHeYRWToGlIP mc24dQAZRP9PA8MacKwdApJ8i3os3UGb0DOvoKYVTP0suvX4LLNlAsbIbRtYcw== 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=1719298821; 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: in-reply-to:in-reply-to:references:references; bh=NT9yiH1ScBbWn/XlujY71Jr/+LAUldsJUIjeQLD5r30=; b=ggQB2yaFS5O/cYnlrJSoj6+4Ycu0BB7HJEq8dJZW0JQhC9kRxzJ7M0U+zmIX3kin1H61W0 gk777P5RjXagNwO0IKdoM/6Sz3aCh1ypPyIHG331dE2WOoLpgzUO2fBCeAK7x5hWUrq1/l AP6Zxi/dEdhn/cTR+y/HnD/zJUnieaDZosNwKLuwC2FVFSe8PAuch5w6EibQFeP5mRn4eU tj7SHm6LptQkxKTMUJkNpGnhdG5QXQb8ozxksZBCXeuW0rPAoH6HCg5HMSSvTamYv/3dh3 2Fo32AepIkxu/Tj8tWUUxU1RvcAv+HuYJxOo5dDqJ9cg6+uWA1yoWLFplOqcFg== 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 4W7bLr6nzczs5C for ; Tue, 25 Jun 2024 07:00:20 +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 45P70KsH075457 for ; Tue, 25 Jun 2024 07:00:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45P70KoM075456 for pf@FreeBSD.org; Tue, 25 Jun 2024 07:00:20 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: pf@FreeBSD.org Subject: [Bug 279830] Using AMD EPYC 9374F 32-Core Processor, PF driver gives error when loading for more than 62 VFs Date: Tue, 25 Jun 2024 07:00:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vdubey@maxlinear.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pf@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-pf@freebsd.org Sender: owner-freebsd-pf@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279830 --- Comment #4 from vdubey@maxlinear.com --- Also, I had further debugged this issue. I had run 64 VFs on server with Intel CPUs (Intel 6342) which can successfu= lly load my PF driver. The log is as follows: dre_drv0: DRE_drvIovInit: Called with num_vfs 64. pcib7: allocated memory range (0xa3d00000-0xa40fffff) for rid 254 of dre_dr= v0 dre_drv0: Lazy allocation of 0x400000 bytes rid 0x254 type 3 at 0xa3d00000 pcib7: allocated memory range (0xa4100000-0xa41fffff) for rid 260 of dre_dr= v0 dre_drv0: Lazy allocation of 0x100000 bytes rid 0x260 type 3 at 0xa4100000 pcib7: attempting to grow memory window for (0-0xffffffff,0x2000000) front candidate range: 0xa1d00000-0xa3cfffff back candidate range: 0xa6280000-0xa827ffff pcib7: grew memory window to 0xa1d00000-0xa62fffff pcib7: allocated memory range (0xa1d00000-0xa3cfffff) for rid 264 of dre_dr= v0 dre_drv0: Lazy allocation of 0x2000000 bytes rid 0x264 type 3 at 0xa1d00000 In this case, as we can see that it was successfully able to "grew memory window to 0xa1d00000-0xa62fffff". But in the case of AMD CPU, we are not ab= le to grow the memory space and get an error as seen in log below: dre_drv0: DRE_drvIovInit: Called with num_vfs 64. pcib15: allocated memory range (0xf9000000-0xf93fffff) for rid 254 of dre_d= rv0 dre_drv0: Lazy allocation of 0x400000 bytes rid 0x254 type 3 at 0xf9000000 pcib15: allocated memory range (0xf9400000-0xf94fffff) for rid 260 of dre_d= rv0 dre_drv0: Lazy allocation of 0x100000 bytes rid 0x260 type 3 at 0xf9400000 pcib15: attempting to grow memory window for (0-0xffffffff,0x2000000) front candidate range: 0xf7000000-0xf8ffffff back candidate range: 0xfb580000-0xfd57ffff dre_drv0: 0x2000000 bytes of rid 0x264 res 3 failed (0, 0xffffffffffffffff). dre_drv0: DRE_drvIovUnInit: Called. --=20 You are receiving this mail because: You are the assignee for the bug.=