Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp69260pxa; Tue, 4 Aug 2020 16:50:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO9mwwoOaxoiO3PMYQZnhGqOmMX67iDs++oZpnqwZ81F+TFqAzFIpYz7G7agh/dT+jDr3A X-Received: by 2002:a50:ba84:: with SMTP id x4mr371769ede.282.1596585015005; Tue, 04 Aug 2020 16:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596585014; cv=none; d=google.com; s=arc-20160816; b=r7ItgUojt6xhSdqNqKpaU1JyQCrWywzkwZhyKX0TyhiBFv6ikFFzhf5PrZIkPj+2jy myuAK/ZYIHC/qd/D90zHz3O/m5VIlJGAMj2wLU2+mMh68zdX5gEtDI8vWXnxuVa58flu 0QVWKV4H2M0McoC+o1DuLoCBTWgfCJbbcxFZkBniDOLn7jxdsfMdufKQeSzRqgfEyZVz UWBxC7pVFRMgak+Y6MWmrAbTcqniWdO0waqjdcaMj44HGilGku7PWthupj+oHLddgezD OjyE7lvb5jQ3dYoKzH6WbtzEE1q1Nwko1AwvKyXvTjM5yeb9fOir0Jkexe3Vrr8NFgrV /DKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fUdum2YodPA2E66u4yOYUdwWKZvo61HusyJjK2vEce0=; b=asIVF81sPS4PuaNm9/5ODOwjon3C8XwDyGcst4l60yegqBvVJZkNWfvouRM3/UxIr7 6FMJz3Sdz/wCwlWjcCtB9CxLDEh7CfEskKg7c+GUahMMTzgfZKswcs0cfG5cU1RcmsTY OmNo9VY6YC7WDHvYy3NZnkpVlvCh48qu3jmCvEp86X4nNXHUbZTOBS/27VrNKbsIf3DF TP7ta/PHOi8JiQL9PFQFuIyJ9wYBvdDvX9tnDbqvwREouYZAltiqwInCwLYw0Ngj7Ydg Rq59is8pM7DyOR0rrHh2FauDteQ/WJHJZ82reaCuCcP9h544FGdDvxVzZFrLO8S0HOjz 44vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc24si190074ejb.398.2020.08.04.16.49.51; Tue, 04 Aug 2020 16:50:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726925AbgHDXsV (ORCPT + 99 others); Tue, 4 Aug 2020 19:48:21 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:39018 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbgHDXsT (ORCPT ); Tue, 4 Aug 2020 19:48:19 -0400 Received: by mail-qk1-f195.google.com with SMTP id l6so40135091qkc.6 for ; Tue, 04 Aug 2020 16:48:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fUdum2YodPA2E66u4yOYUdwWKZvo61HusyJjK2vEce0=; b=MkA6skdvUJJXqCDfMMXtuqhYmnzF3psppqVNbnQF0l8UIAyuZLJr83VVPAj85QZCP+ 7931mwPelBJ+DPmvzC58Tlm2afDFyO2lyVBocgmKsICGZu9JOgsAcVKn/1ZFBOpuZjHM w1TN/3JtAgiLIYRHl2+EyjbWBpjPGRjmjk9pBi2ePCYTm/mnLeFQglarsob4+L5zm6p4 SgzhiKTDTi2IlomDqka9GmAMRGicTiNa2T5i7b8TrqMVJD9aEQHcjJiPDj+2VgIO82s3 poWfBOibXVIfUblb/Cbm0DhXDujtMCA8kvKu6xAERUB6/Lvpmok3lxE/niUlsFnMxcv+ dchg== X-Gm-Message-State: AOAM530kwxtRMdhC7T2OYbefIoXgJ8n3RglXRY9Vc/pjdJLtt4N+lnr/ 2TmonLOEi+E7FI59FtIEOT7MDQv1 X-Received: by 2002:a37:a906:: with SMTP id s6mr731354qke.320.1596584898488; Tue, 04 Aug 2020 16:48:18 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id e61sm526475qtd.20.2020.08.04.16.48.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 16:48:17 -0700 (PDT) From: Arvind Sankar To: Ingo Molnar , x86@kernel.org Cc: linux-kernel@vger.kernel.org, Nick Terrell , Andrew Morton , Greg Kroah-Hartman , Linus Torvalds , Yann Collet , Gao Xiang , Sven Schmidt <4sschmid@informatik.uni-hamburg.de> Subject: [PATCH 0/1] x86/boot/compressed: Use builtin mem functions for decompressor Date: Tue, 4 Aug 2020 19:48:16 -0400 Message-Id: <20200804234817.3922187-1-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <9753118F-84DD-44C4-8B8C-F45B8EE0FC14@fb.com> References: <9753118F-84DD-44C4-8B8C-F45B8EE0FC14@fb.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch drops a couple of lines that prevent the decompressor code from using __builtin_memcpy (and __builtin_memset). Note that Nick Terrell's patch [0] will apply similar changes directly in the decompressor code (in-kernel and upstream) for LZ4, and the ZSTD code already is partially optimized to use __builtin_memcpy for hot memcpy's, but still improves a little bit more with this patch. [0] https://lore.kernel.org/lkml/20200803194022.2966806-1-nickrterrell@gmail.com/ Arvind Sankar (1): x86/boot/compressed: Use builtin mem functions for decompressor arch/x86/boot/compressed/misc.c | 7 ++----- arch/x86/boot/string.h | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) -- 2.26.2