Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4088339pxf; Tue, 6 Apr 2021 07:41:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf2J23WvOem+A2AEpYlXI9YbgB2PC4uPAoLPMNruDLNisa6hidsafWGr8LQL/OrZjohkxQ X-Received: by 2002:a50:e887:: with SMTP id f7mr2430456edn.107.1617720089499; Tue, 06 Apr 2021 07:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617720089; cv=none; d=google.com; s=arc-20160816; b=KRVbvFvWYfKq2khMuqfTKMwkrZwvWFwStcISfan4c7Ekoeb2bgs30psTit17wcmvAy dmdB7cQOaKJSVH5v82BOoqcgQmG82YbuehFGSZ59rmV/iFo2mNiqhpMPq5/6LKGwOFrr cV3O46voCRJIVNYD1MJqMmhDRUh6jUtGxp4NyVf37+wNQyDifExRv37PwMvGRA6UcLAr TX1X2oGyQlLNzm2FVXdsVLrPB7MrEEJn/LfkvqrC2nC7LEM4PevwBpbE32T6TjsIR2Aw Ll5LKKZyN52AUTMtHIhL1ZGP6ZRYFE/gYFdTaEapzZdFWyoEdYzH0+779opy+F2VRp2G 4iQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=hRox+m0HCb4FpA/EUkWFuOtMM3ToOUYtmjxD+DRH/Zk=; b=0wGVKN4x+V+tzmqgZnqSz8r7LjBFd/gvJCnqHsp6NdETUolZFV84krbZCrvXnGzE2X VWT6DhoS43GCZUxjM48OZjjRB/fX1iGzEYyGL1VGGwqiQw6xkK0crYdjMzwdloMKBmJP A0uToEEUvnKXnRBluIenc1YiRlD/icQkpjJzgfTEZgepA2wGdgjVR9YC2/4RSomT+jr+ CO79Cakfdt1LHPHOIoLbEQC3Qn2p9WScv1IoUo76oHF9ya8Hu9Lt9LbattC+7K4+Ksdj Y57eFqSsSvlbfghNBPZQcnX/EHEXUlz3Uut0X8edcFxSqqmRpwdS23xy9X6a+/xRJqmX rYPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tgksicBz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dy26si15294835edb.174.2021.04.06.07.40.42; Tue, 06 Apr 2021 07:41:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tgksicBz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242032AbhDFCgP (ORCPT + 99 others); Mon, 5 Apr 2021 22:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232271AbhDFCgL (ORCPT ); Mon, 5 Apr 2021 22:36:11 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E491BC06174A; Mon, 5 Apr 2021 19:36:04 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id z15so13567634oic.8; Mon, 05 Apr 2021 19:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hRox+m0HCb4FpA/EUkWFuOtMM3ToOUYtmjxD+DRH/Zk=; b=tgksicBzGTwv+4lr27tWfD7Sz8d41BnclMCik4S3ZhaI4KcPE91jCI+gpFgRVZXK1w 3kbsaYp922RsZP/XWMbkoWoF3EKn6cLRWw3ykIeQFRvj0URm8n7EG+LTpLS8xB1xgw0U tuuLQwam8fXq20b6cgL64OmYukkypd94abBUowZZdifDsnck5a0MOGbM7kRn8+/AAuZh 3f9iNEU9xo3+TB5foE0/HUGMuhI1m4p7o37TnrN44XafVSESLuAGmpHTXURM0DIlBdgP qUZU7tcc0DEGLkUvbNmaL9lgLekN8z2c8khpQK7U2KReOM5m8NDkI0acSHfrOFsnf3sQ e9fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=hRox+m0HCb4FpA/EUkWFuOtMM3ToOUYtmjxD+DRH/Zk=; b=CcjWRqy8Xfa0wQrlFZMKZRQHZOgKglAX+bz44Td6H33aqww+XBvKS4HarcMi6lOS2I PG5WCQnFks0WLcrTxeT1sbA/FIMfp299AKH1uCDtQhRBGLFdpowKfr+VoqEMeqq7rbA8 nvL4j5Pn6bYojb6hR2go3Zyaf+qc0bYozgwQnzsMZDeN3uaz6Yk/eAAMO7SJkls+ROf7 oJi9fhoRJa3zXd4sQnB+ujcMs2nQZpU+qhOItYlZD0KtF7BOADjVr6zEWJgip25d/Uxb UYMy3IVld96HuV78cymvXcRcObhsQvNh3ZQML//sF9mqd9Exf/XtagTNayRJ2Zt5rjMt 6IDA== X-Gm-Message-State: AOAM533mIHCFH1SHosY0FYushLxCAmfM6vRCd+fCI9BiQZKf1FkOOS8n vg5GfJBqgkp7p8yZpe/bOVU= X-Received: by 2002:aca:1e11:: with SMTP id m17mr1484928oic.61.1617676564228; Mon, 05 Apr 2021 19:36:04 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id g21sm3847456ooa.15.2021.04.05.19.36.03 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Apr 2021 19:36:03 -0700 (PDT) Sender: Guenter Roeck Date: Mon, 5 Apr 2021 19:36:02 -0700 From: Guenter Roeck To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, pavel@denx.de, jonathanh@nvidia.com, f.fainelli@gmail.com, stable@vger.kernel.org Subject: Re: [PATCH 4.9 00/35] 4.9.265-rc1 review Message-ID: <20210406023602.GB20578@roeck-us.net> References: <20210405085018.871387942@linuxfoundation.org> <20210405175629.GB93485@roeck-us.net> <20210405235155.GA75187@roeck-us.net> <20210406022200.GA20578@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210406022200.GA20578@roeck-us.net> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 05, 2021 at 07:22:00PM -0700, Guenter Roeck wrote: > On Mon, Apr 05, 2021 at 04:51:55PM -0700, Guenter Roeck wrote: > > On Mon, Apr 05, 2021 at 10:56:29AM -0700, Guenter Roeck wrote: > > > On Mon, Apr 05, 2021 at 10:53:35AM +0200, Greg Kroah-Hartman wrote: > > > > This is the start of the stable review cycle for the 4.9.265 release. > > > > There are 35 patches in this series, all will be posted as a response > > > > to this one. If anyone has any issues with these being applied, please > > > > let me know. > > > > > > > > Responses should be made by Wed, 07 Apr 2021 08:50:09 +0000. > > > > Anything received after that time might be too late. > > > > > > > > > > Build results: > > > total: 163 pass: 163 fail: 0 > > > Qemu test results: > > > total: 383 pass: 382 fail: 1 > > > Failed tests: > > > parisc:generic-32bit_defconfig:smp:net,pcnet:scsi[53C895A]:rootfs > > > > > > In the failing test, the network interfcace instantiates but fails to get > > > an IP address. This is not a new problem but a new test. For some reason > > > it only happens with this specific network interface, this specific SCSI > > > controller, and with v4.9.y. No reason for concern; I'll try to track down > > > what is going on. > > > > > > > Interesting. The problem affects all kernels up to and including > > v4.19.y. Unlike I thought initially, the problem is not associated > > with the SCSI controller (that was coincidental) but with pcnet > > Ethernet interfaces. It has been fixed in the upstream kernel with > > commit 518a2f1925c3 ("dma-mapping: zero memory returned from > > dma_alloc_*"). This patch does not apply cleanly to any of the > > affected kernels. I backported part of it to v4.19.y and v4.9.y > > and confirmed that it fixes the problem in those branches. > > > > Question is what we should do: try to backport 518a2f1925c3 to v4.19.y > > and earlier, or stop testing against this specific problem. > > > > Another update: The following code change fixes the problem as well. > Commit 518a2f1925c3 fixes it only as side effect since it clears > all DMA buffers. > > diff --git a/drivers/net/ethernet/amd/pcnet32.c b/drivers/net/ethernet/amd/pcnet32.c > index c22bf52d3320..7a25ec8390e4 100644 > --- a/drivers/net/ethernet/amd/pcnet32.c > +++ b/drivers/net/ethernet/amd/pcnet32.c > @@ -1967,7 +1967,7 @@ static int pcnet32_alloc_ring(struct net_device *dev, const char *name) > return -ENOMEM; > } > > - lp->rx_ring = pci_alloc_consistent(lp->pci_dev, > + lp->rx_ring = pci_zalloc_consistent(lp->pci_dev, > sizeof(struct pcnet32_rx_head) * > lp->rx_ring_size, > &lp->rx_ring_dma_addr); > > I'll submit a patch implementing that; we'll see how it goes. Sigh. That doesn't work; upstream uses dma_alloc_coherent(). We could apply the patch making the switch, but dma_alloc_coherent() doesn't clear memory in older kernels (we are back to commit 518a2f1925c3 which is introducing that). I'll just drop pcnet tests for kernels older than v5.4. Guenter