Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp517473ybt; Fri, 10 Jul 2020 05:59:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd0N8Jdp8iBrUATuRJTBB5JtEVpxZgsQKlilYd2j3ZOpRsDNfkbI4jPYVAthqYDF3VAlkK X-Received: by 2002:a17:906:d92e:: with SMTP id rn14mr64408591ejb.314.1594385970268; Fri, 10 Jul 2020 05:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594385970; cv=none; d=google.com; s=arc-20160816; b=gZKZUTBcOcDMPCWOeJCbhX0eXLLsY6q4YfR19DhhawkmvghvqTM5N6PglTJjJJALou EuueyLhx/FUZJBuW9rYweUj4XAvIOP4UxFTdp6EoYCDpIAg+M7pE19iG1F2ExS/dweYe ure4nBHVAntzCKQU+n65BH7rZUZ91eLxCtLFkMaiR+itp9UEh0W37MEgJblPBbS+VrYt I+HANPWGJhAgTx0kNk2YMVX2An862Waq+L4HbD2+L3eQRQi1T9RU+8xC6tI276CCcEZ9 oMw2xu9bGiWgYe/+zTxVwUuB96a5ZHxwVEEOmsCvtA8sqyuE8zTHnv0TJyvdOO5vbj0C FQ0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dOwRcpQb9DIl6hs8hY7g1sMIsxf2FoCsfDXQgmOTCBo=; b=nD3rIxCl0xLpP3aBI0+Dg8Gdky+LkMh18K0Chwixjnd3dVcUdQBw28F9MkdLntDagm 2U+iEiN1SeX9YArXF8uRHWu2E4ZpBT+ux+sIVGDHBwcagniSSuBHVLJ3wyzb7T6h/dRT +8JzjPmdCQu6qVlGYHgd3Kyw/0BNAkJmbGryM0uWdWsIbs1UMM6VSsD1vRNLiRt/H8Vp nBDRkbw+//9FKRDffqe0M1lA3iEW06sBPHlFqypxJxxq22OtvtFUgnpsxY2GwSKc2B3F Q7jkf+19+4kEQu63TwmkHGAtyXL9sXtu2YtAVlqm9boEvzA4U4nf/Y+NAPYmrjXlgWT0 9UhA== 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 c3si4493243edn.385.2020.07.10.05.59.07; Fri, 10 Jul 2020 05:59:30 -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 S1728001AbgGJM6Y (ORCPT + 99 others); Fri, 10 Jul 2020 08:58:24 -0400 Received: from verein.lst.de ([213.95.11.211]:43198 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbgGJM6R (ORCPT ); Fri, 10 Jul 2020 08:58:17 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id E96EB68AEF; Fri, 10 Jul 2020 14:58:13 +0200 (CEST) Date: Fri, 10 Jul 2020 14:58:13 +0200 From: Christoph Hellwig To: Jon Hunter Cc: Christoph Hellwig , Al Viro , Linus Torvalds , Stephen Rothwell , Luis Chamberlain , Matthew Wilcox , Kees Cook , Iurii Zaikin , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-tegra Subject: Re: [PATCH 15/23] seq_file: switch over direct seq_read method calls to seq_read_iter Message-ID: <20200710125813.GA8246@lst.de> References: <20200707174801.4162712-1-hch@lst.de> <20200707174801.4162712-16-hch@lst.de> <5a2a97f1-58b5-8068-3c69-bb06130ffb35@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5a2a97f1-58b5-8068-3c69-bb06130ffb35@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 01:55:29PM +0100, Jon Hunter wrote: > Following this change, I have noticed that several debugfs entries can > no longer be read on some Tegra platforms. For example ... > > $ sudo cat /sys/kernel/debug/usb/xhci/3530000.usb/event-ring/cycle > cat: /sys/kernel/debug/usb/xhci/3530000.usb/event-ring/cycle: Invalid > argument > > $ sudo cat /sys/kernel/debug/emc/available_rates > > > cat: /sys/kernel/debug/emc/available_rates: Invalid argument > > $ sudo cat /sys/kernel/debug/bpmp/debug/proc/testint > cat: /sys/kernel/debug/bpmp/debug/proc/testint: Invalid argument > > $ sudo cat /sys/kernel/debug/pcie/ports > > > cat: /sys/kernel/debug/pcie/ports: Invalid argument > > I have reverted the above drivers to use seq_read() instead of > seq_read_iter() and they work again. Have you seen any problems with this? I haven't seen any of that. But some of these files should also exist on x86, so let me try to reproduce it.