* Is there a bug in dgnc.ko?
@ 2016-02-24 4:57 Navy Cheng
2016-02-24 5:37 ` Valdis.Kletnieks at vt.edu
2016-02-24 5:43 ` Greg KH
0 siblings, 2 replies; 8+ messages in thread
From: Navy Cheng @ 2016-02-24 4:57 UTC (permalink / raw)
To: kernelnewbies
Hi,
My kernel version is v4.4, and I have built drivers/staging/dgnc/dgnc.ko.
I change to *dir*/drivers/staging/dgnc and do like this:
sudo insmod ./dgnc.ko
sudo lsmod | grep dgnc
sudo rmmod ./dgnc
sudo insmod ./dgnc.ko
After I re-insmod the dgnc module, my laptop is breakdown.
My OS is debian 8.0. Is there a bug in dgnc.ko or something wrong with my
OS or kernel. If there is a bug, How can I find it?
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Is there a bug in dgnc.ko?
2016-02-24 4:57 Is there a bug in dgnc.ko? Navy Cheng
@ 2016-02-24 5:37 ` Valdis.Kletnieks at vt.edu
2016-02-24 11:36 ` Navy Cheng
2016-02-24 5:43 ` Greg KH
1 sibling, 1 reply; 8+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2016-02-24 5:37 UTC (permalink / raw)
To: kernelnewbies
On Wed, 24 Feb 2016 12:57:42 +0800, Navy Cheng said:
> Hi,
>
> My kernel version is v4.4, and I have built drivers/staging/dgnc/dgnc.ko.
> I change to *dir*/drivers/staging/dgnc and do like this:
>
> sudo insmod ./dgnc.ko
What output, if any, did this generate?
> sudo lsmod | grep dgnc
Again, what messages?
> sudo rmmod ./dgnc
Again, what happened?
> sudo insmod ./dgnc.ko
And here?
> After I re-insmod the dgnc module, my laptop is breakdown.
What does "breakdown" mean? Did it hang entirely? Did you get a message
in your dmesg output and/or on the console? Other?
> My OS is debian 8.0. Is there a bug in dgnc.ko or something wrong with my
> OS or kernel. If there is a bug, How can I find it?
Start by providing enough info to see if there's a bug.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160224/28ca56d2/attachment.bin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Is there a bug in dgnc.ko?
2016-02-24 4:57 Is there a bug in dgnc.ko? Navy Cheng
2016-02-24 5:37 ` Valdis.Kletnieks at vt.edu
@ 2016-02-24 5:43 ` Greg KH
2016-02-24 11:57 ` Navy Cheng
1 sibling, 1 reply; 8+ messages in thread
From: Greg KH @ 2016-02-24 5:43 UTC (permalink / raw)
To: kernelnewbies
On Wed, Feb 24, 2016 at 12:57:42PM +0800, Navy Cheng wrote:
> Hi,
>
> My kernel version is v4.4, and I have built drivers/staging/dgnc/dgnc.ko.
> I change to *dir*/drivers/staging/dgnc and do like this:
>
> sudo insmod ./dgnc.ko
Do you have the hardware that this driver controls?
> sudo lsmod | grep dgnc
Does that show anything?
> sudo rmmod ./dgnc
> sudo insmod ./dgnc.ko
>
> After I re-insmod the dgnc module, my laptop is breakdown.
Then there's a bug to fix in the driver, it must not clean up everything
properly. Based on a quick read of it, there is lots of things that
need to be fixed in it, that's why it is in staging. If you are
interested, I would suggest fixing this issue would be a great start.
good luck!
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Is there a bug in dgnc.ko?
2016-02-24 5:37 ` Valdis.Kletnieks at vt.edu
@ 2016-02-24 11:36 ` Navy Cheng
0 siblings, 0 replies; 8+ messages in thread
From: Navy Cheng @ 2016-02-24 11:36 UTC (permalink / raw)
To: kernelnewbies
On Wed, Feb 24, 2016 at 12:37:40AM -0500, Valdis.Kletnieks at vt.edu wrote:
> On Wed, 24 Feb 2016 12:57:42 +0800, Navy Cheng said:
> > Hi,
> >
> > My kernel version is v4.4, and I have built drivers/staging/dgnc/dgnc.ko.
> > I change to *dir*/drivers/staging/dgnc and do like this:
> >
> > sudo insmod ./dgnc.ko
>
> What output, if any, did this generate?
No output. I use *dmesg* to find more information:
[ 572.915977] dgnc: module is from the staging directory, the quality is
unknown, you have been warned.
> > sudo lsmod | grep dgnc
>
> Again, what messages?
Output:
dgnc 65536 0
> > sudo rmmod ./dgnc
>
> Again, what happened?
No output. After *dmesg*, no more info in the ring buffer.
> > sudo insmod ./dgnc.ko
>
> And here?
No output.
> > After I re-insmod the dgnc module, my laptop is breakdown.
>
> What does "breakdown" mean? Did it hang entirely? Did you get a message
> in your dmesg output and/or on the console? Other?
The GUI stop work and any key in my laptop is not work. The *Caps Lock lamp*
in the keyboard is flashing.
> > My OS is debian 8.0. Is there a bug in dgnc.ko or something wrong with my
> > OS or kernel. If there is a bug, How can I find it?
>
> Start by providing enough info to see if there's a bug.
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 8+ messages in thread
* Is there a bug in dgnc.ko?
2016-02-24 5:43 ` Greg KH
@ 2016-02-24 11:57 ` Navy Cheng
2016-02-24 12:03 ` Sudip Mukherjee
2016-02-24 18:25 ` Greg KH
0 siblings, 2 replies; 8+ messages in thread
From: Navy Cheng @ 2016-02-24 11:57 UTC (permalink / raw)
To: kernelnewbies
On Tue, Feb 23, 2016 at 09:43:56PM -0800, Greg KH wrote:
> On Wed, Feb 24, 2016 at 12:57:42PM +0800, Navy Cheng wrote:
> > Hi,
> >
> > My kernel version is v4.4, and I have built drivers/staging/dgnc/dgnc.ko.
> > I change to *dir*/drivers/staging/dgnc and do like this:
> >
> > sudo insmod ./dgnc.ko
>
> Do you have the hardware that this driver controls?
I'm not sure. My laptop is Dell Inspiron 14R - 5437 and I don't know if
there is the right hardware. I often don't know about what a driver is used
for in drivers/staging/. Is there any good way to know the function of a
driver or module?
>
> > sudo lsmod | grep dgnc
>
> Does that show anything?
Output: dgnc 65536 0
> > sudo rmmod ./dgnc
> > sudo insmod ./dgnc.ko
> >
> > After I re-insmod the dgnc module, my laptop is breakdown.
>
> Then there's a bug to fix in the driver, it must not clean up everything
> properly. Based on a quick read of it, there is lots of things that
> need to be fixed in it, that's why it is in staging. If you are
> interested, I would suggest fixing this issue would be a great start.
I'm very glad to get your advice to fix this issue. As a kernelnewbies, I
have sent two patches about code cleaning to you, and they are merged to
the kernel tree. I realy interested to fix this bug to improve my
understanding of the kerenl.
Thank you.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Is there a bug in dgnc.ko?
2016-02-24 11:57 ` Navy Cheng
@ 2016-02-24 12:03 ` Sudip Mukherjee
2016-02-25 7:05 ` Navy Cheng
2016-02-24 18:25 ` Greg KH
1 sibling, 1 reply; 8+ messages in thread
From: Sudip Mukherjee @ 2016-02-24 12:03 UTC (permalink / raw)
To: kernelnewbies
On Wed, Feb 24, 2016 at 5:27 PM, Navy Cheng <navych@126.com> wrote:
> On Tue, Feb 23, 2016 at 09:43:56PM -0800, Greg KH wrote:
>> On Wed, Feb 24, 2016 at 12:57:42PM +0800, Navy Cheng wrote:
>> > Hi,
>> >
>> > My kernel version is v4.4, and I have built drivers/staging/dgnc/dgnc.ko.
>> > I change to *dir*/drivers/staging/dgnc and do like this:
>> >
>> > sudo insmod ./dgnc.ko
>>
>> Do you have the hardware that this driver controls?
>
> I'm not sure. My laptop is Dell Inspiron 14R - 5437 and I don't know if
> there is the right hardware. I often don't know about what a driver is used
> for in drivers/staging/. Is there any good way to know the function of a
> driver or module?
>
>>
>> > sudo lsmod | grep dgnc
>>
>> Does that show anything?
>
> Output: dgnc 65536 0
>
>> > sudo rmmod ./dgnc
what did dmesg showed after you did rmmod?
regards
sudip
^ permalink raw reply [flat|nested] 8+ messages in thread
* Is there a bug in dgnc.ko?
2016-02-24 11:57 ` Navy Cheng
2016-02-24 12:03 ` Sudip Mukherjee
@ 2016-02-24 18:25 ` Greg KH
1 sibling, 0 replies; 8+ messages in thread
From: Greg KH @ 2016-02-24 18:25 UTC (permalink / raw)
To: kernelnewbies
On Wed, Feb 24, 2016 at 07:57:01PM +0800, Navy Cheng wrote:
> On Tue, Feb 23, 2016 at 09:43:56PM -0800, Greg KH wrote:
> > On Wed, Feb 24, 2016 at 12:57:42PM +0800, Navy Cheng wrote:
> > > Hi,
> > >
> > > My kernel version is v4.4, and I have built drivers/staging/dgnc/dgnc.ko.
> > > I change to *dir*/drivers/staging/dgnc and do like this:
> > >
> > > sudo insmod ./dgnc.ko
> >
> > Do you have the hardware that this driver controls?
>
> I'm not sure. My laptop is Dell Inspiron 14R - 5437 and I don't know if
> there is the right hardware. I often don't know about what a driver is used
> for in drivers/staging/. Is there any good way to know the function of a
> driver or module?
If you don't think you have the hardware, then almost always, you don't
have the hardware, it's pretty simple :)
> >
> > > sudo lsmod | grep dgnc
> >
> > Does that show anything?
>
> Output: dgnc 65536 0
Great, it loaded, then crashes when you unload, congratulations, you can
now work on fixing that bug!
good luck,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Is there a bug in dgnc.ko?
2016-02-24 12:03 ` Sudip Mukherjee
@ 2016-02-25 7:05 ` Navy Cheng
0 siblings, 0 replies; 8+ messages in thread
From: Navy Cheng @ 2016-02-25 7:05 UTC (permalink / raw)
To: kernelnewbies
On Wed, Feb 24, 2016 at 05:33:11PM +0530, Sudip Mukherjee wrote:
> On Wed, Feb 24, 2016 at 5:27 PM, Navy Cheng <navych@126.com> wrote:
> > On Tue, Feb 23, 2016 at 09:43:56PM -0800, Greg KH wrote:
> >> On Wed, Feb 24, 2016 at 12:57:42PM +0800, Navy Cheng wrote:
> >> > Hi,
> >> >
> >> > My kernel version is v4.4, and I have built drivers/staging/dgnc/dgnc.ko.
> >> > I change to *dir*/drivers/staging/dgnc and do like this:
> >> >
> >> > sudo insmod ./dgnc.ko
> >>
> >> Do you have the hardware that this driver controls?
> >
> > I'm not sure. My laptop is Dell Inspiron 14R - 5437 and I don't know if
> > there is the right hardware. I often don't know about what a driver is used
> > for in drivers/staging/. Is there any good way to know the function of a
> > driver or module?
> >
> >>
> >> > sudo lsmod | grep dgnc
> >>
> >> Does that show anything?
> >
> > Output: dgnc 65536 0
> >
> >> > sudo rmmod ./dgnc
>
> what did dmesg showed after you did rmmod?
>
*dmesg* show nothing after I rmmod dgnc. I guess something wrong with
dgnc_cleanup_module() which is called when dgnc is removed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-02-25 7:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-24 4:57 Is there a bug in dgnc.ko? Navy Cheng
2016-02-24 5:37 ` Valdis.Kletnieks at vt.edu
2016-02-24 11:36 ` Navy Cheng
2016-02-24 5:43 ` Greg KH
2016-02-24 11:57 ` Navy Cheng
2016-02-24 12:03 ` Sudip Mukherjee
2016-02-25 7:05 ` Navy Cheng
2016-02-24 18:25 ` Greg KH
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).