Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3341879ybx; Sun, 3 Nov 2019 16:35:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwRkj3CniuOkGckVGfabnjNhktmbxhsAFuBlNSbN0WpmKHJTss4g2semidWmrqQmI7p46kT X-Received: by 2002:aa7:da19:: with SMTP id r25mr26379148eds.143.1572827750834; Sun, 03 Nov 2019 16:35:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572827750; cv=none; d=google.com; s=arc-20160816; b=qTW7Z7V0CESRxR/Mp449BG+82M6H+ofiElKGW79RHJSFCMISXU0ru7aQHaUqFyptkQ O9NRlV8U+G7i73Qf0aDGj2DWut/vraCg2b+rqNDo6r0HbdjFJ4whc+Kgo8XLyZkbopxQ Bi9TTsvo4Rb2vzX9buftFMfWgNCfTWA5+7w/helSX3vISx2U/gyQ24mHmcfGK8SphlSr htbAlrgn6GFxe3CQcPB1UGXi/wZhuBWjLye+6c4w9i1l8JSpj0aMdfV0hsz2r0Hzhnt1 xYOWqdeuCG/oJgxQHzI1zZ7TypCZOdICqnuNu8+YKy9OGmmIWaWiYTJozZr5c9q/QecZ SiGg== 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; bh=hepop7XkHzKEIOCLcvY/3CcM+ah3MgQ5iW6ccLCNNkE=; b=ajtkIIIYdt+JDl0vKcJU91dAnGl5NtOIB/9LPbMe4ycAN8ON7au/tIOjhqjILH40Ml 8H/MpMhnytYon6rRsVgVb6W0cFlpEeSuUE30C+jIRxqa+024iOEA9CPNbHG9r4r1/ic8 gigA4PZPx8gNgg+z6iGDDl2dmM8w1AchJcy6DwovEgX7a6q7e0qTFtC/xbobFD+ZLg1Y glwmGI1MUpTt92UmhbZGON4MFOQbX46/oaifg4EnjCOix/AO+ydktBuVOcKUChxaCYAx 8OS+KAuyLxrDafhP5LtblIxA2IEP1NhgfHuaB/OCgaTjDpDLsojXYcQu4dwA626ThT6V OBdg== 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 hk1si10410124ejb.408.2019.11.03.16.35.27; Sun, 03 Nov 2019 16:35:50 -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; 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 S1728426AbfKDAez (ORCPT + 99 others); Sun, 3 Nov 2019 19:34:55 -0500 Received: from verein.lst.de ([213.95.11.211]:36126 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728106AbfKDAez (ORCPT ); Sun, 3 Nov 2019 19:34:55 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 9838568BFE; Mon, 4 Nov 2019 01:34:52 +0100 (CET) Date: Mon, 4 Nov 2019 01:34:52 +0100 From: Christoph Hellwig To: Thomas Bogendoerfer Cc: Ralf Baechle , "David S. Miller" , linux-mips@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: [net v2 1/4] net: sgi: ioc3-eth: don't abuse dma_direct_* calls Message-ID: <20191104003452.GA2585@lst.de> References: <20191103103433.26826-1-tbogendoerfer@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191103103433.26826-1-tbogendoerfer@suse.de> 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 Sun, Nov 03, 2019 at 11:34:30AM +0100, Thomas Bogendoerfer wrote: > From: Christoph Hellwig > > dma_direct_ is a low-level API that must never be used by drivers > directly. Switch to use the proper DMA API instead. > > Change in v2: > - ensure that tx ring is 16kB aligned FYI, I think this should be a separate patch. The lack of explicitly alignment was just as broken before this patch as it is now.