Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] Access

Subject: Rare project developers

List archive

Re: [rare-dev] Access


Chronological Thread 
  • From: Gawen Davey <>
  • To: Frédéric LOUI <>, Alexander Gall <>
  • Cc: "" <>, "" <>, Alexander Jeffries <>
  • Subject: Re: [rare-dev] Access
  • Date: Wed, 22 Jun 2022 09:08:25 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aps-networks.com; dmarc=pass action=none header.from=aps-networks.com; dkim=pass header.d=aps-networks.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jE4lwDoQav74hrMIvXj7lyLxJDP8yiOzBSniyA7aZ6Q=; b=K6SMsltXtJPBP3tvTwU+F1Gi7keVuHFn6wr1OquP6pfbPaJYNRJHpLia/l8NRi8FPDJBzctngS9jZk1H8REHTWvHF3wGL2H2mIaDSjwZ1CvOSTmXUEIXBaTtJ4yVLNlzuPOh3ULwkNKXcZR6bkUfNkOgJCpAUKq+XajylmdB8Ti5hu2qGgix6i38yQaRBSdLRYWmJ4mKqLBHg9EftE/BMpZcSTxY3S8pMYTky6yGwMsNWDqkjehuFnvPxMulHOIuUDp3yTvXFMO94b4ujW11uHxTMlxxCJFE7Tm+5303WtAhI+DR1D2Yy3QwC+py6xNyuzEdmItsZoHD6wVKQ7h/4g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j3NY5x9byyneKspcvOisvBvWMf4HJNdjC9qkR5y1TFVK8fz9ypGjYdyGuhb0w3nJajGJqNJRkG60x6CyjFP1o7NCTOF9dozc9Wf/YmHa3/Gz8xEldH3IADvQhAiRyF4J6h6ljDHqAZa94eD1RM9TXJ6PygKCuYsuLiy1eLFIe6cogf9FRCbfC+lGoVOQyotwiaSFXpiNyohnWQ7x+1FSP7eMigM8ISXI6JsAAMxeUzZ9163ukm60HwJmZKf8lOnKuG4gLP/9Imk++G2ZiijAZ5hkLX2/1PSkOj8544Ky51rFg2L2E5L0EZV1dC8TWcjbBBnO4F5B158uMEXbS4OJ6A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=aps-networks.com;
  • Suggested_attachment_session_id: 7ba28108-ef93-1d87-b107-4962fcb064ce

Yes, It will go on the portal. But it's beta, not ready for general release.

With respect to the latest error, looks like SDE 9.9.0 removed some code that handled a case where a part number is not properly burned into the "efuse". This is not something that can be fixed by the BSP, and requires a patched bf-drivers package. So the SDE version as it comes from Intel won't ever work.

I've got a script as a workaround. It unpacks the SDE and bf-drivers package, applies the necessary patch, and packages everything back up again. It expects the original SDE tarball to be in the same directory as itself, and will replace it in-situ.

Probably don't need to create an entire SDE tarball, so the last three lines are probably unecessary.

In any case, I've raised a ticket with Intel, but this certainly sets back my plans. I don't want to add more scripts and instructions to our documentation and downloads, so nothing will be going on the support portal until I hear back from Intel.

#! /usr/bin/env bash

set -eE

script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

cd ${script_dir}

tar xvf bf-sde-9.9.0.tgz
cd bf-sde-9.9.0/packages
tar xvf bf-drivers-9.9.0.tgz
rm bf-drivers-9.9.0.tgz

patch -p0 <<'EOM'
Index: bf-drivers-9.9.0/src/lld/lld_efuse_tof.c
===================================================================
--- bf-drivers-9.9.0.orig/src/lld/lld_efuse_tof.c
+++ bf-drivers-9.9.0/src/lld/lld_efuse_tof.c
@@ -117,6 +117,15 @@ int lld_efuse_tof_load(bf_dev_id_t dev_i
   dev_p->efuse_data.voltage_scaling =
       extract_bit_fld_128(hi64, lo64, (245 - 128), (243 - 128));
 
+    /* If either pipes or ports are disabled in efuse we'll pretend
+   * this is a tofin-small */
+  if ((dev_p->efuse_data.pipe_disable != 0) ||
+      (dev_p->efuse_data.port_disable_map_lo != 0)) {
+    /* This is a temporary hack since some of the Tofino lite chip dont have
+       have the chip part number burned correctly in the efuse */
+    dev_p->efuse_data.chip_part_number = BFN_PART_NBR_BFNT10032D;  // T-3.2-Half
+  }
+
   if (dev_p->efuse_data.chip_part_number == BFN_PART_NBR_BFNT10032D) {
     // T-3.2-Half
     uint64_t p = dev_p->efuse_data.port_disable_map_lo;
EOM


tar cvf bf-drivers-9.9.0.tgz bf-drivers-9.9.0
rm -rf bf-drivers-9.9.0
cd ${script_dir}
rm bf-sde-9.9.0.tgz
tar cvf bf-sde-9.9.0.tgz bf-sde-9.9.0






Archive powered by MHonArc 2.6.19.

Top of Page