From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Szyprowski Subject: Re: [PATCH 0/7] Exynos: MFC driver: reserved memory cleanup and IOMMU support Date: Tue, 08 Dec 2015 09:35:30 +0100 Message-ID: <56669652.5000708@samsung.com> References: <1449490142-27502-1-git-send-email-m.szyprowski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <1449490142-27502-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-media-owner@vger.kernel.org To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: devicetree@vger.kernel.org, Sylwester Nawrocki , Kamil Debski , Laurent Pinchart , Andrzej Hajda , Kukjin Kim , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz List-Id: linux-samsung-soc@vger.kernel.org Hello, On 2015-12-07 13:08, Marek Szyprowski wrote: > This patchset finally perform cleanup of custom code in s5p-mfc codec > driver. The first part is removal of custom, driver specific code for > intializing and handling of reserved memory. Instead, a generic code for > reserved memory regions is used. Then, once it is done, the proper setup > of DMA parameters (max segment size) is applied for all multimedia > devices found on Exynos SoCs to let them properly handle shared buffers > mapped into contiguous DMA address space. The last patch adds support > for IOMMU to MFC driver. Some additional code is needed because of > specific requirements of MFC device firmware (see patch 7 for more > details). When no IOMMU is available, the code fallbacks to generic > reserved memory regions. > > After applying this patchset, MFC device works correctly when IOMMU is > either enabled or disabled. > > Patches have been tested on top of linux-next from 20151207. I would > prefer to merge patches 1-2 via Samsung tree and patches 3-7 via media > tree (there are no compile-time dependencies between patches 1-2 and > 3-7). Patches have been tested on Odroid U3 (Exynos 4412 based) and > Odroid XU3 (Exynos 5422 based) boards. One more notice: this is an updated version of the old patch initially posted here: http://lists.infradead.org/pipermail/linux-arm-kernel/2013-August/189259.html The main change since that is adaptation for generic reserved memory bindings, which have been merged a while ago and added support for IOMMU. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland