English Amiga Board    


Go Back   English Amiga Board > » Coders > Coders. System > Coders. Nextgen

Reply
 
Thread Tools
Old 21 November 2011, 06:13   #1
Ratte
Registered User
 
Join Date: Sep 2008
Location: Germany
Posts: 246
Question lowlevel PCI-coding / Amithlon

At the moment i am working on a open-pci 68k gfx driver.
Its still working in a "framebuffer"-mode as long as i am trying to support all kind of amiga-pci-systems.
openpci is great for this kind of drivers, but some very lowlevel operations during hw-init must be separated for different pci-systems.
So it seems to be impossible to read the pci-rom trough powerpci/openpci on Amithlon.
I have to code the bars directly like pci-specs describe it.

But here is the problem, it will work for ONE time, after a reset the system hangs if i try to read the pci-rom again.
This problem seems to be old ... amithlon-open:
http://tech.groups.yahoo.com/group/amithlon/message/13190

Is there an existing workaround or a bugfix?
Or some documented "softreset" code for pci-slots?

An other solution could be a resetproof resident-structure with a copy of the gfx-card.rom generated during the first amithlon-coldstart.
But I like to read the real rom before i start playing with resident-structures.

Thanx in advance.
Ratte is offline   Reply With Quote
Old 24 November 2011, 18:43   #2
Photon
Oldskool Demo Coder
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Hult / Sweden
Age: 41
Posts: 3,674
Send a message via MSN to Photon
I moved the thread to NextGen, hope you don't mind. Just to make sure: this is to enable the Linux 68k emulator to get access to any PCI slots in the PC?
__________________
Henrik. Programs Amiga demos, iPhone apps, websites, etc.
A1000/512k - A500 2.0/040@28/4M/.5M slowmem/8M/SCSI/CF - A600 portable II 3.1/ACA630/WiFi/CF - 'A1700' 3.1/68060@80/64M/IDE-Fix Express/CF - etc."The difference between PC and Amiga is that 10yo PCs are worth $0. 20yo Amigas are worth a lot, and Amigas that are only 15yo cost a fortune!"
If you like Portal 2, try my >> single player and cooperation maps <<
Photon is offline   Reply With Quote
Old 12 January 2012, 18:27   #3
Ratte
Registered User
 
Join Date: Sep 2008
Location: Germany
Posts: 246
thanx 4 support
http://youtu.be/HWax2_r0cDg
Ratte is offline   Reply With Quote
Old 12 January 2012, 20:13   #4
amigoun
Registered User
 
amigoun's Avatar
 
Join Date: May 2010
Location: Czech Rep
Posts: 151
Amazing!
amigoun is offline   Reply With Quote
Old 13 January 2012, 06:34   #5
fishyfish
Registered User
 
Join Date: Jul 2010
Location: Australia
Posts: 445
Damn, that's freaking awesome
Im still a big amithlon fan/user, so Im very interested in this.
Just curious though, and I dont want to be negative towards your work, but is there much likelyhood of those few functions (writepixelarray in particular is pretty important for me) that dont do as well as with powerfb being sped up still?
Also what cards are supported? Is it specifically the radeon9250?
Im currently using a core2duo machine for my amithlon box, so as is the case with most machines released in the last few years pci slots are limited. I have 3 and theyre all occupied (sound,nic, gfx(matrox g550 currently)).
Also does using an openpci driver remove the graphics ram limit that's normally there with amithlon?

Thanks again, and great work Im quite excited about this

Last edited by fishyfish; 13 January 2012 at 11:36.
fishyfish is offline   Reply With Quote
Old 18 January 2012, 12:41   #6
Ratte
Registered User
 
Join Date: Sep 2008
Location: Germany
Posts: 246
Quote:
Originally Posted by fishyfish View Post
Just curious though, and I dont want to be negative towards your work, but is there much likelyhood of those few functions (writepixelarray in particular is pretty important for me) that dont do as well as with powerfb being sped up still?
Also what cards are supported? Is it specifically the radeon9250?
Also does using an openpci driver remove the graphics ram limit that's normally there with amithlon?
A lot of functions are still software emulated.
Most of them are slower than powerfb, because powerfb is using x86 code for emulating and not 68k like i did.
Generally it is a framebuffer with "some" functions accelerated by hardware, some blitter and sprite functions.
Target is a full accelerated driver in the future.

RAM limit is gone, but due to a bug i have to limit the driver to 64mb, but the problem is no longer and 256mb videomem is no problem.

Currently supported are R200-RV280 chipsets.
Code is written to support a wide range from r100-r500 series in the future.
But I still have to transfer a lot of linux/bsd-code.
Ratte is offline   Reply With Quote
Old 18 January 2012, 15:38   #7
amigoun
Registered User
 
amigoun's Avatar
 
Join Date: May 2010
Location: Czech Rep
Posts: 151
Thanks for informing us about this great project and keep up the good work!
amigoun is offline   Reply With Quote
Old 19 April 2012, 03:58   #8
XDelusion
Alien Breeder
 
XDelusion's Avatar
 
Join Date: Mar 2011
Location: NW Ohio
Posts: 234
Very very cool, as another Amithlon fanatic, I'll be keeping a close eye on this!
XDelusion is offline   Reply With Quote
Old 03 May 2012, 19:23   #9
billt
Registered User
 
Join Date: Sep 2010
Location: Maryland, USA
Posts: 52
Back in the early days of the original ATI Radeon driver we had a similar/same problem. Joshua fixed it so I'm not sure exactly what he had to do, but he did find a way to tell the Radeon to allow ROM access. But I think that was Radeon specific, so we had to know that's what we were talking to and the right thing to do for this chip. Search your datasheets for your chips for what bit in what register to twiddle to open this up. I don't know if our solution survives reset or if it must be releated every possible boot. I won't have time for a few weeks, but will try to find a copy of sourcecode from back then and try to find this bit in there to report back.
billt is offline   Reply With Quote
Old 03 May 2012, 22:27   #10
Ratte
Registered User
 
Join Date: Sep 2008
Location: Germany
Posts: 246
The reset-problem is no longer.
1. the driver is searching for a romfile on libs: picasso96/radeon.rom
if no file available
2. the driver is searching for a romtag with a romdump
if no romtag found
3. the driver is reading the rom

if it find a rom, it build a romtag (if not available)


btw.
http://www.youtube.com/watch?v=G6aS0g4ZDZk
(on a4000 with latest opci-driver)
Ratte is offline   Reply With Quote
Old 04 May 2012, 03:47   #11
kriz
Junior Member
 
kriz's Avatar
 
Join Date: Sep 2001
Location: No(R)Way
Age: 31
Posts: 2,201
Very cooool !!!! Looking forward to this!!a
__________________
Mac Mini 1,5ghz + powerbook 1,67 ghxz- MorphOS 3.1 -- It rulez !!
_
Amiga 4000/060 - Whdload - RDesktop - WookieChat - All Supported.

1200/060/PPC/Indivision - AMIGA 4 EVER
kriz is offline   Reply With Quote
Old 26 November 2012, 18:12   #12
Ratte
Registered User
 
Join Date: Sep 2008
Location: Germany
Posts: 246
preview available on request
ato.lha (zoned) + personal file (radeon.card) on request
supported systems:

- radeon 9200 & 9250 (& 8500 & 9100 untested) = Rx2xx chipsets

- mediator 4000 (at the moment no a1200)
- prometheus
- amithlon

- searching for grex users in germany-ostwestfalen !!!!
Ratte is offline   Reply With Quote
Old 26 November 2012, 22:54   #13
johnim
Amibay Mod/Staff
 
johnim's Avatar
 
Join Date: Jun 2010
Location: birmingham uk
Age: 37
Posts: 807
Hi Ratte nice project

will this be done for the 1200 mediator in time

cheers john
__________________
A1200T 1d4:blizzard 1260/50/192mb/scsi kit:mediator 1200:radeon 9250:sb128:100mb net:spider usb clone:fastata-iv:amiga to ps2 mouse:80gb hd:zip100 ide:a4000 keyboard
A1200D 1d4:blizzard1230mk4/50/scsikit/128mb:indy mk ii:fastata mk ii:40gb
A1200 rev 2b*2 x A1200 1d4*A1200 1b*A600 2mb 4gb*A500*cd32 x2*cdtv=
sfs cf guide http://eab.abime.net/showthread.php?t=61048 cwb3.9 guidehttp://eab.abime.net/showthread.php?t=61180
johnim is offline   Reply With Quote
Old 27 November 2012, 09:55   #14
wXR
Registered User
 
Join Date: Mar 2009
Location: New York
Posts: 140
Wow Prometheus support! Nice job, Ratte, and thanks!
wXR is offline   Reply With Quote
Old 27 November 2012, 12:43   #15
Ratte
Registered User
 
Join Date: Sep 2008
Location: Germany
Posts: 246
Quote:
Originally Posted by johnim View Post
Hi Ratte nice project

will this be done for the 1200 mediator in time

cheers john
why not .. but first i like to fix the grex!
we are going two steps forward and one backward.

grex is a bit wirred .. rom-decoding and timings.
Ratte is offline   Reply With Quote
Old 27 November 2012, 17:40   #16
wXR
Registered User
 
Join Date: Mar 2009
Location: New York
Posts: 140
Ratte are you making source available for this?
wXR is offline   Reply With Quote
Old 27 November 2012, 20:07   #17
johnim
Amibay Mod/Staff
 
johnim's Avatar
 
Join Date: Jun 2010
Location: birmingham uk
Age: 37
Posts: 807
Thanks for reply Ratte

keeping an eye on this
__________________
A1200T 1d4:blizzard 1260/50/192mb/scsi kit:mediator 1200:radeon 9250:sb128:100mb net:spider usb clone:fastata-iv:amiga to ps2 mouse:80gb hd:zip100 ide:a4000 keyboard
A1200D 1d4:blizzard1230mk4/50/scsikit/128mb:indy mk ii:fastata mk ii:40gb
A1200 rev 2b*2 x A1200 1d4*A1200 1b*A600 2mb 4gb*A500*cd32 x2*cdtv=
sfs cf guide http://eab.abime.net/showthread.php?t=61048 cwb3.9 guidehttp://eab.abime.net/showthread.php?t=61180
johnim is offline   Reply With Quote
Old 27 November 2012, 21:02   #18
Ratte
Registered User
 
Join Date: Sep 2008
Location: Germany
Posts: 246
Quote:
Originally Posted by wXR View Post
Ratte are you making source available for this?
No, but most parts are based on Linux & NetBSD code.
Ratte is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
lowlevel.library bippym Coders. General 8 09 April 2007 18:08
CD32-Emu: "Can´t open lowlevel.library" Why? viddi support.Apps 10 19 January 2007 19:40
Prometheus PCI & Voodoo 3 PCI GFX Card Slayer support.Hardware 21 05 September 2006 10:57
Help coding alexh Coders. General 14 15 August 2006 09:24
WANTED: PCI Sound Card VORTEX2 SuperQuard / SQ2500 or Turtlebeach SantaCruz pci card keropi MarketPlace 7 09 February 2006 10:25


All times are GMT +2. The time now is 04:47.

-->

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Page generated in 0.26548 seconds with 9 queries