All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
@ 2004-10-22 18:41 Gerd Knorr
  2004-10-22 19:23 ` Geert Uytterhoeven
  0 siblings, 1 reply; 12+ messages in thread
From: Gerd Knorr @ 2004-10-22 18:41 UTC (permalink / raw)
  To: uml devel

  Hi,

Just uploaded a updated batch of uml patches to
http://www.suse.de/~kraxel/uml/patches/2.6.9/

Changes from -rc2 patchset:

 * Dropped lots of patches because they are merged mainline now.
   Nice work guys!
 * uml-ptrace: new, fixes the ptrace issue (skas-hangs-on-exit).
 * uml-x11-fb: updated, should be fully functional now, including
   mmap support.
 * other patches: some rediffs, no major stuff.

X11 doesn't run yet, the X-Server wants IOPL access for some obscure
reason, it shouldn't need that when running on top of a framebuffer
device.  Anyone has an idea on that?

  Gerd

-- 
return -ENOSIG;


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
  2004-10-22 18:41 Gerd Knorr
@ 2004-10-22 19:23 ` Geert Uytterhoeven
  2004-10-22 20:04   ` Gerd Knorr
  0 siblings, 1 reply; 12+ messages in thread
From: Geert Uytterhoeven @ 2004-10-22 19:23 UTC (permalink / raw)
  To: Gerd Knorr; +Cc: uml devel

On Fri, 22 Oct 2004, Gerd Knorr wrote:
>  * uml-x11-fb: updated, should be fully functional now, including
>    mmap support.

Nice! I guess I should give it a try again :-)

>  * other patches: some rediffs, no major stuff.
> 
> X11 doesn't run yet, the X-Server wants IOPL access for some obscure
> reason, it shouldn't need that when running on top of a framebuffer
> device.  Anyone has an idea on that?

Ugh, that's probably a hardcoded dependency on __i386__ somewhere...

Try the good old XF86_FBDev from XFree86 3.x? :-)

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
  2004-10-22 19:23 ` Geert Uytterhoeven
@ 2004-10-22 20:04   ` Gerd Knorr
  2004-10-22 21:01     ` Geert Uytterhoeven
  0 siblings, 1 reply; 12+ messages in thread
From: Gerd Knorr @ 2004-10-22 20:04 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: uml devel

Geert Uytterhoeven <geert@linux-m68k.org> writes:

> > X11 doesn't run yet, the X-Server wants IOPL access for some obscure
> > reason, it shouldn't need that when running on top of a framebuffer
> > device.  Anyone has an idea on that?
> 
> Ugh, that's probably a hardcoded dependency on __i386__ somewhere...

The google hits I had on that suggest that as well :-/

> Try the good old XF86_FBDev from XFree86 3.x? :-)

I would, but don't have a copy any more.  Ha, that was fun, first days
of vesafb, my good old machine being busy for many hours building
xfree86, and the X-Servers name was XF68_FBDev ;)

  Gerd

-- 
return -ENOSIG;


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
  2004-10-22 20:04   ` Gerd Knorr
@ 2004-10-22 21:01     ` Geert Uytterhoeven
  0 siblings, 0 replies; 12+ messages in thread
From: Geert Uytterhoeven @ 2004-10-22 21:01 UTC (permalink / raw)
  To: Gerd Knorr; +Cc: uml devel

On Fri, 22 Oct 2004, Gerd Knorr wrote:
> Geert Uytterhoeven <geert@linux-m68k.org> writes:
> > > X11 doesn't run yet, the X-Server wants IOPL access for some obscure
> > > reason, it shouldn't need that when running on top of a framebuffer
> > > device.  Anyone has an idea on that?
> > 
> > Ugh, that's probably a hardcoded dependency on __i386__ somewhere...
> 
> The google hits I had on that suggest that as well :-/
> 
> > Try the good old XF86_FBDev from XFree86 3.x? :-)
> 
> I would, but don't have a copy any more.  Ha, that was fun, first days
> of vesafb, my good old machine being busy for many hours building
> xfree86, and the X-Servers name was XF68_FBDev ;)

Debian still has it: pool/main/x/xfree86v3/xserver-fbdev_3.3.6-44_i386.deb

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
@ 2004-10-24  3:03 Steve Schmidtke
  2004-10-25 11:03 ` Gerd Knorr
  0 siblings, 1 reply; 12+ messages in thread
From: Steve Schmidtke @ 2004-10-24  3:03 UTC (permalink / raw)
  To: kraxel; +Cc: User-mode-linux-devel

[-- Attachment #1: Type: text/plain, Size: 803 bytes --]

Gerd Knorr wrote:
>the X-Server wants IOPL access for some obscure
>reason, it shouldn't need that when running on top of a framebuffer
>device.  Anyone has an idea on that?

I looked into this a while ago.  What I found was that you have to add UML 
to the exclude ifdef in CheckGenericGA() from xfree86/common/xf86Bus.c, and 
also around all the iopl() and ioperm() exclude ifdefs in 
xfree86/os_support/linux/linux_video.c.

I think it doesn't hurt to add  Option "PciOsConfig"  to the ServerFlags 
section in the conf file.

I also remember making the attached guest kernel patch at one point 
(apologies for hand editing it).

It would be nice if someone would code up an Option "NoHwIO" or something to 
X that takes care of this, instead of the ifdef hell. :)

Hope that helps,

Steve Schmidtke


[-- Attachment #2: vt_kbd.txt --]
[-- Type: text/plain, Size: 499 bytes --]

diff *~ -Naur linux.orig/drivers/char/vt.c linux.new/drivers/char/vt.c
--- linux.orig/drivers/char/vt.c	Thu Nov 28 18:53:12 2002
+++ linux.new/drivers/char/vt.c		Sun Aug  1 13:44:36 2003
@@ -146,7 +146,13 @@

int _kbd_rate(struct kbd_repeat *rep)
{
+#if defined(__arch_um__)
+	/* if X finds that this succeeds, it won't try to bang on
+	 * the (non-existent) hardware directly */
+	return 0;
+#else
	return -EINVAL;
+#endif
}

void (*kd_mksound)(unsigned int hz, unsigned int ticks) = _kd_mksound;


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

* Re: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
  2004-10-24  3:03 [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff Steve Schmidtke
@ 2004-10-25 11:03 ` Gerd Knorr
  2004-10-25 11:28   ` Geert Uytterhoeven
  0 siblings, 1 reply; 12+ messages in thread
From: Gerd Knorr @ 2004-10-25 11:03 UTC (permalink / raw)
  To: Steve Schmidtke; +Cc: User-mode-linux-devel

> I looked into this a while ago.  What I found was that you have to add UML 
> to the exclude ifdef in CheckGenericGA() from xfree86/common/xf86Bus.c, and 
> also around all the iopl() and ioperm() exclude ifdefs in 
> xfree86/os_support/linux/linux_video.c.

Well, a compile time option isn't that nice as you usually can run the
very same binaries inside and outside the UML machine ...

> I think it doesn't hurt to add  Option "PciOsConfig"  to the ServerFlags 
> section in the conf file.

Yep, I think that's another issue that on i386 the X-Server might try to
do PCI scans by directly banging on the hardware (for compatibility with
kernels without /proc/bus/pci, which is pre-2.4 (or even pre-2.2?)).

> +++ linux.new/drivers/char/vt.c		Sun Aug  1 13:44:36 2003
> int _kbd_rate(struct kbd_repeat *rep)

Hmm, in 2.6 that doesn't exist any more, probably due to the linux input
layer changes.  How this is called from userspace, is this some ioctl?

  Gerd

-- 
#define printk(args...) fprintf(stderr, ## args)


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
  2004-10-25 11:03 ` Gerd Knorr
@ 2004-10-25 11:28   ` Geert Uytterhoeven
  2004-10-25 11:40     ` Gerd Knorr
  0 siblings, 1 reply; 12+ messages in thread
From: Geert Uytterhoeven @ 2004-10-25 11:28 UTC (permalink / raw)
  To: Gerd Knorr; +Cc: Steve Schmidtke, User-mode Linux Kernel Development

On Mon, 25 Oct 2004, Gerd Knorr wrote:
> > I looked into this a while ago.  What I found was that you have to add UML 
> > to the exclude ifdef in CheckGenericGA() from xfree86/common/xf86Bus.c, and 
> > also around all the iopl() and ioperm() exclude ifdefs in 
> > xfree86/os_support/linux/linux_video.c.
> 
> Well, a compile time option isn't that nice as you usually can run the
> very same binaries inside and outside the UML machine ...

Indeed.

> > I think it doesn't hurt to add  Option "PciOsConfig"  to the ServerFlags 
> > section in the conf file.
> 
> Yep, I think that's another issue that on i386 the X-Server might try to
> do PCI scans by directly banging on the hardware (for compatibility with
> kernels without /proc/bus/pci, which is pre-2.4 (or even pre-2.2?)).

/proc/bus/pci is 2.4, IIRC.
/proc/pci was 2.2 or 2.0.

> > +++ linux.new/drivers/char/vt.c		Sun Aug  1 13:44:36 2003
> > int _kbd_rate(struct kbd_repeat *rep)
> 
> Hmm, in 2.6 that doesn't exist any more, probably due to the linux input
> layer changes.  How this is called from userspace, is this some ioctl?

| tux$ grep kbd_rep linux-2.6.9/drivers/char/*c
| linux-2.6.9/drivers/char/keyboard.c:int kbd_rate(struct kbd_repeat *rep)
| linux-2.6.9/drivers/char/vt_ioctl.c:            struct kbd_repeat kbrep;
| linux-2.6.9/drivers/char/vt_ioctl.c:            if (copy_from_user(&kbrep, up, sizeof(struct kbd_repeat)))
| linux-2.6.9/drivers/char/vt_ioctl.c:            if (copy_to_user(up, &kbrep, sizeof(struct kbd_repeat)))
| tux$

Keyboard rate has been controlled using an ioctl() since ages, but of course X
kept on banging the hardware...

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
  2004-10-25 11:28   ` Geert Uytterhoeven
@ 2004-10-25 11:40     ` Gerd Knorr
  2004-10-25 12:03       ` Geert Uytterhoeven
  0 siblings, 1 reply; 12+ messages in thread
From: Gerd Knorr @ 2004-10-25 11:40 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Steve Schmidtke, User-mode Linux Kernel Development

> | linux-2.6.9/drivers/char/keyboard.c:int kbd_rate(struct kbd_repeat *rep)

Ah, just moved.

That function does already return "success" unconditionally, so we
can't trick X11 by patching that one :-/

Guess I'll go fetch the good, old XF86_FBDev server for the next
experiments ...

> Keyboard rate has been controlled using an ioctl() since ages, but of course X
> kept on banging the hardware...

Yep.  There is also some other code being pretty upset when run within a
UML environment because several assumtions they make about i386 machines
are not true any more.

  Gerd

-- 
#define printk(args...) fprintf(stderr, ## args)


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
  2004-10-25 11:40     ` Gerd Knorr
@ 2004-10-25 12:03       ` Geert Uytterhoeven
  2004-10-25 15:47         ` Gerd Knorr
  0 siblings, 1 reply; 12+ messages in thread
From: Geert Uytterhoeven @ 2004-10-25 12:03 UTC (permalink / raw)
  To: Gerd Knorr; +Cc: Steve Schmidtke, User-mode Linux Kernel Development

On Mon, 25 Oct 2004, Gerd Knorr wrote:
> > | linux-2.6.9/drivers/char/keyboard.c:int kbd_rate(struct kbd_repeat *rep)
> 
> Ah, just moved.
> 
> That function does already return "success" unconditionally, so we
> can't trick X11 by patching that one :-/
> 
> Guess I'll go fetch the good, old XF86_FBDev server for the next
> experiments ...

You can also try TinyX.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
  2004-10-25 12:03       ` Geert Uytterhoeven
@ 2004-10-25 15:47         ` Gerd Knorr
  2004-10-25 16:04           ` Geert Uytterhoeven
  0 siblings, 1 reply; 12+ messages in thread
From: Gerd Knorr @ 2004-10-25 15:47 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Steve Schmidtke, User-mode Linux Kernel Development

> > Guess I'll go fetch the good, old XF86_FBDev server for the next
> > experiments ...

Well, that one segfaults in a function called "xf86SetKbdRepeat".
*gna*, this is not funny :-/

  Gerd

-- 
#define printk(args...) fprintf(stderr, ## args)


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
  2004-10-25 15:47         ` Gerd Knorr
@ 2004-10-25 16:04           ` Geert Uytterhoeven
  2004-10-25 20:56             ` Gerd Knorr
  0 siblings, 1 reply; 12+ messages in thread
From: Geert Uytterhoeven @ 2004-10-25 16:04 UTC (permalink / raw)
  To: Gerd Knorr; +Cc: Steve Schmidtke, User-mode Linux Kernel Development

On Mon, 25 Oct 2004, Gerd Knorr wrote:
> > > Guess I'll go fetch the good, old XF86_FBDev server for the next
> > > experiments ...
> 
> Well, that one segfaults in a function called "xf86SetKbdRepeat".
> *gna*, this is not funny :-/

Ah yes, it was compiled for ia32 ;-)

Compile TinyX/KDrive yourself?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
  2004-10-25 16:04           ` Geert Uytterhoeven
@ 2004-10-25 20:56             ` Gerd Knorr
  0 siblings, 0 replies; 12+ messages in thread
From: Gerd Knorr @ 2004-10-25 20:56 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Steve Schmidtke, User-mode Linux Kernel Development

On Mon, Oct 25, 2004 at 06:04:14PM +0200, Geert Uytterhoeven wrote:
> Compile TinyX/KDrive yourself?

I think I'll bug the Xorg guys with bugreports ;)

  Gerd

-- 
#define printk(args...) fprintf(stderr, ## args)


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

end of thread, other threads:[~2004-10-25 21:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-24  3:03 [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff Steve Schmidtke
2004-10-25 11:03 ` Gerd Knorr
2004-10-25 11:28   ` Geert Uytterhoeven
2004-10-25 11:40     ` Gerd Knorr
2004-10-25 12:03       ` Geert Uytterhoeven
2004-10-25 15:47         ` Gerd Knorr
2004-10-25 16:04           ` Geert Uytterhoeven
2004-10-25 20:56             ` Gerd Knorr
  -- strict thread matches above, loose matches on Subject: below --
2004-10-22 18:41 Gerd Knorr
2004-10-22 19:23 ` Geert Uytterhoeven
2004-10-22 20:04   ` Gerd Knorr
2004-10-22 21:01     ` Geert Uytterhoeven

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.