public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Guillaume Knispel <gknispel@proformatique.com>
To: linux-kernel@vger.kernel.org
Cc: linux-acpi@vger.kernel.org,
	"Guillaume Knispel" <gknispel@avencall.com>,
	"Xavier Carcelle" <xcarcelle@avencall.com>,
	"Noé Rubinstein" <nrubinstein@avencall.com>
Subject: How to "register" a GSI for a non PCI non ISA device
Date: Tue, 24 Jan 2012 18:42:03 +0100	[thread overview]
Message-ID: <20120124184203.1b0878c2@xilun> (raw)

Hi,

I'm building a PC platform with additional non-PCI and non-ISA devices:
they are basically simple telecom chipsets connected to an SPI and an
old school parallel bus (Intel LEB bus) and GPIO pins that can be used
as interrupts through the IO APIC which exposes 40 GSI. From the point
of view of the software the SPI, LEB, and GPIO are provided by PCI
devices (in reality they are embedded controllers in an Intel SoC
80579). Anyway I'm not sure the additional GSI are described anywhere
in whatever black magic ACPI / legacy BIOS table they could be
(but I've complete control over the FW, so I can had whatever is
 needed when I know it).

But as my devices are neither PCI nor ISA, I don't know how i can get
access to the custom GSI interrupt from a LKM. acpi_register_gsi() used
to be exported but is not anymore and I guess this is mandatory that
this function is called to prepare internal structures (maybe irq_desc)
and most importantly to configure to level triggering active low.

So I'm thinking about writing black magic DSDT stuffs or whatever,
which i might be able to sort of do after reading the fabulous ACPI
specifications. Any feedback or pointer would be highly welcome.

BTW when Linux devs says that bios writers are writing shit, yeah, they
do, and given the state of complexity of the PC platform, I'm at the
risk to do it too because I'm not supposed to delay the production of
our system by one additional year just to completely learn how the
shitty PC "standards" are supposed to work. From a more personal
point of view when I'm reading the ACPI or other related specs tainted
by MS and their desire to put GUID everywhere and other terrible ideas,
I would rather prefer being high to not endure that much pain.

As more and more x86 systems are directly designed to run Linux and
only tested with it, with some of those (like our own) being built
by people having complete control on the board and firmware (Coreboot),
maybe it is time to define a legacy-free variant of the x86 plateform
(especially on the FW/OS interface) for the free software and free
hardware design world, so that we aren't restricted and slowed down by
retro-compatible technologies dedicated at running MS-DOS and created
with the explicit goal to be hard to use for anything else than
Windows NT.

Cheers!
-- 
Guillaume Knispel
Avencall - 10 bis, rue Lucien Voilin - 92800 Puteaux


             reply	other threads:[~2012-01-24 17:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24 17:42 Guillaume Knispel [this message]
2012-01-25  5:56 ` How to "register" a GSI for a non PCI non ISA device Len Brown
2012-01-25 17:23   ` Guillaume Knispel
2012-01-25 19:02     ` Konrad Rzeszutek Wilk
2012-01-26 15:07       ` Guillaume Knispel
2012-01-26 15:32         ` Konrad Rzeszutek Wilk
2012-01-26 16:22           ` Guillaume Knispel
2012-01-26 17:24             ` Bjorn Helgaas
2012-01-26 17:30               ` Guillaume Knispel

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=20120124184203.1b0878c2@xilun \
    --to=gknispel@proformatique.com \
    --cc=gknispel@avencall.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nrubinstein@avencall.com \
    --cc=xcarcelle@avencall.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox