<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvidia-tegra-modules.git/drivers/platform/tegra/tegra_fiq_debugger.c, branch rtss22-ae</title>
<subtitle>NVIDIA's kernel modules to support tegra chips (used in Jetson boards)</subtitle>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/'/>
<entry>
<title>platform: tegra: add support combined UART for fiq_enable()</title>
<updated>2018-06-23T17:23:03+00:00</updated>
<author>
<name>steven kao</name>
<email>skao@nvidia.com</email>
</author>
<published>2017-12-30T00:59:06+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=583e4a363d7bdf4769f7168b0f5eadd38cf5ed72'/>
<id>583e4a363d7bdf4769f7168b0f5eadd38cf5ed72</id>
<content type='text'>
This patch adds combined UART support for fiq_enable().
Must add "console-port" &amp; "combined-uart" into combined-uart node. That
for tegra_fiq_debugger to know using combined uart.

combined-uart {
	console-port;
	combined-uart;
	status = "okay";
};

Bug 2041165

[ The cherry-pick also fixes errors/warnings reported by checkpatch:
    WARNING: line over 80 characters
    #60: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:143:
    +#define CONSOLE_WRITE (CONSOLE_RING_DOORBELL | CONSOLE_FLUSH_DATA_TO_PORT)

    WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
    #70: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:153:
    +	unsigned val;

    ERROR: space required before the open parenthesis '('
    #73: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:156:
    +	while(__raw_readl(t-&gt;debug_port_base) &amp; CONSOLE_IS_BUSY);

    ERROR: trailing statements should be on next line
    #73: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:156:
    +	while(__raw_readl(t-&gt;debug_port_base) &amp; CONSOLE_IS_BUSY);

    WARNING: line over 80 characters
    #80: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:163:
    +static void combined_fiq_enable(struct platform_device *pdev...
]

Bug 200416212

Change-Id: Ia1acec1b72d37c33f50cdc934475a874889d404a
Signed-off-by: steven kao &lt;skao@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1628667
(cherry picked from commit 068216f17ff010369b6f07778cdeeca012a5e149)
Signed-off-by: Nicolin Chen &lt;nicolinc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1750502
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds combined UART support for fiq_enable().
Must add "console-port" &amp; "combined-uart" into combined-uart node. That
for tegra_fiq_debugger to know using combined uart.

combined-uart {
	console-port;
	combined-uart;
	status = "okay";
};

Bug 2041165

[ The cherry-pick also fixes errors/warnings reported by checkpatch:
    WARNING: line over 80 characters
    #60: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:143:
    +#define CONSOLE_WRITE (CONSOLE_RING_DOORBELL | CONSOLE_FLUSH_DATA_TO_PORT)

    WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
    #70: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:153:
    +	unsigned val;

    ERROR: space required before the open parenthesis '('
    #73: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:156:
    +	while(__raw_readl(t-&gt;debug_port_base) &amp; CONSOLE_IS_BUSY);

    ERROR: trailing statements should be on next line
    #73: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:156:
    +	while(__raw_readl(t-&gt;debug_port_base) &amp; CONSOLE_IS_BUSY);

    WARNING: line over 80 characters
    #80: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:163:
    +static void combined_fiq_enable(struct platform_device *pdev...
]

Bug 200416212

Change-Id: Ia1acec1b72d37c33f50cdc934475a874889d404a
Signed-off-by: steven kao &lt;skao@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1628667
(cherry picked from commit 068216f17ff010369b6f07778cdeeca012a5e149)
Signed-off-by: Nicolin Chen &lt;nicolinc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1750502
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: platform: enumerate fiq_debugger device</title>
<updated>2018-06-23T17:23:00+00:00</updated>
<author>
<name>Varun Wadekar</name>
<email>vwadekar@nvidia.com</email>
</author>
<published>2016-07-26T22:45:04+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=e2801c997c7d7ed682c67335eb1a1ac922c92551'/>
<id>e2801c997c7d7ed682c67335eb1a1ac922c92551</id>
<content type='text'>
This patch enumerates the fiq_debugger device during boot to
start the fiq debugger driver's init process.

Bug 1928108

[ The cherry-pick also fixes below warnings reported by checkpatch:
    WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
    #43: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:235:
    +	unsigned uartbase = 0;

    WARNING: 'cound' may be misspelled - perhaps 'could'?
    #82: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:274:
    +		pr_err("%s: cound not find interrupt for FIQ\n", __func__);
]

Bug 200416212

Change-Id: Iab523e4b1732ff65efa4403ccdcc8ad20067c79d
(cherry picked from commit 38ff9fd63bfaeba60a7835d2b93e424637a798e6)
Signed-off-by: Harvey Hsieh &lt;hhsieh@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1554659
(cherry picked from commit 8b9c5eaba086f597ee1f06262066b1d21b3097e6)
Signed-off-by: Nicolin Chen &lt;nicolinc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1750501
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch enumerates the fiq_debugger device during boot to
start the fiq debugger driver's init process.

Bug 1928108

[ The cherry-pick also fixes below warnings reported by checkpatch:
    WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
    #43: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:235:
    +	unsigned uartbase = 0;

    WARNING: 'cound' may be misspelled - perhaps 'could'?
    #82: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:274:
    +		pr_err("%s: cound not find interrupt for FIQ\n", __func__);
]

Bug 200416212

Change-Id: Iab523e4b1732ff65efa4403ccdcc8ad20067c79d
(cherry picked from commit 38ff9fd63bfaeba60a7835d2b93e424637a798e6)
Signed-off-by: Harvey Hsieh &lt;hhsieh@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1554659
(cherry picked from commit 8b9c5eaba086f597ee1f06262066b1d21b3097e6)
Signed-off-by: Nicolin Chen &lt;nicolinc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1750501
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>platform: tegra: clean up fiq_enable() implementation</title>
<updated>2018-06-23T17:22:56+00:00</updated>
<author>
<name>Varun Wadekar</name>
<email>vwadekar@nvidia.com</email>
</author>
<published>2016-07-11T23:10:01+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=8ea2ffe955115239a344a85b160ad9c75ccdc371'/>
<id>8ea2ffe955115239a344a85b160ad9c75ccdc371</id>
<content type='text'>
This patch turns fiq_enable() into a stub implementation
as there is no way the linux kernel driver can enable/disable
FIQ interrupts on ARM64 CPUs.

Bug 1928108

Change-Id: Ic1e041a09214b97ef710510a24aa398b247ad59a
(cherry picked from commit 1dd509c774f1f01f1930ecd5ea3fe26839826689)
Signed-off-by: Harvey Hsieh &lt;hhsieh@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1554657
(cherry picked from commit e539903ed476da6754a760357d2cdb1902510c93)
Signed-off-by: Nicolin Chen &lt;nicolinc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1750500
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch turns fiq_enable() into a stub implementation
as there is no way the linux kernel driver can enable/disable
FIQ interrupts on ARM64 CPUs.

Bug 1928108

Change-Id: Ic1e041a09214b97ef710510a24aa398b247ad59a
(cherry picked from commit 1dd509c774f1f01f1930ecd5ea3fe26839826689)
Signed-off-by: Harvey Hsieh &lt;hhsieh@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1554657
(cherry picked from commit e539903ed476da6754a760357d2cdb1902510c93)
Signed-off-by: Nicolin Chen &lt;nicolinc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1750500
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>platform: tegra: Import tegra_fiq_debugger from linux-4.4</title>
<updated>2018-06-23T17:22:52+00:00</updated>
<author>
<name>Mikko Perttunen</name>
<email>mperttunen@nvidia.com</email>
</author>
<published>2016-12-09T13:06:19+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=35ddd45989e46a68a529de51a195b8af04449f05'/>
<id>35ddd45989e46a68a529de51a195b8af04449f05</id>
<content type='text'>
Moving tegra_fiq_debugger driver to nvidia repo.

This is a migration patch from Kernel 4.9. As the original one
commit d2c919e9d698 ("platform: tegra: Import from linux-4.4")
included many other files and drivers while this one only aims
at the tegra_fiq_debugger, so renewing the commit log.

And, since the patch (https://git-master.nvidia.com/r/1554655),
commit b99e994f9bd6 ("platform: tegra: move tegra_fiq_debugger
from mach-tegra"), added its header file, this patch squashes
that one too.

It also fixes warnings reported by checkpatch script:
  WARNING: Missing a blank line after declarations
  #95: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:68:
  +	struct tegra_fiq_debugger *t;
  +	t = container_of(dev_get_platdata(&amp;pdev-&gt;dev), typeof(*t), pdata);

  WARNING: Missing a blank line after declarations
  #111: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:84:
  +	struct tegra_fiq_debugger *t;
  +	t = container_of(dev_get_platdata(&amp;pdev-&gt;dev), typeof(*t), pdata);

  WARNING: Missing a blank line after declarations
  #129: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:102:
  +	struct tegra_fiq_debugger *t;
  +	t = container_of(dev_get_platdata(&amp;pdev-&gt;dev), typeof(*t), pdata);

  WARNING: Missing a blank line after declarations
  #140: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:113:
  +	struct tegra_fiq_debugger *t;
  +	t = container_of(dev_get_platdata(&amp;pdev-&gt;dev), typeof(*t), pdata);

  WARNING: Possible unnecessary 'out of memory' message
  #166: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:139:
  +	if (!t) {
  +		pr_err("Failed to allocate for fiq debugger\n");

  WARNING: Possible unnecessary 'out of memory' message
  #184: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:157:
  +	if (!res) {
  +		pr_err("Failed to alloc fiq debugger resources\n");

  WARNING: Possible unnecessary 'out of memory' message
  #190: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:163:
  +	if (!pdev) {
  +		pr_err("Failed to alloc fiq debugger platform device\n");

Bug 200416212

Change-Id: Iaea87259bcda9c5a2e1a01b03d905debe52aa016
Signed-off-by: Nicolin Chen &lt;nicolinc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1750507
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar &lt;vwadekar@nvidia.com&gt;
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Moving tegra_fiq_debugger driver to nvidia repo.

This is a migration patch from Kernel 4.9. As the original one
commit d2c919e9d698 ("platform: tegra: Import from linux-4.4")
included many other files and drivers while this one only aims
at the tegra_fiq_debugger, so renewing the commit log.

And, since the patch (https://git-master.nvidia.com/r/1554655),
commit b99e994f9bd6 ("platform: tegra: move tegra_fiq_debugger
from mach-tegra"), added its header file, this patch squashes
that one too.

It also fixes warnings reported by checkpatch script:
  WARNING: Missing a blank line after declarations
  #95: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:68:
  +	struct tegra_fiq_debugger *t;
  +	t = container_of(dev_get_platdata(&amp;pdev-&gt;dev), typeof(*t), pdata);

  WARNING: Missing a blank line after declarations
  #111: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:84:
  +	struct tegra_fiq_debugger *t;
  +	t = container_of(dev_get_platdata(&amp;pdev-&gt;dev), typeof(*t), pdata);

  WARNING: Missing a blank line after declarations
  #129: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:102:
  +	struct tegra_fiq_debugger *t;
  +	t = container_of(dev_get_platdata(&amp;pdev-&gt;dev), typeof(*t), pdata);

  WARNING: Missing a blank line after declarations
  #140: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:113:
  +	struct tegra_fiq_debugger *t;
  +	t = container_of(dev_get_platdata(&amp;pdev-&gt;dev), typeof(*t), pdata);

  WARNING: Possible unnecessary 'out of memory' message
  #166: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:139:
  +	if (!t) {
  +		pr_err("Failed to allocate for fiq debugger\n");

  WARNING: Possible unnecessary 'out of memory' message
  #184: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:157:
  +	if (!res) {
  +		pr_err("Failed to alloc fiq debugger resources\n");

  WARNING: Possible unnecessary 'out of memory' message
  #190: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:163:
  +	if (!pdev) {
  +		pr_err("Failed to alloc fiq debugger platform device\n");

Bug 200416212

Change-Id: Iaea87259bcda9c5a2e1a01b03d905debe52aa016
Signed-off-by: Nicolin Chen &lt;nicolinc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1750507
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar &lt;vwadekar@nvidia.com&gt;
Reviewed-by: Sachin Nikam &lt;snikam@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
