Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1174278imm; Wed, 1 Aug 2018 11:25:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdOC/4cOVJsPFn026bbUeH4VwrNeZZ6qiC6q1et9S1amfwSA3W6VslYoHb9o3p8THtOikaT X-Received: by 2002:a17:902:583:: with SMTP id f3-v6mr25825087plf.115.1533147906661; Wed, 01 Aug 2018 11:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533147906; cv=none; d=google.com; s=arc-20160816; b=UxQnFETMj3B7ZhHke8x4buOx9XDx8VuzRM1XUWPWt4BUyJwcyXEO7ZhBt4L/gxkd4y /0x76qigi1RJ3K0N/hish6HWv0Pn4XM3AsqTjza56GiMzc9hUIWE48HTFucFvf0+ZIR3 GwUbMJ4BDVm5jGxnEYyMvF5bBP3i/2wmWY6rVKIOrD+USDC1NVERNjzZx9O6xuk7bFVZ aaxE/nMB71ZK76+6o65I5PVmM+Rumw22XFp/P9YGQCgaSeDgLR1Vl1VPZM518/sUqAS2 yYl0yL+zfV+vIZTfOIaRALBjhGTNJSwpHN86192vnyWYX6lIpgXB1w327FjB/aD3CZZA ikdQ== 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:arc-authentication-results; bh=EWf0VW5aUhoa979lhJ0aysKT+iQ4faN+4WDPZzsCyls=; b=diB4tuwffVv1Zm2gSNJDWgAgzBGjRo9AohbDhr5XmdSKCJTgV5QC9dEeD3Gzxn28rV 1VyyfM8oyyFawY/VfgfuEHJI86vi6f3tfitimm3x+PtvP/ERPxzzSP3Twp9mKgQHGw/t pwFczN/8NjrvFCx4mszmVwy/updR4Tjg09Il+EEvMx4FiGcQuMitt45uBrjf1RCzodWV DWeds7ogdTsibKR9Mkz0K70Z+rJLEpr+EmPd4deA4oLseiKumCjdaPrzA9jD418cAf+z J9OTeZJ4jHFxug+2d6TdUHwSWMHXCFwesgl+JDBACyeLssmyPowcgszRglquJBWqmlWg plIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TsxtuiRv; 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 i64-v6si19491985pfb.314.2018.08.01.11.24.52; Wed, 01 Aug 2018 11:25:06 -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=fail header.i=@gmail.com header.s=20161025 header.b=TsxtuiRv; 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 S1733057AbeHAUK2 (ORCPT + 99 others); Wed, 1 Aug 2018 16:10:28 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37082 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731500AbeHAUK2 (ORCPT ); Wed, 1 Aug 2018 16:10:28 -0400 Received: by mail-pg1-f194.google.com with SMTP id n7-v6so11226320pgq.4; Wed, 01 Aug 2018 11:23:28 -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=EWf0VW5aUhoa979lhJ0aysKT+iQ4faN+4WDPZzsCyls=; b=TsxtuiRvSn8R7WMN/bSedaYzEzmb5WON3qqa+UhZStffixRL4HG5Ttq1PsZRmTCJUN LZdPw1DoUIi06eut0s2zBfWRhJ0q68sUNGheyeyBoRqQFoI95pEvaqBzbZqhf0/9s+Zo 3+gGU/caGh72Af0ZwRn6c5BQVVdIUQJfcFs/VCI8tshV/usVw9jzxiJOAtau7lFhpZyM iK5EEauSHkvcMeXPKv20ZAFt74tydYmJb2L0BCfLKZOcRs2SkYNSSe7vEG1NrKc6zFuE afSaFpjG7ZIB5tAbWKH6Kj5Bf2Iooz1X5tJPp9oM5RaXOnh6u2CLl01wIZkRm1MBFF+F 1yCQ== 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=EWf0VW5aUhoa979lhJ0aysKT+iQ4faN+4WDPZzsCyls=; b=f8cjis4O0hrD42LKEEnryS48wmq0x0bK3usgZTu6SAf2zLnVpnWvt4qceUlVrccq9k JcycCETxbbJYyFyG+UFjOX0BhVt7XVikZbPy6I4FPv1CtIrFf1avoJhWyquNImPjlnpV Fu+MtrVh+iSrzYVO1iJ9JZ/ML0khQ0qnqsJT2trIVHOkJnpluO1US8eCA94qiNN9h5jB f3UwbFNLxHkTFDbDoVGB/bez1CFjUg7VZkJFFI/bI0i0HGLcebFl8oqlOfYaG6s9wG1m ru3GPUNBsu/23JR7QB9emUomPfIi/2XsG3uLXYjL0UudYOES2Us2z4pTAkqmaNxqVwgY xfrQ== X-Gm-Message-State: AOUpUlHyR/MfLF2SoprrW5vWCrE7bDJsVF/v6cHUbhvKvzVP7Od8SRfQ sxdZW4BHdUgmmUVYjzs2egA= X-Received: by 2002:a63:a347:: with SMTP id v7-v6mr24967706pgn.182.1533147808447; Wed, 01 Aug 2018 11:23:28 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id h29-v6sm3766766pgh.37.2018.08.01.11.23.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 11:23:27 -0700 (PDT) Date: Wed, 1 Aug 2018 11:23:26 -0700 From: Guenter Roeck To: Robin Murphy Cc: Stefan Agner , Christoph Hellwig , Krzysztof Kozlowski , Ard Biesheuvel , Rob Herring , Frank Rowand , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fugang Duan Subject: Re: [BUG BISECT] Ethernet fail on VF50 (OF: Don't set default coherent DMA mask) Message-ID: <20180801182326.GA20550@roeck-us.net> References: <20180728165820.GA5731@roeck-us.net> <45f7fc82-fb9c-e666-4ada-c5338d2c1c96@arm.com> <39fa11ce4b7dd151d98868f375baf818@agner.ch> <0e893142-a5db-d119-6eb3-f849db6b5d04@arm.com> <4ce17098-850f-3bb0-b977-8d7932e74e06@arm.com> <20180731154353.GA29601@roeck-us.net> <10c2ca4d-d587-2705-2802-b6df3dc72fd4@arm.com> <20180731173859.GA17007@roeck-us.net> <9f32010e-3bcb-2153-dac3-996e9d1b1e9b@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9f32010e-3bcb-2153-dac3-996e9d1b1e9b@arm.com> 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 On Wed, Aug 01, 2018 at 05:33:30PM +0100, Robin Murphy wrote: > On 31/07/18 18:38, Guenter Roeck wrote: > >On Tue, Jul 31, 2018 at 04:58:41PM +0100, Robin Murphy wrote: > >>On 31/07/18 16:43, Guenter Roeck wrote: > >>>On Tue, Jul 31, 2018 at 03:09:34PM +0100, Robin Murphy wrote: > >>>>>Please note that sparc images still generate the warning (next-20180731). > >>>> > >>>>Ugh, OK, any ideas what sparc does to create these platform devices that > >>>>isn't of_platform_device_create_pdata() and has somehow grown an implicit > >>>>dependency on of_dma_configure() since 4.12? I'm looking, but nothing jumps > >>>>out... > >>>> > >>> > >>>I suspect it might be of_device_register(), called from > >>> arch/sparc/kernel/of_device_64.c:scan_one_device() > >>> arch/sparc/kernel/of_device_32.c:scan_one_device() > >> > >>Right, that's as far as I got as well, so I'm struggling to see how these > >>things ever got DMA masks set before the of_dma_configure() call moved out > >>of of_platform_device_create_pdata(), or why it wasn't a problem prior to > >>the generic dma_ops rework if they didn't :/ > >> > >Ah, ok. No idea, sorry. All I know is that the messages were first seen > >with next-20180727. > > OK, I spent this afternoon wrangling toolchains and QEMU to boot an > instrumented 4.11 kernel, and the answer is that the warnings are arguably > correct. These masks have indeed never been set where they should have been, > but then the sbus_dma_ops don't reference them anyway. > > The coherent mask WARN_ON *should* have started appearing in 4.16 with > 205e1b7f51e4("dma-mapping: warn when there is no coherent_dma_mask"), but > happened to be hidden by the inadvertent side-effect of the prior > dma_configure() change. Since there's seemingly no actual regression of > functionality, I'm inclined to leave this in the hands of whoever cares > about sparc32. > You mean there is now a warning stating that coherent_dma_mask is not set, but coherent_dma_mask isn't used by sparc32 in the first place ? Guenter