3.13.6-stable review
Subsystems (2)
Greg Kroah-Hartman
maintainerPATCH 171/172 drm/i915/dp: increase native aux defer retry timeout
In reply to Greg Kroah-Hartman3.13-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jani Nikula <[email protected]>
commit 04eada25d1f72efdecd32d702706594f81de65d5 upstream.
Give more slack to sink devices before retrying on native aux defer. AFAICT the 100 us timeout was not based on the DP spec.
--- drivers/gpu/drm/i915/intel_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +2 -2
@@ -555,7 +555,7 @@ intel_dp_aux_native_write(struct intel_dif ((ack &AUX_NATIVE_REPLY_MASK ) ==AUX_NATIVE_REPLY_ACK )break ;else if ((ack &AUX_NATIVE_REPLY_MASK ) ==AUX_NATIVE_REPLY_DEFER ) -udelay (100 ); +usleep_range (400 ,500 );else return -EIO ; }
@@ -607,7 +607,7 @@ intel_dp_aux_native_read(struct intel_dpreturn ret -1 ; }else if ((ack &AUX_NATIVE_REPLY_MASK ) ==AUX_NATIVE_REPLY_DEFER ) -udelay (100 ); +usleep_range (400 ,500 );else return -EIO ; }
Greg Kroah-Hartman
maintainerPATCH 172/172 drm/i915/dp: add native aux defer retry limit
In reply to Greg Kroah-Hartman3.13-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jani Nikula <[email protected]>
commit f51a44b9a6c4982cc25bfb3727de9bb893621ebc upstream.
Retrying indefinitely places too much trust on the aux implementation of the sink devices.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71267
--- drivers/gpu/drm/i915/intel_dp.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +11 -4
@@ -537,6 +537,7 @@ intel_dp_aux_native_write(struct intel_duint8_t msg[20 ];int msg_bytes;uint8_t ack; +int retry;if (WARN_ON (send_bytes >16 ))return -E2BIG ;
@@ -548,18 +549,20 @@ intel_dp_aux_native_write(struct intel_d msg[3 ] = send_bytes -1 ;memcpy (&msg[4 ], send, send_bytes); msg_bytes = send_bytes +4 ; -for (;;) { +for (retry =0 ; retry <7 ; retry++) { ret =intel_dp_aux_ch (intel_dp, msg, msg_bytes, &ack,1 );if (ret <0 )return ret;if ((ack &AUX_NATIVE_REPLY_MASK ) ==AUX_NATIVE_REPLY_ACK ) -break ; +return send_bytes;else if ((ack &AUX_NATIVE_REPLY_MASK ) ==AUX_NATIVE_REPLY_DEFER )usleep_range (400 ,500 );else return -EIO ; } -return send_bytes; + +DRM_ERROR ("too many retries, giving up\n" ); +return -EIO ; }/* Write a single byte to the aux channel in native mode */
@@ -581,6 +584,7 @@ intel_dp_aux_native_read(struct intel_dpint reply_bytes;uint8_t ack;int ret; +int retry;if (WARN_ON (recv_bytes >19 ))return -E2BIG ;
@@ -594,7 +598,7 @@ intel_dp_aux_native_read(struct intel_dp msg_bytes =4 ; reply_bytes = recv_bytes +1 ; -for (;;) { +for (retry =0 ; retry <7 ; retry++) { ret =intel_dp_aux_ch (intel_dp, msg, msg_bytes, reply, reply_bytes);if (ret ==0 )
@@ -611,6 +615,9 @@ intel_dp_aux_native_read(struct intel_dpelse return -EIO ; } + +DRM_ERROR ("too many retries, giving up\n" ); +return -EIO ; } static int
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.13.6 release. There are 172 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu Mar 6 20:02:29 UTC 2014. Anything received after that time might be too late.
Build results:
total: 126 pass: 122 skipped: 4 fail: 0
qemu tests all passed.
Results are as expected. Details are available at http://server.roeck-us.net:8010/builders.
Guenter
Greg Kroah-Hartman
maintainerQuoted 10 lines · Guenter Roeck
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.13.6 release. There are 172 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu Mar 6 20:02:29 UTC 2014. Anything received after that time might be too late.
Quoted 6 lines
Build results:
total: 126 pass: 122 skipped: 4 fail: 0qemu tests all passed.
Results are as expected. Details are available at http://server.roeck-us.net:8010/builders.
Thanks for testing both of these and letting me know.
greg k-h
At Tue, 4 Mar 2014 12:01:24 -0800,
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.13.6 release. There are 172 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu Mar 6 20:02:29 UTC 2014. Anything received after that time might be too late.
3.10.33-rc1 and 3.13.6-rc1 passed my test.
- Test Cases:
- Build this kernel.
- Boot this kernel.
- Build the latest mainline kernel with this kernel.
- Test Tool:
https://github.com/satoru-takeuchi/test-linux-stable
- Test Result (kernel .config, ktest config and test log):
http://satoru-takeuchi.org/test-linux-stable/results/<version>-<test datetime>.xz
- Build Environment:
- OS: Debian Jessy x86_64
- CPU: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz x 4
- memory: 8GB
- Test Target Environment:
- Debian Jessy x86_64 (KVM guest on the Build Environment)
- # of vCPU: 2
- memory: 2GB
Thanks,
Satoru
Greg Kroah-Hartman
maintainerQuoted 29 lines · Satoru Takeuchi
At Tue, 4 Mar 2014 12:01:24 -0800,
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.13.6 release. There are 172 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu Mar 6 20:02:29 UTC 2014. Anything received after that time might be too late.
3.10.33-rc1 and 3.13.6-rc1 passed my test.
- Test Cases:
- Build this kernel.
- Boot this kernel.
- Build the latest mainline kernel with this kernel.- Test Tool:
https://github.com/satoru-takeuchi/test-linux-stable- Test Result (kernel .config, ktest config and test log):
http://satoru-takeuchi.org/test-linux-stable/results/<version>-<test datetime>.xz- Build Environment:
- OS: Debian Jessyx86_64
- CPU: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz x 4
- memory: 8GB
Quoted 4 lines
- Test Target Environment:
- Debian Jessyx86_64(KVM guest on the Build Environment)
- # of vCPU: 2
- memory: 2GB
Thanks for testing and letting me know.
gre k-h
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.13.6 release. There are 172 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu Mar 6 20:02:29 UTC 2014. Anything received after that time might be too late.
Quoted 8 lines
The whole patch series can be found in one patch at:
kernel.org/pub/linux/kernel/v3.0/stable-review/patch-3.13.6-rc1.gzand the diffstat can be found below.
thanks,
greg k-h
Compile tests and boot tests passed. No dmesg regressions: emerg, crit, alert, err are clean. No regressions in warn.
-- Shuah
Signature · 4 lines
Shuah Khan Senior Linux Kernel Developer - Open Source Group Samsung Research America(Silicon Valley) [email protected] | (970) 672-0658
Greg Kroah-Hartman
maintainerQuoted 13 lines · Shuah Khan
Quoted 12 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.13.6 release. There are 172 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu Mar 6 20:02:29 UTC 2014. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
kernel.org/pub/linux/kernel/v3.0/stable-review/patch-3.13.6-rc1.gzand the diffstat can be found below.
Quoted 7 lines
Quoted 4 lines
thanks,
greg k-h
Compile tests and boot tests passed. No dmesg regressions: emerg, crit, alert, err are clean. No regressions in warn.
Thanks for testing both of these.
greg k-h