<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvidia-tegra-modules.git/drivers/devfreq/governor_wmark_active.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>devfreq: wmark: active: set interrupt_driven</title>
<updated>2020-09-25T16:39:57+00:00</updated>
<author>
<name>Ken Chang</name>
<email>kenc@nvidia.com</email>
</author>
<published>2020-09-24T01:28:47+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=b722658b31e1dc622870a9d5f38a8418ef8493ca'/>
<id>b722658b31e1dc622870a9d5f38a8418ef8493ca</id>
<content type='text'>
Set interrupt_driven to 1 thus cancel_delayed_work_sync() won't be
called in devfreq_monitor_suspend() when handling DEVFREQ_GOV_SUSPEND
event. This will avoid below warning prints when runtime PM is enabled.

[ 22.121071] INFO: trying to register non-static key.
[ 22.126030] the code is fine but needs lockdep annotation.
[ 22.131501] turning off the locking correctness validator.

The backstrace:
[    9.322855] [&lt;ffffff80080d3b04&gt;] flush_work+0x1fc/0x208
[    9.322858] [&lt;ffffff80080d5180&gt;] __cancel_work_timer+0xa0/0x188
[    9.322862] [&lt;ffffff80080d52bc&gt;] cancel_delayed_work_sync+0x24/0x30
[    9.322867] [&lt;ffffff8008ce1da4&gt;] devfreq_monitor_suspend+0x4c/0x80
[    9.322871] [&lt;ffffff8008ce6d7c&gt;] devfreq_watermark_event_handler+0x3b4/0x458
[    9.322874] [&lt;ffffff8008ce1d20&gt;] devfreq_suspend_device+0x60/0x98
[    9.322878] [&lt;ffffff800852dad4&gt;] nvhost_module_runtime_suspend+0x64/0x160
[    9.322883] [&lt;ffffff800878dc64&gt;] pm_generic_runtime_suspend+0x3c/0x58
[    9.322887] [&lt;ffffff800879e478&gt;] genpd_runtime_suspend+0x98/0x230
[    9.322890] [&lt;ffffff8008790004&gt;] __rpm_callback+0x74/0xa0
[    9.322893] [&lt;ffffff8008790064&gt;] rpm_callback+0x34/0x98
[    9.322896] [&lt;ffffff80087906c8&gt;] rpm_suspend+0x100/0x5f0
[    9.322899] [&lt;ffffff80087921d0&gt;] pm_runtime_work+0x80/0xb8
[    9.322902] [&lt;ffffff80080d4054&gt;] process_one_work+0x1e4/0x4b0
[    9.322904] [&lt;ffffff80080d4370&gt;] worker_thread+0x50/0x4c8
[    9.322908] [&lt;ffffff80080daffc&gt;] kthread+0xec/0xf0
[    9.322911] [&lt;ffffff80080838a0&gt;] ret_from_fork+0x10/0x30

Bug 3128395

Change-Id: I15116cd452a062620c01e91f71eecba7d68cde17
Signed-off-by: Ken Chang &lt;kenc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2418831
Reviewed-by: automaticguardword &lt;automaticguardword@nvidia.com&gt;
Reviewed-by: Aaron Tian &lt;atian@nvidia.com&gt;
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Set interrupt_driven to 1 thus cancel_delayed_work_sync() won't be
called in devfreq_monitor_suspend() when handling DEVFREQ_GOV_SUSPEND
event. This will avoid below warning prints when runtime PM is enabled.

[ 22.121071] INFO: trying to register non-static key.
[ 22.126030] the code is fine but needs lockdep annotation.
[ 22.131501] turning off the locking correctness validator.

The backstrace:
[    9.322855] [&lt;ffffff80080d3b04&gt;] flush_work+0x1fc/0x208
[    9.322858] [&lt;ffffff80080d5180&gt;] __cancel_work_timer+0xa0/0x188
[    9.322862] [&lt;ffffff80080d52bc&gt;] cancel_delayed_work_sync+0x24/0x30
[    9.322867] [&lt;ffffff8008ce1da4&gt;] devfreq_monitor_suspend+0x4c/0x80
[    9.322871] [&lt;ffffff8008ce6d7c&gt;] devfreq_watermark_event_handler+0x3b4/0x458
[    9.322874] [&lt;ffffff8008ce1d20&gt;] devfreq_suspend_device+0x60/0x98
[    9.322878] [&lt;ffffff800852dad4&gt;] nvhost_module_runtime_suspend+0x64/0x160
[    9.322883] [&lt;ffffff800878dc64&gt;] pm_generic_runtime_suspend+0x3c/0x58
[    9.322887] [&lt;ffffff800879e478&gt;] genpd_runtime_suspend+0x98/0x230
[    9.322890] [&lt;ffffff8008790004&gt;] __rpm_callback+0x74/0xa0
[    9.322893] [&lt;ffffff8008790064&gt;] rpm_callback+0x34/0x98
[    9.322896] [&lt;ffffff80087906c8&gt;] rpm_suspend+0x100/0x5f0
[    9.322899] [&lt;ffffff80087921d0&gt;] pm_runtime_work+0x80/0xb8
[    9.322902] [&lt;ffffff80080d4054&gt;] process_one_work+0x1e4/0x4b0
[    9.322904] [&lt;ffffff80080d4370&gt;] worker_thread+0x50/0x4c8
[    9.322908] [&lt;ffffff80080daffc&gt;] kthread+0xec/0xf0
[    9.322911] [&lt;ffffff80080838a0&gt;] ret_from_fork+0x10/0x30

Bug 3128395

Change-Id: I15116cd452a062620c01e91f71eecba7d68cde17
Signed-off-by: Ken Chang &lt;kenc@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2418831
Reviewed-by: automaticguardword &lt;automaticguardword@nvidia.com&gt;
Reviewed-by: Aaron Tian &lt;atian@nvidia.com&gt;
Reviewed-by: Bibek Basu &lt;bbasu@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>devfreq: wmark: active: config params by sysfs</title>
<updated>2020-01-03T14:39:22+00:00</updated>
<author>
<name>Aaron Tian</name>
<email>atian@nvidia.com</email>
</author>
<published>2019-12-23T03:28:10+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=6d2e734e3b1a3d951a7b934c869c91f99dc3f2f7'/>
<id>6d2e734e3b1a3d951a7b934c869c91f99dc3f2f7</id>
<content type='text'>
Configure governor parameters through sysfs instead of
debugfs, add add spinlock for concurrency protection.

Bug 200501949

Change-Id: I0131e6ab0d3befe380ef4774eb4d6193d2266011
Signed-off-by: Aaron Tian &lt;atian@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2267338
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mikko Perttunen &lt;mperttunen@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>
Configure governor parameters through sysfs instead of
debugfs, add add spinlock for concurrency protection.

Bug 200501949

Change-Id: I0131e6ab0d3befe380ef4774eb4d6193d2266011
Signed-off-by: Aaron Tian &lt;atian@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2267338
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mikko Perttunen &lt;mperttunen@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>devfreq: wmark: active: introduce freq_boost_en knob</title>
<updated>2019-12-12T03:55:59+00:00</updated>
<author>
<name>Aaron Tian</name>
<email>atian@nvidia.com</email>
</author>
<published>2019-12-04T10:07:47+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=30c0d8332a9a36f88c4ba809b94cf5b0669e9b55'/>
<id>30c0d8332a9a36f88c4ba809b94cf5b0669e9b55</id>
<content type='text'>
There is a freq. boost mechanism in wmark_active governor,
when current loading exceed load_max, directly set target
freq. to fmax.

Introduce 'freq_boost_en' knob to support enable/disable
freq. boost. If performance does not regressed, freq. boost
can be disabled to let DFS smoothly and save power.

Bug 200501949

Change-Id: I6ec7b7079a22a8d974743d766cfd0cc7d0e2dcd4
Signed-off-by: Aaron Tian &lt;atian@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2255082
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mikko Perttunen &lt;mperttunen@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>
There is a freq. boost mechanism in wmark_active governor,
when current loading exceed load_max, directly set target
freq. to fmax.

Introduce 'freq_boost_en' knob to support enable/disable
freq. boost. If performance does not regressed, freq. boost
can be disabled to let DFS smoothly and save power.

Bug 200501949

Change-Id: I6ec7b7079a22a8d974743d766cfd0cc7d0e2dcd4
Signed-off-by: Aaron Tian &lt;atian@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2255082
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mikko Perttunen &lt;mperttunen@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>video: tegra: host: update T186 VIC actmon driver</title>
<updated>2019-10-10T20:41:15+00:00</updated>
<author>
<name>Aaron Tian</name>
<email>atian@nvidia.com</email>
</author>
<published>2019-09-18T09:13: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=d6c7740ea2ddd9d5087d938e9ee3b3bc2c9b6d0a'/>
<id>d6c7740ea2ddd9d5087d938e9ee3b3bc2c9b6d0a</id>
<content type='text'>
Modify T186/T210 VIC actmon driver and wmark_active governor
to address the following issues:

1. To let VIC actmon reports accurate VIC active
   cycle counts, set static WEIGHT_COUNT in both
   VIC actmon and VIC IP block. It ensures
   VIC actmon can capture all activity signal
   toggle event from VIC.

   The value of WEIGHT_COUNT are equal to:

   4 * (max VIC freq / VIC_actmon freq)
       = 4 * (1024 / 19.2)
      ~= 213

2. Since VIC actmon reports active "VIC clock
   cycle" instead of "VIC actmon clock cycle",
   "relative loading translation" should consider
   current VIC clock freq.

   E.g.,
     - sample_period = 80 us, VIC freq = 115.2 Mhz
     - 9216 cycles represents 100% loading
       (115.2 * 80)

3. Update upper/lower wmark settings after VIC
   clock scaled completed, to ensure wmark settings
   are equil to 0 ~ 100% loading of current freq.
   - Register 'get_dev_status' instance in
     devfreq_dev_profile, to let wmark active
     governor can query current device freq.
   - Register devfreq transition notifier in
     wmark_active governor. It will query current
     device freq. and update corresponding wmark
     value after VIC freq. changed.

Bug 200501949

Change-Id: Ic159eb93fddc37d55b0c9649a3afcb50ed82cac2
Signed-off-by: Aaron Tian &lt;atian@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2200520
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen &lt;amerilainen@nvidia.com&gt;
Reviewed-by: Mikko Perttunen &lt;mperttunen@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>
Modify T186/T210 VIC actmon driver and wmark_active governor
to address the following issues:

1. To let VIC actmon reports accurate VIC active
   cycle counts, set static WEIGHT_COUNT in both
   VIC actmon and VIC IP block. It ensures
   VIC actmon can capture all activity signal
   toggle event from VIC.

   The value of WEIGHT_COUNT are equal to:

   4 * (max VIC freq / VIC_actmon freq)
       = 4 * (1024 / 19.2)
      ~= 213

2. Since VIC actmon reports active "VIC clock
   cycle" instead of "VIC actmon clock cycle",
   "relative loading translation" should consider
   current VIC clock freq.

   E.g.,
     - sample_period = 80 us, VIC freq = 115.2 Mhz
     - 9216 cycles represents 100% loading
       (115.2 * 80)

3. Update upper/lower wmark settings after VIC
   clock scaled completed, to ensure wmark settings
   are equil to 0 ~ 100% loading of current freq.
   - Register 'get_dev_status' instance in
     devfreq_dev_profile, to let wmark active
     governor can query current device freq.
   - Register devfreq transition notifier in
     wmark_active governor. It will query current
     device freq. and update corresponding wmark
     value after VIC freq. changed.

Bug 200501949

Change-Id: Ic159eb93fddc37d55b0c9649a3afcb50ed82cac2
Signed-off-by: Aaron Tian &lt;atian@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/2200520
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen &lt;amerilainen@nvidia.com&gt;
Reviewed-by: Mikko Perttunen &lt;mperttunen@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>devfreq: wmark: active: add GPL module license</title>
<updated>2018-07-05T16:59:13+00:00</updated>
<author>
<name>Joseph Lo</name>
<email>josephl@nvidia.com</email>
</author>
<published>2017-05-10T07:33: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=4eaf77da28b1f2e79217201ec08b202a6b1324fe'/>
<id>4eaf77da28b1f2e79217201ec08b202a6b1324fe</id>
<content type='text'>
Add GPL module license to able to use the symbols that are exported by
"EXPORT_SYMBOL_GPL".

Bug 200299507

Change-Id: I127507b86392ebc20f5d04a747c528e788d87294
Signed-off-by: Joseph Lo &lt;josephl@nvidia.com&gt;
Reviewed-on: http://git-master/r/1478916
Reviewed-on: https://git-master.nvidia.com/r/1551729
(cherry picked from linux-4.9 commit aa85b2d73b55496faabf0deae896d021bda7d8c8)
Reviewed-on: https://git-master.nvidia.com/r/1770154
Reviewed-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>
Add GPL module license to able to use the symbols that are exported by
"EXPORT_SYMBOL_GPL".

Bug 200299507

Change-Id: I127507b86392ebc20f5d04a747c528e788d87294
Signed-off-by: Joseph Lo &lt;josephl@nvidia.com&gt;
Reviewed-on: http://git-master/r/1478916
Reviewed-on: https://git-master.nvidia.com/r/1551729
(cherry picked from linux-4.9 commit aa85b2d73b55496faabf0deae896d021bda7d8c8)
Reviewed-on: https://git-master.nvidia.com/r/1770154
Reviewed-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>Fix include paths for in-tree builds</title>
<updated>2018-07-05T16:59:09+00:00</updated>
<author>
<name>Stephen Warren</name>
<email>swarren@nvidia.com</email>
</author>
<published>2017-08-23T19:58: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=11a2d1a242e4eea5ab534eee3a1eb46f0d15dada'/>
<id>11a2d1a242e4eea5ab534eee3a1eb46f0d15dada</id>
<content type='text'>
Some source files include header files using &lt;&gt; even though the header
file is not in a directory typically in the system include path. This
works when compiling the kernel with an O= option (which stores built
files outside the source tree) because the kernel adds various extra
source paths to the system include path. However, this doesn't happen when
building in-tree, so the source must be fixed to use "" for "local" files.

Similarly, fix one usage of "" where no path was specified in the ""
filename, whereas the header was in a relative directory to the source.
Again, with O= I believe this works because the kernel added the file's
location into the include path, but doesn't for in-tree builds.

Note: Parts of the original commit apply to source that has been moved
to linux-nvidia.git; see change Icf4f94b671e73c0a889bb996edc3f15d5fbde98b
for that part of the original rel-28 change.

Bug 1978388

Change-Id: I907c88a4822b309a33c031ec21dd215047ea3e94
Signed-off-by: Stephen Warren &lt;swarren@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1544318
Reviewed-on: https://git-master.nvidia.com/r/1545674
Reviewed-on: https://git-master.nvidia.com/r/1546976
(cherry picked from linux-4.9 commit cc6281afdbe059734d53f54020f1ead0b5cf3659)
Reviewed-on: https://git-master.nvidia.com/r/1770153
Reviewed-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>
Some source files include header files using &lt;&gt; even though the header
file is not in a directory typically in the system include path. This
works when compiling the kernel with an O= option (which stores built
files outside the source tree) because the kernel adds various extra
source paths to the system include path. However, this doesn't happen when
building in-tree, so the source must be fixed to use "" for "local" files.

Similarly, fix one usage of "" where no path was specified in the ""
filename, whereas the header was in a relative directory to the source.
Again, with O= I believe this works because the kernel added the file's
location into the include path, but doesn't for in-tree builds.

Note: Parts of the original commit apply to source that has been moved
to linux-nvidia.git; see change Icf4f94b671e73c0a889bb996edc3f15d5fbde98b
for that part of the original rel-28 change.

Bug 1978388

Change-Id: I907c88a4822b309a33c031ec21dd215047ea3e94
Signed-off-by: Stephen Warren &lt;swarren@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1544318
Reviewed-on: https://git-master.nvidia.com/r/1545674
Reviewed-on: https://git-master.nvidia.com/r/1546976
(cherry picked from linux-4.9 commit cc6281afdbe059734d53f54020f1ead0b5cf3659)
Reviewed-on: https://git-master.nvidia.com/r/1770153
Reviewed-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>devfreq: wmark: fix compilation on kernel 4.4</title>
<updated>2018-07-05T16:58:36+00:00</updated>
<author>
<name>Mikko Perttunen</name>
<email>mperttunen@nvidia.com</email>
</author>
<published>2016-07-22T10:10:32+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=b6ea6468776a44a70f5ea2db2a3dc8f1180843e1'/>
<id>b6ea6468776a44a70f5ea2db2a3dc8f1180843e1</id>
<content type='text'>
The watermark devfreq governors were not building
on kernel 4.4 due to a missing include of module.h
Add the include.

JIRA HOSTX-50

Change-Id: Ieebf5cd0bf6a0737e501423c1f182de5838f31a3
Signed-off-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
Reviewed-on: http://git-master/r/1189446
(cherry picked from linux-4.9 commit e397f5ebd40c9f5114efdd0f6da7e189e51203a6)
Reviewed-on: https://git-master.nvidia.com/r/1770144
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>
The watermark devfreq governors were not building
on kernel 4.4 due to a missing include of module.h
Add the include.

JIRA HOSTX-50

Change-Id: Ieebf5cd0bf6a0737e501423c1f182de5838f31a3
Signed-off-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
Reviewed-on: http://git-master/r/1189446
(cherry picked from linux-4.9 commit e397f5ebd40c9f5114efdd0f6da7e189e51203a6)
Reviewed-on: https://git-master.nvidia.com/r/1770144
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>devfreq: wmark: active: init average target freq</title>
<updated>2018-07-05T16:58:31+00:00</updated>
<author>
<name>Shridhar Rasal</name>
<email>srasal@nvidia.com</email>
</author>
<published>2016-01-23T10:07:03+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=c00e685106a2f3c2daa9eeb04cc4783c64c4d9ce'/>
<id>c00e685106a2f3c2daa9eeb04cc4783c64c4d9ce</id>
<content type='text'>
- initializes average target freq parameter of active watermark
  governor parameter to current frequency set during start and
  resume from suspend.

Bug 200165367

Change-Id: I56b43ea371c77e95285944433615660400da94ea
Reviewed-on: http://git-master/r/936632
Signed-off-by: Shridhar Rasal &lt;srasal@nvidia.com&gt;
Reviewed-on: http://git-master/r/1160862
(cherry picked from linux-4.9 commit 331b1f92e097209b3afd9ab92fe5337152c604e2)
Reviewed-on: https://git-master.nvidia.com/r/1770143
Reviewed-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>
- initializes average target freq parameter of active watermark
  governor parameter to current frequency set during start and
  resume from suspend.

Bug 200165367

Change-Id: I56b43ea371c77e95285944433615660400da94ea
Reviewed-on: http://git-master/r/936632
Signed-off-by: Shridhar Rasal &lt;srasal@nvidia.com&gt;
Reviewed-on: http://git-master/r/1160862
(cherry picked from linux-4.9 commit 331b1f92e097209b3afd9ab92fe5337152c604e2)
Reviewed-on: https://git-master.nvidia.com/r/1770143
Reviewed-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>devfreq: Improvements watermark active policy</title>
<updated>2018-07-05T16:58:28+00:00</updated>
<author>
<name>Arto Merilainen</name>
<email>amerilainen@nvidia.com</email>
</author>
<published>2015-03-19T12:12: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=559e2351a1cc6d43f1e5af862fcecd67c92d9417'/>
<id>559e2351a1cc6d43f1e5af862fcecd67c92d9417</id>
<content type='text'>
This patch modifies wmark active policy to...
- track average frequency requirement
- not scale too often - there is now 50ms hysteresis.

Bug 1625576

Change-Id: I18afc5249a4821f62a0a58cdccd163e11763c841
Signed-off-by: Arto Merilainen &lt;amerilainen@nvidia.com&gt;
Reviewed-on: http://git-master/r/719594
Reviewed-on: http://git-master/r/1160010
(cherry picked from linux-4.9 commit d451a28402cfee5bf393b44674b4a50a4321a131)
Reviewed-on: https://git-master.nvidia.com/r/1770142
Reviewed-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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 modifies wmark active policy to...
- track average frequency requirement
- not scale too often - there is now 50ms hysteresis.

Bug 1625576

Change-Id: I18afc5249a4821f62a0a58cdccd163e11763c841
Signed-off-by: Arto Merilainen &lt;amerilainen@nvidia.com&gt;
Reviewed-on: http://git-master/r/719594
Reviewed-on: http://git-master/r/1160010
(cherry picked from linux-4.9 commit d451a28402cfee5bf393b44674b4a50a4321a131)
Reviewed-on: https://git-master.nvidia.com/r/1770142
Reviewed-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>devfreq: Improve wmark_active initialization</title>
<updated>2018-07-05T16:58:24+00:00</updated>
<author>
<name>Arto Merilainen</name>
<email>amerilainen@nvidia.com</email>
</author>
<published>2015-04-19T16:05:05+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvidia-tegra-modules.git/commit/?id=0cf8ae932508fa88facd40b15fc146a770ae368e'/>
<id>0cf8ae932508fa88facd40b15fc146a770ae368e</id>
<content type='text'>
The wmark_active governor initialization assumes that the device
frequency is the lowest possible frequency when the governor is
started or resumed. However, this may not be correct if the
governor was suspended/stopped before the clock had been slowed
down.

This patch modifies the governor to read the frequency during
governor initialization and resume.

Change-Id: I38d3256102b344bc8818c5623a015843678a8ce5
Signed-off-by: Arto Merilainen &lt;amerilainen@nvidia.com&gt;
Reviewed-on: http://git-master/r/733007
Reviewed-on: http://git-master/r/1160009
(cherry picked from linux-4.9 commit 32e2561dffc5d7390fa4fd503651da9013403ecb)
Reviewed-on: https://git-master.nvidia.com/r/1770141
Reviewed-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>
The wmark_active governor initialization assumes that the device
frequency is the lowest possible frequency when the governor is
started or resumed. However, this may not be correct if the
governor was suspended/stopped before the clock had been slowed
down.

This patch modifies the governor to read the frequency during
governor initialization and resume.

Change-Id: I38d3256102b344bc8818c5623a015843678a8ce5
Signed-off-by: Arto Merilainen &lt;amerilainen@nvidia.com&gt;
Reviewed-on: http://git-master/r/733007
Reviewed-on: http://git-master/r/1160009
(cherry picked from linux-4.9 commit 32e2561dffc5d7390fa4fd503651da9013403ecb)
Reviewed-on: https://git-master.nvidia.com/r/1770141
Reviewed-by: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho &lt;talho@nvidia.com&gt;
Tested-by: Timo Alho &lt;talho@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>
