From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Cezary Rojewski <cezary.rojewski@intel.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: rafael@kernel.org, linux-acpi@vger.kernel.org,
robert.moore@intel.com, amadeuszx.slawinski@linux.intel.com
Subject: Re: [PATCH v5 1/4] ACPI: NHLT: Reintroduce types the table consists of
Date: Wed, 6 Mar 2024 10:30:16 -0600 [thread overview]
Message-ID: <f6edf0bc-5b8e-49df-afd6-fab19d253d97@linux.intel.com> (raw)
In-Reply-To: <5b615397-2c9e-44cb-8f2f-6f763f0643e9@intel.com>
On 3/6/24 10:17, Cezary Rojewski wrote:
> On 2024-03-04 9:46 PM, Pierre-Louis Bossart wrote:
>> On 3/4/24 14:34, Cezary Rojewski wrote:
>>> On 2024-03-04 9:22 PM, Pierre-Louis Bossart wrote:
>>>> On 3/4/24 13:49, Andy Shevchenko wrote:
>>>>> On Mon, Mar 04, 2024 at 10:57:39AM -0600, Pierre-Louis Bossart wrote:
>>>>>>> +/* Values for link_type field above */
>>>>>>> +
>>>>>>> +#define ACPI_NHLT_LINKTYPE_HDA 0
>>>>>>> +#define ACPI_NHLT_LINKTYPE_DSP 1
>>>>>>> +#define ACPI_NHLT_LINKTYPE_PDM 2
>>>>>>> +#define ACPI_NHLT_LINKTYPE_SSP 3
>>>>>>> +#define ACPI_NHLT_LINKTYPE_SLIMBUS 4
>>>>>>> +#define ACPI_NHLT_LINKTYPE_SDW 5
>>>>>>> +#define ACPI_NHLT_LINKTYPE_UAOL 6
>>>>>>
>>>>>> More than half of those values are not used. Is there really any
>>>>>> benefit
>>>>>> in exposing them?
>>>>>
>>>>> Sometimes a code is the (only) documentation. Since it's a global
>>>>> header and
>>>>> part of ACPICA we probably better to expose all bits that are defined.
>>>>
>>>> NHLT is an Intel-only solution - no other company uses it.
>>>> Intel does not have any designs where SlimBus is productized.
>>>>
>>>> I fail to see the wisdom of exposing a non-existent option with
>>>> LINKTYPE_SLIMBUS. It's not because this case was listed in a document
>>>> that we have to add the information verbatim in a open-source header.
>>>>
>>>> Likewise for SoundWire we do NOT use NHLT at all...
>>>>
>>>> Options 4 and 5 are completely irrelevant. 0 and 1 most likely as well.
>>>
>>> Hello,
>>>
>>> How relevant or not given field is in LINKTYPE enumeration is..
>>> irrelevant. Those values are reserved since the dawn of the table.
>>> Renaming those with range of RESERVED_X(s) is hardly an alternative. On
>>> top of that, specs which have been publicly shared since 2016 _do_ list
>>> the non-I2S/PDW constants when describing LINKTYPE.
>>
>> I maintain that all those values, while spec-defined, should be treated
>> as not supported. It's not unusual in engineering to change directions
>> and back-annotate, demote or cleanup initial designs. Change is the only
>> constant.
>
> What's the proposal here? Would comment suffice or there is something
> else you have in mind?
I would be fine with a comment along the lines of 'defined in spec, not
used' and 'used on all SKL+ platforms'.
next prev parent reply other threads:[~2024-03-06 16:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-04 16:13 [PATCH v5 0/4] ACPI: NHLT: Access and query helpers Cezary Rojewski
2024-03-04 16:13 ` [PATCH v5 1/4] ACPI: NHLT: Reintroduce types the table consists of Cezary Rojewski
2024-03-04 16:57 ` Pierre-Louis Bossart
2024-03-04 19:49 ` Andy Shevchenko
2024-03-04 20:22 ` Pierre-Louis Bossart
2024-03-04 20:34 ` Cezary Rojewski
2024-03-04 20:46 ` Pierre-Louis Bossart
2024-03-06 16:17 ` Cezary Rojewski
2024-03-06 16:30 ` Pierre-Louis Bossart [this message]
2024-03-04 16:13 ` [PATCH v5 2/4] ACPI: NHLT: Introduce API for the table Cezary Rojewski
2024-03-04 16:13 ` [PATCH v5 3/4] ACPI: NHLT: Drop redundant types Cezary Rojewski
2024-03-04 16:13 ` [PATCH v5 4/4] ACPI: NHLT: Streamline struct naming Cezary Rojewski
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=f6edf0bc-5b8e-49df-afd6-fab19d253d97@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=amadeuszx.slawinski@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=cezary.rojewski@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=robert.moore@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