Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7058014ybl; Wed, 15 Jan 2020 14:51:30 -0800 (PST) X-Google-Smtp-Source: APXvYqz5AITeUg8tLjrR8OnIIgWsXLYAcppeUyvZlYcOeBO986JxT8F+Opjq2REr3NUpjsu0EhDz X-Received: by 2002:a9d:4902:: with SMTP id e2mr4541258otf.116.1579128690407; Wed, 15 Jan 2020 14:51:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579128690; cv=none; d=google.com; s=arc-20160816; b=i5zEO76IpJ0Jy77Bbk0VKHC+oEClg2EeNzubC7C8lhjBM2yzEfJXZsZ9mGmh1q3mRq uSWzVCu5olpfI4ceJqUfnBIcgwuBmsO1PwyIeygbzlihciu83vBtdZpMXwDzcZfUriAP nsgZ5CZw2am6n2xkBV7jVcjeB+k8eSdg1XUzEQW6HiRlJ8MVT/+uTPd6WjiL0+F9yj9j UZFe7s2PHCSIDjVOy9O73BGK1v7u/C6Gfbr3X9fJaLcuOZBLDX4gp6cbomdO0h9+wap6 0pM4KG3Ww2KnSKx7+WtvV0NlGY2RE+o9STY9katCr1ypv3fg3pERhjId83RUoRGhvah/ FH3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=dHjR+eVq4hk5fVS+E8EeRJkUY8UHVZe2lCv/tFbfwhI=; b=Xg5YYV6agt1NYR6LX2x6sN80JpvKgUzzt3vaojt6fgTK+MhzBXqvSuBLSL9IKbqnvm 2SI0sDasqou9YivBRnRBhG6nYqw6+Qo2WSdwly/mKyFrsrD1UtCyc5CxE3IGwXUiOgBl MS0/IKJXbf4admeKTgFIYdSLsCntCWlOJmf8wAMXIzfZwIERHDXryFccV/vEc9kRSGNN xCXCHTXeTbMsx5kci5Gzum7nKSKV8i3o0DuLpBek/00k9AmNvlJoNbZql9hkX4hilUHN bj6cLG6gFcyCMYoxP9Et9zTVdyOk3ebUHCq4WoP2NrB8dMXgrRhJ5aZ58yJDCo6oosDD tSbQ== ARC-Authentication-Results: i=1; mx.google.com; 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 i20si11378786otk.270.2020.01.15.14.51.18; Wed, 15 Jan 2020 14:51:30 -0800 (PST) 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; 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 S1730275AbgAOVuZ (ORCPT + 99 others); Wed, 15 Jan 2020 16:50:25 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:49328 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729100AbgAOVuY (ORCPT ); Wed, 15 Jan 2020 16:50:24 -0500 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1irqYO-0001iT-88; Wed, 15 Jan 2020 22:50:20 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 97E47101228; Wed, 15 Jan 2020 22:50:19 +0100 (CET) From: Thomas Gleixner To: Paul Cercueil Cc: Maarten ter Huurne , Daniel Lezcano , od@zcrc.me, linux-kernel@vger.kernel.org, Mathieu Malaterre , Artur Rojek Subject: Re: [PATCH v3] clocksource: Add driver for the Ingenic JZ47xx OST In-Reply-To: <1579121936.3.1@crapouillou.net> References: <1579110897.3.0@crapouillou.net> <87y2u8xzq0.fsf@nanos.tec.linutronix.de> <1579121936.3.1@crapouillou.net> Date: Wed, 15 Jan 2020 22:50:19 +0100 Message-ID: <87muaoxuck.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Paul Cercueil writes: > Le mer., janv. 15, 2020 at 20:54, Thomas Gleixner >> That lock still a massive contention point as clock readouts can be >> pretty >> frequent depending on workloads. Just think about tracing ... >> >> So I really would avoid both the lock and that ugly 64bit readout >> thing. > > The 64bit readout thing is gone in V3. > > The lock cannot go away unless we have a way to retrieve the underlying > mmio pointer from the regmap, which the regmap maintainers will never > accept. So I can't really change that now. Besides, > drivers/clocksource/ingenic-timer.c also registers a clocksource that's > read with the regmap, and nobody complained. I don't complain. I just told you that a spinlock in that code path is really suboptimal. I missed the one in the other driver, but the same problem exists there. Thanks, tglx