Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5365693img; Wed, 27 Mar 2019 07:14:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWAFvKiPED5noS/hYcDHH8xr7ohnJoeHo24yoSQp7giLc870/9xrfqzsdyTvIVryITNIW7 X-Received: by 2002:a63:6a45:: with SMTP id f66mr15699523pgc.7.1553696070966; Wed, 27 Mar 2019 07:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553696070; cv=none; d=google.com; s=arc-20160816; b=W3sfqxeqds47xV+Y/Rv6Q4h6PSnJd7mfK9mIpDduqOyclsJMnYcYYmmdwBq59/xqbT VWW2a0rTjc6B5dUh7/bExwrT48oOsavIBRpU4fL7MpRy3FRmuGlikKSTR+S9ix1mEdpX Y2qHZtHEmsVSnk6qkz0VL5eaIubCtr+9iw6rIx2vYsg8rsC0JKCtn8AmZifmUFnuaf1s 3nt1UM1TaNRX3SGoHx3+iXw0ZHiMKUnc6r9tyDX8fVwouJxM4GyWmNfNdJtQinmecWU5 CYSdofFecoLc1y4BwCvKlxQGn6P0f3HGUyK+gMi6PfJQ2keZID2QUTEOGI8Qpn/R9w7A D6og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XBQBY1Ay37YlRdu285Es/X+k+RnwhHCN8rBYW4Km494=; b=nnEbE1S8/T+jOgWkmqx81upMWKB1RfxEyhoD/yqsoyDze6z3zLQGI8G++2DBpqW+5i co0mtqQFaJWamd2pvnbUDCMBDFZqt5zj/JnkXvGQxzi7vktS6AbYIauIZpS3dY1ZyTDV PM/R5odGA9UsEZgq33xpBS5/H4ca+fRC4NBzP3uqe/PYW8JEOOLt+Vh9KnlxU3+5ep5D BTKRUQB3ZmHsGPp5tEW+nATT5sunu55VwG9SULt+jeWneky/BoA9OsfWc4t0k3S0ZElT 9/XDenYq1MkP8q1tHXkt+N/jx2OqarsTFMZlEqHQ94TI1sDBOkLYSJYB0FzIqMufkNRm vBWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=rrMjuW4y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11si17601610pgs.291.2019.03.27.07.14.15; Wed, 27 Mar 2019 07:14:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=rrMjuW4y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728528AbfC0OMR (ORCPT + 99 others); Wed, 27 Mar 2019 10:12:17 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39849 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbfC0OMR (ORCPT ); Wed, 27 Mar 2019 10:12:17 -0400 Received: by mail-wm1-f66.google.com with SMTP id t124so214286wma.4 for ; Wed, 27 Mar 2019 07:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XBQBY1Ay37YlRdu285Es/X+k+RnwhHCN8rBYW4Km494=; b=rrMjuW4yUpbQAe+2nqc92ctxI3YKkQ0hN+1T6pLx1J01uLIlBuNnUGX+hA7Z7hoZxE na6ugH38vgXjkkitafON8TJ+tDpF8cm9rFCJpS4rW24cDx3Zndj+GBFeJsIxJLUuqC4L 4WbpUbjdqfJfBKet06DvLBMaCiOK4PdGwJPH2En5ou4aM4RE4HgXhrWZunXW/QnOci/t M3M8eBwGbjgjsxCc1G1aVLWEjaIQDejC7ZiTQA2RBsPzOuvggYwy3veyrLJwljk3STX2 3fKtS0yaMtSMHJLkoKvV8w0tQKThrHWmYrVGi4st5ISLPRBwRkG7IbxFN83GhWytYpha 2+xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XBQBY1Ay37YlRdu285Es/X+k+RnwhHCN8rBYW4Km494=; b=LLCsu739f67jFCFGPTXDubqo32zP3P4WE2TiuioCLg9CQOX6KNvtVKtd8ugbhplqHD wn9KOMzmY14v56sHmR+dI/SmHkWECf707ksh9eeT6WkAYbv7JYGrTmr2NQTsZFSh1rxs 9ddW4QpVuJ3os7SUzGE/S82c8IfR5+XpkqGGf4NM+OOi6YxIcOv9YGvYv3eWOAGN9Gd+ eU2WqRYmkcmOAYXNv0mirneFQkC3XicmGizU9uMlgsKVrXm4wjzOzvSZfkE/B35N3yDn EXlpl759qrBvTJXaY1qNtcp+6YKZQ+37SVTEkpXAqxYswv0cPsz+u5zf4DBrNNK93r4k L8OA== X-Gm-Message-State: APjAAAWnLR/zBa6OUl1jM6h2Q7e8ZzCyKTe7Ll1HGMA0XRCukKoVg6SM fswq5tHIUKCYs362KJFfx5Fmw5uxqAo2NgPPgp5BvA== X-Received: by 2002:a1c:b455:: with SMTP id d82mr13703860wmf.153.1553695935460; Wed, 27 Mar 2019 07:12:15 -0700 (PDT) MIME-Version: 1.0 References: <20190327100201.32220-1-anup.patel@wdc.com> <7edf91f1-1df5-5513-d372-d84edd12edf3@garyguo.net> <74227a1d-3928-3e92-c7a9-5c3e093b29ab@garyguo.net> <4dca2cfe-069f-f458-b1a7-f87aa6718ef7@garyguo.net> In-Reply-To: <4dca2cfe-069f-f458-b1a7-f87aa6718ef7@garyguo.net> From: Anup Patel Date: Wed, 27 Mar 2019 19:42:04 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: Implement ASID allocator To: Gary Guo Cc: Anup Patel , Palmer Dabbelt , Albert Ou , Atish Patra , Christoph Hellwig , Paul Walmsley , Mike Rapoport , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 7:39 PM Gary Guo wrote: > > I think my code already get all the caveats cases covered. The only > thing my code is missing is handling the case when ASID is not > supported. Maybe it is better to work based on that instead? Well, I have also spend enough time hardening this patch so help me make this patch better. The hint about 32bit system is useful and I will send v2 soon. Regards, Anup