From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934274AbdKBD30 (ORCPT ); Wed, 1 Nov 2017 23:29:26 -0400 Received: from mail-oi0-f53.google.com ([209.85.218.53]:48182 "EHLO mail-oi0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751428AbdKBD3Y (ORCPT ); Wed, 1 Nov 2017 23:29:24 -0400 X-Google-Smtp-Source: ABhQp+QHpgHJCQLVzLfuLpMhsFYGwkKrDgaxKAC1uUSLWpXaaZjoGfb5/nP8rysR+NvdSsjKWh7WAw== Subject: Re: [PATCH 4/7] MIPS: Octeon: Add Free Pointer Unit (FPA) support. To: David Daney , linux-mips@linux-mips.org, ralf@linux-mips.org, James Hogan , netdev@vger.kernel.org, "David S. Miller" , Rob Herring , Mark Rutland Cc: linux-kernel@vger.kernel.org, "Steven J. Hill" , devicetree@vger.kernel.org, Carlos Munoz References: <20171102003606.19913-1-david.daney@cavium.com> <20171102003606.19913-5-david.daney@cavium.com> From: Florian Fainelli Message-ID: Date: Wed, 1 Nov 2017 20:29:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171102003606.19913-5-david.daney@cavium.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 11/01/17 à 17:36, David Daney a écrit : > From: Carlos Munoz > > From the hardware user manual: "The FPA is a unit that maintains > pools of pointers to free L2/DRAM memory. To provide QoS, the pools > are referenced indirectly through 1024 auras. Both core software > and hardware units allocate and free pointers." This looks like a possibly similar implement to what drivers/net/ethernet/marvell/mvneta_bm.c, can you see if you can make any use of genpool_* and include/net/hwbm.h here as well? -- Florian