linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* assorted kernel patches
@ 2001-08-13 19:10 Edward Swarthout
  2001-08-13 19:56 ` Adrian Cox
  2001-08-14  3:16 ` Paul Mackerras
  0 siblings, 2 replies; 6+ messages in thread
From: Edward Swarthout @ 2001-08-13 19:10 UTC (permalink / raw)
  To: linuxppc-dev


We are switching to Linuxppc to support our early
processor bringup in the lab.

There are a small set of patches that we think would be useful to
merge back into linuxppc_2_4_devel.  What is the procedure to discuss
these changes, get them reviewed, and merged (if so desired)?

Here is the list:

1. Support for hardware breakpoints for process threads.

   - Add iabr and dabr to the end of the pt_regs structure.
   - Save and restore IABR and DABR on exception/switch.
     Since the 603 family does not have DABR, should it
     be excluded via a CONFIG compile option or with the cputable?
     In either case, pt_regs should contain spots for both.
   - add IABR and DABR register numbers for ptrace
     There is a hole before the FP regs where they can go
     without disturbing and user applications.
   - Change InstructionBreakpoint and do_page_fault to not
     call XMON/KGDB if the trap is from user_mode.

2. Allow superviser (MSR[PR]=0) user threads.
   Currently MSR[PR] has a second purpose which indicates the thread
   was in kernel mode on exception.  A different bit needs to
   indicate this.  A good alternative is MSR[RI].

   - change user_mode() to reference MSR_RI instead of MSR_PR
   - change copy_thread to use the user_mode macro instead of MSR_PR

3. Additional 7450 support
   - Use recommended cache flush/initialization routines
   - add machine check decodes in traps.c

4. 7450 L3 cache control
   - Use recommended initialization routine
   - l3cr-value in device-tree (what uses l2cr-value today?)
   - l3cr=xxxx on commandline
   - /proc/sys/kernel/l3cr

5. Use L2 Hardware flush routines for 7400, 7410, and 7450
   - define DSSALL in ppc_asm.h

6. Add support 8245 cpu/bridge, and mpc107 bridge

7. stabs support for kernel asm functions

8. In ProgramCheckException, do not call dubugger_bpt if in user_mode

9. Additional thread state:

   - per thread MSR[FE0,1] bits - allows thread to control
   - per thread MSR[FP,VA] state -  to know if thread
     used FPU for Vector unit even if it was subsequently taken from it.

Ed Swarthout

Ed.Swarthout@Motorola.com
Austin, Tx

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: assorted kernel patches
@ 2001-08-22 21:12 Albert D. Cahalan
  2001-08-22 22:41 ` David A. Gatwood
  2001-08-23  1:06 ` Paul Mackerras
  0 siblings, 2 replies; 6+ messages in thread
From: Albert D. Cahalan @ 2001-08-22 21:12 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: paulus, paulus


Paul Mackerras writes:
> Edward Swarthout writes:

>> 1. Support for hardware breakpoints for process threads.
>
> A good idea in general although I will be interested to see
> how this interacts with xmon's and kgdb's use of iabr/dabr.

Who cares? Take a look at the Alpha and i386 Linux ports.
Debugger support for users is important. Kernel hackers can
live without it. (including myself) Go check the linux-kernel
archives to see Linus Torvalds and David S. Miller's opinions
about kernel debuggers.

It would be nice if the ppc port met the Linus standard.

>> 2. Allow superviser (MSR[PR]=0) user threads.
>
> Hmmm, you'll need to explain exactly why this is a good idea
> and why it won't break anything. Without a good strong argument
> I would be inclined to reject this. I don't see what you can do
> with a "user" thread running in supervisor mode that you can't
> do with a kernel module.

It is good for experimenting with processor features.

On an embedded system, it is often nice to turn off interrupts
to do a bit of super-hard real-time from userspace. The user code
may well be incompatible with the kernel. (non-GPL C++ or FORTRAN)

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-08-23  1:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-13 19:10 assorted kernel patches Edward Swarthout
2001-08-13 19:56 ` Adrian Cox
2001-08-14  3:16 ` Paul Mackerras
  -- strict thread matches above, loose matches on Subject: below --
2001-08-22 21:12 Albert D. Cahalan
2001-08-22 22:41 ` David A. Gatwood
2001-08-23  1:06 ` Paul Mackerras

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