From: Josef Johansson <josef@oderland.se>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-i2c@vger.kernel.org, Wolfram Sang <wsa@kernel.org>
Subject: Re: [PATCH v3 1/1] i2c: scmi: Replace open coded device_get_match_data()
Date: Thu, 25 Aug 2022 20:16:40 +0200 [thread overview]
Message-ID: <44571849-17d2-2b1b-c39f-2d0cefbe6df6@oderland.se> (raw)
In-Reply-To: <Ywe0QPP9jE/uSgPa@smile.fi.intel.com>
On 8/25/22 19:41, Andy Shevchenko wrote:
> On Thu, Aug 25, 2022 at 06:54:29PM +0200, Josef Johansson wrote:
>> On 8/25/22 17:14, Andy Shevchenko wrote:
>>> On Tue, Aug 16, 2022 at 08:03:33AM +0200, Josef Johansson wrote:
>>>> On 7/8/22 14:09, Andy Shevchenko wrote:
>>>> I tried build Linux 6.0 and run under Xen 4.14.5. I got a kernel null pointer dereferenced while booting. Reverting this commit allowed the system to boot.
>>>>
>>>> Since I do not have any way of capturing the error except camera (it's a long message), here's my best try.
>>>>
>>>> BUG: kernel NULL pointer dereference, address: 0000000000000000
>>> I think I know what happens there. Can you test a hackpatch (below)
>>> with my patch _not being reverted_?
>>>
>>> diff --git a/drivers/i2c/busses/i2c-scmi.c b/drivers/i2c/busses/i2c-scmi.c
>>> index 79798fc7462a..3ed1758706b0 100644
>>> --- a/drivers/i2c/busses/i2c-scmi.c
>>> +++ b/drivers/i2c/busses/i2c-scmi.c
>>> @@ -426,6 +426,9 @@ static struct acpi_driver acpi_smbus_cmi_driver = {
>>> .add = acpi_smbus_cmi_add,
>>> .remove = acpi_smbus_cmi_remove,
>>> },
>>> + .drv = {
>>> + .acpi_match_table = acpi_smbus_cmi_ids,
>>> + },
>>> };
>>> module_acpi_driver(acpi_smbus_cmi_driver);
>>>
>> Hi,
>>
>> I applied your patch and the system boots now. Good job :)
> Yeah, but the initial conversion will be transformed to much bigger since
> maintainer doesn't want the fix in the ACPI glue code for the (deprecated)
> ACPI drivers.
>
> So there will be no patches soon, but I will Cc you to anything
> I will come up with in the future. Thanks for testing and reporting!
>
Oh, ok! Yeah for sure, obviously I have a pretty broken setup :)
Good luck with the bigger transformation!
Regards
- Josef
next prev parent reply other threads:[~2022-08-25 18:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220708120958.74034-1-andriy.shevchenko () linux ! intel ! com>
2022-08-16 6:03 ` [PATCH v3 1/1] i2c: scmi: Replace open coded device_get_match_data() Josef Johansson
2022-08-16 10:18 ` Wolfram Sang
2022-08-16 10:20 ` Josef Johansson
2022-08-16 10:27 ` Wolfram Sang
2022-08-23 14:29 ` Andy Shevchenko
2022-08-25 15:14 ` Andy Shevchenko
2022-08-25 16:54 ` Josef Johansson
2022-08-25 17:41 ` Andy Shevchenko
2022-08-25 18:16 ` Josef Johansson [this message]
2022-07-08 12:09 Andy Shevchenko
2022-07-16 12:30 ` Wolfram Sang
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=44571849-17d2-2b1b-c39f-2d0cefbe6df6@oderland.se \
--to=josef@oderland.se \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linux-i2c@vger.kernel.org \
--cc=wsa@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).