From: "Jahagirdar, Akshata" <akshata.jahagirdar@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: <igt-dev@lists.freedesktop.org>, <matthew.auld@intel.com>
Subject: Re: [PATCH i-g-t v2 1/2] lib/intel_blt: Add helper function to ensure platform supports compression
Date: Thu, 28 Mar 2024 22:15:37 -0700 [thread overview]
Message-ID: <2cbcd814-3bad-4665-9dcc-dd23d64533a4@intel.com> (raw)
In-Reply-To: <20240329050132.myk23se7d22cude6@zkempczy-mobl2>
On 3/28/2024 10:01 PM, Zbigniew Kempczyński wrote:
> On Fri, Mar 29, 2024 at 09:30:12AM -0700, Akshata Jahagirdar wrote:
>> Add helper function to check if platform has flat-ccs enabled by
>> reading from debugfs entry.
>>
>> Signed-off-by: Akshata Jahagirdar <akshata.jahagirdar@intel.com>
>> ---
>> lib/intel_blt.c | 14 ++++++++++++++
>> lib/intel_blt.h | 1 +
>> 2 files changed, 15 insertions(+)
>>
>> diff --git a/lib/intel_blt.c b/lib/intel_blt.c
>> index fe0a45cb8..0e569c5a2 100644
>> --- a/lib/intel_blt.c
>> +++ b/lib/intel_blt.c
>> @@ -464,6 +464,20 @@ bool blt_block_copy_supports_compression(int fd)
>> BLT_CMD_SUPPORTS_COMPRESSION);
>> }
>>
>> +/**
>> + * blt_platform_supports_compression
>> + * @fd: drm fd
>> + *
>> + * Check if platform provided by @fd device supports compression.
>> + *
>> + * Returns:
>> + * true if it does, false otherwise.
>> + */
>> +bool blt_platform_supports_compression(int fd)
>> +{
>> + return igt_debugfs_search(fd, "info", "has_flat_ccs yes");
>> +}
> I would use 'blt_platform_has_flat_ccs_enabled' as the function name, as
> this describes BIOS may have disabled it. Same I would update comment
> because platform may support compression but it is not enabled.
>
> --
> Zbigniew
Got it, will update it! Thank you for your review.
Best,
Akshata
>> +
>> /**
>> * blt_uses_extended_block_copy
>> * @fd: drm fd
>> diff --git a/lib/intel_blt.h b/lib/intel_blt.h
>> index 1f6c71359..a2c4a4adb 100644
>> --- a/lib/intel_blt.h
>> +++ b/lib/intel_blt.h
>> @@ -209,6 +209,7 @@ bool blt_fast_copy_supports_tiling(int fd, enum blt_tiling_type tiling);
>> bool blt_block_copy_supports_tiling(int fd, enum blt_tiling_type tiling);
>> bool blt_xy_src_copy_supports_tiling(int fd, enum blt_tiling_type tiling);
>> bool blt_block_copy_supports_compression(int fd);
>> +bool blt_platform_supports_compression(int fd);
>> bool blt_uses_extended_block_copy(int fd);
>>
>> const char *blt_tiling_name(enum blt_tiling_type tiling);
>> --
>> 2.34.1
>>
next prev parent reply other threads:[~2024-03-29 5:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-29 16:30 [PATCH i-g-t v2 0/2] Update compression in config based on platform Akshata Jahagirdar
2024-03-29 5:33 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-03-29 5:35 ` ✓ CI.xeBAT: " Patchwork
2024-03-29 5:36 ` ✗ CI.xeBAT: failure " Patchwork
2024-03-29 16:30 ` [PATCH i-g-t v2 1/2] lib/intel_blt: Add helper function to ensure platform supports compression Akshata Jahagirdar
2024-03-29 5:01 ` Zbigniew Kempczyński
2024-03-29 5:15 ` Jahagirdar, Akshata [this message]
2024-03-29 16:30 ` [PATCH i-g-t v2 2/2] tests/xe_ccs: Update compression in config based on platform Akshata Jahagirdar
2024-03-29 5:05 ` Zbigniew Kempczyński
2024-03-29 5:18 ` Jahagirdar, Akshata
2024-03-30 4:14 ` ✗ Fi.CI.IGT: failure for " Patchwork
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=2cbcd814-3bad-4665-9dcc-dd23d64533a4@intel.com \
--to=akshata.jahagirdar@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=matthew.auld@intel.com \
--cc=zbigniew.kempczynski@intel.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox