The qemu stdvga can be configured with a wide range of video memory,
from 1 MB to 256 MB (default is 16 MB). In case it is configured
with only 1 or 2 MB it isn't really usable with bochsdrm, due to
depths other than 32bpp not being supported so that isn't enough
memory for a reasonable sized framebuffer. So skip the device
and let vgacon or vesafb+fbcon handle the it.
Signed-off-by: Gerd Hoffmann <kraxel(a)redhat.com>
---
drivers/gpu/drm/bochs/bochs_drv.c | 7 +++++++
1 file changed, …
[View More]7 insertions(+)
diff --git a/drivers/gpu/drm/bochs/bochs_drv.c b/drivers/gpu/drm/bochs/bochs_drv.c
index b332b4d3..6cf4b18 100644
--- a/drivers/gpu/drm/bochs/bochs_drv.c
+++ b/drivers/gpu/drm/bochs/bochs_drv.c
@@ -162,8 +162,15 @@ static int bochs_kick_out_firmware_fb(struct pci_dev *pdev)
static int bochs_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
+ unsigned long fbsize;
int ret;
+ fbsize = pci_resource_len(pdev, 0);
+ if (fbsize < 4 * 1024 * 1024) {
+ DRM_ERROR("less than 4 MB video memory, ignoring device\n");
+ return -ENOMEM;
+ }
+
ret = bochs_kick_out_firmware_fb(pdev);
if (ret)
return ret;
--
1.8.3.1
[View Less]
https://bugzilla.kernel.org/show_bug.cgi?id=119991
Bug ID: 119991
Summary: Screen is corrupt upon resume from hybrid-sleep with
Radeon HD5xxx cards
Product: Drivers
Version: 2.5
Kernel Version: 4.6.1
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
Assignee: …
[View More]drivers_video-dri(a)kernel-bugs.osdl.org
Reporter: j.markus.maunus(a)gmail.com
Regression: No
When resuming from hybrid-sleep, the screen is blank/corrupt (usually
white-ish, resembling static with some random colours, but sometimes black or a
pattern of black/white boxes) and the GUI is essentially unusable as nothing is
visible. The system is still responsive, however; I can switch to/from virtual
consoles without issue (and ssh into the box).
I can reproduce this every time, but only on resume from hybrid sleep - normal
suspend works fine, as does hibernate. In fact, after resuming from hybrid
sleep I can "fix" the corruption by hibernating the system, and then resuming -
some corruption remains, but is quickly cleared by doing something simple such
as alt-tabbing or moving/resizing the topmost window, and the system appears to
work normally.
This does not happen with my HD 4670, but does appear with HD 5750 and HD 5850.
A possibly related symptom: sometimes both hibernate and hybrid-sleep take
extraordinarily long (hard disks spin down normally, but the system remains
powered and fans running for considerable time, anywhere from ~10 seconds to
several minutes after the disks have stopped). This happens with both 5-series
cards as well, but not on the 4670. However, I have had this happen even on
kernels which do not exhibit screen corruption after resume from hybrid sleep,
and can't consistently reproduce it.
I did a git bisect on Linus' tree and the first bad commit is
b9729b17a414f99c61f4db9ac9f9ed987fa0cbfe
--
You are receiving this mail because:
You are watching the assignee of the bug.
[View Less]
This series patches mainly for ARM64 supporting.
To do this, it first add virtual iommu slave device which DRM can attach to,
convert DRM driver to use common iommu API instead of the ARM32
functions, and then use DMA API in iommu driver to map, to flush cache.
The v2 patches make a lot changes vs v1, so please forget the v1.
Shunqian Zheng (4):
iommu/rockchip: support virtual iommu slave device
ARM: dts: rockchip: add virtual iommu for display
drm: rockchip: use common iommu api to …
[View More]attach iommu
iommu/rockchip: use DMA API to map, to flush cache
Simon Xue (3):
iommu/rockchip: fix devm_{request,free}_irq parameter
iommu/rockchip: add map_sg callback for rk_iommu_ops
iommu/rockchip: enable rockchip iommu on ARM64 platform
arch/arm/boot/dts/rk3288.dtsi | 6 ++
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 130 ++++++++++++++++--------
drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 +
drivers/iommu/Kconfig | 2 +-
drivers/iommu/rockchip-iommu.c | 151 ++++++++++++++++++----------
5 files changed, 193 insertions(+), 97 deletions(-)
--
1.9.1
[View Less]
Hi all
This series patch is for rockchip Type-C phy and DisplayPort controller
driver.
The USB Type-C PHY is designed to support the USB3 and DP applications.
The PHY basically has two main components: USB3 and DisplyPort. USB3
operates in SuperSpeed mode and the DP can operate at RBR, HBR and HBR2
data rates. The Type-C cable orientation detection and Power Delivery
(PD) is accomplished using a PD PHY or a exernal PD chip.
The DP controller is compliant with DisplayPort Specification,
…
[View More]Version 1.3, This IP is compatible with the rockchip type-c PHY IP.
There is a uCPU in DP controller, it need a firmware to work, please
put the firmware file to /lib/firmware/cdn/dptx.bin. The uCPU in charge
of aux communication and link training, the host use mailbox to
communicate with the ucpu.
The PHY driver has register a notification with extcon API, to get the
alt mode from PD, the PD driver need call the devm_extcon_dev_allocate
to create a extcon device and use extcon_set_state to notify PHY and
DP controller.
About the DP audio, cdn-dp registered 2 DAIs: 0 is I2S, 1 is SPDIF.
We can reference them in simple-card.
This series is based on Mark Yao's branch:
https://github.com/markyzq/kernel-drm-rockchip/tree/drm-rockchip-next-2016-…
I test this patches on the rk3399-evb board, with a fusb302 driver,
this branch has no rk3399.dtsi, so the patch about dts is not included
in this series.
Changes in v1:
- add extcon node description
- move the registers in phy driver
- remove the suffix of reset
- update the licence note
- init core clock to 50MHz
- use extcon API
- remove unused global
- add some comments for magic num
- change usleep_range(1000, 2000) tousleep_range(1000, 1050)
- remove __func__ from dev_err
- return err number when get clk failed
- remove ADDR_ADJ define
- use devm_clk_get(&pdev->dev, "tcpdcore")
- add extcon node description
- add #sound-dai-cells description
- use extcon API
- use hdmi-codec for the DP Asoc
- do not initialize the "ret"
- printk a err log when drm_of_encoder_active_endpoint_id
- modify the dclk pin_pol to a single line
Chris Zhong (4):
Documentation: bindings: add dt doc for Rockchip USB Type-C PHY
phy: Add USB Type-C PHY driver for rk3399
Documentation: bindings: add dt documentation for cdn DP controller
drm/rockchip: cdn-dp: add cdn DP support for rk3399
.../bindings/display/rockchip/cdn-dp-rockchip.txt | 62 ++
.../devicetree/bindings/phy/phy-rockchip-typec.txt | 46 +
drivers/gpu/drm/rockchip/Kconfig | 9 +
drivers/gpu/drm/rockchip/Makefile | 1 +
drivers/gpu/drm/rockchip/cdn-dp-core.c | 709 ++++++++++++++++
drivers/gpu/drm/rockchip/cdn-dp-core.h | 110 +++
drivers/gpu/drm/rockchip/cdn-dp-reg.c | 721 ++++++++++++++++
drivers/gpu/drm/rockchip/cdn-dp-reg.h | 404 +++++++++
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 6 +-
drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 2 +
drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 +
drivers/phy/Kconfig | 7 +
drivers/phy/Makefile | 1 +
drivers/phy/phy-rockchip-typec.c | 942 +++++++++++++++++++++
include/linux/phy/phy-rockchip-typec.h | 20 +
15 files changed, 3041 insertions(+), 1 deletion(-)
create mode 100644 Documentation/devicetree/bindings/display/rockchip/cdn-dp-rockchip.txt
create mode 100644 Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt
create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-core.c
create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-core.h
create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-reg.c
create mode 100644 drivers/gpu/drm/rockchip/cdn-dp-reg.h
create mode 100644 drivers/phy/phy-rockchip-typec.c
create mode 100644 include/linux/phy/phy-rockchip-typec.h
--
2.6.3
[View Less]
We may have a situation that the memory allocation for fbdefio fails
and then the allocation for fbops may succeed as some memory has been
freed somewhere. Lets free fbops also to face these rare situtation.
Since kfree can handle arguments as NULL, there should not be any
problem in calling both the kfree().
Signed-off-by: Sudip Mukherjee <sudip.mukherjee(a)codethink.co.uk>
---
drivers/gpu/drm/drm_fb_cma_helper.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/…
[View More]drm_fb_cma_helper.c b/drivers/gpu/drm/drm_fb_cma_helper.c
index 2e7ef0b..c0b0c71 100644
--- a/drivers/gpu/drm/drm_fb_cma_helper.c
+++ b/drivers/gpu/drm/drm_fb_cma_helper.c
@@ -346,6 +346,7 @@ static int drm_fbdev_cma_defio_init(struct fb_info *fbi,
fbops = kzalloc(sizeof(*fbops), GFP_KERNEL);
if (!fbdefio || !fbops) {
kfree(fbdefio);
+ kfree(fbops);
return -ENOMEM;
}
--
1.9.1
[View Less]