* commit mail stuff
@ 2009-01-21 14:31 Kyle McMartin
2009-01-21 18:53 ` Helge Deller
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Kyle McMartin @ 2009-01-21 14:31 UTC (permalink / raw)
To: linux-parisc
Dunno why it's broken, but this stuff is in git. Let me know if I missed
anything.
kyle@hera ~/git/parisc-2.6 $ git log
commit ac2565d69d7ef73b4e446f63759358e8a9996385
Author: Helge Deller <deller@gmx.de>
Date: Sun Jan 18 19:30:18 2009 +0100
parisc: use constants instead of numbers in assembly
A few small fixups:
* _PAGE_SIZE_ENCODING_DEFAULT is wrong here, as one might assume
* that
it's possible to define the page size that way. This is wrong. Use
0 inste
* use constants instead of hardcoded numerical values in depi and
* extru
while building the PFN out of the pte entry
* use SHRREG instead of extru (iitlba expects the PFN at bits
* {7..26})
Still wondering why we can use the same register (pte) as extru
source
and target register, but it seems to work on PA1.1 and PA2.0...
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
commit cc1829ddc1c34b17ad8b56b6e4df134450a8c25a
Author: Helge Deller <deller@gmx.de>
Date: Sun Jan 18 19:16:16 2009 +0100
parisc: fix usage of 32bit PTE page table entries on 32bit kernels
This patch fixes a long outstanding bug on 32bit parisc linux
kernels
which prevented us from using 32bit PTE table entries (instead of
64bit
entries of which 32bit were unused).
The problem was caused by this assembler statement in the L2_ptep
macro in arch/parisc/kernel/entry.S:447:
EXTR \va,31-ASM_PGDIR_SHIFT,ASM_BITS_PER_PGD,\index
which expanded to
extrw,u r8,9,11,r1
and which has undefined behavior since the length value (11) extends
beyond the leftmost bit (11-1 > 9).
Interestingly PA2.0 processors seem to don't care and just
zero-extend
the value, while PA1.1 processors don't.
Fix this problem by detecting an address space overflow with
ASM_BITS_PER_PG
and adjusting it accordingly. To prevent such problems in the
future,
some compile time sanity checks in arch/parisc/mm/init.c were added.
Since the page table now only consumes half of it's old size, we can
use the freed memory to harmonize 32- and 64bit kernels and let both
map 16MB for the initial page table.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
commit 65aa3ffe7473eb9855b4d77d0e0198abe0892e7a
Author: Helge Deller <deller@gmx.de>
Date: Sun Jan 18 18:13:53 2009 +0100
parisc: add braces around arguments in assembler macros
Add braces around the macro arguments, else for example
"shl %r1, 5-3, %r2" would not expand to what you would assume.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
commit f152532beb6b32f10b480fc5552da9f3cf1acae2
Author: Helge Deller <deller@gmx.de>
Date: Tue Jan 13 21:14:51 2009 +0100
parisc: fix dev_printk() compile warnings for accessing a device
struct
Fix compile warnings:
drivers/scsi/zalon.c: In function `zalon_probe':
drivers/scsi/zalon.c:140: warning: passing arg 1 of
`dev_driver_string' from
drivers/scsi/zalon.c:140: warning: passing arg 1 of `dev_name' from
incompat
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
commit 63371efefffc85af3f2535dc26827e720aa7103f
Author: Helge Deller <deller@gmx.de>
Date: Tue Jan 13 20:54:25 2009 +0100
parisc: remove unused local out_putf label
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
commit b81bf50a191ec8715beab1ac12a5ec8221693c53
Author: Helge Deller <deller@gmx.de>
Date: Tue Jan 13 20:52:46 2009 +0100
parisc: fix `struct pt_regs' declared inside parameter list warning
Fix those compile warnings:
uaccess.h:244: warning: `struct pt_regs' declared inside parameter
list
uaccess.h:244: warning: its scope is only this definition or
declaration, wh
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
commit 86377b69e291408e0e596cd1e8ca806e4f9d7790
Author: Helge Deller <deller@gmx.de>
Date: Tue Jan 13 20:51:29 2009 +0100
parisc: fix section mismatch warnings
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
commit a130bf34da4b64d7b289e2358530ef5d4ab27efd
Author: James Bottomley <James.Bottomley@HansenPartnership.com>
Date: Fri Jan 9 18:57:06 2009 -0600
parisc: remove klist iterators
commit 11c3b5c3e08f4d855cbef52883c266b9ab9df879
Author: Greg Kroah-Hartman <gregkh@suse.de>
Date: Tue Dec 16 12:24:56 2008 -0800
driver core: move klist_children into private structure
Broke our parisc build pretty badly because we touch the klists
directly
in three cases (AGP, SBA and GSC). Although GregKH will revert this
patch, there's no reason we should be using the iterators directly,
we
can just move to the standard device_for_each_child() API.
Signed-off-by: James Bottomley
<James.Bottomley@HansenPartnership.com>
Tested-by: Helge Deller <deller@gmx.de>
Tested-by: Kyle McMartin <kyle@mcmartin.ca>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
commit 1890e15142aa1318bb9775c4ea021aa022c506dc
Author: Helge Deller <deller@gmx.de>
Date: Tue Jan 6 14:23:13 2009 +0100
parisc: blink loadavg LEDs on Oops
- blink loadavg LEDs only (not all LEDs) twice a second on Oops
- cancel_rearming_delayed_workqueue() is obsolete,
use cancel_delayed_work_sync() instead
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
commit dca7293875ccb012e521c02bc95463063ac0a693
Author: Helge Deller <deller@gmx.de>
Date: Tue Jan 6 12:57:01 2009 +0100
parisc: BUG_ON() cleanup
- convert a few "if (xx) BUG();" to BUG_ON(xx)
- remove a few printk()s, as we get a backtrace with BUG_ON() anyway
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
commit 1de9e8e70f5acc441550ca75433563d91b269bbe
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Fri Jan 16 12:43:00 2009 -0800
Linux 2.6.29-rc2
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: commit mail stuff
2009-01-21 14:31 commit mail stuff Kyle McMartin
@ 2009-01-21 18:53 ` Helge Deller
2009-01-22 20:10 ` Kyle McMartin
2009-01-22 11:23 ` Thibaut VARENE
2009-04-02 0:31 ` Kyle McMartin
2 siblings, 1 reply; 9+ messages in thread
From: Helge Deller @ 2009-01-21 18:53 UTC (permalink / raw)
To: Kyle McMartin; +Cc: linux-parisc
Kyle McMartin wrote:
> Dunno why it's broken, but this stuff is in git.
What is broken? Booting? Build?
> Let me know if I missed anything.
- The maintainers update patch
- Still needs discussion/patches: Userspace headers cleanup in arch/parisc/include/asm/
Didn't checked yet:
- http://patchwork.cabal.ca/patch/83/ ?
- the rtc patches from dann ?
Helge
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: commit mail stuff
2009-01-21 14:31 commit mail stuff Kyle McMartin
2009-01-21 18:53 ` Helge Deller
@ 2009-01-22 11:23 ` Thibaut VARENE
2009-01-22 17:43 ` Kyle McMartin
2009-01-30 20:27 ` Helge Deller
2009-04-02 0:31 ` Kyle McMartin
2 siblings, 2 replies; 9+ messages in thread
From: Thibaut VARENE @ 2009-01-22 11:23 UTC (permalink / raw)
To: Kyle McMartin, Helge Deller; +Cc: linux-parisc
On Wed, Jan 21, 2009 at 3:31 PM, Kyle McMartin <kyle@infradead.org> wrote:
> commit 1890e15142aa1318bb9775c4ea021aa022c506dc
> Author: Helge Deller <deller@gmx.de>
> Date: Tue Jan 6 14:23:13 2009 +0100
>
> parisc: blink loadavg LEDs on Oops
>
I thought we agreed this was a bad idea and that this patch should be
left aside?
Helge?
T-Bone
--
Thibaut VARENE
http://www.parisc-linux.org/~varenet/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: commit mail stuff
2009-01-22 11:23 ` Thibaut VARENE
@ 2009-01-22 17:43 ` Kyle McMartin
2009-01-22 18:36 ` Thibaut VARENE
2009-01-30 20:27 ` Helge Deller
1 sibling, 1 reply; 9+ messages in thread
From: Kyle McMartin @ 2009-01-22 17:43 UTC (permalink / raw)
To: Thibaut VARENE; +Cc: Kyle McMartin, Helge Deller, linux-parisc
On Thu, Jan 22, 2009 at 12:23:33PM +0100, Thibaut VARENE wrote:
> On Wed, Jan 21, 2009 at 3:31 PM, Kyle McMartin <kyle@infradead.org> wrote:
>
> > commit 1890e15142aa1318bb9775c4ea021aa022c506dc
> > Author: Helge Deller <deller@gmx.de>
> > Date: Tue Jan 6 14:23:13 2009 +0100
> >
> > parisc: blink loadavg LEDs on Oops
> >
>
> I thought we agreed this was a bad idea and that this patch should be
> left aside?
> Helge?
>
Well, if you signed up for a patchwork account you could have flagged it
as such. :P
cheers, Kyle
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: commit mail stuff
2009-01-22 17:43 ` Kyle McMartin
@ 2009-01-22 18:36 ` Thibaut VARENE
0 siblings, 0 replies; 9+ messages in thread
From: Thibaut VARENE @ 2009-01-22 18:36 UTC (permalink / raw)
To: Kyle McMartin; +Cc: Helge Deller, linux-parisc
On Thu, Jan 22, 2009 at 6:43 PM, Kyle McMartin <kyle@infradead.org> wrote:
> On Thu, Jan 22, 2009 at 12:23:33PM +0100, Thibaut VARENE wrote:
>> On Wed, Jan 21, 2009 at 3:31 PM, Kyle McMartin <kyle@infradead.org> wrote:
>>
>> > commit 1890e15142aa1318bb9775c4ea021aa022c506dc
>> > Author: Helge Deller <deller@gmx.de>
>> > Date: Tue Jan 6 14:23:13 2009 +0100
>> >
>> > parisc: blink loadavg LEDs on Oops
>> >
>>
>> I thought we agreed this was a bad idea and that this patch should be
>> left aside?
>> Helge?
>>
>
> Well, if you signed up for a patchwork account you could have flagged it
> as such. :P
Dude don't blame me, I tried like 2 or 3 weeks ago to do exactly that,
and never received the confirmation email...
--
Thibaut VARENE
http://www.parisc-linux.org/~varenet/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: commit mail stuff
2009-01-21 18:53 ` Helge Deller
@ 2009-01-22 20:10 ` Kyle McMartin
0 siblings, 0 replies; 9+ messages in thread
From: Kyle McMartin @ 2009-01-22 20:10 UTC (permalink / raw)
To: Helge Deller; +Cc: Kyle McMartin, linux-parisc
On Wed, Jan 21, 2009 at 07:53:11PM +0100, Helge Deller wrote:
> Kyle McMartin wrote:
> > Dunno why it's broken, but this stuff is in git.
>
> What is broken? Booting? Build?
>
> > Let me know if I missed anything.
>
> - The maintainers update patch
>
> - Still needs discussion/patches: Userspace headers cleanup in arch/parisc/include/asm/
>
> Didn't checked yet:
> - http://patchwork.cabal.ca/patch/83/ ?
I think that went in last go 'round.
> - the rtc patches from dann ?
>
I figured Alessandro would take them, ok, I'll put them on a branch.
> Helge
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: commit mail stuff
2009-01-22 11:23 ` Thibaut VARENE
2009-01-22 17:43 ` Kyle McMartin
@ 2009-01-30 20:27 ` Helge Deller
2009-01-30 22:34 ` Thibaut VARENE
1 sibling, 1 reply; 9+ messages in thread
From: Helge Deller @ 2009-01-30 20:27 UTC (permalink / raw)
To: Thibaut VARENE, Kyle McMartin; +Cc: linux-parisc
Thibaut VARENE wrote:
> On Wed, Jan 21, 2009 at 3:31 PM, Kyle McMartin <kyle@infradead.org> wrote:
>
>> commit 1890e15142aa1318bb9775c4ea021aa022c506dc
>> Author: Helge Deller <deller@gmx.de>
>> Date: Tue Jan 6 14:23:13 2009 +0100
>>
>> parisc: blink loadavg LEDs on Oops
>>
>
> I thought we agreed this was a bad idea and that this patch should be
> left aside?
> Helge?
Yes, that was an idea.
But we can easily detect which kind of machine it is, and then
either blink all LEDs or just the loadavg. LEDs. The patch below
does this and should be then fine for you?
Kyle, could you apply the patch below as well?
Helge
------------------------------------------------------------
parisc: blink all or loadavg. LEDs on Oops depending on machine type.
Signed-off-by: Helge Deller <deller@gmx.de>
diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c
index 6d8753e..d6026d4 100644
--- a/drivers/parisc/led.c
+++ b/drivers/parisc/led.c
@@ -463,12 +463,19 @@ static void led_work_func (struct work_struct *unused)
if (likely(led_lanrxtx)) currentleds |= led_get_net_activity();
if (likely(led_diskio)) currentleds |= led_get_diskio_activity();
- /* blink loadavg LEDs twice per second if we got an Oops (HPMC) */
+ /* blink LEDs if we got an Oops (HPMC) */
if (unlikely(oops_in_progress)) {
- if (count_HZ <= (HZ/2))
- currentleds &= ~(LED4|LED5|LED6|LED7);
- else
- currentleds |= (LED4|LED5|LED6|LED7);
+ if (boot_cpu_data.cpu_type >= pcxl2) {
+ /* newer machines don't have loadavg. LEDs, so we
+ * let all LEDs blink twice per second instead */
+ currentleds = (count_HZ <= (HZ/2)) ? 0 : 0xff;
+ } else {
+ /* old machines: blink loadavg. LEDs twice per second */
+ if (count_HZ <= (HZ/2))
+ currentleds &= ~(LED4|LED5|LED6|LED7);
+ else
+ currentleds |= (LED4|LED5|LED6|LED7);
+ }
}
if (currentleds != lastleds)
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: commit mail stuff
2009-01-30 20:27 ` Helge Deller
@ 2009-01-30 22:34 ` Thibaut VARENE
0 siblings, 0 replies; 9+ messages in thread
From: Thibaut VARENE @ 2009-01-30 22:34 UTC (permalink / raw)
To: Helge Deller; +Cc: Kyle McMartin, linux-parisc
On Fri, Jan 30, 2009 at 9:27 PM, Helge Deller <deller@gmx.de> wrote:
> Thibaut VARENE wrote:
>> On Wed, Jan 21, 2009 at 3:31 PM, Kyle McMartin <kyle@infradead.org> =
wrote:
>>
>>> commit 1890e15142aa1318bb9775c4ea021aa022c506dc
>>> Author: Helge Deller <deller@gmx.de>
>>> Date: Tue Jan 6 14:23:13 2009 +0100
>>>
>>> parisc: blink loadavg LEDs on Oops
>>>
>>
>> I thought we agreed this was a bad idea and that this patch should b=
e
>> left aside?
>> Helge?
>
> Yes, that was an idea.
> But we can easily detect which kind of machine it is, and then
> either blink all LEDs or just the loadavg. LEDs. The patch below
> does this and should be then fine for you?
Ayup ;) Thanks for coming up with this!
Acked-by: Thibaut Var=C3=A8ne <varenet@parisc-linux.org> (if that matte=
rs ;)
> Kyle, could you apply the patch below as well?
>
> Helge
> ------------------------------------------------------------
> parisc: blink all or loadavg. LEDs on Oops depending on machine type.
>
> Signed-off-by: Helge Deller <deller@gmx.de>
>
> diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c
> index 6d8753e..d6026d4 100644
> --- a/drivers/parisc/led.c
> +++ b/drivers/parisc/led.c
> @@ -463,12 +463,19 @@ static void led_work_func (struct work_struct *=
unused)
> if (likely(led_lanrxtx)) currentleds |=3D led_get_net_activit=
y();
> if (likely(led_diskio)) currentleds |=3D led_get_diskio_acti=
vity();
>
> - /* blink loadavg LEDs twice per second if we got an Oops (HPM=
C) */
> + /* blink LEDs if we got an Oops (HPMC) */
> if (unlikely(oops_in_progress)) {
> - if (count_HZ <=3D (HZ/2))
> - currentleds &=3D ~(LED4|LED5|LED6|LED7);
> - else
> - currentleds |=3D (LED4|LED5|LED6|LED7);
> + if (boot_cpu_data.cpu_type >=3D pcxl2) {
> + /* newer machines don't have loadavg. LEDs, s=
o we
> + * let all LEDs blink twice per second instea=
d */
> + currentleds =3D (count_HZ <=3D (HZ/2)) ? 0 : =
0xff;
> + } else {
> + /* old machines: blink loadavg. LEDs twice pe=
r second */
> + if (count_HZ <=3D (HZ/2))
> + currentleds &=3D ~(LED4|LED5|LED6|LED=
7);
> + else
> + currentleds |=3D (LED4|LED5|LED6|LED7=
);
> + }
> }
>
> if (currentleds !=3D lastleds)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-paris=
c" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--=20
Thibaut VARENE
http://www.parisc-linux.org/~varenet/
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: commit mail stuff
2009-01-21 14:31 commit mail stuff Kyle McMartin
2009-01-21 18:53 ` Helge Deller
2009-01-22 11:23 ` Thibaut VARENE
@ 2009-04-02 0:31 ` Kyle McMartin
2 siblings, 0 replies; 9+ messages in thread
From: Kyle McMartin @ 2009-04-02 0:31 UTC (permalink / raw)
To: Kyle McMartin; +Cc: linux-parisc
On Wed, Jan 21, 2009 at 09:31:30AM -0500, Kyle McMartin wrote:
> Dunno why it's broken, but this stuff is in git. Let me know if I missed
> anything.
>
To answer my own question, it's because I was a muppet and didn't push
to the master branch as well as the parisc branch.
regards, Kyle
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-04-02 0:31 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-21 14:31 commit mail stuff Kyle McMartin
2009-01-21 18:53 ` Helge Deller
2009-01-22 20:10 ` Kyle McMartin
2009-01-22 11:23 ` Thibaut VARENE
2009-01-22 17:43 ` Kyle McMartin
2009-01-22 18:36 ` Thibaut VARENE
2009-01-30 20:27 ` Helge Deller
2009-01-30 22:34 ` Thibaut VARENE
2009-04-02 0:31 ` Kyle McMartin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.