Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2045106imu; Sun, 16 Dec 2018 15:28:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/XeuCmqrMB2icBumlMiCBRvpsXZEjujJEHQ1CgOo3T/bOTv7yyVhbwxl80gJ5h6ciCWYSF9 X-Received: by 2002:a63:7c41:: with SMTP id l1mr10064523pgn.45.1545002882945; Sun, 16 Dec 2018 15:28:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545002882; cv=none; d=google.com; s=arc-20160816; b=WHNZERm/4lu+WHUDaX0LTvp/mnPdcxodi+4+bRHfKJqP4vqd6ENjvcmKnzKq1kpiF4 9lOVvGFvx5Gj/QJx6f4cNWa8E39o8rQ3a4GrYG7mt+qZsnUf+dgQoQ3y11dZNYWEo9Ls TkkDr8bXbJ6CrIdktrex8u1vuUzb/vm+Iizz5BQDjMdy/qekkwr2fI5kffcbPiI4SGzk riuo202koMXddDzqzUPuazaa8t1FO2XIZ2oZTAmls7s7PZskJLeL9GaiGvPds/WvT9TC dhpmSA0EUcQIOi5tuQBCtJqMoYbehvW9zllHu5qD4Oo8IxRQxFKVMIpfJw9qKMJg4MT3 nRyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EavIckkG0CsdZ2qkKlOGygOr08ukf3mcJXqDqLICEd4=; b=THFluNhGBopWjGtVWCYLYeQWHB1Spkz4zaFV81vwGhaqVphPOLS50zc/QGphxJ/WxS QLp2RFBUZKK1x9I5RHoLUbdXfpmiM9wOHtpmMhtTU2OKBGsXy+6W2MiWy2a8+DDqUD4w CcFXjzkUjwzoZkWYRNpACaZl3wUlh9YqLMdkLss4/6Mx3ILgES+VROg5y8udH5vpeUgA mMtKKtJS2AdSs9QHevHS2zbfsBRT6WG5VTdtsl9BfTUxbG4sExqspMV2vlKwTDvIQilp uQUmPeODFKtdI1ev0QYQK4rtldzdAFt5+KpP1O4JkG6Pdk5RbitIuNspEFDJt7XFo5/6 Fs2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b="WdTdzif/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si9646171pgq.535.2018.12.16.15.27.33; Sun, 16 Dec 2018 15:28:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b="WdTdzif/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731151AbeLPX0N (ORCPT + 99 others); Sun, 16 Dec 2018 18:26:13 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:55513 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731012AbeLPX0N (ORCPT ); Sun, 16 Dec 2018 18:26:13 -0500 Received: by mail-it1-f193.google.com with SMTP id o19so16395611itg.5 for ; Sun, 16 Dec 2018 15:26:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=EavIckkG0CsdZ2qkKlOGygOr08ukf3mcJXqDqLICEd4=; b=WdTdzif/YexPRKiaKDnPlS4T4i3EluuXHZFPCe2j9u1tQkqdu10uiA6jPMZX/hGMfP MfW9zQvRVOcMGFPZoD5WVInFOdO7swQJz1wy/zc99saqDe6I61PrvywZKsTpsXMwCz+w q5NXv5sLljdfMG01bo8NL6MpKnAVSMNtSGM9DZ7l1B2R+cfjS/AEtugL6poytNS2lf44 drMTK/sYpXyE3emmuUPDwujX4698sVGzGFp96/as/HPdvqpeXirTUk8CS5V6r7mZbPQS 74eap8VfuRcwZYTrsevzGAV9e00ZQaYAS+8gEQ6mqhsEWlZV75zkj8Kw/5lDU5SELs4Z cVvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=EavIckkG0CsdZ2qkKlOGygOr08ukf3mcJXqDqLICEd4=; b=NTDq2+3owZ4HLFJgLUkEbSkmfr8wTAFQEA28F3REJofTfxAYU7CxFcyobMz+NO7x// N0hXnkEb5D/W/Uf/R9/LPKpW5vYsFx1xSRKmkOgCpgmwCscCdFVKmGOsV2EWRcr/BMXu 64Vho+PH/Cd+WTCAbK53m8k/hu4wMlf+NM4N4OjZNq6YYqHPBysid+WuPNVF5hs1aKKl 9UY2Me++a6xtaiBRaqMfQ7ayiLTkKGBj6tpFU3hhgdNwh/NqI8yTwa8bTcsc3WqNd23w l8sOF5Up+3o+TLuwOcJ4/XiMXlDNuRa0HYnPlDZjHMpHLja3ejcsk/edUQ3j4djbyBh0 P+ZA== X-Gm-Message-State: AA+aEWZ+ufos0eE/BRhOW0+yP29pkc2bDSxkrIBHdtu14fI9v5CAlqN6 ScoFPG3vwjb1DuKcVTEfi3DxRryFwZp1ApGa3axSwQ== X-Received: by 2002:a02:5ec9:: with SMTP id h192mr10118712jab.112.1545002772089; Sun, 16 Dec 2018 15:26:12 -0800 (PST) MIME-Version: 1.0 References: <1544533009-12425-1-git-send-email-mw@semihalf.com> <20181216.124120.731491122771817496.davem@davemloft.net> In-Reply-To: <20181216.124120.731491122771817496.davem@davemloft.net> From: Marcin Wojtas Date: Mon, 17 Dec 2018 00:25:58 +0100 Message-ID: Subject: Re: [PATCH net] net: mvneta: fix operation for 64K PAGE_SIZE To: David Miller Cc: Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org, netdev , Russell King - ARM Linux , Maxime Chevallier , Thomas Petazzoni , =?UTF-8?Q?Gr=C3=A9gory_Clement?= , Antoine Tenart , Stefan Chulski , nadavh@marvell.com, Grzegorz Jaszczyk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, niedz., 16 gru 2018 o 21:41 David Miller napisa=C5=82= (a): > > From: Marcin Wojtas > Date: Tue, 11 Dec 2018 13:56:49 +0100 > > > Recent changes in the mvneta driver reworked allocation > > and handling of the ingress buffers to use entire pages. > > Apart from that in SW BM scenario the HW must be informed > > via PRXDQS about the biggest possible incoming buffer > > that can be propagated by RX descriptors. > > > > The BufferSize field was filled according to the MTU-dependent > > pkt_size value. Later change to PAGE_SIZE broke RX operation > > when usin 64K pages, as the field is simply too small. > > > > This patch conditionally limits the value passed to the BufferSize > > of the PRXDQS register, depending on the PAGE_SIZE used. > > On the occasion remove now unused frag_size field of the mvneta_port > > structure. > > > > Fixes: 562e2f467e71 ("net: mvneta: Improve the buffer allocation method= for SWBM") > > Signed-off-by: Marcin Wojtas > > The discussion died on this, but the bug should be fixed. > > So in the short term I am applying this and queueing it up for v4.19 > -stable. > > Thanks. Thanks. Indeed, the patch is valid as a fix for current version of SW BM. However, because this concept is broken, I will rework it and submit patch/patches some time early 2019. Best regards, Marcin