Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp527396ybz; Fri, 1 May 2020 03:42:00 -0700 (PDT) X-Google-Smtp-Source: APiQypKATLI7554Bve5akGpM3VtyYxF27MZgFtaPKHxdn7Eu2utxodAo6rQSaI/q798Iy4wOM+/x X-Received: by 2002:a17:906:46da:: with SMTP id k26mr2619965ejs.106.1588329720094; Fri, 01 May 2020 03:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588329720; cv=none; d=google.com; s=arc-20160816; b=fZmuVF990PCwl1qnUZM2Ns90WjiX0NEzdj6TNbtPbj9RsXK8+N0g6tz5K5QIEIdBQ5 jTgTB6BOOoNXGBuTMKpK6prx7qs6fA5hjPdVgZKtCeXZbTX/Fr3ilpvso6cZNPDXCyR8 CKPYUVTFpU8DffYWML1reyfjXSxNQRvOIzcjAGr4Kt7aYTGPUVWKuZrTj0ktUiTJEp08 Oi3rRpg3bGLWcZ4P7F7dZy/LFUj1Od1VCSdgqbiBf6RtxHaM/Fdzv/VllRo1xbaarvxv MOVfF/0s/V9Ei7Aj9AXVvz07Bg/dOeGmYnEZNieHTxbHskxAE074T2FNOQeKLuPDIgCR Z4Iw== 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; bh=lC3hSNHP5t8jvrwCl902GtNUB4Tx45JY5ByPTb+ClqE=; b=AGeKduN0/Bb4vT0yANpz5kTFRQEhuqTNobrsd0MkWdEqjHITZWOlW/PxDaJlMK4oe+ 4U5vNZRRFRR2C6VeudlKzt6oDPmM+lmacc4o6CFBmTTlIPiDnLbaId7UMjkxkcE0GC4+ Tn0MFmBX28FWPrtA+N6ol74px+Wr5oxzuZk/sqglhi+XHRppBpes46i/RT2FymdFXTtA gMJtARdcz3LxU/xrd+Th0f+2LzJU9mlUu+xN+HqTpQLYiUv8eyCg4E1PcBaWaQJHP4ZD ZH2iuQ8G0x9CQ3uhgxtEagSyVRE9DHU0wd4fJgasPK4Uag/JOkK6LnUZ1Uw18jReLw2B ho4Q== ARC-Authentication-Results: i=1; mx.google.com; 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 i18si1362057edr.464.2020.05.01.03.41.36; Fri, 01 May 2020 03:42:00 -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; 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 S1728614AbgEAKhX (ORCPT + 99 others); Fri, 1 May 2020 06:37:23 -0400 Received: from foss.arm.com ([217.140.110.172]:38456 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728545AbgEAKhX (ORCPT ); Fri, 1 May 2020 06:37:23 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7BA4F30E; Fri, 1 May 2020 03:37:22 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.7.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8266F3F73D; Fri, 1 May 2020 03:37:20 -0700 (PDT) Date: Fri, 1 May 2020 11:37:12 +0100 From: Mark Rutland To: Greg KH Cc: Jeremy Linton , linux-usb@vger.kernel.org, stern@rowland.harvard.edu, git@thegavinli.com, jarkko.sakkinen@linux.intel.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] usb: usbfs: correct kernel->user page attribute mismatch Message-ID: <20200501103712.GA51954@C02TD0UTHF1T.local> References: <20200430211922.929165-1-jeremy.linton@arm.com> <20200501070500.GA887524@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501070500.GA887524@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 01, 2020 at 09:05:00AM +0200, Greg KH wrote: > On Thu, Apr 30, 2020 at 04:19:22PM -0500, Jeremy Linton wrote: > > On arm64, and possibly other architectures, requesting > > IO coherent memory may return Normal-NC if the underlying > > hardware isn't coherent. If these pages are then > > remapped into userspace as Normal, that defeats the > > purpose of getting Normal-NC, as well as resulting in > > mappings with differing cache attributes. > > What is "Normal-NC"? Arm terminology for "Normal Non-Cacheable"; it might be better to say something like: On some architectures (e.g. arm64) an IO coherent mapping may use non-cachable attributes if the relevant device is cache coherent. If userspace mappings are cacheable, these may not be coherent with non-cacheable mappings. On arm64 this is the case for Normal-NC and Normal (cacheable) mappings. Thanks, Mark.