From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D7CCCA9ECB for ; Thu, 31 Oct 2019 15:18:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49A352083E for ; Thu, 31 Oct 2019 15:18:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728326AbfJaPSU convert rfc822-to-8bit (ORCPT ); Thu, 31 Oct 2019 11:18:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:52388 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726566AbfJaPST (ORCPT ); Thu, 31 Oct 2019 11:18:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 19420B740; Thu, 31 Oct 2019 15:18:18 +0000 (UTC) Date: Thu, 31 Oct 2019 16:18:17 +0100 From: Thomas Bogendoerfer To: Christoph Hellwig Cc: "David S. Miller" , linux-mips@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] net: sgi: ioc3-eth: don't abuse dma_direct_* calls Message-Id: <20191031161817.b24181a2e7af3df994eec6c5@suse.de> In-Reply-To: <20191031131501.GA4361@lst.de> References: <20191030211233.30157-1-hch@lst.de> <20191030211233.30157-2-hch@lst.de> <20191030230549.ef9b99b5d36b0a818d904eee@suse.de> <20191030223818.GA23807@lst.de> <20191031095430.148daca03517c00f3e2b32ff@suse.de> <20191031131501.GA4361@lst.de> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Oct 2019 14:15:01 +0100 Christoph Hellwig wrote: > On Thu, Oct 31, 2019 at 09:54:30AM +0100, Thomas Bogendoerfer wrote: > > I didn't want to argue about that. What I'm interested in is a way how > > to allocate dma memory, which is 16kB aligned, via the DMA API ? > > You can't. So then __get_free_pages() and dma_map_page() is the only way ? BTW I've successful tested your patches on an 8 CPU Origin 2k. Thomas. -- SUSE Software Solutions Germany GmbH HRB 36809 (AG Nürnberg) Geschäftsführer: Felix Imendörffer