Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
225 user(s) are online (146 user(s) are browsing Forums)

Members: 5
Guests: 220

orgin, amigait, jabirulo, trixie, Hypex, more...

Headlines

Forum Index


Board index » All Posts (m3x)




Re: Qemu Pegasos II interrupts issue
Just popping in
Just popping in


@balaton

I've found only some snippets of code from the AmigaOneG3SE u-boot source code, maybe the following code may help:

void via_init_irq_routing(uint8 irq_map[])
{
    
char *s;
    
uint8 level_edge_bits 0xf;

    
/* Set irq routings */
    
pci_write_cfg_byte(07<<30x55irq_map[0]<<4);
    
pci_write_cfg_byte(07<<30x56irq_map[1] | irq_map[2]<<4);
    
pci_write_cfg_byte(07<<30x57irq_map[3]<<4);

    
/*
     * Gather level/edge bits
     * Default is to assume level triggered
     */

    
getenv("pci_irqa_select");
    if (
&& strcmp(s"level") == 0)
    
level_edge_bits &= ~0x01;

    
getenv("pci_irqb_select");
    if (
&& strcmp(s"level") == 0)
    
level_edge_bits &= ~0x02;

    
getenv("pci_irqc_select");
    if (
&& strcmp(s"level") == 0)
    
level_edge_bits &= ~0x04;

    
getenv("pci_irqd_select");
    if (
&& strcmp(s"level") == 0)
    
level_edge_bits &= ~0x08;

    
PRINTF("IRQ map\n");
    
PRINTF("%d: %s\n"irq_map[0], level_edge_bits&0x1 "edge" "level");
    
PRINTF("%d: %s\n"irq_map[1], level_edge_bits&0x2 "edge" "level");
    
PRINTF("%d: %s\n"irq_map[2], level_edge_bits&0x4 "edge" "level");
    
PRINTF("%d: %s\n"irq_map[3], level_edge_bits&0x8 "edge" "level");
    
pci_write_cfg_byte(07<<30x54level_edge_bits);

    
PRINTF("%02x %02x %02x %02x\n"pci_read_cfg_byte(07<<30x54),
       
pci_read_cfg_byte(07<<30x55), pci_read_cfg_byte(07<<30x56),
       
pci_read_cfg_byte(07<<30x57));
}

and

/*  Setup the ISA-to-PCI host bridge */
void via_isa_init(pci_dev_t devstruct pci_config_table *table)
{
    
char regval;
    if (
PCI_FUNC(dev) == 0)
    {
    
PRINTF("... PCI-to-ISA bridge, dev=0x%X\n"dev);

    
/*  Enable I/O Recovery time */
    
pci_write_config_byte(dev0x400x08);

    
/*  Enable ISA refresh */
    
pci_write_config_byte(dev0x410x41); /*  was 01 */

    /*  Enable ISA line buffer */
    
pci_write_config_byte(dev0x450x80);

    
/*  Gate INTR, and flush line buffer */
    
pci_write_config_byte(dev0x460x60);

    
/*  Enable EISA ports 4D0/4D1. Do we need this ? */
    
pci_write_config_byte(dev0x470xe6); /*  was 20 */

    /*  512 K PCI Decode */
    
pci_write_config_byte(dev0x480x01);

    
/*  Wait for PGNT before grant to ISA Master/DMA */
    /*  ports 0-FF to SDBus */
    /*  IRQ 14 and 15 for ide 0/1 */
    
pci_write_config_byte(dev0x4a0x04); /*  Was c4 */

    /*  Plug'n'Play */
    /*  Parallel DRQ 3, Floppy DRQ 2 (default) */
    
pci_write_config_byte(dev0x500x0e);

    
/*  IRQ Routing for Floppy and Parallel port */
    /*  IRQ 6 for floppy, IRQ 7 for parallel port */
    
pci_write_config_byte(dev0x510x76);

    
/*  IRQ Routing for serial ports (take IRQ 3 and 4) */
    
pci_write_config_byte(dev0x520x34);

    
/*  All IRQ's level triggered. */
    
pci_write_config_byte(dev0x540x00);

    
/*  PCI IRQ's all at IRQ 9 */
    
pci_write_config_byte(dev0x550x90);
    
pci_write_config_byte(dev0x560x99);
    
pci_write_config_byte(dev0x570x90);

    
/*  Enable Keyboard */
    
pci_read_config_byte(dev0x5A, &regval);
    
regval |= 0x01;
    
pci_write_config_byte(dev0x5Aregval);

    
pci_write_config_byte(dev0x800);
    
pci_write_config_byte(dev0x850x01);

/*     pci_write_config_byte(dev, 0x77, 0x00); */
    
}
}

and more

void articiaS_pci_irq_init(void)
{
    
char *s;

    
getenv("pci_irqa");
    if (
s)
    
pci_intmap[0] = simple_strtoul (sNULL10);
    else
    
pci_intmap[0] = pci_irq_alloc();

    
getenv("pci_irqb");
    if (
s)
    
pci_intmap[1] = simple_strtoul (sNULL10);
    else
    
pci_intmap[1] = pci_irq_alloc();

    
getenv("pci_irqc");
    if (
s)
    
pci_intmap[2] = simple_strtoul (sNULL10);
    else
    
pci_intmap[2] = pci_irq_alloc();

    
getenv("pci_irqd");
    if (
s)
    
pci_intmap[3] = simple_strtoul (sNULL10);
    else
    
pci_intmap[3] = pci_irq_alloc();
}

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: Sam460LE 1.10 Ghz Pre-Order!
Just popping in
Just popping in


@arfcarl

In our tests, the SIL 3112 is unreliable when used with a Sam460 board, the exact cause is unkwown.

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Just popping in
Just popping in


@balaton

There is a Pericom 8150B PCI Bridge on Sam440ep mini-itx and flex boards, maybe it's testing it ?

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: SAM Flex Stuttering Issue workbench or software use / games
Just popping in
Just popping in


@Gebrochen

Try the Sam440ep_setup utility from OS4Depot:

http://os4depot.net/share/utility/shell/sam440ep_setup.lha

if it help with your dragging open drawer windows slowness, which is in part due the HD 5450 used which has a PCI-PCIe bridge onboard.

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: SDL1 open issues
Just popping in
Just popping in


@balaton

I've searched some very old HDs but haven't found anything interesting so far.

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: SDL1 open issues
Just popping in
Just popping in


@balaton

could be a compilation problem, as I used a different gcc, will try using another one.

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: SDL1 open issues
Just popping in
Just popping in


@balaton

the sm502 driver set chip endianess to big endian writing 0 into register 0x005c.
This seems not to work in PCI mode (the chip remain in little endian mode), but maybe on the Pegasos emulation there is some side effect ?

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: Sam460LE 1.10 Ghz Pre-Order!
Just popping in
Just popping in


@skygecko

The Sii3112 card is likely to show instability on Sam460 boards, replace it with a 3512 or 3114.

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: Laptop recommendations
Just popping in
Just popping in


@white

Quote:
but can it be made available to try it ?

The new driver is currently on OS4Depot uploads queue:

http://os4depot.net/download.php?file ... nmotion502_chip-53.12.lha


Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: Laptop recommendations
Just popping in
Just popping in


@balaton

the driver assumed to always run on a 460, and used CPU time base 64-bit register for time delay

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: Laptop recommendations
Just popping in
Just popping in


@Maijestro

- bigger screen resolutions support
- corrected the problem with the boot delay on Peg2 emulation
- better read/write and blitting performance on real hardware
- some bug fixings

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: Laptop recommendations
Just popping in
Just popping in


@Hans

if you're using the SM502 driver, you can try the upcoming 53.12 available on the beta-ml later today

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Just popping in
Just popping in


@Hans

Quote:
While the ATOMBIOS ASICInit function should theoretically initialize the card from zero, we found that cards typically wouldn't work properly unless the motherboard's firmware did the lowlevel initialization first

I've ported ATOMBIOS into Sam460 U-boot version, and ASICInit indeed seems to initialize correctly the card but ATM I cannot get any videomode working. Do I need to call the classic x86 BIOS emulation before calling ASICInit, or something else need to be done to have a basic 640x480 screen mode ?

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Just popping in
Just popping in


@walkero

There is a good chance that it will be available on OS4Depot and/or on ACube web site, after finishing some other improvements.

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Just popping in
Just popping in


@Hans

Quote:
I wasn't aware of that. So the SM502's blitter won't copy or use the alpha channel? That's a weird thing to do.

The chip uses a different 16-bit layer for alpha. Maybe these is a way to implemet some sort of alpha support compatible with graphic.library...

Anyway, I've a new driver version which, on real hardware (not emulated) greatly improve CPU and DMA trasfer speed.

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Just popping in
Just popping in


@Hans

Quote:
Following up on this, the problem is that the emulated hardware is an SM501, which is limited to 16-bit colour output. We're lucky that the SM502 driver can handle the SM501, or it wouldn't work at all. We could get 32-bit if the SM502 were emulated instead.

The SM502 driver under AmigaOS4.1 is limited to 16-bit since its 32-bit mode AFAIK isn't support by graphics.library.
The chip uses 4 bytes, 3 bytes for RGB, and the last byte isn't used at all.
From my tests, AOS4.1 support 24-bit modes (3 bytes) or 32-bit modes (4 bytes with alpha) but not 32-bit modes without alpha.
The result is that trasparency doesn't work.

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: Sam460LE 1.10 Ghz Pre-Order!
Just popping in
Just popping in


@jabirulo

SATA 3132 is not supported

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: Sam 460 LE news
Just popping in
Just popping in


@Taddy

Please send me your email address by PM, thanks !

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: NVMe device driver
Just popping in
Just popping in


@geennaam

Testing a Lexar Professional NM700 M.2 2280 PCIe Gen3x4 NVMe 256GB SSD on a Sam460le, with a PCIe 1x adapter, into the PCIe 1x slot.

U-Boot and AOS4.1 recognize the device, but on the AOS4.1 side I cannot format nor partition it.

Tried with different FS and different partition size, without results.

When I put the same NVMe and adapter into a PC, it works correctly.
After formatting it (FAT32 or NTFS for example) and put back in the Sam460, the icon device is showed on WB, but cannot copy any file, got the following error on the serial:

[NVMe] Create CQ Failed

If you need addition info let me know.

Max Tretene, ACube Systems Srl, Soft3
Go to top


Re: Sam 460 LE news
Just popping in
Just popping in


@bigmac

new ethernet chips arrived and were sent to the factory to replace the defective ones

Max Tretene, ACube Systems Srl, Soft3
Go to top



TopTop
(1) 2 3 4 ... 8 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project