Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10949469ybi; Thu, 25 Jul 2019 07:30:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHrshzaIC3hOtbfDJElR+ctjbmyXOfubBx6wuCc7D3UKgxgniuXlBFvXjPVUn4aR7Js7bi X-Received: by 2002:a62:e901:: with SMTP id j1mr17343648pfh.189.1564065053735; Thu, 25 Jul 2019 07:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564065053; cv=none; d=google.com; s=arc-20160816; b=k9ztrBvg2ztNAkFu6HeCjXBF9QcAvcT9m6j//kXVr1JhjpokFWCJWh1JHHuqMtyoAs gJd00AFSJpbC6A39/2WWKG3sj3UMGKKowoLbxEL1i6STEeCWSifCRyW0ybKTCzcj8EXw nt/VDwlFFNmgdj4msQLa8FakluqiTKD3Q3HOagWUBQlGS56l71AzizNa57aqDpHnfbE6 Jmr3yanVLOQtLbYR0J/pMlBuRNU6D3AnhaxO2h1IIIPOZza8plLonI9zu/u2Yf8P8yK4 SPrg8WfibUmDPAQ3aca++yDkTOkXzPRtjW5TVCPqq9BEfNmcKKKLPvspxDV5cBkfitjW RGFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=HHeqHVCiASKfi4/DtQ9t0fqVJOGjoS3+8IWc39JJBHI=; b=VwM+eDriiS0CnkD8v0g0F2qOkzpYrDsa4iDK5TLFXETv6ncLBTq5+mZl8t58qAo3qQ DWswJU3OMO2YS8I1tsaXJXOYkRpX5B8ZXv3OhtHm3KDnKgGzI3oI++W7+yI8trybXZms sL61QKpaM4THqRPuct6Qtqf1KqPu9TBzfPP08kSJWog0H7p1dHQr8+f5uAtmnnEPVNxM nFMEEZXAywUEzR2AFOEBpgtUdY3QFjyYA8bXK/oujGXhLzmKttYW6YSBMTSrTl3vtE9T 3nczLJq6hfPic5iL4eTyMSPQKT8lDj1zI1j0iNIX8ybZ3yPGYa8l4RYDCxS1i378Z19k k7iQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n21si19302787pgf.339.2019.07.25.07.30.37; Thu, 25 Jul 2019 07:30:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727322AbfGYOSO (ORCPT + 99 others); Thu, 25 Jul 2019 10:18:14 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:44670 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbfGYOSN (ORCPT ); Thu, 25 Jul 2019 10:18:13 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id DFBFE28B831 From: Ezequiel Garcia To: linux-media@vger.kernel.org, Hans Verkuil Cc: kernel@collabora.com, Nicolas Dufresne , Tomasz Figa , linux-rockchip@lists.infradead.org, Heiko Stuebner , Jonas Karlman , Philipp Zabel , Boris Brezillon , Paul Kocialkowski , Alexandre Courbot , fbuergisser@chromium.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Ezequiel Garcia Subject: [PATCH v2 1/7] media: hantro: Set DMA max segment size Date: Thu, 25 Jul 2019 11:17:50 -0300 Message-Id: <20190725141756.2518-2-ezequiel@collabora.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190725141756.2518-1-ezequiel@collabora.com> References: <20190725141756.2518-1-ezequiel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Francois Buergisser The Hantro codec is typically used in platforms with an IOMMU, so we need to set a proper DMA segment size. Devices without an IOMMU will still fallback to default 64KiB segments. Cc: stable@vger.kernel.org Fixes: 775fec69008d3 ("media: add Rockchip VPU JPEG encoder driver") Signed-off-by: Francois Buergisser Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c index b71a06e9159e..4eae1dbb1ac8 100644 --- a/drivers/staging/media/hantro/hantro_drv.c +++ b/drivers/staging/media/hantro/hantro_drv.c @@ -731,6 +731,7 @@ static int hantro_probe(struct platform_device *pdev) dev_err(vpu->dev, "Could not set DMA coherent mask.\n"); return ret; } + vb2_dma_contig_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32)); for (i = 0; i < vpu->variant->num_irqs; i++) { const char *irq_name = vpu->variant->irqs[i].name; -- 2.22.0