From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9059946D2DB for ; Tue, 4 Aug 2026 15:58:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785859087; cv=none; b=GUA0x4uP4nlNEx6hL+Wn2R50y80JhzEnwPwLDFAOQ9YTfRelBRwarefJdTpbs6pJ+7Y7nx/IMYHv70TlhVJQ3jmhuEnti3AUxhE6vF6+pz/35sGbhkirC+64ePzWaZw+SiXV3u48ONIHvqt8aeeMx0CdOeP18ndK6T/s1WwA52g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785859087; c=relaxed/simple; bh=KhwAtM0UItUER3IXbqDdE6lFQSu0rls/C4cvOSiwBqs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EL3RCRMXRKZACwV+3NVpTfiHlr1M4umBtfvghs0I68HdwqT9RgDQlypr1YGOFUqLRtGJaQ9XpKeuZAI/Jv3L57E2+LJVl4NyiAMMxjLcGC2O3ruBkvhBFqdDl/AWS5+vqlWbGGJsnUmGr8L8CLvXWOQ3cmgR7dMdAifrXS21ICc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=gcTL6/en; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="gcTL6/en" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 44FF71476; Tue, 4 Aug 2026 08:57:58 -0700 (PDT) Received: from arm.com (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8074F3F86F; Tue, 4 Aug 2026 08:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1785859082; bh=KhwAtM0UItUER3IXbqDdE6lFQSu0rls/C4cvOSiwBqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gcTL6/enZyscEbetKmwZQI4x0bObIGbedbdFRkHqzrrWh99MWPF4qZXLAllUzW2Ts hlQk3JUZY7Acwc3s6S7+rM4zpar54T7UdaPRifuum1GsaVFDWdbibYGX5ZdpTEOGat 1Qi3cBITNrwwfYcseriAQhhW1egTZHyLFgQo0irA= Date: Tue, 4 Aug 2026 16:57:54 +0100 From: Catalin Marinas To: Bradley Morgan Cc: will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] [Question] memset.S old code stuff Message-ID: References: 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=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Jul 23, 2026 at 12:17:15AM +0100, Bradley Morgan wrote: > Hey folks, sorry for the crazy asm emails, I see that in memset.S in > arch/arm64/lib/memset.S, the code is incredibly old code, like 2013 old > (heh). > > I was wondering if I could say, adapt it from optimized-routines (same > treatment as memcpy.S essentially. I think Robin attempted until he realised the use of the Q registers in the Cortex Strings library, mentioned here: https://lore.kernel.org/all/cover.1571073960.git.robin.murphy@arm.com/ So that's where Cortex Strings diverged from what we can use in the kernel. -- Catalin