Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oKzGi-00024o-CU for mharc-qemu-trivial@gnu.org; Mon, 08 Aug 2022 05:41:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKzGd-000237-TF; Mon, 08 Aug 2022 05:41:48 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:34197) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKzGc-00025g-5O; Mon, 08 Aug 2022 05:41:47 -0400 Received: from [192.168.100.1] ([82.142.8.70]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.103]) with ESMTPSA (Nemesis) id 1M5wc7-1oJaM93RFb-007RuU; Mon, 08 Aug 2022 11:41:34 +0200 Message-ID: Date: Mon, 8 Aug 2022 11:41:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] xlnx_dp: drop unsupported AUXCommand in xlnx_dp_aux_set_command Content-Language: fr To: Qiang Liu , qemu-devel@nongnu.org Cc: Thomas Huth , Alistair Francis , "Edgar E. Iglesias" , Peter Maydell , "open list:Xilinx ZynqMP and..." , "qemu-trivial@nongnu.org" , Frederic Konrad References: <20220808080116.2184881-1-cyruscyliu@gmail.com> From: Laurent Vivier In-Reply-To: <20220808080116.2184881-1-cyruscyliu@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:j1u7grAcY7d0vEyhZXEDTTXfwvEN+hdR+70ar4VUlou1YyOZmvZ 8x6ny1DhoaA9iwxWsXNSN+BwInYm8u9IoV1uluN8xJ6MF73MzaISJY+rBaMW4x/9nZEv7Tk YRqL1fbxhjnHwvh+Mmr701WudEHRxrZHjTyei5uwKymieEtdsuYy/mqdfzl/dKBB74s3GT4 P8NIkuT5IwyVTbO02NF1g== X-UI-Out-Filterresults: notjunk:1;V03:K0:Loh/asGwEqk=:mcQhKeaD/Ergm47r7CRVWY brehe+a7Ox/t3m4OXfpgEAM69pxJQqnX47xnoZQXKZptqBGO5iiAyF8b/Tz3LI2HU9r7Z2igT Yz+xQDy8QpTfWXd2UmdyZ4I+bpY/ZRlZ7v5u3slvySUPSF1T8d//m1wL96tjmnHfe1ZOaIeUB yCH9qZVkJQXA5QuVqgXXc2fS8GtOv/X18pL7GL9vgyCC0VtQuIbFrC4hlRsdl5AYJe8hDJsvA pLrIStvu8kJ1ed0Iy9B3WqIRTw1l7Kb8RRd8Eyt3JPIe5N56yivkcM1LybPNSllktjN/Xlqve d7iOFGRAv5xuU9Q7TvERsCtv+TY4aEROvqeQiLtg+E1jbu8nXTN1cvtYdMHiOXunLomf0axhW UBUhtjWHFoOd0Fm9DXYIgmCi/A1aAmzOfwp0OXVTy2cmvcfglRFmUKXWrDsqnAfKiJC7QKdJa p2Hz2U6sCuwB2eyl+saI/yFDyTtKD1CCTJ9paKAuXaJUUr1RXur0WbWSJLi+l3KCNzYbt37xW ww3dvnhMs8y6lROav13yewfaBlB7axb0BT8qgVVS6brzscmNc6MrW+3kjjiNWv97lPkmz/thv dyiiEQvLY0Fu2162W8g5DBBUj8ZyMfuGTvLl+wn87P8O7R7txxOjbP/E2KCMBe0j/Ma6fwM3U JjHMmHpETdO6lXsGwB8+thge/zsNqcDa02keUTYZB95TQqSyBieWJ/T2OeejzZHr6vKij3Shr kxh65YUz2OXaFgcOAPNFCor/8K84UouV/X8jOQ== Received-SPF: none client-ip=212.227.126.135; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2022 09:41:48 -0000 Le 08/08/2022 à 10:01, Qiang Liu a écrit : > In xlnx_dp_aux_set_command, when the command leads to the default > branch, xlxn-dp will abort and then crash. > > This patch removes this abort and drops this operation. > > Fixes: 58ac482 ("introduce xlnx-dp") > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/411 > Reported-by: Qiang Liu > Tested-by: Qiang Liu > Suggested-by: Thomas Huth > Signed-off-by: Qiang Liu > --- > hw/display/xlnx_dp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c > index a071c81..b0828d6 100644 > --- a/hw/display/xlnx_dp.c > +++ b/hw/display/xlnx_dp.c > @@ -532,8 +532,8 @@ static void xlnx_dp_aux_set_command(XlnxDPState *s, uint32_t value) > qemu_log_mask(LOG_UNIMP, "xlnx_dp: Write i2c status not implemented\n"); > break; > default: > - error_report("%s: invalid command: %u", __func__, cmd); > - abort(); > + qemu_log_mask(LOG_GUEST_ERROR, "%s: invalid command: %u", __func__, cmd); > + return; > } > > s->core_registers[DP_INTERRUPT_SIGNAL_STATE] |= 0x04; Applied to my trivial-patches branch. Thanks, Laurent