[POC 02/16] drm/img-rogue: convert pfn to pfn_t for vm_insert_mixed()

Ulrich Hecht ulrich.hecht+renesas at gmail.com
Wed Nov 15 07:24:09 PST 2017


Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas at gmail.com>
---
 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 <linux/kthread.h>
 #include <asm/atomic.h>
+#include <linux/pfn_t.h>
 
 #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
 			{
-- 
2.7.4




More information about the Linux-mediatek mailing list