Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Gdium GPIO support broken
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Julien De Bona  
View profile  
 More options Sep 12 2012, 1:17 pm
From: Julien De Bona <julien.deb...@gmail.com>
Date: Wed, 12 Sep 2012 19:15:46 +0200
Local: Wed, Sep 12 2012 1:15 pm
Subject: Gdium GPIO support broken

Hello,

I found that commit 2539387611b8b15bb2367275df9bfd3e29dc2a0e in December
2010 broke the Gdium's GPIOs by doing this:
- set ARCH_NR_GPIOS to 4, which can fit the Loongson 2f's 4 GPIOs but
not the 64 GPIOs from the SM501 (the driver expects ARCH_NR_GPIOS==256)
- register ARCH_NR_GPIOS ls2f GPIOs, which allocates all potential GPIOs
to ls2f and leaves no room for the SM501 GPIOs.

As many things are connected to the GPIOs on the Gdium, this broke many
things.

I attached a patch fixing this problem.  It sets ARCH_NR_GPIOS back to
256 for Gdium and lets the ls2f driver only register the 4 GPIOs of the
CPU.  It's a patch against an old head (Linux 3.2), but I don't think
current code has changed a lot.  I hope to work on an up-to-date head
once my netbook works  At least I hope it can be useful for someone.

Regards
--
Julien De Bona - julien.deb...@gmail.com

  gdium_gpios.diff
2K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Turner  
View profile  
 More options Sep 12 2012, 1:29 pm
From: Matt Turner <matts...@gmail.com>
Date: Wed, 12 Sep 2012 10:29:20 -0700
Local: Wed, Sep 12 2012 1:29 pm
Subject: Re: [loongson-dev] Gdium GPIO support broken
On Wed, Sep 12, 2012 at 10:15 AM, Julien De Bona

Patches should go to Ralf and linux-mips@. Not here.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
包孟謙  
View profile  
 More options Sep 13 2012, 4:40 am
From: 包孟謙 <bao.mengq...@gmail.com>
Date: Thu, 13 Sep 2012 10:40:56 +0200
Local: Thurs, Sep 13 2012 4:40 am
Subject: Re: [loongson-dev] Gdium GPIO support broken

Dear Julien,
(Recent) kernel support for the Gdium will be very much welcomed by me,
indeed!

Thank you for developing for this forgotten system!

Sadly, I do not possess coding skills myself. However, if you require help
in some other form I would be glad to oblige.

-bmq


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien De Bona  
View profile  
 More options Sep 13 2012, 5:23 pm
From: Julien De Bona <julien.deb...@gmail.com>
Date: Thu, 13 Sep 2012 23:22:13 +0200
Local: Thurs, Sep 13 2012 5:22 pm
Subject: Re: [loongson-dev] Gdium GPIO support broken
Le 12/09/12 19:29, Matt Turner a crit :

> On Wed, Sep 12, 2012 at 10:15 AM, Julien De Bona
> <julien.deb...@gmail.com>  wrote:
>> I found that commit 2539387611b8b15bb2367275df9bfd3e29dc2a0e in December
>> 2010 broke the Gdium's GPIOs by doing this:
>> - set ARCH_NR_GPIOS to 4, which can fit the Loongson 2f's 4 GPIOs but not
>> the 64 GPIOs from the SM501 (the driver expects ARCH_NR_GPIOS==256)
>> - register ARCH_NR_GPIOS ls2f GPIOs, which allocates all potential GPIOs to
>> ls2f and leaves no room for the SM501 GPIOs.
> Patches should go to Ralf and linux-mips@. Not here.

The wiki homepage states that this project aims to to support loongson
machines, welcomes patches and will push its stable patchet to
linux-mips.  In short: specialize in this small domain and push the
resulting work upstream when it's ready; I think I'm fitting in that:
I'm referring to a commit made in this project on code directly related
to the Loongson CPU and breaking a Loongson machine. There's no Gdium
support in linux-mips, which makes the patch irrelevant there at this
moment.
--
Julien De Bona - julien.deb...@gmail.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Turner  
View profile  
 More options Sep 13 2012, 5:29 pm
From: Matt Turner <matts...@gmail.com>
Date: Thu, 13 Sep 2012 14:29:21 -0700
Local: Thurs, Sep 13 2012 5:29 pm
Subject: Re: [loongson-dev] Gdium GPIO support broken
On Thu, Sep 13, 2012 at 2:22 PM, Julien De Bona <julien.deb...@gmail.com> wrote:

They don't. No one is pushing patches from this list upstream.

I didn't realize there wasn't Gdium support upstream. Oh, just another
instance of failure to work upstream.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien De Bona  
View profile  
 More options Sep 13 2012, 6:27 pm
From: Julien De Bona <julien.deb...@gmail.com>
Date: Fri, 14 Sep 2012 00:26:18 +0200
Local: Thurs, Sep 13 2012 6:26 pm
Subject: Re: [loongson-dev] Gdium GPIO support broken
Le 13/09/12 23:29, Matt Turner a crit :

> They don't. No one is pushing patches from this list upstream.

> I didn't realize there wasn't Gdium support upstream. Oh, just another
> instance of failure to work upstream.

So I can consider this project is dead.  I'll consider dealing with
linux-mips once I'm happy with my laptop.

If someone has an interest, I'd be happy to share my patches.

--
Julien De Bona - julien.deb...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
包孟謙  
View profile  
 More options Sep 14 2012, 2:06 am
From: 包孟謙 <bao.mengq...@gmail.com>
Date: Fri, 14 Sep 2012 08:06:52 +0200
Local: Fri, Sep 14 2012 2:06 am
Subject: Re: [loongson-dev] Gdium GPIO support broken

Well, I for one would love to use them to finally run a kernel newer than
2.6.24. In what format would you like to distribute them? Git repository,
tarball, ..?

-Martin

On Fri, Sep 14, 2012 at 12:26 AM, Julien De Bona <julien.deb...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien De Bona  
View profile  
 More options Sep 15 2012, 6:30 am
From: Julien De Bona <julien.deb...@gmail.com>
Date: Sat, 15 Sep 2012 12:29:14 +0200
Local: Sat, Sep 15 2012 6:29 am
Subject: Re: [loongson-dev] Gdium GPIO support broken
Le 14/09/12 08:06, 包孟謙 a écrit :

> Well, I for one would love to use them to finally run a kernel newer
> than 2.6.24. In what format would you like to distribute them? Git
> repository, tarball, ..?

I can publish more patches here or on the web in a first step.  That
seems the best for me.  I don't mind providing a ready to build kernel
tarball.  For Git, I'd rather focus on coding as kernel development is
already quite a big thing to learn for me, so that wouldn't be for right
now.

--
Julien De Bona - julien.deb...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
包孟謙  
View profile  
 More options Sep 15 2012, 8:18 am
From: 包孟謙 <bao.mengq...@gmail.com>
Date: Sat, 15 Sep 2012 14:18:02 +0200
Local: Sat, Sep 15 2012 8:18 am
Subject: Re: [loongson-dev] Gdium GPIO support broken

On Sat, Sep 15, 2012 at 12:29 PM, Julien De Bona <julien.deb...@gmail.com>wrote:

FTP account on my VPS..

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien De Bona  
View profile  
 More options Sep 16 2012, 11:12 am
From: Julien De Bona <julien.deb...@gmail.com>
Date: Sun, 16 Sep 2012 17:10:51 +0200
Local: Sun, Sep 16 2012 11:10 am
Subject: Re: [loongson-dev] Gdium GPIO support broken
Le 15/09/12 14:18, 包孟謙 a écrit :

> On Sat, Sep 15, 2012 at 12:29 PM, Julien De Bona
> <julien.deb...@gmail.com <mailto:julien.deb...@gmail.com>> wrote:
>     I can publish more patches here or on the web in a first step.  That
>     seems the best for me.  I don't mind providing a ready to build
>     kernel tarball.  For Git, I'd rather focus on coding as kernel
>     development is already quite a big thing to learn for me, so that
>     wouldn't be for right now.
> No problem! Do you need some hosting space? I suppose I could provide an
> FTP account on my VPS..

I have my own server.  You can find patches and their description at
http://debona.dyndns.org/gdium-dev .  If you have some feedback (a
working config, how the patches apply on the latest kernel ...), I'm
interested to know.  I'm now working on the audio driver, but it's a big
task for a newcomer to kernel programming like me, so I don't expect any
new patch to be available in the next weeks.
--
Julien De Bona - julien.deb...@gmail.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »