From: Cryolitia PukNgae <liziyao@uniontech.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: "Alex Lanzano" <lanzano.alex@gmail.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
"Yao Zi" <ziyao@disroot.org>, WangYuli <wangyuli@uniontech.com>,
"Jun Zhan" <zhanjun@uniontech.com>
Subject: Re: [PATCH] iio: imu: bmi270: Match ACPI ID found on newer GPD firmware
Date: Thu, 31 Jul 2025 11:05:21 +0800 [thread overview]
Message-ID: <8C57A7CCEBFAEA59+b36cfd0d-2cd9-413e-b658-e82938f9d947@uniontech.com> (raw)
In-Reply-To: <CAHp75Vc2K3AmPhwme3+7cCGwDTA6V+4Ug8f++iFr8gCThCOnQw@mail.gmail.com>
Dear Maintainer,
Thank you for your reply. I apologize for the confusion regarding the
PNP VID assignment - you are absolutely correct that "BMI0260" is not an
official Bosch PNP ID. Let me provide a more detailed context.
GPD devices originally used BMI160 sensors with the "BMI0160" PNP ID.
When they switched to BMI260 sensors in newer hardware, they reused the
existing Windows driver which accepts both "BMI0160" and "BMI0260" IDs.
Consequently, they kept "BMI0160" in DSDT tables for new BMI260 devices,
causing driver mismatches in Linux.
Current Situation:
1. GPD updated BIOS v0.40+ for newer devices to report "BMI0260" for
BMI260 sensors to avoid loading bmi160 driver on Linux. While this isn't
Bosch's VID:
2. Bosch's official Windows driver uses "BMI0260" as a compatible ID
3. The ID "BMI0160" already exists in mainline (drivers/iio/imu/bmi160)
4. We're seeing real devices shipping with "BMI0260" in DSDT
Given the challenges we've faced in communicating with GPD regarding
Linux support, it seems unlikely that we can push for another change;
they are solely focused on ensuring compatibility with Bosch's official
Windows driver. Unfortunately, I do not have the means to contact Bosch
and urge them to abandon the use of these non-standard IDs.
Given existing devices use "BMI0260" and Windows drivers validate this
ID pattern, I propose temporarily adding it to bmi270_acpi_match as a
compatibility measure. This would immediately benefit already existing
users.
I'm happy to provide DSDT excerpts from GPD Win Max 2 2023 devices
showing the "BMI0260" declaration if needed.
Thank you for your time and guidance.
Best regards,
Cryolitia PukNgae
在 2025/7/31 04:57, Andy Shevchenko 写道:
> On Wed, Jul 30, 2025 at 2:56 PM Cryolitia PukNgae via B4 Relay
> <devnull+liziyao.uniontech.com@kernel.org> wrote:
>>
>> From: Cryolitia PukNgae <liziyao@uniontech.com>
>>
>> Some GPD devices ship a buggy firmware that describes on-device BMI260
>> with ACPI ID "BMI0160". Since this is fixed in BIOS update v0.40,
>> let's match the correct ID to detect the device. The buggy ID "BMI0160"
>> is kept as well to maintain compatibility with older firmwares.
>
> No, it's not true. See below why,
>
>> ---
>> Some GPD devices ship a buggy firmware that describes on-device BMI260
>> with ACPI ID "BMI0160". Since this is fixed in BIOS update v0.40[1],
>> let's match the correct ID to detect the device. The buggy ID "BMI0160"
>> is kept as well to maintain compatibility with older firmwares.
>>
>> Link: http://download.softwincn.com/WIN%20Max%202024/Max2-7840-BIOS-V0.41.zip
>>
>> [1]. See the update nodes in the archive file above
>
> Yeah... I think you need one more attempt to fix it right.
>
> ...
>
>> static const struct acpi_device_id bmi270_acpi_match[] = {
>> /* GPD Win Mini, Aya Neo AIR Pro, OXP Mini Pro, etc. */
>> { "BMI0160", (kernel_ulong_t)&bmi260_chip_info },
>
> Unbelievable! How is the above supposed to work? Do we have DMI quirks
> in both drivers (bmi160 and bmi270)?
>
>> + /* GPD Win Max 2 2023(sincice BIOS v0.40), etc. */
>> + { "BMI0260", (kernel_ulong_t)&bmi260_chip_info },
>
> For the record this is incorrect ACPI ID, nor PNP ID for Bosh, unless
> I missed that https://www.bensonmedical.com/ is bought by Bosh or part
> of the groups of the companies.,
>
>> { }
>> };
>
> Can you work with Bosh to resolve this as soon as possible and use a
> real Bosh ACPI ID (BOSCxxxx) or PNP ID (BSGxxxx)?
> Also, each ACPI ID adding patch (when it's incorrect) must provide a
> DSDT excerpt in the commit message to show this. Ideally this also
> should be confirmed by the vendor of the device (GPD) that the ID is
> incorrect and a correct one needs to be used.
>
next prev parent reply other threads:[~2025-07-31 3:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 12:56 [PATCH] iio: imu: bmi270: Match ACPI ID found on newer GPD firmware Cryolitia PukNgae
2025-07-30 12:56 ` Cryolitia PukNgae via B4 Relay
2025-07-30 17:46 ` David Lechner
2025-07-30 20:57 ` Andy Shevchenko
2025-07-30 21:11 ` Andy Shevchenko
2025-07-31 3:05 ` Cryolitia PukNgae [this message]
2025-07-31 9:46 ` Andy Shevchenko
2025-08-11 13:08 ` Andy Shevchenko
2025-08-11 13:10 ` Andy Shevchenko
-- strict thread matches above, loose matches on Subject: below --
2025-02-06 7:09 Cryolitia PukNgae
2025-02-06 7:09 ` Cryolitia PukNgae via B4 Relay
2025-02-07 17:12 ` Alex Lanzano
2025-02-08 13:30 ` Jonathan Cameron
2025-07-30 10:16 ` Cryolitia PukNgae
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=8C57A7CCEBFAEA59+b36cfd0d-2cd9-413e-b658-e82938f9d947@uniontech.com \
--to=liziyao@uniontech.com \
--cc=andy.shevchenko@gmail.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=lanzano.alex@gmail.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=wangyuli@uniontech.com \
--cc=zhanjun@uniontech.com \
--cc=ziyao@disroot.org \
/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 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.