Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10900794ybi; Thu, 25 Jul 2019 06:47:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGs4AVPZ1Zo7tH9PWX7sbq81esWGuwDS3VTS0VPR3NMVJnrLRj6/dbd0ofMshKFqBzw+Yg X-Received: by 2002:aa7:8b52:: with SMTP id i18mr17058461pfd.194.1564062478793; Thu, 25 Jul 2019 06:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564062478; cv=none; d=google.com; s=arc-20160816; b=sZDSpXjCH4fNGv0bq+3p4GyP22DAjR5K1mcNX/gNTJiZca/CAEEAd4kiSOAZcEycUB D4eqm7DAMHVui/UF7ZgKefw/c4jOQw8fitYiN8xTp/FKDgA/OU8/dso6JCVccw/tGgja Q+6l9V+3bcS0g/IIUjd+Td4c2ETf1b9kQVC2WchDTMdooOwR9Br33BuBIZJsJVarzDOV hXOUm0WZNr1Y7Uhxd2Eg4GLjzG5hEIbWVR+eICOoR1r3LmyUjz4sjBal377AQfNi37yy N3PDAQMumOXb5QXx2kUmRV5dTpdQRCrAOs7AKoRIhrUk66xJOD62/8xiFUoulsk8KpvG 9LRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/KNocy2+ZfOQXTjSVoKpw5gYwyEUDk8UgKcJTP4ngYE=; b=WVbuOUILNOM8Ki4Qe2tckjTmDOmJfQUMphiQ9baiiN0JOMJBkb79LIYnrguHSU4Mac bqdHHJWhivdO+QMITJ2Ht6TU86tiQFKvInTfHR+SRBedme9R8Kk5kBZ6v1KHberBWy3A UzKCwNofOFMAOptV6DHpHd1DfpvEKeSzmtLwk8Q/ARfZ+FdeNUY+78d69EhlSKM1bkWJ FHxvg3/BOBH99pB+LkKkizWXIAFjTFl0kulfWCxGN5e1RIDQOy4JD1P1aUeFYpx7MUs6 U1uqT/pUdNnmsNtLz1zEi/0133/hApCu0PiWJ0GG/cvVtb8ESejCEpsDzx2sPoNjR/tQ 7lrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MAEDyrQN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si17943932pgg.489.2019.07.25.06.47.43; Thu, 25 Jul 2019 06:47:58 -0700 (PDT) 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=@linaro.org header.s=google header.b=MAEDyrQN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404116AbfGYLj3 (ORCPT + 99 others); Thu, 25 Jul 2019 07:39:29 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35226 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389593AbfGYLj3 (ORCPT ); Thu, 25 Jul 2019 07:39:29 -0400 Received: by mail-wm1-f66.google.com with SMTP id l2so44424059wmg.0 for ; Thu, 25 Jul 2019 04:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/KNocy2+ZfOQXTjSVoKpw5gYwyEUDk8UgKcJTP4ngYE=; b=MAEDyrQNT8xSuX9iSr/7BWAuVtiFFg0r91vvdxT2++HHJS9g3J0YPwvOtkJtKUq8Jv 5iKmWqJK52t0LH1sXJk3PO+C21INeHi4V/ZYW7YuPXVIBflnQMtUHe6awRTT5dvD1DaE WpfQIVfVij+bSGThMlicGuVLRiLpF6rqQwZpgSsW3OX9UHyDapWCYIrbuJner3poxc++ G0Bn8vzCLpCMRU3GuO3rYDre/AQ/pQH9pBaRn/BU0lkFmSiIGNMktCQBPARjaQkabMe+ GuF14I1ZfrdG7ZX9sunB4JjQ9JvX8MVHFeTldfj+sF04kvwCNlmOmMZTYqLm/phbk5K8 qnTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/KNocy2+ZfOQXTjSVoKpw5gYwyEUDk8UgKcJTP4ngYE=; b=Kq8KajqyW7XTP8nrhGG3UT706FGX2E6AouLhtWogBBlBL4gP5JX145taREElR+C8W5 xBAosRxd0y5XV1dnj+jDXCxINztd01NDwQCf0xQ7Dz1Ij0B5qJcER2gY++MHqXKpVwrr N26Pgx1rzXD3EjPpSpSz8/jd/fRCM7ZqWK3qJefR/qnprqG3caE8igDmVJGMQtiYthY+ ffwxVRfIW8izLVdLEJOeY+lwFbICqFBQye+ZDNd3lWVEvJbweYjQ7JI++ICHTBd7ZQU/ MvrPKUgVtSVvd0Q80Pmqct7bpQ+GgOkdIeQ0IX0D+WcB8ozuj/2/66yuvGI1FnJVHZts K5bQ== X-Gm-Message-State: APjAAAUEe4GK4duVRL2hxn3+7Ec4dEpVkiZOv/CGJPyjqE+g9oUj1wMp nqk4fUD77m/10UbFLpZGLy29xbeIta8= X-Received: by 2002:a7b:c5c2:: with SMTP id n2mr77541522wmk.92.1564054766915; Thu, 25 Jul 2019 04:39:26 -0700 (PDT) Received: from apalos (athedsl-373703.home.otenet.gr. [79.131.11.197]) by smtp.gmail.com with ESMTPSA id p6sm53195376wrq.97.2019.07.25.04.39.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jul 2019 04:39:26 -0700 (PDT) Date: Thu, 25 Jul 2019 14:39:22 +0300 From: Ilias Apalodimas To: Jon Hunter Cc: Jose Abreu , David Miller , "robin.murphy@arm.com" , "lists@bofh.nu" , "Joao.Pinto@synopsys.com" , "alexandre.torgue@st.com" , "maxime.ripard@bootlin.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "wens@csie.org" , "mcoquelin.stm32@gmail.com" , "linux-tegra@vger.kernel.org" , "peppe.cavallaro@st.com" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool Message-ID: <20190725113922.GA1703@apalos> References: <20190723.115112.1824255524103179323.davem@davemloft.net> <20190724085427.GA10736@apalos> <20190724095310.GA12991@apalos> <33de62bf-2f8a-bf00-9260-418b12bed24c@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jon, Jose, On Thu, Jul 25, 2019 at 10:45:46AM +0100, Jon Hunter wrote: > > On 25/07/2019 08:44, Jose Abreu wrote: > > ... > > > OK. Can you please test what Ilias mentioned ? > > > > Basically you can hard-code the order to 0 in > > alloc_dma_rx_desc_resources(): > > - pp_params.order = DIV_ROUND_UP(priv->dma_buf_sz, PAGE_SIZE); > > + pp_params.order = 0; > > > > Unless you use a MTU > PAGE_SIZE. > > I made the change but unfortunately the issue persists. Yea tbh i didn't expect this to fix it, since i think the mappings are fine, but it never hurts to verify. @Jose: Can we add some debugging prints on the driver? Ideally the pages the api allocates (on init), the page that the driver is trying to use before the crash and the size of the packet (right from the device descriptor). Maybe this will tell us where the erroneous access is Thanks /Ilias