Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: "Martin Storsjö" <martin@martin.st>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: jinbo <jinbo@loongson.cn>
Subject: Re: [FFmpeg-devel] [PATCH 3/4] checkasm: hevc_pel: Use helpers for checking for writes out of bounds
Date: Thu, 10 Apr 2025 13:36:18 +0300 (EEST)
Message-ID: <d9020ea-7691-c67c-4963-224305eeb@martin.st> (raw)
In-Reply-To: <fe33b98.114f0.195f16b2cde.Coremail.yinshiyou-hf@loongson.cn>

On Tue, 1 Apr 2025, yinshiyou-hf@loongson.cn wrote:

>> -----原始邮件-----
>> 发件人: "Martin Storsjö" <martin@martin.st>
>> 发送时间:2025-04-01 17:35:16 (星期二)
>> 收件人: ffmpeg-devel@ffmpeg.org
>> 抄送: jinbo <jinbo@loongson.cn>, yinshiyou-hf@loongson.cn, "Lu Wang" <wanglu@loongson.cn>
>> 主题: Re: [PATCH 3/4] checkasm: hevc_pel: Use helpers for checking for writes out of bounds
>> 
>> On Wed, 26 Mar 2025, Martin Storsjö wrote:
>> 
>> > This allows catching whether the functions write outside of
>> > the designated rectangle, and if run with "checkasm -v", it also
>> > prints out on which side of the rectangle the overwrite was.
>> > ---
>> > tests/checkasm/hevc_pel.c | 157 ++++++++++++++++++++++----------------
>> > 1 file changed, 90 insertions(+), 67 deletions(-)
>> 
>> This patch exposes existing issues in the Loongson HEVC simd; running with 
>> "checkasm --test=hevc_pel -v" after applying these patches, shows the 
>> following errors:
>> 
>> LSX:
>>   - hevc_pel.qpel       [OK]
>>   - hevc_pel.qpel_uni   [OK]
>>   - hevc_pel.qpel_uni_w [OK]
>>     put_hevc_pel_bi_pixels12_8_lsx (src/tests/checkasm/hevc_pel.c:272)
>> dst (12x12):
>>   overwrite below
>>   - hevc_pel.qpel_bi    [FAILED]
>>   - hevc_pel.epel       [OK]
>>     put_hevc_epel_uni_v24_8_lsx (src/tests/checkasm/hevc_pel.c:433)
>> dst (24x24):
>>   overwrite below
>>     put_hevc_epel_uni_hv12_8_lsx (src/tests/checkasm/hevc_pel.c:433)
>> dst (12x12):
>>   overwrite below
>>   - hevc_pel.epel_uni   [FAILED]
>>   - hevc_pel.epel_uni_w [OK]
>>     put_hevc_epel_bi_hv6_8_lsx (src/tests/checkasm/hevc_pel.c:545)
>> dst (6x6):
>>   overwrite below
>>   - hevc_pel.epel_bi    [FAILED]
>> LASX:
>>   - hevc_pel.qpel_uni   [OK]
>>   - hevc_pel.qpel_uni_w [OK]
>>   - hevc_pel.epel_uni_w [OK]
>>   - hevc_pel.epel_bi    [OK]
>> checkasm: 4 of 231 tests have failed
>> 
>> 
>> So the functions seem to produce more output rows than requested, for 
>> "uneven" heights like 6, 12 or 24 pixels.
>> 
>> Can someone from Loongson please have a look at this?
>> 
>> We don't seem to have any Loongson instances on fate, so can I go ahead 
>> and push this, without waiting for the Loongson assembly to be fixed? We 
>> do have some on patchwork though, so I guess that'll make patchwork noisy 
>> for everybody else until it is fixed, so I guess I'll have to hold off of 
>> this patch until it is fixed.
>> 
>> // Martin
>
> OK,go head.
> I will try to fix it in few days.

I was told that the loongarch machine is taken out from patchwork for now, 
so we can go ahead and land this, and hopefully the loongarch assembly 
gets fixed soon afterwards - so I'll push this now.

// Martin
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

  reply	other threads:[~2025-04-10 10:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-26 10:30 [FFmpeg-devel] [PATCH 1/4] checkasm: Make checkasm_fail_func return whether we should print verbosely Martin Storsjö
2025-03-26 10:30 ` [FFmpeg-devel] [PATCH 2/4] checkasm: Implement helpers for defining and checking padded rects Martin Storsjö
2025-03-29  0:15   ` Michael Niedermayer
2025-03-31 13:05     ` Martin Storsjö
2025-04-01  0:28       ` Michael Niedermayer
2025-04-01  9:38         ` Martin Storsjö
2025-04-01 15:38           ` Martin Storsjö
2025-03-26 10:30 ` [FFmpeg-devel] [PATCH 3/4] checkasm: hevc_pel: Use helpers for checking for writes out of bounds Martin Storsjö
2025-04-01  9:35   ` Martin Storsjö
2025-04-01 12:54     ` yinshiyou-hf
2025-04-10 10:36       ` Martin Storsjö [this message]
2025-03-26 10:30 ` [FFmpeg-devel] [PATCH 4/4] checkasm: vp8dsp: Use checkasm_check_padded in check_mc Martin Storsjö

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9020ea-7691-c67c-4963-224305eeb@martin.st \
    --to=martin@martin.st \
    --cc=ffmpeg-devel@ffmpeg.org \
    --cc=jinbo@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git