linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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 18:54:29 +0200	[thread overview]
Message-ID: <aa5f706a-6759-0fce-054e-daccb544d2fd@oderland.se> (raw)
In-Reply-To: <YweRxiJl5zzufXUl@smile.fi.intel.com>

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 :)

Regards
- Josef

  reply	other threads:[~2022-08-25 16:54 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 [this message]
2022-08-25 17:41       ` Andy Shevchenko
2022-08-25 18:16         ` Josef Johansson
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=aa5f706a-6759-0fce-054e-daccb544d2fd@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).