Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4431149imb; Wed, 6 Mar 2019 13:15:35 -0800 (PST) X-Google-Smtp-Source: APXvYqyaaqC9If6v+fweWVhYSROSH45faBenTqvKZE8srPiH6rz36UXnFU9frhg0PIiOWUCZLCbH X-Received: by 2002:a62:48c1:: with SMTP id q62mr9247629pfi.113.1551906935732; Wed, 06 Mar 2019 13:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551906935; cv=none; d=google.com; s=arc-20160816; b=X7WKPsql9gqZ9/mV3Rbz6I2uXy6gjGvz2jHxINmqB7dd5FOFaF/0ZQBtmAI/8F1onC 8hLZ1goS7dX92Rf4czZynx8A1cq3JGQEp2DN6qpdlQkZD31Y2Yl6cC1AjMZtNpZw3G4C cuPdF22l5n2Sx0agPASEBgreTbuuH7iUrYtn5h87ujYZtXx7+D5+2nVso6SEOIsvZN5O r648TEKYYA4sbvqds3QKBk0KlAf/ryPNly2dY/icDcBVmLlOusJkLiNMxL3B+BFKWbBd 8WS8sIX/N8K0mZ/Py4uE2KuVLBG3THZw5QEk564Y0W3sLxZHDKTXgv9+vFoIk2tJY5pl SmsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=xjSCCH5cZeM2g+4Y4hWBFRBJDdVgqqYcqykhcFehrGY=; b=GrpXcjC1PmkNmkwvRK9j+giUYA2u31avQuqh4tCMuqxjWY0U8ujyaudr4alq6MsmrG DAXaX8AZ39nM9ev5CkcFYAAK2HtQOsV6wOgb3t7x1i1TMU4ke3J0DrcbNET0KP3gyiPe xKPv7O3ZwaU6Gt84zj3jgCYj0veSfDYfXqbNdEbrb0wGKYmqOSkhB/pojg2sg2CQeo/o 6MO8tgUx/j45IT8upzRGcUceUxurkEaCUTEShueA6mFBTFOmtUG/EdZJy2gfpykFQoZ3 3zxo4Adqdq9CZM2AUiq1vqgPOxvEnP7r4NCP8Yzq9AfucqmAInIMnWS6n6MNSza1RRGh trKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si536171pgk.150.2019.03.06.13.15.18; Wed, 06 Mar 2019 13:15:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730479AbfCFULJ (ORCPT + 99 others); Wed, 6 Mar 2019 15:11:09 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:52222 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbfCFULJ (ORCPT ); Wed, 6 Mar 2019 15:11:09 -0500 Received: from p5492e2fc.dip0.t-ipconnect.de ([84.146.226.252] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1h1csc-00043m-I7; Wed, 06 Mar 2019 21:11:06 +0100 Date: Wed, 6 Mar 2019 21:11:06 +0100 (CET) From: Thomas Gleixner To: Matthew Whitehead cc: linux-kernel@vger.kernel.org, mingo@kernel.org, luto@kernel.org Subject: Re: [PATCH] x86/CPU: Use correct macros for Cyrix calls on Geode processors In-Reply-To: <1551902228-21319-1-git-send-email-tedheadster@gmail.com> Message-ID: References: <1551902228-21319-1-git-send-email-tedheadster@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew, On Wed, 6 Mar 2019, Matthew Whitehead wrote: > There are comments in processor-cyrix.h advising you to _not_ make calls > using the deprecated macros in this style: > > setCx86_old(CX86_CCR4, getCx86_old(CX86_CCR4) | 0x80); > > This is because it expands the macro into a non-functioning calling > sequence. The calling order must be: > > outb(CX86_CCR2, 0x22); > inb(0x23); > > >From the comments: > > * When using the old macros a line like > * setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x88); > * gets expanded to: > * do { > * outb((CX86_CCR2), 0x22); > * outb((({ > * outb((CX86_CCR2), 0x22); > * inb(0x23); > * }) | 0x88), 0x23); > * } while (0); > > The new macros fix this problem, so use them instead. Tested on an > actual Geode processor. Thanks for cleaning that up, but now the old macros are unused, so please remove them entirely including the comment. Thanks, tglx