Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3078429imm; Tue, 29 May 2018 00:06:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIkIES+ymz4WZEdRfXU+bLGSPdiYP26/hb/CjW90taT5nNl21cWUzCjHFeSGm6IQvQDQONr X-Received: by 2002:a65:45c2:: with SMTP id m2-v6mr1793907pgr.189.1527577577301; Tue, 29 May 2018 00:06:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527577577; cv=none; d=google.com; s=arc-20160816; b=J49lkjJEgaeX8QiYIk89SFzPKkgtLiHeYBu0FLi5hqmrAEuqW6WXQnzp/jd1FxhzB8 srt8TY1tSlRoo9+371MgFyPBsefSL6LVFrzo0hSJBp5mNPQMduPYzI7uLaDZ6cfWQTO7 2FICwvuk6X+2KcMw+wQf3BY0F5JOH1GTdaOqr0HfpDtaICd899png3kICsIvhba9Vcda uYH343x7VUviDjUVqQOMJA4Mpzly/TzuGhHUS8UFrNvhUvll1zLNNEPPK+mucYRY6fuc 3qpnQfaBCF7TDMkmyRvoG9bIRKxRFuKDHjvfHnqxPExPRYf39hlmDIUnwmF5nGS7SX8p R+2g== 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:arc-authentication-results; bh=vc9l2fuJ1EoAzz5Ffw+6y+46toh8hs/lDs15Y9v2ujM=; b=ZqOAfAXhQRRAX6Jiw3hntrtrtdjhiz7ojyBV2EcivPjnh3feFJ3m8QrsSosZBMLF80 FKPLXDR27tE1OkuVCotArbbOeMTV83m3zTqifHY5b4Xdizgy/WcZccAd+eJhRWkV+ain I0t6vdgdvpFZ3DdfuzH1o8c7VpAZsDO9mC28xmC3sm4fWUWrOnEAKqwhamqZgYOfx/lD 3XfTCZQahfmnu/wVC3TKrYzxgp3o2h4TmbrXEyUF5a5ZLnwNK+/gsgOX8kLQ7NGEcZmO sQgNKfUbC1o9W6JFsT6G7AIyPkUIStvm2ty2xHHllIJIkvr44TLTdJgP3IzQDdzIHRhD 2osw== ARC-Authentication-Results: i=1; mx.google.com; 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 x70-v6si5947008pgx.576.2018.05.29.00.06.03; Tue, 29 May 2018 00:06:17 -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; 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 S1754758AbeE2HFM (ORCPT + 99 others); Tue, 29 May 2018 03:05:12 -0400 Received: from verein.lst.de ([213.95.11.211]:53585 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754661AbeE2HFJ (ORCPT ); Tue, 29 May 2018 03:05:09 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id BA72A68E42; Tue, 29 May 2018 09:11:19 +0200 (CEST) Date: Tue, 29 May 2018 09:11:19 +0200 From: Christoph Hellwig To: Finn Thain Cc: Michael Schmitz , Geert Uytterhoeven , Christoph Hellwig , Guenter Roeck , Joshua Thompson , Greg Ungerer , linux-m68k , Linux Kernel Mailing List Subject: Re: [RFC PATCH] m68k: set dma and coherent masks for Macintosh SONIC based ethernet Message-ID: <20180529071119.GB32615@lst.de> References: <1527378785-13326-1-git-send-email-linux@roeck-us.net> <55c1c33b-4a34-bd72-57de-577ce8d95e0b@gmail.com> <2ffd0de6-e8d6-6449-7c05-cbbfd8a99a97@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 03:38:23PM +1000, Finn Thain wrote: > On Tue, 29 May 2018, Michael Schmitz wrote: > > > > > > > Since an arch gets to apply limits in the dma ops it implements, why > > > would arch code also have to set a limit in the form of default > > > platform device masks? Powerpc seems to be the only arch that does > > > this. > > > > One of Christoph's recent patches removed most of arches' dma ops, > > replacing them by one generic implementation instead. m68k was one of > > the affected arches. I concede his patch series is experimental still > > and not in mainline, but may be included at some time. > > I found some patches here, > http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/generic-dma-noncoherent.2 > > Looks like m68k_dma_alloc() gets renamed arch_dma_alloc() and the generic > ops don't use the dma masks. This is for the 'coherent' allocations, and literatelly nothing changes for those yet. But for the mapping path this switches m68k to use the dma-direct path, wrapped by dma-noncoherent. And these do check dev->dma_mask, although only really for sanity checking. Btw, can I get a review and testing for the above? They aren't really experimental any more, and I'd like to move architectures over as soon as possible.