* [Accel-config] Re: [PATCH v1] accel-config: Return error if DSA environment not found
@ 2021-02-10 18:23 Dave Jiang
0 siblings, 0 replies; 4+ messages in thread
From: Dave Jiang @ 2021-02-10 18:23 UTC (permalink / raw)
To: accel-config
[-- Attachment #1: Type: text/plain, Size: 984 bytes --]
On 2/10/2021 11:00 AM, ramesh.thomas(a)intel.com wrote:
> From: Ramesh Thomas <ramesh.thomas(a)intel.com>
>
> Check for presence of DSA sysfs folder /sys/bus/dsa before running
> commands. If not found print an error message and return -ENOENT
>
> Signed-off-by: Ramesh Thomas <ramesh.thomas(a)intel.com>
> ---
> accfg/accel-config.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/accfg/accel-config.c b/accfg/accel-config.c
> index f963fc7..01a1cd9 100644
> --- a/accfg/accel-config.c
> +++ b/accfg/accel-config.c
> @@ -95,6 +95,12 @@ int main(int argc, const char **argv)
> return 0;
> }
>
> + if (access("/sys/bus/dsa", R_OK)) {
For the most part this is fine. I wonder if there will ever be a
platform with IAX and no DSA. Maybe check for dsa || iax?
> + fprintf(stderr,
> + "DSA environment not found. Is the driver loaded?\n");
> + return -ENOENT;
> + }
> +
> rc = accfg_new(&ctx);
> if (rc)
> return 0;
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Accel-config] Re: [PATCH v1] accel-config: Return error if DSA environment not found
@ 2021-02-10 19:37 Dave Jiang
0 siblings, 0 replies; 4+ messages in thread
From: Dave Jiang @ 2021-02-10 19:37 UTC (permalink / raw)
To: accel-config
[-- Attachment #1: Type: text/plain, Size: 452 bytes --]
On 2/10/2021 12:30 PM, Thomas, Ramesh wrote:
> On Wed, Feb 10, 2021 at 10:41:41AM, Tony Luck wrote:
>>> For the most part this is fine. I wonder if there will ever be a
>>> platform with IAX and no DSA. Maybe check for dsa || iax?
>> Yes. Lunar Lake plans to include IAX for sure, but doubtful that DSA
>> will be.
> I think checking for idxd kernel module being loaded would take care of
> all scenarios.
>
> - Ramesh
Yes I think so.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Accel-config] Re: [PATCH v1] accel-config: Return error if DSA environment not found
@ 2021-02-10 19:30 Thomas, Ramesh
0 siblings, 0 replies; 4+ messages in thread
From: Thomas, Ramesh @ 2021-02-10 19:30 UTC (permalink / raw)
To: accel-config
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
On Wed, Feb 10, 2021 at 10:41:41AM, Tony Luck wrote:
> > For the most part this is fine. I wonder if there will ever be a
> > platform with IAX and no DSA. Maybe check for dsa || iax?
>
> Yes. Lunar Lake plans to include IAX for sure, but doubtful that DSA
> will be.
I think checking for idxd kernel module being loaded would take care of
all scenarios.
- Ramesh
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Accel-config] Re: [PATCH v1] accel-config: Return error if DSA environment not found
@ 2021-02-10 18:41 Luck, Tony
0 siblings, 0 replies; 4+ messages in thread
From: Luck, Tony @ 2021-02-10 18:41 UTC (permalink / raw)
To: accel-config
[-- Attachment #1: Type: text/plain, Size: 220 bytes --]
> For the most part this is fine. I wonder if there will ever be a
> platform with IAX and no DSA. Maybe check for dsa || iax?
Yes. Lunar Lake plans to include IAX for sure, but doubtful that DSA will be.
-Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-02-10 19:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10 18:23 [Accel-config] Re: [PATCH v1] accel-config: Return error if DSA environment not found Dave Jiang
2021-02-10 18:41 Luck, Tony
2021-02-10 19:30 Thomas, Ramesh
2021-02-10 19:37 Dave Jiang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.