<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername"></b> <span dir="ltr">&lt;<a href="mailto:kernelnewbies-request@kernelnewbies.org">kernelnewbies-request@kernelnewbies.org</a>&gt;</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 &#39;help&#39; 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 &quot;Re: Contents of Kernelnewbies digest...&quot;<br>
<br>
<br>
Today&#39;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 &lt;<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>&gt;<br>
Subject: Re: current during interrupt servicing<br>
To: &quot;tobaccopipeyoyo .&quot; &lt;<a href="mailto:tobaccopipeyoyo@gmail.com">tobaccopipeyoyo@gmail.com</a>&gt;<br>
Cc: kernelnewbies &lt;<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a>&gt;<br>
Message-ID:<br>
        &lt;CAGdaadYgnA7JwfgUCxa=<a href="mailto:hiJjQm4Oz%2BrDy-htZCi6cdw7O8WFgg@mail.gmail.com">hiJjQm4Oz+rDy-htZCi6cdw7O8WFgg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
On Sun, Feb 14, 2016 at 9:16 AM, tobaccopipeyoyo . &lt;<br>
<a href="mailto:tobaccopipeyoyo@gmail.com">tobaccopipeyoyo@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt; I&#39;m new to kernel programming, currently started ldd book<br>
&gt; For the current process it says that global item current returns the<br>
&gt; task_struct of the currently running process.<br>
&gt;<br>
&gt; What if I refer this global during interrupt servicing?<br>
&gt; What will happen? What should I expect.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; tpyy<br>
&gt;<br>
&gt;<br>
Hi...<br>
<br>
during interrupt servicing, &quot;current&quot; will give you last process&#39; data<br>
structure that&#39;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 &quot;interrupt handler runs on behalf of current running process&quot;.<br></div><div class="gmail_quote">Your statement is valid for system calls (software interrupt) but not for the real &quot;interrupt&quot;<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: &quot;YU Bo&quot; &lt;<a href="mailto:yuzibode@126.com">yuzibode@126.com</a>&gt;<br>
Subject: Merge conflict<br>
To: &quot;<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a>&quot;<br>
        &lt;<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:50a639e9.361.152e22dc5ea.Coremail.yuzibode@126.com">50a639e9.361.152e22dc5ea.Coremail.yuzibode@126.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;gbk&quot;<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&#39;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&#39;t applied,so i intend to rebase my<br>
git branch first-patch.The question i encounter is:<br>
==================git command &amp;&amp; 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 &#39;am&#39; 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 &lt;<a href="mailto:newell.roger@gmail.com">newell.roger@gmail.com</a>&gt;<br>
Subject: Re: Merge conflict<br>
To: YU Bo &lt;<a href="mailto:yuzibode@126.com">yuzibode@126.com</a>&gt;<br>
Cc: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CAEE9rjYv7AxAeMZkVCphwW61QNi3VDyETMw%2BF87PdTRkAP6N6w@mail.gmail.com">CAEE9rjYv7AxAeMZkVCphwW61QNi3VDyETMw+F87PdTRkAP6N6w@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<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, &quot;YU Bo&quot; &lt;<a href="mailto:yuzibode@126.com">yuzibode@126.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt; Some days ago i followed the tips:<br>
&gt; <a href="http://kernelnewbies.org/FirstKernelPatch" rel="noreferrer" target="_blank">http://kernelnewbies.org/FirstKernelPatch</a><br>
&gt; git clone greg&#39;s git tree and built branch first-patch.<br>
&gt; Due to my first patch that fixes coding style reported<br>
&gt; by <a href="http://checkptch.pl" rel="noreferrer" target="_blank">checkptch.pl</a> didn&#39;t applied,so i intend to rebase my<br>
&gt; git branch first-patch.The question i encounter is:<br>
&gt; ==================git command &amp;&amp; output========<br>
&gt; yubo@debian:~/maintree/staging$  git rebase first-patch<br>
&gt; It looks like git-am is in progress. Cannot rebase.<br>
&gt; yubo@debian:~/maintree/staging$ git am --abort<br>
&gt; You seem to have moved HEAD since the last &#39;am&#39; failure.<br>
&gt; Not rewinding to ORIG_HEAD<br>
&gt; yubo@debian:~/maintree/staging$ git rebase first-patch<br>
&gt; First, rewinding head to replay your work on top of it...<br>
&gt; Applying: ovl: default permissions<br>
&gt; Using index info to reconstruct a base tree...<br>
&gt; Falling back to patching base and 3-way merge...<br>
&gt; ----<br>
&gt; Auto-merging drivers/gpu/drm/i915/intel_display.c<br>
&gt; CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/intel_display.c<br>
&gt; Failed to merge in the changes.<br>
&gt; Patch failed at 0010 drm/i915: Only run commit when crtc is active, v2.<br>
&gt;<br>
&gt; Is there  something with wrong?<br>
&gt; Thanks in advance for the noisy.<br>
&gt; --<br>
&gt; Best Regards<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Kernelnewbies mailing list<br>
&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
&gt;<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: &quot;YU Bo&quot; &lt;<a href="mailto:yuzibode@126.com">yuzibode@126.com</a>&gt;<br>
Subject: Re:Re: Merge conflict<br>
To: &quot;Roger H Newell&quot; &lt;<a href="mailto:newell.roger@gmail.com">newell.roger@gmail.com</a>&gt;<br>
Cc: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID: &lt;<a href="mailto:35d0bb5e.45d.152e243ba6a.Coremail.yuzibode@126.com">35d0bb5e.45d.152e243ba6a.Coremail.yuzibode@126.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;gbk&quot;<br>
<br>
Hi,<br>
I just have checkouted origin/staging-testing and git rebase first-patch.Now,<br>
=============git command &amp;&amp; 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 -&gt; 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>
&gt;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 -&gt; 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?&quot;Roger H Newell&quot; &lt;<a href="mailto:newell.roger@gmail.com">newell.roger@gmail.com</a>&gt; ???<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, &quot;YU Bo&quot; &lt;<a href="mailto:yuzibode@126.com">yuzibode@126.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt; Some days ago i followed the tips:<br>
&gt; <a href="http://kernelnewbies.org/FirstKernelPatch" rel="noreferrer" target="_blank">http://kernelnewbies.org/FirstKernelPatch</a><br>
&gt; git clone greg&#39;s git tree and built branch first-patch.<br>
&gt; Due to my first patch that fixes coding style reported<br>
&gt; by <a href="http://checkptch.pl" rel="noreferrer" target="_blank">checkptch.pl</a> didn&#39;t applied,so i intend to rebase my<br>
&gt; git branch first-patch.The question i encounter is:<br>
&gt; ==================git command &amp;&amp; output========<br>
&gt; yubo@debian:~/maintree/staging$  git rebase first-patch<br>
&gt; It looks like git-am is in progress. Cannot rebase.<br>
&gt; yubo@debian:~/maintree/staging$ git am --abort<br>
&gt; You seem to have moved HEAD since the last &#39;am&#39; failure.<br>
&gt; Not rewinding to ORIG_HEAD<br>
&gt; yubo@debian:~/maintree/staging$ git rebase first-patch<br>
&gt; First, rewinding head to replay your work on top of it...<br>
&gt; Applying: ovl: default permissions<br>
&gt; Using index info to reconstruct a base tree...<br>
&gt; Falling back to patching base and 3-way merge...<br>
&gt; ----<br>
&gt; Auto-merging drivers/gpu/drm/i915/intel_display.c<br>
&gt; CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/intel_display.c<br>
&gt; Failed to merge in the changes.<br>
&gt; Patch failed at 0010 drm/i915: Only run commit when crtc is active, v2.<br>
&gt;<br>
&gt; Is there  something with wrong?<br>
&gt; Thanks in advance for the noisy.<br>
&gt; --<br>
&gt; Best Regards<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Kernelnewbies mailing list<br>
&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
&gt;<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>