Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1491360ioo; Fri, 27 May 2022 09:37:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA3CdsWoDWaV+HB5alFAxq2gqFTkq5EhTUK3hud37UoALbb310ulwL4jRwku3vnvK46SOK X-Received: by 2002:a05:6a02:11c:b0:3f9:e159:5fa5 with SMTP id bg28-20020a056a02011c00b003f9e1595fa5mr28981190pgb.245.1653669441581; Fri, 27 May 2022 09:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653669441; cv=none; d=google.com; s=arc-20160816; b=e00tIO/sbTa1l2bWMlGu6EojeoWN0R2L6Zp7mVnHLnyXkZWlW34P2Z3P7cZstt6gs3 b1atRxZNC5Aq5wxWMrBMuDeXxIuqpwhfX2dMbgM5Gx0Yy1FPgFNjvGN4JZA4cRrxelg9 //EJW1o3EUAvVFSfz4x+vJPPYmYCfj8nsNj6suHc9lWubqHnfSHGBkbpvXd7R3Z/9uP2 2ZEmoqEH6F/a7F1M+YCMH/tjkz+FL7e5fd2CioCj/0VO/fygcODeNP8u8RiMUSNsmhnl SLCYA0LzV7yhOAYf89pXNVQ8zXdm8GUUS6jknX51zsNYUIqB7nb2VqT0TRZ3tlldIfXB SGkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Bo7vfeOGvTqy7+ek2jm2BgVJNmJVKnDylnVmJnH5dBQ=; b=ptu2axcbPVd2hAnYxePbF9DcdqMFGvLiB1222QY9MQ6iArdIlcwi/fGZIRGyzKEmjg RT/UlAZ7+lUjGybH7hDWrwviaBWDTn4zU5mdoO+cZ04t6l0GF1zlvgyOd+jbt8jBlMa4 9qhUH6cUc4SCUaygvJUGaO6UCBkC0k2VqzlR9JOvKElGsvKHW9/4K+XewFk4SGmKoKPX 0peMlA9oD4iU1kySwmtvaN+PkfGigTNuvuzzx4t4wgWDwQd42IvTNh3KNtAQm/HcpiZw 3qZ1a1AzcsWNEdOpvQlFjNohtYg2SizY9SbKSNPxwhVus8JDDBlj1YJ0Sf3xlfYiiWNk apLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="A0e0u/vU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t25-20020a635359000000b003fae0c67055si6683908pgl.777.2022.05.27.09.37.05; Fri, 27 May 2022 09:37:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="A0e0u/vU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243013AbiE0FRx (ORCPT + 99 others); Fri, 27 May 2022 01:17:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242888AbiE0FRw (ORCPT ); Fri, 27 May 2022 01:17:52 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8251D3136E for ; Thu, 26 May 2022 22:17:51 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id r71so3109649pgr.0 for ; Thu, 26 May 2022 22:17:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Bo7vfeOGvTqy7+ek2jm2BgVJNmJVKnDylnVmJnH5dBQ=; b=A0e0u/vU8sFpcECwKUCSMHshNFrNpB5C7Jw3L6/3VzvT/hnFEoZulzlvFpSjOuTwIo woirevymLuyT0zzsHC0l+19jSxJcQaIT5idqdWueuzzVVvGUAIBu5K3/FCqfFAWH3IyX fIyzG7ztJFLkiouA7HSviJpPb5KAmCc1aP+iZZmDsd1zW3WZDNaTRcHRSPMq/rwPaiwd dyHIbFS1gBFAOJVAjD7bc1BAJrtMydXmQm6DOJp2MCIUb6kQKp92U2PuTdt8bWQTe3+k eLMZJZeJo/F0AlGZP+N3SHc0MW77t1iSbQ7kY54mVeDKJeTCpZwIZ3kWcSaQxHQ8wYEC P/Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Bo7vfeOGvTqy7+ek2jm2BgVJNmJVKnDylnVmJnH5dBQ=; b=xNBQkLhDNDCZhYlSA1EducTWa/h/331M37Pbhnf6/Lq+EOi8PAq9gejy0wonQTqZZl UteaS0s1YwSyiqtYUJz8SK/HGQwvneYNK2bcgIZfGjjQjoQkS4gqStfUH2cHBgqSxBGJ i9oWHgvk3MYs4R0ZFyW7awW8Z/WcAhG+5zBrdnvEA6YrvamCCS6jdhJvkgwrBLEgt3No gA5PKMhyjwbVuaROtDtXA7Te7gJiGiIYthZiTwBPKJZNarrmh1EO0/uoy2WmQEZ/0L11 zWb+nq4vb/jQxCnks8GxzTFNpSq4RdIPRto4oCHvIMmi4OEmp7KoJiJM8rMsqcRP7iqM d1gw== X-Gm-Message-State: AOAM53335Gr57Ifs3HP6RXiiTFDcupabn/G24sCb6cUrXyaEUwciSkvC 5fPAXkSf9c2yiwUh4Giqf0oMcQ== X-Received: by 2002:a05:6a00:1487:b0:518:b952:889b with SMTP id v7-20020a056a00148700b00518b952889bmr20154031pfu.43.1653628670792; Thu, 26 May 2022 22:17:50 -0700 (PDT) Received: from kerodipc.Dlink ([49.206.9.238]) by smtp.gmail.com with ESMTPSA id j34-20020a634a62000000b003c14af5063fsm2459003pgl.87.2022.05.26.22.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 May 2022 22:17:50 -0700 (PDT) From: Sunil V L To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Ard Biesheuvel , Marc Zyngier , Atish Patra , Heinrich Schuchardt , Anup Patel Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, Sunil V L , Sunil V L Subject: [PATCH V3 0/5] Support for 64bit hartid on RV64 platforms Date: Fri, 27 May 2022 10:47:38 +0530 Message-Id: <20220527051743.2829940-1-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The hartid can be a 64bit value on RV64 platforms. This series updates the code so that 64bit hartid can be supported on RV64 platforms. The series has been tested on both RV32 and RV64 qemu platforms. Changes since V2: 1) Modified commit messages to mention RV64 and add RB tags. Changes since V1: 1) Updated RB tag for PATCH 1 and PATCH3 2) Type Casting NR_CPUS before comparing with hartid in PATCH 2 3) Changed commit message of PATCH 2 to provide details about the bug it is fixing. 4) Updated PATCH 5 for unaligned 64bit read Sunil V L (5): riscv: cpu_ops_sbi: Add 64bit hartid support on RV64 riscv: spinwait: Fix hartid variable type riscv: smp: Add 64bit hartid support on RV64 riscv: cpu: Add 64bit hartid support on RV64 riscv/efi_stub: Add 64bit boot-hartid support on RV64 arch/riscv/include/asm/processor.h | 4 ++-- arch/riscv/include/asm/smp.h | 4 ++-- arch/riscv/kernel/cpu.c | 26 +++++++++++++---------- arch/riscv/kernel/cpu_ops_sbi.c | 4 ++-- arch/riscv/kernel/cpu_ops_spinwait.c | 4 ++-- arch/riscv/kernel/cpufeature.c | 6 ++++-- arch/riscv/kernel/smp.c | 4 ++-- arch/riscv/kernel/smpboot.c | 9 ++++---- drivers/clocksource/timer-riscv.c | 15 +++++++------ drivers/firmware/efi/libstub/riscv-stub.c | 13 +++++++++--- drivers/irqchip/irq-riscv-intc.c | 7 +++--- drivers/irqchip/irq-sifive-plic.c | 7 +++--- 12 files changed, 60 insertions(+), 43 deletions(-) -- 2.25.1