Received: by 2002:ac2:5042:0:0:0:0:0 with SMTP id a2csp3216961lfm; Mon, 13 Jul 2020 05:07:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt/STA4yso+Fj3c3DNu7fr11Mp/YVBuQCI0BTsXGmC8dA/p0uoyQ3+nOZfIs5w5ds6rdKJ X-Received: by 2002:ac8:f8b:: with SMTP id b11mr85481811qtk.361.1594642039174; Mon, 13 Jul 2020 05:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594642039; cv=none; d=google.com; s=arc-20160816; b=MspreCnqufmIXwL5J4lkDCrMUGnyeplghb5y46M9Gbr8fz+yFhU0ICppvQfIj1riaV yhhWqvtgPGCK2321xElRhgNT7YRwT9RYDcrNR3o5XTpopCx0txY5SZ07qZ1U7m4aFxg4 G1UftbadppSyO1ecj9vg60otE1ytGy+2YMyfHOZohAyOkJwYrxUsvOU+pJ7dYwg6Eaby zRMi/XSlRsrsnP882blr5J0E7WbF72AGenjOlA5NNnRfM9FitscIh0yrMNNpoRGNutz8 44Fg1AV6qnV4n42msTLC3S5Kg8Kxy3CHBsF//1uh4v25ubOU7FZbkDSdOUi37r/Egs2W a1Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=mB3ZFu+kurA+ydnPD/oFWeA1wm4TxjYCw7/LOIKxXz8=; b=qHwZEwbspekq2XE/yFHCN3N8CsF/NO7CGL3zq1saZJ1zblAqcIFEa8/iJTYRoItd4/ nQjYw9BZDy1VDAmOUHm8kFf7KLj6KAKlc8WCfYieFe1ZpZ37OtwZZkboHijpcSOyF1Fx wfPuWsrJNP/+eaFfJ1qsqDOW+Zrlo6yPKLBLB5626ppzQdIT+0ncjbSZVBwVtzzWNkYF Dx84VjRMtpQtVDPPjnqxfPwcHNf3BRoYTIG39dy6MdCr6EGzMTKuqcZyUlpH5y0/qr+T MriBmMMLtFyo4QRQWZgXDn2Umpj5ecZGrmqxK+OL5EQnp/2lLfBgI/e0cpvV/e68uqUY pyaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e10si8476245qkl.0.2020.07.13.05.07.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Jul 2020 05:07:19 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:35558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juxEs-0005SR-Ga for alex.bennee@linaro.org; Mon, 13 Jul 2020 08:07:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juxEj-0005RC-WC for qemu-arm@nongnu.org; Mon, 13 Jul 2020 08:07:10 -0400 Received: from 7.mo2.mail-out.ovh.net ([188.165.48.182]:44892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juxEi-00064F-28 for qemu-arm@nongnu.org; Mon, 13 Jul 2020 08:07:09 -0400 Received: from player687.ha.ovh.net (unknown [10.110.103.112]) by mo2.mail-out.ovh.net (Postfix) with ESMTP id 502121E1006 for ; Mon, 13 Jul 2020 14:07:05 +0200 (CEST) Received: from kaod.org (82-64-250-170.subs.proxad.net [82.64.250.170]) (Authenticated sender: clg@kaod.org) by player687.ha.ovh.net (Postfix) with ESMTPSA id 9C90D1444834D; Mon, 13 Jul 2020 12:06:56 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-105G006d8f129a2-5b12-4784-b312-7ece9f41aac6, 29C60B8BFD44B6CD822E82BF6A6060F4508BB267) smtp.auth=clg@kaod.org Subject: Re: [PATCH v2] ftgmac100: fix dblac write test To: Erik Smit , Andrew Jeffery References: <20200628142658.29264-1-erik.lucas.smit@gmail.com> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: Date: Mon, 13 Jul 2020 14:06:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 5649765733691001664 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrvdekgdeglecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeevrogurhhitggpnfgvpgfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecuggftrfgrthhtvghrnhepfeffvddtudegieefudeugffhjefgieegieegleettdehgfeiieevueeihfegfefgnecukfhppedtrddtrddtrddtpdekvddrieegrddvhedtrddujedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhlrgihvghrieekjedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegtlhhgsehkrghougdrohhrghdprhgtphhtthhopehqvghmuhdqrghrmhesnhhonhhgnhhurdhorhhg Received-SPF: pass client-ip=188.165.48.182; envelope-from=clg@kaod.org; helo=7.mo2.mail-out.ovh.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 08:07:05 X-ACL-Warn: Detected OS = Linux 3.11 and newer 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Jason Wang , "open list:ASPEED BMCs" , Joel Stanley , Cameron Esfahani via Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: Y41cE3OckmQn On 7/7/20 9:42 AM, Erik Smit wrote: > Hi Andrew, > > On Mon, 6 Jul 2020 at 03:59, Andrew Jeffery wrote: >> On Sun, 28 Jun 2020, at 23:56, erik-smit wrote: >>> The test of the write of the dblac register was testing the old value >>> instead of the new value. This would accept the write of an invalid value >>> but subsequently refuse any following valid writes. >>> >>> Signed-off-by: erik-smit >>> --- >>> Changes since v1: >>> >>> Changed %ld to HWADDR_PRIx to fix building on mingw >> >> Bit of a nitpick, but the type of the value argument is uint64_t, so shouldn't >> the result of the expression captured by FTGMAC100_DBLAC_TXDES_SIZE() and >> FTGMAC100_DBLAC_RXDES_SIZE() be printed with a straight PRIx64 rather than >> HWADDR_PRIx? > > You are correct. I didn't understand the meaning of the PRI macros and > just grabbed the other PRI macro I saw getting used in the file. With that fixed, Reviewed-by: Cédric Le Goater Thanks, C.