From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E62C153585; Tue, 9 Jul 2024 08:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720515376; cv=none; b=LsLayn/gDHVqeb/rOqukY+EtJCsHhFNftOfh27jVn5LOBzC/RASSOnQ4NPVE4zqKEm638RojYQBi3D79UzQClFC/qEhLwaJz9ycdW7c+G1FlUDCfmvUYMbe3FJKmvjGQXLfdEBwunTsTCBhlOtZVY2RzDrGyyS1LE4dnKJTDQP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720515376; c=relaxed/simple; bh=3LfxXvuO6VNppBlnfF96IlTpz9hK+UQ+Wy7rNs6Lxm8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jrdHL5PXQmFHTxnhpd4rb9o4BDAyGvH5T1jaM3OvJXWpJLjG3fmS1DfOEvoFauD6B3857+Vp2fDEcFr3tdySJ2Yfzjdo3rKSm+g6Q0kGaHVAxdVB+daQxfw+CxG+MKrVnQ1Y+sadW7BtOPHGZ4gCSHBYow+MPwhiCTOt8nVARUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1sR6dK-0000Po-00; Tue, 09 Jul 2024 10:55:34 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 281E9C0411; Tue, 9 Jul 2024 10:53:38 +0200 (CEST) Date: Tue, 9 Jul 2024 10:53:38 +0200 From: Thomas Bogendoerfer To: Jiaxun Yang Cc: Daniel Lezcano , Aleksandar Rikalo , Aleksandar Rikalo , Chao-ying Fu , Geert Uytterhoeven , Greg Ungerer , Hauke Mehrtens , Ilya Lipnitskiy , linux-kernel@vger.kernel.org, "linux-mips@vger.kernel.org" , Marc Zyngier , "paulburton@kernel.org" , Peter Zijlstra , Serge Semin , Thomas Gleixner , Tiezhu Yang Subject: Re: [PATCH v4 07/14] clocksource: mips-gic-timer: Always use cluster 0 counter as clocksource Message-ID: References: <20240511104341.151550-1-aleksandar.rikalo@syrmia.com> <20240511104341.151550-8-aleksandar.rikalo@syrmia.com> <8b133053-247f-414b-9c01-e0e5291e347d@app.fastmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8b133053-247f-414b-9c01-e0e5291e347d@app.fastmail.com> On Tue, Jul 09, 2024 at 09:47:52AM +0800, Jiaxun Yang wrote: > > > 在2024年7月9日七月 上午12:36,Daniel Lezcano写道: > > On 11/05/2024 12:43, Aleksandar Rikalo wrote: > >> From: Paul Burton > >> > >> In a multi-cluster MIPS system we have multiple GICs - one in each > >> cluster - each of which has its own independent counter. The counters in > >> each GIC are not synchronised in any way, so they can drift relative to > >> one another through the lifetime of the system. This is problematic for > >> a clocksource which ought to be global. > >> > >> Avoid problems by always accessing cluster 0's counter, using > >> cross-cluster register access. This adds overhead so we only do so on > >> systems where we actually have CPUs present in multiple clusters. > >> For now, be extra conservative and don't use gic counter for vdso or > >> sched_clock in this case. > >> > >> Signed-off-by: Paul Burton > >> Signed-off-by: Chao-ying Fu > >> Signed-off-by: Dragan Mladjenovic > >> Signed-off-by: Aleksandar Rikalo > >> --- > > > > Applied patch 7 and 8 > > I think it won't compile without patch 1 being applid. > > Thomas, do you mind to apply patch 1 for now? Given that it's just some extra > function definitions. no problem, I've applied patch 1 und 2 to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]