Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3210751pxb; Mon, 16 Nov 2020 08:31:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxu87wAnG9Vo+rJdAOmSo4efadANF8JgDj2IiFBVqJZ862Hvek88w6SGGY8YEjZBxXhNZ8Y X-Received: by 2002:a17:906:ae52:: with SMTP id lf18mr16169504ejb.9.1605544274694; Mon, 16 Nov 2020 08:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605544274; cv=none; d=google.com; s=arc-20160816; b=d6EWclkKjSNbKljLLE7f8KBBRNZHhz8YIfM51HrhMDIZBE3AHyLirR+oQPI+V0dnZz WiWa2Tbvlz86614XlYCuSUO5SFvTkcQG1Fnwmxlx21/9HMdWUrpTJEC8BXJwY8GY2um+ USc3K0DddIpcPSkQAj330wpUka09Z4XeWsQ5KSDIbzy9g/p3XdFHYXBPecGQmmMqpA2A JnGFN4hvAbal1Z9C5F+RSAFRIhqub/9L9eZFZmBb/XozhNVbZZq1/X7rJvNCL/0qGyM2 Bk2DSoi8ifntk9cfcWY5evYYBiPhui+ss2YdbtAjTm7Z+6Q+P4JHDGyS4kNP6hDwxtSO acmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e6BIfEgLkkUxsF4JnpPb8DQA1qDtb10rWlavNgMcshc=; b=q5tVAHu52G8+Q66iLnHEcd3KgqdABKssisOdWCTGumiWO3LK62KzfqpX29h301GIxh MQpf2lLD+aqhYwol1/onjLSL1k/905yQyi+7zuoUFLyxxWvmNnCUAlE8fKZtqPt+zWmf vvbHTa5N8PjePa52B98dVbwbnSyXt26ntmK862UjyirhXvF0XlfbrFcTKCwfe8E/womi Q6HsyZL0IkYu0SYMSwTyRcUTgpRMl+qyzXfN9lH8OPMiNCdg4Djic8hcgROAckqxbw6T WGfXFiQFgRy7oD1d2RCT9AzvcBMV+VPen+ld69SZ5XLuznhCytVFMExQR4bdKROXuTmP IHMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TkwDO8qI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si11378989ejc.357.2020.11.16.08.30.51; Mon, 16 Nov 2020 08:31:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TkwDO8qI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732118AbgKPQ27 (ORCPT + 99 others); Mon, 16 Nov 2020 11:28:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730795AbgKPQ27 (ORCPT ); Mon, 16 Nov 2020 11:28:59 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D966CC0613CF; Mon, 16 Nov 2020 08:28:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=e6BIfEgLkkUxsF4JnpPb8DQA1qDtb10rWlavNgMcshc=; b=TkwDO8qI70+8k28fwxwWYA22+F oyOJIZthD5i8Uiq5L/C85fjaQ4tukb00LfGvBmcAXcG9RfCXGguc3eUTXTKn8SlLGxAfoKXnP1FsB 08H/JpHSTfRTfjg3knsT+dV7hws49LNcp2145KJM6C9fBxaTytcj9KzZIjUgFio8RhHcSf5ZPuzgf +VjTYMxfzdzZnUVfuWVgS+qSG16pktxVQm1re3xtPqHxIHZvX6j41u80C4EjY/PDhon+DdpmVb3cP wI292BEj9Fegqi6XCXXT1PJ9/SpS8vy7ldK4JrXTqrfIcwp5iAeBk/GrgxxFz6F3mdOuHV3fgb5Jc X8CdcWsA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kehMy-0004U3-Jx; Mon, 16 Nov 2020 16:28:44 +0000 Date: Mon, 16 Nov 2020 16:28:44 +0000 From: Christoph Hellwig To: Arnaud POULIQUEN Cc: Christoph Hellwig , Alexander Lobakin , Amit Shah , Arnd Bergmann , Greg Kroah-Hartman , Suman Anna , Mathieu Poirier , Bjorn Andersson , Ohad Ben-Cohen , "Michael S. Tsirkin" , Jason Wang , "virtualization@lists.linux-foundation.org" , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH virtio] virtio: virtio_console: fix DMA memory allocation for rproc serial Message-ID: <20201116162844.GB16619@infradead.org> References: <20201116091950.GA30524@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 11:46:59AM +0100, Arnaud POULIQUEN wrote: > Hi all, > > On 11/16/20 10:19 AM, Christoph Hellwig wrote: > > I just noticed this showing up in Linus' tree and I'm not happy. > > > > This whole model of the DMA subdevices in remoteproc is simply broken. > > > > We really need to change the virtio code pass an expicit DMA device ( > > similar to what e.g. the USB and RDMA code does), instead of faking up > > devices with broken adhoc inheritance of DMA properties and magic poking > > into device parent relationships. > > For your formation I started some stuff on my side to be able to declare the > virtio device in DT as a remoteproc child node. > > https://lkml.org/lkml/2020/4/16/1817 > > Quite big refactoring, but could be a way to answer... Yes, that series is exactly what we need to do conceptually (can't comment on all the nitty grity details as I'm not too familiar with the remoteproc code).