Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2050276pxk; Sat, 5 Sep 2020 06:58:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGMcUn7a84LGFAz/CNLioQEiSKUlEGrJh9nxRXqRy9Q83KmiZ7m5nTGeGwtzS0JoAyvdRS X-Received: by 2002:a17:906:71c9:: with SMTP id i9mr12204445ejk.250.1599314305610; Sat, 05 Sep 2020 06:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599314305; cv=none; d=google.com; s=arc-20160816; b=k42sQnPm8ettGvMupSP6no4EUd+sbiAEz5AKrQzUTGFsPc0ldmSDK2XUF0KN2Gdr0u tNk9umJolL99Vf05459XHA+RIGWVONHjd+XFGVYfAmKljDB7h/0ilK8q4jh8R5waVW/F /9kyiVkIZFOZWmo2A2ur3sqgk4sgepX8YCRxSgX9YwAM+I+NMRJeauwLDnryofz90lRR UxLhgdil3nqU2rqNH4nCd8CY/gFPKbOByc7w51f9YBAasdyLvfo3YBzvPi46BxcAghvL MfJVjTGTgssA9LutTzdXBOooUuUHxMv1y5QoLEoZ7PwAvdKew5k55uHrbeBoUZE/eeIY dujg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=i7vHnbsQaTVoLJzyyFyi0SrSiuFZTKN5WtNqQ73f1pI=; b=Br9uC21qOYjkiSZiOfTGxE0rGduSbgiyCwgjx8VqWIrJvC2Pb3Yizu5FxWzdRqxAp4 qnYd0XCE0Q1lA9Xb1MX4ddH0RzZmrbNWyDa80mLKJnwbI9obbHJooJrXcHqFQsEdv63Y 415FwHxcgD+Z+Ln1sqoaxOBurUbU7N07ItLZEFtu3GqnI9dDeXJQC+R9K3DzalgaDwTq o2etgSKflFxMu9bH0M0jcBNZUeeCGAH3P8NM1qZqDvewmUNOtr+zqFc3WBCNDsbkh8Jh nHP1cF68T5v/adJL0OB45LCRjL2vd6+9iUMfhOBO040MViZhMpeFjZMfR814+1//Hpdg QAFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Ezkdcm/1"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp27si6058278ejb.668.2020.09.05.06.58.02; Sat, 05 Sep 2020 06:58:25 -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=@gmail.com header.s=20161025 header.b="Ezkdcm/1"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728314AbgIEN50 (ORCPT + 99 others); Sat, 5 Sep 2020 09:57:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbgIEN5Y (ORCPT ); Sat, 5 Sep 2020 09:57:24 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C3F0C061244 for ; Sat, 5 Sep 2020 06:57:19 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id p9so12179571ejf.6 for ; Sat, 05 Sep 2020 06:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=i7vHnbsQaTVoLJzyyFyi0SrSiuFZTKN5WtNqQ73f1pI=; b=Ezkdcm/1AiLLyGLqw7QrBbjI+ob4TYlIspAe7l+941Y2g3E0mPSWsG3hMwoRGUPB3W xNlF/hGQtEgiTXCLt4dxKF9zIOSHpd1K4uF35xysMtsgvkXfR9xWXC0dbLJYdVOlKKKa IY7RuWuQ85bNjJOVp/esmgzhuhFv8LNzToFB4Wfuxi909jyjQDmf2Y0wKrcqmw+ogdtX J8ZnnH0Ig/1YGLAUy5iQHUYrKq5Fe1ilJ1SHAAQCcbnotfa0X7duvruzGGzcZHYLJvpc bnjuAMzYov5r+RR3IaUpk6V6pCUA3LEeuqLHHSYLqMlvU4zCkpJ1ktl0aOoZj12MQUdH 2Q6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=i7vHnbsQaTVoLJzyyFyi0SrSiuFZTKN5WtNqQ73f1pI=; b=cHNB4elAtxXl7/8+jlbBz/IQ2jHozqu6bWQgnG2dxiD1dAHtk2VfioddZlzMN7+qDf YA0qjwWzGVRpAhDIpo2sBiFjM5vUbjVl4lMjPsdIMSdVeZ/2YI6oDtidvIPocNjoBkPw JsCfqzs8JK9JPRwizIuj+lsCsl3Sgx9f2zmuJ1P5Au/78783Ja/XfRtqcxEPoBm29GTC dS2e0xao8wbwZD9FcbyEBZECGo91X4ltM6zgd2G6D7kaEunU4z/z4WdTqDvBRkeJ238z k0Rr9NbEvtxzIITzmNSrYjYdnH32v9ELE+Y1oCohhjkVKtRjYwcyj8zRQxFENUQo+bi9 /MVA== X-Gm-Message-State: AOAM530w7Au0J8DTw85sMvfewQ0VmwJfV0ikdivfJFX1N/F0rfIa11HC ZkJ+zzOM+Ulat3wq9XCiAmSkke36Wgw= X-Received: by 2002:a17:906:1d08:: with SMTP id n8mr12978014ejh.236.1599314236978; Sat, 05 Sep 2020 06:57:16 -0700 (PDT) Received: from ltop.local ([2a02:a03f:a7fb:e200:e1b1:2430:dffc:e425]) by smtp.gmail.com with ESMTPSA id f13sm9142992ejb.81.2020.09.05.06.57.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Sep 2020 06:57:16 -0700 (PDT) Date: Sat, 5 Sep 2020 15:57:14 +0200 From: Luc Van Oostenryck To: Stafford Horne Cc: LKML , Jonas Bonn , Stefan Kristiansson , Andrew Morton , Geert Uytterhoeven , Greentime Hu , openrisc@lists.librecores.org Subject: Re: [PATCH v2 3/3] openrisc: Fix issue with get_user for 64-bit values Message-ID: <20200905135714.74bsr5h423k7guw4@ltop.local> References: <20200905131935.972386-1-shorne@gmail.com> <20200905131935.972386-4-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200905131935.972386-4-shorne@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 05, 2020 at 10:19:35PM +0900, Stafford Horne wrote: Hi, The change for 64-bit get_user() looks good to me. But I wonder, given that openrisc is big-endian, what will happen you have the opposite situation: u32 *ptr; u64 val; ... get_user(val, ptr); Won't you end with the value in the most significant part of the register pair? -- Luc