Re: Are there some potentially serious problems that I should be aware of if I totally disable the CONFIG_ACPI option on the X86_64 platform?

2020-07-01 Thread 孙世龙 sunshilong
Hi, Gred
Thank you for taking the time to respond to me.

>> Would it do harm to the hardware?
> It might, try it and see :)
It's really bad news.


孙世龙 sunshilong  于2020年7月1日周三 下午8:24写道:
>
> Hi, Gred
> Thank you for taking the time to respond to me.
> >> Would it do harm to the hardware?
> > It might, try it and see :)
> It's really bad news.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Are there some potentially serious problems that I should be aware of if I totally disable the CONFIG_ACPI option on the X86_64 platform?

2020-07-01 Thread 孙世龙 sunshilong
Hi, Gred
Thank you for taking the time to respond to me.
>> Would it do harm to the hardware?
> It might, try it and see :)
It's really bad news.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Are there some potentially serious problems that I should be aware of if I totally disable the CONFIG_ACPI option on the X86_64 platform?

2020-07-01 Thread Greg KH
On Wed, Jul 01, 2020 at 05:15:52PM +0800, 孙世龙 sunshilong wrote:
> Hi, list
> 
> Are there some potentially serious problems that I should be aware of
> if I totally disable the CONFIG_ACPI option on the X86_64 platform?

Yes, your ACPI-based system will not boot.

> Would it do harm to the hardware?

It might, try it and see :)

good luck!!!

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Where to place my driver

2020-07-01 Thread jaap aarts
> So those tie into the led subsystem?
OK I did not expect that to be a thing, seems like that is what I need.

> start with drivers/hwmon/ and if the developers there don't think that
> it should be there, let them tell you where to put it :)
I will be on holiday until end of next week, I will send in the first 3 patches
for fan support when I'm back home.
I will add temps and LED later on.
Maybe I will also add fan/pump speed curve, maybe.

Thanks :)

Jaap Aarts

On Tue, 30 Jun 2020 at 08:13, Greg KH  wrote:
>
> On Tue, Jun 23, 2020 at 10:26:33PM +0200, jaap aarts wrote:
> > Hello kernel newbies,
> >
> > I am currently writing a driver for asetek 6th gen CPU coolers.
> > Communication to these coolers goes via USB, but 3/4 (but not all!!)
> > metrics are hwmon metrics.
> > There is a case for either USB or hwmon but I don't know where I am
> > supposed to put my driver.
> > There is also the 1/4, RGB controls, these obviously don't fit in
> > hwmon, but I don't know where to put these kinds of controls in the
> > filesystem.
>
> So those tie into the led subsystem?
>
> > If anyone could help me with these 2 choices I can start submitting my
> > first code (I already have fan control working).
>
> start with drivers/hwmon/ and if the developers there don't think that
> it should be there, let them tell you where to put it :)
>
> Also, when submitting the driver, as it talks USB, be sure to cc: the
> linux-...@vger.kernel.org mailing list to get those driver author's
> review.
>
> good luck!
>
> greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Are there some potentially serious problems that I should be aware of if I totally disable the CONFIG_ACPI option on the X86_64 platform?

2020-07-01 Thread 孙世龙 sunshilong
Hi, list

Are there some potentially serious problems that I should be aware of
if I totally disable the CONFIG_ACPI option on the X86_64 platform?

Would it do harm to the hardware?

Thank you for your attention to this matter.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How do you investigate the cause of total hang? Is there some information that I should pay attention to in order to get some hint?

2020-07-01 Thread Cong Wang
On Tue, Jun 30, 2020 at 7:49 PM 孙世龙 sunshilong  wrote:
>
> Hi, list
>
> My x86 machine(linux4.19) sometimes hangs, suddenly not responding in
> any way to the mouse or the keyboard.
>
> How can I investigate why it hung up? Is there extra information I can
> find for a clue? Is there anything less drastic than power-off to get
> some kind of action, if only some limited shell or just beeps,
> but might give a clue?
>

If the hang was a crash which you didn't get a chance to capture the
last kernel log, you can use kdump to collect them. The kernel log
tells what kind of crash it is, a NULL pointer deref, a kernel page fault
etc..

If the hang was a hard lockup, you have to turn on lockup detector
and also kdump to capture what the detector tells.

Thanks.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies