We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2484b17 commit dbafc67Copy full SHA for dbafc67
drivers/gpu/drm/i915/gvt/cmd_parser.c
@@ -968,18 +968,6 @@ static int cmd_handler_lri(struct parser_exec_state *s)
968
{
969
int i, ret = 0;
970
int cmd_len = cmd_length(s);
971
- u32 valid_len = CMD_LEN(1);
972
-
973
- /*
974
- * Official intel docs are somewhat sloppy , check the definition of
975
- * MI_LOAD_REGISTER_IMM.
976
- */
977
- #define MAX_VALID_LEN 127
978
- if ((cmd_len < valid_len) || (cmd_len > MAX_VALID_LEN)) {
979
- gvt_err("len is not valid: len=%u valid_len=%u\n",
980
- cmd_len, valid_len);
981
- return -EFAULT;
982
- }
983
984
for (i = 1; i < cmd_len; i += 2) {
985
if (IS_BROADWELL(s->engine->i915) && s->engine->id != RCS0) {
0 commit comments