Re: Dumb questions to apic

2017-05-24 Thread Hans
Hi Tomaž,
> 
> LAPIC = Local Advanced Programmable Interrupt Controller
> (local refering to a CPU in a SMP system having its own controller)
Yes, local, but what does local mean? Is it hardware related or local in the 
software?

> ACPI and APM are system features directly related to power management
> (with ACPI replacing APM in recent hardware). They handle battery
> charging, putting system in sleep modes, etc.
> 

Ok, this will be controlled by the BIOS, I suppose, and there is no way, to 
deactivate it ion the BIOS completeley as the kernel has to interact with the 
BIOS?

> "Complete software ACPI independent from hardware" isn't possible. In
> the end, you need some cooperation from hardware to trip a switch if you
> want the computer to power off after shutdown.
> 

Yes, like I guessed above
> APIC and LAPIC are related to power management only in the way that
> power management related peripherals can trigger interrupts that are
> configured through them. But so does the USB controller, disk drives, etc.
> 

When I add "nolapic" to the kernel , then everything is working fine, but then 
one of the two cores disappeared. Would be nice, if I could have both cores, 
you might understand. :)

All in all, I can run the notebook (it is no need to put it into trash). It is 
an Amilo pa 2510, 2x1,7 GHz AMD Dualcore CPU, with 4,6 GB RAM and a 320GB 
harddrive. I am using it as my kali-machine.

And such bugs are also good to learn things. 

> Best regards
> Tomaž


Best regards

Hans



Re: Dumb questions to apic

2017-05-24 Thread Tomaž Šolc
On 24. 05. 2017 13:54, to...@tuxteam.de wrote:
> I don't know for sure, but this thing from the Inertubes looks similar
> (there it is apic, the OP is lapic, but the remaining phenomenology
> looks similar. Perhaps a search on "power off apic" turns up more
> relevant dirt :)

Let me rephrase. In the context of Linux kernel parameters that Hans is
talking about, the acronyms refer to these things:

APIC = Advanced Programmable Interrupt Controller

LAPIC = Local Advanced Programmable Interrupt Controller
(local refering to a CPU in a SMP system having its own controller)

ACPI = Advanced Configuration and Power Interface

APM = Advanced Power Management


ACPI and APM are system features directly related to power management
(with ACPI replacing APM in recent hardware). They handle battery
charging, putting system in sleep modes, etc.

"Complete software ACPI independent from hardware" isn't possible. In
the end, you need some cooperation from hardware to trip a switch if you
want the computer to power off after shutdown.

APIC and LAPIC are related to power management only in the way that
power management related peripherals can trigger interrupts that are
configured through them. But so does the USB controller, disk drives, etc.

Best regards
Tomaž



signature.asc
Description: OpenPGP digital signature


Re: Dumb questions to apic

2017-05-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, May 24, 2017 at 01:40:56PM +0200, Tomaž Šolc wrote:
> On 24. 05. 2017 13:04, Hans wrote:
> > "lapic" is local apic, but what is this?
> 
> APIC is Advanced Programmable Interrupt Controller. This is not directly
> related to power management. Interrupt controller manages how the
> processor receives interrupts from peripherals. It seems unlikely that
> it could be related to your problems.

Hah. This is Intel architecture. Entropy itself. Nothing is unlikely.

I don't know for sure, but this thing from the Inertubes looks similar
(there it is apic, the OP is lapic, but the remaining phenomenology
looks similar. Perhaps a search on "power off apic" turns up more
relevant dirt :)

cheers
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlkldH0ACgkQBcgs9XrR2kZjIgCeP9//cX2NPdZ4B27KAel529Tk
WagAmgK84i7E0M/4V8Qexm6YpRsdoE+P
=QnmO
-END PGP SIGNATURE-



Re: Dumb questions to apic

2017-05-24 Thread Tomaž Šolc
On 24. 05. 2017 13:04, Hans wrote:
> "lapic" is local apic, but what is this?

APIC is Advanced Programmable Interrupt Controller. This is not directly
related to power management. Interrupt controller manages how the
processor receives interrupts from peripherals. It seems unlikely that
it could be related to your problems.

Best regards
Tomaž



signature.asc
Description: OpenPGP digital signature


Dumb questions to apic

2017-05-24 Thread Hans
Dear list,

this is a little bit offtopic. I got a broken notebook as a gift (did not 
start, no bios screen, nothing!). Now I managed to get it running again. 
Everything is working, execpt the bios.
The bios is broken, and the backup battery is empty in seconds.

But that is not the problem, just background info.

I can start the notebook, and debian/testing is running fine. But when I want 
to reboot or shutdown the notebook, it does not switch off. I believe, it is a 
bios problem.

So I tried with several kernel parameters. I tried

acpi=force
apm=off
noacpi

But none of them worked. When I tried "nolapic", then I can reboot and 
shutoff, but then only one cpu is available.

As I do not know, where to search, I googled to get information, the meaning 
of acpi, nolapic and so on. "lapic" is local apic, but what is this? And can I 
switch completely to a software acpi, so that I am independent from the 
hardware? Which kernel command is the choice?

Hope, someone can make this little point clearer.

Best regards

Hans