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=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 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 95B33C76191 for ; Fri, 26 Jul 2019 07:41:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6E689217D4 for ; Fri, 26 Jul 2019 07:41:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rewJlD7I" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E689217D4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zJILzRNifDLtibxvpxLB05BDZE1rVozEkAnxvnhJuGI=; b=rewJlD7Ik07qtb wTj286XC6m3w28Ehtyb2MVRR2fNutANO14uJnE0jRWhymbdc/+uuyVLQqUw05CFMuEA3MD4l7wZm3 guN+VNCm7+eine+QS3sbgmQ2Noumxjn+hkLjiCpwOgisk8oXejv5p4xtOzSkNKravmDhEvt+8ZxJ+ D/v8wXPDdHHdGM30LYaGcHRUnXHKualYsCCzpisOYa2iSunRDtT28nw23m+TCDCwxWWLLlJeg2Czl ofroCmgWNEOsW0BAuIjLPFj4YCz194v+CUsfpampY2zbcu/dKnHXLTlCwZIfnz1MRG/3BOLWkPC83 ZrPdIqQvXELihtT54eqw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqur4-0006TQ-KB; Fri, 26 Jul 2019 07:41:30 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hquqq-0006Rg-53; Fri, 26 Jul 2019 07:41:16 +0000 Date: Fri, 26 Jul 2019 00:41:16 -0700 From: Christoph Hellwig To: Tomasz Figa Subject: Re: [RFC, v3 9/9] media: platform: Add Mediatek ISP P1 shared memory device Message-ID: <20190726074116.GA19745@infradead.org> References: <20190611035344.29814-1-jungo.lin@mediatek.com> <20190611035344.29814-10-jungo.lin@mediatek.com> <20190701072532.GB137710@chromium.org> <1562297618.1212.46.camel@mtksdccf07> <1562313579.1212.73.camel@mtksdccf07> <1563870117.1212.455.camel@mtksdccf07> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Sean Cheng =?utf-8?B?KOmEreaYh+W8mCk=?= , Mauro Carvalho Chehab , Rynn Wu =?utf-8?B?KOWQs+iCsuaBqSk=?= , Linux Media Mailing List , srv_heupstream , Rob Herring , Ryan Yu =?utf-8?B?KOS9meWtn+S/rik=?= , Frankie Chiu =?utf-8?B?KOmCseaWh+WHsSk=?= , Hans Verkuil , Jungo Lin , Sj Huang , "moderated list:ARM/Mediatek SoC support" , Laurent Pinchart , ddavenport@chromium.org, Frederic Chen =?utf-8?B?KOmZs+S/iuWFgyk=?= , "list@263.net:IOMMU DRIVERS , Joerg Roedel , " , Matthias Brugger Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jul 26, 2019 at 02:15:14PM +0900, Tomasz Figa wrote: > Could you try dma_get_sgtable() with the SCP struct device and then > dma_map_sg() with the P1 struct device? Please don't do that. dma_get_sgtable is a pretty broken API (see the common near the arm implementation) and we should not add more users of it. If you want a piece of memory that can be mapped to multiple devices allocate it using alloc_pages and then just map it to each device. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel