From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c0b::22e; helo=mail-it0-x22e.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-it0-x22e.google.com (mail-it0-x22e.google.com [IPv6:2607:f8b0:4001:c0b::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B3EE0222DE14C for ; Mon, 12 Feb 2018 04:16:57 -0800 (PST) Received: by mail-it0-x22e.google.com with SMTP id n206so6261526itg.1 for ; Mon, 12 Feb 2018 04:22:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+40+rKwQWYzDiw4MPdSRmg1slUyd3Qb/tNttF5vk+Q8=; b=MpAfZzWkaAZf7Huxl8fCfMgodEOsaBggRPOV3h70qqt0ohchV1zTJAF9HEpN8yeFNe yv3+kZmZ2sy4GVneUeraBwYMOluX0/1v/3bvamAyui5RO2OJbA4NHcaH3hiT2jwO9jFP RwhEXhcoaCGEXgM6T+vEWv/jazfSQZvHlfxIA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+40+rKwQWYzDiw4MPdSRmg1slUyd3Qb/tNttF5vk+Q8=; b=bbKe6GnKjEjxbasOBKqBPfrz7MXNdO13c06GHZdNKGAXARXPiGETKYkBn3iSslWu6u MiJwLFsj0VCY2Cw1dvyW9Tq0+AY4bza8x8f55Y6SVWtCYm6WbUjcdOgITtA+IqMV5cqI 3ePMNMbgHX3//2De15KpxnTYJFK0GyfUuPL/YCRoerjJys0HNh1MQNBCHlVzajS1kz01 0JwHG+6bPI3ZiLSrKQ3mlOBr1z1WKKo2IbuhnM6yink7xC18+0U8292/KzFrW+9AhXyX AGpBKToggYa9GioCoIl+LDzfSLkskUsCjJxD6pWaUHBxXCI20ak/30X/IVXJAXRfrxxN 1TrA== X-Gm-Message-State: APf1xPA7vJ5x9jf/Ubn/BhMWbNGIt51iJcUsPkHosBC4Hea1FWzyGUeH BVoR4LQ6BZiyD2swCt2zynO3sjQpvW5jAxfTWqI59g== X-Google-Smtp-Source: AH8x226I4dBEBNYLuAGruIYlWRhxP718btQKWgJeHWUFP3HVq/s+iLfDD0wdSGoyAQeTXoTJLbzBr2zp8VJtFzFTSfA= X-Received: by 10.36.108.208 with SMTP id w199mr5438772itb.102.1518438166394; Mon, 12 Feb 2018 04:22:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.112.13 with HTTP; Mon, 12 Feb 2018 04:22:45 -0800 (PST) In-Reply-To: References: <1518197467-32526-1-git-send-email-haojian.zhuang@linaro.org> <1518197467-32526-4-git-send-email-haojian.zhuang@linaro.org> <20180212114506.gfu4hfz566jg7vvw@bivouac.eciton.net> From: Ard Biesheuvel Date: Mon, 12 Feb 2018 12:22:45 +0000 Message-ID: To: Haojian Zhuang Cc: Leif Lindholm , "edk2-devel@lists.01.org" , "heyi.guo@linaro.org" , "linaro-uefi@lists.linaro.org" Subject: Re: [PATCH v2 3/4] Platform/Hisilicon: move out dxe runtime lib from common file X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Feb 2018 12:16:58 -0000 Content-Type: text/plain; charset="UTF-8" On 12 February 2018 at 12:19, Haojian Zhuang wrote: >>From: Ard Biesheuvel >>Sent: Monday, February 12, 2018 12:05 PM >>To: Haojian Zhuang >>Cc: Leif Lindholm; edk2-devel@lists.01.org; heyi.guo@linaro.org; ard.sheuvel@linaro.org; linaro-uefi@lists.linaro.org >>Subject: Re: [edk2] [PATCH v2 3/4] Platform/Hisilicon: move out dxe runtime lib from common file >> >>On 12 February 2018 at 11:47, Haojian Zhuang wrote: >>>>From: Leif Lindholm >>>>Sent: Monday, February 12, 2018 11:45 AM >>>>To: Haojian Zhuang >>>>Cc: edk2-devel@lists.01.org; linaro-uefi@lists.linaro.org; ard.sheuvel@linaro.org; heyi.guo@linaro.org >>>>Subject: Re: [PATCH v2 3/4] Platform/Hisilicon: move out dxe runtime lib from common file >>>> >>>>On Sat, Feb 10, 2018 at 01:31:06AM +0800, Haojian Zhuang wrote: >>>>> With the SerialPortLib and DebugLib, Dxe runtime driver can't >>>>> be executed well on HiKey. Serial logs are missing. >>>> >>>>"Can't be executed well"? Does this mean it crashes? >>> >>> No crash. Serial output are missing since SerialPortLib is different. >>> >> >>Does this driver take care to only create serial output at boot time? >>Does it, e.g., call EfiAtRuntime() or use a notification callback at >>ExitBootServices to make absolutely sure the serial port is no longer >>used? > > These drivers don't use serial port directly. But I tried to use DEBUG () > function to dump some debug informations in these drivers. I found > that I can't output anything on serial console. > But do those DEBUG() calls only occur at boot time? Or could they be called at runtime as well?