From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.175.24.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796469554; b=sWz/B4wIEWK1iZU/tdwqAchWF4mjrT0p3eMR+ZGKKkl2AA9WytnY8j+Fbf3STJrsMVVY MHyJVhEc/lYx6WBKrVX0GR/5WTWNrwjmOdUZKLv74i11CsStfE4cLXk6hRkD+nrkZHPDj EYq8XFrsh3Rwj4ft0rzhxbXorJoY+Kbz3AsfsEgmvZQQyec8psyzsLMsBDsYPU4Bc8qn1 cg4Z6VexLzOLzKKlTHWLlemBXXBCzCu6Wq/EY+kpC7Ie/BScqruyBA4SVbqorcjmgcL16 SrAhGUjlHWhDDgdV+FKTIuvnpomguZ1K69K+rF0ygIPEh77zCj6cThb8yONtl8OICWA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796469554; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=3ZZwYoOkt0AltJph4CwEODwqhvmMdW2+Y2p4Jk8qqhM=; b=Mu1jMDyiYS6t3DX6NXkVThYD/EgDl0HQavMKgLJAAIubpM4ZsOCh7lENfp61+4+60E81 EOwoe+6pHzM8wy2gPxIjlxE+D5dBlaGAgkhy7wdTd7+VS73e2XXwnbBPuYeT6egVQ4AlG FLLQHcDlLMV9Ix8jzFLm28CioyG90VILN2ENOr9Whj5vhgEArL4tG38L2/ag1v0tMaxtC evdX7KdtKqEulCahcKG2hOxbw/covZpJFGDoyd3HbMxa36cTrldpO8vPdzEWbVgzQbSZQ 5t0zJqFdF6ka9ZIDbMdAVFXbeJ/O65LhBIUbO2jPpBykyA4CDwdeXq70U8LKsskollw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.remote-ip=193.175.24.41 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C18C1606A32F; Sat, 5 Dec 2026 11:19:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C18C1606A32F 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: by elvis.franken.de (Postfix, from userid 10) id 9D602100424; Sat, 5 Dec 2026 12:19:11 +0100 (CET) Received: by alpha.franken.de (Postfix, from userid 1000) id 374B3C0193; Sat, 5 Dec 2026 11:47:01 +0100 (CET) Date: Sat, 5 Dec 2026 11:47:01 +0100 From: Thomas Bogendoerfer To: Orgad Shaneh Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: OCTEON: program L2C_CTL on CNF71XX too Message-ID: References: <20261019034918.3805764-1-orgads@gmail.com> X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261019034918.3805764-1-orgads@gmail.com> On Mon, Oct 19, 2026 at 03:49:18AM +0000, Orgad Shaneh wrote: > Since commit bd978130307c ("MIPS: OCTEON: program L2C_CTL, not L2C_CFG, > on OCTEON II"), cvmx_helper_initialize_packet_io_global() writes L2C_CTL > instead of L2C_CFG, because L2C_CFG does not exist on OCTEON II and > writing it hangs a CN6335. The test is OCTEON_CN6XXX, which leaves the > CNF71XX - also an OCTEON II, as OCTEON_IS_OCTEON2() and the rest of this > file treat it - writing the register that commit says is not there. > > Use OCTEON_IS_OCTEON2(). OCTEON III (CN7XXX) still takes the L2C_CFG > path, as before: I have no such part and do not know which register it > wants. > > Fixes: bd978130307c ("MIPS: OCTEON: program L2C_CTL, not L2C_CFG, on OCTEON II") > Assisted-by: LLM > Signed-off-by: Orgad Shaneh > --- > Found by the Sashiko review bot on the original series. By inspection > only: I have no CNF71XX board to test on. The Fixes: hash is the one in > mips-next. > > diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper.c b/arch/mips/cavium-octeon/executive/cvmx-helper.c > index 107b1be..c02448b 100644 > --- a/arch/mips/cavium-octeon/executive/cvmx-helper.c > +++ b/arch/mips/cavium-octeon/executive/cvmx-helper.c > @@ -1028,7 +1028,7 @@ int cvmx_helper_initialize_packet_io_global(void) > * to the cores. This avoids conditions where IO blocks might > * be starved under very high L2 loads. > */ > - if (OCTEON_IS_MODEL(OCTEON_CN6XXX)) { > + if (OCTEON_IS_OCTEON2()) { > union cvmx_l2c_ctl l2c_ctl; > > l2c_ctl.u64 = cvmx_read_csr(CVMX_L2C_CTL); applied to mips-next Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]