All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@orcam.me.uk>
To: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Nikolai Zhubr <zhubr.2@gmail.com>,
	Arnd Bergmann <arnd@kernel.org>, netdev <netdev@vger.kernel.org>,
	Jeff Garzik <jgarzik@pobox.com>
Subject: Re: Realtek 8139 problem on 486.
Date: Tue, 1 Jun 2021 19:44:58 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.21.2106011918390.11113@angie.orcam.me.uk> (raw)
In-Reply-To: <a1589139-82c7-0219-97ce-668837a9c7b1@gmail.com>

On Tue, 1 Jun 2021, Heiner Kallweit wrote:

> > Alternatively, maybe it is possible to explicitely request level mode from 8259 at the driver startup?
> > 
> I have doubts that it is possible to overrule what the BIOS/ACPI communicate
> to the kernel.

 Umm, any 486 system surely predates ACPI by several years; indeed I have 
a dual Pentium MMX system from 1997 that does not have ACPI either and 
uses an MP Table to communicate interrupt line configuration.  I am fairly
sure an old UP 486 system communicates nothing.

 Since the inception of EISA the usual way for x86 systems to switch 
between classic edge-triggered and level-triggered interrupts on a line by 
line basis has been the ELCR, a 16-bit mainboard register at 0x4d0 in the 
port I/O space.  We do have support for that register, however used in 
certain circumstances only, clearly not yours.  Classic 8259A chips could 
only switch trigger modes globally across all interrupt lines.

 You might be able to add a quirk based on your chipset's vendor/device ID 
though, which would call `elcr_set_level_irq' for interrupt lines claimed 
by PCI devices.  You'd have to match on the southbridge's ID I imagine, if 
any (ISTR at least one Intel chipset did not have a southbridge visible on 
PCI), as it's where the 8259A cores along with any ELCR reside.

 It would be the right thing to do IMO; those early PCI systems often got 
these things wrong, and the selection for the trigger mode shouldn't have 
been there in the BIOS setup in the first place (the manufacturer couldn't 
obviously figure it out how to do this correctly by just scanning PCI, so 
they shifted the burden onto the end user; though I have to admit odd hw 
used to be made too, e.g. I remember seeing a PCI PATA option card with an 
extra cable and a tiny PCB stub to be plugged into the upper part of a 
spare ISA slot to get IRQ 14/15 routed from there).

 HTH,

  Maciej

  parent reply	other threads:[~2021-06-01 17:45 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-29 14:08 Realtek 8139 problem on 486 Nikolai Zhubr
2021-05-29 18:42 ` Heiner Kallweit
2021-05-29 21:44   ` tedheadster
2021-05-30  0:49     ` Nikolai Zhubr
2021-05-30 10:36       ` Nikolai Zhubr
2021-05-30 17:27         ` Nikolai Zhubr
2021-05-30 20:54           ` Arnd Bergmann
2021-05-30 23:17             ` Nikolai Zhubr
2021-05-31 16:53               ` Nikolai Zhubr
2021-05-31 18:39                 ` Arnd Bergmann
2021-05-31 22:18                   ` Nikolai Zhubr
2021-05-31 22:30                     ` Heiner Kallweit
2021-06-01  7:20                       ` Arnd Bergmann
2021-06-01 10:53                         ` Nikolai Zhubr
2021-06-01 11:42                           ` Heiner Kallweit
2021-06-01 16:09                             ` Nikolai Zhubr
2021-06-01 21:48                               ` Heiner Kallweit
2021-06-01 23:37                                 ` Nikolai Zhubr
2021-06-02  9:12                                   ` Arnd Bergmann
2021-06-07 23:07                                     ` Nikolai Zhubr
2021-06-08  7:44                                       ` Arnd Bergmann
2021-06-08 20:32                                         ` Nikolai Zhubr
2021-06-08 20:45                                           ` Arnd Bergmann
2021-06-08 22:07                                             ` Nikolai Zhubr
2021-06-09  7:09                                               ` Arnd Bergmann
2021-06-12 17:40                                                 ` Nikolai Zhubr
2021-06-12 22:41                                                   ` Arnd Bergmann
2021-06-13 14:10                                                     ` Nikolai Zhubr
2021-06-13 21:52                                                       ` Arnd Bergmann
2021-06-03 18:32                                 ` Maciej W. Rozycki
2021-06-04  7:36                                   ` Arnd Bergmann
2021-06-20  0:34                                     ` Thomas Gleixner
2021-06-20 10:19                                       ` Arnd Bergmann
2021-06-21  4:10                                       ` Maciej W. Rozycki
2021-06-21 11:22                                         ` Arnd Bergmann
2021-06-21 14:42                                           ` Maciej W. Rozycki
2021-06-21 15:20                                             ` Arnd Bergmann
2021-06-22 11:12                                             ` David Laight
2021-06-22 12:42                                           ` Nikolai Zhubr
2021-06-22 13:22                                             ` Arnd Bergmann
2021-06-22 18:42                                               ` Nikolai Zhubr
2021-06-22 19:26                                                 ` Arnd Bergmann
2021-06-23  1:04                                                   ` Maciej W. Rozycki
2021-06-24 17:56                                                     ` Nikolai Zhubr
2021-06-24 18:25                                                       ` Maciej W. Rozycki
2021-07-14 23:32                                                         ` Maciej W. Rozycki
2021-07-15  7:32                                                           ` Nikolai Zhubr
2021-07-16 23:48                                                             ` Maciej W. Rozycki
2021-06-23 16:31                                                   ` Nikolai Zhubr
2021-06-23 23:39                                                     ` Maciej W. Rozycki
2021-06-24  8:28                                                       ` Arnd Bergmann
2021-07-02 19:02                                                         ` Nikolai Zhubr
2021-07-03  9:10                                                           ` Arnd Bergmann
2021-07-08 19:21                                                             ` Nikolai Zhubr
2021-07-09  7:31                                                               ` Arnd Bergmann
2021-07-09 12:43                                                               ` David Laight
2021-06-01 17:44                             ` Maciej W. Rozycki [this message]
2021-06-02 15:14                               ` Nikolai Zhubr
2021-06-02 15:28                                 ` Arnd Bergmann
2021-05-31 19:05                 ` Heiner Kallweit
2021-05-31 18:29 ` Denis Kirjanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.21.2106011918390.11113@angie.orcam.me.uk \
    --to=macro@orcam.me.uk \
    --cc=arnd@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=netdev@vger.kernel.org \
    --cc=zhubr.2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.