Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp537235ybz; Fri, 1 May 2020 03:57:42 -0700 (PDT) X-Google-Smtp-Source: APiQypLp8bJXZgTCsy08nxZEnvQbXtmERSlD2xxnMFInucSqCSQLdIMvRqZgq3QUDpDkUGqxntuA X-Received: by 2002:a17:906:7743:: with SMTP id o3mr2646421ejn.120.1588330662345; Fri, 01 May 2020 03:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588330662; cv=none; d=google.com; s=arc-20160816; b=czguaTVzv8BrtHavDH0xJ3qtvI0PVludCdTLeawQhxB9o/syJzb3YUfMRnyeQbOPyy Ua5ciGXp53kErLf3q/s46ymDwz8GH8FdScdzz5D1ARWSxZrVsTYEjhQiOQrP6gg1BbEF +bQhjX/gcdxTxJrfCrgpFvJ3JICYIrio7ETxom6zYnq3wWEgoQ5iKcdbIzdWCHbAffea /r9tsQS8gCOoxyy+Byf/tHTHp8nFFfY7SlXqm82kuQrHhfLx/vtjLg0jIE14e3MjAKN7 3OBsMeo7i5zZZQ6Bi06R9HqSnRMA+uOoAVXfIv6I/YEFrHX44OdPfpJab8Bor8VatZP8 nUmQ== 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=VHF6f2y/2DutANKRDlg3w6SsIQiLjStFpuYenFaYtWY=; b=qqhzjr9jr04c2KkvPtKcsgHTOFjymCSVzRN2M+ki6M1W5UrM6CIhj8gZQcaHKm1tSY xRTVCRHYvEVAeTuD4rgPuDJpa1laQjTtD2pBaVeLWFIRNLj0g7q5G3Z3KkYOh1CIQFku GqzSHdG6CSeYj48vwdyrWTLKWuLszghQpiFo6eO9lWMcNEXbfkJPYjM7NdYL7kj8ygJg 27SDzZq2whyWPl2td7xNLo2ONbMslyqzMx94il5QddAfE/KsaVHclBKsxgWsxTDBi4hj gzfadNm2sA4TmANEhieVmJzFrROg2RfjV6pKFzdXKqwzr7oGts+h9ctlmxHNCjl3bfI2 ZijA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uEKrn4o5; 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 z1si1420171edp.481.2020.05.01.03.57.19; Fri, 01 May 2020 03:57:42 -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=@kernel.org header.s=default header.b=uEKrn4o5; 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 S1728600AbgEAKzY (ORCPT + 99 others); Fri, 1 May 2020 06:55:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:51236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728352AbgEAKzW (ORCPT ); Fri, 1 May 2020 06:55:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E06052166E; Fri, 1 May 2020 10:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588330522; bh=erC6W5Is3Nh/oL4QwwTvkse8Vyv5xbMSlz9NG80pnSs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uEKrn4o5840WtXxkC9WrJ17O5Jlu2T5837fDfIhIeL2APjwSqIXoIC8mLpye/1y/9 13sLP6s7aik7eVuQOxVCXsjN5lnl3XoM4n3Zye2tx6gXqZmiZX0iAeWLo/MDIQpnJQ aytWAXjD/jPWwGbEdZVKarybkBxRoKVTfPxdNT4E= Date: Fri, 1 May 2020 12:55:20 +0200 From: Greg KH To: Mark Rutland 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: <20200501105520.GA1434711@kroah.com> References: <20200430211922.929165-1-jeremy.linton@arm.com> <20200501070500.GA887524@kroah.com> <20200501103712.GA51954@C02TD0UTHF1T.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501103712.GA51954@C02TD0UTHF1T.local> 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 11:37:12AM +0100, Mark Rutland wrote: > 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. That's better, but it doesn't answer any of my other questions on this patch :) thanks, greg k-h