* Re: Usage of readb() and friends... [not found] ` <1078225776.1321.71.camel@laptop.locamation.com> @ 2004-03-02 12:15 ` Geert Uytterhoeven 2004-03-02 17:42 ` James Simmons 2004-03-02 22:50 ` Benjamin Herrenschmidt 0 siblings, 2 replies; 11+ messages in thread From: Geert Uytterhoeven @ 2004-03-02 12:15 UTC (permalink / raw) To: Kars de Jong Cc: Richard Zidlicky, Russell King, Linux/m68k kernel mailing list, Linux Frame Buffer Device Development On Tue, 2 Mar 2004, Kars de Jong wrote: > Which reminds me: drivers/video/fbmem.c at least seems to treat the > return value of ioremap() as a virtual address, since it calls > copy_{to,from}_user on it directly... You're right. And the trouble there is that you can't easily find out which ioremap() variant was used... 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 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Re: Usage of readb() and friends... 2004-03-02 12:15 ` Usage of readb() and friends Geert Uytterhoeven @ 2004-03-02 17:42 ` James Simmons 2004-03-02 22:50 ` Benjamin Herrenschmidt 1 sibling, 0 replies; 11+ messages in thread From: James Simmons @ 2004-03-02 17:42 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Kars de Jong, Richard Zidlicky, Russell King, Linux/m68k kernel mailing list, Linux Frame Buffer Device Development Hopefully one fb_write and fb_read in fbmem.c moves over to using accelerated blits this can go away. On Tue, 2 Mar 2004, Geert Uytterhoeven wrote: > On Tue, 2 Mar 2004, Kars de Jong wrote: > > Which reminds me: drivers/video/fbmem.c at least seems to treat the > > return value of ioremap() as a virtual address, since it calls > > copy_{to,from}_user on it directly... > > You're right. And the trouble there is that you can't easily find out which > ioremap() variant was used... > > 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 > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Linux-fbdev-devel mailing list > Linux-fbdev-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel > ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Re: Usage of readb() and friends... 2004-03-02 12:15 ` Usage of readb() and friends Geert Uytterhoeven 2004-03-02 17:42 ` James Simmons @ 2004-03-02 22:50 ` Benjamin Herrenschmidt 2004-03-02 23:36 ` James Simmons 1 sibling, 1 reply; 11+ messages in thread From: Benjamin Herrenschmidt @ 2004-03-02 22:50 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Kars de Jong, Richard Zidlicky, Russell King, Linux/m68k kernel mailing list, Linux Frame Buffer Device Development On Tue, 2004-03-02 at 23:15, Geert Uytterhoeven wrote: > On Tue, 2 Mar 2004, Kars de Jong wrote: > > Which reminds me: drivers/video/fbmem.c at least seems to treat the > > return value of ioremap() as a virtual address, since it calls > > copy_{to,from}_user on it directly... > > You're right. And the trouble there is that you can't easily find out which > ioremap() variant was used... And... it's illegal to call copy_to/from_user on the return of ioremap anyway. Not only for semantic reasons, but also for practical reasons, for example, ioremap returns non cacheable space on PPC, and copy_to/from_user uses "cache hints" to speed up the copy. Ben. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Re: Usage of readb() and friends... 2004-03-02 22:50 ` Benjamin Herrenschmidt @ 2004-03-02 23:36 ` James Simmons 2004-03-02 23:49 ` Benjamin Herrenschmidt 0 siblings, 1 reply; 11+ messages in thread From: James Simmons @ 2004-03-02 23:36 UTC (permalink / raw) To: Benjamin Herrenschmidt Cc: Geert Uytterhoeven, Kars de Jong, Richard Zidlicky, Russell King, Linux/m68k kernel mailing list, Linux Frame Buffer Device Development > > On Tue, 2 Mar 2004, Kars de Jong wrote: > > > Which reminds me: drivers/video/fbmem.c at least seems to treat the > > > return value of ioremap() as a virtual address, since it calls > > > copy_{to,from}_user on it directly... > > > > You're right. And the trouble there is that you can't easily find out which > > ioremap() variant was used... > > And... it's illegal to call copy_to/from_user on the return of > ioremap anyway. Not only for semantic reasons, but also for practical > reasons, for example, ioremap returns non cacheable space on PPC, > and copy_to/from_user uses "cache hints" to speed up the copy. Ug. More reason to replace the code with imageblit calls. The new fb_write code for some reson tho scrambles the console screen and then scrolls the screen below where I'm writing. I haven't figured out way yet. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Re: Usage of readb() and friends... 2004-03-02 23:36 ` James Simmons @ 2004-03-02 23:49 ` Benjamin Herrenschmidt 2004-03-03 19:15 ` [Linux-fbdev-devel] " James Simmons 0 siblings, 1 reply; 11+ messages in thread From: Benjamin Herrenschmidt @ 2004-03-02 23:49 UTC (permalink / raw) To: James Simmons Cc: Geert Uytterhoeven, Kars de Jong, Richard Zidlicky, Russell King, Linux/m68k kernel mailing list, Linux Frame Buffer Device Development > the code with imageblit calls. The new fb_write > code for some reson tho scrambles the console screen and then scrolls the > screen below where I'm writing. I haven't figured out way yet. BTW. Have had a chance to look into those memory corruption issues I told you about ? I've been rather busy lately... Ben. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Linux-fbdev-devel] Re: Usage of readb() and friends... 2004-03-02 23:49 ` Benjamin Herrenschmidt @ 2004-03-03 19:15 ` James Simmons 2004-03-03 22:42 ` Richard Smith 0 siblings, 1 reply; 11+ messages in thread From: James Simmons @ 2004-03-03 19:15 UTC (permalink / raw) To: Benjamin Herrenschmidt Cc: Geert Uytterhoeven, Kars de Jong, Richard Zidlicky, Russell King, Linux/m68k kernel mailing list, Linux Frame Buffer Device Development, Linux Kernel Mailing List No. I lost my SCSI driver. So I lost my main machine. I need a new driver but don't have the money to buy a drive right now. Maybe someone would be kind to donate me a Ultra Wide SCSI 2 drive. On Wed, 3 Mar 2004, Benjamin Herrenschmidt wrote: > > the code with imageblit calls. The new fb_write > > code for some reson tho scrambles the console screen and then scrolls the > > screen below where I'm writing. I haven't figured out way yet. > > BTW. Have had a chance to look into those memory corruption issues > I told you about ? I've been rather busy lately... > > Ben. > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Re: Usage of readb() and friends... 2004-03-03 19:15 ` [Linux-fbdev-devel] " James Simmons @ 2004-03-03 22:42 ` Richard Smith 2004-03-03 23:10 ` James Simmons 0 siblings, 1 reply; 11+ messages in thread From: Richard Smith @ 2004-03-03 22:42 UTC (permalink / raw) To: Linux Frame Buffer Device Development James Simmons wrote: > No. I lost my SCSI driver. So I lost my main machine. I need a new driver > but don't have the money to buy a drive right now. Maybe someone would be > kind to donate me a Ultra Wide SCSI 2 drive. > > On Wed, 3 Mar 2004, Benjamin Herrenschmidt wrote: > Sorry for sending this via the list but I still have not fixed our mailserver to be able to send mail to james directly. James: 1) How big of a drive to you have to have? I've got some 4 gigers I can donate. 2) Do you have any way to use SCA drives? -- Richard A. Smith rsmith@bitworks.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Re: Usage of readb() and friends... 2004-03-03 22:42 ` Richard Smith @ 2004-03-03 23:10 ` James Simmons 2004-03-03 23:22 ` Richard Smith 0 siblings, 1 reply; 11+ messages in thread From: James Simmons @ 2004-03-03 23:10 UTC (permalink / raw) To: Richard Smith; +Cc: Linux Frame Buffer Device Development > Sorry for sending this via the list but I still have not fixed our > mailserver to be able to send mail to james directly. > > James: > > 1) How big of a drive to you have to have? I've got some 4 gigers I can > donate. The driver that died was 9 Gigs. > 2) Do you have any way to use SCA drives? Its a older (4 years old) machine with built in Ultra Wide 2 scsi support. Its 68 pin. I believe my mother board supports 80 pin as well. I have to look. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Re: Usage of readb() and friends... 2004-03-03 23:10 ` James Simmons @ 2004-03-03 23:22 ` Richard Smith 2004-03-03 23:33 ` James Simmons 0 siblings, 1 reply; 11+ messages in thread From: Richard Smith @ 2004-03-03 23:22 UTC (permalink / raw) To: Linux Frame Buffer Device Development James Simmons wrote: >> >>1) How big of a drive to you have to have? I've got some 4 gigers I can >>donate. > > The driver that died was 9 Gigs. Ok. But do you _have_ to have that much. Will 4 get you going? Or if you can do multiple drives I have a few you could raid them or lvm them into a big drive. >>2) Do you have any way to use SCA drives? > > Its a older (4 years old) machine with built in Ultra Wide 2 scsi support. > Its 68 pin. I believe my mother board supports 80 pin as well. I have to > look. Unless you have a RAID backplane in your setup I doubt you motherboard does SCA (80-pin) devices. Nice if so then nice motherboard. -- Richard A. Smith rsmith@bitworks.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Re: Usage of readb() and friends... 2004-03-03 23:22 ` Richard Smith @ 2004-03-03 23:33 ` James Simmons 2004-03-04 0:14 ` Richard Smith 0 siblings, 1 reply; 11+ messages in thread From: James Simmons @ 2004-03-03 23:33 UTC (permalink / raw) To: Richard Smith; +Cc: Linux Frame Buffer Device Development > > The driver that died was 9 Gigs. > > Ok. But do you _have_ to have that much. Will 4 get you going? Or if > you can do multiple drives I have a few you could raid them or lvm them > into a big drive. No problem. Th reason for such a big drive before was it was a SuSE distro. like most distors they throw everything including the kitchen sink at you. I was use a debian system which I would strip down. I have no problem doing mulitple drives. LVM is really cool :-) > >>2) Do you have any way to use SCA drives? > > > > Its a older (4 years old) machine with built in Ultra Wide 2 scsi support. > > Its 68 pin. I believe my mother board supports 80 pin as well. I have to > > look. > > Unless you have a RAID backplane in your setup I doubt you motherboard > does SCA (80-pin) devices. Nice if so then nice motherboard. I don't think so then. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Re: Usage of readb() and friends... 2004-03-03 23:33 ` James Simmons @ 2004-03-04 0:14 ` Richard Smith 0 siblings, 0 replies; 11+ messages in thread From: Richard Smith @ 2004-03-04 0:14 UTC (permalink / raw) To: linux-fbdev-devel James Simmons wrote: >>>The driver that died was 9 Gigs. >> >>Ok. But do you _have_ to have that much. Will 4 get you going? Or if >>you can do multiple drives I have a few you could raid them or lvm them >>into a big drive. > > No problem. Th reason for such a big drive before was it was a SuSE > distro. like most distors they throw everything including the kitchen sink > at you. I was use a debian system which I would strip down. I have no > problem doing mulitple drives. LVM is really cool :-) > Ok. Then I have 3 4Gib drives you can turn into a 12Gib setup. if you can work out the SCA issue. They are SCA drives. >>Unless you have a RAID backplane in your setup I doubt you motherboard >>does SCA (80-pin) devices. Nice if so then nice motherboard. > I don't think so then. The 80-pin connector for SCA has both Power and scsi ID all in one which is why its used for RAID backplanes. They make SCA to 50 and 68 pin adapters that have std pc power jacks on them. You will still need a terminator though probally. Have you looked on e-bay? 9Gib 68 pin drives are closeing for <= $20 18Gib for < $30. Which is less than what 3 SCA to 68 pin converters is going to cost. I have $20 I'll donate for you to buy a new drive. Got a pay-pal or someother internet money account? -- Richard A. Smith rsmith@bitworks.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-03-04 0:29 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1076450411.4250.65.camel@kars.perseus.home>
[not found] ` <Pine.GSO.4.58.0402111105230.19627@waterleaf.sonytel.be>
[not found] ` <1076535969.4035.104.camel@kars.perseus.home>
[not found] ` <20040225101534.GA1103@linux-m68k.org>
[not found] ` <20040301175850.L24955@flint.arm.linux.org.uk>
[not found] ` <20040301181727.GA2379@linux-m68k.org>
[not found] ` <Pine.GSO.4.58.0403020939250.9959@waterleaf.sonytel.be>
[not found] ` <1078225776.1321.71.camel@laptop.locamation.com>
2004-03-02 12:15 ` Usage of readb() and friends Geert Uytterhoeven
2004-03-02 17:42 ` James Simmons
2004-03-02 22:50 ` Benjamin Herrenschmidt
2004-03-02 23:36 ` James Simmons
2004-03-02 23:49 ` Benjamin Herrenschmidt
2004-03-03 19:15 ` [Linux-fbdev-devel] " James Simmons
2004-03-03 22:42 ` Richard Smith
2004-03-03 23:10 ` James Simmons
2004-03-03 23:22 ` Richard Smith
2004-03-03 23:33 ` James Simmons
2004-03-04 0:14 ` Richard Smith
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).