msm: ipahal: Add 2 new exception cases for status pkt

Add new enums for invalid pipe exception pkt and HDRI
exception. Handle the case where these exceptions
are received.

Change-Id: I920e4f1c121850c535c471f647fd5842ec25ba6e
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
This commit is contained in:
Michael Adisumarta
2022-01-24 16:03:22 -08:00
parent 3518342e1b
commit deddb2eae3
2 changed files with 14 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <linux/debugfs.h>
@@ -50,6 +51,8 @@ static const char *ipahal_pkt_status_exception_to_str
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_NAT),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_IPV6CT),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_UCP),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_INVALID_PIPE),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_HDRI),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_CSUM),
};
@@ -1166,6 +1169,12 @@ static enum ipahal_pkt_status_exception pkt_status_parse_exception(
case 128:
exception_type = IPAHAL_PKT_STATUS_EXCEPTION_UCP;
break;
case 129:
exception_type = IPAHAL_PKT_STATUS_EXCEPTION_INVALID_PIPE;
break;
case 136:
exception_type = IPAHAL_PKT_STATUS_EXCEPTION_HDRI;
break;
case 229:
exception_type = IPAHAL_PKT_STATUS_EXCEPTION_CSUM;
break;

View File

@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef _IPAHAL_H_
@@ -522,6 +523,8 @@ enum ipahal_pkt_status_exception {
IPAHAL_PKT_STATUS_EXCEPTION_NAT,
IPAHAL_PKT_STATUS_EXCEPTION_IPV6CT,
IPAHAL_PKT_STATUS_EXCEPTION_UCP,
IPAHAL_PKT_STATUS_EXCEPTION_INVALID_PIPE,
IPAHAL_PKT_STATUS_EXCEPTION_HDRI,
IPAHAL_PKT_STATUS_EXCEPTION_CSUM,
IPAHAL_PKT_STATUS_EXCEPTION_MAX,
};