Received: by 2002:ac2:5042:0:0:0:0:0 with SMTP id a2csp4045530lfm; Tue, 14 Jul 2020 02:04:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnbQXM2u/ejazhx0nbgAEak+ZkJROajN78mH+CWvPIX09PgRFlYBbJx+bMUgcDsS1a70Xq X-Received: by 2002:a25:8087:: with SMTP id n7mr6262389ybk.439.1594717462999; Tue, 14 Jul 2020 02:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594717462; cv=none; d=google.com; s=arc-20160816; b=YMrKtKFwvgIlhDIE9XYrJht30Wol/qc+vWVogOHRO2SrAuuyd34dmMKNjpIiBxDTtx m4U0hDH0XXk5rBxU2bfDg7YOD29Zc0gW+U5IQuAHdSEhWbKp/8iHImlc3OvdoNkg0x9b hEYjlfgbtRx9hzQyqHSU+vc6TVNRxIaRLsCXCdkcAyl1DPShGx7uequCjZrRpmpFd5km 9U0rfXWY8jXTRYarjPrGJFR2Am7BWLIp7v+DNMMjBw/8DZhCyU/Cv9+vSntfDZRJAwwd qFymsV/ogayjcfMpYI9my8BZij70EXnmltJ6Q47tzxr4XrohoYUlYGc5SVeirDHO7/5x ViMA== 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:dkim-signature; bh=g9hElE/6P2hreo6ryqv5PdnNZOX6GMy9ITZ9XVw1ELU=; b=vXUy2zo0NDQf+LLsJbXwKZQjFju0hTZI3gi9roRgMqIrwAoZYA2gRqPvMYlQsfrIET BOKQtyl8MCH0LwBJC+SgHg/fp+CticrOqzZEotfcewzEaBqZkE4s1hCR9ZGtRR2PQNwE lUp95Q4FOe1aUL/t4wfF09ojZ1YklQ/yjOzsiQ3P2a4bRpCDe6hzJyED/Kx/VTozBmzf OgaXNesrfPHvjDPWBvCuKTh+iKiQkM/el+DCFw4YuikWTZjaMiiO4fNPy5Qn8u3ielor lKwo7BbJ7WOBZM3TdtIGyQ85Tjl3530800smcMsEWbghvo5JoUXXpZFRr+21fWl9yDiU tOhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QeWq8uId; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y9si17673919ybm.274.2020.07.14.02.04.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Jul 2020 02:04:22 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QeWq8uId; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:56394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvGrO-0003zm-DH for alex.bennee@linaro.org; Tue, 14 Jul 2020 05:04:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvGrG-0003ya-NJ for qemu-arm@nongnu.org; Tue, 14 Jul 2020 05:04:14 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:32478 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jvGrE-0005fP-TI for qemu-arm@nongnu.org; Tue, 14 Jul 2020 05:04:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594717451; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g9hElE/6P2hreo6ryqv5PdnNZOX6GMy9ITZ9XVw1ELU=; b=QeWq8uIdf5dnFmpZ4XTVQj7YDgguD4YhGu+KdBXTsLsrKSi6RGp2omDXwNaAcXNL2pC/hs pGIcnb8GwiJhFAO7Ox+2qV6p/B/WFN2DxC/M3V9s48pna31o8NUuqsJPkpDqflEivQBb6J xy25QeFRFInt064qc99Kd7jnu4DsoyM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-223-CX8NbzVpO3mucJvJemwqwA-1; Tue, 14 Jul 2020 05:04:10 -0400 X-MC-Unique: CX8NbzVpO3mucJvJemwqwA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F052A106B242; Tue, 14 Jul 2020 09:04:07 +0000 (UTC) Received: from [10.72.12.168] (ovpn-12-168.pek2.redhat.com [10.72.12.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id 74E3C10013C3; Tue, 14 Jul 2020 09:04:04 +0000 (UTC) Subject: Re: [PATCH v2] ftgmac100: fix dblac write test To: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , Erik Smit , Andrew Jeffery References: <20200628142658.29264-1-erik.lucas.smit@gmail.com> From: Jason Wang Message-ID: Date: Tue, 14 Jul 2020 17:04:02 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=207.211.31.120; envelope-from=jasowang@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 21:44:01 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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 , "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: EjWcrDFOeM1m On 2020/7/13 下午8:06, Cédric Le Goater wrote: > 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. Applied by switching to use PRIx64. Thanks