All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: Guillaume Knispel <gknispel@proformatique.com>
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
	"Guillaume Knispel" <gknispel@avencall.com>,
	"Xavier Carcelle" <xcarcelle@avencall.com>,
	"Noé Rubinstein" <nrubinstein@avencall.com>
Subject: Re: How to "register" a GSI for a non PCI non ISA device
Date: Wed, 25 Jan 2012 00:56:53 -0500	[thread overview]
Message-ID: <4F1F99A5.1000206@kernel.org> (raw)
In-Reply-To: <20120124184203.1b0878c2@xilun>

On 01/24/2012 12:42 PM, Guillaume Knispel wrote:

> 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).

What is the benefit of implementing ACPI on this custom system?

-Len

> 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!



  reply	other threads:[~2012-01-25  5:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24 17:42 How to "register" a GSI for a non PCI non ISA device Guillaume Knispel
2012-01-25  5:56 ` Len Brown [this message]
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=4F1F99A5.1000206@kernel.org \
    --to=lenb@kernel.org \
    --cc=gknispel@avencall.com \
    --cc=gknispel@proformatique.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 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.