From patchwork Wed Mar 4 13:55:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 5936321 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B30D19F36A for ; Wed, 4 Mar 2015 13:55:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F0D7B2011E for ; Wed, 4 Mar 2015 13:55:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5654A2028D for ; Wed, 4 Mar 2015 13:55:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755209AbbCDNzi (ORCPT ); Wed, 4 Mar 2015 08:55:38 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:45530 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754488AbbCDNzh (ORCPT ); Wed, 4 Mar 2015 08:55:37 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NKO004DQXJH1GA0@mailout1.w1.samsung.com> for linux-media@vger.kernel.org; Wed, 04 Mar 2015 13:59:41 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-91-54f70e454f8f Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 14.31.07834.54E07F45; Wed, 04 Mar 2015 13:53:09 +0000 (GMT) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NKO00HBRXCISU20@eusync1.samsung.com>; Wed, 04 Mar 2015 13:55:34 +0000 (GMT) From: Marek Szyprowski To: linux-media@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Kamil Debski Subject: [PATCH 1/2] media: s5p-mfc: fix mmap support for 64bit arch Date: Wed, 04 Mar 2015 14:55:21 +0100 Message-id: <1425477322-5162-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1425477322-5162-1-git-send-email-m.szyprowski@samsung.com> References: <1425477322-5162-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOJMWRmVeSWpSXmKPExsVy+t/xy7qufN9DDI6uUrD48foCm0XPhq2s FmuP3GW3OPymndWBxaNvyypGj8+b5AKYorhsUlJzMstSi/TtErgy1m1oZSy4wl7x6Pov9gbG XWxdjJwcEgImEkdfv2CCsMUkLtxbDxTn4hASWMoo0fD5IiOE08ck8eLYZbAONgFDia63XWC2 iIC8xJPeG2AdzAKtjBIn7j1l7WJk5xAWcJFocAYpYRFQleid38wMYvMKuEv83zOZGWKZnMT/ lyvAFnMKeEj8vtrHCmILAdVMuP+NeQIj7wJGhlWMoqmlyQXFSem5hnrFibnFpXnpesn5uZsY IYHxZQfj4mNWhxgFOBiVeHgLkr6FCLEmlhVX5h5ilOBgVhLhfc72PUSINyWxsiq1KD++qDQn tfgQIxMHp1QDY5Ej84OnZ7l6jux7tMR134zaF3tmC9+7/Ed+YenBwI87c273FH53fslwc5Hg Be6yVu+/1srZt97Z9z9KurJa9+qWZ+92afzn/Cp7ZMu5PT8VTjRr/31fennh7jc2J6bE1CZf 33ZjY+O/l9GFgSlaO6wctpiFGDWnX5VLVZlQkaF0/kLCofyju4WVWIozEg21mIuKEwFMI61b 6gEAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP TASK_SIZE is depends on the systems architecture (32 or 64 bits) and it should not be used for defining offset boundary for mmaping buffers for CAPTURE and OUTPUT queues. This patch fixes support for MMAP calls on the CAPTURE queue on 64bit architectures (like ARM64). Signed-off-by: Marek Szyprowski --- drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_common.h b/drivers/media/platform/s5p-mfc/s5p_mfc_common.h index 15f7663..24262bb 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_common.h +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_common.h @@ -29,7 +29,7 @@ /* Offset base used to differentiate between CAPTURE and OUTPUT * while mmaping */ -#define DST_QUEUE_OFF_BASE (TASK_SIZE / 2) +#define DST_QUEUE_OFF_BASE (1 << 30) #define MFC_BANK1_ALLOC_CTX 0 #define MFC_BANK2_ALLOC_CTX 1