* [parisc-linux] Re: [parisc-linux-cvs] linux deller
[not found] <20011226231927.CA2E54842@dsl2.external.hp.com>
@ 2001-12-26 23:20 ` Helge Deller
0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2001-12-26 23:20 UTC (permalink / raw)
To: parisc-linux, Helge Deller, parisc-linux-cvs
[-- Attachment #1: Type: text/plain, Size: 235 bytes --]
- 2.4.16-pa27
- simpler and warning-free asm() statemnt in power-off code
- use cad_pid from kernel/sys.c instead of hardcoded pid 1 for killing init
process
- print shutdown-msg on LCD if CONFIG_CHASSIS_LCD_LED is compiled in
[-- Attachment #2: diff1 --]
[-- Type: text/plain, Size: 2909 bytes --]
Index: linux/Makefile
===================================================================
RCS file: /var/cvs/linux/Makefile,v
retrieving revision 1.231
diff -u -p -r1.231 Makefile
--- linux/Makefile 2001/12/26 22:02:47 1.231
+++ linux/Makefile 2001/12/26 23:16:09
@@ -1,7 +1,7 @@
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 16
-EXTRAVERSION = -pa26
+EXTRAVERSION = -pa27
KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
Index: linux/arch/parisc/kernel/power.c
===================================================================
RCS file: /var/cvs/linux/arch/parisc/kernel/power.c,v
retrieving revision 1.4
diff -u -p -r1.4 power.c
--- linux/arch/parisc/kernel/power.c 2001/12/05 18:46:30 1.4
+++ linux/arch/parisc/kernel/power.c 2001/12/26 23:16:20
@@ -15,11 +15,6 @@
* - ....
*/
-#include <asm/irq.h>
-#include <asm/pdc.h>
-#include <asm/gsc.h>
-#include <asm/io.h>
-
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/string.h>
@@ -27,6 +22,12 @@
#include <linux/sched.h>
#include <linux/interrupt.h>
+#include <asm/gsc.h>
+#include <asm/pdc.h>
+#include <asm/irq.h>
+#include <asm/io.h>
+#include <asm/led.h>
+
/* For kernel debugging purposes it's sometimes better to have
* the soft-power switch killing the power at once.
@@ -38,23 +39,21 @@
/* local time-counter for shutdown */
static int shutdown_timer;
+#define DIAG_CODE(code) (0x14000000 + ((code)<<5))
/* this will go to processor.h or any other place... */
-/* taken from PCXL ERS pg 82 */
+/* taken from PCXL ERS page 82 */
#define MFCPU_X(rDiagReg, t_ch, t_th, code) \
- (0x14000000 + ((rDiagReg)<<21) + ((t_ch)<<16) + ((code)<<5) + ((t_th)<<0) )
+ (DIAG_CODE(code) + ((rDiagReg)<<21) + ((t_ch)<<16) + ((t_th)<<0) )
+#define MTCPU(dr, gr) MFCPU_X(dr, gr, 0, 0x12) /* move value of gr to dr[dr] */
#define MFCPU_C(dr, gr) MFCPU_X(dr, gr, 0, 0x30) /* for dr0 and dr8 only ! */
#define MFCPU_T(dr, gr) MFCPU_X(dr, 0, gr, 0xa0) /* all dr except dr0 and dr8 */
#define __getDIAG(dr) ( { \
register unsigned long __res asm("r28");\
- __asm__ __volatile__ ( \
- ".word %0 \n\t" \
- "nop \n\t" \
- : \
- : "i" (MFCPU_T(dr,28)) \
- : "memory" \
+ __asm__ __volatile__ ( \
+ ".word %1\n nop\n" : "=&r" (__res) : "i" (MFCPU_T(dr,28)) \
); \
__res; \
} )
@@ -64,7 +63,8 @@ static int shutdown_timer;
static void deferred_poweroff(void *dummy)
{
- kill_proc(1, SIGINT, 0);
+ extern int cad_pid; /* kernel/sys.c */
+ kill_proc(cad_pid, SIGINT, 1);
/* machine_power_off(); */
}
@@ -98,7 +98,11 @@ static void process_shutdown(void)
/* wait until the button was pressed for 1 second */
if (shutdown_timer == HZ) {
- printk(KERN_INFO "Shutting down...\n");
+ static char msg[] = "Shutting down...";
+ printk(KERN_INFO "%s\n", msg);
+#ifdef CONFIG_CHASSIS_LCD_LED
+ lcd_print(msg);
+#endif
poweroff();
}
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [parisc-linux] Re: [parisc-linux-cvs] linux deller
[not found] <20020202194652.B1F8D482A@dsl2.external.hp.com>
@ 2002-02-02 19:43 ` Helge Deller
0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2002-02-02 19:43 UTC (permalink / raw)
To: parisc-linux, Helge Deller, parisc-linux-cvs
[-- Attachment #1: Type: text/plain, Size: 294 bytes --]
On Saturday 02 February 2002 20:46, Helge Deller wrote:
> CVSROOT: /var/cvs
> Module name: linux
> Changes by: deller 02/02/02 12:46:52
>
> Modified files:
> drivers/video/sti: sticore.c
>
> Log message:
> add #if 1 / #endif around the c3k VisEG PCI work-around, it easier to
> enable/disable
[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 980 bytes --]
Index: sticore.c
===================================================================
RCS file: /var/cvs/linux/drivers/video/sti/sticore.c,v
retrieving revision 1.33
diff -u -p -r1.33 sticore.c
--- sticore.c 2002/01/28 22:54:40 1.33
+++ sticore.c 2002/02/02 19:45:58
@@ -936,10 +936,11 @@ static int __devinit sticore_pci_init(st
/* XXX */
/* A Visualize EG PCI graphics card in a c3000 would crash the machine. */
/* This is an ugly work-around */
-#warning "FIXME: VisEG PCI graphic card crashes c3000"
switch (CPU_HVERSION) {
case 0x5BB:
case 0x5BC:
+#if 1
+#warning "FIXME: VisEG PCI graphic card crashes c3000"
if (pd->device == 0x1005) { /* "A4977A Visualize EG" */
printk("I'm not trying to set up the PCI graphic card now... "
"It would freeze your machine !\n");
@@ -947,6 +948,7 @@ static int __devinit sticore_pci_init(st
break;
}
/* fall through */
+#endif
default:
sti = sti_try_rom_generic(rom_base, fb_base, pd);
if (sti) {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-02-02 19:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20011226231927.CA2E54842@dsl2.external.hp.com>
2001-12-26 23:20 ` [parisc-linux] Re: [parisc-linux-cvs] linux deller Helge Deller
[not found] <20020202194652.B1F8D482A@dsl2.external.hp.com>
2002-02-02 19:43 ` Helge Deller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox