Message ID | 20220211111155.16121-1-nikita.shubin@maquefel.me |
---|---|
Headers | show
Return-Path: <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=F9TpMAYN; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=maquefel.me header.i=@maquefel.me header.a=rsa-sha256 header.s=mail header.b=p8ZxtSXd; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Jw9v56Csnz9s0r for <incoming@patchwork.ozlabs.org>; Fri, 11 Feb 2022 22:12:33 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xrSDxPm0inWb1nVuxoO6mLcRTBqLHVUeKw5NCq6Bods=; b=F9TpMAYNXv3KQ+ LU+kVm3WjnrAlhG0qNyErG4N2gjRxzW/lfK9vtZjpydg9x+c2TA7VREJAbfxK7FcHoKXlR8AWhaLa oBhzrsw6Dt3nvTuXo4SrWjW2DbrXRoZbt2VRCPskQQ2Z2wC4AY089dBQQX4FGD2Rsf4JljnMXsaTS pW2PAoAayHqDyE0CfKE/gjgYIppA3ZQf14evlVJKPmYs4G1INW/hZKMLrxUJJD19AIUvwTGDobqYQ vBUCtx2S6lac89RgIm/GrDEocLCwNvBPDbd43DKTGr1QsudjZTc7U9q85qHRe3k2R3yddDAZZq71D gRJvnX/U/srd4/x/6qDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nITqa-006puh-HN; Fri, 11 Feb 2022 11:12:16 +0000 Received: from forward100j.mail.yandex.net ([2a02:6b8:0:801:2::100]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nITqP-006poY-Ue for opensbi@lists.infradead.org; Fri, 11 Feb 2022 11:12:12 +0000 Received: from sas2-5b46325ecb6a.qloud-c.yandex.net (sas2-5b46325ecb6a.qloud-c.yandex.net [IPv6:2a02:6b8:c14:251e:0:640:5b46:325e]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 5580E64F4B3E; Fri, 11 Feb 2022 14:11:56 +0300 (MSK) Received: from sas2-34ddad429748.qloud-c.yandex.net (sas2-34ddad429748.qloud-c.yandex.net [2a02:6b8:c08:b787:0:640:34dd:ad42]) by sas2-5b46325ecb6a.qloud-c.yandex.net (mxback/Yandex) with ESMTP id 3iWc1Utqx8-BudKM4cj; Fri, 11 Feb 2022 14:11:56 +0300 X-Yandex-Fwd: 2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1644577916; bh=MRoXAWJ+HELq6lbRe7gi+F6vdi8Dwao2nQyDSlLTDx8=; h=Date:Subject:To:From:Message-Id:Cc; b=p8ZxtSXdlMOQp7ADqGLHnyBMS80An2L+THU9RvR5NVftQXNzsrcHTTTtlMkYRTeKz 7lOWq2FmsVnj6G5cQBOe9KAbNJdSorajepAHhaAKbkEGM+N4KokdZ2EBaiZMU/gESz TYu+79DPj2IOPtpDdgAjZZ2NZTWnIn4z8EzAXlcA= Authentication-Results: sas2-5b46325ecb6a.qloud-c.yandex.net; dkim=pass header.i=@maquefel.me Received: by sas2-34ddad429748.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id t07H4YKf8b-BtI02pvm; Fri, 11 Feb 2022 14:11:55 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) From: Nikita Shubin <nikita.shubin@maquefel.me> To: opensbi@lists.infradead.org Cc: linux@yadro.com, Nikita Shubin <n.shubin@yadro.com> Subject: [PATCH 0/3] sbi_domain fixes Date: Fri, 11 Feb 2022 14:11:52 +0300 Message-Id: <20220211111155.16121-1-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220211_031206_786928_70C271CF X-CRM114-Status: UNSURE ( 7.45 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Nikita Shubin <n.shubin@yadro.com> The first patch is self-explanatory. In the second one i would prefer implementing new SBI_EEXISTS code instead of using SBI_EALREADY, we should really give more hints on this type of error instead of returning SBI_EINVAL for all kind of [...] Content analysis details: (-0.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [2a02:6b8:0:801:2:0:0:100 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <opensbi.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/opensbi>, <mailto:opensbi-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/opensbi/> List-Post: <mailto:opensbi@lists.infradead.org> List-Help: <mailto:opensbi-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/opensbi>, <mailto:opensbi-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "opensbi" <opensbi-bounces@lists.infradead.org> Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series | sbi_domain fixes | expand |
From: Nikita Shubin <n.shubin@yadro.com> The first patch is self-explanatory. In the second one i would prefer implementing new SBI_EEXISTS code instead of using SBI_EALREADY, we should really give more hints on this type of error instead of returning SBI_EINVAL for all kind of errors. The third one is attempt to fix case when we share mtimeaddr among several mtimer's with different or same mtimercmp addresses. I personally don't like the third patch - so suggestions are welcome. Nikita Shubin (3): lib: sbi: fix typo in is_region_subset lib: sbi: verbose sbi_domain_root_add_memregion lib: utils/timer: check if addr exists include/sbi/sbi_domain.h | 4 ++- lib/sbi/sbi_domain.c | 10 +++++-- lib/utils/timer/aclint_mtimer.c | 51 ++++++++++++++++++++++++++------- 3 files changed, 50 insertions(+), 15 deletions(-)