Re: [PATCH 2/2] zram: support deflate-specific params
From: Zaslonko Mikhail
Date: Mon May 19 2025 - 08:10:06 EST
Hello,
On 15.05.2025 05:38, Herbert Xu wrote:
> On Thu, May 15, 2025 at 12:32:39PM +0900, Sergey Senozhatsky wrote:
>>
>> This is not exported yet.
>>
>> I lean toward not filtering/limiting anything and just permit
>> what include/linux/zlib.h promises [1]. Would that be OK for
>> Crypto API?
>
> I don't have a problem with that.
>
> It just makes the hardware implementor's job a little bit harder,
> because the Crypto API requires every implementation of a given
> algorithm to be equivalent. So if the software zlib supports
> a full level specification, then so must the s390 version of zlib.
> If it cannot support a parameter, then it must provide a software
> fallback.
That's exactly how s390 zlib hardware support works, including
fallback to software.
My intention was to use specific zlib compression parameters
(window size and compression level), as default values for zram
delflate on s390 to benefit from hardware acceleration.
>
> Cheers,
Thanks,
Mikhail