Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp284019ybl; Tue, 13 Aug 2019 20:53:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfjsDN5Mi0tzA0PYKSU3iXKMWOrpOKwV6v6mgYlWp2zGMIDwl4s0Jd8gQHS8al0LkE42mv X-Received: by 2002:a62:e401:: with SMTP id r1mr7115134pfh.193.1565754804303; Tue, 13 Aug 2019 20:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565754804; cv=none; d=google.com; s=arc-20160816; b=wGq9rZ1ENp/I6KZcV8K6ENmN1kP3csp6WT7t7kxiEMRTNJp8ZIDHFGCRx3Yp2m8uwJ rGK3ePK8dUmEc+nLtqf+jXZW52snCtQTN87Sw8XnilwG5fNHV7jSofwXAsVEgwdpy9wo NOeHl1yCd16Za1hq6yY+65HHdTJMBHL2AOceziefMAJYx5GGTkW6GP3ot62EKnbGUUEt 3nJ/QQqJfcrKksxnTaSmZagt+BZBhEE9pDwP+gyvaHVZQJMUcmk6VQEfped4p3jduaHP +kMsPDh6stzdAUcMtRBLQXTIpJYFmyez3jUt097lydFpc8af7+67qVsSaAzqDrhbJpx4 XTNA== 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=++nUJKgOGfOdCIF5m2zpPrP5+AC7n3dwa/EWdf1OwMc=; b=EeDig9J66q3yy1z8KlHVneawTnf4Yoi4IBTMsaoQhAiBH/G6xtO84rt+Hwrksf5GJx X4fELkMY3lK38Fy6BcMoY9svl7EjVPuUy0DZSUiGR49MROUQSsxzDSGjiJytg7UAzrtv 43fpZIrCvatQYs7djehb4gpqFyffqkgKBsS33mBCGwBbE4zKZINrH50CQsk+ApcIk1Wr rvPEJWroj+4OMuGPDHd3coiec3Z7QLrhYC00fhxdw1DB0Et8coaMJ3n0N/z88MFRqlUG qvXQ+Eoxzpd5yyx4r2nCmP1Hwe+4GBYWauRhGfTgGDEeMypeR1Wl4oImM0zvvscZwLFz j1FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=HFCBcW46; 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 35si10297549plb.24.2019.08.13.20.53.07; Tue, 13 Aug 2019 20:53:24 -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=HFCBcW46; 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 S1727085AbfHNDwL (ORCPT + 99 others); Tue, 13 Aug 2019 23:52:11 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42438 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbfHNDwL (ORCPT ); Tue, 13 Aug 2019 23:52:11 -0400 Received: by mail-wr1-f65.google.com with SMTP id b16so12989303wrq.9 for ; Tue, 13 Aug 2019 20:52:09 -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=++nUJKgOGfOdCIF5m2zpPrP5+AC7n3dwa/EWdf1OwMc=; b=HFCBcW46Up/t7+Wpl1cQtJ2Z0MWWKq6hkQvKXb3ym5uKoaplfmgQwory4qEbWfO4jw tk4sWyGPPvxTFuwmNH0szfExit3F3tjHFyEC17hzd/O+B26qqXulmiGX4YwMuKHgHizU 8TgYxnzBNDEmjCDzCQh4mAmIHvEmxajyieBp+Q3VHuVWOUchIrYDojdBEU5R7S+xICm2 J5V2EQAPVtzexPzWD9BnIpG5lPctZMUORM4Avsyg6roeqpB1C8xkvivNLmXQmGdckM87 PwnQyfM05C3qbnxKCnsyx57TASNa2KqJY4CbFeyk5lrZMRDLbodZIOcFwe0hZQsw2HiQ c/PQ== 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=++nUJKgOGfOdCIF5m2zpPrP5+AC7n3dwa/EWdf1OwMc=; b=tGjVbQF5IemV28QpGs30IOtG9Fkp1aYC0GIMxzS0WU5JKQ/971uRdrOMZCLUujHcA9 yYG4rmHFFdzbT/gLmnqS8zL/dH39DLhBvXncIbt0uATPxCMODsYTR5ugQ3FDgFNCcdSq yT3SOYOd3QF+Ps9+JsODcAg7ls0/Hj1g76LxWyifmw1zgkEDHzOdyVBqZ7UbNIvpA41M 5uWmAncUbCj6PBpYAgbZRLF9zRT87jYwuc6xHrSsoFSyVHm/qYQByHNrrjr6ysB/rOAi McTlzPXk67eYsy4D1CFm3jGPwZnThX7Tb/vmdizEUwAiiGrCNo87TSa0CbEIEogNVoUI agng== X-Gm-Message-State: APjAAAVQa57LB8BhWGhBBVDdI2OkXs6ro7hZtriww071bvW4ieWVnQGh LWtZb2ZO4HI1NuvBjAxu5zG+Dk1F+kAQc96eu+9imI9Ep3Uylw== X-Received: by 2002:adf:f641:: with SMTP id x1mr6622878wrp.179.1565754728415; Tue, 13 Aug 2019 20:52:08 -0700 (PDT) MIME-Version: 1.0 References: <1565251121-28490-1-git-send-email-vincent.chen@sifive.com> <1565251121-28490-2-git-send-email-vincent.chen@sifive.com> In-Reply-To: From: Anup Patel Date: Wed, 14 Aug 2019 09:21:57 +0530 Message-ID: Subject: Re: [PATCH 1/2] riscv: Correct the initialized flow of FP register To: Vincent Chen Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv , "linux-kernel@vger.kernel.org List" 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, Aug 14, 2019 at 7:15 AM Vincent Chen wrote: > > On Thu, Aug 8, 2019 at 11:50 PM Paul Walmsley wrote: > > > > On Thu, 8 Aug 2019, Anup Patel wrote: > > > > > On Thu, Aug 8, 2019 at 1:30 PM Vincent Chen wrote: > > > > > > > > +static inline void fstate_off(struct task_struct *task, > > > > + struct pt_regs *regs) > > > > +{ > > > > + regs->sstatus = (regs->sstatus & ~(SR_FS)) | SR_FS_OFF; > > > > > > The SR_FS_OFF is 0x0 so no need for ORing it. > > > > That one looks OK to me, since it makes it more obvious to humans what's > > happening here - reviewers won't need to know that "off" is 0x0. The > > compiler should drop it internally, so it won't affect the generated > > code. > > > Thanks for Paul's comment > My thought is the same as Paul. > > > > > Apart from above minor comment, looks good to me. > > > > > > Reviewed-by: Anup Patel > > > > Will add your Reviewed-by: tag - let us know if you want me to drop it or > > caveat it. > > > > > > - Paul > > Dear Anup, > I suppose you can accept our thought about using the SR_FS_OFF flag > because I didn't receive any reply from you. > Thanks for your review and comments. No problem, go ahead without dropping SR_FS_OFF flag. You can include my Reviewed-by. Regards, Anup