From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F7D93FC0 for ; Wed, 25 Aug 2021 05:20:05 +0000 (UTC) Received: by mail-ed1-f41.google.com with SMTP id z10so271224edb.6 for ; Tue, 24 Aug 2021 22:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jY+zZq2r8622JGPGrLQZJIpbL7Iz4oXWiLOi7adzQ3I=; b=d3VK8Dr+N1GcxePH0NDEA/LUKnGHqOzFVRvHyqvlvLRjdab0F5RBZSkaRcFP+u/K09 uiH56ralxHS7LlBSnXE5P0ZxGg/2Uz4BVLuIybN3/zGGBLikmhz76wRbSgH+oiaalfHe pFgLD6HJpgIw9uAAduHl3AYor9LRSUcore814fan6T6HU5i3U9sZ1FTtncAySl9T9dOS YRME256okfHhxzUn5jkRUoWIdNn/m8QqwtjAMY6G7T40PgOwCG+BVZCv+cYbzUwvK6cI NIHWc6MDnC/YQl+A7HEUDEVIDjy3BY40GJHI9o7PvYhsheR1uzjWgUvbyfFT69wxy8zz QaUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jY+zZq2r8622JGPGrLQZJIpbL7Iz4oXWiLOi7adzQ3I=; b=bmEfK5KtT/RtepAgnNv6d2jzQnxc95VXL1aQTt2C4L0mtYGZg1u+IHdGfPO4yUmNFj dN3LqNjBQ05ieZX56oVlc+ZEkWukfX97vtd9m8YYeTwvYBrw6MAv5ESMFD+zkCjYko7V cK6W+VUrWYRZ5Hxv5Ma9VcuX+fDhZr6mW3JyNwR7Ve6FLNJftdRypBlczaD2UzyJKtDS tYWXuxlQTBXO/bur9mYukp0q3spJiLh59pIIPiOcKRyqf9CtXPpN8rQkLo8MzGvaxnZz r/pUAt7Tf3XZnH0k92OElaCNyaisdgauegrkvJFkrhB/pG9WcyuAYW/KE7n7cNYVOZuB 3onA== X-Gm-Message-State: AOAM531Lv4mT7i0UMk/rL1asbwbRXFG/kAMzKBIoHXF780AcccYlpf/k 1fpH4Or357gtlUi6bRDXHt0= X-Google-Smtp-Source: ABdhPJxSBd0ordI8c1npA88Ina6r+eyPMV31ugVml+px3ybGjsc5RHWR97LuxgY4kk2x4CJ0L41Q+g== X-Received: by 2002:a05:6402:22d0:: with SMTP id dm16mr45386460edb.107.1629868804079; Tue, 24 Aug 2021 22:20:04 -0700 (PDT) Received: from localhost.localdomain (host-79-22-100-164.retail.telecomitalia.it. [79.22.100.164]) by smtp.gmail.com with ESMTPSA id n15sm12854669edw.70.2021.08.24.22.20.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 22:20:03 -0700 (PDT) From: "Fabio M. De Francesco" To: Johan Hovold , Alex Elder , Greg Kroah-Hartman , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Alex Elder Cc: kernel test robot Subject: Re: [PATCH v2] staging: greybus: Convert uart.c from IDR to XArray Date: Wed, 25 Aug 2021 07:20:02 +0200 Message-ID: <1838037.Ul9q4Z07vA@localhost.localdomain> In-Reply-To: <5541b638-db1e-26f2-2682-81f35504c9a3@ieee.org> References: <20210814181130.21383-1-fmdefrancesco@gmail.com> <5541b638-db1e-26f2-2682-81f35504c9a3@ieee.org> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" On Monday, August 16, 2021 4:46:08 PM CEST Alex Elder wrote: > On 8/14/21 1:11 PM, Fabio M. De Francesco wrote: > > Convert greybus/uart.c from IDR to XArray. The abstract data type XArray > > is more memory-efficient, parallelisable, and cache friendly. It takes > > advantage of RCU to perform lookups without locking. Furthermore, IDR is > > deprecated because XArray has a better (cleaner and more consistent) API. > > I haven't verified the use of the new API (yet) but I have a few > comments on your patch, below. > > -Alex Dear Alex, On August 16th I submitted the v3 of my patch ("staging: greybus: Convert uart.c from IDR to XArray"), with changes based on the comments you provided. Could you please take a few minutes to review this too? I would really appreciate it. The v3 patch is at https://lore.kernel.org/lkml/20210816195000.736-1-fmdefrancesco@gmail.com/ Thanks, Fabio P.S.: I'd also like to know if you think it's worth converting IDA to XArray in order to improve the Greybus driver in staging.