<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername"></b> <span dir="ltr"><<a href="mailto:kernelnewbies-request@kernelnewbies.org">kernelnewbies-request@kernelnewbies.org</a>></span><br>Date: Mon, Feb 15, 2016 at 5:40 AM<br>Subject: Kernelnewbies Digest, Vol 63, Issue 20<br>To: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br><br><br>Send Kernelnewbies mailing list submissions to<br>
<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:kernelnewbies-request@kernelnewbies.org">kernelnewbies-request@kernelnewbies.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:kernelnewbies-owner@kernelnewbies.org">kernelnewbies-owner@kernelnewbies.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Kernelnewbies digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: current during interrupt servicing (Mulyadi Santosa)<br>
2. Merge conflict (YU Bo)<br>
3. Re: Merge conflict (Roger H Newell)<br>
4. Re:Re: Merge conflict (YU Bo)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 15 Feb 2016 01:10:53 +0700<br>
From: Mulyadi Santosa <<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>><br>
Subject: Re: current during interrupt servicing<br>
To: "tobaccopipeyoyo ." <<a href="mailto:tobaccopipeyoyo@gmail.com">tobaccopipeyoyo@gmail.com</a>><br>
Cc: kernelnewbies <<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a>><br>
Message-ID:<br>
<CAGdaadYgnA7JwfgUCxa=<a href="mailto:hiJjQm4Oz%2BrDy-htZCi6cdw7O8WFgg@mail.gmail.com">hiJjQm4Oz+rDy-htZCi6cdw7O8WFgg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On Sun, Feb 14, 2016 at 9:16 AM, tobaccopipeyoyo . <<br>
<a href="mailto:tobaccopipeyoyo@gmail.com">tobaccopipeyoyo@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
> I'm new to kernel programming, currently started ldd book<br>
> For the current process it says that global item current returns the<br>
> task_struct of the currently running process.<br>
><br>
> What if I refer this global during interrupt servicing?<br>
> What will happen? What should I expect.<br>
><br>
> Thanks,<br>
> tpyy<br>
><br>
><br>
Hi...<br>
<br>
during interrupt servicing, "current" will give you last process' data<br>
structure that's get interrupted by the interrupt. Of course, this is per<br>
cpu context, so if you are in SMP situation, current will return task<br>
struct in that CPU only.<br>
<br>
The essential thing in interrupt servicing is: interrupt handler runs on<br>
behalf of current running process.<br>
<br>
Hopefully I still recall all these correctly.<br>
<br>
<br>
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br><br></div><div class="gmail_quote">Hi Mulyadi,<br></div><div class="gmail_quote"> I disagree with the statement you made here that "interrupt handler runs on behalf of current running process".<br></div><div class="gmail_quote">Your statement is valid for system calls (software interrupt) but not for the real "interrupt"<br></div><div class="gmail_quote">Interrupt handler are nowhere related to any process. They run their own without caring about<br></div><div class="gmail_quote">which process was running.<br></div><div class="gmail_quote">--- Vishwas<br></div><div class="gmail_quote">
<br>
blog: <a href="http://the-hydra.blogspot.com" rel="noreferrer" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" rel="noreferrer" target="_blank">mulyaditraining.blogspot.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160215/005f337f/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160215/005f337f/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 15 Feb 2016 07:46:36 +0800 (CST)<br>
From: "YU Bo" <<a href="mailto:yuzibode@126.com">yuzibode@126.com</a>><br>
Subject: Merge conflict<br>
To: "<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a>"<br>
<<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a>><br>
Message-ID: <<a href="mailto:50a639e9.361.152e22dc5ea.Coremail.yuzibode@126.com">50a639e9.361.152e22dc5ea.Coremail.yuzibode@126.com</a>><br>
Content-Type: text/plain; charset="gbk"<br>
<br>
Hi,<br>
Some days ago i followed the tips:<br>
<a href="http://kernelnewbies.org/FirstKernelPatch" rel="noreferrer" target="_blank">http://kernelnewbies.org/FirstKernelPatch</a><br>
git clone greg's git tree and built branch first-patch.<br>
Due to my first patch that fixes coding style reported<br>
by <a href="http://checkptch.pl" rel="noreferrer" target="_blank">checkptch.pl</a> didn't applied,so i intend to rebase my<br>
git branch first-patch.The question i encounter is:<br>
==================git command && output========<br>
yubo@debian:~/maintree/staging$ git rebase first-patch<br>
It looks like git-am is in progress. Cannot rebase.<br>
yubo@debian:~/maintree/staging$ git am --abort<br>
You seem to have moved HEAD since the last 'am' failure.<br>
Not rewinding to ORIG_HEAD<br>
yubo@debian:~/maintree/staging$ git rebase first-patch<br>
First, rewinding head to replay your work on top of it...<br>
Applying: ovl: default permissions<br>
Using index info to reconstruct a base tree...<br>
Falling back to patching base and 3-way merge...<br>
----<br>
Auto-merging drivers/gpu/drm/i915/intel_display.c<br>
CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/intel_display.c<br>
Failed to merge in the changes.<br>
Patch failed at 0010 drm/i915: Only run commit when crtc is active, v2.<br>
<br>
<br>
Is there something with wrong?<br>
Thanks in advance for the noisy.<br>
--<br>
Best Regards<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160215/a9f6b611/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160215/a9f6b611/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sun, 14 Feb 2016 20:21:40 -0330<br>
From: Roger H Newell <<a href="mailto:newell.roger@gmail.com">newell.roger@gmail.com</a>><br>
Subject: Re: Merge conflict<br>
To: YU Bo <<a href="mailto:yuzibode@126.com">yuzibode@126.com</a>><br>
Cc: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID:<br>
<<a href="mailto:CAEE9rjYv7AxAeMZkVCphwW61QNi3VDyETMw%2BF87PdTRkAP6N6w@mail.gmail.com">CAEE9rjYv7AxAeMZkVCphwW61QNi3VDyETMw+F87PdTRkAP6N6w@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I think you want to have first-patch checked out and rebase<br>
origin/staging-testing ? You mite also consider checking out<br>
staging-testing first and run git fetch origin.<br>
<br>
On Feb 14, 2016 8:17 PM, "YU Bo" <<a href="mailto:yuzibode@126.com">yuzibode@126.com</a>> wrote:<br>
><br>
> Hi,<br>
> Some days ago i followed the tips:<br>
> <a href="http://kernelnewbies.org/FirstKernelPatch" rel="noreferrer" target="_blank">http://kernelnewbies.org/FirstKernelPatch</a><br>
> git clone greg's git tree and built branch first-patch.<br>
> Due to my first patch that fixes coding style reported<br>
> by <a href="http://checkptch.pl" rel="noreferrer" target="_blank">checkptch.pl</a> didn't applied,so i intend to rebase my<br>
> git branch first-patch.The question i encounter is:<br>
> ==================git command && output========<br>
> yubo@debian:~/maintree/staging$ git rebase first-patch<br>
> It looks like git-am is in progress. Cannot rebase.<br>
> yubo@debian:~/maintree/staging$ git am --abort<br>
> You seem to have moved HEAD since the last 'am' failure.<br>
> Not rewinding to ORIG_HEAD<br>
> yubo@debian:~/maintree/staging$ git rebase first-patch<br>
> First, rewinding head to replay your work on top of it...<br>
> Applying: ovl: default permissions<br>
> Using index info to reconstruct a base tree...<br>
> Falling back to patching base and 3-way merge...<br>
> ----<br>
> Auto-merging drivers/gpu/drm/i915/intel_display.c<br>
> CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/intel_display.c<br>
> Failed to merge in the changes.<br>
> Patch failed at 0010 drm/i915: Only run commit when crtc is active, v2.<br>
><br>
> Is there something with wrong?<br>
> Thanks in advance for the noisy.<br>
> --<br>
> Best Regards<br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160214/dd794278/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160214/dd794278/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Mon, 15 Feb 2016 08:10:35 +0800 (CST)<br>
From: "YU Bo" <<a href="mailto:yuzibode@126.com">yuzibode@126.com</a>><br>
Subject: Re:Re: Merge conflict<br>
To: "Roger H Newell" <<a href="mailto:newell.roger@gmail.com">newell.roger@gmail.com</a>><br>
Cc: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID: <<a href="mailto:35d0bb5e.45d.152e243ba6a.Coremail.yuzibode@126.com">35d0bb5e.45d.152e243ba6a.Coremail.yuzibode@126.com</a>><br>
Content-Type: text/plain; charset="gbk"<br>
<br>
Hi,<br>
I just have checkouted origin/staging-testing and git rebase first-patch.Now,<br>
=============git command && output==============<br>
yubo@debian:~/maintree/staging$ git branch -a<br>
* (no branch)<br>
first-patch<br>
staging-next<br>
staging-testing<br>
remotes/origin/HEAD -> origin/master<br>
remotes/origin/master<br>
remotes/origin/staging-linus<br>
remotes/origin/staging-next<br>
remotes/origin/staging-testing<br>
remotes/origin/test<br>
ubo@debian:~/maintree/staging$ git fetch origin<br>
remote: Counting objects: 273, done.<br>
remote: Compressing objects: 100% (273/273), done.<br>
remote: Total 273 (delta 160), reused 0 (delta 0)<br>
Receiving objects: 100% (273/273), 298.64 KiB | 196 KiB/s, done.<br>
Resolving deltas: 100% (160/160), done.<br>
>From git://<a href="http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging" rel="noreferrer" target="_blank">git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging</a><br>
2cdb82c..d9750a2 staging-next -> origin/staging-next<br>
yubo@debian:~/maintree/staging$ git checkout staging-testing<br>
drivers/gpu/drm/i915/intel_display.c: needs merge<br>
error: you need to resolve your current index first<br>
===============end==================<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Best Regards<br>
<br>
<br>
? 2016-02-15 07:51:40?"Roger H Newell" <<a href="mailto:newell.roger@gmail.com">newell.roger@gmail.com</a>> ???<br>
<br>
<br>
I think you want to have first-patch checked out and rebase origin/staging-testing ? You mite also consider checking out staging-testing first and run git fetch origin.<br>
<br>
On Feb 14, 2016 8:17 PM, "YU Bo" <<a href="mailto:yuzibode@126.com">yuzibode@126.com</a>> wrote:<br>
><br>
> Hi,<br>
> Some days ago i followed the tips:<br>
> <a href="http://kernelnewbies.org/FirstKernelPatch" rel="noreferrer" target="_blank">http://kernelnewbies.org/FirstKernelPatch</a><br>
> git clone greg's git tree and built branch first-patch.<br>
> Due to my first patch that fixes coding style reported<br>
> by <a href="http://checkptch.pl" rel="noreferrer" target="_blank">checkptch.pl</a> didn't applied,so i intend to rebase my<br>
> git branch first-patch.The question i encounter is:<br>
> ==================git command && output========<br>
> yubo@debian:~/maintree/staging$ git rebase first-patch<br>
> It looks like git-am is in progress. Cannot rebase.<br>
> yubo@debian:~/maintree/staging$ git am --abort<br>
> You seem to have moved HEAD since the last 'am' failure.<br>
> Not rewinding to ORIG_HEAD<br>
> yubo@debian:~/maintree/staging$ git rebase first-patch<br>
> First, rewinding head to replay your work on top of it...<br>
> Applying: ovl: default permissions<br>
> Using index info to reconstruct a base tree...<br>
> Falling back to patching base and 3-way merge...<br>
> ----<br>
> Auto-merging drivers/gpu/drm/i915/intel_display.c<br>
> CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/intel_display.c<br>
> Failed to merge in the changes.<br>
> Patch failed at 0010 drm/i915: Only run commit when crtc is active, v2.<br>
><br>
> Is there something with wrong?<br>
> Thanks in advance for the noisy.<br>
> --<br>
> Best Regards<br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160215/5c0d9abc/attachment.html" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160215/5c0d9abc/attachment.html</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
<br>
End of Kernelnewbies Digest, Vol 63, Issue 20<br>
*********************************************<br>
</div><br></div>