Re: [PATCH buf-fix] kernel, range: fix broken mtrr_cleanup(Internet mail)

2013-06-12 Thread 廖生苗
I forget change final_start/final_end to start/end. The old code add empty range in following case: Before mtrr cleanup: 1. got initial MTRR range: 0-3G. 2. MTRR code try to merge 0-1M 3. result is 0-0, 0-3G, total 2 range count After cleanup: 1. got final MTRR range: 0-3G, total 1 range count

Re: [PATCH buf-fix] kernel, range: fix broken mtrr_cleanup

2013-06-09 Thread Yinghai Lu
On Sun, Jun 9, 2013 at 2:42 AM, Shan Wei wrote: > From: Samuel Liao > > > commit fbe06b7bae7c9cf6ab05168fce5ee93b2f4bae7c broken the mtrr_cleanup > due to return incorrect merged range. this patch remove the empty range > by swapping with the last. > > Error messages: > Jun 9 14:06:18 kernel: [

[PATCH buf-fix] kernel, range: fix broken mtrr_cleanup

2013-06-09 Thread Shan Wei
From: Samuel Liao commit fbe06b7bae7c9cf6ab05168fce5ee93b2f4bae7c broken the mtrr_cleanup due to return incorrect merged range. this patch remove the empty range by swapping with the last. Error messages: Jun 9 14:06:18 kernel: [0.00] *BAD*gran_size: 64K chunk_size: 64K num_