From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8920EC0; Thu, 5 Dec 2024 08:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733386445; cv=none; b=DE0VQFi+tfYrpZr0nW8RuO14bN3D+4wM2AyGPjOMzuh5feCQ9YOO7xiuEgTBsw+M1LC1pAsUZGRBDy9K8pMLszYBmDUrPLpAaZXXJJuDViC4kZnSw5GWZ6Cwiv1aLMuhLa73gXxXfAAI7mePSEJ97FBYOwzeTVJWb0djuzDqrx0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733386445; c=relaxed/simple; bh=uG4kweo2R0LPJaPBPblkzf1XyKYVzjFv1M2jhqBoBEo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lVAG3P/jA5T7dPy6RwjxI6UJUJD2dEAU+o/cIplHLsvCiXIuXwxkFsXB8A2z/ApzLqExbX4h1KPbGvB5mUyeHq0vNfaNmPIYeXSwO4uzLBY93SbSCQeBxgtEv45CIl+yYAzHGRm4ZmgJvJ+FU2hiamHXwspffjlz+kKQc2ZTUdY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=fail smtp.mailfrom=kernel.org; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org X-CSE-ConnectionGUID: hjziUAGvS9ihPHjuvp2fzw== X-CSE-MsgGUID: +TtJ3r9aTV+2oAIWt0O/DQ== X-IronPort-AV: E=McAfee;i="6700,10204,11276"; a="44291665" X-IronPort-AV: E=Sophos;i="6.12,209,1728975600"; d="scan'208";a="44291665" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2024 00:14:03 -0800 X-CSE-ConnectionGUID: fVDbkDdYStehzmCp4b0FYQ== X-CSE-MsgGUID: lVV0iEYnTiS1VgeoRO+KOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,209,1728975600"; d="scan'208";a="94210168" Received: from smile.fi.intel.com ([10.237.72.154]) by fmviesa008.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2024 00:13:59 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.98) (envelope-from ) id 1tJ6zk-000000041VC-1mEX; Thu, 05 Dec 2024 10:13:56 +0200 Date: Thu, 5 Dec 2024 10:13:56 +0200 From: Andy Shevchenko To: Linus Torvalds Cc: Arnd Bergmann , Arnd Bergmann , linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Matthew Wilcox , Sean Christopherson , Davide Ciminaghi , Paolo Bonzini , kvm@vger.kernel.org Subject: Re: [PATCH 09/11] x86: rework CONFIG_GENERIC_CPU compiler flags Message-ID: References: <20241204103042.1904639-1-arnd@kernel.org> <20241204103042.1904639-10-arnd@kernel.org> 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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Dec 04, 2024 at 03:33:19PM -0800, Linus Torvalds wrote: > On Wed, 4 Dec 2024 at 11:44, Arnd Bergmann wrote: ... > Will that work when you cross-compile? No. Do we care? Also no. It's > basically a simple "you want to optimize for your own local machine" > switch. Maybe it's okay for 64-bit machines, but for cross-compiling for 32-bit on 64-bit. I dunno what '-march=native -m32' (or equivalent) will give in such cases. > Maybe that could replace some of the 32-bit choices too? -- With Best Regards, Andy Shevchenko