From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 0F4D3AC0F18 for ; Thu, 18 Jan 2024 09:50:27 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Co/ORZdzNcrWOAmpWk8ks3T2W/m3XncegijV48itlP0=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1705571426; v=1; b=suu79x5hwxo8LL6y042I5tcfKhwK6bC6Km2S+4DN0hqOwuo8f2iQtM1wN+MplQYc5r8hz83f 6qabXpi+KHwVjb9OSlgEb6kmgSmBre5HBgZwvSeW8z2r+0711B5Q3nsZK0jWxu/kPVo8ygd0bL3 ab7tEukbtbwbwNi/t9nBjeHk= X-Received: by 127.0.0.2 with SMTP id gn1eYY7687511xOSBbKsdMuF; Thu, 18 Jan 2024 01:50:26 -0800 X-Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) by mx.groups.io with SMTP id smtpd.web10.7961.1705571425483781555 for ; Thu, 18 Jan 2024 01:50:25 -0800 X-Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-6dddf12f280so6718926a34.0 for ; Thu, 18 Jan 2024 01:50:25 -0800 (PST) X-Gm-Message-State: daEfRdxNbbmoHTUNURthcSaRx7686176AA= X-Google-Smtp-Source: AGHT+IGg4Y1Ardn6G49b1QjeUi9ZsarPfGAyVZeO6tAJjL6AEbDYCpNpRFXJKWM0voA6gDpy5cJgIQ== X-Received: by 2002:a05:6359:2f45:b0:175:611a:8e94 with SMTP id rr5-20020a0563592f4500b00175611a8e94mr615862rwb.55.1705571424283; Thu, 18 Jan 2024 01:50:24 -0800 (PST) X-Received: from dhaval.blr.rivosinc.com ([49.249.129.34]) by smtp.gmail.com with ESMTPSA id n24-20020aa78a58000000b006d95b565418sm2894222pfa.153.2024.01.18.01.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 01:50:23 -0800 (PST) From: "Dhaval Sharma" To: devel@edk2.groups.io Cc: Liming Gao , Michael D Kinney , Zhiguang Liu , Sunil V L , Andrei Warkentin , Laszlo Ersek , Pedro Falcato , Yang Cheng Subject: [edk2-devel] [PATCH v1 0/1] Replace asserts with logs for unimplemented cache ops Date: Thu, 18 Jan 2024 15:20:17 +0530 Message-Id: <20240118095018.509362-1-dhaval@rivosinc.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,dhaval@rivosinc.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=suu79x5h; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Some platforms do not implement cache management operations. i.e DMA drivers seem to depend on the underlying CPU/cache functions to simply return if such functionality is not implemented. However this causes issue with CMO implementation which has an assert, causing flow to hang within debug environment. While it is not an issue in production environment, there is a recommendation to convert this assert in to a harmless logger message. Eventually platform/drivers need to have better guard for such functionality. Signed-off-by: Dhaval Sharma Cc: Liming Gao Cc: Michael D Kinney Cc: Zhiguang Liu Cc: Sunil V L Cc: Andrei Warkentin Cc: Laszlo Ersek Cc: Pedro Falcato Cc: Yang Cheng Code: https://github.com/tianocore/edk2/pull/5267 Dhaval (1): MdePkg/BaseCacheMaintenanceLib: RV64 replace asserts with logs MdePkg/Library/BaseCacheMaintenanceLib/RiscVCache.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113989): https://edk2.groups.io/g/devel/message/113989 Mute This Topic: https://groups.io/mt/103805229/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-