From patchwork Wed Nov 15 15:24:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10059733 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 BECDD6019D for ; Wed, 15 Nov 2017 15:25:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AED6229C0B for ; Wed, 15 Nov 2017 15:25:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A35332A011; Wed, 15 Nov 2017 15:25:13 +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 638E829C0B for ; Wed, 15 Nov 2017 15:25:13 +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=dXNjQZ/kAxS3p4612nrbAdOTYbg7OFPkh0z2DwhebZM=; b=KveLL6ecEfg4s50uLruaoG9VAx 0u6kjSfpgvVKExXVZNzXAVJLx3iA8qZKHLHo0T4UFgpldp02DtjszYWA4zKvd/HNmdfC8nPOe4Bet ROiHx7GYD8B0KXmheP2t14dOHqUqTj7ahLuTIsBrQdQdqn8jzOdQ2t7hWN0cUanSX4QEP2WgYiigT 4ZNPp68kuglg0scu5QJA7FEEkj8PPe2GeNezuJLBF8sK6Ro9fDQzyuQe1/bT5lHR9Dv+NUw8CV6C1 YSHA7EsX3iYXjFxXAfD3vK8ii+crw5xzCTSODa42PdAdK5f1nM1VZN8NSQNnlvoO+n0z2HsCM6gXQ 2j0tGlIQ==; 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 1eEzYt-00049Q-AC; Wed, 15 Nov 2017 15:25:11 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eEzYk-0003Hv-7v for linux-mediatek@lists.infradead.org; Wed, 15 Nov 2017 15:25:05 +0000 Received: by mail-wr0-x242.google.com with SMTP id u40so20749383wrf.10 for ; Wed, 15 Nov 2017 07:24:41 -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=3Kehx9eZGzSKu2oSdXCdg//8Qo8RN+QI0NXlineHYyI=; b=bcxxZDv1O0b6d+JBuRPoRKi5S9onpGoj/aO79Vw3Ha8mKCDd9dN5uTYEK8ECdYJMWe OzpeQ3O3i2fL/gVm7q0a1boP8rQklGLaCelBorTbK1Dl+myLEnJ2ws1ZkT3RvSnl03vW uOghUstTMyS/W/2JgtxXQiKUM1yuqpxmylKB4XjXhFKyiZaQJI45chjYUz/FjXf74TmH fDMVP6wMDtbpxJ7omxYI6xLKFKoQFSZwX0A6zZ/wYC+9du8bPLNLj7vflJixIQKR+Fe/ QBmBoXx/NNVPXY4njqZeY4AfJjH3RMvb2ITu45U7mfMezKHqBQHBlok+jYrYFDoqne+l Gp/g== 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=3Kehx9eZGzSKu2oSdXCdg//8Qo8RN+QI0NXlineHYyI=; b=iCyYJdTp2ONeKLSOOjB06S9DTUzcoF1Jjj9lTeCh9ty6ICTOn842whVzVlzm97LH08 Qxoa+DLEYbvtlVyf5nmiYbmT9VI+C3MRO22+1IAZWUkzdHOrO9UbE7/I+JM0o1/KkE3r +yWSM6/qzQ7k1DiYcWaMH5IIPUkuHGp6OYPMkPXPQK1OrsSAoFllppJMTXkh6O93Vome jRAqOskGGySvZdHJcaE+lygp5cNHmnKZWLJfrhPGxOpcfMmCZEu2+ZX5iFKzcQrzWNfP S0kObT1tXks2v4oyHqWV13UYDcSCt0unfHuPLcp8Am6ERWw5llkIIqnZDrG3PhRTIa14 /GuA== X-Gm-Message-State: AJaThX6BJ2RenqGTISf6hd9gghcGEqX+dTb4BY2JPj8SHJo3mZZwCwJ6 XP1tL5CDzRS1Sbg07YoRJrjkSoI= X-Google-Smtp-Source: AGs4zMZa5q4ms0QXTo4O2GIRv+Qku+z8UgpkuCe/2rQJsUIDy5PJ7UwufR65gw8oAt0YsqAyJGsNrg== X-Received: by 10.223.135.250 with SMTP id c55mr11741564wrc.183.1510759480084; Wed, 15 Nov 2017 07:24:40 -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.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 07:24:39 -0800 (PST) From: Ulrich Hecht To: linux-mediatek@lists.infradead.org Subject: [POC 09/16] drm/img-rogue: translate pgprot_t to pgprot value for __pgprot_modify() Date: Wed, 15 Nov 2017 16:24:16 +0100 Message-Id: <1510759463-30201-10-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_072502_599503_47FEEC54 X-CRM114-Status: UNSURE ( 6.81 ) 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/pmr_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/img-rogue/1.6/pmr_os.c b/drivers/gpu/drm/img-rogue/1.6/pmr_os.c index 595f772..9526359 100644 --- a/drivers/gpu/drm/img-rogue/1.6/pmr_os.c +++ b/drivers/gpu/drm/img-rogue/1.6/pmr_os.c @@ -253,7 +253,7 @@ OSMMapPMRGeneric(PMR *psPMR, PMR_MMAP_DATA pOSMMapData) ps_vma->vm_flags = ulNewFlags; #if defined (CONFIG_ARM64) - sPageProt = __pgprot_modify(ps_vma->vm_page_prot, 0, vm_get_page_prot(ulNewFlags)); + sPageProt = __pgprot_modify(ps_vma->vm_page_prot, 0, pgprot_val(vm_get_page_prot(ulNewFlags))); #elif defined(CONFIG_ARM) sPageProt = __pgprot_modify(ps_vma->vm_page_prot, L_PTE_MT_MASK, vm_get_page_prot(ulNewFlags)); #elif defined(CONFIG_X86)