Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3864229imm; Mon, 15 Oct 2018 05:34:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ziSRoxo2dPnJ8Yglgor80cFSHlRDHdtqzF+6HpHrqm6SAMWXJ0mZcbs1sgDIJX098dl7q X-Received: by 2002:a63:b08:: with SMTP id 8-v6mr15767221pgl.130.1539606845633; Mon, 15 Oct 2018 05:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539606845; cv=none; d=google.com; s=arc-20160816; b=IT99z7CcyIvfwOJNliBPZbLWnqRC2Gr5qYary9UHb4mgvIQcEoW7HBea26cXO9ks+E zbZ1X9b3uyx2/+38c/VbqiNLdXKBkbXZBkSfy+T69oQPc2XUVic0MMofZub2XXCoNA9e 5ZRWKoizOM71JDPqbuc257IEYHIFHtBSfY/PXAstBXShVaUFhxHo9GG3HbUBFmneTvkI IgpVFbNk/vS/PwLqpl0JBxGlzMoW3I7lchAQjyw5ptY/n/tTAZRs+QxWjiqx8dW5mEhv Sv05auioXun0VdxabJVsEX3D7NPKCjI/8vVJAuSJLIGsxuEN+3WL0ShFajOXKgcJUTCt K9mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4dgj23StcuwzC1A1qsnwn8fhe0rQJE0yVYC2T+UkJ2w=; b=OdpNn5C+I3xuCyXBhDKNbIx1/wLU8Qg2Wjx45dAqLvvWZ6LcBHy6unfkc/3ElKbHQU pqYGx5BBkXa4d4k3xttGCosNLanDshrmUjamtOCxkmLjCMKRti4BsZAhX9ArxMM2tISY ma20ODWMY6t+m1mMpByxaZpTn5Oix8opWVevkjCiUhQI1u9U1MOL3J/iimLokNfoGyIL WUFZtZv25WANH820VJw0gadFcxhl9WYDNAAlYPI9IIcIEW0fLMlyzktDnF8ab7LIyR8l tAr5GXyESrU11Y/YvAvkwShEd4zm2VqZJleEpfCYNbgZky8fq7rppFxMHmPyLbdvWjbW AIkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AOy0swf3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23-v6si9883077pfn.85.2018.10.15.05.33.50; Mon, 15 Oct 2018 05:34:05 -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=@gmail.com header.s=20161025 header.b=AOy0swf3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbeJOUSf (ORCPT + 99 others); Mon, 15 Oct 2018 16:18:35 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:40733 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbeJOUSf (ORCPT ); Mon, 15 Oct 2018 16:18:35 -0400 Received: by mail-it1-f196.google.com with SMTP id i191-v6so27383781iti.5 for ; Mon, 15 Oct 2018 05:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4dgj23StcuwzC1A1qsnwn8fhe0rQJE0yVYC2T+UkJ2w=; b=AOy0swf3r2apx1xmdR3ch3bzqFr+gPkDSTdZLqtOlP9CFEsyKoqti//kJv02tQrxA9 AK5vWyX2n/nMrnUtUPs8Z+BYjkNkK50W6yUXSw3F51M0VAvUjoygJQl0I4gEMfUl253q bzyhczwsdqIxyGzEngjbeLpEfpXyzN30hu0wEv2gh7IpV8F/dnyRpkqEP9YPao3H8ypO 1u/fB2MijpIIeI4hk0cS5H6xHVdWrwC0YWu0mOeds0SwqC2XGcFFy+ZLRTQ71CCIXI8t HgHlULji6SPDcnmrO/5pjg08JhKIa1CZHWsAVY3YgUnVN6N/NV2LxjEabkrrjpGFh4tS d+4Q== 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:content-transfer-encoding; bh=4dgj23StcuwzC1A1qsnwn8fhe0rQJE0yVYC2T+UkJ2w=; b=MXfZKkrvr9TQl/E0hRFnZuqH3jOqqDJ9Lcx4yf0SFPzA3v0D4kIuD0yyPLKKmyHus6 FFuYFBUWX1HqUg240zBkclAIK+OCKhVre5kyHXYf7MpH6cjf21V2o/7wdERq7Zu6c8EX X1GEWqHqUHM6ExVghHMhtrKlq0EzJLZmJi7Ddf3rcks4DL4lYrtWqhL77JcnDzUYqOo7 hvdJGfKus2Px9UxVPI7ARPC+ZY0LF1CN0vpONH19M2wJB2hvckK6Ewn57zy9UkGurpEp LJ1yAlVdQfcGxZ/cwIkv/NqOKIiyF6WMjRffW+mfpFMnqkXyjvZRMILu4ux9zcVU+TAd fgyg== X-Gm-Message-State: ABuFfoiqL2HmXNE1T2gzUwwW5Y1POqKztHmhoTVCaH5MJ4IbDJ7L9QuF fM0kwKynvewh7VeRN1frN0VYmq+RaDsCReOrBeA= X-Received: by 2002:a05:660c:14e:: with SMTP id r14mr280507itk.136.1539606808030; Mon, 15 Oct 2018 05:33:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zong Li Date: Mon, 15 Oct 2018 20:33:17 +0800 Message-ID: Subject: Re: [PATCH v4 0/5] Fix some bugs on RV32 build fail and issue To: Palmer Dabbelt , aou@eecs.berkeley.edu Cc: hch@infradead.org, Zong Li , linux-riscv@lists.infradead.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Zong Li =E6=96=BC 2018=E5=B9=B410=E6=9C=883=E6=97=A5 = =E9=80=B1=E4=B8=89 =E4=B8=8A=E5=8D=8811:12=E5=AF=AB=E9=81=93=EF=BC=9A > > This patches contain the modificaion as follows: > 1. Fix up the building fail on RV32. > 2. Add umoddi3 and udivmoddi4 functions for RV32. > 3. Fix ioremap problem on RV32. > > Thanks all for review these code and modify the copyright description. > > Changes in v4: > - Retain the complete copyright description. > - Modify commit message. > - Rebase upstream code. > > Changes in v3: > - Change the copyright notices to GPLv2 from gcc 4.2.1. > > Changes in v2: > - Retain the copyright notices from libgcc in umoddi3.c and udivmoddi4.c= . > > Vincent Chen (1): > RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap > > Zong Li (4): > RISC-V: Build tishift only on 64-bit > RISC-V: Add preprocessor directive for swiotlb > lib: Add umoddi3 and udivmoddi4 of GCC library routines > RISC-V: Select GENERIC_LIB_UMODDI3 on RV32 > > arch/riscv/Kconfig | 1 + > arch/riscv/kernel/setup.c | 3 + > arch/riscv/lib/Makefile | 3 +- > arch/riscv/mm/ioremap.c | 2 +- > lib/Kconfig | 3 + > lib/Makefile | 1 + > lib/udivmoddi4.c | 326 ++++++++++++++++++++++++++++++++++++++++= ++++++ > lib/umoddi3.c | 48 +++++++ > 8 files changed, 385 insertions(+), 2 deletions(-) > create mode 100644 lib/udivmoddi4.c > create mode 100644 lib/umoddi3.c > > -- > 2.7.4 > ping