Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.126; helo=mga18.intel.com; envelope-from=jae.hyun.yoo@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45Fx8K58xdzDqXr for ; Sat, 1 Jun 2019 06:37:20 +1000 (AEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 May 2019 13:37:18 -0700 X-ExtLoop1: 1 Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.7.153.148]) ([10.7.153.148]) by orsmga007.jf.intel.com with ESMTP; 31 May 2019 13:37:18 -0700 Subject: Re: [PATCH dev-5.1 4/4] media: aspeed: add a workaround to fix a silicon bug (Jae Hyun Yoo) To: xiuzhi <1450335857@qq.com>, openbmc , eajames , joel , andrew References: From: Jae Hyun Yoo Message-ID: <41494d02-452f-5a09-d29e-476c6d4e4085@linux.intel.com> Date: Fri, 31 May 2019 13:37:17 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 May 2019 20:37:23 -0000 On 5/31/2019 4:21 AM, xiuzhi wrote: > Hi  Jae, >    I tested this patch ,it works on 1680*1050,but I found an issue: > > The ikvm webpage will be black screen when you reboot the host after > switching solution between 1680*1050 and 800*600 on chrome browser (my > chrome version is 65). > you can reproduce it: > 1, Set host screen solution to 1680*1050 and save it . ikvm webpage works > 2,Set host screen solution to 800*600 and save it. ikvm webpage works > 3,Reset host screen solution to   1680*1050 and save it, > 4,reboot the host, > 5, the ikvm webpage is black screen when boot to Centos GUI Hi Xiuzhi, Checked that the issue isn't related this patch. Actually, that is caused by the first patch of this patch series. Since the patch removes source buffer allocation before mode detection, remaining allocation logic should be changed accordingly, otherwise it can't allocate buffers and eventually causes the issue. I'll fix the first patch in the next spin. In the meantime, you can apply below quick fix on top of what you tested the issue. Thanks, Jae diff --git a/drivers/media/platform/aspeed-video.c b/drivers/media/platform/aspeed-video.c index c2d4a2e6f20f..034f2f436d76 100644 --- a/drivers/media/platform/aspeed-video.c +++ b/drivers/media/platform/aspeed-video.c @@ -865,20 +865,14 @@ static void aspeed_video_set_resolution(struct aspeed_video *video) size *= 4; - if (size == video->srcs[0].size / 2) { - aspeed_video_write(video, VE_SRC1_ADDR, - video->srcs[0].dma + size); - } else if (size == video->srcs[0].size) { - if (!aspeed_video_alloc_buf(video, &video->srcs[1], size)) - goto err_mem; - - aspeed_video_write(video, VE_SRC1_ADDR, video->srcs[1].dma); - } else { - aspeed_video_free_buf(video, &video->srcs[0]); + if (size != video->srcs[0].size) { + if (video->srcs[0].size) + aspeed_video_free_buf(video, &video->srcs[0]); + if (video->srcs[1].size) + aspeed_video_free_buf(video, &video->srcs[1]); if (!aspeed_video_alloc_buf(video, &video->srcs[0], size)) goto err_mem; - if (!aspeed_video_alloc_buf(video, &video->srcs[1], size)) goto err_mem;