Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2558195ybc; Mon, 18 Nov 2019 00:38:34 -0800 (PST) X-Google-Smtp-Source: APXvYqy0uUWHZ6V6YwXg790RPfv51juP7ACxsmSJLauR5EBBANxJubqyBY5jyQY3dpl2ElDfqJu8 X-Received: by 2002:a17:906:2518:: with SMTP id i24mr25259752ejb.4.1574066314418; Mon, 18 Nov 2019 00:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574066314; cv=none; d=google.com; s=arc-20160816; b=qtWYme9Fn0vPlAQcj6rGptkRedcWi2VW1naJdSTJCOtmo7aqOyLtyEtFCHCxFg/IxL 8e66bhdL02b+Rix8ajvQ0KwzYSOloTMgmu+ovnm2YynMKOCbb9H+7Lh9HJNWTbcYdUvL OVKeFb5lnBi/VRTL6gOMCP8r1VRU2l+jU9GEwY4oqJgujSxKVk9wY6TXbyvEd+DoDFYg TA4w/aAWBeVjRUx2iCJw1AzLg3UD+SBZPb0tPUayXbTQSfpyvyUgsi4Mkz0W/Jxybpe+ 5Zx2O5MZ7Tz9WzChArISPj6d+wX+By9TcKDesT2/of1YJfMK2iC8otY5tqrBkPbv1sHc o9hQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=BAi3R24nZM1QLKzpsKxjwCLlCCJTW9E3eZPofZiXsD4=; b=qiocn51AyQWwmzBvI3cmYpSxcxFwKvGPnQTYt4ZEcjqcZmKtoXgKUt34eHF2Kh70Av 3KCrQBfmua9NrV4ZWYKI6dh1+1+vq8FOsvllIrKF6JOYoGYEYkvsC9U5A0kJ/XlAmQum 3IK4JSMhp4Ru/l9sbAlzbPL8T7amEPVmYyeFtU6aSa2LRUVKj6/C6mUqVJuiGvPFzlrr WftNMoWfSWWEc9IndIEPMkup5/B/qSfoe6WtWS9WMtFXiB2Zm35yol9g09A0OV3pktlB Y2Mtm6uyrjM7uBw90HKIG4Uy11blzWVAZ40Plgp7vfovvIc2dXwqmSjyDiFlPHrZMO+0 AdCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=MAggSs6l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si10624978eji.25.2019.11.18.00.38.10; Mon, 18 Nov 2019 00:38:34 -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; dkim=pass header.i=@9elements.com header.s=google header.b=MAggSs6l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726566AbfKRIe5 (ORCPT + 99 others); Mon, 18 Nov 2019 03:34:57 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39526 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbfKRIe5 (ORCPT ); Mon, 18 Nov 2019 03:34:57 -0500 Received: by mail-wr1-f65.google.com with SMTP id l7so18303595wrp.6 for ; Mon, 18 Nov 2019 00:34:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BAi3R24nZM1QLKzpsKxjwCLlCCJTW9E3eZPofZiXsD4=; b=MAggSs6lIF1JEMJN/ikjKq6YjU/z+RqN4nWfn70JoeVXuPgOJnnf5XZSWWJ+uBuVde SxhHnSz8w9hYL+4RsE3ebUBvqAkSnx8oHfi16f4BHDc4PBSQpzO2WdPyw5Sv4lTebrZU JYpnypnKW2QZCFjmZ3FFnDZjnaQ66fsSTyYvZEaF+P0qe9j3VHi+Gi0LiqPAMFLjt3+7 aAVFuRiZAVlXhIPlfVvB6EubKqq2EmAvinC32wmptECM6SspQ9aCRGzQ4OEKcAmA75x7 UYfN51Axn+tiTwKct3Mu1snwmsl9WvNfpyVuEXMonecuAdHeN4KJLGRfbUGsHe+J1CPL XrfQ== 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:mime-version :content-transfer-encoding; bh=BAi3R24nZM1QLKzpsKxjwCLlCCJTW9E3eZPofZiXsD4=; b=S8Zee8nvbQIud35udjhGFCp15eNDGIvkYvC0QoolKK4WgYHJq0z0Yap/B77z6t5GDC f2yFPrnZ5GEiPafcCIT10+X9cLI+jUiEC+c9hsPRx6/XU+Xz3n1zndpKrMOuDUqv1xy4 +ZFvXokxJMs1/xwlHWVw+o8qO4scr8vZmgK5wMxJHRfxere8c3EiW7sLmPH1Xn3jqFVS nqPYP2uo4JujG5Q0KX77vgOaObeHRhPqSpo6yoH1dTluTMqvRLWFbcU4D0WLi+VpZItF rdSDKSPW3EXc/XPwm6+LrznK32Z1R/OpPxaZCyqg3QgBJjon+Pd3dqmRdbfjGWW4fCDE BtKw== X-Gm-Message-State: APjAAAUCHt6BMEZmeS4drpVz4L+7ezL7hHOSLj/dqEbzkPtel7/JTds7 VBCKpVcsFMoisDAFMjNGcePfk+G+EiElqMXj X-Received: by 2002:adf:e58f:: with SMTP id l15mr5500849wrm.1.1574066094671; Mon, 18 Nov 2019 00:34:54 -0800 (PST) Received: from rudolphp.9e.network (b2b-78-94-0-50.unitymedia.biz. [78.94.0.50]) by smtp.gmail.com with ESMTPSA id v184sm20219711wme.31.2019.11.18.00.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2019 00:34:54 -0800 (PST) From: patrick.rudolph@9elements.com To: linux-kernel@vger.kernel.org Cc: coreboot@coreboot.org, Patrick Rudolph , Allison Randal , Alexios Zavras , Greg Kroah-Hartman , Thomas Gleixner , Arthur Heymans Subject: [PATCH v2 0/3] firmware: google: Fix minor bugs Date: Mon, 18 Nov 2019 09:32:35 +0100 Message-Id: <20191118083241.18894-1-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.21.0 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 From: Patrick Rudolph This patch series fixes 3 independent bugs in the google firmware drivers. Patch 1-2 do proper cleanup at kernel module unloading. Patch 3 adds a check if the optional GSMI SMM handler is actually present in the firmware and responses to the driver. Changes in v2: - Add missing return statement - Add s-o-b on GSMI patches - Add define for reserved GSMI command Arthur Heymans (2): firmware: google: Unregister driver_info on failure and exit in gsmi firmware: google: Probe for a GSMI handler in firmware Patrick Rudolph (1): firmware: google: Release devices before unregistering the bus drivers/firmware/google/coreboot_table.c | 7 +++++++ drivers/firmware/google/gsmi.c | 24 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+) -- 2.21.0