Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3209651pxb; Mon, 16 Nov 2020 08:29:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmMWpvt3N5g+yCWlJ2jUed2Sg9UtekI9Vf3Svcm57byZyZx0A8VoNy089NXhp2wQBg/25S X-Received: by 2002:a17:906:b783:: with SMTP id dt3mr14945249ejb.534.1605544188483; Mon, 16 Nov 2020 08:29:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605544188; cv=none; d=google.com; s=arc-20160816; b=hcAEzmy0UwdhR/tKx+T5NeIJubC0PidnwN95tdybxAUr4t86oBc+fVXDyU3cYNdo0L uD45BtlCjITouwkzXNJnVkGwa48P72Aazk/byc2QbYgUbxndTvUAh1b91t277c1G0Zy0 FZn2jg3+M0sAE/mLxQxPtsm9GkkSohcYHV3kfP6tPdeBl/oL2b1zEb5xevFpS0hrwdod NRC+CvcbIIcxPsNrXcoc80EbxgTvO8UH36+ZC+fzmflX8riU33lo1Nk+hF/CZ+GJ60Hw swT1LODuIo5usNzGXprdAS2DWQg8An1q4lEjmJCMLW5R6Z0NX1CLcpf3Z3LGuoymaC7p Gskw== 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=2NuZ81m6oUC1EPPya6oC4B+RkFMDfbQeS2iAs+KQSc0=; b=a9w3ap9BdecSqZuzGFP+PdcgBTMntDaeu5HTQwGZdNVGbc8r1khn2WKWovadvgH30L 9ES/p5IGw92/eWZRHXTP+0JNM8NZfcXFavIve05diq+9NP77vvcE/14d5Qg96k0cd8J5 tp0rIYt77Iyir1QdpPrBmoZaWLayCJNHC2uUueVkWyzQRxxwIivj3sun6xrQhhapUdj5 0T+e5hpipoS2TzaMB/5n7IoNZWOef9vU466Fa/bgFA9v+rLJNluyXXyWe3x33iS/mnlj nYJ9rQhXmAJGauh7OImDmy9wnZaD8YymDhJHFJwhm0SwHDduCiI0GjoFgBA9EonSYFmz 0wYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=E8q5iMAF; 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 d16si11918700edx.296.2020.11.16.08.29.25; Mon, 16 Nov 2020 08:29:48 -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=E8q5iMAF; 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 S1731990AbgKPQ2B (ORCPT + 99 others); Mon, 16 Nov 2020 11:28:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730905AbgKPQ2A (ORCPT ); Mon, 16 Nov 2020 11:28:00 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5799AC0613CF; Mon, 16 Nov 2020 08:28:00 -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=2NuZ81m6oUC1EPPya6oC4B+RkFMDfbQeS2iAs+KQSc0=; b=E8q5iMAFVmat6FprDTGNvNcVbT k+8B2sj5/ay9AYOvJ0+ZU3+/AtbYXbKzR6+hJt3OM6keJIC52UWU2TL9K/nyk5RHJDuuaT0W5MAdY ddlK+sv2snw1OeSzsqbr4fJrZKdVFHQTOMbDYI+YKSlQ1eqboE9vxbg7UbYVPCh5NHDkJ8RXrBpN1 MtdUpG0wmAzPSZOQPJx4Li+dDtxnWBKxM4w5CYiRbARrDeN6QFN9tY65W9PJkZpDp9hSitCwv5sgx cuf/51MvUYtHKgz1mChZuvTZv0THl4gDH10EgMyN4YOXaMt6+fng89n9FDpYLnMBlhRFEQYNDl963 wUNaIQ0g==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kehM0-0004PY-2v; Mon, 16 Nov 2020 16:27:44 +0000 Date: Mon, 16 Nov 2020 16:27:44 +0000 From: Christoph Hellwig To: "Michael S. Tsirkin" Cc: Christoph Hellwig , Alexander Lobakin , Amit Shah , Arnd Bergmann , Greg Kroah-Hartman , Arnaud Pouliquen , Suman Anna , Mathieu Poirier , Bjorn Andersson , Ohad Ben-Cohen , 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: <20201116162744.GA16619@infradead.org> References: <20201116091950.GA30524@infradead.org> <20201116045127-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201116045127-mutt-send-email-mst@kernel.org> 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 04:51:49AM -0500, Michael S. Tsirkin wrote: > On Mon, Nov 16, 2020 at 09:19:50AM +0000, 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), > > Could you point me at an example or two please? Take a look at the ib_dma_* helper in include/rdma/ib_verbs.h and dma_device member in struct ib_device for the best example.