Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6683363yba; Tue, 14 May 2019 11:40:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwps9tw/WR6HVcaVCTAjGkq/zQEbzS0leEIFxLdf+PJrYso1tVjEYxM1IfHVRXziBP4Fcc X-Received: by 2002:a63:d615:: with SMTP id q21mr39583115pgg.401.1557859242598; Tue, 14 May 2019 11:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557859242; cv=none; d=google.com; s=arc-20160816; b=JPVzrCgFVE13OmPN0t18trGaZvPHlEewExAAuhnHnVwXgQnITu8cyERLV6kv6ntJEZ SFpcgcnPspz1J9vn/7IE7PRU12vbvMP8hF6r/YnOIoKnK6v69yuNhRJw/RFEmdLtO8ac 2iSJOM3orwPH/u68LVpgigbkPaXx81b+2xILHl9IykjZtX0U7z62lgFWhthZnwLxmr1G v8sIksI0UQvumYJ2gCPlRksKHnUe/RrhMQv/kGRytWjG++N+V1hBaK1VKv5cAx5uJDeH ze1He9BGa9Ez/oRdKY1n65+3XZMFDwcFvIjrBTiFHhb0QiDQCrrmsTENQOBWqUK2CODV sq/Q== 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=EUwDTm/JNxpmqdGm1F9CvEpEs6U+Sq3T8etqtxNe1bE=; b=wR8KfXANy2n2Quf2pO//6CuI3MPx80+HXGgg/STuuAv5ClrxK11ePgI8qm8CK4wI/e sjTc9/A7Wtww4N+dpGwJioAuJSdqi19b1BOsq8F+rOVCqlXHpAnmFHXvWXS2ijhMw0+O pSl6FFo3lhVfdgjiekN1fqoiPmIWxuqveQWk64pz16DS7SNRj+CDIlsq/R2HWLhhKzue cuidkdJYn5KZVuoRbIMB35dHWfE6UdI9n5hWs9CIpEnktERM7qJm2KZkBr8OJvVw+sOT Pzs2dlU8G9nqcq07elB3/d5y95QV1s98XNC6/uwxJAzHZkZxhPGCg5kLyijvQeEweOW5 cexw== 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 v16si7042956pgk.431.2019.05.14.11.40.28; Tue, 14 May 2019 11:40:42 -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 S1727610AbfENSjQ (ORCPT + 99 others); Tue, 14 May 2019 14:39:16 -0400 Received: from ste-pvt-msa1.bahnhof.se ([213.80.101.70]:63549 "EHLO ste-pvt-msa1.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfENSjQ (ORCPT ); Tue, 14 May 2019 14:39:16 -0400 X-Greylist: delayed 580 seconds by postgrey-1.27 at vger.kernel.org; Tue, 14 May 2019 14:39:15 EDT Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTP id D469A3F7F2; Tue, 14 May 2019 20:29:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-999 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from ste-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (ste-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ntDtz1TyoPSy; Tue, 14 May 2019 20:29:33 +0200 (CEST) Received: from localhost (h-41-252.A163.priv.bahnhof.se [46.59.41.252]) (Authenticated sender: mb547485) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id 0C1D83F393; Tue, 14 May 2019 20:29:31 +0200 (CEST) Date: Tue, 14 May 2019 20:29:31 +0200 From: Fredrik Noring To: Robin Murphy Cc: laurentiu.tudor@nxp.com, hch@lst.de, stern@rowland.harvard.edu, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, marex@denx.de, JuergenUrban@gmx.de, leoyang.li@nxp.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 0/3] prerequisites for device reserved local mem rework Message-ID: <20190514182931.GA2559@sx9> References: <20190514143807.7745-1-laurentiu.tudor@nxp.com> <9d34015d-c219-179b-3141-4b0de3530ac3@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <9d34015d-c219-179b-3141-4b0de3530ac3@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Robin! > > For HCs that have local memory, replace the current DMA API usage > > with a genalloc generic allocator to manage the mappings for these > > devices. > > This is in preparation for dropping the existing "coherent" dma > > mem declaration APIs. Current implementation was relying on a short > > circuit in the DMA API that in the end, was acting as an allocator > > for these type of devices. > > > > Only compiled tested, so any volunteers willing to test are most welcome. > > I recall an out-of-tree PlayStation 2 OHCI driver being another > HCD_LOCAL_MEM user - if Fredrik and Juergen are still active on that, > hopefully they might be able to comment on whether this approach can > work for them too. Patchwork link just in case: > https://patchwork.kernel.org/project/linux-usb/list/?series=117433 True. In fact I'm preparing a patch submission for this PS2 OHCI driver, along with about a hundred other patches (unrelated to the USB subsystem). Hopefully in a few weeks. My patches are currently on top of v5.0. What branch/version is recommended to try this DMA update? Here is the v5.0.11 PS2 OHCI driver, for reference: https://github.com/frno7/linux/blob/ps2-v5.0.11/drivers/usb/host/ohci-ps2.c Fredrik