Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1331356pxk; Fri, 4 Sep 2020 06:58:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1Fwylmmy072cKU2D6UEwV9nnq11hnAQ8GJZvc3prRgf30IZ5ztZE/GxTTypr26EzAhj9Y X-Received: by 2002:a17:907:444d:: with SMTP id on21mr7194032ejb.329.1599227882410; Fri, 04 Sep 2020 06:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599227882; cv=none; d=google.com; s=arc-20160816; b=S5Yrl5Fnfgr41PH8zXrIy1RnIEzjRr031oQu/2TCEmCAO+0uis+RsZHXpayxo0uImw cepku7oUx+wEbuTiJSEll0qw51KlpF8UReD4OLIhvWZ8ZMdQYFX1NyfND+twCEID0CHl iLnDd1lLZKBADyC7xEARXHN/k2bisPSb9hf2xlB+4bXDZRaL+JD3RSULYpvLCQ20p+tR RTuFDViDpsTNmPt8hxkekHljGU+myLAK9qHQGF+uVPY0CxGUk3ZBkmQQqbmpDCu33Hkj GPTntUThQo5JwHu3TN4W+5Qunaat6Y8BgfDqFM65BauJ6DA4GHPgj6HnuMbN4JnxStmB ILKA== 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=B3CfhOVBGf9H9WuZ53+AjLGNuQZrbQHmVtlD/DJasis=; b=dulb/x1spkEf/dFnmw5t92XvSNxS5fmvxuRtVMM+q1BNzNkGW3Lg4uTvDoQUvKkpNn mR+w+SqFhioxKAuOJlgyqjyVnBkq4SDnJ3kfJ19ZcPQ6TOB1L+uoviM3G7h/jFfirmE8 BWhflHfd0HykTcwSZ7R0x95BttDYmjGzrjrigEp2n34HY0Dik06XFnKOj115v1dHjLEu PravOeTGSPB9H1mDNHsBdhAHuo8s5Cf1EdfpbW/wS+m2KtZGSBhcOOy7RThYhFKvpeP4 OVMTZUVvz5jivJLTeNr+/kjQMG9FHVFt7eAd4mB7sf/NPwFRoiymwG8WRosPvPGgit2a cgYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b="fdRk2pV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si4033294ejq.278.2020.09.04.06.57.38; Fri, 04 Sep 2020 06:58:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b="fdRk2pV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730639AbgIDN5A (ORCPT + 99 others); Fri, 4 Sep 2020 09:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730734AbgIDN4z (ORCPT ); Fri, 4 Sep 2020 09:56:55 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A69F0C061244 for ; Fri, 4 Sep 2020 06:56:54 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id k15so6821394wrn.10 for ; Fri, 04 Sep 2020 06:56:54 -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=B3CfhOVBGf9H9WuZ53+AjLGNuQZrbQHmVtlD/DJasis=; b=fdRk2pV//7myN++zX937AgchN/lF0cwlO5vO83mfaGxBG4q2HNIp6zqYMK+Zt8XOrY NjIrgYIWeNUh7JSDxmG4kHraRhjqpHbzpktsGfa+SbGMh8a1sbPyoF7IpXSqtyfgCZgb FjYvTaKTlO6LYbE6ZfU35PIcl9HijlW13E5wiZ3iwZzpaAqnbWl0F90OQZckY/wZU1gf A7VBE9ubp+vKLCJg6fKumSbKRAtz1MrQAzug3FVEuNdgU48dFmCQgmCLn7cJ0gcWBPA2 7tqETp6BTfcc3ari0Ghn5Ue2uktePy4RJzl6OEpDYyEMYCo7NS+BaGeEN2Hb/6BUmrOC /SQg== 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=B3CfhOVBGf9H9WuZ53+AjLGNuQZrbQHmVtlD/DJasis=; b=DuQjmLciBdahbgniMOva/Uq2pYAznn1HyMaPByrMIKdxRL2vbHWxKVzL/Ex7gIx4lC 7o56lYi/VEXS5P+wUcnk12I9RvyJKjZooVcO5j5UcFRcnwR7OL1swJLfPA2hD7LgYYwx jTz08vQLfgvVi0H/TSmfYgkY3/5WYf5T0esUu0z0hQZFqnJQyo8CyPLK8ARBiyUr4IFQ JaHQ7VTbgNG5YbhxhSQtsdravPJafpNR/CN9gvSkgNuDgoPbkIqd84itOUfD7lqWml7Z DtPB6WtAcnQDWvSU+/ilUzs2vW27mxv8YRxAQMf0tcRr226dpOGrK3ZKK5xsP8ebvzWN FlFA== X-Gm-Message-State: AOAM533KyfcbqaAQ7BSXRSJ/mzc00aBEyN/5cOcrc8FGkd0oTa5TTE6b 0v+wMIlYNJCLAeIYtsxuinBvFSzk+ooQqYKtJxtjT0pYQ6Q= X-Received: by 2002:adf:eecb:: with SMTP id a11mr7878596wrp.356.1599227813312; Fri, 04 Sep 2020 06:56:53 -0700 (PDT) MIME-Version: 1.0 References: <20200904083109.GA9182@infradead.org> <20200904094617.GA27846@infradead.org> <20200904130044.GA7842@infradead.org> In-Reply-To: <20200904130044.GA7842@infradead.org> From: Anup Patel Date: Fri, 4 Sep 2020 19:26:41 +0530 Message-ID: Subject: Re: [GIT PULL] RISC-V Fixes for 5.9-rc2 To: Christoph Hellwig Cc: Qiu Wenbo , Palmer Dabbelt , linux-riscv , Linus Torvalds , Linux Kernel Mailing 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 Fri, Sep 4, 2020 at 6:30 PM Christoph Hellwig wrote: > > On Fri, Sep 04, 2020 at 08:58:25PM +0800, Qiu Wenbo wrote: > > I can confirm this patch also breaks K210 support. It seems that > > csr_read(CSR_TIME) will trigger an illegal instruction exception on K210. > > CSR_TIME is trapped by just about every implementation I know (which is > explicitly allowed by the spec). That is why we should never use it > from common M-mode code. Finally, I was able to replicate this issue by manually hacking QEMU to not emulatie TIME CSR for virt machine. It seems this issue is only seen on older QEMU and Kendrtye K210. I am working on a fix for this issue. Thanks for reporting. Regards, Anup