Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4618154pxj; Wed, 12 May 2021 09:20:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgMlmr+gPQGDX29H70mItEJkU6XyYaLihnbc99c67ndxBUG6JO7V3JhipicXnAJDtF+aQr X-Received: by 2002:a17:906:858:: with SMTP id f24mr39169722ejd.347.1620836450147; Wed, 12 May 2021 09:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620836450; cv=none; d=google.com; s=arc-20160816; b=CssnMSCv+saq9NdmPdJpAFurhsghLIScN/zdZkRNDvbSJ1XgaE6LjPL4yoSDZHhCwe nyF07rUM1LFe/36OEpCCST0iJpokqLRvQMfhlJ0iATubFlTgRa1hge1q5CYCFwjYjyLS LmAjgSPjGphnJNySrSscD7KffoPhPGJIJRIUF0D9Tar9yoajZPFvoapDnkE5qtVSLXQS YaUAfm8hSQeNumKk9EZGKsFSkCuQEB7iJpXScDtwWUGIDV6+wN5237AVV11ZOvoYoO7E c6LSdMP2Rt9PoZvXld8LsEoEMnjCwDfGmOCoKb+kI6OtDcx7elpd7BoTW3/Yf6wrQ5wz hjgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/Pu1PjXRzdzn5VB8Q9Xc6j8wooY04jMt09PzaWpzDxk=; b=WpLk2iZ6BMyf7eQ4J3rSNUCrvBDNcDZAbfHQLfhynDPbwVF7BPN1/jVXnURoNNJg0/ WqG9EbihyC7BqotxMYFDjT1jnnPgQOvkW2dDA8j/YJpUUfeHNi4ndz2vKjyynHfTwBA1 /Q1D7djh1j39QkGKiOO0PV39Ln+CzJuPeoaGlFtbNGDUe7gHECGGP8y7+oBgODzu3xey +9BvZoa2sW/Io/0qmAqft+nvPUnyFIKnN8zLgWGRNOJs9EOPHrg/kqRFoZqqwZe/rwg7 7oGWL8gcZTaQcjKGZnXHBYM9Matb4uzkYMxMAQaQPChrLRD1+T8Ac4En+EyAqpiEegHk Jfyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2YuwHhaN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dy22si116868edb.301.2021.05.12.09.20.26; Wed, 12 May 2021 09:20:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2YuwHhaN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238366AbhELQPM (ORCPT + 99 others); Wed, 12 May 2021 12:15:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:46626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233925AbhELPbv (ORCPT ); Wed, 12 May 2021 11:31:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 73F266194C; Wed, 12 May 2021 15:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832584; bh=CPQHsJ5C8ZacX4f7DbLJ/TAPTK6DTW61Q7UWat2tAKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2YuwHhaNZnmk6cF6r30V6BgtsnKE3y9LmSP4ML3K6ljvCGApuhbp/HokqH4DTbWc9 1Piuxy5pVaFMioyMdztFlBO1NwL4oQXo92snNDsNx2sg6/s7FqnMyLyiADLGIFB7OR 6kvsQ3bQw96Ta8IoyYLycJunwyAv70O6FHc6vmEA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jernej Skrabec , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.10 340/530] media: cedrus: Fix H265 status definitions Date: Wed, 12 May 2021 16:47:30 +0200 Message-Id: <20210512144830.968114836@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jernej Skrabec [ Upstream commit 147d211cc9b4d753148d1640a1758b25edfbf437 ] Some of the H265 status flags are wrong. Redefine them to corespond to Allwinner CedarC open source userspace library. Only one of these flags is actually used and new value also matches value used in libvdpau-sunxi library, which is proven to be working. Note that wrong (old) value in right circumstances (in combination with another H265 decoding bug) causes driver lock up. With this fix decoding is still broken (green output) but at least driver doesn't lock up. Fixes: 86caab29da78 ("media: cedrus: Add HEVC/H.265 decoding support") Signed-off-by: Jernej Skrabec Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- .../staging/media/sunxi/cedrus/cedrus_regs.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_regs.h b/drivers/staging/media/sunxi/cedrus/cedrus_regs.h index 66b152f18d17..426387cf16ac 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus_regs.h +++ b/drivers/staging/media/sunxi/cedrus/cedrus_regs.h @@ -443,16 +443,17 @@ #define VE_DEC_H265_STATUS_STCD_BUSY BIT(21) #define VE_DEC_H265_STATUS_WB_BUSY BIT(20) #define VE_DEC_H265_STATUS_BS_DMA_BUSY BIT(19) -#define VE_DEC_H265_STATUS_IQIT_BUSY BIT(18) +#define VE_DEC_H265_STATUS_IT_BUSY BIT(18) #define VE_DEC_H265_STATUS_INTER_BUSY BIT(17) #define VE_DEC_H265_STATUS_MORE_DATA BIT(16) -#define VE_DEC_H265_STATUS_VLD_BUSY BIT(14) -#define VE_DEC_H265_STATUS_DEBLOCKING_BUSY BIT(13) -#define VE_DEC_H265_STATUS_DEBLOCKING_DRAM_BUSY BIT(12) -#define VE_DEC_H265_STATUS_INTRA_BUSY BIT(11) -#define VE_DEC_H265_STATUS_SAO_BUSY BIT(10) -#define VE_DEC_H265_STATUS_MVP_BUSY BIT(9) -#define VE_DEC_H265_STATUS_SWDEC_BUSY BIT(8) +#define VE_DEC_H265_STATUS_DBLK_BUSY BIT(15) +#define VE_DEC_H265_STATUS_IREC_BUSY BIT(14) +#define VE_DEC_H265_STATUS_INTRA_BUSY BIT(13) +#define VE_DEC_H265_STATUS_MCRI_BUSY BIT(12) +#define VE_DEC_H265_STATUS_IQIT_BUSY BIT(11) +#define VE_DEC_H265_STATUS_MVP_BUSY BIT(10) +#define VE_DEC_H265_STATUS_IS_BUSY BIT(9) +#define VE_DEC_H265_STATUS_VLD_BUSY BIT(8) #define VE_DEC_H265_STATUS_OVER_TIME BIT(3) #define VE_DEC_H265_STATUS_VLD_DATA_REQ BIT(2) #define VE_DEC_H265_STATUS_ERROR BIT(1) -- 2.30.2