From: Vincent Pelletier <plr.vincent@gmail.com>
To: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: linux-leds@vger.kernel.org
Subject: Re: leds-gpio on x86
Date: Mon, 17 Aug 2015 23:08:23 +0200 [thread overview]
Message-ID: <20150817230823.61de477a@x2> (raw)
In-Reply-To: <20150815123640.45a5b9bf@x2>
I'm getting more comfortable with leds, and troubles begin.
When I enable timer-base led triggering and start even just two leds in
short succession (in a shell script), I start seeing:
[ 1210.586990] Trying to free nonexistent resource <000000000000002e-000000000000002f>
[ 1211.227414] Trying to free nonexistent resource <000000000000002e-000000000000002f>
[ 1211.867890] Trying to free nonexistent resource <000000000000002e-000000000000002f>
[ 1212.508299] Trying to free nonexistent resource <000000000000002e-000000000000002f>
[ 1213.148734] Trying to free nonexistent resource <000000000000002e-000000000000002f>
[ 1213.789172] Trying to free nonexistent resource <000000000000002e-000000000000002f>
[ 1214.429607] Trying to free nonexistent resource <000000000000002e-000000000000002f>
2e-2f is the range of the SuperIO, which is requested & released by
(at least) gpio-f7188x:
[ 535.653716] gpio-f7188x: Found f71869a at 0x2e, revision 32
Unloading all other modules accessing the SuperIO (fintek-cir and
f71882fg), I can still reproduce the message.
Also, when this error happens, tty screen can become corrupted (areas
become blank, as if space char was replacing large rectangles).
Unloading my module (which unregisters leds, in turn unregistering GPIO
pins) clears the corruption ("hidden" chars appear again).
Enabling usb-host triggering, the messages appears without a single
other led trigger set to something else than "none".
I do not speak C fluently enough to tell if this is a re-entry kind of
problem (same module accessing GPIO pins right next to each other at
about the same time by different timers).
How can I debug this further ?
--
Vincent Pelletier
next prev parent reply other threads:[~2015-08-17 21:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 20:09 leds-gpio on x86 Vincent Pelletier
2015-08-06 16:59 ` Mika Westerberg
2015-08-06 17:17 ` Vincent Pelletier
2015-08-06 17:35 ` Mika Westerberg
2015-08-06 18:18 ` Vincent Pelletier
2015-08-07 10:57 ` Mika Westerberg
2015-08-08 12:06 ` Vincent Pelletier
2015-08-11 12:00 ` Mika Westerberg
2015-08-11 17:42 ` Vincent Pelletier
2015-08-12 12:53 ` Mika Westerberg
2015-08-15 10:36 ` Vincent Pelletier
2015-08-17 21:08 ` Vincent Pelletier [this message]
2015-08-18 7:32 ` Vincent Pelletier
2015-08-18 9:02 ` Mika Westerberg
2015-08-18 11:38 ` Vincent Pelletier
2015-08-18 22:56 ` Vincent Pelletier
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=20150817230823.61de477a@x2 \
--to=plr.vincent@gmail.com \
--cc=linux-leds@vger.kernel.org \
--cc=mika.westerberg@linux.intel.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;
as well as URLs for NNTP newsgroup(s).