Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2721998rdb; Fri, 22 Sep 2023 06:51:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHCOpACMzHp0BFyCGUc4Jw05hCEZB1W6qW65eVFsRAuTiZppCr4PXmnmG4VqupWB4a5dgq X-Received: by 2002:a05:6358:341a:b0:134:de8b:17f0 with SMTP id h26-20020a056358341a00b00134de8b17f0mr10243831rwd.19.1695390698245; Fri, 22 Sep 2023 06:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695390698; cv=none; d=google.com; s=arc-20160816; b=DgO7o1+waJsy1G9Jr7hgsHmSSBZ1RzyGgyhSz2Z/kf7K2b8eiASnahWhqlE29fW83W 6P/gWyOfoYm2QY10J0oL9Yiy6ZNLRAR37t0+pcGkMNoq2pyhzMmrkr66L9QpYGyRh+IH XCtqCL1HvXkMplvQrdP/LFQShaLc/dRdi66BbDAhA8vCz103whVWcHYhnk9+EMiuhTmp RgyPOD81POLHgU5rVVSUHZosieZk7LP9YzZNelxzmTdd9a9PwWbxwQ/RaIwF7JRz5nOw zZ2zKk4J4uNjme0YEnLd8qtfg+GV2uVmJKNuv6jJuzubbYOzif4ycF55mABoOXvAce2w jwcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GiW7xPy++se+q6i0olY89hLKZg8oY2P2U269iGcbHgc=; fh=q0oUyXkCVvPdVv9UxUcF75pUkrbLLHCXiFuSxMyEG2A=; b=Cw1rZ+wMVJiYsAGNCLRITquBBFnHJH9ykZ7HqgftAvxZka5VSxYlDphyIna82VfODc 7s9dm50HTzwflKYvUg2WgkZqM7nx1cWna3h+dOY5eWtQEfpVVszKsOv8tmUrZ144Q8q/ sgVQSmRxkPDVjH9A5ut4fnLdehgPEPTwuXzKxGTvTOwy6RDcj1TnRMT00WZz01D1pFhT +suRuxgp/NhjqUAN0PgV1Och/oMxI+SAxiv4xRxp/lw89ykwTXfQeC5qoJSrr7miXTOW rH+EgwLsvOwTVEgJVhTCcEXyYdvpBhm+thDXolgaQEL4osJjbeduKRgG4YPmjZTZpLrK wqBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BEGoQLJO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id w29-20020a63161d000000b005702257f32csi3747021pgl.840.2023.09.22.06.51.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 06:51:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BEGoQLJO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id AA0A683C1F00; Fri, 22 Sep 2023 04:19:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233536AbjIVLTT (ORCPT + 99 others); Fri, 22 Sep 2023 07:19:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230156AbjIVLTO (ORCPT ); Fri, 22 Sep 2023 07:19:14 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 380A6FB for ; Fri, 22 Sep 2023 04:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695381503; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GiW7xPy++se+q6i0olY89hLKZg8oY2P2U269iGcbHgc=; b=BEGoQLJOwGFJEqrSzmFPNwGUyqB0uTCE7frGmONpl5zYpzdTTQACGy47ruKmQThr71jkOd LraBedyUdVZmzbQzb6XpGCsUhuh7Y5f8gv9D+LqTy3O2UGGQRQY2S2TP0lYlUIMVQFUo/0 nGTQdalaFJsfs+LSEy5vouV4NsnALEM= Received: from mail-vs1-f70.google.com (mail-vs1-f70.google.com [209.85.217.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-321-cCfcGaWXOoadAYWiBTylqA-1; Fri, 22 Sep 2023 07:18:22 -0400 X-MC-Unique: cCfcGaWXOoadAYWiBTylqA-1 Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-45265939145so859888137.3 for ; Fri, 22 Sep 2023 04:18:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695381501; x=1695986301; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GiW7xPy++se+q6i0olY89hLKZg8oY2P2U269iGcbHgc=; b=coPITD9yXXLchtJCoOWmnsAlOUbHJLUD+whAqleKv3JRkhMkwZRJxb7uECLTMxbcze t3h8+Nkmx2B4JMOhY1oPbJABtotCvAqBlInHciXOZAuVfCH9+3pCAu5lrr/8GV30V7rO fsxWnUVdqmlzEiD7v1YaMJlrRkUHql/Sx4r5DUyr109lSF3G4urFI5F1YZN4Bftadx99 Q7/SMDQCcAQ+sDiMISgK0cp3Kcm+qBxxVIricdIXOuOvyIlOaaYr33/4HrR76xiigqk5 pPbb+xsY+eC/1GLg6is4I6UXt6lHAZvaezOQgOmK8yiuf2OletiPBMkzXGg3YXJ07Fmr Mp7g== X-Gm-Message-State: AOJu0YxI7dc5XRfVwblcs/mfueupxgDrMOL3h9FfAbcY+NujV2akYah+ O+NTi+afwHm8ixf82MehugdBQnxBAgFthsliywSkPxekGFwtYLpJ4k+U+flO3LptAeG1hh7ovMF /+9R4RIuORdfrzMvaqg2Z4e1Nl5XAT24GcL2zyXei X-Received: by 2002:a05:6102:24d:b0:44d:626b:94da with SMTP id a13-20020a056102024d00b0044d626b94damr7897842vsq.32.1695381501551; Fri, 22 Sep 2023 04:18:21 -0700 (PDT) X-Received: by 2002:a05:6102:24d:b0:44d:626b:94da with SMTP id a13-20020a056102024d00b0044d626b94damr7897831vsq.32.1695381501312; Fri, 22 Sep 2023 04:18:21 -0700 (PDT) MIME-Version: 1.0 References: <20230921114940.957141-1-pbonzini@redhat.com> <169537583818.27769.18320521458994415527.tip-bot2@tip-bot2> In-Reply-To: From: Paolo Bonzini Date: Fri, 22 Sep 2023 13:18:09 +0200 Message-ID: Subject: Re: [tip: x86/cpu] x86/cpu: Clear SVM feature if disabled by BIOS To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, "Borislav Petkov (AMD)" , x86@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 22 Sep 2023 04:19:20 -0700 (PDT) On Fri, Sep 22, 2023 at 12:26=E2=80=AFPM Ingo Molnar wro= te: > It's a bit sad that we are duplicating identical code. > We are doing it in other cases as well: for example nearby_node() is > duplicated between arch/x86/kernel/cpu/amd.c and > arch/x86/kernel/cpu/hygon.c too. It is sad, and yeah I looked at nearby_node() to see if that was neverthele= ss expected. AMD and Hygon pretend that they are different, and use different families for what is effectively the same processor, and that's silly. In fact back = in 2018 (https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1741155.= html) I complained that if AMD and Hygon are organizing the family numbers so that there's never going to be a conflict, it makes no sense to have a separate vendor at all. Yes it's not a lot of code but sooner or later some change will be applied only to amd.c, because honestly who even thinks of Hygon... Paolo