From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D789DC433F5 for ; Thu, 30 Sep 2021 01:51:22 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 283976137A for ; Thu, 30 Sep 2021 01:51:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 283976137A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HKbnN4LClz305D for ; Thu, 30 Sep 2021 11:51:20 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bytedance-com.20210112.gappssmtp.com header.i=@bytedance-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=zsNnJ3YG; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=bytedance.com (client-ip=2607:f8b0:4864:20::32b; helo=mail-ot1-x32b.google.com; envelope-from=yulei.sh@bytedance.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bytedance-com.20210112.gappssmtp.com header.i=@bytedance-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=zsNnJ3YG; dkim-atps=neutral Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HKbmc75Slz2yZf for ; Thu, 30 Sep 2021 11:50:32 +1000 (AEST) Received: by mail-ot1-x32b.google.com with SMTP id c26-20020a056830349a00b0054d96d25c1eso5323881otu.9 for ; Wed, 29 Sep 2021 18:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=60TD8bgNIwj0W5iFpCWiw0MjDl0IqEJscIiQ5zBH4Us=; b=zsNnJ3YGtCdOkEohrr2AqA2aInRzQweZCdJYC+UaP9OxrjYvFC4skzRZf8IhkDQ74/ 7mLecXQCMKfmnvUUJWjKTaoyAbktgEaMp0X5A3I28fxIUjHQUzV04cfLOT26wsPCaMz/ ZgtTT91Qn7EMnKqoJFOe+HwEJjCybELM/rNJ3QVaEG5lBn5+gHrdhzMAkDCU6aUUA2c5 5nEscpH2l4HHOZiM0ZipEO8u6EtXy6aNkn0GXcwTGZFuKlKWWZCwyWur4G8mG7rnnWlb OwF5ZB/B3B3/5LwCdwmNt4HpOEe7oOR9Cx+tryY5FRkKHFDLEckgI0IZfb7loaiN0/4n +DBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=60TD8bgNIwj0W5iFpCWiw0MjDl0IqEJscIiQ5zBH4Us=; b=jMFsav50tmPIQeYiGH+00fddR2yp38NvFv0rw288+OeOuaeOzswkNX3lDpPgGG4jgf fLiLNPLR+C0tVxv2XdnWidZ0x+1Gx0CRNXl75aVN713xW9Y75SY+70KjEIMrin3E2Y0g MF3XN3lfihlLY5zdG+2Gvb1+CThuLfPrhSMIusx0V7IrD8oN2GCW/ygpDE0Ul2pT7kSQ +PNiAKD6miNE/vjP1+1Raqw6JEI+KgdvmoJ0DrcymzftlaMjgSETsAhOl0dcXUlghosC Q7ImxQ52TRE8SFzPHT/B6IvSpATlXDaR1eEGKGowR5z0O3Ow3AyVWj368uPMSGmpv5RX nj+Q== X-Gm-Message-State: AOAM530988zQEqFYrcAaB1NCZhRllvNN9sS0Ox64YH1neVPT3dH36IlP /WMexq+rshPfiPHumaqjrnF/1an0G9qMvLmhv9WuCA== X-Google-Smtp-Source: ABdhPJyMqKTcSb0Qi1QyAHz+YjO3dLtpvw3XoZ0Z26rJfPovC1DofOVxU1wiBRXQSYU8ybYXF6GH/kONojxM1ol3IKk= X-Received: by 2002:a9d:192c:: with SMTP id j44mr2758568ota.302.1632966628742; Wed, 29 Sep 2021 18:50:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Lei Yu Date: Thu, 30 Sep 2021 09:50:18 +0800 Message-ID: Subject: Re: [External] Re: EEPROM Validation issue in Fru Device. To: Patrick Williams Content-Type: text/plain; charset="UTF-8" X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jae Hyun Yoo , Vernon Mauery , "openbmc@lists.ozlabs.org" , Ed Tanous , Amithash Prasad , Kumar Thangavel , "Velumani T-ERS, HCLTech" Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Wed, Sep 29, 2021 at 7:59 PM Patrick Williams wrote: > > On Wed, Sep 29, 2021 at 05:53:33AM +0000, Kumar Thangavel wrote: > > > > 1. How the function isDevice16Bit Validated for 16 bit device ? > > My understanding is that Vijay wrote this originally when he wrote the Tiogapass > port. You should be able to confirm if it works there. > > > > > 2. Is my validation and analysis is correct ? > > Other people have complained (on Discord) that this current code doesn't work > for all eeproms. If you have something that works better and doesn't break > Tiogapass support, I would expect it to be accepted as a change in fru-device. We do hit the issue on this. The FRU in our system is 16-bit and stored with an offset. We have internal patches to handle the 16-bit and offset issue, but the change is tricky and not generic for upstream. It would be very appreciated to get a generic solution to handle such issues. -- BRs, Lei YU