Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8cb4d63 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: secure_buffer: Add SPSS_SP_SHARED vmid"

parents 035b037e b07c54bf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -412,6 +412,8 @@ const char *msm_secure_vmid_to_string(int secure_vmid)
		return "VMID_WLAN_CE";
	case VMID_CP_CAMERA_PREVIEW:
		return "VMID_CP_CAMERA_PREVIEW";
	case VMID_CP_SPSS_SP_SHARED:
		return "VMID_CP_SPSS_SP_SHARED";
	case VMID_INVAL:
		return "VMID_INVAL";
	default:
+4 −1
Original line number Diff line number Diff line
@@ -652,7 +652,8 @@ bool is_secure_vmid_valid(int vmid)
		vmid == VMID_CP_CAMERA ||
		vmid == VMID_CP_SEC_DISPLAY ||
		vmid == VMID_CP_APP ||
		vmid == VMID_CP_CAMERA_PREVIEW);
		vmid == VMID_CP_CAMERA_PREVIEW ||
		vmid == VMID_CP_SPSS_SP_SHARED);
}

int get_secure_vmid(unsigned long flags)
@@ -673,6 +674,8 @@ int get_secure_vmid(unsigned long flags)
		return VMID_CP_APP;
	if (flags & ION_FLAG_CP_CAMERA_PREVIEW)
		return VMID_CP_CAMERA_PREVIEW;
	if (flags & ION_FLAG_CP_SPSS_SP_SHARED)
		return VMID_CP_SPSS_SP_SHARED;
	return -EINVAL;
}
/* fix up the cases where the ioctl direction bits are incorrect */
+1 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ enum cp_mem_usage {
#define ION_FLAG_CP_CAMERA		ION_BIT(21)
#define ION_FLAG_CP_HLOS		ION_BIT(22)
#define ION_FLAG_CP_HLOS_FREE		ION_BIT(23)
#define ION_FLAG_CP_SPSS_SP_SHARED	ION_BIT(24)
#define ION_FLAG_CP_SEC_DISPLAY		ION_BIT(25)
#define ION_FLAG_CP_APP			ION_BIT(26)
#define ION_FLAG_CP_CAMERA_PREVIEW	ION_BIT(27)
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ enum vmid {
	VMID_WLAN = 0x18,
	VMID_WLAN_CE = 0x19,
	VMID_CP_CAMERA_PREVIEW = 0x1D,
	VMID_CP_SPSS_SP_SHARED = 0x22,
	VMID_LAST,
	VMID_INVAL = -1
};