From patchwork Wed Nov 15 15:24:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10059719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F0D7B6019D for ; Wed, 15 Nov 2017 15:24:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E120729F1F for ; Wed, 15 Nov 2017 15:24:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5D2C29F77; Wed, 15 Nov 2017 15:24:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9007229F76 for ; Wed, 15 Nov 2017 15:24:56 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=cix8h/SrIWv898Qdy2KrHZBYS0W2duvOVZFQwmRc4f0=; b=oCkSMqalUqh/2LjFI/lThTdgyy GsiO8LYoCjP35QdKgweSn8DVG6parQfBVO3uERDg3JTsQ9fbCxG4ZeUmFQG01CnSQhEgtTndrV79g rhHDxatv0oFSHEmpY9dBPiRVp3Tmb7saMVZRR7AM7oIL9lm2UIUfX4m87u2C0Cc5oF3NzLSzMVdbw A3LEYJfCQ5DhppEGRk2ZAYk4R6LfDiG20hT+5mHtZLAdx/h4XLB1j/9sA4zSGEqkbAq8ncjEQ6Hp/ KyX5IBPJUgODCOltNf9bElOdMGX01hBHUbYnP/+DS0qZDQg9g7WXT/eARC7TINml6QCGumVxKQfOw GwhNEbww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eEzYd-0003Lv-H9; Wed, 15 Nov 2017 15:24:55 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eEzYZ-0003Gv-N6 for linux-mediatek@lists.infradead.org; Wed, 15 Nov 2017 15:24:53 +0000 Received: by mail-wm0-x242.google.com with SMTP id v186so3711778wma.2 for ; Wed, 15 Nov 2017 07:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qu177H6jInW7abyqWxCKg80ohFlvILfv405SfhWvvtM=; b=m6UU0+EnlwjGOMi+a0kPPzjn+DVZCQ9yVl7OzrBKdrKhEh0HaxBdLd6VmxlzUVn5aV VGQYyPhwxhbUrD50LSUx+/pAoux2q14WdMwCLEHzMRfMnP3NREtt/Dk1N2d6ndrTNegb AgcKAohe2FtAamZAotaP1jvWCW1zFksSvD5mVdQ2byTSorwCzYiMWWfNsV6oRjcwhrdF X5g86LdyVXHmq0lHAxdQv9UccLYt8bTRhJ5vybNtPayfHgspMCAjsj82MCgVukBkyqYC R95ggVxDW9omy1LeyQl/D0S5somXF29f8uNIFqYznHTXFW2bjCKsbsW6GEMHa/8fZvs6 RMIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Qu177H6jInW7abyqWxCKg80ohFlvILfv405SfhWvvtM=; b=kXfl46jqt+r8cpbx5fC84HK0vI01JY6WrMZAezaF0A0B5Seg+N8k9JTHWc/Qo8gyOa JujA7xa2mU05nqypb8jNpnJA86buvpXNsuNy1RjOxDAQRfGnptO4DbaqRcg5JA3q8ghS UAyuqYoGvFDYDtpoMgaaLX4mg/LOZEaY3LoJs26j/Tk+/0LtJO6A4GNPJo3HGVZBZDJy cksb1qyCJ8tlV68FUmkE7uUjnLJ0Yxm/3JaXtz+eqjsEKeVwkAJEGFiQ4WiiesTFWca7 ozy1o3fGK25uIN6kXTQ6r4ZKlsmDX0Egx8YBa5F6EvQP/RsIkzk2Qw47A7MxW9TgvtjY 48QQ== X-Gm-Message-State: AJaThX7yobJjduGoqEHHXoHAvUnsWSZUi47VAOJwyDB3/++ZTDxFYVXW IvzeGppOoGJ17SwoUk8PIvn/w1I= X-Google-Smtp-Source: AGs4zMbFxLZRysnVUKgmpRMkBWb729umyL8RFupvf3xchiP5uq20MifzC9xBzB1msGlmt0/3jgT8Og== X-Received: by 10.28.229.213 with SMTP id c204mr10090748wmh.57.1510759469606; Wed, 15 Nov 2017 07:24:29 -0800 (PST) Received: from groucho.site (ipbcc0ce42.dynamic.kabel-deutschland.de. [188.192.206.66]) by smtp.gmail.com with ESMTPSA id s12sm51547104wrc.89.2017.11.15.07.24.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 07:24:28 -0800 (PST) From: Ulrich Hecht To: linux-mediatek@lists.infradead.org Subject: [POC 02/16] drm/img-rogue: convert pfn to pfn_t for vm_insert_mixed() Date: Wed, 15 Nov 2017 16:24:09 +0100 Message-Id: <1510759463-30201-3-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510759463-30201-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1510759463-30201-1-git-send-email-ulrich.hecht+renesas@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171115_072451_937611_0F8AE0FA X-CRM114-Status: UNSURE ( 8.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulrich Hecht , mbrugger@suse.com, magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ulrich Hecht --- drivers/gpu/drm/img-rogue/1.6/osfunc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/img-rogue/1.6/osfunc.c b/drivers/gpu/drm/img-rogue/1.6/osfunc.c index 2631357..7a9255b0 100644 --- a/drivers/gpu/drm/img-rogue/1.6/osfunc.c +++ b/drivers/gpu/drm/img-rogue/1.6/osfunc.c @@ -69,6 +69,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #endif #include #include +#include #include "log2.h" #include "osfunc.h" @@ -2381,7 +2382,7 @@ PVRSRV_ERROR OSChangeSparseMemCPUAddrMap(void **psPageArray, if(bMixedMap ) { - eError = vm_insert_mixed(psVMA,uiCPUVirtAddr, uiPFN); + eError = vm_insert_mixed(psVMA,uiCPUVirtAddr, __pfn_to_pfn_t(uiPFN, PFN_DEV)); } else {