<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in kgdb.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>58d9ceb7 - ARC: pt_regs: create seperate type for ecr</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#58d9ceb7</link>
        <description>ARC: pt_regs: create seperate type for ecrReduces duplication in each ISA specific pt_regsTested-by: kernel test robot &lt;lkp@intel.com&gt;Closes: https://lore.kernel.org/oe-kbuild-all/202308151342.ROQ9Urvv-lkp@intel.comSigned-off-by: Vineet Gupta &lt;vgupta@kernel.org&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Fri, 22 May 2020 00:44:32 +0000</pubDate>
        <dc:creator>Vineet Gupta &lt;vgupta@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>8e97bf39 - ARC: kgdb: add &apos;fallthrough&apos; to prevent a warning</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#8e97bf39</link>
        <description>ARC: kgdb: add &apos;fallthrough&apos; to prevent a warningUse the &apos;fallthrough&apos; macro to document that this switch casedoes indeed fall through to the next case.../arch/arc/kernel/kgdb.c: In function &apos;kgdb_arch_handle_exception&apos;:../arch/arc/kernel/kgdb.c:141:6: warning: this statement may fall through [-Wimplicit-fallthrough=]  141 |   if (kgdb_hex2long(&amp;ptr, &amp;addr))      |      ^../arch/arc/kernel/kgdb.c:144:2: note: here  144 |  case &apos;D&apos;:      |  ^~~~Cc: linux-snps-arc@lists.infradead.orgSigned-off-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;Signed-off-by: Vineet Gupta &lt;vgupta@synopsys.com&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Thu, 22 Apr 2021 05:16:53 +0000</pubDate>
        <dc:creator>Randy Dunlap &lt;rdunlap@infradead.org&gt;</dc:creator>
    </item>
<item>
        <title>d2912cb1 - treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#d2912cb1</link>
        <description>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500Based on 2 normalized pattern(s):  this program is free software you can redistribute it and or modify  it under the terms of the gnu general public license version 2 as  published by the free software foundation  this program is free software you can redistribute it and or modify  it under the terms of the gnu general public license version 2 as  published by the free software foundation #extracted by the scancode license scanner the SPDX license identifier  GPL-2.0-onlyhas been chosen to replace the boilerplate/reference in 4122 file(s).Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;Reviewed-by: Enrico Weigelt &lt;info@metux.net&gt;Reviewed-by: Kate Stewart &lt;kstewart@linuxfoundation.org&gt;Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;Cc: linux-spdx@vger.kernel.orgLink: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.deSigned-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Tue, 04 Jun 2019 08:11:33 +0000</pubDate>
        <dc:creator>Thomas Gleixner &lt;tglx@linutronix.de&gt;</dc:creator>
    </item>
<item>
        <title>cc028297 - kgdb/treewide: constify struct kgdb_arch arch_kgdb_ops</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#cc028297</link>
        <description>kgdb/treewide: constify struct kgdb_arch arch_kgdb_opscheckpatch.pl reports the following:  WARNING: struct kgdb_arch should normally be const  #28: FILE: arch/mips/kernel/kgdb.c:397:  +struct kgdb_arch arch_kgdb_ops = {This report makes sense, as all other ops struct, thisone should also be const. This patch does the change.Cc: Vineet Gupta &lt;vgupta@synopsys.com&gt;Cc: Russell King &lt;linux@armlinux.org.uk&gt;Cc: Catalin Marinas &lt;catalin.marinas@arm.com&gt;Cc: Will Deacon &lt;will.deacon@arm.com&gt;Cc: Yoshinori Sato &lt;ysato@users.sourceforge.jp&gt;Cc: Richard Kuo &lt;rkuo@codeaurora.org&gt;Cc: Michal Simek &lt;monstr@monstr.eu&gt;Cc: Ralf Baechle &lt;ralf@linux-mips.org&gt;Cc: Paul Burton &lt;paul.burton@mips.com&gt;Cc: James Hogan &lt;jhogan@kernel.org&gt;Cc: Ley Foon Tan &lt;lftan@altera.com&gt;Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;Cc: Paul Mackerras &lt;paulus@samba.org&gt;Cc: Michael Ellerman &lt;mpe@ellerman.id.au&gt;Cc: Rich Felker &lt;dalias@libc.org&gt;Cc: &quot;David S. Miller&quot; &lt;davem@davemloft.net&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Cc: Ingo Molnar &lt;mingo@redhat.com&gt;Cc: Borislav Petkov &lt;bp@alien8.de&gt;Cc: x86@kernel.orgAcked-by: Daniel Thompson &lt;daniel.thompson@linaro.org&gt;Acked-by: Paul Burton &lt;paul.burton@mips.com&gt;Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;Acked-by: Borislav Petkov &lt;bp@suse.de&gt;Acked-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt; (powerpc)Signed-off-by: Daniel Thompson &lt;daniel.thompson@linaro.org&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Thu, 06 Dec 2018 20:07:40 +0000</pubDate>
        <dc:creator>Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;</dc:creator>
    </item>
<item>
        <title>3cd99ac3 - kgdb: Fix kgdb_roundup_cpus() for arches who used smp_call_function()</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#3cd99ac3</link>
        <description>kgdb: Fix kgdb_roundup_cpus() for arches who used smp_call_function()When I had lockdep turned on and dropped into kgdb I got a nice splaton my system.  Specifically it hit:  DEBUG_LOCKS_WARN_ON(current-&gt;hardirq_context)Specifically it looked like this:  sysrq: SysRq : DEBUG  ------------[ cut here ]------------  DEBUG_LOCKS_WARN_ON(current-&gt;hardirq_context)  WARNING: CPU: 0 PID: 0 at .../kernel/locking/lockdep.c:2875 lockdep_hardirqs_on+0xf0/0x160  CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.0 #27  pstate: 604003c9 (nZCv DAIF +PAN -UAO)  pc : lockdep_hardirqs_on+0xf0/0x160  ...  Call trace:   lockdep_hardirqs_on+0xf0/0x160   trace_hardirqs_on+0x188/0x1ac   kgdb_roundup_cpus+0x14/0x3c   kgdb_cpu_enter+0x53c/0x5cc   kgdb_handle_exception+0x180/0x1d4   kgdb_compiled_brk_fn+0x30/0x3c   brk_handler+0x134/0x178   do_debug_exception+0xfc/0x178   el1_dbg+0x18/0x78   kgdb_breakpoint+0x34/0x58   sysrq_handle_dbg+0x54/0x5c   __handle_sysrq+0x114/0x21c   handle_sysrq+0x30/0x3c   qcom_geni_serial_isr+0x2dc/0x30c  ...  ...  irq event stamp: ...45  hardirqs last  enabled at (...44): [...] __do_softirq+0xd8/0x4e4  hardirqs last disabled at (...45): [...] el1_irq+0x74/0x130  softirqs last  enabled at (...42): [...] _local_bh_enable+0x2c/0x34  softirqs last disabled at (...43): [...] irq_exit+0xa8/0x100  ---[ end trace adf21f830c46e638 ]---Looking closely at it, it seems like a really bad idea to be callinglocal_irq_enable() in kgdb_roundup_cpus().  If nothing else that seemslike it could violate spinlock semantics and cause a deadlock.Instead, let&apos;s use a private csd alongsidesmp_call_function_single_async() to round up the other CPUs.  Usingsmp_call_function_single_async() doesn&apos;t require interrupts to beenabled so we can remove the offending bit of code.In order to avoid duplicating this across all the architectures thatuse the default kgdb_roundup_cpus(), we&apos;ll add a &quot;weak&quot; implementationto debug_core.c.Looking at all the people who previously had copies of this code,there were a few variants.  I&apos;ve attempted to keep the variantsworking like they used to.  Specifically:* For arch/arc we passed NULL to kgdb_nmicallback() instead of  get_irq_regs().* For arch/mips there was a bit of extra code around  kgdb_nmicallback()NOTE: In this patch we will still get into trouble if we try to roundup a CPU that failed to round up before.  We&apos;ll try to round it upagain and potentially hang when we try to grab the csd lock.  That&apos;snot new behavior but we&apos;ll still try to do better in a future patch.Suggested-by: Daniel Thompson &lt;daniel.thompson@linaro.org&gt;Signed-off-by: Douglas Anderson &lt;dianders@chromium.org&gt;Cc: Vineet Gupta &lt;vgupta@synopsys.com&gt;Cc: Russell King &lt;linux@armlinux.org.uk&gt;Cc: Catalin Marinas &lt;catalin.marinas@arm.com&gt;Cc: Will Deacon &lt;will.deacon@arm.com&gt;Cc: Richard Kuo &lt;rkuo@codeaurora.org&gt;Cc: Ralf Baechle &lt;ralf@linux-mips.org&gt;Cc: Paul Burton &lt;paul.burton@mips.com&gt;Cc: James Hogan &lt;jhogan@kernel.org&gt;Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;Cc: Paul Mackerras &lt;paulus@samba.org&gt;Cc: Michael Ellerman &lt;mpe@ellerman.id.au&gt;Cc: Yoshinori Sato &lt;ysato@users.sourceforge.jp&gt;Cc: Rich Felker &lt;dalias@libc.org&gt;Cc: &quot;David S. Miller&quot; &lt;davem@davemloft.net&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Cc: Ingo Molnar &lt;mingo@redhat.com&gt;Cc: Borislav Petkov &lt;bp@alien8.de&gt;Cc: &quot;H. Peter Anvin&quot; &lt;hpa@zytor.com&gt;Acked-by: Will Deacon &lt;will.deacon@arm.com&gt;Signed-off-by: Daniel Thompson &lt;daniel.thompson@linaro.org&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Wed, 05 Dec 2018 03:38:26 +0000</pubDate>
        <dc:creator>Douglas Anderson &lt;dianders@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>9ef7fa50 - kgdb: Remove irq flags from roundup</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#9ef7fa50</link>
        <description>kgdb: Remove irq flags from roundupThe function kgdb_roundup_cpus() was passed a parameter that wasdocumented as:&gt; the flags that will be used when restoring the interrupts. There is&gt; local_irq_save() call before kgdb_roundup_cpus().Nobody used those flags.  Anyone who wanted to temporarily turn oninterrupts just did local_irq_enable() and local_irq_disable() withoutlooking at them.  So we can definitely remove the flags.Signed-off-by: Douglas Anderson &lt;dianders@chromium.org&gt;Cc: Vineet Gupta &lt;vgupta@synopsys.com&gt;Cc: Russell King &lt;linux@armlinux.org.uk&gt;Cc: Catalin Marinas &lt;catalin.marinas@arm.com&gt;Cc: Will Deacon &lt;will.deacon@arm.com&gt;Cc: Richard Kuo &lt;rkuo@codeaurora.org&gt;Cc: Ralf Baechle &lt;ralf@linux-mips.org&gt;Cc: Paul Burton &lt;paul.burton@mips.com&gt;Cc: James Hogan &lt;jhogan@kernel.org&gt;Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;Cc: Paul Mackerras &lt;paulus@samba.org&gt;Cc: Michael Ellerman &lt;mpe@ellerman.id.au&gt;Cc: Yoshinori Sato &lt;ysato@users.sourceforge.jp&gt;Cc: Rich Felker &lt;dalias@libc.org&gt;Cc: &quot;David S. Miller&quot; &lt;davem@davemloft.net&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Cc: Ingo Molnar &lt;mingo@redhat.com&gt;Cc: Borislav Petkov &lt;bp@alien8.de&gt;Cc: &quot;H. Peter Anvin&quot; &lt;hpa@zytor.com&gt;Acked-by: Will Deacon &lt;will.deacon@arm.com&gt;Signed-off-by: Daniel Thompson &lt;daniel.thompson@linaro.org&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Wed, 05 Dec 2018 03:38:25 +0000</pubDate>
        <dc:creator>Douglas Anderson &lt;dianders@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>68db0cf1 - sched/headers: Prepare for new header dependencies before moving code to &lt;linux/sched/task_stack.h&gt;</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#68db0cf1</link>
        <description>sched/headers: Prepare for new header dependencies before moving code to &lt;linux/sched/task_stack.h&gt;We are going to split &lt;linux/sched/task_stack.h&gt; out of &lt;linux/sched.h&gt;, whichwill have to be picked up from other headers and a couple of .c files.Create a trivial placeholder &lt;linux/sched/task_stack.h&gt; file that justmaps to &lt;linux/sched.h&gt; to make this patch obviously correct andbisectable.Include the new header in the files that are going to need it.Acked-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;Cc: Mike Galbraith &lt;efault@gmx.de&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Cc: linux-kernel@vger.kernel.orgSigned-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Wed, 08 Feb 2017 17:51:37 +0000</pubDate>
        <dc:creator>Ingo Molnar &lt;mingo@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>4fbf81ca - ARC: kgdb: generic kgdb_arch_pc() suffices</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#4fbf81ca</link>
        <description>ARC: kgdb: generic kgdb_arch_pc() sufficesThe ARC version of kgdb_arch_pc() is identical to the generic version inkernel/debug/debug_core.c.  Drop the ARC version so we use the generic one.Signed-off-by: Vineet Gupta &lt;vgupta@synopsys.com&gt;Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Mon, 20 Oct 2014 16:17:04 +0000</pubDate>
        <dc:creator>Vineet Gupta &lt;vgupta@synopsys.com&gt;</dc:creator>
    </item>
<item>
        <title>3d01c1ce - arc: kgdb: add default implementation for kgdb_roundup_cpus()</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#3d01c1ce</link>
        <description>arc: kgdb: add default implementation for kgdb_roundup_cpus()arc supports kgdb, but need update -- add function kgdb_roundup_cpus(),or can not pass compiling. At present, add the simple generic one justlike other architectures(e.g. tile, mips ...).The related error (with allmodconfig):  kernel/built-in.o: In function `kgdb_cpu_enter&apos;:  kernel/debug/debug_core.c:580: undefined reference to `kgdb_roundup_cpus&apos;Signed-off-by: Chen Gang &lt;gang.chen@asianux.com&gt;Signed-off-by: Vineet Gupta &lt;vgupta@synopsys.com&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Thu, 24 Oct 2013 03:50:09 +0000</pubDate>
        <dc:creator>Chen Gang &lt;gang.chen@asianux.com&gt;</dc:creator>
    </item>
<item>
        <title>38a9ff6d - ARC: Remove explicit passing around of ECR</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#38a9ff6d</link>
        <description>ARC: Remove explicit passing around of ECRWith ECR now part of pt_regs* No need to propagate from lowest asm handlers as arg* No need to save it in tsk-&gt;thread.cause_code* Avoid bit chopping to access the bit-fieldsMore code consolidation, cleanupSigned-off-by: Vineet Gupta &lt;vgupta@synopsys.com&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Wed, 12 Jun 2013 09:43:40 +0000</pubDate>
        <dc:creator>Vineet Gupta &lt;vgupta@synopsys.com&gt;</dc:creator>
    </item>
<item>
        <title>502a0c77 - ARC: pt_regs update #5: Use real ECR for pt_regs-&gt;event vs. synth values</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#502a0c77</link>
        <description>ARC: pt_regs update #5: Use real ECR for pt_regs-&gt;event vs. synth valuespt_regs-&gt;event was set with artificial values to identify the low levelsystem event (syscall trap / breakpoint trap / exceptions / interrupts)With r8 saving out of the way, the full word can be used to save realECR (Exception Cause Register) which helps idenify the event naturally,including additional info such as cause code, param.Only for Interrupts, where ECR is not applicable, do we resort tosynthetic non ECR values.SAVE_ALL_TRAP/EXCEPTIONS can now be merged as they both use ECR withdifferent runtime values.The ptrace helpers now use the sub-fields of ECR to distinguish theevents (e.g. vector 0x25 is trap, param 0 is syscall...)The following benefits will follow:(1) This centralizes the location of where ECR is saved and will allow    the cleanup of task-&gt;thread.cause_code ECR placeholder which is set    in non-uniform way. Then ARC VM code can safely rely on it being    there for purpose of finer grained VM_EXEC dcache flush (based on    exec fault: I-TLB Miss)(2) Further, ECR being passed around from low level handlers as arg can    be eliminated as it is part of standard reg-file in pt_regsSigned-off-by: Vineet Gupta &lt;vgupta@synopsys.com&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Tue, 11 Jun 2013 13:26:54 +0000</pubDate>
        <dc:creator>Vineet Gupta &lt;vgupta@synopsys.com&gt;</dc:creator>
    </item>
<item>
        <title>1540c85b - ARC: make allyesconfig build breakages</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#1540c85b</link>
        <description>ARC: make allyesconfig build breakages  CC      drivers/mmc/host/mmc_spi.odrivers/mmc/host/mmc_spi.c:118: error: redefinition of &apos;struct scratch&apos;make[3]: *** [drivers/mmc/host/mmc_spi.o] Error 1make[2]: *** [drivers/mmc/host] Error 2make[1]: *** [drivers/mmc] Error 2make: *** [drivers] Error 2  CC      arch/arc/kernel/kgdb.oIn file included from include/linux/kgdb.h:20,                 from arch/arc/kernel/kgdb.c:11:/home/vineetg/arc/k.org/arc-port/arch/arc/include/asm/kgdb.h:34:warning: &apos;struct pt_regs&apos; declared inside parameter list/home/vineetg/arc/k.org/arc-port/arch/arc/include/asm/kgdb.h:34:warning: its scope is only this definition or declaration, which isprobably not what you wantarch/arc/kernel/kgdb.c:172: error: conflicting types for &apos;kgdb_trap&apos;  CC      arch/arc/kernel/kgdb.oarch/arc/kernel/kgdb.c: In function &apos;pt_regs_to_gdb_regs&apos;:arch/arc/kernel/kgdb.c:62: error: dereferencing pointer to incompletetypeSigned-off-by: Vineet Gupta &lt;vgupta@synopsys.com&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Thu, 07 Mar 2013 11:17:23 +0000</pubDate>
        <dc:creator>Vineet Gupta &lt;vgupta@synopsys.com&gt;</dc:creator>
    </item>
<item>
        <title>f46121bd - ARC: kgdb support</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arc/kernel/kgdb.c#f46121bd</link>
        <description>ARC: kgdb supportSigned-off-by: Mischa Jonker &lt;mjonker@synopsys.com&gt;Signed-off-by: Vineet Gupta &lt;vgupta@synopsys.com&gt;Cc: Jason Wessel &lt;jason.wessel@windriver.com&gt;Acked-by: Jason Wessel &lt;jason.wessel@windriver.com&gt;

            List of files:
            /linux-6.15/arch/arc/kernel/kgdb.c</description>
        <pubDate>Fri, 18 Jan 2013 09:42:24 +0000</pubDate>
        <dc:creator>Mischa Jonker &lt;mjonker@synopsys.com&gt;</dc:creator>
    </item>
</channel>
</rss>
