Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1294528ybg; Fri, 18 Oct 2019 15:22:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMraUqxrhfPzBTWCdAaDl5GD886pJ8gwRc8fRz5w8p4O7MVZOzhLkTqzOYBvti+ET+NvTZ X-Received: by 2002:a50:8b45:: with SMTP id l63mr12262200edl.31.1571437330252; Fri, 18 Oct 2019 15:22:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437330; cv=none; d=google.com; s=arc-20160816; b=mc70Dxpu9dip/Zd0iOmCQETQMw9jd3/Y0Pfnayx0cRyvmpobaK0lojkMXtkD9DKK8/ die/boTYLM/w5tFnISksOhAQ066xAc6fcd54HbUkYTf7OSSIII6fKhrUdi18xJYrWG6J xyeJUEnJzCs7cXN6MsxO1gfUn3hdqdMg0DsJiyqg/VabI5w7H6I3sKbBxuzxDujB7Czy UvN+dm/dWMENvFHLTJsO51bWkdXaVccdtf8VJN8WOPRu/FRT8cmNfcqoJH8vtDJkUyMW q8iuE5qmcRRj5KtHGHXnQzpwRiwdavh8HJQ0C7UXf0O+xX08Et2zgD+WcCP+i+7oz+Uz W65Q== 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:dkim-signature; bh=N2Epa6eQ8h5nF5GpuTglLChG4vrT18flVFq+2Tba3tU=; b=E0oS87n3lOK61MSvHzxrPFc6YDsuqN/5nEgH5+uGYYy3WQapor14JBHgKkL67937D/ QDZUsbVVNQR8rs8p7UurfPre6ICSOzeQkrKlbsN7R1EIfF8MJrUdqkJY4YQPdH3h8ODe f/WyO5K2na7szi3cDM+1Hcj0vpPXeli1WAu7q4rQJ/EN9gGVBnoUOyBjgyumO98SkzpV 2wl3+kw21oiOpuNWatM/8Jrw9zi3psLUa9oSf0yzPRHV1S6o5yEz7Y8KJgzInk20ZJgB pKhe9ZTo4jrFFv4zpDc+doaK2K6mb5WEor40Fcxj/BFs8WYB4llMFbCvo3QqfCymWtcd eFMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=OlkVx09T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b42si4969375edb.11.2019.10.18.15.21.47; Fri, 18 Oct 2019 15:22:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=OlkVx09T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441188AbfJQVPV (ORCPT + 99 others); Thu, 17 Oct 2019 17:15:21 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:33439 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394781AbfJQVPV (ORCPT ); Thu, 17 Oct 2019 17:15:21 -0400 Received: by mail-pg1-f193.google.com with SMTP id i76so2082625pgc.0 for ; Thu, 17 Oct 2019 14:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=N2Epa6eQ8h5nF5GpuTglLChG4vrT18flVFq+2Tba3tU=; b=OlkVx09TcbkuPAXc8d6cqWufOTcsnhWRgl3HOwAl4hbpqZkM6z0ulZo4PsOhz4PQO/ feHz+1mG+8YSj40XCbrG8n+RIU88IrEijvpXnT4G573h1cDw1sDXLAxwCQDb8JednPiq rUN+VPHBH0AFMftUymDESeQZn5JKLn/evJ888= 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:user-agent; bh=N2Epa6eQ8h5nF5GpuTglLChG4vrT18flVFq+2Tba3tU=; b=dZKTvm4FpNIyfRSWaDhwTChAr53rGapnwry9NxA+/e18Pq2M/G1n9KfhwifJ/dRkFz SZdDmMj64r2J8n+e1DCohnQy6nLyUQw8HyCnANUBH/2HgjhEQd+oPDund/OsUAuhHWQA LLGrVVUy7ZBjRU7eBx9s1ZoEny4Ec/6Mk8TzAHj/2nxRskjgKLGHb/oDU1bMB0qVtQO/ 5hjY+mlvM94A+9mDC+ufBVBue3ot8Pr2YbXZhK3TDuJmkkDdv43vC0odrrQ7HSmNllxB ssmcLHQnpN8WknxhRZt+N0MYwsRnesqDMjjwI7Km4RpYsHTAuzwmUNzkOaWLQoUsL7Y/ KP4w== X-Gm-Message-State: APjAAAWqsVNRDt9P+P9E0zWKVdWv8UPvu8hwwtP9qhAACFPZ7gKj8ep0 Lh+BB2104Lq7aUYLbw1zp4tasQ== X-Received: by 2002:a65:6082:: with SMTP id t2mr6424176pgu.363.1571346920389; Thu, 17 Oct 2019 14:15:20 -0700 (PDT) Received: from shiro (p1092222-ipngn200709sizuokaden.shizuoka.ocn.ne.jp. [220.106.235.222]) by smtp.gmail.com with ESMTPSA id r18sm3390292pgm.31.2019.10.17.14.15.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 14:15:19 -0700 (PDT) Date: Fri, 18 Oct 2019 06:15:15 +0900 From: Daniel Palmer To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/4] ARM: mstar: Add machine for MStar infinity family SoCs Message-ID: <20191017211513.GA12691@shiro> References: <20191014061617.10296-1-daniel@0x0f.com> <20191014061617.10296-2-daniel@0x0f.com> <20191016203219.GA5191@shiro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 03:02:22PM +0200, Arnd Bergmann wrote: > > I've moved this into infinity_barriers_init() using ioremap() as suggested. > > I'd like to keep the fixed remap address for now as there are some > > drivers in the vendor code that might be useful until rewrites are done but > > are littered with hard coded addresses. > > Maybe keep the infinity_io_desc as an out-of-tree patch then? You can > simply do both, and ioremap() will return the hardcoded address. That makes sense. > > I've taken the lock out and tested that the ethernet isn't sending garbage > > and everything looks good. > > I would not expect a missing spinlock to have an observable effect, the > question is more whether it's correct in all rare corner cases where > the barrier is interrupted and the interrupt handler uses another barrier. > > I think it is, but I would recommend adding a comment to explain this if > you drop the spinlock. (or a comment about why this works with fiq if you > keep the lock). I think I'll drop the lock for now and add it back if it becomes apparent it's needed. I suspect it was added in the vendor code out of habit instead of need. Thanks for the input. Daniel