From patchwork Fri Sep 21 17:25:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 147312 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1078841ljw; Fri, 21 Sep 2018 10:28:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ38QpYuOlTy+ZuVuNt9/zTelLxqfX2l09LMd5/yT3jsYeFGcLBLZEFfOeoq0oSRH8Rstop X-Received: by 2002:a17:902:b688:: with SMTP id c8-v6mr45699288pls.114.1537550909450; Fri, 21 Sep 2018 10:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537550909; cv=none; d=google.com; s=arc-20160816; b=vnFNwfBYkmpys03xuxGV1d8rON2+9l77ryEMj+bl4wIUIOTsITf4lOX7tz/yQfcYU4 egM1iiqJMFBilQz9BUShSKMO3d6KghvlRSJr3GoXaW4UEXMrYvmnxVNFoSY/R942VfWb XLLZjKx6iu0G9GWaWMDHeyMwEJyaWS/5bIyJ2XkVBNLQ5hMyLJcUTw1E2KH5o28gjFbH 1UIQ08dJzYp8cjSO/xNvkNQPP0zlPfos3DDG19u+R79PAOsTCNAig0SCjYpZFwxcBtf8 3qSqOysePE6MJwf5tWGdFv7ez/tMg8+OOc9rErNcjfukwWqraty7UHrV5foWJFYi3f/d ZlmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=W/eDJAd2+C4+rWHYzrbmpTCY7dGIpHqZSiOYUilvyNw=; b=WrK1sbWPSlrL2dnV+d4fzmrV7bR74y+K4e1zIUcHDChResXGft8lUufmZ84Q4h4Hbj jxVf2PRvHh+02Dcc/gAGLroL1BFL6mEn7vGKrP1IpNSORly8r0ybibQBRicyuLvqUxVE v2WYVMfvYUxBdO3jWPo2M7iUxJGWGhmTbm4AREWX6wVMZeoemGLYvo8TVQqXu1SWSghR oy+gLpDOKDgrvu9WhHJp0UdEKvdoiKBEXPwoEPIXj3pwFjws9jBTJn8wiAKKrbIcKFTa b3v8zInq4A5zx/SteiJmZdkSnyJmJ65vVt4YdDoaTuErCQZg6jSC1nWhkm5fh+EMHEZM 5uXw== 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 l14-v6si327352pgi.34.2018.09.21.10.28.29; Fri, 21 Sep 2018 10:28:29 -0700 (PDT) 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 S2390869AbeIUXSE (ORCPT + 32 others); Fri, 21 Sep 2018 19:18:04 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:46773 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389545AbeIUXSE (ORCPT ); Fri, 21 Sep 2018 19:18:04 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 73A0B130405E8; Sat, 22 Sep 2018 01:28:09 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.399.0; Sat, 22 Sep 2018 01:28:03 +0800 From: John Garry To: , , , CC: , , , , , , , John Garry Subject: [PATCH 0/3] HiBMC driver fixes Date: Sat, 22 Sep 2018 01:25:24 +0800 Message-ID: <1537550727-21257-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset fixes a couple of issues in probing the HiBMC driver, as follows: - fix the probe error path to not carry an error code in the pointer - don't use invalid legacy fb bpp/depth combination Another more trivial patch is for using the standard Huawei PCI vendor ID instead of hard-coding it. Tested on Huawei D05 board. I can see tux on BMC VGA console. John Garry (3): drm/hisilicon: hibmc: Do not carry error code in HiBMC framebuffer pointer drm/hisilicon: hibmc: Don't overwrite fb helper surface depth drm/hisilicon: hibmc: Use HUAWEI PCI vendor ID macro drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 1.9.1